code-origin/server/public/admin/assets/echarts.8d7a50ae.js

31 lines
588 KiB
JavaScript
Executable File

import{i as G,r as la,m as N,c as W,e as S,a as ie,b as tt,d as H,f as fe,g as Ws,h as k,j as me,k as m0,l as O,n as Z,L as Id,o as In,p as Le,P as De,q as nc,s as _0,t as ve,u as x0,T as ra,v as Ln,w as rt,x as K,Z as zt,y as J,z as S0,A as b0,B as w0,C as T0,D as Nl,E as Ri,F as Nt,G as Ld,S as Gt,R as ro,H as fr,I as At,J as oe,K as Ze,M as Pd,N as Vl,O as A0,Q,U as ae,V as C0,W as Rd,X as zl,Y as M0,_ as ge,$ as Ei,a0 as we,a1 as Pn,a2 as j,a3 as U,a4 as Xe,a5 as D0,a6 as ee,a7 as at,a8 as pe,a9 as z,aa as Hs,ab as I0,ac as bt,ad as Us,ae as L0,af as Ed,ag as P0,ah as ma,ai as ic,aj as Eo,ak as R0,al as ua,am as $s,an as E0,ao as oc,ap as kd,aq as Od,ar as ao,as as Bd,at as sc,au as ko,av as k0,aw as O0,ax as Hn,ay as lc,az as uc,aA as B0,aB as N0,aC as ir,aD as Rn,aE as V0,aF as cc,aG as or,aH as z0,aI as G0,aJ as F0,aK as un,aL as W0,aM as En,aN as H0,aO as U0,aP as Oo,aQ as xi,aR as Bo,aS as $0,aT as Nd,aU as cn,aV as fn,aW as Y0,aX as Vd,aY as fc,aZ as Z0,a_ as X0,a$ as K0,b0 as q0,b1 as j0,b2 as J0,b3 as Q0,b4 as e_}from"./zrender.1084fa23.js";import{_ as P}from"./tslib.60310f1a.js";var hc=1e-4,zd=20;function t_(r){return r.replace(/^\s+|\s+$/g,"")}function he(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function $(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?t_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function xe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),zd),r=(+r).toFixed(t),e?r:+r}function Rt(r){return r.sort(function(t,e){return t-e}),r}function Et(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 r_(r)}function r_(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 Gd(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function a_(r,t,e){if(!r[t])return 0;var a=la(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(a===0)return 0;for(var n=Math.pow(10,e),i=N(r,function(d){return(isNaN(d)?0:d)/a*n*100}),o=n*100,s=N(i,function(d){return Math.floor(d)}),l=la(s,function(d,p){return d+p},0),u=N(i,function(d,p){return d-s[p]});l<o;){for(var c=Number.NEGATIVE_INFINITY,f=null,v=0,h=u.length;v<h;++v)u[v]>c&&(c=u[v],f=v);++s[f],u[f]=0,++l}return s[t]/n}function n_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>zd?a:xe(a,e)}function Fd(r){var t=Math.PI*2;return(r%t+t)%t}function ki(r){return r>-hc&&r<hc}var i_=/^(?:(\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 wt(r){if(r instanceof Date)return r;if(G(r)){var t=i_.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 o_(r){return Math.pow(10,Gl(r))}function Gl(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 Wd(r,t){var e=Gl(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function vc(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 Oi(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function Hd(r){return!isNaN(Oi(r))}function Ud(){return Math.round(Math.random()*9)}function $d(r,t){return t===0?r:$d(t,r%t)}function dc(r,t){return r==null?t:t==null?r:r*t/$d(r,t)}function Ge(r){throw new Error(r)}function pc(r,t,e){return(t-r)*e+r}var Yd="series\0",Zd="\0_ec_\0";function le(r){return r instanceof Array?r:r==null?[]:[r]}function Bi(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 gc=["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 _a(r){return H(r)&&!k(r)&&!(r instanceof Date)?r.value:r}function s_(r){return H(r)&&!(r instanceof Array)}function Xd(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=W();S(t,function(l,u){if(!H(l)){t[u]=null;return}});var s=l_(r,o,e);return(a||n)&&u_(s,r,o,t),a&&c_(s,t),a||n?f_(s,t,n):i&&h_(s,t),v_(s),s}function l_(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"||hn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function u_(r,t,e,a){S(a,function(n,i){if(!(!n||n.id==null)){var o=Qa(n.id),s=e.get(o);if(s!=null){var l=r[s];tt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function c_(r,t){S(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)&&!hn(e)&&!hn(i)&&Kd("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function f_(r,t,e){S(t,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||hn(n.existing)||n.existing&&a.id!=null&&!Kd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function h_(r,t){S(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function v_(r){var t=W();S(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),S(r,function(e){var a=e.newOption;tt(!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={})}),S(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(!!H(i)){if(o.name=i.name!=null?Qa(i.name):n?n.name:Yd+a,n)o.id=Qa(n.id);else if(i.id!=null)o.id=Qa(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 Kd(r,t,e){var a=ke(t[r],null),n=ke(e[r],null);return a!=null&&n!=null&&a===n}function Qa(r){return ke(r,"")}function ke(r,t){return r==null?t:G(r)?r:fe(r)||Ws(r)?r+"":t}function Fl(r){var t=r.name;return!!(t&&t.indexOf(Yd))}function hn(r){return r&&r.id!=null&&Qa(r.id).indexOf(Zd)===0}function d_(r){return Zd+r}function p_(r,t,e){S(r,function(a){var n=a.newOption;H(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=g_(t,n,a.existing,e))})}function g_(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function y_(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 f=ke(o[u].seriesId,null);if(f==null)return;for(var v=le(o[u].dataIndex),h=l&&l[f],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[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 Or(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return k(t.dataIndex)?N(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return k(t.name)?N(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ne(){var r="__ec_inner_"+m_++;return function(t){return t[r]||(t[r]={})}}var m_=Ud();function en(r,t,e){var a=Wl(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=kn(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Wl(r,t){var e;if(G(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=W(),i={},o=!1;return S(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ie(t.includeMainTypes,c)<0)){o=o||!!c;var v=n.get(c)||n.set(c,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Me={useDefault:!0,enableAll:!1,enableNone:!1},__={useDefault:!1,enableAll:!0,enableNone:!0};function kn(r,t,e,a){a=a||Me;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(tt(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(tt(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function qd(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function x_(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function S_(r){return r==="auto"?me.domSupported?"html":"richText":r||"html"}function jd(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(fe(a)){var o=pc(e||0,a,n);return xe(o,i?Math.max(Et(e||0),Et(a)):t)}else{if(G(a))return n<1?e:a;for(var s=[],l=e,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var v=r.getDimensionInfo(f);if(v&&v.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,d=u[f],o=pc(h,d,n);s[f]=xe(o,i?Math.max(Et(h),Et(d)):t)}}return s}}var b_=".",dr="___EC__COMPONENT__CONTAINER___",Jd="___EC__EXTENDED_CLASS___";function xt(r){var t={main:"",sub:""};if(r){var e=r.split(b_);t.main=e[0]||"",t.sub=e[1]||""}return t}function w_(r){tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function T_(r){return!!(r&&r[Jd])}function Hl(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return A_(a)?n=function(i){P(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},m0(n,this)),O(n.prototype,e),n[Jd]=!0,n.extend=this.extend,n.superCall=D_,n.superApply=I_,n.superClass=a,n}}function A_(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Qd(r,t){r.extend=t.extend}var C_=Math.round(Math.random()*10);function M_(r){var t=["__\0is_clz",C_++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function D_(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 I_(r,t,e){return this.superClass.prototype[t].apply(r,e)}function no(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){w_(n),a.prototype.type=n;var i=xt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==dr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[dr]&&(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=xt(a),i=[],o=t[n.main];return o&&o[dr]?S(o,function(s,l){l!==dr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=xt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return S(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=xt(a),i=t[n.main];return i&&i[dr]};function e(a){var n=t[a.main];return(!n||!n[dr])&&(n=t[a.main]={},n[dr]=!0),n}}function ca(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&&ie(n,l)>=0||i&&ie(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var L_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],P_=ca(L_),R_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return P_(this,t,e)},r}(),q=ne(),E_=function(r,t,e,a){if(a){var n=q(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=q(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},yc=1,mc={},ep=ne(),Ul=ne(),$l=0,io=1,oo=2,nt=["emphasis","blur","select"],Ni=["normal","emphasis","blur","select"],tp=10,k_=9,Dr="highlight",Si="downplay",tn="select",bi="unselect",rn="toggleSelect";function Ur(r){return r!=null&&r!=="none"}var _c=new Id(100);function xc(r){if(G(r)){var t=_c.get(r);return t||(t=nc(r,-.1),_c.put(r,t)),t}else if(_0(r)){var e=O({},r);return e.colorStops=N(r.colorStops,function(a){return{offset:a.offset,color:nc(a.color,-.1)}}),e}return r}function so(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function rp(r){so(r,"emphasis",oo)}function ap(r){r.hoverState===oo&&so(r,"normal",$l)}function Yl(r){so(r,"blur",io)}function np(r){r.hoverState===io&&so(r,"normal",$l)}function O_(r){r.selected=!0}function B_(r){r.selected=!1}function Sc(r,t,e){t(r,e)}function Ft(r,t,e){Sc(r,t,e),r.isGroup&&r.traverse(function(a){Sc(a,t,e)})}function Ys(r,t){switch(t){case"emphasis":r.hoverState=oo;break;case"normal":r.hoverState=$l;break;case"blur":r.hoverState=io;break;case"select":r.selected=!0}}function N_(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==null?a&&a[s]:l}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 V_(r,t,e,a){var n=e&&ie(e,"select")>=0,i=!1;if(r instanceof De){var o=ep(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ur(s)||Ur(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=O({},a),u=O({},u),u.fill=s):!Ur(u.fill)&&Ur(s)?(i=!0,a=O({},a),u=O({},u),u.fill=xc(s)):!Ur(u.stroke)&&Ur(l)&&(i||(a=O({},a),u=O({},u)),u.stroke=xc(l)),a.style=u}}if(a&&a.z2==null){i||(a=O({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:tp)}return a}function z_(r,t,e){if(e&&e.z2==null){e=O({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:k_)}return e}function G_(r,t,e){var a=ie(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:N_(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:a?n:i.opacity*.1},o),e.style=o),e}function No(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return V_(this,r,t,e);if(r==="blur")return G_(this,r,e);if(r==="select")return z_(this,r,e)}return e}function Zl(r){r.stateProxy=No;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=No),e&&(e.stateProxy=No)}function bc(r,t){!lp(r,t)&&!r.__highByOuter&&Ft(r,rp)}function wc(r,t){!lp(r,t)&&!r.__highByOuter&&Ft(r,ap)}function fa(r,t){r.__highByOuter|=1<<(t||0),Ft(r,rp)}function ha(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ft(r,ap)}function F_(r){Ft(r,Yl)}function ip(r){Ft(r,np)}function op(r){Ft(r,O_)}function sp(r){Ft(r,B_)}function lp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function up(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Ul(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){np(u)}),s&&e.push(i)),o.isBlured=!1}),S(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Zs(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var v=u.getItemGraphicEl(c[f]);v&&ip(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var v=f&&s?f===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!v||t==="series"&&c)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(g){Yl(g)}),In(t))i(u.getData(),t);else if(H(t))for(var d=Le(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Ul(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function Xs(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(!!a){Ul(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Yl(i)})}}}function W_(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!!n){var i=Or(n,t);i=(k(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=q(o);Zs(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Zs(a,c,f,e)}}}function Xl(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(q(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function H_(r,t,e){var a=q(r),n=Xl(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Xs(a.componentMainType,a.componentIndex,e),S(i,function(s){return bc(s,t)})):(Zs(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Xs(a.componentMainType,a.componentIndex,e),bc(r,t))}function U_(r,t,e){up(e);var a=q(r),n=Xl(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?S(n,function(i){return wc(i,t)}):wc(r,t)}function $_(r,t,e){if(!!qs(t)){var a=t.dataType,n=r.getData(a),i=Or(n,t);k(i)||(i=[i]),r[t.type===rn?"toggleSelect":t.type===tn?"select":"unselect"](i,a)}}function Tc(r){var t=r.getAllData();S(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?op(i):sp(i)})})}function Y_(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();S(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 Ir(r,t,e){Kl(r,!0),Ft(r,Zl),X_(r,t,e)}function Z_(r){Kl(r,!1)}function sr(r,t,e,a){a?Z_(r):Ir(r,t,e)}function X_(r,t,e){var a=q(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Ac=["emphasis","blur","select"],K_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function va(r,t,e,a){e=e||"itemStyle";for(var n=0;n<Ac.length;n++){var i=Ac[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[K_[e]]()}}function Kl(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 Ks(r){return!!(r&&r.__highDownDispatcher)}function q_(r,t,e){var a=q(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function j_(r){var t=mc[r];return t==null&&yc<=32&&(t=mc[r]=yc++),t}function qs(r){var t=r.type;return t===tn||t===bi||t===rn}function Cc(r){var t=r.type;return t===Dr||t===Si}function J_(r){var t=ep(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 cp=ne();function xa(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;a?(u=ve(a.duration,200),c=ve(a.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),Z(f)&&(f=f(e,n)),Z(u)&&(u=u(e));var v={duration:u||0,delay:f,easing:c};return v}else return null}function ql(r,t,e,a,n,i,o){var s=!1,l;Z(n)?(o=i,i=n,n=null):H(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=xa(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var f=c.duration,v=c.delay,h=c.easing,d={duration:f,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function de(r,t,e,a,n,i){ql("update",r,t,e,a,n,i)}function Ie(r,t,e,a,n,i){ql("enter",r,t,e,a,n,i)}function na(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 vn(r,t,e,a,n,i){na(r)||ql("leave",r,t,e,a,n,i)}function Mc(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),vn(r,{style:{opacity:0}},t,e,a)}function Vi(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Mc(n,t,e,a)}):Mc(r,t,e,a)}function dn(r){cp(r).oldStyle=r.style}function Q_(r){return cp(r).oldStyle}var zi=Math.max,Gi=Math.min,js={};function ex(r){return De.extend(r)}var tx=A0;function rx(r,t){return tx(r,t)}function pt(r,t){js[r]=t}function fp(r){if(js.hasOwnProperty(r))return js[r]}function jl(r,t,e,a){var n=S0(r,t);return e&&(a==="center"&&(e=vp(e,n.getBoundingRect())),dp(n,e)),n}function hp(r,t,e){var a=new zt({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(vp(t,i))}}});return a}function vp(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 ft=x0;function dp(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function ax(r){return b0(r.shape,r.shape,r.style),r}function nx(r){return w0(r.shape,r.shape,r.style),r}var ix=T0;function Lr(r,t){for(var e=Nl([]);r&&r!==t;)Ri(e,r.getLocalTransform(),e),r=r.parent;return e}function vt(r,t,e){return t&&!In(t)&&(t=ra.getLocalTransform(t)),e&&(t=Ln([],t)),rt([],r,t)}function lo(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=vt(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Dc(r){return!r.isGroup}function ox(r){return r.shape!=null}function uo(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Dc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ox(o)&&(s.shape=O({},o.shape)),s}var i=a(r);t.traverse(function(o){if(Dc(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),de(o,l,e,q(o).dataIndex)}}})}function pp(r,t){return N(r,function(e){var a=e[0];a=zi(a,t.x),a=Gi(a,t.x+t.width);var n=e[1];return n=zi(n,t.y),n=Gi(n,t.y+t.height),[a,n]})}function sx(r,t){var e=zi(r.x,t.x),a=Gi(r.x+r.width,t.x+t.width),n=zi(r.y,t.y),i=Gi(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 On(r,t,e){var a=O({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),K(n,e),new zt(a)):jl(r.replace("path://",""),a,e,"center")}function lx(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(gp(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function gp(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,v=Vo(c,f,l,u);if(ux(v))return!1;var h=r-n,d=t-i,p=Vo(h,d,l,u)/v;if(p<0||p>1)return!1;var g=Vo(h,d,c,f)/v;return!(g<0||g>1)}function Vo(r,t,e,a){return r*a-e*t}function ux(r){return r<=1e-6&&r>=-1e-6}function Sa(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=G(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&&S(Le(l),function(c){J(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function Ic(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function co(r,t){if(r)if(k(r))for(var e=0;e<r.length;e++)Ic(r[e],t);else Ic(r,t)}pt("circle",Nt);pt("ellipse",Ld);pt("sector",Gt);pt("ring",ro);pt("polygon",fr);pt("polyline",At);pt("rect",oe);pt("line",Ze);pt("bezierCurve",Pd);pt("arc",Vl);const fo=Object.freeze(Object.defineProperty({__proto__:null,updateProps:de,initProps:Ie,removeElement:vn,removeElementWithFadeOut:Vi,isElementRemoved:na,extendShape:ex,extendPath:rx,registerShape:pt,getShapeClass:fp,makePath:jl,makeImage:hp,mergePath:ft,resizePath:dp,subPixelOptimizeLine:ax,subPixelOptimizeRect:nx,subPixelOptimize:ix,getTransform:Lr,applyTransform:vt,transformDirection:lo,groupTransition:uo,clipPointsByRect:pp,clipRectByRect:sx,createIcon:On,linePolygonIntersect:lx,lineLineIntersect:gp,setTooltipConfig:Sa,traverseElements:co,Group:Q,Image:zt,Text:ae,Circle:Nt,Ellipse:Ld,Sector:Gt,Ring:ro,Polygon:fr,Polyline:At,Rect:oe,Line:Ze,BezierCurve:Pd,Arc:Vl,IncrementalDisplayable:C0,CompoundPath:Rd,LinearGradient:zl,RadialGradient:M0,BoundingRect:ge,OrientedBoundingRect:Ei,Point:we,Path:De},Symbol.toStringTag,{value:"Module"}));var ho={};function yp(r,t){for(var e=0;e<nt.length;e++){var a=nt[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Js(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=Z(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<nt.length;u++){var c=nt[u],f=t[c];l[c]=ve(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Wt(r,t,e,a){e=e||ho;for(var n=r instanceof ae,i=!1,o=0;o<Ni.length;o++){var s=t[Ni[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new ae,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Js(e,t),c=t.normal,f=!!c.getShallow("show"),v=Te(c,a&&a.normal,e,!1,!n);v.text=u.normal,n||r.setTextConfig(Lc(c,e,!1));for(var o=0;o<nt.length;o++){var h=nt[o],s=t[h];if(s){var d=l.ensureState(h),p=!!ve(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Te(s,a&&a[h],e,!0,!n),d.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=Lc(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!f,l.useStyle(v),l.dirty(),e.enableTextSetter&&(ba(l).setLabelText=function(y){var m=Js(e,t,y);yp(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ht(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<nt.length;a++){var n=nt[a];e[n]=r.getModel([n,t])}return e}function Te(r,t,e,a,n){var i={};return cx(i,r,e,a,n),t&&O(i,t),i}function Lc(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=ve(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function cx(r,t,e,a,n){e=e||ho;var i=t.ecModel,o=i&&i.option.textStyle,s=fx(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);kc(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var f=t.get("overflow");f&&(r.overflow=f);var v=t.get("minMargin");v!=null&&(r.margin=v),kc(r,t,o,e,a,n,!0,!1)}function fx(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ho).rich;if(e){t=t||{};for(var a=Le(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var Pc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Rc=["align","lineHeight","width","height","tag","verticalAlign"],Ec=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function kc(r,t,e,a,n,i,o,s){e=!n&&e||ho;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ve(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var v=ve(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var h=ve(t.getShallow("textBorderType"),e.textBorderType);h!=null&&(r.lineDash=h);var d=ve(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<Pc.length;p++){var g=Pc[p],y=ve(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Rc.length;p++){var g=Rc[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var p=0;p<Ec.length;p++){var g=Ec[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function hx(r,t){var e=t&&t.getModel("textStyle");return Pn([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 ba=ne();function vx(r,t,e,a){if(!!r){var n=ba(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 dx(r,t,e,a,n){var i=ba(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ve(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=jd(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var v=Js({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);yp(r,v)}r.percent=0,(i.prevValue==null?Ie:de)(r,{percent:1},a,t,null,u)}var px=["textStyle","color"],zo=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Go=new ae,gx=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(px):null)},r.prototype.getFont=function(){return hx({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<zo.length;a++)e[zo[a]]=this.getShallow(zo[a]);return Go.useStyle(e),Go.update(),Go.getBoundingRect()},r}();const yx=gx;var mp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mx=ca(mp),_x=function(){function r(){}return r.prototype.getLineStyle=function(t){return mx(this,t)},r}(),_p=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],xx=ca(_p),Sx=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return xx(this,t,e)},r}(),Gr=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){j(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(U(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(!me.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}();Hl(Gr);M_(Gr);Xe(Gr,_x);Xe(Gr,Sx);Xe(Gr,R_);Xe(Gr,yx);const Se=Gr;var bx=Math.round(Math.random()*10);function wa(r){return[r||"",bx++].join("_")}function wx(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=xt(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=xt(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function Tx(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,f=u.noEntryList,v={};for(S(i,function(m){v[m]=!0});f.length;){var h=f.pop(),d=c[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),S(d.successor,p?y:g)}S(v,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){v[m]=!0,g(m)}};function e(i){var o={},s=[];return S(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),S(f,function(v){ie(u.predecessor,v)<0&&u.predecessor.push(v);var h=a(o,v);ie(h.successor,v)<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 S(i,function(l){ie(o,l)>=0&&s.push(l)}),s}}function hr(r,t){return j(j({},r,!0),t,!0)}const Ax={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Cx={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Fi="ZH",Jl="EN",pn=Jl,wi={},Ql={},xp=me.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Fi)>-1?Fi:pn}():pn;function Sp(r,t){r=r.toUpperCase(),Ql[r]=new Se(t),wi[r]=t}function Mx(r){if(G(r)){var t=wi[r.toUpperCase()]||{};return r===Fi||r===Jl?U(t):j(U(t),U(wi[pn]),!1)}else return j(U(r),U(wi[pn]),!1)}function Qs(r){return Ql[r]}function Dx(){return Ql[pn]}Sp(Jl,Ax);Sp(Fi,Cx);var eu=1e3,tu=eu*60,an=tu*60,et=an*24,Oc=et*365,qa={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Un="{yyyy}-{MM}-{dd}",Bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Un,hour:Un+" "+qa.hour,minute:Un+" "+qa.minute,second:Un+" "+qa.second,millisecond:qa.none},Fo=["year","month","day","hour","minute","second","millisecond"],bp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pr(r,t){return r+="","0000".substr(0,t-r.length)+r}function ia(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 Ix(r){return r===ia(r)}function Lx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vo(r,t,e,a){var n=wt(r),i=n[ru(e)](),o=n[oa(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[po(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[gn(e)](),f=(c-1)%12+1,v=n[go(e)](),h=n[yo(e)](),d=n[mo(e)](),p=a instanceof Se?a:Qs(a||xp)||Dx(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,pr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,pr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,pr(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,pr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,pr(d,3)).replace(/{S}/g,d+"")}function Px(r,t,e,a,n){var i=null;if(G(e))i=e;else if(Z(e))i=e(r.value,t,{level:r.level});else{var o=O({},qa);if(r.level>0)for(var s=0;s<Fo.length;++s)o[Fo[s]]="{primary|"+o[Fo[s]]+"}";var l=e?e.inherit===!1?e:K(e,o):o,u=wp(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=bp.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(k(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return vo(new Date(r.value),i,n,a)}function wp(r,t){var e=wt(r),a=e[oa(t)]()+1,n=e[po(t)](),i=e[gn(t)](),o=e[go(t)](),s=e[yo(t)](),l=e[mo(t)](),u=l===0,c=u&&s===0,f=c&&o===0,v=f&&i===0,h=v&&n===1,d=h&&a===1;return d?"year":h?"month":v?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Nc(r,t,e){var a=fe(r)?wt(r):r;switch(t=t||wp(r,e),t){case"year":return a[ru(e)]();case"half-year":return a[oa(e)]()>=6?1:0;case"quarter":return Math.floor((a[oa(e)]()+1)/4);case"month":return a[oa(e)]();case"day":return a[po(e)]();case"half-day":return a[gn(e)]()/24;case"hour":return a[gn(e)]();case"minute":return a[go(e)]();case"second":return a[yo(e)]();case"millisecond":return a[mo(e)]()}}function ru(r){return r?"getUTCFullYear":"getFullYear"}function oa(r){return r?"getUTCMonth":"getMonth"}function po(r){return r?"getUTCDate":"getDate"}function gn(r){return r?"getUTCHours":"getHours"}function go(r){return r?"getUTCMinutes":"getMinutes"}function yo(r){return r?"getUTCSeconds":"getSeconds"}function mo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Rx(r){return r?"setUTCFullYear":"setFullYear"}function Tp(r){return r?"setUTCMonth":"setMonth"}function Ap(r){return r?"setUTCDate":"setDate"}function Cp(r){return r?"setUTCHours":"setHours"}function Mp(r){return r?"setUTCMinutes":"setMinutes"}function Dp(r){return r?"setUTCSeconds":"setSeconds"}function Ip(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Lp(r){if(!Hd(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Pp(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 Bn=D0,Ex=/([&<>"'])/g,kx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ye(r){return r==null?"":(r+"").replace(Ex,function(t,e){return kx[e]})}function el(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Pn(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?wt(r):r;if(isNaN(+l)){if(s)return"-"}else return vo(l,a,e)}if(t==="ordinal")return Ws(r)?n(r):fe(r)&&i(r)?r+"":"-";var u=Oi(r);return i(u)?Lp(u):Ws(r)?n(r):typeof r=="boolean"?r+"":"-"}var Vc=["a","b","c","d","e","f","g"],Wo=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Rp(r,t,e){k(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=Vc[i];r=r.replace(Wo(o),Wo(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(Wo(Vc[l],s),e?Ye(u):u)}return r}function Ox(r,t,e){return S(t,function(a,n){r=r.replace("{"+n+"}",e?Ye(a):a)}),r}function Bx(r,t){var e=G(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:'+Ye(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ye(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 Br(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function zc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ti=S,Ep=["left","right","top","bottom","width","height"],Mr=[["width","left","right"],["height","top","bottom"]];function au(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),h,d;if(r==="horizontal"){var p=c.width+(v?-v.x+c.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Pr=au;ee(au,"vertical");ee(au,"horizontal");function He(r,t,e){e=Bn(e||0);var a=t.width,n=t.height,i=$(r.left,a),o=$(r.top,n),s=$(r.right,a),l=$(r.bottom,n),u=$(r.width,a),c=$(r.height,n),f=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(c)&&(c=n-l-f-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-v),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new ge(i+e[3],o+e[0],u,c);return d.margin=e,d}function nu(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 ge(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=He(K({width:u.width,height:u.height},t),e,a),v=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===r&&r.markRedraw(),!0}function Nx(r,t){return r[Mr[t][0]]!=null||r[Mr[t][1]]!=null&&r[Mr[t][2]]!=null}function yn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function lr(r,t,e){var a=e&&e.ignoreSize;!k(a)&&(a=[a,a]);var n=o(Mr[0],0),i=o(Mr[1],1);u(Mr[0],r,n),u(Mr[1],r,i);function o(c,f){var v={},h=0,d={},p=0,g=2;if(Ti(c,function(_){d[_]=r[_]}),Ti(c,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&h++,l(d,_)&&p++}),a[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!h)return d;if(h>=g)return v;for(var y=0;y<c.length;y++){var m=c[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,v){Ti(c,function(h){f[h]=v[h]})}}function Ta(r){return kp({},r)}function kp(r,t){return t&&r&&Ti(Ep,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Vx=ne(),Aa=function(r){P(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=wa("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=yn(this),i=n?Ta(e):{},o=a.getTheme();j(e,o.get(this.mainType)),j(e,this.getDefaultOption()),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){j(this.option,e,!0);var n=yn(this);n&&lr(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!T_(e))return e.defaultOption;var a=Vx(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=j(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return kn(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Se);Qd(Aa,Se);no(Aa);wx(Aa);Tx(Aa,zx);function zx(r){var t=[];return S(Aa.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return xt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const te=Aa;var Op="";typeof navigator<"u"&&(Op=navigator.platform||"");var $r="rgba(0, 0, 0, 0.2)";const Gx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$r,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$r,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$r,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$r,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$r,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$r,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Op.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Bp=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),it="original",Ue="arrayRows",gt="objectRows",Ct="keyedColumns",nr="typedArray",Np="unknown",Bt="column",Ca="row",Pe={Must:1,Might:2,Not:3},Vp=ne();function Fx(r){Vp(r).datasetMap=W()}function Wx(r,t,e){var a={},n=iu(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=Vp(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),S(r,function(p,g){var y=H(p)?p:r[g]={name:p};y.type==="ordinal"&&c==null&&(c=g,f=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});S(r,function(p,g){var y=p.name,m=d(p);if(c==null){var _=v.valueWayDim;h(a[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(c===g)h(a[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(a[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function zp(r,t,e){var a={},n=iu(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===gt||i===Ct)&&S(o,function(c,f){(H(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},v=[],h=0,d=Math.min(5,e);h<d;h++){var p=Fp(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===Pe.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&v[c.n]===Pe.Not)&&(c.n=h),y(c)&&v[c.n]!==Pe.Not)return c;g||(p===Pe.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(f)?f:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function iu(r){var t=r.get("data",!0);if(!t)return kn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Me).models[0]}function Hx(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:kn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Me).models}function Gp(r,t){return Fp(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Fp(r,t,e,a,n,i){var o,s=5;if(at(r))return Pe.Not;var l,u;if(a){var c=a[i];H(c)?(l=c.name,u=c.type):G(c)&&(l=c)}if(u!=null)return u==="ordinal"?Pe.Must:Pe.Not;if(t===Ue){var f=r;if(e===Ca){for(var v=f[i],h=0;h<(v||[]).length&&h<s;h++)if((o=x(v[n+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var d=f[n+h];if(d&&(o=x(d[i]))!=null)return o}}else if(t===gt){var p=r;if(!l)return Pe.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=x(g[l]))!=null)return o}}else if(t===Ct){var y=r;if(!l)return Pe.Not;var v=y[l];if(!v||at(v))return Pe.Not;for(var h=0;h<v.length&&h<s;h++)if((o=x(v[h]))!=null)return o}else if(t===it)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=_a(g);if(!k(_))return Pe.Not;if((o=x(_[i]))!=null)return o}function x(w){var b=G(w);if(w!=null&&isFinite(w)&&w!=="")return b?Pe.Might:Pe.Not;if(b&&w!=="-")return Pe.Must}return Pe.Not}var tl=W();function Ux(r,t){tt(tl.get(r)==null&&t),tl.set(r,t)}function $x(r,t,e){var a=tl.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Gc=ne(),Yx=ne(),ou=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=le(this.get("color",!0)),i=this.get("colorLayer",!0);return Wp(this,Gc,n,i,t,e,a)},r.prototype.clearColorPalette=function(){Xx(this,Gc)},r}();function Fc(r,t,e,a){var n=le(r.get(["aria","decal","decals"]));return Wp(r,Yx,n,null,t,e,a)}function Zx(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 Wp(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:Zx(a,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function Xx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var $n,Pa,Wc,Hc="\0_ec_inner",Kx=1,Hp=function(r){P(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 Se(i),this._locale=new Se(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=Yc(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Yc(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"?Wc(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&&S(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=W(),u=a&&a.replaceMergeMainTypeMap;Fx(this),S(e,function(f,v){f!=null&&(te.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?U(f):j(n[v],f,!0))}),u&&u.each(function(f,v){te.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),c,this);function c(f){var v=$x(this,f,le(e[f])),h=i.get(f),d=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Xd(h,v,d);p_(p,f,te),n[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,_;S(p,function(x,w){var b=x.existing,T=x.newOption;if(!T)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var A=f==="series",C=te.getClass(f,x.keyInfo.subType,!A);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=x.keyInfo.name,b.mergeOption(T,this),b.optionUpdated(T,!1);else{var D=O({componentIndex:w},x.keyInfo);b=new C(T,this,this,D),O(b,D),x.brandNew&&(b.__requireNewView=!0),b.init(T,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[f]=g,i.set(f,y),o.set(f,m),f==="series"&&$n(this)}this._seriesIndices||$n(this)},t.prototype.getOption=function(){var e=U(this.option);return S(e,function(a,n){if(te.hasClass(n)){for(var i=le(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!hn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Hc],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],S(le(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Uc("id",i,s):o!=null?l=Uc("name",o,s):l=pe(s,function(u){return!!u}),$c(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):pe(this._componentsMap.get(n),function(u){return!!u});return l($c(o,e));function s(u){var c=n+"Index",f=n+"Id",v=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[v]!=null)?{mainType:n,index:u[c],id:u[f],name:u[v]}:null}function l(u){return e.filter?pe(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(Z(e)){var o=a,s=e;i.each(function(f,v){for(var h=0;f&&h<f.length;h++){var d=f[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=G(e)?i.get(e):H(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=ke(e,null);return pe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return pe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return pe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Pa(this),S(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){S(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Pa(this),S(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 S(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Pa(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Pa(this);var n=[];S(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=W(n)},t.prototype.restoreData=function(e){$n(this);var a=this._componentsMap,n=[];a.each(function(i,o){te.hasClass(o)&&n.push(o)}),te.topologicalTravel(n,te.getAllClassMainTypes(),function(i){S(a.get(i),function(o){o&&(i!=="series"||!qx(o,e))&&o.restoreData()})})},t.internalField=function(){$n=function(e){var a=e._seriesIndices=[];S(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=W(a)},Pa=function(e){},Wc=function(e,a){e.option={},e.option[Hc]=Kx,e._componentsMap=W({series:[]}),e._componentsCount=W();var n=a.aria;H(n)&&n.enabled==null&&(n.enabled=!0),jx(a,e._theme.option),j(a,Gx,!1),e._mergeOption(a,null)}}(),t}(Se);function qx(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 jx(r,t){var e=r.color&&!r.colorLayer;S(t,function(a,n){n==="colorLayer"&&e||te.hasClass(n)||(typeof a=="object"?r[n]=r[n]?j(r[n],a,!1):U(a):r[n]==null&&(r[n]=a))})}function Uc(r,t,e){if(k(t)){var a=W();return S(t,function(i){if(i!=null){var o=ke(i,null);o!=null&&a.set(i,!0)}}),pe(e,function(i){return i&&a.get(i[r])})}else{var n=ke(t,null);return pe(e,function(i){return i&&n!=null&&i[r]===n})}}function $c(r,t){return t.hasOwnProperty("subType")?pe(r,function(e){return e&&e.subType===t.subType}):r}function Yc(r){var t=W();return r&&S(le(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Xe(Hp,ou);const Up=Hp;var Jx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qx=function(){function r(t){S(Jx,function(e){this[e]=z(t[e],t)},this)}return r}();const $p=Qx;var Ho={},eS=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];S(Ho,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){S(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Ho[t]=e},r.get=function(t){return Ho[t]},r}();const su=eS;var tS=/^(min|max)?(.+)$/,rS=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(S(le(t.series),function(o){o&&o.data&&at(o.data)&&Hs(o.data)}),S(le(t.dataset),function(o){o&&o.source&&at(o.source)&&Hs(o.source)})),t=U(t);var n=this._optionBackup,i=aS(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=[],U(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=U(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++)nS(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!oS(o,this._currentMediaIndices)&&(s=N(o,function(c){return U(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function aS(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&k(u)&&S(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),v(i),S(l,function(h){return v(h)}),S(a,function(h){return v(h.option)});function v(h){S(t,function(d){d(h,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function nS(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return S(r,function(i,o){var s=o.match(tS);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();iS(a[u],i,l)||(n=!1)}}),n}function iS(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function oS(r,t){return r.join(",")===t.join(",")}const sS=rS;var st=S,mn=H,Zc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Uo(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=Zc.length;e<a;e++){var n=Zc[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?j(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?j(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ee(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,K(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 ja(r){Ee(r,"itemStyle"),Ee(r,"lineStyle"),Ee(r,"areaStyle"),Ee(r,"label"),Ee(r,"labelLine"),Ee(r,"upperLabel"),Ee(r,"edgeLabel")}function _e(r,t){var e=mn(r)&&r[t],a=mn(e)&&e.textStyle;if(a)for(var n=0,i=gc.length;n<i;n++){var o=gc[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Je(r){r&&(ja(r),_e(r,"label"),r.emphasis&&_e(r.emphasis,"label"))}function lS(r){if(!!mn(r)){Uo(r),ja(r),_e(r,"label"),_e(r,"upperLabel"),_e(r,"edgeLabel"),r.emphasis&&(_e(r.emphasis,"label"),_e(r.emphasis,"upperLabel"),_e(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Uo(t),Je(t));var e=r.markLine;e&&(Uo(e),Je(e));var a=r.markArea;a&&Je(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!at(i))for(var o=0;o<i.length;o++)Je(i[o]);S(r.categories,function(u){ja(u)})}if(n&&!at(n))for(var o=0;o<n.length;o++)Je(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Je(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)k(l[o])?(Je(l[o][0]),Je(l[o][1])):Je(l[o]);r.type==="gauge"?(_e(r,"axisLabel"),_e(r,"title"),_e(r,"detail")):r.type==="treemap"?(Ee(r.breadcrumb,"itemStyle"),S(r.levels,function(u){ja(u)})):r.type==="tree"&&ja(r.leaves)}}function Lt(r){return k(r)?r:r?[r]:[]}function Xc(r){return(k(r)?r[0]:r)||{}}function uS(r,t){st(Lt(r.series),function(a){mn(a)&&lS(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),st(e,function(a){st(Lt(r[a]),function(n){n&&(_e(n,"axisLabel"),_e(n.axisPointer,"label"))})}),st(Lt(r.parallel),function(a){var n=a&&a.parallelAxisDefault;_e(n,"axisLabel"),_e(n&&n.axisPointer,"label")}),st(Lt(r.calendar),function(a){Ee(a,"itemStyle"),_e(a,"dayLabel"),_e(a,"monthLabel"),_e(a,"yearLabel")}),st(Lt(r.radar),function(a){_e(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)}),st(Lt(r.geo),function(a){mn(a)&&(Je(a),st(Lt(a.regions),function(n){Je(n)}))}),st(Lt(r.timeline),function(a){Je(a),Ee(a,"label"),Ee(a,"itemStyle"),Ee(a,"controlStyle",!0);var n=a.data;k(n)&&S(n,function(i){H(i)&&(Ee(i,"label"),Ee(i,"itemStyle"))})}),st(Lt(r.toolbox),function(a){Ee(a,"iconStyle"),st(a.feature,function(n){Ee(n,"iconStyle")})}),_e(Xc(r.axisPointer),"label"),_e(Xc(r.tooltip).axisPointer,"label")}function cS(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 fS(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];(a||i[n[s]]==null)&&(i[n[s]]=e)}function Kc(r){r&&S(hS,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var hS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],$o=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ra(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<$o.length;e++){var a=$o[e][1],n=$o[e][0];t[a]!=null&&(t[n]=t[a])}}function qc(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function jc(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function dS(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Yp(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Yp(r[e].children,t)}function Zp(r,t){uS(r,t),r.series=le(r.series),S(r.series,function(e){if(!!H(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),qc(e.label);var n=e.data;if(n&&!at(n))for(var i=0;i<n.length;i++)qc(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=cS(e,"pointer.color");o!=null&&fS(e,"itemStyle.color",o)}else if(a==="bar"){Ra(e),Ra(e.backgroundStyle),Ra(e.emphasis);var n=e.data;if(n&&!at(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Ra(n[i]),Ra(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)),jc(e),Yp(e.data,jc)}else a==="graph"||a==="sankey"?dS(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&K(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Kc(e)}}),r.dataRange&&(r.visualMap=r.dataRange),S(vS,function(e){var a=r[e];a&&(k(a)||(a=[a]),S(a,function(n){Kc(n)}))})}function pS(r){var t=W();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(gS)}function gS(r){S(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var v=o.get(t.stackedDimension,f);if(isNaN(v))return n;var h,d;s?d=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=n_(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var _o=function(){function r(t){this.data=t.data||(t.sourceFormat===Ct?{}:[]),this.sourceFormat=t.sourceFormat||Np,this.seriesLayoutBy=t.seriesLayoutBy||Bt,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&Gp(this,a)===Pe.Must&&(n.type="ordinal")}}return r}();function lu(r){return r instanceof _o}function rl(r,t,e){e=e||Xp(r);var a=t.seriesLayoutBy,n=mS(r,e,a,t.sourceHeader,t.dimensions),i=new _o({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:U(t)});return i}function uu(r){return new _o({data:r,sourceFormat:at(r)?nr:it})}function yS(r){return new _o({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:U(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Xp(r){var t=Np;if(at(r))t=nr;else if(k(r)){r.length===0&&(t=Ue);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(k(n)){t=Ue;break}else if(H(n)){t=gt;break}}}}else if(H(r)){for(var i in r)if(J(r,i)&&In(r[i])){t=Ct;break}}return t}function mS(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Jc(n),startIndex:o,dimensionsDetectedCount:i};if(t===Ue){var s=r;a==="auto"||a==null?Qc(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},e,s,10):o=fe(a)?a:a?1:0,!n&&o===1&&(n=[],Qc(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Ca?s.length:s[0]?s[0].length:null}else if(t===gt)n||(n=_S(r));else if(t===Ct)n||(n=[],S(r,function(u,c){n.push(c)}));else if(t===it){var l=_a(r[0]);i=k(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Jc(n),dimensionsDetectedCount:i}}function _S(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e){var a=[];return S(e,function(n,i){a.push(i)}),a}}function Jc(r){if(!!r){var t=W();return N(r,function(e,a){e=H(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 Qc(r,t,e,a){if(t===Ca)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 Kp(r){var t=r.sourceFormat;return t===gt||t===Ct}var gr,yr,mr,ef,tf,qp=function(){function r(t,e){var a=lu(t)?t:uu(t);this._source=a;var n=this._data=a.data;a.sourceFormat===nr&&(this._offset=0,this._dimSize=e,this._data=n),tf(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;tf=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,h=ef[cu(u,c)];if(O(o,h),u===nr)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=jp(u,c);o.getItem=z(d,null,s,f,v);var p=Jp(u,c);o.count=z(p,null,s,f,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,v=0;v<f;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=c[m*f+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};ef=(t={},t[Ue+"_"+Bt]={pure:!0,appendData:i},t[Ue+"_"+Ca]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[gt]={pure:!0,appendData:i},t[Ct]={pure:!0,appendData:function(o){var s=this._data;S(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[it]={appendData:i},t[nr]={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}(),rf=function(r,t,e,a){return r[a]},xS=(gr={},gr[Ue+"_"+Bt]=function(r,t,e,a){return r[a+t]},gr[Ue+"_"+Ca]=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},gr[gt]=rf,gr[Ct]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[a]:null}return i},gr[it]=rf,gr);function jp(r,t){var e=xS[cu(r,t)];return e}var af=function(r,t,e){return r.length},SS=(yr={},yr[Ue+"_"+Bt]=function(r,t,e){return Math.max(0,r.length-t)},yr[Ue+"_"+Ca]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},yr[gt]=af,yr[Ct]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},yr[it]=af,yr);function Jp(r,t){var e=SS[cu(r,t)];return e}var Yo=function(r,t,e){return r[t]},bS=(mr={},mr[Ue]=Yo,mr[gt]=function(r,t,e){return r[e]},mr[Ct]=Yo,mr[it]=function(r,t,e){var a=_a(r);return a instanceof Array?a[t]:a},mr[nr]=Yo,mr);function Qp(r){var t=bS[r];return t}function cu(r,t){return r===Ue?r+"_"+t:r}function da(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 Qp(i)(a,o,s)}else{var l=a;return i===it&&(l=_a(a)),l}}}}var wS=/\{@(.+?)\}/g,eg=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,v=f==="series",h=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?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&&k(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Z(i))return l.status=e,l.dimensionIndex=n,i(l);if(G(i)){var c=Rp(i,l);return c.replace(wS,function(f,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=da(s,t,d);if(o&&k(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return da(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function nf(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function nn(r){return new TS(r)}var TS=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 f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=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,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(f||h<d)){var p=this._progress;if(k(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;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){of.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:of.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),k(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}(),of=function(){var r,t,e,a,n,i={reset:function(l,u,c,f){t=l,r=u,e=c,a=f,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Ai(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!fe(r)&&r!=null&&r!=="-"&&(r=+wt(r)),r==null||r===""?NaN:+r)}W({number:function(r){return parseFloat(r)},time:function(r){return+wt(r)},trim:function(r){return G(r)?Pn(r):r}});var AS=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=fe(t)?t:Oi(t),n=fe(e)?e:Oi(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),CS=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 Ai(t,e)},r}();function MS(r,t){var e=new CS,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Bt&&Ge(o);var s=[],l={},u=r.dimensionsDefine;if(u)S(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&Ge(_),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=jp(n,Bt);t.__isBuiltIn&&(e.getRawDataItem=function(p){return f(a,i,s,p)},e.getRawData=z(DS,null,r)),e.cloneRawData=z(IS,null,r);var v=Jp(n,Bt);e.count=z(v,null,a,i,s);var h=Qp(n);e.retrieveValue=function(p,g){var y=f(a,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return e.getDimensionInfo=z(LS,null,s,l),e.cloneAllDimensionInfo=z(PS,null,s),e}function DS(r){var t=r.sourceFormat;if(!fu(t)){var e="";Ge(e)}return r.data}function IS(r){var t=r.sourceFormat,e=r.data;if(!fu(t)){var a="";Ge(a)}if(t===Ue){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===gt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(O({},e[i]));return n}}function LS(r,t,e){if(e!=null){if(fe(e)||!isNaN(e)&&!J(t,e))return r[e];if(J(t,e))return t[e]}}function PS(r){return U(r)}var tg=W();function RS(r){r=U(r);var t=r.type,e="";t||Ge(e);var a=t.split(":");a.length!==2&&Ge(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,tg.set(t,r)}function ES(r,t,e){var a=le(r),n=a.length,i="";n||Ge(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=kS(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function kS(r,t,e,a){var n="";t.length||Ge(n),H(r)||Ge(n);var i=r.type,o=tg.get(i);o||Ge(n);var s=N(t,function(u){return MS(u,o)}),l=le(o.transform({upstream:s[0],upstreamList:s,config:U(r.config)}));return N(l,function(u,c){var f="";H(u)||Ge(f),u.data||Ge(f);var v=Xp(u.data);fu(v)||Ge(f);var h,d=t[0];if(d&&c===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Bt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Bt,sourceHeader:0,dimensions:u.dimensions};return rl(u.data,h,null)})}function fu(r){return r===Ue||r===gt}var xo="undefined",OS=typeof Uint32Array===xo?Array:Uint32Array,BS=typeof Uint16Array===xo?Array:Uint16Array,rg=typeof Int32Array===xo?Array:Int32Array,sf=typeof Float64Array===xo?Array:Float64Array,ag={float:sf,int:rg,ordinal:Array,number:Array,time:sf},Zo;function Ea(r){return r>65535?OS:BS}function Yr(){return[1/0,-1/0]}function NS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function lf(r,t,e,a,n){var i=ag[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 al=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}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=Zo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],Kp(n),this._dimensions=N(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 ag[e||"float"](this._rawCount),this._rawExtent[i]=Yr(),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]=Yr());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];lf(a,u,c.type,l,!0)}for(var f=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var c=n[d],p=Zo.arrayRows.call(this,t[h]||f,c.property,h,d);a[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=N(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Yr()),lf(i,c,f.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var v=[],h=t;h<e;h++){v=n.getItem(h,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];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.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var v=this.getRawIndex(c),h=e-i[v],d=Math.abs(h);d<=a&&((d<s||d===s&&h>=0&&l<0)&&(s=d,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Ea(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=Ea(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],f=a._chunks,v=0;v<n;v++){var h=void 0,d=a.getRawIndex(v);if(l===0)h=e(v);else if(l===1){var p=f[c][d];h=e(p,v)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][d];s[g]=v,h=e.apply(null,s)}h&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Le(t),i=n.length;if(!i)return this;var o=e.count(),s=Ea(e._rawCount),l=new s(o),u=0,c=n[0],f=t[c][0],v=t[c][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=h[n[0]],y=0;y<a;y++){var m=g[y];(m>=f&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],x=t[n[1]][0],w=t[n[1]][1],y=0;y<a;y++){var m=g[y],b=_[y];(m>=f&&m<=v||isNaN(m))&&(b>=x&&b<=w||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var T=e.getRawIndex(y),m=h[n[0]][T];(m>=f&&m<=v||isNaN(m))&&(l[u++]=T)}else for(var y=0;y<o;y++){for(var A=!0,T=e.getRawIndex(y),C=0;C<i;C++){var D=n[C],m=h[D][T];(m<t[D][0]||m>t[D][1])&&(A=!1)}A&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=Yr();for(var f=0;f<s;f++){for(var v=t.getRawIndex(f),h=0;h<o;h++)l[h]=n[e[h]][v];l[o]=f;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var p=e[c],g=d[c],y=u[p],m=n[p];m&&(m[v]=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,f,v,h=new(Ea(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var x=this.getRawIndex(_),w=i[x];isNaN(w)||(m+=w)}m/=g-p;var b=d,T=Math.min(d+l,o),A=d-1,C=i[u];c=-1,v=b;for(var D=-1,M=0,_=b;_<T;_++){var x=this.getRawIndex(_),w=i[x];if(isNaN(w)){M++,D<0&&(D=x);continue}f=Math.abs((A-y)*(w-C)-(A-_)*(m-C)),f>c&&(c=f,v=x)}M>0&&M<T-b&&(h[s++]=Math.min(D,v),v=Math.max(D,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),a._count=s,a._indices=h,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),f=i._rawExtent[t]=Yr(),v=new(Ea(this._rawCount))(Math.ceil(c/l)),h=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(d+n(s,y)||0,c-1));u[m]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),v[h++]=m}return i._count=h,i._indices=v,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=Yr();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),f=e[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&la(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?NS(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=U(this._extent),t._rawExtent=U(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 Ai(e[i],this._dimensions[i])}Zo={arrayRows:t,objectRows:function(e,a,n,i){return Ai(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Ai(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),VS=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(Yn(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=at(s)?nr:it,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ve(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=ve(f.sourceHeader,v.sourceHeader),p=ve(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[rl(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[rl(_,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&&uf(i)}var o,s=[],l=[];return S(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&uf(f),s.push(c),l.push(u._getVersionSign())}),a?o=ES(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[yS(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];Yn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new al,s.initData(new qp(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Yn(t)){var e=iu(t);return e?[e.getSourceManager()]:[]}else return N(Hx(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(Yn(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 Yn(r){return r.mainType==="series"}function uf(r){throw new Error(r)}var ng="line-height:1";function ig(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ye(a+"")+"px;color:"+Ye(e)+";font-weight:"+Ye(n+""),valueStyle:"font-size:"+Ye(o+"")+"px;color:"+Ye(i)+";font-weight:"+Ye(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var zS=[0,10,20,30],GS=["",`
`,`
`,`
`];function Tt(r,t){return t.type=r,t}function nl(r){return r.type==="section"}function og(r){return nl(r)?FS:WS}function sg(r){if(nl(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=sg(n);i>=t&&(t=i+ +(a&&(!i||nl(n)&&!n.noHeader)))}),t}return 0}function FS(r,t,e,a){var n=t.noHeader,i=HS(sg(t)),o=[],s=t.blocks||[];tt(!s||k(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var c=new AS(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(d,p){var g=t.valueFormatter,y=og(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):il(o.join(""),n?e:i.html);if(n)return f;var v=el(t.header,"ordinal",r.useUTC),h=ig(a,r.renderMode).nameStyle;return r.renderMode==="richText"?lg(r,v,h)+i.richText+f:il('<div style="'+h+";"+ng+';">'+Ye(v)+"</div>"+f,e)}function WS(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=k(x)?x:[x],N(x,function(w,b){return el(w,k(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":el(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=ig(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":lg(r,v,m))+(o?"":YS(r,d,p,g,_)):il((s?"":f)+(i?"":US(v,!s,m))+(o?"":$S(d,p,g,_)),e)}}function cf(r,t,e,a,n,i){if(!!r){var o=og(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function HS(r){return{html:zS[r],richText:GS[r]}}function il(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+ng+';">'+r+e+"</div>"}function US(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ye(r)+"</span>"}function $S(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=k(r)?r:[r],'<span style="'+i+";"+a+'">'+N(r,function(o){return Ye(o)}).join("&nbsp;&nbsp;")+"</span>"}function lg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function YS(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(k(t)?t.join(" "):t,i)}function ug(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Br(a)}function cg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Xo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Ud()}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=Bx({color:e,type:t,renderMode:a,markerId:n});return G(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};k(e)?S(e,function(i){return O(a,i)}):O(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function ZS(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=k(s),u=ug(t,e),c,f,v,h;if(o>1||l&&!o){var d=XS(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=c=da(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Fl(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Tt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Tt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:c,valueType:f})].concat(v||[])})}function XS(r,t,e,a,n){var i=t.getData(),o=la(r,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?S(a,function(f){c(da(i,e,f),f)}):S(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Tt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xt=ne();function Zn(r,t){return r.getName(t)||r.getId(t)}var Ci="__universalTransitionEnabled",So=function(r){P(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=nn({count:qS,reset:jS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Xt(this).sourceManager=new VS(this);i.prepareSource();var o=this.getInitialData(e,n);hf(o,this),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,ff(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=yn(this),i=n?Ta(e):{},o=this.subType;te.hasClass(o)&&(o+="Series"),j(e,a.getTheme().get(this.subType)),j(e,this.getDefaultOption()),Bi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=yn(this);n&&lr(this.option,e,n);var i=Xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);hf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,ff(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!at(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Bi(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=ol(this);if(a){var n=a.context.data;return e==null?n:n.getLinkedData(e)}else return Xt(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=ol(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Xt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return W(e)},t.prototype.getSourceManager=function(){return Xt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Xt(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,n){return ZS({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(me.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=ou.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=Zn(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=Le(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[Zn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ci])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"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],v=Zn(e,f);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var h=a[l-1],v=Zn(e,h);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(i={},i[v]=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 te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(te);Xe(So,eg);Xe(So,ou);Qd(So,te);function ff(r){var t=r.name;Fl(r)||(r.name=KS(r)||t)}function KS(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return S(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function qS(r){return r.model.getRawData().count()}function jS(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),JS}function JS(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function hf(r,t){S(I0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ee(QS,t))})}function QS(r,t){var e=ol(r);return e&&e.setOutputEnd((t||this).count()),t}function ol(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const dt=So;var hu=function(){function r(){this.group=new Q,this.uid=wa("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}();Hl(hu);no(hu);const Ae=hu;function vu(){var r=ne();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 fg=ne(),e1=vu(),du=function(){function r(){this.group=new Q,this.uid=wa("viewChart"),this.renderTask=nn({plan:t1,reset:r1}),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||df(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||df(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){co(this.group,t)},r.markUpdateMethod=function(t,e){fg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function vf(r,t,e){r&&Ks(r)&&(t==="emphasis"?fa:ha)(r,e)}function df(r,t,e){var a=Or(r,t),n=t&&t.highlightKey!=null?j_(t.highlightKey):null;a!=null?S(le(a),function(i){vf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){vf(i,e,n)})}Hl(du);no(du);function t1(r){return e1(r.model)}function r1(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&fg(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),a1[l]}var a1={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Fe=du;var Wi="\0__throttleOriginMethod",pf="\0__throttleRate",gf="\0__throttleType";function pu(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var p=c||t,g=c||e;c=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){c=h},v}function Nn(r,t,e,a){var n=r[t];if(!!n){var i=n[Wi]||n,o=n[gf],s=n[pf];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=pu(i,e,a==="debounce"),n[Wi]=i,n[gf]=a,n[pf]=e}return n}}function _n(r,t){var e=r[t];e&&e[Wi]&&(e.clear&&e.clear(),r[t]=e[Wi])}var yf=ne(),mf={itemStyle:ca(_p,!0),lineStyle:ca(mp,!0)},n1={lineStyle:"stroke",itemStyle:"fill"};function hg(r,t){var e=r.visualStyleMapper||mf[t];return e||(console.warn("Unkown style type '"+t+"'."),mf.itemStyle)}function vg(r,t){var e=r.visualDrawType||n1[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var i1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=hg(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=vg(r,a),u=o[l],c=Z(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=O({},o);g[l]=c(p),h.setItemVisual(d,"style",g)}}}},ka=new Se,o1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=hg(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ka.option=l[a];var u=n(ka),c=o.ensureUniqueItemVisual(s,"style");O(c,u),ka.option.decal&&(o.setItemVisual(s,"decal",ka.option.decal),ka.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},s1={performRawSeries:!0,overallReset:function(r){var t=W();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)),yf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=yf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=vg(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var v=i.ensureUniqueItemVisual(c,"style"),h=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},Xn=Math.PI;function l1(r,t){t=t||{},K(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Q,a=new oe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ae({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 oe({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 Vl({shape:{startAngle:-Xn/2,endAngle:-Xn/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:Xn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xn*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 u1=function(){function r(t,e,a,n){this._stageTaskMap=W(),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=W();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;S(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";tt(!(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;S(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else f&&f.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)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var v=f.uid,h=s.set(v,o&&o.get(v)||nn({plan:d1,reset:p1,count:y1}));h.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||nn({reset:c1});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,c=t.getTargetSeries,f=!0,v=!1,h="";tt(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,S(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,nn({reset:f1,onDirty:v1})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,i._pipe(p,y)}v&&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 Z(t)&&(t={overallReset:t,seriesType:m1(t)}),t.uid=wa("stageHandler"),e&&(t.visualType=e),t},r}();function c1(r){r.overallReset(r.ecModel,r.api,r.payload)}function f1(r){return r.overallProgress&&h1}function h1(){this.agent.dirty(),this.getDownstream().dirty()}function v1(){this.agent&&this.agent.dirty()}function d1(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function p1(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?N(t,function(e,a){return dg(a)}):g1}var g1=dg(0);function dg(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 y1(r){return r.data.count()}function m1(r){Hi=null;try{r(xn,pg)}catch{}return Hi}var xn={},pg={},Hi;gg(xn,Up);gg(pg,$p);xn.eachSeriesByType=xn.eachRawSeriesByType=function(r){Hi=r};xn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Hi=r.subType)};function gg(r,t){for(var e in t.prototype)r[e]=bt}const yg=u1;var _f=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _1={color:_f,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],_f]};var Ne="#B9B8CE",xf="#100C2A",Kn=function(){return{axisLine:{lineStyle:{color:Ne}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Sf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],mg={darkMode:!0,color:Sf,backgroundColor:xf,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ne}},textStyle:{color:Ne},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ne}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ne},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ne}},timeline:{lineStyle:{color:Ne},label:{color:Ne},controlStyle:{color:Ne,borderColor:Ne}},calendar:{itemStyle:{color:xf},dayLabel:{color:Ne},monthLabel:{color:Ne},yearLabel:{color:Ne}},timeAxis:Kn(),logAxis:Kn(),valueAxis:Kn(),categoryAxis:Kn(),line:{symbol:"circle"},graph:{color:Sf},gauge:{title:{color:Ne},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ne},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};mg.categoryAxis.splitLine.show=!1;const x1=mg;var S1=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(G(t)){var i=xt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};S(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var v=o[f],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(f,v,h,d){return f[h]==null||v[d||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),sl=["symbol","symbolSize","symbolRotate","symbolOffset"],bf=sl.concat(["symbolKeepAspect"]),b1={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<sl.length;o++){var s=sl[o],l=r.get(s);Z(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Le(n);function c(f,v){for(var h=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(v,g,n[g](h,d))}}return{dataEach:i?c:null}}},w1={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<bf.length;s++){var l=bf[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function _g(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 xg(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 T1(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 Sg(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}S([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=O({},n),o.dispatchAction(O(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Zr(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 f=o.getData(),v=Or(f,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:k(v)?f.getName(v[0]):f.getName(v),selected:G(l)?l:O({},l)})}})}function A1(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Zr("map","selectchanged",t,n,a),Zr("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Zr("map","selected",t,n,a),Zr("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Zr("map","unselected",t,n,a),Zr("pie","unselected",t,n,a))})}function aa(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var C1=De.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()}}),M1=De.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()}}),D1=De.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-f*h,l+s+v*h,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-c+f*h,l+s+v*h,e-c,l+s),r.closePath()}}),I1=De.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()}}),L1={line:Ze,rect:oe,roundRect:oe,square:oe,circle:Nt,diamond:M1,pin:D1,arrow:I1,triangle:C1},P1={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}},Ui={};S(L1,function(r,t){Ui[t]=new r});var R1=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Us(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=Ui[a];n||(a="rect",n=Ui[a]),P1[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function E1(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Oe(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=hp(r.slice(8),new ge(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=jl(r.slice(7),{},new ge(t,e,a,n),o?"center":"cover"):l=new R1({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=E1,i&&l.setColor(i),l}function gu(r){return k(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function bo(r,t){if(r!=null)return k(r)||(r=[r,r]),[$(r[0],t[0])||0,$(ve(r[1],r[0]),t[1])||0]}var Ko=new L0,wf=new Id(100),Tf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $i(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Ko.delete(r);var i=Ko.get(r);if(i)return i;var o=K(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,Ko.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],f=!0,v=0;v<Tf.length;++v){var h=o[Tf[v]];if(h!=null&&!k(h)&&!G(h)&&!fe(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=wf.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=wg(o.dashArrayX),y=k1(o.dashArrayY),m=bg(o.symbol),_=O1(g),x=Tg(y),w=!n&&Ed.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;w&&(w.width=T.width*e,w.height=T.height*e,A=w.getContext("2d")),D(),f&&wf.put(d,w||b),u.image=w,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=dc(M,_[I]);for(var R=1,I=0,L=m.length;I<L;++I)R=dc(R,m[I].length);M*=R;var E=x*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function D(){A&&(A.clearRect(0,0,w.width,w.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,w.width,w.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var L=-x,R=0,E=0,V=0;L<T.height;){if(R%2===0){for(var X=E/2%m.length,B=0,F=0,Y=0;B<T.width*2;){for(var re=0,I=0;I<g[V].length;++I)re+=g[V][I];if(re<=0)break;if(F%2===0){var ue=(1-o.symbolSize)*.5,ce=B+g[V][F]*ue,Ce=L+y[R]*ue,ot=g[V][F]*o.symbolSize,be=y[R]*o.symbolSize,$t=Y/2%m[X].length;Yt(ce,Ce,ot,be,m[X][$t])}B+=g[V][F],++Y,++F,F===g[V].length&&(F=0)}++V,V===g.length&&(V=0)}L+=y[R],++E,++R,R===y.length&&(R=0)}function Yt(Ma,Da,Gn,Fn,Wn){var vr=n?1:e,Zt=Oe(Wn,Ma*vr,Da*vr,Gn*vr,Fn*vr,o.color,o.symbolKeepAspect);if(n){var It=a.painter.renderOneToVNode(Zt);It&&b.children.push(It)}else P0(A,Zt)}}}}function bg(r){if(!r||r.length===0)return[["rect"]];if(G(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!G(r[e])){t=!1;break}if(t)return bg([r]);for(var a=[],e=0;e<r.length;++e)G(r[e])?a.push([r[e]]):a.push(r[e]);return a}function wg(r){if(!r||r.length===0)return[[0,0]];if(fe(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!fe(r[a])){e=!1;break}if(e)return wg([r]);for(var n=[],a=0;a<r.length;++a)if(fe(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=N(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function k1(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(fe(r)){var t=Math.ceil(r);return[t,t]}var e=N(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function O1(r){return N(r,function(t){return Tg(t)})}function Tg(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function B1(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=$i(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=$i(n,t)}}})}var N1=new ma;const lt=N1;var Ag={};function V1(r,t){Ag[r]=t}function z1(r){return Ag[r]}var G1=typeof window<"u",F1=1,W1=800,H1=900,U1=1e3,$1=2e3,Y1=5e3,Cg=1e3,Z1=1100,yu=2e3,Mg=3e3,X1=4e3,wo=4500,K1=4600,q1=5e3,j1=6e3,Dg=7e3,J1={PROCESSOR:{FILTER:U1,SERIES_FILTER:W1,STATISTIC:Y1},VISUAL:{LAYOUT:Cg,PROGRESSIVE_LAYOUT:Z1,GLOBAL:yu,CHART:Mg,POST_CHART_LAYOUT:K1,COMPONENT:X1,BRUSH:q1,CHART_ITEM:wo,ARIA:j1,DECAL:Dg}},Re="__flagInMainProcess",ze="__pendingUpdate",qo="__needsUpdateStatus",Af=/^[a-zA-Z0-9_]+$/,jo="__connectUpdateStatus",Cf=0,Q1=1,eb=2;function Ig(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Pg(this,r,t)}}function Lg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Pg(this,r,t)}}function Pg(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),ma.prototype[t].apply(r,e)}var Rg=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ma),Eg=Rg.prototype;Eg.on=Lg("on");Eg.off=Lg("off");var Xr,Jo,qn,Kt,Qo,es,ts,Oa,Ba,Mf,Df,rs,If,jn,Lf,kg,Ke,Pf,Og=function(r){P(t,r);function t(e,a,n){var i=r.call(this,new S1)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},G(a)&&(a=Bg[a]),i._dom=e;var o="canvas",s=!1,l=i._zr=ic(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:n.useDirtyRect==null?s:n.useDirtyRect});i._ssr=n.ssr,i._throttledZrFlush=pu(z(l.flush,l),17),a=U(a),a&&Zp(a,!0),i._theme=a,i._locale=Mx(n.locale||xp),i._coordSysMgr=new su;var u=i._api=Lf(i);function c(f,v){return f.__prio-v.__prio}return Eo(Zi,c),Eo(ll,c),i._scheduler=new yg(i,u,ll,Zi),i._messageCenter=new Rg,i._initEvents(),i.resize=z(i.resize,i),l.animation.on("frame",i._onframe,i),Mf(l,i),Df(l,i),Hs(i),i}return t.prototype._onframe=function(){if(!this._disposed){Pf(this);var e=this._scheduler;if(this[ze]){var a=this[ze].silent;this[Re]=!0;try{Xr(this),Kt.update.call(this,null,this[ze].updateParams)}catch(l){throw this[Re]=!1,this[ze]=null,l}this._zr.flush(),this[Re]=!1,this[ze]=null,Oa.call(this,a),Ba.call(this,a)}else if(e.unfinished){var n=F1,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),es(this,i),e.performVisualTasks(i),jn(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[Re]){if(this._disposed){this.id;return}var i,o,s;if(H(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Re]=!0,!this._model||a){var l=new sS(this._api),u=this._theme,c=this._model=new Up;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ul);var f={seriesTransition:s,optionChanged:!0};if(n)this[ze]={silent:i,updateParams:f},this[Re]=!1,this.getZr().wakeUp();else{try{Xr(this),Kt.update.call(this,null,f)}catch(v){throw this[ze]=null,this[Re]=!1,v}this._ssr||this._zr.flush(),this[ze]=null,this[Re]=!1,Oa.call(this,i),Ba.call(this,i)}}},t.prototype.setTheme=function(){},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||G1&&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(){if(!!me.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return S(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;S(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 S(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(Rf[n]){var l=s,u=s,c=-s,f=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();S(sn,function(_,x){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(U(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),c=o(b.right,c),f=o(b.bottom,f),v.push({dom:w,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var d=c-l,p=f-u,g=Ed.createCanvas(),y=ic(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return S(v,function(_){var x=_.left-l,w=_.top-u;m+='<g transform="translate('+x+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new oe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),S(v,function(_){var x=new zt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return Qo(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return Qo(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=en(n,e);return S(o,function(s,l){l.indexOf("Models")>=0&&S(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=en(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?_g(s,l,a):xg(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;S(tb,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&aa(s,function(d){var p=q(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=O({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var v=c&&f!=null&&o.getComponent(c,f),h=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),S(on,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),S(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),A1(this._messageCenter,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&&qd(this.getDom(),_u,"");var a=this,n=a._api,i=a._model;S(a._componentsViews,function(o){o.dispose(i,n)}),S(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete sn[a.id]},t.prototype.resize=function(e){if(!this[Re]){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[ze]&&(i==null&&(i=this[ze].silent),n=!0,this[ze]=null),this[Re]=!0;try{n&&Xr(this),Kt.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Re]=!1,o}this[Re]=!1,Oa.call(this,i),Ba.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(H(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!cl[e]){var n=cl[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=O({},e);return a.type=on[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(H(a)||(a={silent:!!a}),!!Yi[e.type]&&!!this._model){if(this[Re]){this._pendingActions.push(e);return}var n=a.silent;ts.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&me.browser.weChat&&this._throttledZrFlush(),Oa.call(this,n),Ba.call(this,n)}},t.prototype.updateLabelLayout=function(){lt.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(){Xr=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),Jo(f,!0),Jo(f,!1),v.plan()},Jo=function(f,v){for(var h=f._model,d=f._scheduler,p=v?f._componentsViews:f._chartsViews,g=v?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(b,T){b!=="series"&&x(T)}):h.eachSeries(x);function x(b){var T=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,C=!T&&g[A];if(!C){var D=xt(b.type),M=v?Ae.getClass(D.main,D.sub):Fe.getClass(D.sub);C=new M,C.init(h,m),g[A]=C,p.push(C),y.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(C,b,h,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},qn=function(f,v,h,d,p){var g=f._model;if(g.setUpdatePayload(h),!d){S([].concat(f._componentsViews).concat(f._chartsViews),w);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=h.excludeSeriesId,x;_!=null&&(x=W(),S(le(_),function(b){var T=ke(b,null);T!=null&&x.set(T,!0)})),g&&g.eachComponent(m,function(b){var T=x&&x.get(b.id)!==null;if(!T)if(Cc(h))if(b instanceof dt)h.type===Dr&&!h.notBlur&&!b.get(["emphasis","disabled"])&&W_(b,h,f._api);else{var A=Xl(b.mainType,b.componentIndex,h.name,f._api),C=A.focusSelf,D=A.dispatchers;h.type===Dr&&C&&!h.notBlur&&Xs(b.mainType,b.componentIndex,f._api),D&&S(D,function(M){h.type===Dr?fa(M):ha(M)})}else qs(h)&&b instanceof dt&&($_(b,h,f._api),Tc(b),Ke(f))},f),g&&g.eachComponent(m,function(b){var T=x&&x.get(b.id)!==null;T||w(f[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},f);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,f._api,h)}},Kt={prepareAndUpdate:function(f){Xr(this),Kt.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,d),y.performDataProcessorTasks(h,f),es(this,h),g.update(h,d),e(h),y.performVisualTasks(h,f),rs(this,h,d,f,v);var m=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),lt.trigger("afterupdate",h,d)}},updateTransform:function(f){var v=this,h=this._model,d=this._api;if(!!h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,h,d,f);x&&x.update&&p.push(_)}else p.push(_)}});var g=W();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,h,d,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),jn(this,h,d,f,{},g),lt.trigger("afterupdate",h,d)}},updateView:function(f){var v=this._model;!v||(v.setUpdatePayload(f),Fe.markUpdateMethod(f,"updateView"),e(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0}),rs(this,v,this._api,f,{}),lt.trigger("afterupdate",v,this._api))},updateVisual:function(f){var v=this,h=this._model;!h||(h.setUpdatePayload(f),h.eachSeries(function(d){d.getData().clearAllVisual()}),Fe.markUpdateMethod(f,"updateVisual"),e(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,f)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,f)}),lt.trigger("afterupdate",h,this._api))},updateLayout:function(f){Kt.update.call(this,f)}},Qo=function(f,v,h,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=en(p,h),_=0;_<g.length;_++){var x=g[_];if(x[v]&&(y=x[v](p,m,d))!=null)return y}},es=function(f,v){var h=f._chartsMap,d=f._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},ts=function(f,v){var h=this,d=this.getModel(),p=f.type,g=f.escapeConnect,y=Yi[p],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&xt(_[0]);this[Re]=!0;var b=[f],T=!1;f.batch&&(T=!0,b=N(f.batch,function(R){return R=K(O({},R),f),R.batch=null,R}));var A=[],C,D=qs(f),M=Cc(f);if(M&&up(this._api),S(b,function(R){if(C=y.action(R,h._model,h._api),C=C||O({},R),C.type=m.event||C.type,A.push(C),M){var E=Wl(f),V=E.queryOptionMap,X=E.mainTypeSpecified,B=X?V.keys()[0]:"series";qn(h,x,R,B),Ke(h)}else D?(qn(h,x,R,"series"),Ke(h)):w&&qn(h,x,R,w.main,w.sub)}),x!=="none"&&!M&&!D&&!w)try{this[ze]?(Xr(this),Kt.update.call(this,f),this[ze]=null):Kt[x].call(this,f)}catch(R){throw this[Re]=!1,R}if(T?C={type:m.event||p,escapeConnect:g,batch:A}:C=A[0],this[Re]=!1,!v){var I=this._messageCenter;if(I.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:g,selected:Y_(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(L.type,L)}}},Oa=function(f){for(var v=this._pendingActions;v.length;){var h=v.shift();ts.call(this,h,f)}},Ba=function(f){!f&&this.trigger("updated")},Mf=function(f,v){f.on("rendered",function(h){v.trigger("rendered",h),f.animation.isFinished()&&!v[ze]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Df=function(f,v){f.on("mouseover",function(h){var d=h.target,p=aa(d,Ks);p&&(H_(p,h,v._api),Ke(v))}).on("mouseout",function(h){var d=h.target,p=aa(d,Ks);p&&(U_(p,h,v._api),Ke(v))}).on("click",function(h){var d=h.target,p=aa(d,function(m){return q(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=q(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(v){v.clearColorPalette()})}function a(f){var v=[],h=[],d=!1;if(f.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:v).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(h),g,y;Eo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),S(p,function(m){var _=f.getComponent(m.type,m.idx),x=m.zlevel,w=m.key;g!=null&&(x=Math.max(g,x)),w?(x===g&&w!==y&&x++,y=w):y&&(x===g&&x++,y=""),g=x,_.setZLevel(x)})}}rs=function(f,v,h,d,p){a(v),If(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive=!1}),jn(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive||g.remove(v,h)})},If=function(f,v,h,d,p,g){S(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),s(m,y),c(m,y)})},jn=function(f,v,h,d,p,g){var y=f._scheduler;p=O(p||{},{updatedSeries:v.getSeries()}),lt.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var x=f._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,d),u(_,x),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),Tc(_)}),y.unfinished=m||y.unfinished,lt.trigger("series:layoutlabels",v,h,p),lt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var x=f._chartsMap[_.__viewId];s(_,x),c(_,x)}),i(f,v),lt.trigger("series:afterupdate",v,h,p)},Ke=function(f){f[qo]=!0,f.getZr().wakeUp()},Pf=function(f){!f[qo]||(f.getZr().storage.traverse(function(v){na(v)||n(v)}),f[qo]=!1)};function n(f){for(var v=[],h=f.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}f.selected&&f.states.select&&v.push("select"),f.hoverState===oo&&f.states.emphasis?v.push("emphasis"):f.hoverState===io&&f.states.blur&&v.push("blur"),f.useStates(v)}function i(f,v){var h=f._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!me.node&&!me.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,v){var h=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(f,v){if(!f.preventAutoZ){var h=f.get("z")||0,d=f.get("zlevel")||0;v.eachRendered(function(p){return l(p,h,d,-1/0),!0})}}function l(f,v,h,d){var p=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],v,h,d),d);else f.z=v,f.zlevel=h,d=Math.max(f.z2,d);if(p&&(p.z=v,p.zlevel=h,isFinite(d)&&(p.z2=d+2)),g){var x=f.textGuideLineConfig;g.z=v,g.zlevel=h,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function u(f,v){v.eachRendered(function(h){if(!na(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,v){var h=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(na(y))return;if(y instanceof De&&J_(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&n(y)}})}Lf=function(f){return new(function(v){P(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){fa(d,p),Ke(f)},h.prototype.leaveEmphasis=function(d,p){ha(d,p),Ke(f)},h.prototype.enterBlur=function(d){F_(d),Ke(f)},h.prototype.leaveBlur=function(d){ip(d),Ke(f)},h.prototype.enterSelect=function(d){op(d),Ke(f)},h.prototype.leaveSelect=function(d){sp(d),Ke(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},h}($p))(f)},kg=function(f){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[jo]=d}}S(on,function(h,d){f._messageCenter.on(d,function(p){if(Rf[f.group]&&f[jo]!==Cf){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),y=[];S(sn,function(m){m!==f&&m.group===f.group&&y.push(m)}),v(y,Cf),S(y,function(m){m[jo]!==Q1&&m.dispatchAction(g)}),v(y,eb)}})})}}(),t}(ma),mu=Og.prototype;mu.on=Ig("on");mu.off=Ig("off");mu.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 tb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Yi={},on={},ll=[],ul=[],Zi=[],Bg={},cl={},sn={},Rf={},rb=+new Date-0,_u="_echarts_instance_";function CR(r,t,e){var a=!(e&&e.ssr);if(a){var n=ab(r);if(n)return n}var i=new Og(r,t,e);return i.id="ec_"+rb++,sn[i.id]=i,a&&qd(r,_u,i.id),kg(i),lt.trigger("afterinit",i),i}function ab(r){return sn[x_(r,_u)]}function Ng(r,t){Bg[r]=t}function Vg(r){ie(ul,r)<0&&ul.push(r)}function zg(r,t){Su(ll,r,t,$1)}function nb(r){xu("afterinit",r)}function ib(r){xu("afterupdate",r)}function xu(r,t){lt.on(r,t)}function Mt(r,t,e){Z(t)&&(e=t,t="");var a=H(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!on[t]&&(tt(Af.test(a)&&Af.test(t)),Yi[a]||(Yi[a]={action:e,actionInfo:r}),on[t]=a)}function ob(r,t){su.register(r,t)}function sb(r,t){Su(Zi,r,t,Cg,"layout")}function Fr(r,t){Su(Zi,r,t,Mg,"visual")}var Ef=[];function Su(r,t,e,a,n){if((Z(t)||H(t))&&(e=t,t=a),!(ie(Ef,e)>=0)){Ef.push(e);var i=yg.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Gg(r,t){cl[r]=t}function lb(r,t,e){var a=z1("registerMap");a&&a(r,t,e)}var ub=RS;Fr(yu,i1);Fr(wo,o1);Fr(wo,s1);Fr(yu,b1);Fr(wo,w1);Fr(Dg,B1);Vg(Zp);zg(H1,pS);Gg("default",l1);Mt({type:Dr,event:Dr,update:Dr},bt);Mt({type:Si,event:Si,update:Si},bt);Mt({type:tn,event:tn,update:tn},bt);Mt({type:bi,event:bi,update:bi},bt);Mt({type:rn,event:rn,update:rn},bt);Ng("light",_1);Ng("dark",x1);function Na(r){return r==null?0:r.length||1}function kf(r){return r}var cb=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||kf,this._newKeyGetter=n||kf,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=Na(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=Na(u),v=Na(c);if(f>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&v===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var h=0;h<f;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=Na(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=Na(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Sn=cb;var fb=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 hb(r,t){var e={},a=e.encode={},n=W(),i=[],o=[],s={};S(r.dimensions,function(v){var h=r.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;as(a,d)[p]=v,h.isExtraCoord||(n.set(d,1),db(h.type)&&(i[0]=v),as(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Bp.each(function(g,y){var m=as(a,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};n.each(function(v,h){var d=a[h];u[h]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=N(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new fb(s,t),e}function as(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function vb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function db(r){return!(r==="ordinal"||r==="time")}var pb=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}();const Mi=pb;var gb=ne(),yb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Fg=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=Ug(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ve(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=Kp(this.source),a=!$g(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=e?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=yb[u]||"f",c&&(n+=c.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Wg(r){return r instanceof Fg}function Hg(r){for(var t=W(),e=0;e<(r||[]).length;e++){var a=r[e],n=H(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Ug(r){var t=gb(r);return t.dimNameMap||(t.dimNameMap=Hg(r.dimensionsDefine))}function $g(r){return r>30}var Va=H,qt=N,mb=typeof Int32Array>"u"?Array:Int32Array,_b="e\0\0",Of=-1,xb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Sb=["_approximateExtent"],Bf,Jn,za,Ga,ns,Qn,is,bb=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;Wg(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],v=G(f)?new Mi({name:f}):f instanceof Mi?f:new Mi(f),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),n&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=W();S(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(fe(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 al&&(i=t),!i){var o=this.dimensions,s=lu(t)||In(t)?new qp(t,o.length):t;i=new al;var l=qt(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=hb(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&is(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!==nr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===it;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&s_(f)&&(this.hasItemOption=!0),f){var v=f.name;i[c]==null&&v!=null&&(i[c]=ke(v,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=ke(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)is(this,c);Bf(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){Va(t)?O(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=za(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 Jn(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 k(t)?n.getValues(qt(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[e];return n==null||isNaN(n)?Of:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){Z(t)&&(a=e,e=t,t=[]);var n=a||this,i=qt(Ga(t),this._getStoreDimIndex,this);this._store.each(i,n?z(e,n):e)},r.prototype.filterSelf=function(t,e,a){Z(t)&&(a=e,e=t,t=[]);var n=a||this,i=qt(Ga(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=Le(t);return S(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){Z(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=qt(Ga(t),this._getStoreDimIndex,this),s=Qn(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=qt(Ga(t),this._getStoreDimIndex,this);this._store.modify(o,i?z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Qn(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.lttbDownSample=function(t,e){var a=Qn(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 Se(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Sn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Jn(t,a)},function(a){return Jn(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||{},Va(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n==null?this.getVisual(e):n},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),k(i)?i=i.slice():Va(i)&&(i=O({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Va(e)?O(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Va(t)?O(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?O(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;E_(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){S(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:qt(this.dimensions,this._getDimInfo,this),this.hostModel)),ns(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!Z(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(R0(arguments)))})},r.internalField=function(){Bf=function(t){var e=t._invertedIndicesMap;S(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new mb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Of;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},za=function(t,e,a){return ke(t._getCategory(e,a),null)},Jn=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=za(t,t._idDimIdx,e)),a==null&&(a=_b+e),a},Ga=function(t){return k(t)||(t=t!=null?[t]:[]),t},Qn=function(t){var e=new r(t._schema?t._schema:qt(t.dimensions,t._getDimInfo,t),t.hostModel);return ns(e,t),e},ns=function(t,e){S(xb.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,S(Sb,function(a){t[a]=U(e[a])}),t._calculationInfo=O({},e._calculationInfo)},is=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=za(t,i,e)),l==null&&o!=null&&(n[e]=l=za(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}}(),r}();const bu=bb;function Yg(r,t){lu(r)||(r=uu(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=W(),i=[],o=Tb(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$g(o),l=a===r.dimensionsDefine,u=l?Ug(r):Hg(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=W(c),v=new rg(o),h=0;h<v.length;h++)v[h]=-1;function d(C){var D=v[C];if(D<0){var M=a[C],I=H(M)?M:{name:M},L=new Mi,R=I.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var E=i.length;return v[C]=E,L.storeDimIndex=C,i.push(L),L}return i[D]}if(!s)for(var h=0;h<o;h++)d(h);f.each(function(C,D){var M=le(C).slice();if(M.length===1&&!G(M[0])&&M[0]<0){f.set(D,!1);return}var I=f.set(D,[]);S(M,function(L,R){var E=G(L)?u.get(L):L;E!=null&&E<o&&(I[R]=E,g(d(E),D,R))})});var p=0;S(e,function(C){var D,M,I,L;if(G(C))D=C,L={};else{L=C,D=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=O({},L),L.ordinalMeta=R,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=f.get(D);if(E!==!1){if(E=le(E),!E.length)for(var V=0;V<(M&&M.length||1);V++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}S(E,function(X,B){var F=d(X);if(l&&L.type!=null&&(F.type=L.type),g(K(F,L),D,B),F.name==null&&M){var Y=M[B];!H(Y)&&(Y={name:Y}),F.name=F.displayName=Y.name,F.defaultTooltip=Y.defaultTooltip}I&&K(F.otherDims,I)})}});function g(C,D,M){Bp.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,n.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)S(i,function(C){w(C)}),i.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var T=d(b),A=T.coordDim;A==null&&(T.coordDim=Ab(x,n,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),w(T),T.type==null&&(Gp(r,b)===Pe.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return wb(i),new Fg({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function wb(r){for(var t=W(),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 Tb(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return S(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Ab(r,t,e){var a=t.data;if(e||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var Cb=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function Mb(r){var t=r.get("coordinateSystem"),e=new Cb(t),a=Db[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Db={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Me).models[0],i=r.getReferringComponents("yAxis",Me).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Kr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Kr(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Me).models[0];t.coordSysDims=["single"],e.set("single",n),Kr(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Me).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Kr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Kr(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();S(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Kr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Kr(r){return r.get("type")==="category"}function Ib(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Lb(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,v;if(S(i,function(m,_){G(m)&&(i[_]=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){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,d=c.type,p=0;S(i,function(m){m.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:f}}function Lb(r){return!Wg(r.schema)}function Nr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Pb(r,t){return Nr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Rb(r,t){var e=r.get("coordinateSystem"),a=su.get(e),n;return t&&t.coordSysDims&&(n=N(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=vb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Eb(r,t,e){var a,n;return e&&S(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 To(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=uu(r)):(n=a.getSource(),i=n.sourceFormat===it);var o=Mb(t),s=Rb(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?ee(Wx,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Yg(n,c),v=Eb(f.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(f),d=Ib(t,{schema:f,store:h}),p=new bu(f,t);p.setCalculationInfo(d);var g=v!=null&&kb(n)?function(y,m,_,x){return x===v?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function kb(r){if(r.sourceFormat===it){var t=Ob(r.data||[]);return!k(_a(t))}}function Ob(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Zg=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();no(Zg);const Ut=Zg;var Bb=0,Nb=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Bb}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&N(a,Vb);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(!G(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function Vb(r){return H(r)&&r.value!=null?r.value:r+""}const fl=Nb;function hl(r){return r.type==="interval"||r.type==="log"}function zb(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Wd(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=Xg(o),l=n.niceTickExtent=[xe(Math.ceil(r[0]/o)*o,s),xe(Math.floor(r[1]/o)*o,s)];return Gb(l,r),n}function os(r){var t=Math.pow(10,Gl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xe(e*t)}function Xg(r){return Et(r)+2}function Nf(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Gb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Nf(r,0,t),Nf(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ao(r,t){return r>=t[0]&&r<=t[1]}function Co(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Mo(r,t){return r*(t[1]-t[0])+t[0]}var Kg=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new fl({})),k(n)&&(n=new fl({categories:N(n,function(i){return H(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:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ao(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Co(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Mo(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ut);Ut.registerClass(Kg);const wu=Kg;var _r=xe,qg=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ao(e,this._extent)},t.prototype.normalize=function(e){return Co(e,this._extent)},t.prototype.scale=function(e){return Mo(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xg(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:_r(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=_r(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:_r(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],f=s.value-l.value,v=f/e;u<e-1;){var h=_r(l.value+(u+1)*v);h>i[0]&&h<i[1]&&c.push(h),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Et(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=_r(e.value,n,!0);return Lp(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=zb(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=a[0];e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=_r(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=_r(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(Ut);Ut.registerClass(qg);const ur=qg;var jg=typeof Float32Array<"u",Fb=jg?Float32Array:Array;function kt(r){return k(r)?jg?new Float32Array(r):r:new Fb(r)}var Wb="__ec_stack_";function Tu(r){return r.get("stack")||Wb+r.seriesIndex}function Au(r){return r.dim+r.index}function Jg(r,t){var e=[];return t.eachSeriesByType(r,function(a){ry(a)&&e.push(a)}),e}function Hb(r){var t={};S(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),v=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(h,p);t[v]?t[v].push(y):t[v]=[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 Qg(r){var t=Hb(r),e=[];return S(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?c/v*u:c}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=$(a.get("barWidth"),s),p=$(a.get("barMaxWidth"),s),g=$(a.get("barMinWidth")||(ay(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Au(i),stackId:Tu(a)})}),Ub(e)}function Ub(r){var t={};S(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return S(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Le(i).length;s=Math.max(35-l*4,15)+"%"}var u=$(s,o),c=$(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,h=(f-u)/(v+(v-1)*c);h=Math.max(h,0),S(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,f-=x+c*x,v--}else{var x=h;m&&m<x&&(x=Math.min(m,f)),_&&_>x&&(x=_),x!==h&&(y.width=x,f-=x+c*x,v--)}}),h=(f-u)/(v+(v-1)*c),h=Math.max(h,0);var d=0,p;S(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;S(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function $b(r,t,e){if(r&&t){var a=r[Au(t)];return a!=null&&e!=null?a[Tu(e)]:a}}function ey(r,t){var e=Jg(r,t),a=Qg(e);S(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Tu(n),u=a[Au(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function ty(r){return{seriesType:r,plan:vu(),reset:function(t){if(!!ry(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Nr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=Yb(n,i),d=ay(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,x){for(var w=_.count,b=d&&kt(w*3),T=d&&l&&kt(w*3),A=d&&kt(w),C=a.master.getRect(),D=v?C.width:C.height,M,I=x.getStore(),L=0;(M=_.next())!=null;){var R=I.get(f?g:o,M),E=I.get(s,M),V=h,X=void 0;f&&(X=+R-I.get(o,M));var B=void 0,F=void 0,Y=void 0,re=void 0;if(v){var ue=a.dataToPoint([R,E]);if(f){var ce=a.dataToPoint([X,E]);V=ce[0]}B=V,F=ue[1]+m,Y=ue[0]-V,re=y,Math.abs(Y)<p&&(Y=(Y<0?-1:1)*p)}else{var ue=a.dataToPoint([E,R]);if(f){var ce=a.dataToPoint([E,X]);V=ce[1]}B=ue[0]+m,F=V,Y=y,re=ue[1]-V,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}d?(b[L]=B,b[L+1]=F,b[L+2]=v?Y:re,T&&(T[L]=v?C.x:B,T[L+1]=v?F:C.y,T[L+2]=D),A[M]=M):x.setItemLayout(M,{x:B,y:F,width:Y,height:re}),L+=3}d&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function ry(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ay(r){return r.pipelineContext&&r.pipelineContext.large}function Yb(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var Zb=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},ny=function(r){P(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 vo(e.value,Bc[Lx(ia(this._minLevelUnit))]||Bc.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Px(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=ew(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=et,a[1]+=et),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]-et}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ei.length,l=Math.min(Zb(ei,this._approxInterval,0,s),s-1);this._interval=ei[l][1],this._minLevelUnit=ei[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return fe(e)?e:+wt(e)},t.prototype.contain=function(e){return Ao(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Co(this.parse(e),this._extent)},t.prototype.scale=function(e){return Mo(e,this._extent)},t.type="time",t}(ur),ei=[["second",eu],["minute",tu],["hour",an],["quarter-day",an*6],["half-day",an*12],["day",et*1.2],["half-week",et*3.5],["week",et*7],["month",et*31],["quarter",et*95],["half-year",Oc/2],["year",Oc]];function Xb(r,t,e,a){var n=wt(t),i=wt(e),o=function(d){return Nc(n,d,a)===Nc(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},v=function(){return f()&&o("second")},h=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return v();case"millisecond":return h()}}function Kb(r,t){return r/=et,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qb(r){var t=30*et;return r/=t,r>6?6:r>3?3:r>2?2:1}function jb(r){return r/=an,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Vf(r,t){return r/=t?tu:eu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Jb(r){return Wd(r,!0)}function Qb(r,t,e){var a=new Date(r);switch(ia(t)){case"year":case"month":a[Tp(e)](0);case"day":a[Ap(e)](1);case"hour":a[Cp(e)](0);case"minute":a[Mp(e)](0);case"second":a[Dp(e)](0),a[Ip(e)](0)}return a.getTime()}function ew(r,t,e,a){var n=1e4,i=bp,o=0;function s(D,M,I,L,R,E,V){for(var X=new Date(M),B=M,F=X[L]();B<I&&B<=a[1];)V.push({value:B}),F+=D,X[R](F),B=X.getTime();V.push({value:B,notAdd:!0})}function l(D,M,I){var L=[],R=!M.length;if(!Xb(ia(D),a[0],a[1],e)){R&&(M=[{value:Qb(new Date(a[0]),D,e)},{value:a[1]}]);for(var E=0;E<M.length-1;E++){var V=M[E].value,X=M[E+1].value;if(V!==X){var B=void 0,F=void 0,Y=void 0,re=!1;switch(D){case"year":B=Math.max(1,Math.round(t/et/365)),F=ru(e),Y=Rx(e);break;case"half-year":case"quarter":case"month":B=qb(t),F=oa(e),Y=Tp(e);break;case"week":case"half-week":case"day":B=Kb(t),F=po(e),Y=Ap(e),re=!0;break;case"half-day":case"quarter-day":case"hour":B=jb(t),F=gn(e),Y=Cp(e);break;case"minute":B=Vf(t,!0),F=go(e),Y=Mp(e);break;case"second":B=Vf(t,!1),F=yo(e),Y=Dp(e);break;case"millisecond":B=Jb(t),F=mo(e),Y=Ip(e);break}s(B,V,X,F,Y,re,L),D==="year"&&I.length>1&&E===0&&I.unshift({value:I[0].value-B})}}for(var E=0;E<L.length;E++)I.push(L[E]);return L}}for(var u=[],c=[],f=0,v=0,h=0;h<i.length&&o++<n;++h){var d=ia(i[h]);if(!!Ix(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?ia(i[h+1]):null;if(d!==p){if(c.length){v=f,c.sort(function(D,M){return D.value-M.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=a[0]&&m<=a[1]&&f++)}var _=(a[1]-a[0])/t;if(f>_*1.5&&v>_/1.5||(u.push(g),f>_||r===i[h]))break}c=[]}}}for(var x=pe(N(u,function(D){return pe(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],b=x.length-1,h=0;h<x.length;++h)for(var T=x[h],A=0;A<T.length;++A)w.push({value:T[A].value,level:b-h});w.sort(function(D,M){return D.value-M.value});for(var C=[],h=0;h<w.length;++h)(h===0||w[h].value!==w[h-1].value)&&C.push(w[h]);return C}Ut.registerClass(ny);const iy=ny;var zf=Ut.prototype,ln=ur.prototype,tw=xe,rw=Math.floor,aw=Math.ceil,ti=Math.pow,qe=Math.log,Cu=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ur,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=ln.getTicks.call(this,e);return N(o,function(s){var l=s.value,u=xe(ti(this.base,l));return u=l===n[0]&&this._fixMin?ri(u,i[0]):u,u=l===n[1]&&this._fixMax?ri(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=this.base;e=qe(e)/qe(n),a=qe(a)/qe(n),ln.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=zf.getExtent.call(this);a[0]=ti(e,a[0]),a[1]=ti(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=ri(a[0],i[0])),this._fixMax&&(a[1]=ri(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=qe(e[0])/qe(a),e[1]=qe(e[1])/qe(a),zf.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=o_(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[xe(aw(a[0]/i)*i),xe(rw(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ln.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=qe(e)/qe(this.base),Ao(e,this._extent)},t.prototype.normalize=function(e){return e=qe(e)/qe(this.base),Co(e,this._extent)},t.prototype.scale=function(e){return e=Mo(e,this._extent),ti(this.base,e)},t.type="log",t}(Ut),oy=Cu.prototype;oy.getMinorTicks=ln.getMinorTicks;oy.getLabel=ln.getLabel;function ri(r,t){return tw(r,Et(t))}Ut.registerClass(Cu);const nw=Cu;var iw=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=this._modelMinRaw=e.get("min",!0);Z(i)?this._modelMinNum=ai(t,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=ai(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Z(o)?this._modelMaxNum=ai(t,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=ai(t,o)),n)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=k(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ua(l[0],1),ua(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=$s(s)||$s(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[sw[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ow[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ow={min:"_determinedMin",max:"_determinedMax"},sw={min:"_dataMin",max:"_dataMax"};function sy(r,t,e){var a=r.rawExtentInfo;return a||(a=new iw(r,t,e),r.rawExtentInfo=a,a)}function ai(r,t){return t==null?null:$s(t)?NaN:r.parse(t)}function ly(r,t){var e=r.type,a=sy(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=Jg("bar",o),l=!1;if(S(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Qg(s),c=lw(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function lw(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=$b(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;S(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;S(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,f=1-(s+l)/i,v=c/f-c;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function bn(r,t){var e=t,a=ly(r,e),n=a.extent,i=e.get("splitNumber");r instanceof nw&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Mu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new iy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ut.getClass(t)||ur)}}function uw(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Vn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):G(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):Z(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Du(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Du(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function cw(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof wu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Vn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},v=s(f,c),h=o.getTextRect(v),d=fw(h,o.get("rotate")||0);l?l.union(d):l=d}return l}}function fw(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new ge(r.x,r.y,i,o);return s}function Iu(r){var t=r.get("interval");return t==null?"auto":t}function uy(r){return r.type==="category"&&Iu(r.getLabelModel())===0}function Xi(r,t){var e={};return S(r.mapDimensionsAll(t),function(a){e[Pb(r,a)]=!0}),Le(e)}function hw(r,t,e){t&&S(Xi(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])})}var Do=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Gf=[],vw={registerPreprocessor:Vg,registerProcessor:zg,registerPostInit:nb,registerPostUpdate:ib,registerUpdateLifecycle:xu,registerAction:Mt,registerCoordinateSystem:ob,registerLayout:sb,registerVisual:Fr,registerTransform:ub,registerLoading:Gg,registerMap:lb,registerImpl:V1,PRIORITY:J1,ComponentModel:te,ComponentView:Ae,SeriesModel:dt,ChartView:Fe,registerComponentModel:function(r){te.registerClass(r)},registerComponentView:function(r){Ae.registerClass(r)},registerSeriesModel:function(r){dt.registerClass(r)},registerChartView:function(r){Fe.registerClass(r)},registerSubTypeDefaulter:function(r,t){te.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){E0(r,t)}};function Be(r){if(k(r)){S(r,function(t){Be(t)});return}ie(Gf,r)>=0||(Gf.push(r),Z(r)&&(r={install:r}),r.install(vw))}var dw=[];function ss(r,t){for(var e=0;e<r.length;e++)rt(r[e],r[e],t)}function Ff(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])&&(kd(t,t,i),Od(e,e,i))}}function pw(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 cy=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}(),Wf=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Hf=function(){function r(t){this.type="linestring",this.points=t}return r}(),fy=function(r){P(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 pw(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 S(o,function(s){s.type==="polygon"?Ff(s.exterior,n,i,e):S(s.points,function(l){Ff(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 ge(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(oc(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(oc(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 ge(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var v=c[f];v.type==="polygon"?(ss(v.exterior,u),S(v.interiors,function(h){ss(h,u)})):S(v.points,function(h){ss(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}(cy),gw=function(r){P(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=Nl(dw),o=e;o&&!o.isGeoSVGGraphicRoot;)Ri(i,o.getLocalTransform(),i),o=o.parent;return Ln(i,i),rt(n,n,i),n},t}(cy);function yw(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return S(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=hy(s,o,e);break;case"Polygon":ls(s,o,e);break;case"MultiLineString":ls(s,o,e);break;case"MultiPolygon":S(s,function(l,u){return ls(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function ls(r,t,e){for(var a=0;a<r.length;a++)r[a]=hy(r[a],t[a],e)}function hy(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 mw(r,t){return r=yw(r),N(pe(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Wf(o[0],o.slice(1)));break;case"MultiPolygon":S(n.coordinates,function(l){l[0]&&i.push(new Wf(l[0],l.slice(1)))});break;case"LineString":i.push(new Hf([n.coordinates]));break;case"MultiLineString":i.push(new Hf(n.coordinates))}var s=new fy(a[t||"name"],i,a.cp);return s.properties=a,s})}var wn=ne();function _w(r){return r.type==="category"?Sw(r):ww(r)}function xw(r,t){return r.type==="category"?bw(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function Sw(r){var t=r.getLabelModel(),e=vy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function vy(r,t){var e=dy(r,"labels"),a=Iu(t),n=py(e,a);if(n)return n;var i,o;return Z(a)?i=my(r,a):(o=a==="auto"?Tw(r):a,i=yy(r,o)),gy(e,a,{labels:i,labelCategoryInterval:o})}function bw(r,t){var e=dy(r,"ticks"),a=Iu(t),n=py(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Z(a))i=my(r,a,!0);else if(a==="auto"){var s=vy(r,r.getLabelModel());o=s.labelCategoryInterval,i=N(s.labels,function(l){return l.tickValue})}else o=a,i=yy(r,o,!0);return gy(e,a,{ticks:i,tickCategoryInterval:o})}function ww(r){var t=r.scale.getTicks(),e=Vn(r);return{labels:N(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function dy(r,t){return wn(r)[t]||(wn(r)[t]=[])}function py(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function gy(r,t,e){return r.push({key:t,value:e}),e}function Tw(r){var t=wn(r).autoInterval;return t!=null?t:wn(r).autoInterval=r.calculateCategoryInterval()}function Aw(r){var t=Cw(r),e=Vn(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),v=0,h=0;l<=i[1];l+=s){var d=0,p=0,g=ao(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),h=Math.max(h,p,7)}var y=v/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=wn(r.model),w=r.getExtent(),b=x.lastAutoInterval,T=x.lastTickCount;return b!=null&&T!=null&&Math.abs(b-_)<=1&&Math.abs(T-o)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Cw(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 yy(r,t,e){var a=Vn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=uy(r),v=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function my(r,t,e){var a=r.scale,n=Vn(r),i=[];return S(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Uf=[0,1],Mw=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Gd(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),$f(a,n.count())),he(t,Uf,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),$f(a,n.count()));var i=he(t,a,Uf,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=xw(this,e),n=a.ticks,i=N(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Dw(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=N(a,function(i){return N(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return _w(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return Aw(this)},r}();function $f(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Dw(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;S(t,function(h){h.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(h,d){return h=xe(h),d=xe(d),f?h>d:h<d}}const Dt=Mw;var Fa=Math.PI*2,xr=Bd.CMD,Iw=["top","right","bottom","left"];function Lw(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 Pw(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,f=s*e+t;if(Math.abs(a-n)%Fa<1e-4)return l[0]=c,l[1]=f,u-e;if(i){var v=a;a=Hn(n),n=Hn(v)}else a=Hn(a),n=Hn(n);a>n&&(n+=Fa);var h=Math.atan2(s,o);if(h<0&&(h+=Fa),h>=a&&h<=n||h+Fa>=a&&h+Fa<=n)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Ki(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,v=Math.sqrt(c*c+f*f);c/=v,f/=v;var h=l*c+u*f,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function _y(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 ut=[];function Rw(r,t,e){var a=_y(t.x,t.y,t.width,t.height,r.x,r.y,ut);return e.set(ut[0],ut[1]),a}function Ew(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,v=r.y,h=0;h<c.length;){var d=c[h++];h===1&&(a=c[h],n=c[h+1],i=a,o=n);var p=u;switch(d){case xr.M:i=c[h++],o=c[h++],a=i,n=o;break;case xr.L:p=Ki(a,n,c[h],c[h+1],f,v,ut,!0),a=c[h++],n=c[h++];break;case xr.C:p=O0(a,n,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,v,ut),a=c[h++],n=c[h++];break;case xr.Q:p=k0(a,n,c[h++],c[h++],c[h],c[h+1],f,v,ut),a=c[h++],n=c[h++];break;case xr.A:var g=c[h++],y=c[h++],m=c[h++],_=c[h++],x=c[h++],w=c[h++];h+=1;var b=!!(1-c[h++]);s=Math.cos(x)*m+g,l=Math.sin(x)*_+y,h<=1&&(i=s,o=l);var T=(f-g)*_/m+g;p=Pw(g,y,_,x,x+w,b,T,v,ut),a=Math.cos(x+w)*m+g,n=Math.sin(x+w)*_+y;break;case xr.R:i=a=c[h++],o=n=c[h++];var A=c[h++],C=c[h++];p=_y(i,o,A,C,f,v,ut);break;case xr.Z:p=Ki(a,n,i,o,f,v,ut,!0),a=i,n=o;break}p<u&&(u=p,e.set(ut[0],ut[1]))}return u}var ht=new we,se=new we,ye=new we,St=new we,_t=new we;function Yf(r,t){if(!!r){var e=r.getTextGuideLine(),a=r.getTextContent();if(!!(a&&e)){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||Iw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Ln([],c),v=t.get("length2")||0;u&&ye.copy(u);for(var h=0;h<o.length;h++){var d=o[h];Lw(d,0,s,ht,St),we.scaleAndAdd(se,ht,St,v),se.transform(f);var p=r.getBoundingRect(),g=u?u.distance(se):r instanceof De?Ew(se,r.path,ye):Rw(se,p,ye);g<l&&(l=g,se.transform(c),ye.transform(c),ye.toArray(i[0]),se.toArray(i[1]),ht.toArray(i[2]))}xy(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var qi=[],Ve=new we;function xy(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),ye.fromArray(r[2]),we.sub(St,ht,se),we.sub(_t,ye,se);var e=St.len(),a=_t.len();if(!(e<.001||a<.001)){St.scale(1/e),_t.scale(1/a);var n=St.dot(_t),i=Math.cos(t);if(i<n){var o=Ki(se.x,se.y,ye.x,ye.y,ht.x,ht.y,qi,!1);Ve.fromArray(qi),Ve.scaleAndAdd(_t,o/Math.tan(Math.PI-t));var s=ye.x!==se.x?(Ve.x-se.x)/(ye.x-se.x):(Ve.y-se.y)/(ye.y-se.y);if(isNaN(s))return;s<0?we.copy(Ve,se):s>1&&we.copy(Ve,ye),Ve.toArray(r[1])}}}}function kw(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),ye.fromArray(r[2]),we.sub(St,se,ht),we.sub(_t,ye,se);var a=St.len(),n=_t.len();if(!(a<.001||n<.001)){St.scale(1/a),_t.scale(1/n);var i=St.dot(t),o=Math.cos(e);if(i<o){var s=Ki(se.x,se.y,ye.x,ye.y,ht.x,ht.y,qi,!1);Ve.fromArray(qi);var l=Math.PI/2,u=Math.acos(_t.dot(t)),c=l+u-e;if(c>=l)we.copy(Ve,ye);else{Ve.scaleAndAdd(_t,s/Math.tan(Math.PI/2-c));var f=ye.x!==se.x?(Ve.x-se.x)/(ye.x-se.x):(Ve.y-se.y)/(ye.y-se.y);if(isNaN(f))return;f<0?we.copy(Ve,se):f>1&&we.copy(Ve,ye)}Ve.toArray(r[1])}}}}function Zf(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 Ow(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=sc(a[0],a[1]),i=sc(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=ko([],a[1],a[0],o/n),l=ko([],a[1],a[2],o/i),u=ko([],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 Sy(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<Ni.length;l++){var u=Ni[l],c=t[u],f=u==="normal";if(c){var v=c.get("show"),h=f?s:ve(n.states[u]&&n.states[u].ignore,s);if(h||!ve(v,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0);continue}a||(a=new At,r.setTextGuideLine(a),!f&&(s||!o)&&Zf(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Zf(a,!1,u,c)}}if(a){K(a.style,e),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=Ow}}function by(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<nt.length;a++){var n=nt[a];e[n]=r.getModel([n,t])}return e}function wy(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Ei(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function Ty(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(A,C){return A.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var v=r[f],h=v.rect;l=h[t]-s,l<0&&(h[t]-=l,v.label[t]-=l,u=!0);var d=Math.max(-l,0);c+=d,s=h[t]+h[e]}c>0&&i&&w(-c/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&T(-y),m<0&&T(m);function _(){y=p.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function x(A,C,D){if(A<0){var M=Math.min(C,-A);if(M>0){w(M*D,0,o);var I=M+A;I<0&&b(-I*D,1)}else b(-A*D,1)}}function w(A,C,D){A!==0&&(u=!0);for(var M=C;M<D;M++){var I=r[M],L=I.rect;L[t]+=A,I.label[t]+=A}}function b(A,C){for(var D=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,R=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(R),M+=R}if(!!M){var E=Math.min(Math.abs(A)/M,C);if(A>0)for(var I=0;I<o-1;I++){var V=D[I]*E;w(V,0,I+1)}else for(var I=o-1;I>0;I--){var V=D[I-1]*E;w(-V,I,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var D=Math.ceil(A/(o-1)),M=0;M<o-1;M++)if(C>0?w(D,0,M+1):w(-D,o-M-1,o),A-=D,A<=0)return}return u}function Bw(r,t,e,a){return Ty(r,"x","width",t,e,a)}function Ay(r,t,e,a){return Ty(r,"y","height",t,e,a)}function Cy(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ge(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var f=i.obb,v=!1,h=0;h<t.length;h++){var d=t[h];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Ei(d.localRect,d.transform)),f||(f=new Ei(s,l)),f.intersect(d.obb)){v=!0;break}}}v?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function Nw(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Vw(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:Nw(a&&a.shape.points)}}var Xf=["align","verticalAlign","width","height","fontSize"],$e=new ra,us=ne(),zw=ne();function ni(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var ii=["x","y","rotation"],Gw=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();ge.applyTransform(c,c,u),u?$e.setLocalTransform(u):($e.x=$e.y=$e.rotation=$e.originX=$e.originY=0,$e.scaleX=$e.scaleY=1);var f=n.__hostTarget,v;if(f){v=f.getBoundingRect().plain();var h=f.getComputedTransform();ge.applyTransform(v,v,h)}var d=v&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:$e.x,y:$e.y,scaleX:$e.scaleX,scaleY:$e.scaleY,rotation:$e.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");!(Z(n)||Le(n).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=q(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,x){return function(){Yf(_,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Z(o.layoutOption)?c=o.layoutOption(Vw(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var v=!1;if(c.x!=null?(s.x=$(c.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=$(c.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),v=!1)}var d=us(s);d.needsUpdateLabelLine=v,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Xf.length;p++){var g=Xf[p];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=wy(this._labelList),i=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Bw(i,0,e),Ay(o,0,a);var s=pe(n,function(l){return l.layoutOption.hideOverlap});Cy(s)},r.prototype.processLabelsOverall=function(){var t=this;S(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=us(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=q(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");l.stroke=u[c];var f=s.getModel("labelLine");Sy(t,by(s),l),Yf(t,f)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!na(t))){var i=us(a),o=i.oldLayout,s=q(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 v=t.prevStates;v&&(ie(v,"select")>=0&&a.attr(i.oldLayoutSelect),ie(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),de(a,u,e,l)}else if(a.attr(u),!ba(a).valueAnimation){var f=ve(a.style.opacity,1);a.style.opacity=0,Ie(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};ni(h,u,ii),ni(h,a.states.select,ii)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};ni(d,u,ii),ni(d,a.states.emphasis,ii)}dx(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=zw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),de(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Ie(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Fw=Gw;var cs=ne();function MR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=cs(e).labelManager;n||(n=cs(e).labelManager=new Fw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=cs(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Ww=function(r){P(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 To(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Q,n=Oe("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=Oe(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(dt);const Hw=Ww;function Io(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=da(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(da(r,t,e[o]));return i.join(" ")}}function My(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!k(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 Uw=function(r){P(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Oe(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$w,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){fa(this.childAt(0))},t.prototype.downplay=function(){ha(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,f)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(h):de(v,h,s,a),dn(v)}if(this._updateCommon(e,a,l,n,i),u){var v=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ie(v,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Ht(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=bo(e.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),T=b.fill;if(s instanceof zt){var A=s.style;s.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(O({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Wt(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:T,defaultOpacity:b.opacity});function I(E){return M?e.getName(E):Io(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c,g){var R=Math.max(fe(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R}this.setSymbolScale(1),sr(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=q(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&vn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();vn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return gu(e.getItemVisual(a,"symbolSize"))},t}(Q);function $w(r,t){this.parent.drift(r,t)}const Lu=Uw;function fs(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 Kf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function qf(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:Ht(t),cursorStyle:t.get("cursor")}}var Yw=function(){function r(t){this.group=new Q,this._SymbolCtor=t||Lu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Kf(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=qf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var v=c(f);if(fs(t,v,f,e)){var h=new o(t,f,l,u);h.setPosition(v),t.setItemGraphicEl(f,h),a.add(h)}}).update(function(f,v){var h=i.getItemGraphicEl(v),d=c(f);if(!fs(t,d,f,e)){a.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,f,l,u),h.setPosition(d);else{h.updateData(t,f,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):de(h,y,n)}a.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var v=i.getItemGraphicEl(f);v&&v.fadeOut(function(){a.remove(v)},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=qf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Kf(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(fs(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){co(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();const Dy=Yw;function Iy(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Zw(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=N(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return Nr(t,f[0])&&(v=!0,f[0]=h),Nr(t,f[1])&&(v=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Zw(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:fe(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Ly(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 Xw(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 Kw(r,t,e,a,n,i,o,s){for(var l=Xw(r,t),u=[],c=[],f=[],v=[],h=[],d=[],p=[],g=Iy(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,b=void 0,T=void 0;switch(x.cmd){case"=":b=x.idx*2,T=x.idx1*2;var A=y[b],C=y[b+1],D=m[T],M=m[T+1];(isNaN(A)||isNaN(C))&&(A=D,C=M),u.push(A,C),c.push(D,M),f.push(e[b],e[b+1]),v.push(a[T],a[T+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,R=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);T=I*2,u.push(R[0],R[1]),c.push(m[T],m[T+1]);var E=Ly(g,n,t,I);f.push(E[0],E[1]),v.push(a[T],a[T+1]),p.push(t.getRawIndex(I));break;case"-":w=!1}w&&(h.push(x),d.push(d.length))}d.sort(function(ot,be){return p[ot]-p[be]});for(var V=u.length,X=kt(V),B=kt(V),F=kt(V),Y=kt(V),re=[],_=0;_<d.length;_++){var ue=d[_],ce=_*2,Ce=ue*2;X[ce]=u[Ce],X[ce+1]=u[Ce+1],B[ce]=c[Ce],B[ce+1]=c[Ce+1],F[ce]=f[Ce],F[ce+1]=f[Ce+1],Y[ce]=v[Ce],Y[ce+1]=v[Ce+1],re[_]=h[ue]}return{current:X,next:B,stackedOnCurrent:F,stackedOnNext:Y,status:re}}var jt=Math.min,Jt=Math.max;function Rr(r,t){return isNaN(r)||isNaN(t)}function vl(r,t,e,a,n,i,o,s,l){for(var u,c,f,v,h,d,p=e,g=0;g<a;g++){var y=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Rr(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),f=y,v=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var w=p+i,b=t[w*2],T=t[w*2+1];b===y&&T===m&&g<a;)g++,w+=i,p+=i,b=t[w*2],T=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-u,x=m-c;var A=g+1;if(l)for(;Rr(b,T)&&A<a;)A++,w+=i,b=t[w*2],T=t[w*2+1];var C=.5,D=0,M=0,I=void 0,L=void 0;if(A>=a||Rr(b,T))h=y,d=m;else{D=b-u,M=T-c;var R=y-u,E=b-y,V=m-c,X=T-m,B=void 0,F=void 0;if(s==="x"){B=Math.abs(R),F=Math.abs(E);var Y=D>0?1:-1;h=y-Y*B*o,d=m,I=y+Y*F*o,L=m}else if(s==="y"){B=Math.abs(V),F=Math.abs(X);var re=M>0?1:-1;h=y,d=m-re*B*o,I=y,L=m+re*F*o}else B=Math.sqrt(R*R+V*V),F=Math.sqrt(E*E+X*X),C=F/(F+B),h=y-D*o*(1-C),d=m-M*o*(1-C),I=y+D*o*C,L=m+M*o*C,I=jt(I,Jt(b,y)),L=jt(L,Jt(T,m)),I=Jt(I,jt(b,y)),L=Jt(L,jt(T,m)),D=I-y,M=L-m,h=y-D*B/F,d=m-M*B/F,h=jt(h,Jt(u,y)),d=jt(d,Jt(c,m)),h=Jt(h,jt(u,y)),d=Jt(d,jt(c,m)),D=y-h,M=m-d,I=y+D*F/B,L=m+M*F/B}r.bezierCurveTo(f,v,h,d,y,m),f=I,v=L}else r.lineTo(y,m)}u=y,c=m,p+=i}return g}var Py=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),qw=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Py},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Rr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Rr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=vl(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=Bd.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var v=i[f++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],d=i[f++],_=u?(e-s)/(h-s):(e-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[e,x]:[x,e]}s=h,l=d;break;case o.C:h=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++],m=i[f++];var w=u?lc(s,h,p,y,e,c):lc(l,d,g,m,e,c);if(w>0)for(var b=0;b<w;b++){var T=c[b];if(T<=1&&T>=0){var x=u?uc(l,d,g,m,T):uc(s,h,p,y,T);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(De),jw=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Py),Jw=function(r){P(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 jw},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&&Rr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Rr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=vl(e,n,o,s,s,1,a.smooth,l,a.connectNulls);vl(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(De);function Ry(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new oe({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=Z(n)?function(g){n(g,f)}:null;Ie(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return f}function Ey(r,t,e){var a=r.getArea(),n=xe(a.r0,1),i=xe(a.r,1),o=new Gt({shape:{cx:xe(r.cx,1),cy:xe(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,Ie(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function Qw(r,t,e,a,n){if(r){if(r.type==="polar")return Ey(r,t,e);if(r.type==="cartesian2d")return Ry(r,t,e,a,n)}else return null;return null}function Pu(r,t){return r.type===t}function jf(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Jf(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 Qf(r,t){var e=Jf(r),a=e[0],n=e[1],i=Jf(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 eh(r){return fe(r)?r:r?.5:0}function eT(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=kt(a*2),i=0;i<a;i++){var o=Ly(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Qt(r,t,e,a){var n=t.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&f.push(r[s],r[s+1]);r=f}for(s=0;s<r.length-2;s+=2)switch(c[0]=r[s+2],c[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var v=(u[i]+c[i])/2,h=[];l[i]=h[i]=v,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function tT(r,t){var e=[],a=r.length,n,i;function o(c,f,v){var h=c.coord,d=(v-h)/(f.coord-h),p=B0(d,[c.color,f.color]);return{coord:v,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function rT(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=N(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var v=tT(u,n==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";S(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:f[0]||"transparent"});var m=new zl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function aT(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&nT(i,t))){var o=t.mapDimension(i.dim),s={};return S(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function nT(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(Lu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function iT(r,t){return isNaN(r)||isNaN(t)}function oT(r){for(var t=r.length/2;t>0&&iT(r[t*2-2],r[t*2-1]);t--);return t-1}function th(r,t){return[r[t*2],r[t*2+1]]}function sT(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 ky(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<nt.length;t++)if(r.get([nt[t],"endLabel","show"]))return!0;return!1}function hs(r,t,e,a){if(Pu(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=ky(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Ry(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 f=c.shape,v=Math.max(f.width,f.height);u?(f.y-=v,f.height+=v*2):(f.x-=v,f.width+=v*2)}return l&&l(1,c),c}else return Ey(t,e,a)}function lT(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 uT=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Q,a=new Dy;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),c=e.getModel("areaStyle"),f=l.getLayout("points")||[],v=o.type==="polar",h=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=e.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Iy(o,l,x),b=_&&eT(o,l,w),T=e.get("showSymbol"),A=e.get("connectNulls"),C=T&&!v&&aT(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(be,$t){be.__temp&&(s.remove(be),D.setItemGraphicEl($t,null))}),T||d.remove(),s.add(y);var M=v?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=rT(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&M===this._step))T&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(be){return[f[be*2],f[be*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),M&&(f=Qt(f,o,M,A),b&&(b=Qt(b,o,M,A))),p=this._newPolyline(f),_?g=this._newPolygon(f,b):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Br(L)),y.setClipPath(hs(this,o,!0,e));else{_&&!g?g=this._newPolygon(f,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Br(L));var R=y.getClipPath();if(R){var E=hs(this,o,!1,e);Ie(R,{shape:E.shape},e)}else y.setClipPath(hs(this,o,!0,e));T&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(be){return[f[be*2],f[be*2+1]]}}),(!jf(this._stackedOnPoints,b)||!jf(this._points,f))&&(m?this._doUpdateAnimation(l,b,o,n,M,x,A):(M&&(f=Qt(f,o,M,A),b&&(b=Qt(b,o,M,A))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))}var V=e.getModel("emphasis"),X=V.get("focus"),B=V.get("blurScope"),F=V.get("disabled");if(p.useStyle(K(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),va(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Y=p.getState("emphasis").style;Y.lineWidth=+p.style.lineWidth+1}q(p).seriesIndex=e.seriesIndex,sr(p,X,B,F);var re=eh(e.get("smooth")),ue=e.get("smoothMonotone");if(p.setShape({smooth:re,smoothMonotone:ue,connectNulls:A}),g){var ce=l.getCalculationInfo("stackedOnSeries"),Ce=0;g.useStyle(K(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ce&&(Ce=eh(ce.get("smooth"))),g.setShape({smooth:re,stackedOnSmooth:Ce,smoothMonotone:ue,connectNulls:A}),va(g,e,"areaStyle"),q(g).seriesIndex=e.seriesIndex,sr(g,X,B,F)}var ot=function(be){i._changePolyState(be)};l.eachItemGraphicEl(function(be){be&&(be.onHoverStateChange=ot)}),this._polyline.onHoverStateChange=ot,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){q(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=Or(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var v=e.get("zlevel"),h=e.get("z");u=new Lu(o,s),u.x=c,u.y=f,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Fe.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Or(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 Fe.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Ys(this._polyline,e),a&&Ys(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new qw({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 Jw({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");Z(c)&&(c=c(null));var f=u.get("animationDelay")||0,v=Z(f)?f(null):f;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var x=n,w=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var T=m===y?0:(_-y)/(m-y);l&&(T=1-T);var A=Z(f)?f(d):c*T+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(ky(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 ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=oT(l);c>=0&&(Wt(s,Ht(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,h){return h!=null?My(o,h):Io(o,f)},enableTextSetter:!0},lT(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),v=n.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),T=y?"x":"y",A=sT(f,x,T),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!h){var I=th(f,C[0]);u.attr({x:I[0]+w,y:I[1]+b}),o&&(M=v.getRawValue(C[0]))}else{var I=c.getPointOn(x,T);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=v.getRawValue(C[0]),R=v.getRawValue(C[1]);o&&(M=jd(n,d,L,R,A.t))}i.lastFrameIndex=C[0]}else{var E=e===1||i.lastFrameIndex>0?C[0]:0,I=th(f,E);o&&(M=v.getRawValue(E)),u.attr({x:I[0]+w,y:I[1]+b})}o&&ba(u).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=Kw(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(h=Qt(v.current,n,o,l),d=Qt(v.stackedOnCurrent,n,o,l),p=Qt(v.next,n,o,l),g=Qt(v.stackedOnNext,n,o,l)),Qf(h,p)>3e3||c&&Qf(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),de(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:d}),c.stopAnimation(),de(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=v.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var b=e.getItemGraphicEl(_[x].idx1);b&&m.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,A=0;A<m.length;A++){var C=m[A].el,D=m[A].ptIdx*2;C.x=T[D],C.y=T[D+1],C.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}(Fe);const cT=uT;function Ru(r,t){return{seriesType:r,plan:vu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!n){var s=N(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Nr(a,s[0])&&(s[0]=u),Nr(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),v=a.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&kt(p*l),y=[],m=[],_=h.start,x=0;_<h.end;_++){var w=void 0;if(l===1){var b=c.get(f,_);w=n.dataToPoint(b,null,m)}else y[0]=c.get(f,_),y[1]=c.get(v,_),w=n.dataToPoint(y,null,m);o?(g[x++]=w[0],g[x++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",g)}}}}}}var fT={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]}},hT=function(r){return Math.round(r.length/2)};function Oy(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));var d=void 0;G(i)?d=fT[i]:Z(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,hT))}}}}}function DR(r){r.registerChartView(cT),r.registerSeriesModel(Hw),r.registerLayout(Ru("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,Oy("line"))}var By=function(r){P(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 To(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(dt);dt.registerClass(By);const ji=By;var vT=function(r){P(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 To(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=hr(ji.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(ji);const dT=vT;var pT=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}(),gT=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new pT},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?f-c<h:c-f<h;d||(c=f-(v?h:-h));var p=Math.cos(c),g=Math.sin(c),y=Math.cos(f),m=Math.sin(f);d?(e.moveTo(p*o+n,g*o+i),e.arc(p*u+n,g*u+i,l,-Math.PI+c,c,!v)):e.moveTo(p*s+n,g*s+i),e.arc(n,i,s,c,f,!v),e.arc(y*u+n,m*u+i,l,f-Math.PI*2,f-Math.PI,!v),o!==0&&e.arc(n,i,o,f,c,v)},t}(De);const rh=gT;function yT(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Us(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(v-h)/2:0,_=Math.cos,x=Math.sin,w=c+v*_(p),b=f+v*x(p),T="left",A="top";switch(s){case"startArc":w=c+(h-l)*_(y),b=f+(h-l)*x(y),T="center",A="top";break;case"insideStartArc":w=c+(h+l)*_(y),b=f+(h+l)*x(y),T="center",A="bottom";break;case"startAngle":w=c+d*_(p)+oi(p,l+m,!1),b=f+d*x(p)+si(p,l+m,!1),T="right",A="middle";break;case"insideStartAngle":w=c+d*_(p)+oi(p,-l+m,!1),b=f+d*x(p)+si(p,-l+m,!1),T="left",A="middle";break;case"middle":w=c+d*_(y),b=f+d*x(y),T="center",A="middle";break;case"endArc":w=c+(v+l)*_(y),b=f+(v+l)*x(y),T="center",A="bottom";break;case"insideEndArc":w=c+(v-l)*_(y),b=f+(v-l)*x(y),T="center",A="top";break;case"endAngle":w=c+d*_(g)+oi(g,l+m,!0),b=f+d*x(g)+si(g,l+m,!0),T="left",A="middle";break;case"insideEndAngle":w=c+d*_(g)+oi(g,-l+m,!0),b=f+d*x(g)+si(g,-l+m,!0),T="right",A="middle";break;default:return Us(a,n,i)}return a=a||{},a.x=w,a.y=b,a.align=T,a.verticalAlign=A,a}}function mT(r,t,e,a){if(fe(a)){r.setTextConfig({rotation:a});return}else if(k(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 oi(r,t,e){return t*Math.sin(r)*(e?-1:1)}function si(r,t,e){return t*Math.cos(r)*(e?1:-1)}var vs=Math.max,ds=Math.min;function _T(r,t){var e=r.getArea&&r.getArea();if(Pu(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 xT=function(r){P(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},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){co(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var v=e.isAnimationEnabled()?e:null,h=ST(e,u);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,p=_T(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],w=this._backgroundEls,b=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function A(M){var I=li[u.type](s,M),L=DT(u,f,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),x[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=li[u.type](s,M,I);if(y&&A(M),!(!s.hasValue(M)||!sh[u.type](L))){var R=!1;d&&(R=ah[u.type](p,L));var E=nh[u.type](e,s,M,L,f,v,c.model,!1,g);h&&(E.forceLabelAnimation=!0),lh(E,s,M,I,L,e,f,u.type==="polar"),b?E.attr({shape:L}):h?ih(h,v,E,L,M,f,!1,!1):Ie(E,{shape:L},e,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=R}}).update(function(M,I){var L=s.getItemModel(M),R=li[u.type](s,M,L);if(y){var E=void 0;w.length===0?E=A(I):(E=w[I],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&E.setShape("r",_),x[M]=E);var V=li[u.type](s,M),X=Vy(f,V,u);de(E,{shape:X},v,M)}var B=l.getItemGraphicEl(I);if(!s.hasValue(M)||!sh[u.type](R)){o.remove(B);return}var F=!1;if(d&&(F=ah[u.type](p,R),F&&o.remove(B)),B?dn(B):B=nh[u.type](e,s,M,R,f,v,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),T){var Y=B.getTextContent();if(Y){var re=ba(Y);re.prevValue!=null&&(re.prevValue=re.value)}}else lh(B,s,M,L,R,e,f,u.type==="polar");b?B.attr({shape:R}):h?ih(h,v,B,R,M,f,!0,T):de(B,{shape:R},e,M,null),s.setItemGraphicEl(M,B),B.ignore=F,o.add(B)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Vi(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Q);C.removeAll();for(var D=0;D<x.length;++D)C.add(x[D]);o.add(C),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),ch(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),ch(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Qw(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==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:N(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(!!this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Vi(i,e,q(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}(Fe),ah={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=vs(t.x,r.x),s=ds(t.x+t.width,n),l=vs(t.y,r.y),u=ds(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>n?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=ds(t.r,r.r),i=vs(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}},nh={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new oe({shape:O({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?rh:Gt,c=new u({shape:a,z2:1});c.name="item";var f=Ny(n);if(c.calculateTextPosition=yT(f,{isRoundCap:u===rh}),i){var v=c.shape,h=n?"r":"endAngle",d={};v[h]=n?0:a.startAngle,d[h]=a[h],(s?de:Ie)(c,{shape:d},i)}return c}};function ST(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 ih(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?de:Ie)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?de:Ie)(e,{shape:u},c,n)}function oh(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var bT=["x","y","width","height"],wT=["cx","cy","r","startAngle","endAngle"],sh={cartesian2d:function(r){return!oh(r,bT)},polar:function(r){return!oh(r,wT)}},li={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?AT(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 TT(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Ny(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 lh(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var c=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",f=Ht(a);Wt(r,f,{labelFetcher:i,labelDataIndex:e,defaultText:Io(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var v=r.getTextContent();if(s&&v){var h=a.get(["label","position"]);r.textConfig.inside=h==="middle"?!0:null,mT(r,h==="outside"?c:h,Ny(o),a.get(["label","rotate"]))}vx(v,f,i.getRawValue(e),function(p){return My(t,p)});var d=a.getModel(["emphasis"]);sr(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),va(r,a),TT(n)&&(r.style.fill="none",r.style.stroke="none",S(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function AT(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 CT=function(){function r(){}return r}(),uh=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new CT},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}(De);function ch(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new uh({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var f=new uh({shape:{points:n.getLayout("largePoints")},incremental:!!a,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(n.getVisual("style")),q(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",fh),f.on("mousemove",fh)),e&&e.push(f)}var fh=pu(function(r){var t=this,e=MT(t,r.offsetX,r.offsetY);q(t).dataIndex=e>=0?e:null},30,!1);function MT(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var v=c*3;if(l[a]=u,l[n]=i[v+2],s[a]=i[v+a],s[n]=i[v+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 Vy(r,t,e){if(Pu(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 DT(r,t,e){var a=r.type==="polar"?Gt:oe;return new a({shape:Vy(t,e,r),silent:!0,z2:0})}const IT=xT;function IR(r){r.registerChartView(IT),r.registerSeriesModel(dT),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ee(ey,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ty("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Oy("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 ui=Math.PI*2,hh=Math.PI/180;function zy(r,t){return He(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gy(r,t){var e=zy(r,t),a=r.get("center"),n=r.get("radius");k(n)||(n=[0,n]),k(a)||(a=[a,a]);var i=$(e.width,t.getWidth()),o=$(e.height,t.getHeight()),s=Math.min(i,o),l=$(a[0],i)+e.x,u=$(a[1],o)+e.y,c=$(n[0],s/2),f=$(n[1],s/2);return{cx:l,cy:u,r0:c,r:f}}function LT(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=zy(a,e),s=Gy(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,v=-a.get("startAngle")*hh,h=a.get("minAngle")*hh,d=0;n.each(i,function(D){!isNaN(D)&&d++});var p=n.getSum(i),g=Math.PI/(p||d)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),x=n.getDataExtent(i);x[0]=0;var w=ui,b=0,T=v,A=y?1:-1;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(D,M){var I;if(isNaN(D)){n.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?I=p===0&&_?g:D*g:I=ui/d,I<h?(I=h,w-=h):b+=D;var L=T+A*I;n.setItemLayout(M,{angle:I,startAngle:T,endAngle:L,clockwise:y,cx:l,cy:u,r0:f,r:m?he(D,x,[f,c]):c}),T=L}),w<ui&&d)if(w<=.001){var C=ui/d;n.each(i,function(D,M){if(!isNaN(D)){var I=n.getItemLayout(M);I.angle=C,I.startAngle=v+A*M*C,I.endAngle=v+A*(M+1)*C}})}else g=w/b,T=v,n.each(i,function(D,M){if(!isNaN(D)){var I=n.getItemLayout(M),L=I.angle===h?h:D*g;I.startAngle=T,I.endAngle=T+A*L,T+=A*L}})})}function Fy(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 PT=Math.PI/180;function vh(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],x=Math.abs(_.label.y-e),w=a+_.len,b=w*w,T=Math.sqrt((1-Math.abs(x*x/y))*b),A=t+(T+_.len2)*n,C=A-_.label.x,D=_.targetTextWidth-C*n;Wy(_,D,!0),_.label.x=A}}function f(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],x=_.label.y>e?y:g,w=Math.abs(_.label.y-e);if(w>=x.maxY){var b=_.label.x-t-_.len2*n,T=a+_.len,A=Math.abs(b)<T?Math.sqrt(w*w/(1-b*b/T/T)):T;x.rB=A,x.maxY=w}x.list.push(_)}c(g),c(y)}for(var v=r.length,h=0;h<v;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}Ay(r,l,l+o)&&f(r)}function RT(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,v=0;v<r.length;v++){var h=r[v].label;ps(r[v])||(h.x<t?(c=Math.min(c,h.x),l.push(r[v])):(f=Math.max(f,h.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!ps(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=c-o-d.bleedMargin:g=o+n-f-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+n-h.x-d.bleedMargin,d.targetTextWidth=g,Wy(d,g)}}vh(u,t,e,a,1,n,i,o,s,f),vh(l,t,e,a,-1,n,i,o,s,c);for(var v=0;v<r.length;v++){var d=r[v];if(!ps(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,x=h.style.backgroundColor?0:_,w=d.rect.width+x,b=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+w+d.labelDistance:p[2][0]=o+n-d.edgeDistance-w-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=h.y}}}function Wy(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){var f=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var h=t-l,d=t<c?h:e?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function ps(r){return r.position==="center"}function ET(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*PT,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var T in b.states)if(b.states[T].ignore===!1)return!0;return!1}t.each(function(b){var T=t.getItemGraphicEl(b),A=T.shape,C=T.getTextContent(),D=T.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),R=I.get("distanceToLabelLine"),E=I.get("alignTo"),V=$(I.get("edgeDistance"),u),X=I.get("bleedMargin"),B=M.getModel("labelLine"),F=B.get("length");F=$(F,u);var Y=B.get("length2");if(Y=$(Y,u),Math.abs(A.endAngle-A.startAngle)<o){S(C.states,h),C.ignore=!0;return}if(!!d(C)){var re=(A.startAngle+A.endAngle)/2,ue=Math.cos(re),ce=Math.sin(re),Ce,ot,be,$t;a=A.cx,n=A.cy;var Yt=L==="inside"||L==="inner";if(L==="center")Ce=A.cx,ot=A.cy,$t="center";else{var Ma=(Yt?(A.r+A.r0)/2*ue:A.r*ue)+a,Da=(Yt?(A.r+A.r0)/2*ce:A.r*ce)+n;if(Ce=Ma+ue*3,ot=Da+ce*3,!Yt){var Gn=Ma+ue*(F+l-A.r),Fn=Da+ce*(F+l-A.r),Wn=Gn+(ue<0?-1:1)*Y,vr=Fn;E==="edge"?Ce=ue<0?c+V:c+u-V:Ce=Wn+(ue<0?-R:R),ot=vr,be=[[Ma,Da],[Gn,Fn],[Wn,vr]]}$t=Yt?"center":E==="edge"?ue>0?"right":"left":ue>0?"left":"right"}var Zt=Math.PI,It=0,Ia=I.get("rotate");if(fe(Ia))It=Ia*(Zt/180);else if(L==="center")It=0;else if(Ia==="radial"||Ia===!0){var g0=ue<0?-re+Zt:-re;It=g0}else if(Ia==="tangential"&&L!=="outside"&&L!=="outer"){var Hr=Math.atan2(ue,ce);Hr<0&&(Hr=Zt*2+Hr);var y0=ce>0;y0&&(Hr=Zt+Hr),It=Hr-Zt}if(i=!!It,C.x=Ce,C.y=ot,C.rotation=It,C.setStyle({verticalAlign:"middle"}),Yt){C.setStyle({align:$t});var Ro=C.states.select;Ro&&(Ro.x+=C.x,Ro.y+=C.y)}else{var La=C.getBoundingRect().clone();La.applyTransform(C.getComputedTransform());var ac=(C.style.margin||0)+2.1;La.y-=ac/2,La.height+=ac,e.push({label:C,labelLine:D,position:L,len:F,len2:Y,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new we(ue,ce),linePoints:be,textAlign:$t,labelDistance:R,labelAlignTo:E,edgeDistance:V,bleedMargin:X,rect:La,unconstrainedWidth:La.width,labelStyleWidth:C.style.width})}T.setTextConfig({inside:Yt})}}),!i&&r.get("avoidLabelOverlap")&&RT(e,a,n,l,u,v,c,f);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(S(y.states,h),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var w=g.linePoints;_||!w?(S(m.states,h),m.ignore=!0):(xy(w,g.minTurnAngle),kw(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new we(w[0][0],w[0][1])})}}}function ci(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;k(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:N(a,function(i){return ua(i,n)})}}var kT=function(r){P(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new ae;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),f=O(ci(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var v=s.getShallow("animationType");s.ecModel.ssr?(Ie(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):v==="scale"?(o.shape.r=c.r0,Ie(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ie(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,de(o,{shape:{endAngle:c.endAngle}},s,a))}else dn(o),de(o,{shape:f},s,a);o.useStyle(e.getItemVisual(a,"style")),va(o,l);var h=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=O({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},ci(u.getModel("itemStyle"),c)),O(o.ensureState("select"),{x:p,y:g,shape:ci(l.getModel(["select","itemStyle"]),c)}),O(o.ensureState("blur"),{shape:ci(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:p,y:g}),O(_.ensureState("select"),{x:p,y:g}),sr(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;Wt(i,Ht(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new At,this.setTextGuideLine(h)),Sy(this,by(o),{stroke:u,opacity:N0(s.get(["lineStyle","opacity"]),c,1)})}},t}(Gt),OT=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=new Gt({shape:Gy(e,n)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new kT(o,h,u);o.setItemGraphicEl(h,d),l.add(d)}).update(function(h,d){var p=s.getItemGraphicEl(d);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);Vi(d,e,h)}).execute(),ET(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}(Fe);const BT=OT;function Eu(r,t,e){t=k(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Yg(a,t).dimensions,i=new bu(n,r);return i.initData(a,e),i}var NT=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Hy=NT;var VT=function(r){P(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 Hy(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 Eu(this,{coordDimensions:["value"],encodeDefaulter:ee(zp,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=[];return a.each(a.mapDimension("value"),function(o){i.push(o)}),n.percent=a_(i,e,a.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){Bi(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(dt);const zT=VT;function GT(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!(fe(o)&&!isNaN(o)&&o<0)})}}}function LR(r){r.registerChartView(BT),r.registerSeriesModel(zT),Sg("pie",r.registerAction),r.registerLayout(ee(LT,"pie")),r.registerProcessor(Fy("pie")),r.registerProcessor(GT("pie"))}var FT=function(r){P(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 To(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},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"],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:"#212121"}},universalTransition:{divideShape:"clone"}},t}(dt);const WT=FT;var Uy=4,HT=function(){function r(){}return r}(),UT=function(r){P(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 HT},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]<Uy,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<n.length;){var v=n[f++],h=n[f++];isNaN(v)||isNaN(h)||c&&!c.contain(v,h)||(s.x=v-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=f,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,f=i[c]-s/2,v=i[c+1]-l/2;if(e>=f&&a>=v&&e<=f+s&&a<=v+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,f=-1/0,v=0;v<n.length;){var h=n[v++],d=n[v++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(d,u),f=Math.max(d,f)}e=this._rect=new ge(l-o/2,u-s/2,c-l+o,f-u+s)}return e},t}(De),$T=function(){function r(){this.group=new Q}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");this.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 UT({cursor:"default"});return 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=Oe(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Uy;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=q(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const YT=$T;var ZT=function(r){P(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=Ru("").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){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},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 YT:new Dy,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}(Fe);const XT=ZT;var KT=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(te);const qT=KT;var dl=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Me).models[0]},t.type="cartesian2dAxis",t}(te);Xe(dl,Do);var $y={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},jT=j({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$y),ku=j({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},$y),JT=j({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ku),QT=K({logBase:10},ku);const Yy={category:jT,value:ku,time:JT,log:QT};var eA={value:1,category:1,time:1,log:1};function Tn(r,t,e,a){S(eA,function(n,i){var o=j(j({},Yy[i],!0),a,!0),s=function(l){P(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var v=yn(this),h=v?Ta(c):{},d=f.getTheme();j(c,d.get(i+"Axis")),j(c,this.getDefaultOption()),c.type=dh(c),v&&lr(c,h,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=fl.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",dh)}function dh(r){return r.type||(r.data?"category":"value")}var tA=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 N(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),pe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const rA=tA;var pl=["x","y"];function ph(r){return r.type==="interval"||r.type==="time"}var aA=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=pl,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!ph(e)||!ph(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-n[0]*c,h=o[1]-i[0]*f,d=this._transform=[c,0,0,f,v,h];this._invTransform=Ln([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new ge(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return rt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return rt(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(a[0],a[1]),o=Math.max(e[0],e[1])-n,s=Math.max(a[0],a[1])-i;return new ge(n,i,o,s)},t}(rA),nA=function(r){P(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Dt);const iA=nA;function gl(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],v={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:f[0],u==="x"?d[v[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ir(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function gh(r){return r.get("coordinateSystem")==="cartesian2d"}function yh(r){var t={xAxisModel:null,yAxisModel:null};return S(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Me).models[0];t[a]=i}),t}var gs=Math.log;function Zy(r,t,e){var a=ur.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=ly(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var v=gs(r.base);u=[gs(u[0])/v,gs(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=a.getExtent.call(r);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=os(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=os(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=os(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=xe(g-m),p<0&&u[0]>=0?(p=0,g=xe(m)):g>0&&u[1]<=0&&(g=0,p=-xe(m))}var _=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*x),a.setInterval.call(r,d),(_||x)&&a.setNiceExtent.call(r,p+d,g-d)}var oA=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pl,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=Le(o),u=l.length;if(!!u){for(var c=[],f=u-1;f>=0;f--){var v=+l[f],h=o[v],d=h.model,p=h.scale;hl(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(h):(bn(p,d),hl(p)&&(s=h))}c.length&&(s||(s=c.pop(),bn(s.scale,s.model)),S(c,function(g){Zy(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};S(a.x,function(o){mh(a,"y",o,i)}),S(a.y,function(o){mh(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=He(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(S(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=cw(u);if(c){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+v,u.position==="top"?o.y+=c.height+v:u.position==="left"&&(o.x+=c.width+v)}}}),l()),S(this._coordsList,function(u){u.calcAffineTransform()});function l(){S(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),sA(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}H(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",Me).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Me).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ie(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,S(s.x,function(c,f){S(s.y,function(v,h){var d="x"+f+"y"+h,p=new aA(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(v)})});function u(c){return function(f,v){if(!!ys(f,t)){var h=f.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 d=new iA(c,Mu(f),[0,0],f.get("type"),h),p=d.type==="category";d.onBand=p&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=i,d.index=v,i._axesList.push(d),s[c][v]=d,l[c]++}}}},r.prototype._updateScale=function(t,e){S(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(gh(n)){var i=yh(n),o=i.xAxisModel,s=i.yAxisModel;if(!ys(o,e)||!ys(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),f=l.getAxis("y");a(u,c),a(u,f)}},this);function a(n,i){S(Xi(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return S(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ie(e,i)<0&&e.push(i),ie(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(!!gh(n)){var i=yh(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=pl,r}();function ys(r,t){return r.getCoordSysModel()===t}function mh(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)_h(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&_h(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function _h(r){return r&&r.type!=="category"&&r.type!=="time"&&uw(r)}function sA(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}const lA=oA;var rr=Math.PI,Er=function(){function r(t,e){this.group=new Q,this.opt=e,this.axisModel=t,K(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Q({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!xh[t]},r.prototype.add=function(t){xh[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=Fd(e-t),i,o;return ki(n)?(o=a>0?"top":"bottom",i="center"):ki(n-rr)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<rr?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}(),xh={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0];o&&(rt(s,s,o),rt(l,l,o));var u=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ze({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",e.add(c);var f=t.get(["axisLine","symbol"]);if(f!=null){var v=t.get(["axisLine","symbolSize"]);G(f)&&(f=[f,f]),(G(v)||fe(v))&&(v=[v,v]);var h=bo(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],p=v[1];S([{rotate:r.rotation+Math.PI/2,offset:h[0],r:0},{rotate:r.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(f[y]!=="none"&&f[y]!=null){var m=Oe(f[y],-d/2,-p/2,d,p,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,a){var n=fA(e,a,t,r),i=vA(e,a,t,r);if(cA(t,i,n),hA(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=wy(N(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Cy(o)}},axisName:function(r,t,e,a){var n=ir(r.axisName,t.get("name"));if(!!n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,bh(i)?r.labelOffset+o*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*rr/180);var d;bh(i)?v=Er.innerTextLayout(r.rotation,h!=null?h:r.rotation,o):(v=uA(r.rotation,i,h||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=ir(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ae({x:f[0],y:f[1],rotation:v.rotation,silent:Er.isLabelSilent(t),style:Te(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Sa({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=Er.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,q(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function uA(r,t,e,a){var n=Fd(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return ki(n-rr/2)?(o=l?"bottom":"top",i="center"):ki(n-rr*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<rr*1.5&&n>rr/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function cA(r,t,e){if(!uy(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],v=e[e.length-2];a===!1?(je(i),je(u)):Sh(i,o)&&(a?(je(o),je(c)):(je(i),je(u))),n===!1?(je(s),je(f)):Sh(l,s)&&(n?(je(l),je(v)):(je(s),je(f)))}}function je(r){r&&(r.ignore=!0)}function Sh(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=Nl([]);return Rn(n,n,-r.rotation),e.applyTransform(Ri([],n,r.getLocalTransform())),a.applyTransform(Ri([],n,t.getLocalTransform())),e.intersect(a)}}function bh(r){return r==="middle"||r==="center"}function Xy(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(rt(o,o,t),rt(s,s,t));var c=new Ze({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function fA(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=Xy(u,t.transform,l,K(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function hA(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=K(s.getLineStyle(),K(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Xy(o[c],t.transform,l,u,"minorticks_"+c),v=0;v<f.length;v++)r.add(f[v])}}function vA(r,t,e,a){var n=e.axis,i=ir(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(ir(a.labelRotate,o.get("rotate"))||0)*rr/180,c=Er.innerTextLayout(a.rotation,u,a.labelDirection),f=e.getCategories&&e.getCategories(!0),v=[],h=Er.isLabelSilent(e),d=e.get("triggerEvent");return S(l,function(p,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,x=o;if(f&&f[y]){var w=f[y];H(w)&&w.textStyle&&(x=new Se(w.textStyle,o,e.ecModel))}var b=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=n.dataToCoord(y),A=new ae({x:T,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:Te(x,{text:m,align:x.getShallow("align",!0)||c.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,fill:Z(b)?b(n.type==="category"?_:n.type==="value"?y+"":y,g):b})});if(A.anid="label_"+y,d){var C=Er.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=_,C.tickIndex=g,n.type==="category"&&(C.dataIndex=y),q(A).eventData=C}t.add(A),A.updateTransform(),v.push(A),r.add(A),A.decomposeTransform()}),v}}const cr=Er;function dA(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pA(e,r,t),e.seriesInvolved&&yA(e,r),e}function pA(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];S(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=An(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(S(s.getAxes(),ee(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var v=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(v||h)&&S(d.baseAxes,ee(p,h?"cross":!0,v)),h&&S(d.otherAxes,ee(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!g&&!yl(_))){y==null&&(y=_.get("triggerTooltip")),_=g?gA(m,f,n,t,g,y):_;var w=_.get("snap"),b=An(m.model),T=y||w||m.type==="category",A=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:T,snap:w,useHandle:yl(_),seriesModels:[],linkGroup:null};u[b]=A,r.seriesInvolved=r.seriesInvolved||T;var C=mA(i,m);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[b]=A,D.mapper=i[C].mapper,A.linkGroup=D}}}})}function gA(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};S(s,function(v){l[v]=U(o.get(v))}),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!=null?c:!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&K(u,f.textStyle)}}return r.model.getModel("axisPointer",new Se(l,e,a))}function yA(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||S(r.coordSysAxesInfo[An(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 mA(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(ms(i[a+"AxisId"],e.id)||ms(i[a+"AxisIndex"],e.componentIndex)||ms(i[a+"AxisName"],e.name))return n}}function ms(r,t){return r==="all"||k(r)&&ie(r,t)>=0||r===t}function _A(r){var t=Ou(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=yl(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 Ou(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[An(r)]}function xA(r){var t=Ou(r);return t&&t.axisPointerModel}function yl(r){return!!r.get(["handle","show"])}function An(r){return r.type+"||"+r.id}var wh={},SA=function(r){P(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&&_A(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=xA(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){wh[e]=a},t.getAxisPointerClass=function(e){return e&&wh[e]},t.type="axis",t}(Ae);const zn=SA;var ml=ne();function bA(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var c=s.length,f=ml(r).splitAreaColors,v=W(),h=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){h=(p+(c-1)*d)%c;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=k(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,x=void 0,w=void 0,b=void 0;n.isHorizontal()?(_=g,x=l.y,w=m-_,b=l.height,g=_+w):(_=l.x,x=g,w=l.width,b=m-x,g=x+b);var T=u[d-1].tickValue;T!=null&&v.set(T,h),t.add(new oe({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:w,height:b},style:K({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}ml(r).splitAreaColors=v}}}function wA(r){ml(r).splitAreaColors=null}var TA=["axisLine","axisTickLabel","axisName"],AA=["splitArea","splitLine","minorSplitLine"],Ky=function(r){P(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 Q,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=gl(s,e),u=new cr(e,O({handleAutoShown:function(f){for(var v=s.coordinateSystem.getCartesians(),h=0;h<v.length;h++)if(hl(v[h].getOtherAxis(e.axis).scale))return!0;return!1}},l));S(TA,u.add,u),this._axisGroup.add(u.getGroup()),S(AA,function(f){e.get([f,"show"])&&CA[f](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||uo(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){wA(this)},t.type="cartesianAxis",t}(zn),CA={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=k(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,f=n.getTicksCoords({tickModel:i}),v=[],h=[],d=o.getLineStyle(),p=0;p<f.length;p++){var g=n.toGlobalCoord(f[p].coord);u?(v[0]=g,v[1]=l.y,h[0]=g,h[1]=l.y+l.height):(v[0]=l.x,v[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,m=f[p].tickValue;t.add(new Ze({anid:m!=null?"line_"+f[p].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:K({stroke:s[y]},d),silent:!0}))}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(!!u.length)for(var c=[],f=[],v=o.getLineStyle(),h=0;h<u.length;h++)for(var d=0;d<u[h].length;d++){var p=n.toGlobalCoord(u[h][d].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p),t.add(new Ze({anid:"minor_line_"+u[h][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:v,silent:!0}))}},splitArea:function(r,t,e,a){bA(r,t,e,a)}},qy=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(Ky),MA=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=qy.type,e}return t.type="yAxis",t}(Ky),DA=function(r){P(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 oe({shape:e.coordinateSystem.getRect(),style:K({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ae),Th={offset:0};function jy(r){r.registerComponentView(DA),r.registerComponentModel(qT),r.registerCoordinateSystem("cartesian2d",lA),Tn(r,"x",dl,Th),Tn(r,"y",dl,Th),r.registerComponentView(qy),r.registerComponentView(MA),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function PR(r){Be(jy),r.registerSeriesModel(WT),r.registerChartView(XT),r.registerLayout(Ru("scatter"))}function IA(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(!!n){var i=n.getIndicatorAxes();S(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]=Ah(c)?c:Ch(n)})}),e.each(function(o){var s=V0(a[o],function(l){return Ah(l)})||Ch(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function Ah(r){return!isNaN(r[0])&&!isNaN(r[1])}function Ch(r){return[r.cx,r.cy]}function LA(r){var t=r.polar;if(t){k(t)||(t=[t]);var e=[];S(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],k(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}S(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var PA=function(r){P(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(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=gu(v.getItemVisual(h,"symbolSize")),g=Oe(d,-1,-1,2,2),y=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function c(v,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),fo[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},e,g)):_.setPosition(h[m]),d.add(_))}}function f(v){return N(v,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(!!h){var d=new fr,p=new At,g={shape:{points:h}};d.shape.points=f(h),p.shape.points=f(h),Ie(d,g,e,v),Ie(p,g,e,v);var y=new Q,m=new Q;y.add(p),y.add(d),y.add(m),c(p.shape.points,h,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};!m.shape.points||(c(p.shape.points,m.shape.points,y,s,v,!1),dn(g),dn(p),de(p,m,e),de(g,m,e),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(v),p.useStyle(K(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),va(p,d,"lineStyle"),va(g,d,"areaStyle");var x=d.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=w,S(["emphasis","select","blur"],function(A){var C=d.getModel([A,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(A).ignore=D&&w}),g.useStyle(K(x.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis"),T=b.getModel("itemStyle").getItemStyle();y.eachChild(function(A){if(A instanceof zt){var C=A.style;A.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else A.useStyle(m),A.setColor(_),A.style.strokeNoScale=!0;var D=A.ensureState("emphasis");D.style=U(T);var M=s.getStore().get(s.getDimensionIndex(A.__dimIdx),h);(M==null||isNaN(M))&&(M=""),Wt(A,Ht(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:A.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),sr(v,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}(Fe);const RA=PA;var EA=function(r){P(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),this.legendVisualProvider=new Hy(z(this.getData,this),z(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Eu(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=ug(this,e);return Tt("section",{header:u,sortBlocks:!0,blocks:N(s,function(f){var v=i.get(i.mapDimension(f.dim),e);return Tt("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(N(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}(dt);const kA=EA;var Wa=Yy.value;function fi(r,t){return K({show:t},r)}var OA=function(r){P(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"]),f=this.get("axisNameGap"),v=this.get("triggerEvent"),h=N(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=K({color:d.color},l));var g=j(U(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:v},!1);if(G(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else Z(c)&&(g.name=c(g.name,g));var m=new Se(g,null,this.ecModel);return Xe(m,Do.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:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:j({lineStyle:{color:"#bbb"}},Wa.axisLine),axisLabel:fi(Wa.axisLabel,!1),axisTick:fi(Wa.axisTick,!1),splitLine:fi(Wa.splitLine,!0),splitArea:fi(Wa.splitArea,!0),indicator:[]},t}(te);const BA=OA;var NA=["axisLine","axisTickLabel","axisName"],VA=function(r){P(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),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=N(n,function(o){var s=o.model.get("showName")?o.name:"",l=new cr(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});S(i,function(o){S(NA,o.add,o),this.group.add(o.getGroup())},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"),f=s.get("show"),v=l.get("color"),h=u.get("color"),d=k(v)?v:[v],p=k(h)?h:[h],g=[],y=[];function m(E,V,X){var B=X%V.length;return E[B]=E[B]||[],B}if(i==="circle")for(var _=n[0].getTicksCoords(),x=a.cx,w=a.cy,b=0;b<_.length;b++){if(c){var T=m(g,d,b);g[T].push(new Nt({shape:{cx:x,cy:w,r:_[b].coord}}))}if(f&&b<_.length-1){var T=m(y,p,b);y[T].push(new ro({shape:{cx:x,cy:w,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var A,C=N(n,function(E,V){var X=E.getTicksCoords();return A=A==null?X.length-1:Math.min(X.length-1,A),N(X,function(B){return a.coordToPoint(B.coord,V)})}),D=[],b=0;b<=A;b++){for(var M=[],I=0;I<n.length;I++)M.push(C[I][b]);if(M[0]&&M.push(M[0].slice()),c){var T=m(g,d,b);g[T].push(new At({shape:{points:M}}))}if(f&&D){var T=m(y,p,b-1);y[T].push(new fr({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var L=l.getLineStyle(),R=u.getAreaStyle();S(y,function(E,V){this.group.add(ft(E,{style:K({stroke:"none",fill:p[V%p.length]},R),silent:!0}))},this),S(g,function(E,V){this.group.add(ft(E,{style:K({fill:"none",stroke:d[V%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Ae);const zA=VA;var GA=function(r){P(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}(Dt);const FA=GA;var WA=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=N(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new FA(o,new ur);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],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=$(a[0],n),this.cy=$(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(G(s)||fe(s))&&(s=[0,s]),this.r0=$(s[0],o),this.r=$(s[1],o),S(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;S(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();S(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new ur;o.setExtent(0,i),o.setInterval(1),S(a,function(s,l){Zy(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}();const HA=WA;function UA(r){r.registerCoordinateSystem("radar",HA),r.registerComponentModel(BA),r.registerComponentView(zA),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 RR(r){Be(UA),r.registerChartView(RA),r.registerSeriesModel(kA),r.registerLayout(IA),r.registerProcessor(Fy("radar")),r.registerPreprocessor(LA)}var Mh="\0_ec_interaction_mutex";function $A(r,t,e){var a=Bu(r);a[t]=e}function YA(r,t,e){var a=Bu(r),n=a[t];n===e&&(a[t]=null)}function Dh(r,t){return!!Bu(r)[t]}function Bu(r){return r[Mh]||(r[Mh]={})}Mt({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},bt);var ZA=function(r){P(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){this.disable(),this._opt=K(U(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(cc(e)||e.target&&e.target.draggable)){var a=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Di("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Dh(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&or(e.event),Jy(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){cc(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Di("zoomOnMouseWheel",e,this._opt),n=Di("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;_s(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),v=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);_s(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Dh(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;_s(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ma);function _s(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(or(a.event),Jy(r,t,e,a,n))}function Jy(r,t,e,a,n){n.isAvailableBehavior=z(Di,null,e,a),r.trigger(t,n)}function Di(r,t,e){var a=e[r];return!r||a&&(!G(a)||t.event[a+"Key"])}const Qy=ZA;function XA(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function KA(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var qA={axisPointer:1,tooltip:1,brush:1};function em(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!qA.hasOwnProperty(a.mainType)&&n&&n.model!==e}var jA=W(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),JA=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=W(),this._freedGraphics=[],this._mapName=t,this._parsedXML=z0(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=eC(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&&G0(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,tt(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var n=new Q;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,f=void 0,v=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var h=a.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,v=h.height)}l=this._boundingRect=new ge(u,c,f,v)}if(s){var d=F0(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new oe({shape:l.plain()}));var p=[];return S(e.named,function(g){jA.get(g.svgNodeTagLower)!=null&&(p.push(g),QA(g.el))}),{root:n,boundingRect:l,named:p}},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 QA(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function eC(r){var t=[],e=W();return S(r,function(a){if(a.namedFrom==null){var n=new gw(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var _l=[126,25],Ih="\u5357\u6D77\u8BF8\u5C9B",br=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Sr=0;Sr<br.length;Sr++)for(var qr=0;qr<br[Sr].length;qr++)br[Sr][qr][0]/=10.5,br[Sr][qr][1]/=-10.5/.75,br[Sr][qr][0]+=_l[0],br[Sr][qr][1]+=_l[1];function tC(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Ih)return;t.push(new fy(Ih,N(br,function(a){return{type:"polygon",exterior:a}}),_l))}}var rC={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function aC(r,t){if(r==="china"){var e=rC[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 nC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function iC(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:nC[0]})}var oC="name",sC=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=W(),this._mapName=t,this._specialAreas=a,this._geoJSON=uC(e)}return r.prototype.load=function(t,e){e=e||oC;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:lC(n)})}var i=W(),o=[];return S(a.regions,function(s){var l=s.name;t&&J(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ge(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?mw(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return tC(e,n),S(n,function(i){var o=i.name;aC(e,i),iC(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 lC(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 uC(r){return G(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ha=W();const Vt={registerMap:function(r,t,e){if(t.svg){var a=new JA(r,t.svg);Ha.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new sC(r,n,e);Ha.set(r,a)}},getGeoResource:function(r){return Ha.get(r)},getMapForUser:function(r){var t=Ha.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Ha.get(r);if(!!a)return a.load(t,e)}};var Nu=["rect","circle","line","ellipse","polygon","polyline","path"],cC=W(Nu),fC=W(Nu.concat(["g"])),hC=W(Nu.concat(["g"])),tm=ne();function hi(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Lh(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var vC=function(){function r(t){var e=new Q;this.uid=wa("ec_map_draw"),this._controller=new Qy(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Q),e.add(this._svgGroup=new Q)}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(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),v=f.raw,h=f.roam,d=!u.childAt(0)||i;d?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):de(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=W(),a=W(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],p);y&&d.push(y)}return d}function v(h){return{shape:{points:f(h)}}}n.removeAll(),S(t.geo.regions,function(h){var d=h.name,p=e.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new Q),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],x=[];S(h.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=Bh(A,u)),S(A,function(D){_.push(new fr(v(D)))})}else{var C=T.points;u&&(C=Bh(C,u,!0)),S(C,function(D){x.push(new At(v(D)))})}});var w=c(h.getCenter(),l&&l.project);function b(T,A){if(!!T.length){var C=new Rd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),Ph(t,C,y,m),Rh(t,C,d,m,o,y,w),A&&(Lh(C),S(C.states,Lh))}}b(_),b(x,!0)}),e.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;Eh(t,h,d,y,o,g),kh(t,h,d,y,o),Oh(t,h,d,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=W(),i=!1;S(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,v=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(cC.get(c)!=null&&f instanceof un&&Ph(t,f,v,h),f instanceof un&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(hC.get(c)!=null&&Rh(t,f,s,h,l,v,null),Eh(t,f,s,h,l,v),kh(t,f,s,h,l),fC.get(c)!=null)){var d=Oh(t,f,s,h,l);d==="self"&&(i=!0);var p=n.get(s)||n.set(s,[]);p.push(f)}},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){Zl(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=Vt.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=Vt.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){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,XA(o,u.dx,u.dy),a.dispatchAction(O(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,KA(o,u.scale,u.originX,u.originY),a.dispatchAction(O(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return n.containPoint([c,f])&&!em(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=tm(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 Ph(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=hi(n),u=hi(i),c=hi(s),f=hi(o),v=r.data;if(v){var h=v.getItemVisual(e,"style"),d=v.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),d&&(l.decal=$i(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Zl(t)}function Rh(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 f=l?e:i,v=void 0;(!s||i>=0)&&(v=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Wt(t,Ht(a),{labelFetcher:v,labelDataIndex:f,defaultText:e},h);var d=t.getTextContent();if(d&&(tm(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Eh(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):q(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function kh(r,t,e,a,n){r.data||Sa({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Oh(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return sr(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&q_(t,n,e),o}function Bh(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(),S(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}const rm=vC;var dC=function(r){P(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 rm(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,f=u.offset,v=new Nt({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:tp+1)});if(!f){var h=e.mainSeries.getData(),d=i.getName(l),p=h.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(p);Wt(v,Ht(g),{labelFetcher:{getFormattedLabel:function(_,x){return e.getFormattedLabel(p,x)}},defaultText:d}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Ys(v,_)}}o.add(v)}}})},t.type="map",t}(Fe);const pC=dC;var gC=function(r){P(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(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=Eu(this,{coordDimensions:["value"],encodeDefaulter:ee(zp,this)}),n=W(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,!0)}var u=Vt.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return S(u.regions,function(c){var f=c.name;n.get(f)||i.push(f)}),a.appendValues([],i),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},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 f=l[c].originalData.indexOfName(s),v=i.mapDimension("value");isNaN(l[c].originalData.get(v,f))||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=Oe(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="#fff",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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(dt);const yC=gC;function mC(r,t){var e={};return S(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 f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function _C(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)}),S(t,function(e,a){for(var n=mC(N(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 xC(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};S(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 f=l.getName(c),v=s.getRegion(f);if(!(!v||isNaN(u))){var h=n[f]||0,d=s.dataToPoint(v.getCenter());n[f]=h+1,l.setItemLayout(c,{point:d,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 Nh=rt,SC=function(r){P(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new ra,a._rawTransformable=new ra,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new ge(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new ge(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ge(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){!e||(this._center=[$(e[0],a.getWidth()),$(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=rt([],i,e),n=rt([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),W0(this.transform||(this.transform=[]),a.transform||En()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Ln(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new ra;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?Nh(n,e,i):H0(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?Nh([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=Vh(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Vh(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}(ra);function Vh(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const am=SC;var bC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},nm=["lng","lat"],im=function(r){P(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=nm,i.type="geo",i._nameCoordMap=W(),i.map=a;var o=n.projection,s=Vt.load(a,n.nameMap,n.nameProperty),l=Vt.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=bC[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var v=0;v<u.length;v++){var h=u[v].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:ve(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 ge(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(G(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){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},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=zh(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=zh(a);return i===this?i.pointToData(n):null},t}(am);Xe(im,am);function zh(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Me).models[0]||{}).coordinateSystem:null}const Gh=im;function Fh(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(b,T,A,C){for(var D=A-b,M=C-T,I=0;I<=100;I++){var L=I/100,R=i.project([b+D*L,T+M*L]);kd(a,a,R),Od(n,n,R)}};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 f=this.getBoundingRect(),v=r.get("layoutCenter"),h=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=f.width/f.height*this.aspectScale,y=!1,m,_;v&&h&&(m=[$(v[0],d),$(v[1],p)],_=$(h,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var x;if(y)x={},g>1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,x=He(w,{width:d,height:p})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function wC(r,t){S(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var TC=function(){function r(){this.dimensions=nm}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 Gh(l+s,l,O({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=Fh,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),S(i,function(o,s){var l=N(o,function(c){return c.get("nameMap")}),u=new Gh(s,s,O({nameMap:U0(l)},n(o[0])));u.zoomLimit=ir.apply(null,N(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=Fh,u.resize(o[0],e),S(o,function(c){c.coordinateSystem=u,wC(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=W(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Vt.load(e,a,n);return S(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},r}(),AC=new TC;const om=AC;var CC=function(r){P(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=Vt.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Bi(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=om.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=la(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Se(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},W()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Se(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(Z(i))return o.status=a,i(o);if(G(i))return i.replace("{a}",e!=null?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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(te);const MC=CC;function Wh(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function DC(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(Wh(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),f=(t.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(Wh(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var IC=function(r){P(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 rm(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;aa(e.target,function(n){return(a=q(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=q(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}(Ae);const LC=IC;function PC(r,t,e){Vt.registerMap(r,t,e)}function RC(r){r.registerCoordinateSystem("geo",om),r.registerComponentModel(MC),r.registerComponentView(LC),r.registerImpl("registerMap",PC),r.registerImpl("getMap",function(e){return Vt.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);var u=l.coordinateSystem;S(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];S(o,function(f,v){o[v]&&c.push(v)}),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||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=DC(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&S(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function ER(r){Be(RC),r.registerChartView(pC),r.registerSeriesModel(yC),r.registerLayout(xC),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_C),Sg("map",r.registerAction)}var Cn=S,EC=H,Ji=-1,Vu=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=U(t);this.type=a,this.mappingMethod=e,this._normalizeData=BC[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(xs(n),kC(n)):e==="category"?n.categories?OC(n):xs(n,!0):(tt(e!=="linear"||n.dataExtent),xs(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 Le(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){H(t)?S(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=k(t)?[]:H(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&&Cn(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(k(t))t=t.slice();else if(EC(t)){var e=[];Cn(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||G(l)&&l===t+"")return o;a&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(di(f[1],t,c[1]))return o}else if(c[1]===1/0){if(di(f[0],c[0],t))return o}else if(di(f[0],c[0],t)&&di(f[1],t,c[1]))return o;a&&v(c[0],o),a&&v(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function v(h,d){var p=Math.abs(h-t);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Ua("color"),getColorMapper:function(){var t=this.option;return z(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),Ja.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Oo(e,t.parsedVisual,n),i?n:xi(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return xi(Oo(t,this.option.parsedVisual),"rgba")},category:Ja,piecewise:function(t,e){var a=Sl.call(this,e);return a==null&&(a=xi(Oo(t,this.option.parsedVisual),"rgba")),a},fixed:wr}},colorHue:vi(function(t,e){return Bo(t,e)}),colorSaturation:vi(function(t,e){return Bo(t,null,e)}),colorLightness:vi(function(t,e){return Bo(t,null,null,e)}),colorAlpha:vi(function(t,e){return $0(t,e)}),decal:{applyVisual:Ua("decal"),_normalizedToVisual:{linear:null,category:Ja,piecewise:null,fixed:null}},opacity:{applyVisual:Ua("opacity"),_normalizedToVisual:xl([0,1])},liftZ:{applyVisual:Ua("liftZ"),_normalizedToVisual:{linear:wr,category:wr,piecewise:wr,fixed:wr}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:Hh,category:Ja,piecewise:function(t,e){var a=Sl.call(this,e);return a==null&&(a=Hh.call(this,t)),a},fixed:wr}},symbolSize:{applyVisual:Ua("symbolSize"),_normalizedToVisual:xl([0,1])}},r}();function kC(r){var t=r.pieceList;r.hasSpecialVisual=!1,S(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function OC(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Cn(t,function(o,s){e[o]=s}),!k(a)){var n=[];H(a)?Cn(a,function(o,s){var l=e[s];n[l!=null?l:Ji]=o}):n[Ji]=a,a=sm(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function xs(r,t){var e=r.visual,a=[];H(e)?Cn(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]),sm(r,a)}function vi(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:xl([0,1])}}function Hh(r){var t=this.option.visual;return t[Math.round(he(r,[0,1],[0,t.length-1],!0))]||{}}function Ua(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ja(r){var t=this.option.visual;return t[this.option.loop&&r!==Ji?r%t.length:r]}function wr(){return this.option.visual[0]}function xl(r){return{linear:function(t){return he(t,r,this.option.visual,!0)},category:Ja,piecewise:function(t,e){var a=Sl.call(this,e);return a==null&&(a=he(t,r,this.option.visual,!0)),a},fixed:wr}}function Sl(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Vu.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function sm(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=N(t,function(e){var a=Nd(e);return a||[0,0,0,1]})),t}var BC={linear:function(r){return he(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Vu.findPieceIndex(r,t,!0);if(e!=null)return he(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?Ji:t},fixed:bt};function di(r,t,e){return r?t<=e:t<e}const We=Vu;function NC(r){VC(r),zC(r)}function VC(r){if(!r.parallel){var t=!1;S(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function zC(r){var t=le(r.parallelAxis);S(t,function(e){if(!!H(e)){var a=e.parallelIndex||0,n=le(r.parallel)[a];n&&n.parallelAxisDefault&&j(e,n.parallelAxisDefault,!1)}})}var GC=5,FC=function(r){P(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={},S(WC,function(i,o){n.getZr().on(o,this._handlers[o]=z(i,this))},this)),Nn(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){_n(this,"_throttledDispatchExpand"),S(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(O({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ae),WC={mousedown:function(r){Ss(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Ss(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>GC)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||!Ss(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 Ss(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const HC=FC;var UC=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&j(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){S(["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=pe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);S(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}(te);const $C=UC;var YC=function(r){P(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}(Dt);const ZC=YC;function Wr(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=jr(n,[0,o])),i!=null&&(i=Math.max(i,n!=null?n:0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=jr(s,[0,o]),n=i=jr(s,[n,i]),a=0}t[0]=jr(t[0],e),t[1]=jr(t[1],e);var l=bs(t,a);t[a]+=r;var u=n||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[a]=jr(t[a],c);var f;return f=bs(t,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(t[1-a]=t[a]+l.sign*n),f=bs(t,a),i!=null&&f.span>i&&(t[1-a]=t[a]+f.sign*i),t}function bs(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 jr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ws=S,lm=Math.min,um=Math.max,Uh=Math.floor,XC=Math.ceil,$h=xe,KC=Math.PI,qC=function(){function r(t,e,a){this.type="parallel",this._axesMap=W(),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;ws(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new ZC(o,Mu(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&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();ws(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),bn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=He(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),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=pi(t.get("axisExpandWidth"),l),f=pi(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=pi(h[1]-h[0],l),h[1]=h[0]+d;else{d=pi(c*(f-1),l);var p=t.get("axisExpandCenter")||Uh(u/2);h=[c*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var y=[Uh($h(h[0]/c,1))+1,XC($h(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:v,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])}),ws(a,function(o,s){var l=(n.axisExpandable?JC:jC)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:KC/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],v=c[i],h=En();Rn(h,h,v),cn(h,h,f),this._axesLayout[o]={position:f,rotation:v,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=[];S(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 f=void 0;if(!u)f="normal";else{f="active";for(var v=t.getValues(s,c),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(v[h]);if(p==="inactive"){f="inactive";break}}}e(f,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 vt([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return U(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,f=this._model.get("axisExpandSlideTriggerArea"),v=f[0]!=null;if(c)v&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):v&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?Wr(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[um(0,d-h/2)],n[1]=lm(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function pi(r,t){return lm(um(r,t[0]),t[1])}function jC(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function JC(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;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}}const QC=qC;function eM(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new QC(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",Me).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var tM={create:eM};const rM=tM;var cm=function(r){P(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 ca([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=U(e);if(a)for(var n=a.length-1;n>=0;n--)Rt(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}(te);Xe(cm,Do);const Yh=cm;var Vr=!0,Mn=Math.min,pa=Math.max,aM=Math.pow,nM=1e4,iM=6,oM=6,Zh="globalPan",sM={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},lM={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Xh={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uM=0,cM=function(r){P(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new Q,a._uid="brushController_"+uM++,S(yM,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||$A(a,Zh,this._uid),S(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=j(U(Xh),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;YA(e,Zh,this._uid),S(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={};S(e,function(n){a[n.panelId]=U(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=N(e,function(v){return j(U(Xh),v,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Sn(n,e,u,l).add(c).update(c).remove(f).execute(),this;function l(v,h){return(v.id!=null?v.id:a+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function c(v,h){var d=e[v];if(h!=null&&n[h]===s)i[v]=n[h];else{var p=i[v]=h!=null?(n[h].__brushOption=d,n[h]):hm(o,fm(o,d));zu(o,p)}}function f(v){n[v]!==s&&o.group.remove(n[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),bl(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ma);function fm(r,t){var e=Lo[t.brushType].createCover(r,t);return e.__brushOption=t,dm(e,t),r.group.add(e),e}function hm(r,t){var e=Gu(t);return e.endCreating&&(e.endCreating(r,t),dm(t,t.__brushOption)),t}function vm(r,t){var e=t.__brushOption;Gu(t).updateCoverShape(r,t,e.range,e)}function dm(r,t){var e=t.z;e==null&&(e=nM),r.traverse(function(a){a.z=e,a.z2=e})}function zu(r,t){Gu(t).updateCommon(r,t),vm(r,t)}function Gu(r){return Lo[r.__brushOption.brushType]}function Fu(r,t,e){var a=r._panels;if(!a)return Vr;var n,i=r._transform;return S(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function pm(r,t){var e=r._panels;if(!e)return Vr;var a=t.__brushOption.panelId;return a!=null?e[a]:Vr}function bl(r){var t=r._covers,e=t.length;return S(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function zr(r,t){var e=N(r._covers,function(a){var n=a.__brushOption,i=U(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function fM(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=aM(n*n+i*i,.5);return o>iM}function gm(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ym(r,t,e,a){var n=new Q;return n.add(new oe({name:"main",style:Wu(e),silent:!0,draggable:!0,cursor:"move",drift:ee(Kh,r,t,n,["n","s","w","e"]),ondragend:ee(zr,t,{isEnd:!0})})),S(a,function(i){n.add(new oe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ee(Kh,r,t,n,i),ondragend:ee(zr,t,{isEnd:!0})}))}),n}function mm(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=pa(n,oM),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],f=e[1][1],v=c-i+n/2,h=f-i+n/2,d=c-o,p=f-s,g=d+n,y=p+n;Pt(r,t,"main",o,s,d,p),a.transformable&&(Pt(r,t,"w",l,u,i,y),Pt(r,t,"e",v,u,i,y),Pt(r,t,"n",l,u,g,i),Pt(r,t,"s",l,h,g,i),Pt(r,t,"nw",l,u,i,i),Pt(r,t,"ne",v,u,i,i),Pt(r,t,"sw",l,h,i,i),Pt(r,t,"se",v,h,i,i))}function wl(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Wu(e)),n.attr({silent:!a,cursor:a?"move":"default"}),S([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Tl(r,i[0]):vM(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?lM[s]+"-resize":null})})}function Pt(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(pM(Hu(r,t,[[a,n],[a+i,n+o]])))}function Wu(r){return K({strokeNoScale:!0},r.brushStyle)}function _m(r,t,e,a){var n=[Mn(r,e),Mn(t,a)],i=[pa(r,e),pa(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function hM(r){return Lr(r.group)}function Tl(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=lo(e[t],hM(r));return a[n]}function vM(r,t){var e=[Tl(r,t[0]),Tl(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Kh(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=xm(t,n,i);S(a,function(u){var c=sM[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(_m(s[0][0],s[1][0],s[0][1],s[1][1])),zu(t,e),zr(t,{isEnd:!1})}function dM(r,t,e,a){var n=t.__brushOption.range,i=xm(r,e,a);S(n,function(o){o[0]+=i[0],o[1]+=i[1]}),zu(r,t),zr(r,{isEnd:!1})}function xm(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 Hu(r,t,e){var a=pm(r,t);return a&&a!==Vr?a.clipPath(e,r._transform):U(e)}function pM(r){var t=Mn(r[0][0],r[1][0]),e=Mn(r[0][1],r[1][1]),a=pa(r[0][0],r[1][0]),n=pa(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function gM(r,t,e){if(!(!r._brushType||mM(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=Fu(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Vr||s.panelId===i.panelId)&&Lo[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function Al(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Cl(r,t,e){return r.childOfName("main").contain(t,e)}function Sm(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),fM(r)||n){if(i&&!n){o.brushMode==="single"&&bl(r);var l=U(o);l.brushType=qh(l.brushType,i),l.panelId=i===Vr?null:i.panelId,n=r._creatingCover=fm(r,l),r._covers.push(n)}if(n){var u=Lo[qh(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(Hu(r,n,r._track)),a&&(hm(r,n),u.updateCommon(r,n)),vm(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Fu(r,t,e)&&bl(r)&&(s={isEnd:a,removeOnClick:!0});return s}function qh(r,t){return r==="auto"?t.defaultBrushType:r}var yM={mousedown:function(r){if(this._dragging)jh(this,r);else if(!r.target||!r.target.draggable){Al(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Fu(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(gM(this,r,a),this._dragging){Al(r);var n=Sm(this,r,a,!1);n&&zr(this,n)}},mouseup:function(r){jh(this,r)}};function jh(r,t){if(r._dragging){Al(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=Sm(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&zr(r,i)}}function mM(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Lo={lineX:Jh(0),lineY:Jh(1),rect:{createCover:function(r,t){function e(a){return a}return ym({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=gm(r);return _m(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){mm(r,t,e,a)},updateCommon:wl,contain:Cl},polygon:{createCover:function(r,t){var e=new Q;return e.add(new At({name:"main",style:Wu(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new fr({name:"main",draggable:!0,drift:ee(dM,r,t),ondragend:ee(zr,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:Hu(r,t,e)})},updateCommon:wl,contain:Cl}};function Jh(r){return{createCover:function(t,e){return ym({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=gm(t),a=Mn(e[0][r],e[1][r]),n=pa(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=pm(t,e);if(o!==Vr&&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(),mm(t,e,l,n)},updateCommon:wl,contain:Cl}}const bm=cM;function wm(r){return r=Uu(r),function(t){return pp(t,r)}}function Tm(r,t){return r=Uu(r),function(e){var a=t!=null?t:e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function Am(r,t,e){var a=Uu(r);return function(n,i){return a.contain(i[0],i[1])&&!em(n,t,e)}}function Uu(r){return ge.create(r)}var _M=["axisLine","axisTickLabel","axisName"],xM=function(r){P(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){r.prototype.init.apply(this,arguments),(this._brushController=new bm(a.getZr())).on("brush",z(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!SM(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Q,this.group.add(this._axisGroup),!!e.get("show")){var s=wM(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,f=e.axis.dim,v=l.getAxisLayout(f),h=O({strokeContainThreshold:c},v),d=new cr(e,h);S(_M,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,u,e,s,c,n),uo(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),f=ge.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:wm(f),isTargetByCursor:Am(f,s,i),getLinearBrushOtherExtent:Tm(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(bM(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=N(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}(Ae);function SM(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function bM(r){var t=r.axis;return N(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function wM(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const TM=xM;var AM={type:"axisAreaSelect",event:"axisAreaSelected"};function CM(r){r.registerAction(AM,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 MM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function kR(r){r.registerComponentView(HC),r.registerComponentModel($C),r.registerCoordinateSystem("parallel",rM),r.registerPreprocessor(NC),r.registerComponentModel(Yh),r.registerComponentView(TM),Tn(r,"parallel",Yh,MM),CM(r)}var DM=["itemStyle","borderWidth"],Qh=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ts=new Nt,IM=function(r){P(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(),f=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Qh[+c],categoryDim:Qh[1-+c]};return o.diff(s).add(function(h){if(!!o.hasValue(h)){var d=tv(o,h),p=ev(o,h,d,v),g=rv(o,v,p);o.setItemGraphicEl(h,g),i.add(g),nv(g,v,p)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(h)){i.remove(p);return}var g=tv(o,h),y=ev(o,h,g,v),m=Pm(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?BM(p,v,y):p=rv(o,v,y,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=y,i.add(p),nv(p,v,y)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&av(s,h,d.__pictorialSymbolMeta.animationModel,d)}).execute(),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){av(i,q(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Fe);function ev(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,f=e.isAnimationEnabled(),v={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:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};LM(e,i,n,a,v),PM(r,t,n,i,o,v.boundingLength,v.pxSign,c,a,v),RM(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=bo(e.get("symbolOffset"),h);return EM(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function LM(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(k(o)){var f=[As(s,o[0])-l,As(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=As(s,o)-l:t?c=a.coordSysExtent[i.index][u]-l:c=e[i.wh];n.boundingLength=c,t&&(n.repeatCutLength=e[i.wh]),n.pxSign=c>0?1:-1}function As(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function PM(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,v=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),d;k(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[f.index]=$(d[f.index],v),d[c.index]=$(d[c.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function RM(r,t,e,a,n){var i=r.get(DM)||0;i&&(Ts.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ts.updateTransform(),i/=Ts.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function EM(r,t,e,a,n,i,o,s,l,u,c,f){var v=c.categoryDim,h=c.valueDim,d=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=ir(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var x=$(m,t[h.index]),w=Math.max(p+x*2,0),b=_?0:x*2,T=Hd(a),A=T?a:iv((y+b)/w),C=y-A*p;x=C/2/(_?A:Math.max(A-1,1)),w=p+x*2,b=_?0:x*2,!T&&a!=="fixed"&&(A=u?iv((Math.abs(u)+b)/w):0),g=A*w-b,f.repeatTimes=A,f.symbolMargin=x}var D=d*(g/2),M=f.pathPosition=[];M[v.index]=e[v.wh]/2,M[h.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=f.bundlePosition=[];I[v.index]=e[v.xy],I[h.index]=e[h.xy];var L=f.barRectShape=O({},e);L[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(M[h.index]+D)),L[v.wh]=e[v.wh];var R=f.clipShape={};R[v.xy]=-e[v.xy],R[v.wh]=c.ecSize[v.wh],R[h.xy]=0,R[h.wh]=e[h.wh]}function Cm(r){var t=r.symbolPatternSize,e=Oe(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Mm(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,f=i[t.valueDim.index]+o+e.symbolMargin*2;for($u(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?sa(p,null,d(c),e,a):sa(p,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(p)}),c++});c<u;c++){var v=Cm(e);v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,n.add(v);var h=d(c);sa(v,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},e,a)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=f*(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 Dm(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?sa(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=Cm(e),n.add(i),sa(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 Im(r,t,e){var a=O({},t.barRectShape),n=r.__pictorialBarRect;n?sa(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new oe({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Lm(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=O({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)de(n,{shape:i},s,l);else{i[o.wh]=0,n=new oe({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],fo[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function tv(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=kM,e.isAnimationEnabled=OM,e}function kM(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function OM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rv(r,t,e,a){var n=new Q,i=new Q;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Mm(n,t,e):Dm(n,t,e),Im(n,e,a),Lm(n,t,e,a),n.__pictorialShapeStr=Pm(r,e),n.__pictorialSymbolMeta=e,n}function BM(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;de(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Mm(r,t,e,!0):Dm(r,t,e,!0),Im(r,e,!0),Lm(r,t,e,!0)}function av(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];$u(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),S(i,function(o){vn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Pm(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function $u(r,t,e){S(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function sa(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&fo[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function nv(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"),f=i.get("blurScope"),v=i.get("scale");$u(r,function(p){if(p instanceof zt){var g=p.style;p.useStyle(O({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Wt(d,Ht(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Io(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),sr(r,c,f,i.get("disabled"))}function iv(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const NM=IM;var VM=function(r){P(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=hr(ji.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ji);const zM=VM;function OR(r){r.registerChartView(NM),r.registerSeriesModel(zM),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ee(ey,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ty("pictorialBar"))}function GM(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||J(r,"text")))}function FM(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},J(a,"text")&&(o.text=a.text),J(a,"rich")&&(o.rich=a.rich),J(a,"textFill")&&(o.fill=a.textFill),J(a,"textStroke")&&(o.stroke=a.textStroke),J(a,"fontFamily")&&(o.fontFamily=a.fontFamily),J(a,"fontSize")&&(o.fontSize=a.fontSize),J(a,"fontStyle")&&(o.fontStyle=a.fontStyle),J(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=J(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),J(a,"textPosition")&&(n.position=a.textPosition),J(a,"textOffset")&&(n.offset=a.textOffset),J(a,"textRotation")&&(n.rotation=a.textRotation),J(a,"textDistance")&&(n.distance=a.textDistance)}return ov(o,r),S(o.rich,function(l){ov(l,l)}),{textConfig:n,textContent:i}}function ov(r,t){!t||(t.font=t.textFont||t.font,J(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),J(t,"textAlign")&&(r.align=t.textAlign),J(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),J(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),J(t,"textWidth")&&(r.width=t.textWidth),J(t,"textHeight")&&(r.height=t.textHeight),J(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),J(t,"textPadding")&&(r.padding=t.textPadding),J(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),J(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),J(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),J(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),J(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),J(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),J(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var Rm={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sv=Le(Rm);la(fn,function(r,t){return r[t]=1,r},{});fn.join(", ");var Qi=["","style","shape","extra"],ga=ne();function Yu(r,t,e,a,n){var i=r+"Animation",o=xa(r,a,n)||{},s=ga(t).userDuring;return o.duration>0&&(o.during=s?z(ZM,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,e[i]),o}function Cs(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=ga(r),u=t.style;l.userDuring=t.during;var c={},f={};if(KM(r,t,f),uv("shape",t,f),uv("extra",t,f),!i&&s&&(XM(r,t,c),lv("shape",r,t,c),lv("extra",r,t,c),qM(r,t,u,c)),f.style=u,HM(r,f,o),$M(r,t),s)if(i){var v={};S(Qi,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),O(d?v[d]:v,p.enterFrom))});var h=Yu("enter",r,t,e,n);h.duration>0&&r.animateFrom(v,h)}else UM(r,t,n||0,e,c);Em(r,t),u?r.dirty():r.markRedraw()}function Em(r,t){for(var e=ga(r).leaveToProps,a=0;a<Qi.length;a++){var n=Qi[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=ga(r).leaveToProps={}),n&&(e[n]=e[n]||{}),O(n?e[n]:e,i.leaveTo))}}function WM(r,t,e,a){if(r){var n=r.parent,i=ga(r).leaveToProps;if(i){var o=Yu("update",r,t,e,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function kr(r){return r==="all"}function HM(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 UM(r,t,e,a,n){if(n){var i=Yu("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function $M(r,t){J(t,"silent")&&(r.silent=t.silent),J(t,"ignore")&&(r.ignore=t.ignore),r instanceof un&&J(t,"invisible")&&(r.invisible=t.invisible),r instanceof De&&J(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var yt={},YM={setTransform:function(r,t){return yt.el[r]=t,this},getTransform:function(r){return yt.el[r]},setShape:function(r,t){var e=yt.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=yt.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=yt.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=yt.el.style;if(t)return t[r]},setExtra:function(r,t){var e=yt.el.extra||(yt.el.extra={});return e[r]=t,this},getExtra:function(r){var t=yt.el.extra;if(t)return t[r]}};function ZM(){var r=this,t=r.el;if(!!t){var e=ga(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}yt.el=t,a(YM)}}function lv(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]={}),kr(l))O(o,i);else for(var u=le(l),c=0;c<u.length;c++){var f=u[c],v=i[f];o[f]=v}else if(kr(s)||ie(s,r)>=0){!o&&(o=a[r]={});for(var h=Le(i),c=0;c<h.length;c++){var f=h[c],v=i[f];jM(n[f],v)&&(o[f]=v)}}}}}function uv(r,t,e){var a=t[r];if(!!a)for(var n=e[r]={},i=Le(a),o=0;o<i.length;o++){var s=i[o];n[s]=Y0(a[s])}}function XM(r,t,e){for(var a=t.transition,n=kr(a)?fn: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 KM(r,t,e){for(var a=0;a<sv.length;a++){var n=sv[a],i=Rm[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<fn.length;a++){var s=fn[a];t[s]!=null&&(e[s]=t[s])}}function qM(r,t,e,a){if(!!e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!kr(o)){var l=le(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(kr(s)||kr(o)||ie(s,"style")>=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=Le(e),u=0;u<d.length;u++){var c=d[u];if(h[c]){var f=n[c];i[c]=f}}}}}}}function jM(r,t){return In(r)?r!==t:r!=null&&isFinite(r)}var km=ne(),JM=["percent","easing","shape","style","extra"];function QM(r){r.stopAnimation("keyframe"),r.attr(km(r))}function Ml(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(k(t)){S(t,function(s){Ml(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=xa("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=km(r);S(Qi,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),S(a,function(u){var c=r.animators,f=s?u[s]:u;if(!!f){var v=Le(f);if(s||(v=pe(v,function(p){return ie(JM,p)<0})),!!v.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(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;S(v,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,f,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Ar=ne(),cv=U,Ms=z,eD=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Q,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=ee(fv,e,f);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}vv(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Ou(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=Ar(t).pointerEl=new fo[i.type](cv(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Ar(t).labelEl=new ae(cv(e.label));t.add(i),hv(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Ar(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=Ar(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),hv(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=On(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){or(u.event)},onmousedown:Ms(this._onHandleDragMove,this,0,0),drift:Ms(this._onHandleDragMove,this),ondragend:Ms(this._onHandleDragEnd,this)}),a.add(n)),vv(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");k(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Nn(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){fv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ds(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(Ds(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ds(n)),Ar(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),_n(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 fv(r,t,e,a){Om(Ar(e).lastProp,a)||(Ar(e).lastProp=a,t?de(e,a,r):(e.stopAnimation(),e.attr(a)))}function Om(r,t){if(H(r)&&H(t)){var e=!0;return S(t,function(a,n){e=e&&Om(r[n],a)}),!!e}else return r===t}function hv(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ds(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function vv(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const Bm=eD;function Nm(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 Vm(r,t,e,a,n){var i=e.get("value"),o=zm(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Bn(s.get("padding")||0),u=s.getFont(),c=ao(o,u),f=n.position,v=c.width+l[1]+l[3],h=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=v),d==="center"&&(f[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),tD(f,v,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Te(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function tD(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 zm(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:Du(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};S(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),G(o)?i=o.replace("{value}",i):Z(o)&&(i=o(s))}return i}function Gm(r,t,e){var a=En();return Rn(a,a,e.rotation),cn(a,a,e.position),vt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function rD(r,t,e,a,n,i){var o=cr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Vm(t,a,n,i,{position:Gm(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Fm(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function aD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function dv(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var nD=function(r){P(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=pv(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=Nm(i),h=iD[u](s,f,c);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=gl(l.model,n);rD(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=gl(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Gm(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=pv(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var v=(u[1]+u[0])/2,h=[v,v];h[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[c]}},t}(Bm);function pv(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var iD={line:function(r,t,e){var a=Fm([t,e[0]],[t,e[1]],gv(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:aD([t-a/2,e[0]],[a,n],gv(r))}}};function gv(r){return r.dim==="x"?0:1}const oD=nD;var sD=function(r){P(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,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(te);const lD=sD;var Ot=ne(),uD=S;function Wm(r,t,e){if(!me.node){var a=t.getZr();Ot(a).records||(Ot(a).records={}),cD(a,t);var n=Ot(a).records[r]||(Ot(a).records[r]={});n.handler=e}}function cD(r,t){if(Ot(r).initialized)return;Ot(r).initialized=!0,e("click",ee(yv,"click")),e("mousemove",ee(yv,"mousemove")),e("globalout",hD);function e(a,n){r.on(a,function(i){var o=vD(t);uD(Ot(r).records,function(s){s&&n(s,i,o.dispatchAction)}),fD(o.pendings,t)})}}function fD(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 hD(r,t,e){r.handler("leave",null,e)}function yv(r,t,e,a){t.handler(r,e,a)}function vD(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 Dl(r,t){if(!me.node){var e=t.getZr(),a=(Ot(e).records||{})[r];a&&(Ot(e).records[r]=null)}}var dD=function(r){P(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";Wm("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){Dl("axisPointer",a)},t.prototype.dispose=function(e,a){Dl("axisPointer",a)},t.type="axisPointer",t}(Ae);const pD=dD;function Hm(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Or(i,r);if(o==null||o<0||k(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,v=u.dim,h=f==="x"||f==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(N(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 mv=ne();function gD(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){Ii(n)&&(n=Hm({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ii(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Ii(n),v={},h={},d={list:[],map:{}},p={showPointer:ee(mD,h),showTooltip:ee(_D,d)};S(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);S(s.coordSysAxesInfo[m],function(x,w){var b=x.axis,T=wD(u,x);if(!f&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=b.pointToData(n)),A!=null&&_v(x,A,p,!1,v)}})});var g={};return S(c,function(y,m){var _=y.linkGroup;_&&!h[m]&&S(_.axesInfo,function(x,w){var b=h[w];if(x!==y&&b){var T=b.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,xv(x),xv(y)))),g[y.key]=T}})}),S(g,function(y,m){_v(c[m],y,p,!0,v)}),xD(h,c,v),SD(d,n,r,o),bD(c,o,e),v}}function _v(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=yD(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&O(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function yD(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return S(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,r,e);v=h.dataIndices,f=h.nestestValue}else{if(v=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!v.length)return;f=l.getData().get(c[0],v[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),S(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function mD(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function _D(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=An(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 xD(r,t,e){var a=e.axesInfo=[];S(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 SD(r,t,e,a){if(Ii(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 bD(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=mv(a)[n]||{},o=mv(a)[n]={};S(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&S(f.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];S(i,function(u,c){!o[c]&&l.push(u)}),S(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 wD(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 xv(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 Ii(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Zu(r){zn.registerAxisPointerClass("CartesianAxisPointer",oD),r.registerComponentModel(lD),r.registerComponentView(pD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!k(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=dA(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gD)}function BR(r){Be(jy),Be(Zu)}var TD=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var h=Nm(i),d=CD[v](s,l,f,c);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=AD(a,n,i,l,p);Vm(e,n,i,o,g)},t}(Bm);function AD(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var v=En();Rn(v,v,s),cn(v,v,[a.cx,a.cy]),u=vt([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=cr.innerTextLayout(s,h*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var CD={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:Fm(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:dv(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:dv(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const MD=TD;var DD=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(te);const ID=DD;var Xu=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Me).models[0]},t.type="polarAxis",t}(te);Xe(Xu,Do);var LD=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Xu),PD=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Xu),Ku=function(r){P(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(Dt);Ku.prototype.dataToRadius=Dt.prototype.dataToCoord;Ku.prototype.radiusToData=Dt.prototype.coordToData;const RD=Ku;var ED=ne(),qu=function(r){P(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=ao(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),v=f/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=ED(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(Dt);qu.prototype.dataToAngle=Dt.prototype.dataToCoord;qu.prototype.angleToData=Dt.prototype.coordToData;const kD=qu;var Um=["radius","angle"],OD=function(){function r(t){this.dimensions=Um,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new RD,this._angleAxis=new kD,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,v=this.r0;return c<=f*f&&c>=v*v}}},r.prototype.convertToPixel=function(t,e,a){var n=Sv(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Sv(e);return n===this?this.pointToData(a):null},r}();function Sv(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const BD=OD;function ND(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=$(a[0],n),r.cy=$(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:k(l)||(l=[0,l]);var u=[$(l[0],s),$(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function VD(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();S(Xi(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),S(Xi(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),bn(a.scale,a.model),bn(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 zD(r){return r.mainType==="angleAxis"}function bv(r,t){if(r.type=t.get("type"),r.scale=Mu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),zD(t)){r.inverse=r.inverse!==t.get("clockwise");var e=t.get("startAngle");r.setExtent(e,e+(r.inverse?-360:360))}t.axis=r,r.model=t}var GD={dimensions:Um,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new BD(n+"");i.update=VD;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");bv(o,l),bv(s,u),ND(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Me).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const FD=GD;var WD=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function gi(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 yi(r){var t=r.getRadiusAxis();return t.inverse?0:1}function wv(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 HD=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=N(n.getViewLabels(),function(c){c=U(c);var f=n.scale,v=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(v),c});wv(u),wv(s),S(WD,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&UD[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(zn),UD={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=yi(e),l=s?0:1,u;i[l]===0?u=new Nt({shape:{cx:e.cx,cy:e.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new ro({shape:{cx:e.cx,cy:e.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[yi(e)],u=N(a,function(c){return new Ze({shape:gi(e,[l,l+s],c.coord)})});r.add(ft(u,{style:K(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[yi(e)],c=[],f=0;f<n.length;f++)for(var v=0;v<n[f].length;v++)c.push(new Ze({shape:gi(e,[u,u+l],n[f][v].coord)}));r.add(ft(c,{style:K(s.getModel("lineStyle").getLineStyle(),K(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");S(o,function(f,v){var h=l,d=f.tickValue,p=i[yi(e)],g=e.coordToPoint([p+u,f.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];H(w)&&w.textStyle&&(h=new Se(w.textStyle,l,l.ecModel))}var b=new ae({silent:cr.isLabelSilent(t),style:Te(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:x})});if(r.add(b),c){var T=cr.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=f.rawLabel,q(b).eventData=T}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Ze({shape:gi(e,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(ft(c[f],{style:K({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(!!n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new Ze({shape:gi(e,i,n[u][c].coord)}));r.add(ft(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(!!a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,v=-a[0].coord*f,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new Gt({shape:{cx:e.cx,cy:e.cy,r0:h,r:d,startAngle:v,endAngle:-m*f,clockwise:p},silent:!0})),v=-m*f}for(var g=0;g<c.length;g++)r.add(ft(c[g],{style:K({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const $D=HD;var YD=["axisLine","axisTickLabel","axisName"],ZD=["splitLine","splitArea","minorSplitLine"],XD=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Q;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],v=o.getExtent(),h=qD(s,e,f),d=new cr(e,h);S(YD,d.add,d),i.add(d.getGroup()),uo(n,i,e),S(ZD,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&KD[p](this.group,e,s,f,v,u,c)},this)}},t.type="radiusAxis",t}(zn),KD={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<i.length;f++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Nt({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)r.add(ft(c[f],{style:K({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Nt({shape:{cx:e.cx,cy:e.cy,r:o[c][f].coord}}));r.add(ft(u,{style:K({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(!!i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,v=1;v<i.length;v++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Gt({shape:{cx:e.cx,cy:e.cy,r0:f,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[v].coord}for(var v=0;v<c.length;v++)r.add(ft(c[v],{style:K({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function qD(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const jD=XD;function $m(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Ym(r,t){return t.dim+r.model.componentIndex}function JD(r,t,e){var a={},n=QD(pe(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Ym(s,l),c=$m(i),f=n[u][c],v=f.offset,h=f.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),w=Nr(o,_),b=l.dim!=="radius"||!i.get("roundCap",!0),T=d.dataToCoord(0),A=0,C=o.count();A<C;A++){var D=o.get(_,A),M=o.get(x,A),I=D>=0?"p":"n",L=T;w&&(a[c][M]||(a[c][M]={p:T,n:T}),L=a[c][M][I]);var R=void 0,E=void 0,V=void 0,X=void 0;if(d.dim==="radius"){var B=d.dataToCoord(D)-T,F=l.dataToCoord(M);Math.abs(B)<y&&(B=(B<0?-1:1)*y),R=L,E=L+B,V=F-v,X=V-h,w&&(a[c][M][I]=E)}else{var Y=d.dataToCoord(D,b)-T,re=l.dataToCoord(M);Math.abs(Y)<m&&(Y=(Y<0?-1:1)*m),R=re+v,E=R+h,V=L,X=L+Y,w&&(a[c][M][I]=X)}o.setItemLayout(A,{cx:p,cy:g,r0:R,r:E,startAngle:-V*Math.PI/180,endAngle:-X*Math.PI/180,clockwise:V>=X})}}})}function QD(r){var t={};S(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Ym(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=f.stacks;t[l]=f;var h=$m(a);v[h]||f.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=$(a.get("barWidth"),c),p=$(a.get("barMaxWidth"),c),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[h].width&&(d=Math.min(f.remainedWidth,d),v[h].width=d,f.remainedWidth-=d),p&&(v[h].maxWidth=p),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var e={};return S(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=$(a.categoryGap,o),l=$(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),S(i,function(p,g){var y=p.maxWidth;y&&y<f&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var v=0,h;S(i,function(p,g){p.width||(p.width=f),h=p,v+=p.width*(1+l)}),h&&(v-=h.width*l);var d=-v/2;S(i,function(p,g){e[n][g]=e[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var eI={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},tI={splitNumber:5},rI=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Ae);function NR(r){Be(Zu),zn.registerAxisPointerClass("PolarAxisPointer",MD),r.registerCoordinateSystem("polar",FD),r.registerComponentModel(ID),r.registerComponentView(rI),Tn(r,"angle",LD,eI),Tn(r,"radius",PD,tI),r.registerComponentView($D),r.registerComponentView(jD),r.registerLayout(ee(JD,"bar"))}var aI=function(r){P(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=Ta(e);r.prototype.init.apply(this,arguments),Tv(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Tv(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(te);function Tv(r,t){var e=r.cellSize,a;k(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=N([0,1],function(i){return Nx(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});lr(r,t,{type:"box",ignoreSize:n})}const nI=aI;var iI=function(r){P(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.dataToRect([u],!1).tl,f=new oe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},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 f=a.start,v=0;f.time<=a.end.time;v++){d(f.formatedDate),v===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,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 At({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.dataToRect([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 G(e)&&e?Ox(e,a):Z(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,f=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,h={top:[c,u[v][1]],bottom:[c,u[1-v][1]],left:[u[1-v][0],f],right:[u[v][0],f]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new ae({z2:30,style:Te(o,{text:y})});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"),f=[this._tlpoints,this._blpoints];(!s||G(s))&&(s&&(a=Qs(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=0;p<f[v].length-1;p++){var g=f[v][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[h]=(m[h]+f[0][p+1][h])/2}var _=o.get("formatter"),x=s[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},b=this._formatterLabel(_,w),T=new ae({z2:30,style:O(Te(o,{text:b}),this._monthTextPositionControl(g,d,n,u,l))});i.add(T)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],c=e[1],f=n==="start";return a==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"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"),f=s.get("margin"),v=l.getFirstDayOfWeek();if(!c||G(c)){c&&(a=Qs(c)||a);var h=a.get(["time","dayOfWeekShort"]);c=h||N(a.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=$(f,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+v)%7);var x=new ae({z2:30,style:O(Te(s,{text:c[_]}),this._weekTextPositionControl(m,i,u,f,p))});o.add(x)}}},t.type="calendar",t}(Ae);const oI=iI;var Is=864e5,sI=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}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=wt(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];S([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=He(o,l);S([0,1],function(f){c(i,f)||(i[f]=u[n[f]]/s[f])});function c(f,v){return f[v]!=null&&f[v]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){k(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),n=this._rangeInfo,i=a.formatedDate;if(e&&!(a.time>=n.start.time&&a.time<n.end.time+Is))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},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=Av(e);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Av(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(k(t)&&t.length===1&&(t=t[0]),k(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/Is)-Math.floor(e[0].time/Is)+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),f=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:f,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);a.push(i),n.coordinateSystem=i}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function Av(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const lI=sI;function VR(r){r.registerComponentModel(nI),r.registerComponentView(oI),r.registerCoordinateSystem("calendar",lI)}function uI(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 Cv(r,t){var e;return S(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function cI(r,t,e){var a=O({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(j(n,a,!0),lr(n,a,{ignoreSize:!0}),kp(e,n),mi(e,n),mi(e,n,"shape"),mi(e,n,"style"),mi(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var Zm=["transition","enterFrom","leaveTo"],fI=Zm.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function mi(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?Zm:fI,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function hI(r,t){if(!!r&&(r.hv=t.hv=[Cv(t,["left","right"]),Cv(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 vI=function(r){P(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=Xd(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];S(l,function(c,f){var v=c.newOption;!v||(u.push(v),uI(c,v),cI(o,f,v),hI(o[f],v))},this),n.elements=pe(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,a,n){S(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}(te),Mv={path:null,compoundPath:null,group:Q,image:zt,text:ae},Qe=ne(),dI=function(r){P(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=W()},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");S(a,function(l){var u=ke(l.id,null),c=u!=null?n.get(u):null,f=ke(l.parentId,null),v=f!=null?n.get(f):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&GM(d,h,!!g,!!p)){var y=FM(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=pI(l),_=l.$action||"merge",x=_==="merge",w=_==="replace";if(x){var b=!c,T=c;b?T=Dv(u,v,l.type,n):(T&&(Qe(T).isNew=!1),QM(T)),T&&(Cs(T,m,e,{isInit:b}),Iv(T,l,o,s))}else if(w){Li(c,l,n,e);var A=Dv(u,v,l.type,n);A&&(Cs(A,m,e,{isInit:!0}),Iv(A,l,o,s))}else _==="remove"&&(Em(c,l),Li(c,l,n,e));var C=n.get(u);if(C&&p)if(x){var D=C.getTextContent();D?D.attr(p):C.setTextContent(new ae(p))}else w&&C.setTextContent(new ae(p));if(C){var M=l.clipPath;if(M){var I=M.type,L=void 0,b=!1;if(x){var R=C.getClipPath();b=!R||Qe(R).type!==I,L=b?Il(I):R}else w&&(b=!0,L=Il(I));C.setClipPath(L),Cs(L,M,e,{isInit:b}),Ml(L,M.keyframeAnimation,e)}var E=Qe(C);C.setTextConfig(g),E.option=l,gI(C,e,l),Sa({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),Ml(C,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 f=n[c],v=ke(f.id,null),h=v!=null?o.get(v):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Qe(h),y=Qe(d);g.width=$(g.option.width,p?s:y.width)||0,g.height=$(g.option.height,p?l:y.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],v=ke(f.id,null),h=v!=null?o.get(v):null;if(!!h){var d=h.parent,y=Qe(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},x=nu(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Qe(h).isNew&&x){for(var w=f.transition,b={},T=0;T<u.length;T++){var A=u[T],C=_[A];w&&(kr(w)||ie(w,A)>=0)?b[A]=C:h[A]=C}de(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Li(n,Qe(n).option,a,e._lastGraphicModel)}),this._elMap=W()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ae);function Il(r){var t=J(Mv,r)?Mv[r]:fp(r),e=new t({});return Qe(e).type=r,e}function Dv(r,t,e,a){var n=Il(e);return t.add(n),a.set(r,n),Qe(n).id=r,Qe(n).isNew=!0,n}function Li(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Li(i,t,e,a)}),WM(r,t,a),e.removeKey(Qe(r).id))}function Iv(r,t,e,a){r.isGroup||S([["cursor",un.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];J(t,i)?r[i]=ve(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),S(Le(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=Z(i)?i:null}}),J(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function pI(r){return r=O({},r),S(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ep),function(t){delete r[t]}),r}function gI(r,t,e){var a=q(r).eventData;!r.silent&&!r.ignore&&!a&&(a=q(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function zR(r){r.registerComponentModel(vI),r.registerComponentView(dI),r.registerPreprocessor(function(t){var e=t.graphic;k(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var Lv=["x","y","radius","angle","single"],yI=["cartesian2d","polar","singleAxis"];function mI(r){var t=r.get("coordinateSystem");return ie(yI,t)>=0}function ar(r){return r+"Axis"}function _I(r,t){var e=W(),a=[],n=W();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 f=!1;return c.eachTargetAxis(function(v,h){var d=e.get(v);d&&d[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,v){(e.get(f)||e.set(f,[]))[v]=!0})}return a}function Xm(r){var t=r.ecModel,e={infoList:[],infoMap:W()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(ar(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 Ls=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}(),xI=function(r){P(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=Pv(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=Pv(e);j(this.option,e,!0),j(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;S([["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=W(),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 S(Lv,function(n){var i=this.getReferringComponents(ar(n),__);if(!!i.specified){a=!0;var o=new Ls;S(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 f=u[0];if(!!f){var v=new Ls;if(v.add(f.componentIndex),e.set(c,v),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Me).models[0];h&&S(u,function(d){f.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",Me).models[0]&&v.add(d.componentIndex)})}}}i&&S(Lv,function(u){if(!!i){var c=n.findComponents({mainType:ar(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var f=new Ls;f.add(c[0].componentIndex),e.set(u,f),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");S([["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(ar(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){S(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(ar(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;S([["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;S(["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}(te);function Pv(r){var t={};return S(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Dn=xI;var SI=function(r){P(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}(Dn);const bI=SI;var wI=function(r){P(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}(Ae);const ju=wI;var TI=function(r){P(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}(ju);const AI=TI;var ta=S,Rv=Rt,CI=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(mI(e)){var a=ar(this._dimName),n=e.getReferringComponents(a,Me).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 U(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;ta(["start","end"],function(v,h){var d=t[v],p=t[v+"Value"];i[h]==="percent"?(d==null&&(d=o[h]),p=n.parse(he(d,o,e))):(u=!0,p=p==null?e[h]:n.parse(p),d=he(p,e,o)),l[h]=p,s[h]=d}),Rv(l),Rv(s);var c=this._minMaxSpan;u?f(l,s,e,o,!1):f(s,l,o,e,!0);function f(v,h,d,p,g){var y=g?"Span":"ValueSpan";Wr(0,v,d,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)h[m]=he(v[m],d,p,!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=MI(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;ta(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(!!c.length){if(i==="weakFilter"){var f=u.getStore(),v=N(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<c.length;y++){var m=f.get(v[y],h),_=!isNaN(m),x=m<o[0],w=m>o[1];if(_&&!x&&!w)return!0;_&&(g=!0),x&&(d=!0),w&&(p=!0)}return g&&d&&p})}else ta(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});ta(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;ta(["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=he(a[0]+o,a,[0,100],!0):i!=null&&(o=he(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=Gd(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 MI(r,t,e){var a=[1/0,-1/0];ta(e,function(o){hw(a,o.getData(),t)});var n=r.getAxisModel(),i=sy(n.axis.scale,n,a).calculate();return[i.min,i.max]}const DI=CI;var II={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(ar(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 DI(n,i,s,r),e.push(o.__dzAxisProxy))});var a=W();return S(e,function(n){S(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]})}})}};const LI=II;function PI(r){r.registerAction("dataZoom",function(t,e){var a=_I(e,t);S(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Ev=!1;function Ju(r){Ev||(Ev=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,LI),PI(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function RI(r){r.registerComponentModel(bI),r.registerComponentView(AI),Ju(r)}var ct=function(){function r(){}return r}(),Km={};function $a(r,t){Km[r]=t}function qm(r){return Km[r]}var EI=function(r){P(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;S(this.option.feature,function(a,n){var i=qm(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),j(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:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(te);const kI=EI;function OI(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=He(a,i,n);Pr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),nu(r,a,i,n)}function jm(r,t){var e=Bn(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new oe({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var BI=function(r){P(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={}),f=[];S(u,function(d,p){f.push(p)}),new Sn(this._featureNames||[],f).add(v).update(v).remove(ee(v,null)).execute(),this._featureNames=f;function v(d,p){var g=f[d],y=f[p],m=u[g],_=new Se(m,e,e.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(NI(g))x={onclick:_.option.onclick,featureName:g};else{var w=qm(g);if(!w)return;x=new w}c[g]=x}else if(x=c[y],!x)return;x.uid=wa("toolbox-feature"),x.model=_,x.ecModel=a,x.api=n;var b=x instanceof ct;if(!g&&y){b&&x.dispose&&x.dispose(a,n);return}if(!_.get("show")||b&&x.unusable){b&&x.remove&&x.remove(a,n);return}h(_,x,g),_.setIconStatus=function(T,A){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[T]=A,D[T]&&(A==="emphasis"?fa:ha)(D[T])},x instanceof ct&&x.render&&x.render(_,a,n,i)}function h(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof ct&&p.getIcons?p.getIcons():d.get("icon"),x=d.get("title")||{},w,b;G(_)?(w={},w[g]=_):w=_,G(x)?(b={},b[g]=x):b=x;var T=d.iconPaths={};S(w,function(A,C){var D=On(A,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var I=new ae({style:{text:b[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),Sa({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:b[C]}}),D.__title=b[C],D.on("mouseover",function(){var L=m.getItemStyle(),R=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||R}),I.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?fa:ha)(D),o.add(D),D.on("click",z(p.onclick,p,a,n,C)),T[C]=D})}OI(o,e,n),o.add(jm(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!Z(_)&&p){var x=_.style||(_.style={}),w=ao(p,ae.makeFont(x)),b=d.x+o.x,T=d.y+o.y+s,A=!1;T+w.height>n.getHeight()&&(y.position="top",A=!0);var C=A?-5-w.height:s+10;b+w.width/2>n.getWidth()?(y.position=["100%",C],x.align="right"):b-w.width/2<0&&(y.position=[0,C],x.align="left")}})},t.prototype.updateView=function(e,a,n,i){S(this._features,function(o){o instanceof ct&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){S(this._features,function(n){n instanceof ct&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){S(this._features,function(n){n instanceof ct&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(Ae);function NI(r){return r.indexOf("my")===0}const VI=BI;var zI=function(r){P(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")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=me.browser;if(Z(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),x.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=n.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',A=window.open();A.document.write(T),A.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:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(ct);const GI=zI;var kv="__ec_magicType_stack__",FI=[["line","bar"],["stack"]],WI=function(r){P(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 S(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(!!Ov[n]){var s={series:[]},l=function(f){var v=f.subType,h=f.id,d=Ov[n](v,h,f,i);d&&(K(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=f.getReferringComponents(m,Me).models[0],x=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=x;w++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=n==="bar"}}};S(FI,function(f){ie(f,n)>=0&&S(f,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=j({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}(ct),Ov={line:function(r,t,e,a){if(r==="bar")return j({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 j({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")===kv;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),j({id:t,stack:n?"":kv},a.get(["option","stack"])||{},!0)}};Mt({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const HI=WI;var Po=new Array(60).join("-"),ya=" ";function UI(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 $I(r){var t=[];return S(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(N(e.series,function(h){return h.name})),l=[n.model.getCategories()];S(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ya)],c=0;c<l[0].length;c++){for(var f=[],v=0;v<l.length;v++)f.push(l[v][c]);u.push(f.join(ya))}t.push(u.join(`
`))}),t.join(`
`+Po+`
`)}function YI(r){return N(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+ya:"")+n.join(ya))}),a.join(`
`)}).join(`
`+Po+`
`)}function ZI(r){var t=UI(r);return{value:pe([$I(t.seriesGroupByCategoryAxis),YI(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+Po+`
`),meta:t.meta}}function eo(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function XI(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ya)>=0)return!0}var Ll=new RegExp("["+ya+"]+","g");function KI(r){for(var t=r.split(/\n+/g),e=eo(t.shift()).split(Ll),a=[],n=N(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=eo(t[i]).split(Ll);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 qI(r){for(var t=r.split(/\n+/g),e=eo(t.shift()),a=[],n=0;n<t.length;n++){var i=eo(t[n]);if(!!i){var o=i.split(Ll),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;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function jI(r,t){var e=r.split(new RegExp(`
*`+Po+`
*`,"g")),a={series:[]};return S(e,function(n,i){if(XI(n)){var o=KI(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=qI(n);a.series.push(o)}}),a}var JI=function(r){P(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")||"#fff";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 f=i.get("optionToContent"),v=i.get("contentToOption"),h=ZI(e);if(Z(f)){var d=f(a.getOption());G(d)?u.innerHTML=d:Vd(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),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",_=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function b(){n.removeChild(o),w._dom=null}fc(_,"click",b),fc(x,"click",function(){if(v==null&&f!=null||v!=null&&f==null){b();return}var T;try{Z(v)?T=v(u,a.getOption()):T=jI(c.value,g)}catch(A){throw b(),new Error("Data view format error "+A)}T&&a.dispatchAction({type:"changeDataView",newOption:T}),b()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(_),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:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(ct);function QI(r,t){return N(r,function(e,a){var n=t&&t[a];if(H(n)&&!k(n)){var i=H(e)&&!k(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=K(e,n),o&&delete e.name,e}else return e})}Mt({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];S(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(O({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:QI(a.data,i)})}}),t.mergeOption(K({series:e},r.newOption))});const eL=JI;var Jm=S,Qm=ne();function tL(r,t){var e=Qu(r);Jm(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 rL(r){var t=Qu(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return Jm(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 aL(r){Qm(r).snapshots=null}function nL(r){return Qu(r).length}function Qu(r){var t=Qm(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var iL=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){aL(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}(ct);Mt({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const oL=iL;var sL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],lL=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=Bv(e,t);S(uL,function(o,s){(!a||!a.include||ie(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=Ps[a.brushType](0,i,n);a.__rangeOffset={offset:Gv[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){S(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&S(i.coordSyses,function(o){var s=Ps[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){S(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Ps[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Gv[a.brushType](i.values,o.offset,cL(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return N(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:wm(n),isTargetByCursor:Am(n,t,a.coordSysModel),getLinearBrushOtherExtent:Tm(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&ie(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=Bv(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<Nv.length;l++)if(Nv[l](n,o))return o}return!0},r}();function Pl(r){return r[0]>r[1]&&r.reverse(),r}function Bv(r,t){return en(r,t,{includeMainTypes:sL})}var uL={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=W(),o={},s={};!e&&!a&&!n||(S(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),S(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),S(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=[];S(u.getCartesians(),function(f,v){(ie(e,f.getAxis("x").model)>=0||ie(a,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Vv.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){S(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:Vv.geo})})}},Nv=[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}],Vv={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Lr(r)),t}},Ps={lineX:ee(zv,0),lineY:ee(zv,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=[Pl([n[0],i[0]]),Pl([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=N(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 zv(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Pl(N([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 Gv={lineX:ee(Fv,0),lineY:ee(Fv,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 N(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function Fv(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function cL(r,t){var e=Wv(r),a=Wv(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 Wv(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const e0=lL;var Rl=S,fL=d_("toolbox-dataZoom_"),hL=function(r){P(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 bm(n.getZr()),this._brushController.on("brush",z(this._onBrush,this)).mount()),pL(e,a,this,i,n),dL(e,a)},t.prototype.onclick=function(e,a,n){vL[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;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new e0(ec(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[v],f,c)}}),tL(i,n),this._dispatchZoomAction(n);function s(u,c,f){var v=c.getAxis(u),h=v.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Wr(0,f.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var v;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,c.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];Rl(e,function(n,i){a.push(U(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:"rgba(210,219,238,0.2)"}};return a},t}(ct),vL={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(rL(this.ecModel))}};function ec(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 dL(r,t){r.setIconStatus("back",nL(t)>1?"emphasis":"normal")}function pL(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 e0(ec(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)}Ux("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=ec(a),o=en(r,i);Rl(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Rl(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:fL+u+f};v[c]=f,n.push(v)}return n});const gL=hL;function GR(r){r.registerComponentModel(kI),r.registerComponentView(VI),$a("saveAsImage",GI),$a("magicType",HI),$a("dataView",eL),$a("dataZoom",gL),$a("restore",oL),Be(RI)}var yL=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(te);const mL=yL;function t0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function r0(r){if(!!me.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var a0=r0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_L=r0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function n0(r,t){if(!r)return t;t=Pp(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function xL(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var SL=n0(_L,"transition"),tc=n0(a0,"transform"),bL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(me.transform3dSupported?"will-change:transform;":"");function wL(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function TL(r,t,e){if(!G(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Br(t);var i=wL(e),o=Math.max(Math.round(n)*1.5,6),s="",l=tc+":",u;ie(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,v=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function AL(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=me.transformSupported?","+tc+a:",left"+a+",top"+a),SL+":"+n}function Hv(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!me.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=me.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+tc+":"+o+";":[["top",0],["left",0],[a0,o]]}function CL(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),S(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function ML(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=cg(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),t&&n&&a.push(AL(n,e)),i&&a.push("background-color:"+i),S(["width","color","radius"],function(h){var d="border-"+h,p=Pp(d),g=r.get(p);g!=null&&a.push(d+":"+g+(h==="color"?"":"px"))}),a.push(CL(c)),f!=null&&a.push("padding:"+Bn(f).join("px ")+"px"),a.join(";")+";"}function Uv(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&X0(r,o,document.body,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 DL=function(){function r(t,e,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,me.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),o=this._appendToBody=a&&a.appendToBody;Uv(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Z0(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,a=xL(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),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=bL+ML(t,!this._firstShow,this._longHide)+Hv(i[0],i[1],!0)+("border-color:"+Br(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(G(i)&&a.get("trigger")==="item"&&!t0(a)&&(s=TL(a,n,i)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",k(t)||(t=[t]);for(var l=0;l<t.length;l++)Vd(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var a=this._styleCoord;if(Uv(a,this._zr,this._appendToBody,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Hv(a[0],a[1]);S(i,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",me.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)&&(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.el.parentNode.removeChild(this.el)},r}();const IL=DL;var LL=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Yv(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},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;H(t)&&Ge(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new ae({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:cg(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),S(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),S(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=$v(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;Yv(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=er(i.borderWidth||0),s=$v(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)&&(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 er(r){return Math.max(0,r)}function $v(r){var t=er(r.shadowBlur||0),e=er(r.shadowOffsetX||0),a=er(r.shadowOffsetY||0);return{left:er(t-e),right:er(t+e),top:er(t-a),bottom:er(t+a)}}function Yv(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const PL=LL;var RL=new oe({shape:{x:-1,y:-1,width:2,height:2}}),EL=function(r){P(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(!(me.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=S_(n.get("renderMode"));this._tooltipContent=i==="richText"?new PL(a):new IL(a.getDom(),a,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,a,n){if(!(me.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Nn(this,"_updatePosition",50,"fixRate"):_n(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Wm("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||me.node||!n.getDom())){var o=Zv(i,n);this._ticket="";var s=i.dataByCoordSys,l=NL(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=RL;c.x=i.x,c.y=i.y,c.update(),q(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var f=Hm(i,a),v=f.point[0],h=f.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Zv(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var c=u.getData(),f=Ya([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){this._lastDataByCoordSys=null;var s,l;aa(n,function(u){if(q(u).dataIndex!=null)return s=u,!0;if(q(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,a):l?this._showComponentItemTooltip(e,l,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=Ya([a.tooltipOption],i),l=this._renderMode,u=[],c=Tt("section",{blocks:[],noHeader:!0}),f=[],v=new Xo;S(e,function(m){S(m.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var b=zm(w,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=Tt("section",{header:b,noHeader:!Pn(b),sortBlocks:!0,blocks:[]});c.blocks.push(T),S(_.seriesDataIndices,function(A){var C=n.getSeriesByIndex(A.seriesIndex),D=A.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Du(x.axis,{value:w}),M.axisValueLabel=b,M.marker=v.makeTooltipMarker("item",Br(M.color),l);var I=nf(C.formatTooltip(D,!0,null)),L=I.frag;if(L){var R=Ya([C],i).get("valueFormatter");T.blocks.push(R?O({valueFormatter:R},L):L)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=a.position,d=s.get("order"),p=cf(c,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
`:"<br/>",y=f.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,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=q(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=e.positionDefault,p=Ya([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new Xo;y.marker=m.makeTooltipMarker("item",Br(y.color),h);var _=nf(u.formatTooltip(c,!1,f)),x=p.get("order"),w=p.get("valueFormatter"),b=_.frag,T=b?cf(w?O({valueFormatter:w},b):b,m,h,x,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,T,y,A,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=q(a),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,v=Ya(u,this._tooltipModel,f?{position:f}:null),h=v.get("content"),d=Math.random()+"",p=new Xo;this._showOrMove(v,function(){var g=U(v.get("formatterParams")||{});this._showTooltipContent(v,h,g,d,e.offsetX,e.offsetY,e.position,a,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(G(v)){var g=e.ecModel.get("useUTC"),y=k(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=vo(y.axisValue,h,g)),h=Rp(h,n,!0)}else if(Z(v)){var _=z(function(x,w){x===this._ticket&&(f.setContent(w,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;f.setContent(h,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||k(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!k(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),k(a))n=$(a[0],u),i=$(a[1],c);else if(H(a)){var p=a;p.width=f[0],p.height=f[1];var g=He(p,{width:u,height:c});n=g.x,i=g.y,v=null,h=null}else if(G(a)&&l){var y=BL(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=kL(n,i,o,u,c,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=Xv(v)?f[0]/2:v==="right"?f[0]:0),h&&(i-=Xv(h)?f[1]/2:h==="bottom"?f[1]:0),t0(e)){var y=OL(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&&S(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&S(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&S(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&S(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],x=i[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){me.node||!a.getDom()||(_n(this,"_updatePosition"),this._tooltipContent.dispose(),Dl("itemTooltip",a))},t.type="tooltip",t}(Ae);function Ya(r,t,e){var a=t.ecModel,n;e?(n=new Se(e,a,a),n=new Se(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Se&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(n=new Se(o,n,a)))}return n}function Zv(r,t){return r.dispatchAction||z(t.dispatchAction,t)}function kL(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 OL(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 BL(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 Xv(r){return r==="center"||r==="middle"}function NL(r,t,e){var a=Wl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=kn(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=q(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const VL=EL;function FR(r){Be(Zu),r.registerComponentModel(mL),r.registerComponentView(VL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}var Kv=S;function qv(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function jv(r,t,e){var a={};return Kv(t,function(i){var o=a[i]=n();Kv(r[i],function(s,l){if(!!We.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new We(u),l==="opacity"&&(u=U(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new We(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function zL(r,t,e){var a;S(e,function(n){t.hasOwnProperty(n)&&qv(t[n])&&(a=!0)}),a&&S(e,function(n){t.hasOwnProperty(n)&&qv(t[n])?r[n]=U(t[n]):delete r[n]})}function GL(r,t,e,a){var n={};return S(r,function(i){var o=We.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(w){return _g(s,f,w)}function c(w,b){T1(s,f,w,b)}for(var f,v=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var d=a!=null?v.get(l,f):f,p=e(d),g=t[p],y=n[p],m=0,_=y.length;m<_;m++){var x=y[m];g[x]&&g[x].applyVisual(d,u,c)}}}}}var FL=function(r){P(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:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(te),WL=function(r){P(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=ve(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ae({style:Te(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),v=e.get("subtext"),h=new ae({style:Te(s,{text:v,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!d&&!g,h.silent=!p&&!g,d&&c.on("click",function(){zc(d,"_"+e.get("target"))}),p&&h.on("click",function(){zc(p,"_"+e.get("subtarget"))}),q(c).eventData=q(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=He(m,{width:n.getWidth(),height:n.getHeight()},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};c.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var w=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var T=new oe({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Ae);function WR(r){r.registerComponentModel(FL),r.registerComponentView(WL)}var HL=function(r){P(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=[],S(a,function(u,c){var f=ke(_a(u),""),v;H(u)?(v=U(u),v.value=c):v=c,o.push(v),i.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new bu([{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:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(te);const Jv=HL;var i0=function(r){P(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=hr(Jv.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(Jv);Xe(i0,eg.prototype);const UL=i0;var $L=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Ae);const YL=$L;var ZL=function(r){P(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}(Dt);const XL=ZL;var Rs=Math.PI,Qv=ne(),KL=function(r){P(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})},S(["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=jL(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?"+":"-":G(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:Rs/2},f=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Rs/180;var m,_,x,w=v.get("position",!0),b=h&&v.get("showPlayBtn",!0),T=h&&v.get("showPrevBtn",!0),A=h&&v.get("showNextBtn",!0),C=0,D=f;w==="left"||w==="bottom"?(b&&(m=[0,0],C+=g),T&&(_=[C,0],C+=g),A&&(x=[D-d,0],D-=g)):(b&&(m=[D-d,0],D-=g),T&&(_=[0,0],C+=g),A&&(x=[D-d,0],D-=g));var M=[C,D];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,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:_,nextBtnPosition:x,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=En(),l=o.x,u=o.y+o.height;cn(s,s,[-l,-u]),Rn(s,s,-Rs/2),cn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(n.getBoundingRect()),v=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=c[0][0];var p=e.labelPosOpt;if(p==null||G(p)){var g=p==="+"?0:1;_(h,f,c,1,g),_(d,v,c,1,1-g)}else{var g=p>=0?0:1;_(h,f,c,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,w,b,T,A){x[T]+=b[T][A]-w[T][A]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=qL(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 XL("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new Q;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 Ze({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:O({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new Ze({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:K({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=[],S(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),v=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:z(o._changeTimeline,o,u.value)},g=ed(f,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Ir(g);var y=q(g);f.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=[],S(u,function(c){var f=c.tickValue,v=l.getItemModel(f),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),y=new ae({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:z(o._changeTimeline,o,f),silent:!1,style:Te(h,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Te(d),y.ensureState("progress").style=Te(p),a.add(y),Ir(y),Qv(y).dataIndex=f,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(),f=i.get("inverse",!0);v(e.nextBtnPosition,"next",z(this._changeTimeline,this,f?"-":"+")),v(e.prevBtnPosition,"prev",z(this._changeTimeline,this,f?"+":"-")),v(e.playPosition,c?"stop":"play",z(this._handlePlayClick,this,!c),!0);function v(h,d,p,g){if(!!h){var y=ua(ve(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=JL(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),Ir(_)}}},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(f){f.draggable=!0,f.drift=z(u._handlePointerDrag,u),f.ondragend=z(u._handlePointerDragend,u),td(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){td(f,u._progressLine,s,n,i)}};this._currentPointer=ed(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=Rt(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var s=this._findNearestTick(n),l=this.model;(a||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},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.getLocalTransform();return vt(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",Qv(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(YL);function qL(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new iy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ur}}function jL(r,t){return He(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function JL(r,t,e,a){var n=a.style,i=On(r.get(["controlStyle",t]),a||{},new ge(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function ed(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=Oe(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=j({rectHover:!0,z2:100},a,!0);var u=gu(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=bo(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function td(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)}}}const QL=KL;function eP(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)}),K({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 tP(r){var t=r&&r.timeline;k(t)||(t=t?[t]:[]),S(t,function(e){!e||rP(e)})}function rP(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),rd(r),Cr(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Cr(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Cr(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}S(r.data||[],function(n){H(n)&&!k(n)&&(!Cr(n,"value")&&Cr(n,"name")&&(n.value=n.name),rd(n))})}function rd(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};S(a,function(o,s){!i[s]&&!Cr(n,s)&&(n[s]=o)}),e.label&&!Cr(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function Cr(r,t){return r.hasOwnProperty(t)}function HR(r){r.registerComponentModel(UL),r.registerComponentView(QL),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),eP(r),r.registerPreprocessor(tP)}var aP=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"])}},nP=function(r){P(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"]),k(a)&&S(a,function(i,o){G(i)&&(i={type:i}),a[o]=j(i,aP(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(s){var l=s.name;n.push(l);var u;if(s.legendVisualProvider){var c=s.legendVisualProvider,f=c.getAllNames();e.isSeriesFiltered(s)||(n=n.concat(f)),f.length?a=a.concat(f):u=!0}else u=!0;u&&Fl(s)&&a.push(s.name)}),this._availableNames=n;var i=this.get("data")||a,o=N(i,function(s){return(G(s)||fe(s))&&(s={name:s}),new Se(s,this,this.ecModel)},this);this._data=o},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;S(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;S(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;S(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])&&ie(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(te);const El=nP;var Jr=ee,kl=S,_i=Q,iP=function(r){P(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 _i),this.group.add(this._selectorGroup=new _i),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),h=He(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=He(K({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jm(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=W(),f=a.get("selectedMode"),v=[];n.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),kl(a.getData(),function(h,d){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new _i;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!c.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,p,d,h,a,e,_,w,x,f,i);b.on("click",Jr(ad,p,null,i,v)).on("mouseover",Jr(Ol,y.name,null,i,v)).on("mouseout",Jr(Bl,y.name,null,i,v)),c.set(p,!0)}else n.eachRawSeries(function(T){if(!c.get(p)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),D=A.getItemVisual(C,"style"),M=A.getItemVisual(C,"legendIcon"),I=Nd(D.fill);I&&I[3]===0&&(I[3]=.2,D=O(O({},D),{fill:xi(I,"rgba")}));var L=this._createItem(T,p,d,h,a,e,{},D,M,f,i);L.on("click",Jr(ad,null,p,i,v)).on("mouseover",Jr(Ol,null,p,i,v)).on("mouseout",Jr(Bl,null,p,i,v)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();kl(e,function(u){var c=u.type,f=new ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Wt(f,{normal:v,emphasis:h},{defaultText:u.title}),Ir(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=oP(c,i,l,u,h,g,v),w=new _i,b=i.getModel("textStyle");if(Z(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(sP({itemWidth:d,itemHeight:p,icon:c,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var A=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;G(D)&&D?M=D.replace("{name}",a!=null?a:""):Z(D)&&(M=D(a));var I=i.get("inactiveColor");w.add(new ae({style:Te(b,{text:M,x:A,y:p/2,fill:g?b.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new oe({shape:w.getBoundingRect(),invisible:!0}),R=i.getModel("tooltip");return R.get("show")&&Sa({el:L,componentModel:o,itemName:a,itemTooltipOption:R.option}),w.add(L),w.eachChild(function(E){E.silent=!0}),L.silent=!f,this.getContentGroup().add(w),Ir(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Pr(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Pr("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+d:f[p]+=v[g]+d,h[1-p]+=c[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+v[g],_[y]=Math.max(c[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ae);function oP(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),kl(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:$i(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.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 d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function sP(r){var t=r.icon||"roundRect",e=Oe(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ad(r,t,e,a){Bl(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Ol(r,t,e,a)}function o0(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 Ol(r,t,e,a){o0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Bl(r,t,e,a){o0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}const s0=iP;function lP(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 Za(r,t,e){var a={},n=r==="toggleSelected",i;return e.eachComponent("legend",function(o){n&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();S(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var c=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&c:a[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function uP(r){r.registerAction("legendToggleSelect","legendselectchanged",ee(Za,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ee(Za,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ee(Za,"inverseSelect")),r.registerAction("legendSelect","legendselected",ee(Za,"select")),r.registerAction("legendUnSelect","legendunselected",ee(Za,"unSelect"))}function l0(r){r.registerComponentModel(El),r.registerComponentView(s0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,lP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),uP(r)}var cP=function(r){P(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=Ta(e);r.prototype.init.call(this,e,a,n),nd(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),nd(this,this.option,e)},t.type="legend.scroll",t.defaultOption=hr(El.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(El);function nd(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,lr(t,e,{type:"box",ignoreSize:!!n})}const fP=cP;var id=Q,Es=["width","height"],ks=["x","y"],hP=function(r){P(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 id),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new id)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),v=k(f)?f:[f,f];d("pagePrev",0);var h=a.getModel("pageTextStyle");c.add(new ae({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=On(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:z(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Es[u],f=ks[u],v=Es[1-u],h=ks[1-u];o&&Pr("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=U(n);o&&(y[c]=n[c]-p[c]-d);var m=this._layoutContentAndController(e,i,y,u,c,v,h,f);if(o){if(s==="end")g[u]+=m[c]+d;else{var _=p[c]+d;g[u]-=_,m[f]-=_}m[c]+=p[c]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[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(),f=this._containerGroup,v=this._controllerGroup;Pr(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Pr("horizontal",v,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=ve(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,c.setPosition(g),f.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),f.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=w[s],f.setClipPath(new oe({shape:b})),f.__rectSize=b[o]}else v.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&de(c,{x:T.contentPosition[0],y:T.contentPosition[1]},p?e:null),this._updatePageInfoView(e,T),w},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;S(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",v=a[f]!=null,h=n.childOfName(c);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"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",G(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=Es[o],l=ks[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],v=c.length,h=v?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=x(f);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=x(c[g]),(!_&&m.e>y.s+i||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=x(c[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(b){if(b){var T=b.getBoundingRect(),A=T[l]+b[l];return{s:A,e:A+T[s],i:b.__legendDataIndex}}}function w(b,T){return b.e>=T&&b.s<=T+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!=null?a:i},t.type="legend.scroll",t}(s0);const vP=hP;function dP(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 pP(r){Be(l0),r.registerComponentModel(fP),r.registerComponentView(vP),dP(r)}function UR(r){Be(l0),Be(pP)}var gP=function(r){P(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=hr(Dn.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Dn);const yP=gP;var rc=ne();function mP(r,t,e){rc(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function _P(r,t){for(var e=rc(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||u0(e,o))}}}function u0(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function xP(r,t){var e={model:t,containsPoint:ee(bP,t),dispatchAction:ee(SP,r),dataZoomInfoMap:null,controller:null},a=e.controller=new Qy(r.getZr());return S(["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 SP(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function bP(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function wP(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function TP(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=rc(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=W());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Xm(i);S(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,xP(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=W());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){u0(n,i);return}var c=wP(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Nn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var AP=function(r){P(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(),mP(n,e,{pan:z(Os.pan,this),zoom:z(Os.zoom,this),scrollMove:z(Os.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_P(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(ju),Os={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=Bs[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();if(Wr(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:od(function(r,t,e,a,n,i){var o=Bs[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:od(function(r,t,e,a,n,i){var o=Bs[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function od(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(Wr(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Bs={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}};const CP=AP;function MP(r){Ju(r),r.registerComponentModel(yP),r.registerComponentView(CP),TP(r)}var DP=function(r){P(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=hr(Dn.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Dn);const IP=DP;var Xa=oe,sd=7,LP=1,Ns=30,PP=7,Ka="horizontal",ld="vertical",RP=5,EP=["line","bar","candlestick","scatter"],kP={easing:"cubicOut",duration:100,delay:0},OP=function(r){P(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),Nn(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(){_n(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 Q;this._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?PP:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Ka?{right:s.width-o.x-o.width,top:s.height-Ns-sd-i,width:o.width,height:Ns}:{right:sd,top:o.y,width:Ns,height:o.height},u=Ta(e.option);S(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=He(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ld&&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===Ka&&!o?{scaleY:l?1:-1,scaleX:1}:n===Ka&&o?{scaleY:l?1:-1,scaleX:-1}:n===ld&&!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 Xa({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Xa({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():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(s),f=(c[1]-c[0])*.3;c=[c[0]-f,c[1]+f];var v=[0,a[1]],h=[0,a[0]],d=[[a[0],0],[0,0]],p=[],g=h[1]/(o.count()-1),y=0,m=Math.round(o.count()/a[0]),_;o.each([s],function(A,C){if(m>0&&C%m){y+=g;return}var D=A==null||isNaN(A)||A==="",M=D?0:he(A,c,v,!0);D&&!_&&C?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&_&&(d.push([y,0]),p.push([y,0])),d.push([y,M]),p.push([y,M]),y+=g,_=D}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];var x=this.dataZoomModel;function w(A){var C=x.getModel(A?"selectedDataBackground":"dataBackground"),D=new Q,M=new fr({shape:{points:l},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new At({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(M),D.add(I),D}for(var b=0;b<3;b++){var T=w(b===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},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();S(l,function(u){if(!n&&!(a!==!0&&ie(EP,u.get("type"))<0)){var c=i.getComponent(ar(o),s).axis,f=BP(o),v,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(v=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),n={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:v}}},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,f=l.get("brushSelect"),v=a.filler=new Xa({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Xa({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:LP,fill:"rgba(0,0,0,0)"}})),S([0,1],function(_){var x=l.get("handleIcon");!Ui[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=Oe(x,-1,0,2,2,null,!0);w.attr({cursor:ud(this._orient),draggable:!0,drift:z(this._onDragMove,this,_),ondragend:z(this._onDragEnd,this),onmouseover:z(this._showDataInfo,this,!0),onmouseout:z(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),T=l.get("handleSize");this._handleHeight=$(T,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ir(w);var A=l.get("handleColor");A!=null&&(w.style.fill=A),o.add(n[_]=w);var C=l.getModel("textStyle");e.add(i[_]=new ae({silent:!0,invisible:!0,style:Te(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=v;if(f){var d=$(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new oe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=Oe(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new oe({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:ud(this._orient),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=[he(e[0],[0,100],a,!0),he(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];Wr(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?he(s.minSpan,l,o,!0):null,s.maxSpan!=null?he(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Rt([he(i[0],o,l,!0),he(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=Rt(n.slice()),o=this._size;S([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/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 f=l[c],v=f.getClipPath();v||(v=new oe,f.setClipPath(v)),v.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,f=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var v=Rt(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(d){var p=Lr(n.handles[d].parent,this.group),g=lo(d===0?"right":"left",p),y=this._handleWidth/2+RP,m=vt([v[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Ka?"middle":g,align:o===Ka?g:"center",text:s[d]})}},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 Z(i)?i(e,s):G(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var a=this._displayables,n=a.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),a.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,or(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=vt([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 we(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];this._range=Rt([he(n.x,o,s,!0),he(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(or(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 Xa({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),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?kP:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Xm(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}(ju);function BP(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function ud(r){return r==="vertical"?"ns-resize":"ew-resize"}const NP=OP;function VP(r){r.registerComponentModel(IP),r.registerComponentView(NP),Ju(r)}function $R(r){Be(MP),Be(VP)}var zP={get:function(r,t,e){var a=U((GP[r]||{})[t]);return e&&k(a)?a[a.length-1]:a}},GP={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const c0=zP;var cd=We.mapVisual,FP=We.eachVisual,WP=k,fd=S,HP=Rt,UP=he,$P=function(r){P(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&&zL(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=jv(this.option.controller,a,e),this.targetVisuals=jv(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=le(e),a},t.prototype.eachTargetSeries=function(e,a){S(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||["<",">"],k(e)&&(e=e.slice(),u=!0);var c=a?e:u?[f(e[0]),f(e[1])]:f(e);if(G(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Z(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 f(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=HP([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={});j(i,n),j(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(f){WP(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function u(f,v,h){var d=f[v],p=f[h];d&&!p&&(p=f[h]={},fd(d,function(g,y){if(!!We.isValidType(y)){var m=c0.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var v=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";fd(this.stateList,function(y){var m=this.itemSize,_=f[y];_||(_=f[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&U(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&U(h)||(s?m[0]:[m[0],m[0]])),_.symbol=cd(_.symbol,function(b){return b==="none"?g:b});var x=_.symbolSize;if(x!=null){var w=-1/0;FP(x,function(b){b>w&&(w=b)}),_.symbolSize=cd(x,function(b){return UP(b,[0,w],[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,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(te);const to=$P;var hd=[20,140],YP=function(r){P(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]=hd[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=hd[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):k(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),S(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=Rt((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();return(a[0]<=n[0]||a[0]<=e)&&(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=vd(this,"outOfRange",this.getExtent()),n=vd(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}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 f=1;s<u;s++,f=0)f&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=hr(to.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(to);function vd(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}const ZP=YP;var XP=function(r){P(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=Bn(a.get("padding")||0),i=e.getBoundingRect();e.add(new oe({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,d){s[h]=d}var f=o.controllerVisuals[i||o.getValueState(e)],v=We.prepareVisualTypes(f);return S(v,function(h){var d=f[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=f.__alphaForOpacity),We.dependsOn(h,a)&&d&&d.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api;nu(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Ae);const f0=XP;var dd=[["left","right","width"],["top","bottom","height"]];function h0(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=dd[o],l=[0,null,10],u={},c=0;c<3;c++)u[dd[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],v=He(u,i,a.padding);return s[(v.margin[f[2]]||0)+v[f[0]]+v[f[1]]*.5<i[f[1]]*.5?0:1]}function Pi(r,t){return S(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var mt=he,KP=S,pd=Math.min,Vs=Math.max,qP=12,jP=6,JP=function(r){P(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.doRender=function(e,a,n,i){this._api=n,(!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");this._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),f=this._applyTransform(n===0?"bottom":"top",u),v=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new ae({style:Te(h,{x:c[0],y:c[1],verticalAlign:v==="horizontal"?"middle":f,align:v==="horizontal"?f:"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=h0(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new Q;u.add(c),c.add(n.outOfRange=gd()),c.add(n.inRange=gd(null,s?md(this._orient):null,z(this._dragHandle,this,"all",!1),z(this._dragHandle,this,"all",!0))),c.setClipPath(new oe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("\u56FD"),v=Vs(f.width,f.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,v,o),this._createHandle(a,u,1,i,v,o)),this._createIndicator(a,u,i,v,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=ua(e.get("handleSize"),i[0]),f=Oe(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),v=md(this._orient);f.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){or(y.event)}}),f.x=i[0]/2,f.useStyle(e.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Kl(f,!0),a.add(f);var h=this.visualMapModel.textStyleModel,d=new ae({cursor:v,draggable:!0,drift:l,onmousemove:function(y){or(y.event)},ondragend:u,style:Te(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],g=this._shapes;g.handleThumbs[n]=f,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},t.prototype._createIndicator=function(e,a,n,i,o){var s=ua(e.get("indicatorSize"),n[0]),l=Oe(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 zt){var c=l.style;l.useStyle(O({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,v=new ae({silent:!0,invisible:!0,style:Te(f,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:jP)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.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():yd(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=[mt(a[0],n,i,!0),mt(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]];Wr(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[mt(i[0],o,s,!0),mt(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 zl(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");return new Q(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();KP([0,1],function(c){var f=o[c];f.setStyle("fill",a.handlesColor[c]),f.y=e[c];var v=mt(e[c],[0,l[1]],u,!0),h=this.getControllerVisual(v,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var d=vt(n.handleLabelPoints[c],Lr(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),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,f=c.indicator;if(!!f){f.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=mt(e,s,u,!0),g=l[0]-d/2,y={x:f.x,y:f.y};f.y=p,f.x=g;var m=vt(c.indicatorLabelPoint,Lr(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),w=this._orient,b=w==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?x:"middle",align:b?"center":x});var T={x:g,y:p,style:{fill:h}},A={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(T,C),_.animateTo(A,C)}else f.attr(T),_.attr(A);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]=pd(Vs(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=pd(Vs(o[0],e),o[1]);var l=QP(n,s,o),u=[e-l,e+l],c=mt(e,o,s,!0),f=[mt(u[0],o,s,!0),mt(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var v=this._hoverLinkDataIndices,h=[];(a||yd(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=y_(v,h);this._dispatchHighDown("downplay",Pi(d[0],n)),this._dispatchHighDown("highlight",Pi(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a=e.target,n=this.visualMapModel;if(!(!a||q(a).dataIndex==null)){var i=q(a),o=this.ecModel.getSeriesByIndex(i.seriesIndex);if(!!n.isTargetSeries(o)){var s=o.getData(i.dataType),l=s.getStore().get(n.getDataDimensionIndex(s),i.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},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",Pi(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=Lr(a,i?null:this.group);return k(e)?vt(e,o,n):lo(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.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(f0);function gd(r,t,e,a){return new fr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){or(n.event)},ondragend:a})}function QP(r,t,e){var a=qP/2,n=r.get("hoverLinkDataSize");return n&&(a=mt(n,t,e,!0)/2),a}function yd(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function md(r){return r==="vertical"?"ns-resize":"ew-resize"}const eR=JP;var tR={type:"selectDataRange",event:"dataRangeSelected",update:"update"},rR=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},aR=[{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(GL(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(nR,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function nR(r,t,e,a){for(var n=t.targetVisuals[a],i=We.prepareVisualTypes(n),o={color:xg(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,f,v)}return o.color;function f(h){return o[h]}function v(h,d){o[h]=d}}var _d=S;function iR(r){var t=r&&r.visualMap;k(t)||(t=t?[t]:[]),_d(t,function(e){if(!!e){Qr(e,"splitList")&&!Qr(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&k(a)&&_d(a,function(n){H(n)&&(Qr(n,"start")&&!Qr(n,"min")&&(n.min=n.start),Qr(n,"end")&&!Qr(n,"max")&&(n.max=n.end))})}})}function Qr(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var xd=!1;function v0(r){xd||(xd=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(tR,rR),S(aR,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(iR))}function oR(r){r.registerComponentModel(ZP),r.registerComponentView(eR),v0(r)}var sR=function(r){P(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=[],lR[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=U(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=N(this._pieceList,function(l){return l=U(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=We.listVisualTypes(),i=this.isCategory();S(e.pieces,function(s){S(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),S(a,function(s,l){var u=!1;S(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&S(this.stateList,function(c){(e[c]||(e[c]={}))[l]=c0.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,S(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;S(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=U(e)},t.prototype.getValueState=function(e){var a=We.findPieceIndex(e,this._pieceList);return 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=We.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,f){var v=i.getRepresentValue({interval:c});f||(f=i.getValueState(v));var h=e(v,f);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 S(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=hr(to.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}(to),lR={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]}),vc(r),S(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;S(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),Sd(t,r)},pieces:function(r){var t=this.option;S(t.pieces,function(e,a){H(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=[],f=0;f<2;f++){for(var v=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=e[v[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}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=We.retrieveVisuals(e),r.push(n)},this),Sd(t,r),vc(r),S(r,function(e){var a=e.close,n=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function Sd(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const uR=sR;var cR=function(r){P(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=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),f=c.endsText,v=ir(a.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],u,v,l),S(c.viewPieceList,function(h){var d=h.piece,p=new Q;p.onclick=z(this._onItemClick,this,d),this._enableHoverLink(p,h.indexInModelPieceList);var g=a.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);p.add(new ae({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(p)},this),f&&this._renderEndsText(e,f[1],u,v,l),Pr(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:Pi(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return h0(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 Q,l=this.visualMapModel.textStyleModel;s.add(new ae({style:Te(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=N(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){e.add(Oe(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(!!i){var o=U(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,S(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}(f0);const fR=cR;function hR(r){r.registerComponentModel(uR),r.registerComponentView(fR),v0(r)}function YR(r){Be(oR),Be(hR)}var vR={label:{enabled:!0},decal:{show:!1}},bd=ne(),dR={};function pR(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=U(vR);j(a.label,r.getLocaleModel().get("aria"),!1),j(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=W();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=f.get(v.type);h||(h={},f.set(v.type,h)),bd(v).scope=h}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(Z(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=Fc(v.ecModel,v.name,dR,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",x(_,m))}else{var d=v.getRawData(),p={},g=bd(v).scope;h.each(function(w){var b=h.getRawIndex(w);p[b]=w});var y=d.count();d.each(function(w){var b=p[w],T=d.getName(w)||w+"",A=Fc(v.ecModel,T,g,y),C=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",x(C,A))})}function x(w,b){var T=w?O(O({},b),w):b;return T.dirty=!0,T}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=K(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var v=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],x=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(x,{seriesCount:v}),r.eachSeries(function(A,C){if(C<p){var D=void 0,M=A.get("name"),I=M?"withName":"withoutName";D=v>1?c.get(["series","multiple",I]):c.get(["series","single",I]),D=o(D,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var L=A.getData();if(L.count()>h){var R=c.get(["data","partialData"]);D+=o(R,{displayCnt:h})}else D+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),X=[],B=0;B<L.count();B++)if(B<h){var F=L.getName(B),Y=L.getValues(B),re=c.get(["data",F?"withName":"withoutName"]);X.push(o(re,{name:F,value:Y.join(E)}))}D+=X.join(E)+V,_.push(D)}});var w=c.getModel(["series","multiple","separator"]),b=w.get("middle"),T=w.get("end");g+=_.join(b)+T,f.setAttribute("aria-label",g)}}}function o(u,c){if(!G(u))return u;var f=u;return S(c,function(v,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),v)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function gR(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},S(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function ZR(r){r.registerPreprocessor(gR),r.registerVisual(r.PRIORITY.VISUAL.ARIA,pR)}function XR(r){r.registerPainter("canvas",K0)}function wd(r){return k(r[0])}function Td(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 yR={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=e_(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function zs(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=xa("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;wd(r)&&(u=r,c=t),wd(t)&&(u=t,c=r);function f(y,m,_,x,w){var b=y.many,T=y.one;if(b.length===1&&!w){var A=m?b[0]:T,C=m?T:b[0];if(q0(A))f({many:[A],one:C},!0,_,x,!0);else{var D=s?K({delay:s(_,x)},l):l;j0(A,C,D),i(A,C,A,C,D)}}else for(var M=K({dividePath:yR[e],individualDelay:s&&function(X,B,F,Y){return s(X+_,x)}},l),I=m?J0(b,T,M):Q0(T,b,M),L=I.fromIndividuals,R=I.toIndividuals,E=L.length,V=0;V<E;V++){var D=s?K({delay:s(V,E)},l):l;i(L[V],R[V],m?b[V]:y.one,m?y.one:b[V],D)}}for(var v=u?u===r:r.length>t.length,h=u?Td(c,u):Td(v?t:r,[v?r:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)f(h[p],v,g,d),g+=h[p].many.length}function Tr(r){if(!r)return[];if(k(r)){for(var t=[],e=0;e<r.length;e++)t.push(Tr(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof De&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var d0=1e4,mR=ne();function _R(r){for(var t=r.dimensions,e=0;e<t.length;e++){var a=r.getDimensionInfo(t[e]);if(a&&a.otherDims.itemGroupId===0)return t[e]}}function Ad(r){var t=[];return S(r,function(e){var a=e.data;if(!(a.count()>d0))for(var n=a.getIndices(),i=_R(a),o=0;o<n.length;o++)t.push({data:a,dim:e.dim||i,divide:e.divide,dataIndex:o})}),t}function Gs(r,t,e){r.traverse(function(a){a instanceof De&&Ie(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Fs(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function ea(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function xR(r,t,e){var a=xa("update",e,t);a&&r.traverse(function(n){if(n instanceof un){var i=Q_(n);i&&n.animateFrom({style:i},a)}})}function SR(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 p0(r,t,e){var a=Ad(r),n=Ad(t);function i(y,m,_,x,w){(_||y)&&m.animateFrom({style:_&&_!==y?O(O({},_.style),y.style):y.style},w)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(a),l=o(n),u=!1;function c(y,m){return function(_){var x=_.data,w=_.dataIndex;if(m)return x.getId(w);var b=x.hostModel&&x.hostModel.get("dataGroupId"),T=y?s||l:l||s,A=T&&x.getDimensionInfo(T),C=A&&A.ordinalMeta;if(A){var D=x.get(A.name,w);return C&&C.categories[D]||D+""}var M=x.getRawDataItem(w);return M&&M.groupId?M.groupId+"":b||x.getId(w)}}var f=SR(a,n),v={};if(!f)for(var h=0;h<n.length;h++){var d=n[h],p=d.data.getItemGraphicEl(d.dataIndex);p&&(v[p.id]=!0)}function g(y,m){var _=a[m],x=n[y],w=x.data.hostModel,b=_.data.getItemGraphicEl(_.dataIndex),T=x.data.getItemGraphicEl(x.dataIndex);if(b===T){T&&xR(T,x.dataIndex,w);return}b&&v[b.id]||T&&(ea(T),b?(ea(b),Fs(b),u=!0,zs(Tr(b),Tr(T),x.divide,w,y,i)):Gs(T,w,y))}new Sn(a,n,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(y,m){var _=n[y],x=_.data,w=x.hostModel,b=x.getItemGraphicEl(_.dataIndex),T=pe(N(m,function(A){return a[A].data.getItemGraphicEl(a[A].dataIndex)}),function(A){return A&&A!==b&&!v[A.id]});b&&(ea(b),T.length?(S(T,function(A){ea(A),Fs(A)}),u=!0,zs(Tr(T),Tr(b),_.divide,w,y,i)):Gs(b,w,_.dataIndex))}).updateOneToMany(function(y,m){var _=a[m],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&v[x.id])){var w=pe(N(y,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==x}),b=n[y[0]].data.hostModel;w.length&&(S(w,function(T){return ea(T)}),x?(ea(x),Fs(x),u=!0,zs(Tr(x),Tr(w),_.divide,b,y[0],i)):S(w,function(T){return Gs(T,b,y[0])}))}}).updateManyToMany(function(y,m){new Sn(m,y,function(_){return a[_].data.getId(a[_].dataIndex)},function(_){return n[_].data.getId(n[_].dataIndex)}).update(function(_,x){g(y[_],m[x])}).execute()}).execute(),u&&S(t,function(y){var m=y.data,_=m.hostModel,x=_&&e.getViewOfSeriesModel(_),w=xa("update",_,0);x&&_.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(b){b instanceof De&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function Cd(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Md(r){return k(r)?r.sort().join(","):r}function tr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function bR(r,t){var e=W(),a=W(),n=W();return S(r.oldSeries,function(i,o){var s=r.oldData[o],l=Cd(i),u=Md(l);a.set(u,s),k(l)&&S(l,function(c){n.set(c,{data:s,key:u})})}),S(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=Cd(i),l=Md(s),u=a.get(l);if(u)e.set(l,{oldSeries:[{divide:tr(u),data:u}],newSeries:[{divide:tr(o),data:o}]});else if(k(s)){var c=[];S(s,function(h){var d=a.get(h);d&&c.push({divide:tr(d),data:d})}),c.length&&e.set(l,{oldSeries:c,newSeries:[{data:o,divide:tr(o)}]})}else{var f=n.get(s);if(f){var v=e.get(f.key);v||(v={oldSeries:[{data:f.data,divide:tr(f.data)}],newSeries:[]},e.set(f.key,v)),v.newSeries.push({data:o,divide:tr(o)})}}}}),e}function Dd(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 wR(r,t,e,a){var n=[],i=[];S(le(r.from),function(o){var s=Dd(t.oldSeries,o);s>=0&&n.push({data:t.oldData[s],divide:tr(t.oldData[s]),dim:o.dimension})}),S(le(r.to),function(o){var s=Dd(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({data:l,divide:tr(l),dim:o.dimension})}}),n.length>0&&i.length>0&&p0(n,i,a)}function KR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){S(le(a.seriesTransition),function(n){S(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][Ci]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=mR(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)S(le(i),function(v){wR(v,n,a,e)});else{var o=bR(n,a);S(o.keys(),function(v){var h=o.get(v);p0(h.oldSeries,h.newSeries,e)})}S(a.updatedSeries,function(v){v[Ci]&&(v[Ci]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldData=[],c=0;c<s.length;c++){var f=s[c].getData();f.count()<d0&&(l.push(s[c]),u.push(f))}})}export{KR as A,UR as a,WR as b,FR as c,BR as d,NR as e,ZR as f,kR as g,IR as h,CR as i,DR as j,LR as k,ER as l,RR as m,OR as n,UA as o,GR as p,$R as q,YR as r,HR as s,pu as t,Be as u,VR as v,zR as w,PR as x,XR as y,MR as z};