moreShopAdmin/dist/admin/assets/echarts.5016c48c.js

31 lines
590 KiB
JavaScript

import{i as G,r as la,m as N,c as F,e as S,a as H,b as et,d as de,f as Hs,g as k,h as ie,j as ge,k as _0,l as O,n as Z,L as Ld,o as Rn,p as De,P as Ie,q as ic,s as x0,t as ce,u as S0,T as aa,v as En,w as tt,x as K,Z as zt,y as j,z as b0,A as w0,B as T0,C as A0,D as Vl,E as Ei,F as Nt,G as Pd,S as Gt,R as ao,H as hr,I as At,J as oe,K as Ze,M as Rd,N as zl,O as C0,Q,U as ne,V as M0,W as Ed,X as Gl,Y as D0,_ as ye,$ as ki,a0 as we,a1 as kn,a2 as q,a3 as U,a4 as Xe,a5 as I0,a6 as Ye,a7 as ee,a8 as rt,a9 as ve,aa as z,ab as Us,ac as L0,ad as bt,ae as $s,af as P0,ag as kd,ah as R0,ai as ma,aj as oc,ak as ko,al as E0,am as ua,an as Ys,ao as k0,ap as sc,aq as Od,ar as Bd,as as no,at as Nd,au as lc,av as Oo,aw as O0,ax as B0,ay as qa,az as uc,aA as cc,aB as N0,aC as V0,aD as or,aE as On,aF as z0,aG as fc,aH as sr,aI as G0,aJ as F0,aK as W0,aL as fn,aM as H0,aN as Bn,aO as U0,aP as $0,aQ as Bo,aR as Si,aS as No,aT as Y0,aU as Vd,aV as hn,aW as vn,aX as Z0,aY as zd,aZ as hc,a_ as X0,a$ as K0,b0 as q0,b1 as j0,b2 as J0,b3 as Q0,b4 as e_,b5 as t_}from"./zrender.58d022a1.js";import{_ as P}from"./tslib.60310f1a.js";var vc=1e-4,Gd=20;function r_(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)?r_(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),Gd),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 a_(r)}function a_(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 Fd(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 n_(r,t){var e=la(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=N(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=N(n,function(h){return Math.floor(h)}),s=la(o,function(h,d){return h+d},0),l=N(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,v=l.length;f<v;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return N(o,function(h){return h/a})}function i_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>Gd?a:xe(a,e)}function Wd(r){var t=Math.PI*2;return(r%t+t)%t}function Oi(r){return r>-vc&&r<vc}var o_=/^(?:(\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=o_.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 s_(r){return Math.pow(10,Fl(r))}function Fl(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 Hd(r,t){var e=Fl(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 dc(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 Bi(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function Ud(r){return!isNaN(Bi(r))}function $d(){return Math.round(Math.random()*9)}function Yd(r,t){return t===0?r:Yd(t,r%t)}function pc(r,t){return r==null?t:t==null?r:r*t/Yd(r,t)}function Fe(r){throw new Error(r)}function gc(r,t,e){return(t-r)*e+r}var Zd="series\0",Xd="\0_ec_\0";function le(r){return r instanceof Array?r:r==null?[]:[r]}function Ni(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 yc=["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 l_(r){return H(r)&&!(r instanceof Array)}function Kd(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=F();S(t,function(l,u){if(!H(l)){t[u]=null;return}});var s=u_(r,o,e);return(a||n)&&c_(s,r,o,t),a&&f_(s,t),a||n?h_(s,t,n):i&&v_(s,t),d_(s),s}function u_(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"||dn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function c_(r,t,e,a){S(a,function(n,i){if(!(!n||n.id==null)){var o=tn(n.id),s=e.get(o);if(s!=null){var l=r[s];et(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function f_(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)&&!dn(e)&&!dn(i)&&qd("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function h_(r,t,e){S(t,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||dn(n.existing)||n.existing&&a.id!=null&&!qd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function v_(r,t){S(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function d_(r){var t=F();S(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),S(r,function(e){var a=e.newOption;et(!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?tn(i.name):n?n.name:Zd+a,n)o.id=tn(n.id);else if(i.id!=null)o.id=tn(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 qd(r,t,e){var a=ke(t[r],null),n=ke(e[r],null);return a!=null&&n!=null&&a===n}function tn(r){return ke(r,"")}function ke(r,t){return r==null?t:G(r)?r:de(r)||Hs(r)?r+"":t}function Wl(r){var t=r.name;return!!(t&&t.indexOf(Zd))}function dn(r){return r&&r.id!=null&&tn(r.id).indexOf(Xd)===0}function p_(r){return Xd+r}function g_(r,t,e){S(r,function(a){var n=a.newOption;H(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=y_(t,n,a.existing,e))})}function y_(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function m_(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 Br(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 ae(){var r="__ec_inner_"+__++;return function(t){return t[r]||(t[r]={})}}var __=$d();function rn(r,t,e){var a=Hl(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=Nn(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 Hl(r,t){var e;if(G(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=F(),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},x_={useDefault:!1,enableAll:!0,enableNone:!0};function Nn(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?(et(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(et(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 jd(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function S_(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function b_(r){return r==="auto"?ge.domSupported?"html":"richText":r||"html"}function Jd(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(de(a)){var o=gc(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=gc(h,d,n);s[f]=xe(o,i?Math.max(Et(h),Et(d)):t)}}return s}}var w_=".",pr="___EC__COMPONENT__CONTAINER___",Qd="___EC__EXTENDED_CLASS___";function xt(r){var t={main:"",sub:""};if(r){var e=r.split(w_);t.main=e[0]||"",t.sub=e[1]||""}return t}function T_(r){et(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function A_(r){return!!(r&&r[Qd])}function Ul(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return C_(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)},_0(n,this)),O(n.prototype,e),n[Qd]=!0,n.extend=this.extend,n.superCall=I_,n.superApply=L_,n.superClass=a,n}}function C_(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ep(r,t){r.extend=t.extend}var M_=Math.round(Math.random()*10);function D_(r){var t=["__\0is_clz",M_++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function I_(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 L_(r,t,e){return this.superClass.prototype[t].apply(r,e)}function io(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){T_(n),a.prototype.type=n;var i=xt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==pr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[pr]&&(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[pr]?S(o,function(s,l){l!==pr&&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[pr]};function e(a){var n=t[a.main];return(!n||!n[pr])&&(n=t[a.main]={},n[pr]=!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 P_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],R_=ca(P_),E_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return R_(this,t,e)},r}(),J=ae(),k_=function(r,t,e,a){if(a){var n=J(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=J(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},mc=1,_c={},tp=ae(),$l=ae(),Yl=0,oo=1,so=2,at=["emphasis","blur","select"],Vi=["normal","emphasis","blur","select"],rp=10,O_=9,Ir="highlight",bi="downplay",an="select",wi="unselect",nn="toggleSelect";function $r(r){return r!=null&&r!=="none"}var xc=new Ld(100);function Sc(r){if(G(r)){var t=xc.get(r);return t||(t=ic(r,-.1),xc.put(r,t)),t}else if(x0(r)){var e=O({},r);return e.colorStops=N(r.colorStops,function(a){return{offset:a.offset,color:ic(a.color,-.1)}}),e}return r}function lo(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function ap(r){lo(r,"emphasis",so)}function np(r){r.hoverState===so&&lo(r,"normal",Yl)}function Zl(r){lo(r,"blur",oo)}function ip(r){r.hoverState===oo&&lo(r,"normal",Yl)}function B_(r){r.selected=!0}function N_(r){r.selected=!1}function bc(r,t,e){t(r,e)}function Ft(r,t,e){bc(r,t,e),r.isGroup&&r.traverse(function(a){bc(a,t,e)})}function Zs(r,t){switch(t){case"emphasis":r.hoverState=so;break;case"normal":r.hoverState=Yl;break;case"blur":r.hoverState=oo;break;case"select":r.selected=!0}}function V_(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 z_(r,t,e,a){var n=e&&ie(e,"select")>=0,i=!1;if(r instanceof Ie){var o=tp(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if($r(s)||$r(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=O({},a),u=O({},u),u.fill=s):!$r(u.fill)&&$r(s)?(i=!0,a=O({},a),u=O({},u),u.fill=Sc(s)):!$r(u.stroke)&&$r(l)&&(i||(a=O({},a),u=O({},u)),u.stroke=Sc(l)),a.style=u}}if(a&&a.z2==null){i||(a=O({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:rp)}return a}function G_(r,t,e){if(e&&e.z2==null){e=O({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:O_)}return e}function F_(r,t,e){var a=ie(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:V_(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 Vo(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return z_(this,r,t,e);if(r==="blur")return F_(this,r,e);if(r==="select")return G_(this,r,e)}return e}function Xl(r){r.stateProxy=Vo;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Vo),e&&(e.stateProxy=Vo)}function wc(r,t){!up(r,t)&&!r.__highByOuter&&Ft(r,ap)}function Tc(r,t){!up(r,t)&&!r.__highByOuter&&Ft(r,np)}function fa(r,t){r.__highByOuter|=1<<(t||0),Ft(r,ap)}function ha(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ft(r,np)}function W_(r){Ft(r,Zl)}function op(r){Ft(r,ip)}function sp(r){Ft(r,B_)}function lp(r){Ft(r,N_)}function up(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function cp(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=$l(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){ip(u)}),s&&e.push(i)),o.isBlured=!1}),S(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Xs(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&&op(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){g.__highByOuter&&c&&t==="self"||Zl(g)}),Rn(t))i(u.getData(),t);else if(H(t))for(var d=De(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),$l(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 Ks(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(!!a){$l(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Zl(i)})}}}function H_(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!!n){var i=Br(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=J(o);Xs(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Xs(a,c,f,e)}}}function Kl(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(J(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function U_(r,t,e){var a=J(r),n=Kl(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Ks(a.componentMainType,a.componentIndex,e),S(i,function(s){return wc(s,t)})):(Xs(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Ks(a.componentMainType,a.componentIndex,e),wc(r,t))}function $_(r,t,e){cp(e);var a=J(r),n=Kl(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?S(n,function(i){return Tc(i,t)}):Tc(r,t)}function Y_(r,t,e){if(!!js(t)){var a=t.dataType,n=r.getData(a),i=Br(n,t);k(i)||(i=[i]),r[t.type===nn?"toggleSelect":t.type===an?"select":"unselect"](i,a)}}function Ac(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)?sp(i):lp(i)})})}function Z_(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 Lr(r,t,e){ql(r,!0),Ft(r,Xl),K_(r,t,e)}function X_(r){ql(r,!1)}function lr(r,t,e,a){a?X_(r):Lr(r,t,e)}function K_(r,t,e){var a=J(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Cc=["emphasis","blur","select"],q_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function va(r,t,e,a){e=e||"itemStyle";for(var n=0;n<Cc.length;n++){var i=Cc[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[q_[e]]()}}function ql(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 qs(r){return!!(r&&r.__highDownDispatcher)}function j_(r,t,e){var a=J(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function J_(r){var t=_c[r];return t==null&&mc<=32&&(t=_c[r]=mc++),t}function js(r){var t=r.type;return t===an||t===wi||t===nn}function Mc(r){var t=r.type;return t===Ir||t===bi}function Q_(r){var t=tp(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 fp=ae();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=ce(a.duration,200),c=ce(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 jl(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 pe(r,t,e,a,n,i){jl("update",r,t,e,a,n,i)}function Le(r,t,e,a,n,i){jl("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 pn(r,t,e,a,n,i){na(r)||jl("leave",r,t,e,a,n,i)}function Dc(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),pn(r,{style:{opacity:0}},t,e,a)}function zi(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Dc(n,t,e,a)}):Dc(r,t,e,a)}function gn(r){fp(r).oldStyle=r.style}function ex(r){return fp(r).oldStyle}var Gi=Math.max,Fi=Math.min,Js={};function tx(r){return Ie.extend(r)}var rx=C0;function ax(r,t){return rx(r,t)}function pt(r,t){Js[r]=t}function hp(r){if(Js.hasOwnProperty(r))return Js[r]}function Jl(r,t,e,a){var n=b0(r,t);return e&&(a==="center"&&(e=dp(e,n.getBoundingRect())),pp(n,e)),n}function vp(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(dp(t,i))}}});return a}function dp(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=S0;function pp(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function yn(r,t){return w0(r,r,{lineWidth:t}),r}function nx(r){return T0(r.shape,r.shape,r.style),r}var ix=A0;function Pr(r,t){for(var e=Vl([]);r&&r!==t;)Ei(e,r.getLocalTransform(),e),r=r.parent;return e}function vt(r,t,e){return t&&!Rn(t)&&(t=aa.getLocalTransform(t)),e&&(t=En([],t)),tt([],r,t)}function uo(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 Ic(r){return!r.isGroup}function ox(r){return r.shape!=null}function co(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Ic(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(Ic(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),pe(o,l,e,J(o).dataIndex)}}})}function gp(r,t){return N(r,function(e){var a=e[0];a=Gi(a,t.x),a=Fi(a,t.x+t.width);var n=e[1];return n=Gi(n,t.y),n=Fi(n,t.y+t.height),[a,n]})}function sx(r,t){var e=Gi(r.x,t.x),a=Fi(r.x+r.width,t.x+t.width),n=Gi(r.y,t.y),i=Fi(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 Vn(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(yp(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function yp(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,v=zo(c,f,l,u);if(ux(v))return!1;var h=r-n,d=t-i,p=zo(h,d,l,u)/v;if(p<0||p>1)return!1;var g=zo(h,d,c,f)/v;return!(g<0||g>1)}function zo(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(De(l),function(c){j(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=J(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function Lc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function fo(r,t){if(r)if(k(r))for(var e=0;e<r.length;e++)Lc(r[e],t);else Lc(r,t)}pt("circle",Nt);pt("ellipse",Pd);pt("sector",Gt);pt("ring",ao);pt("polygon",hr);pt("polyline",At);pt("rect",oe);pt("line",Ze);pt("bezierCurve",Rd);pt("arc",zl);const ho=Object.freeze(Object.defineProperty({__proto__:null,updateProps:pe,initProps:Le,removeElement:pn,removeElementWithFadeOut:zi,isElementRemoved:na,extendShape:tx,extendPath:ax,registerShape:pt,getShapeClass:hp,makePath:Jl,makeImage:vp,mergePath:ft,resizePath:pp,subPixelOptimizeLine:yn,subPixelOptimizeRect:nx,subPixelOptimize:ix,getTransform:Pr,applyTransform:vt,transformDirection:uo,groupTransition:co,clipPointsByRect:gp,clipRectByRect:sx,createIcon:Vn,linePolygonIntersect:lx,lineLineIntersect:yp,setTooltipConfig:Sa,traverseElements:fo,Group:Q,Image:zt,Text:ne,Circle:Nt,Ellipse:Pd,Sector:Gt,Ring:ao,Polygon:hr,Polyline:At,Rect:oe,Line:Ze,BezierCurve:Rd,Arc:zl,IncrementalDisplayable:M0,CompoundPath:Ed,LinearGradient:Gl,RadialGradient:D0,BoundingRect:ye,OrientedBoundingRect:ki,Point:we,Path:Ie},Symbol.toStringTag,{value:"Module"}));var vo={};function mp(r,t){for(var e=0;e<at.length;e++){var a=at[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 Qs(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<at.length;u++){var c=at[u],f=t[c];l[c]=ce(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Wt(r,t,e,a){e=e||vo;for(var n=r instanceof ne,i=!1,o=0;o<Vi.length;o++){var s=t[Vi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new ne,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Qs(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(Pc(c,e,!1));for(var o=0;o<at.length;o++){var h=at[o],s=t[h];if(s){var d=l.ensureState(h),p=!!ce(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=Pc(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=Qs(e,t,y);mp(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<at.length;a++){var n=at[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 Pc(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=ce(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||vo;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]);Oc(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),Oc(r,t,o,e,a,n,!0,!1)}function fx(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||vo).rich;if(e){t=t||{};for(var a=De(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var Rc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ec=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],kc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Oc(r,t,e,a,n,i,o,s){e=!n&&e||vo;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ce(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=ce(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var h=ce(t.getShallow("textBorderType"),e.textBorderType);h!=null&&(r.lineDash=h);var d=ce(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<Rc.length;p++){var g=Rc[p],y=ce(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Ec.length;p++){var g=Ec[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<kc.length;p++){var g=kc[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 kn([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=ae();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=ce(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=Qs({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);mp(r,v)}r.percent=0,(i.prevValue==null?Le:pe)(r,{percent:1},a,t,null,u)}var px=["textStyle","color"],Go=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Fo=new ne,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<Go.length;a++)e[Go[a]]=this.getShallow(Go[a]);return Fo.useStyle(e),Fo.update(),Fo.getBoundingRect()},r}();const yx=gx;var _p=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mx=ca(_p),_x=function(){function r(){}return r.prototype.getLineStyle=function(t){return mx(this,t)},r}(),xp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],xx=ca(xp),Sx=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return xx(this,t,e)},r}(),Fr=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){q(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(!ge.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}();Ul(Fr);D_(Fr);Xe(Fr,_x);Xe(Fr,Sx);Xe(Fr,E_);Xe(Fr,yx);const Se=Fr;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 vr(r,t){return q(q({},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 Wi="ZH",Ql="EN",mn=Ql,Ti={},eu={},Sp=ge.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Wi)>-1?Wi:mn}():mn;function bp(r,t){r=r.toUpperCase(),eu[r]=new Se(t),Ti[r]=t}function Mx(r){if(G(r)){var t=Ti[r.toUpperCase()]||{};return r===Wi||r===Ql?U(t):q(U(t),U(Ti[mn]),!1)}else return q(U(r),U(Ti[mn]),!1)}function el(r){return eu[r]}function Dx(){return eu[mn]}bp(Ql,Ax);bp(Wi,Cx);var tu=1e3,ru=tu*60,on=ru*60,Qe=on*24,Bc=Qe*365,ja={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}"},Yn="{yyyy}-{MM}-{dd}",Nc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Yn,hour:Yn+" "+ja.hour,minute:Yn+" "+ja.minute,second:Yn+" "+ja.second,millisecond:ja.none},Wo=["year","month","day","hour","minute","second","millisecond"],wp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xt(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 po(r,t,e,a){var n=wt(r),i=n[au(e)](),o=n[oa(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[go(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[_n(e)](),f=(c-1)%12+1,v=n[yo(e)](),h=n[mo(e)](),d=n[_o(e)](),p=a instanceof Se?a:el(a||Sp)||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,Xt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Xt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Xt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Xt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Xt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Xt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Xt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Xt(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({},ja);if(r.level>0)for(var s=0;s<Wo.length;++s)o[Wo[s]]="{primary|"+o[Wo[s]]+"}";var l=e?e.inherit===!1?e:K(e,o):o,u=Tp(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=wp.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 po(new Date(r.value),i,n,a)}function Tp(r,t){var e=wt(r),a=e[oa(t)]()+1,n=e[go(t)](),i=e[_n(t)](),o=e[yo(t)](),s=e[mo(t)](),l=e[_o(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 Vc(r,t,e){var a=de(r)?wt(r):r;switch(t=t||Tp(r,e),t){case"year":return a[au(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[go(e)]();case"half-day":return a[_n(e)]()/24;case"hour":return a[_n(e)]();case"minute":return a[yo(e)]();case"second":return a[mo(e)]();case"millisecond":return a[_o(e)]()}}function au(r){return r?"getUTCFullYear":"getFullYear"}function oa(r){return r?"getUTCMonth":"getMonth"}function go(r){return r?"getUTCDate":"getDate"}function _n(r){return r?"getUTCHours":"getHours"}function yo(r){return r?"getUTCMinutes":"getMinutes"}function mo(r){return r?"getUTCSeconds":"getSeconds"}function _o(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Rx(r){return r?"setUTCFullYear":"setFullYear"}function Ap(r){return r?"setUTCMonth":"setMonth"}function Cp(r){return r?"setUTCDate":"setDate"}function Mp(r){return r?"setUTCHours":"setHours"}function Dp(r){return r?"setUTCMinutes":"setMinutes"}function Ip(r){return r?"setUTCSeconds":"setSeconds"}function Lp(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Pp(r){if(!Ud(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 Rp(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 zn=I0;function tl(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&kn(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 po(l,a,e)}if(t==="ordinal")return Hs(r)?n(r):de(r)&&i(r)?r+"":"-";var u=Bi(r);return i(u)?Pp(u):Hs(r)?n(r):typeof r=="boolean"?r+"":"-"}var zc=["a","b","c","d","e","f","g"],Ho=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Ep(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=zc[i];r=r.replace(Ho(o),Ho(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(Ho(zc[l],s),e?Ye(u):u)}return r}function Ex(r,t,e){return S(t,function(a,n){r=r.replace("{"+n+"}",e?Ye(a):a)}),r}function kx(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 Nr(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Gc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ai=S,kp=["left","right","top","bottom","width","height"],Mr=[["width","left","right"],["height","top","bottom"]];function nu(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 Rr=nu;ee(nu,"vertical");ee(nu,"horizontal");function Ue(r,t,e){e=zn(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 ye(i+e[3],o+e[0],u,c);return d.margin=e,d}function iu(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 ye(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=Ue(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 Ox(r,t){return r[Mr[t][0]]!=null||r[Mr[t][1]]!=null&&r[Mr[t][2]]!=null}function xn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function ur(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(Ai(c,function(_){d[_]=r[_]}),Ai(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){Ai(c,function(h){f[h]=v[h]})}}function Ta(r){return Op({},r)}function Op(r,t){return t&&r&&Ai(kp,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Bx=ae(),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=xn(this),i=n?Ta(e):{},o=a.getTheme();q(e,o.get(this.mainType)),q(e,this.getDefaultOption()),n&&ur(e,i,n)},t.prototype.mergeOption=function(e,a){q(this.option,e,!0);var n=xn(this);n&&ur(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!A_(e))return e.defaultOption;var a=Bx(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=q(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Nn(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);ep(Aa,Se);io(Aa);wx(Aa);Tx(Aa,Nx);function Nx(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 Bp="";typeof navigator<"u"&&(Bp=navigator.platform||"");var Yr="rgba(0, 0, 0, 0.2)";const Vx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Yr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Yr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Yr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Yr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Yr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Yr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Bp.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 Np=F(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),nt="original",$e="arrayRows",gt="objectRows",Ct="keyedColumns",ir="typedArray",Vp="unknown",Bt="column",Ca="row",Pe={Must:1,Might:2,Not:3},zp=ae();function zx(r){zp(r).datasetMap=F()}function Gx(r,t,e){var a={},n=ou(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=zp(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 Gp(r,t,e){var a={},n=ou(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=Wp(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 ou(r){var t=r.get("data",!0);if(!t)return Nn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Me).models[0]}function Fx(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Nn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Me).models}function Fp(r,t){return Wp(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Wp(r,t,e,a,n,i){var o,s=5;if(rt(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===$e){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||rt(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===nt)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 rl=F();function Wx(r,t){et(rl.get(r)==null&&t),rl.set(r,t)}function Hx(r,t,e){var a=rl.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Fc=ae(),Ux=ae(),su=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=le(this.get("color",!0)),i=this.get("colorLayer",!0);return Hp(this,Fc,n,i,t,e,a)},r.prototype.clearColorPalette=function(){Yx(this,Fc)},r}();function Wc(r,t,e,a){var n=le(r.get(["aria","decal","decals"]));return Hp(r,Ux,n,null,t,e,a)}function $x(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 Hp(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:$x(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 Yx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Zn,Pa,Hc,Uc="\0_ec_inner",Zx=1,Up=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=Zc(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Zc(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"?Hc(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=F(),u=a&&a.replaceMergeMainTypeMap;zx(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):q(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=Hx(this,f,le(e[f])),h=i.get(f),d=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Kd(h,v,d);g_(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"&&Zn(this)}this._seriesIndices||Zn(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]&&!dn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Uc],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=$c("id",i,s):o!=null?l=$c("name",o,s):l=ve(s,function(u){return!!u}),Yc(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):ve(this._componentsMap.get(n),function(u){return!!u});return l(Yc(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?ve(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 ve(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 ve(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return ve(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=F(n)},t.prototype.restoreData=function(e){Zn(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"||!Xx(o,e))&&o.restoreData()})})},t.internalField=function(){Zn=function(e){var a=e._seriesIndices=[];S(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=F(a)},Pa=function(e){},Hc=function(e,a){e.option={},e.option[Uc]=Zx,e._componentsMap=F({series:[]}),e._componentsCount=F();var n=a.aria;H(n)&&n.enabled==null&&(n.enabled=!0),Kx(a,e._theme.option),q(a,Vx,!1),e._mergeOption(a,null)}}(),t}(Se);function Xx(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 Kx(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]?q(r[n],a,!1):U(a):r[n]==null&&(r[n]=a))})}function $c(r,t,e){if(k(t)){var a=F();return S(t,function(i){if(i!=null){var o=ke(i,null);o!=null&&a.set(i,!0)}}),ve(e,function(i){return i&&a.get(i[r])})}else{var n=ke(t,null);return ve(e,function(i){return i&&n!=null&&i[r]===n})}}function Yc(r,t){return t.hasOwnProperty("subType")?ve(r,function(e){return e&&e.subType===t.subType}):r}function Zc(r){var t=F();return r&&S(le(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Xe(Up,su);const $p=Up;var qx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jx=function(){function r(t){S(qx,function(e){this[e]=z(t[e],t)},this)}return r}();const Yp=jx;var Uo={},Jx=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];S(Uo,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){Uo[t]=e},r.get=function(t){return Uo[t]},r}();const lu=Jx;var Qx=/^(min|max)?(.+)$/,eS=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&&rt(o.data)&&Us(o.data)}),S(le(t.dataset),function(o){o&&o.source&&rt(o.source)&&Us(o.source)})),t=U(t);var n=this._optionBackup,i=tS(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++)rS(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!nS(o,this._currentMediaIndices)&&(s=N(o,function(c){return U(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function tS(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 rS(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return S(r,function(i,o){var s=o.match(Qx);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();aS(a[u],i,l)||(n=!1)}}),n}function aS(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function nS(r,t){return r.join(",")===t.join(",")}const iS=eS;var ot=S,Sn=H,Xc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $o(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=Xc.length;e<a;e++){var n=Xc[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?q(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?q(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=Sn(r)&&r[t],a=Sn(e)&&e.textStyle;if(a)for(var n=0,i=yc.length;n<i;n++){var o=yc[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function je(r){r&&(Ja(r),_e(r,"label"),r.emphasis&&_e(r.emphasis,"label"))}function oS(r){if(!!Sn(r)){$o(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&&($o(t),je(t));var e=r.markLine;e&&($o(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&&!rt(i))for(var o=0;o<i.length;o++)je(i[o]);S(r.categories,function(u){Ja(u)})}if(n&&!rt(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 Kc(r){return(k(r)?r[0]:r)||{}}function sS(r,t){ot(Lt(r.series),function(a){Sn(a)&&oS(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ot(e,function(a){ot(Lt(r[a]),function(n){n&&(_e(n,"axisLabel"),_e(n.axisPointer,"label"))})}),ot(Lt(r.parallel),function(a){var n=a&&a.parallelAxisDefault;_e(n,"axisLabel"),_e(n&&n.axisPointer,"label")}),ot(Lt(r.calendar),function(a){Ee(a,"itemStyle"),_e(a,"dayLabel"),_e(a,"monthLabel"),_e(a,"yearLabel")}),ot(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)}),ot(Lt(r.geo),function(a){Sn(a)&&(je(a),ot(Lt(a.regions),function(n){je(n)}))}),ot(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"))})}),ot(Lt(r.toolbox),function(a){Ee(a,"iconStyle"),ot(a.feature,function(n){Ee(n,"iconStyle")})}),_e(Kc(r.axisPointer),"label"),_e(Kc(r.tooltip).axisPointer,"label")}function lS(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 uS(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 qc(r){r&&S(cS,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var cS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yo=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ra(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Yo.length;e++){var a=Yo[e][1],n=Yo[e][0];t[a]!=null&&(t[n]=t[a])}}function jc(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 hS(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Zp(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Zp(r[e].children,t)}function Xp(r,t){sS(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),jc(e.label);var n=e.data;if(n&&!rt(n))for(var i=0;i<n.length;i++)jc(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=lS(e,"pointer.color");o!=null&&uS(e,"itemStyle.color",o)}else if(a==="bar"){Ra(e),Ra(e.backgroundStyle),Ra(e.emphasis);var n=e.data;if(n&&!rt(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),Zp(e.data,Jc)}else a==="graph"||a==="sankey"?hS(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)),qc(e)}}),r.dataRange&&(r.visualMap=r.dataRange),S(fS,function(e){var a=r[e];a&&(k(a)||(a=[a]),S(a,function(n){qc(n)}))})}function vS(r){var t=F();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(dS)}function dS(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=i_(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var xo=function(){function r(t){this.data=t.data||(t.sourceFormat===Ct?{}:[]),this.sourceFormat=t.sourceFormat||Vp,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&&Fp(this,a)===Pe.Must&&(n.type="ordinal")}}return r}();function uu(r){return r instanceof xo}function al(r,t,e){e=e||Kp(r);var a=t.seriesLayoutBy,n=gS(r,e,a,t.sourceHeader,t.dimensions),i=new xo({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:U(t)});return i}function cu(r){return new xo({data:r,sourceFormat:rt(r)?ir:nt})}function pS(r){return new xo({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:U(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Kp(r){var t=Vp;if(rt(r))t=ir;else if(k(r)){r.length===0&&(t=$e);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(k(n)){t=$e;break}else if(H(n)){t=gt;break}}}}else if(H(r)){for(var i in r)if(j(r,i)&&Rn(r[i])){t=Ct;break}}return t}function gS(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Qc(n),startIndex:o,dimensionsDetectedCount:i};if(t===$e){var s=r;a==="auto"||a==null?ef(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},e,s,10):o=de(a)?a:a?1:0,!n&&o===1&&(n=[],ef(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=yS(r));else if(t===Ct)n||(n=[],S(r,function(u,c){n.push(c)}));else if(t===nt){var l=_a(r[0]);i=k(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Qc(n),dimensionsDetectedCount:i}}function yS(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return De(e)}function Qc(r){if(!!r){var t=F();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 ef(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 qp(r){var t=r.sourceFormat;return t===gt||t===Ct}var gr,yr,mr,tf,rf,jp=function(){function r(t,e){var a=uu(t)?t:cu(t);this._source=a;var n=this._data=a.data;a.sourceFormat===ir&&(this._offset=0,this._dimSize=e,this._data=n),rf(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;rf=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,h=tf[fu(u,c)];if(O(o,h),u===ir)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=Qp(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};tf=(t={},t[$e+"_"+Bt]={pure:!0,appendData:i},t[$e+"_"+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[nt]={appendData:i},t[ir]={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}(),af=function(r,t,e,a){return r[a]},mS=(gr={},gr[$e+"_"+Bt]=function(r,t,e,a){return r[a+t]},gr[$e+"_"+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]=af,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[nt]=af,gr);function Jp(r,t){var e=mS[fu(r,t)];return e}var nf=function(r,t,e){return r.length},_S=(yr={},yr[$e+"_"+Bt]=function(r,t,e){return Math.max(0,r.length-t)},yr[$e+"_"+Ca]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},yr[gt]=nf,yr[Ct]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},yr[nt]=nf,yr);function Qp(r,t){var e=_S[fu(r,t)];return e}var Zo=function(r,t,e){return r[t]},xS=(mr={},mr[$e]=Zo,mr[gt]=function(r,t,e){return r[e]},mr[Ct]=Zo,mr[nt]=function(r,t,e){var a=_a(r);return a instanceof Array?a[t]:a},mr[ir]=Zo,mr);function eg(r){var t=xS[r];return t}function fu(r,t){return r===$e?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 eg(i)(a,o,s)}else{var l=a;return i===nt&&(l=_a(a)),l}}}}var SS=/\{@(.+?)\}/g,tg=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=Ep(i,l);return c.replace(SS,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 of(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function sn(r){return new bS(r)}var bS=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){sf.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:sf.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}(),sf=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 Ci(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!de(r)&&r!=null&&r!=="-"&&(r=+wt(r)),r==null||r===""?NaN:+r)}F({number:function(r){return parseFloat(r)},time:function(r){return+wt(r)},trim:function(r){return G(r)?kn(r):r}});var wS=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=de(t)?t:Bi(t),n=de(e)?e:Bi(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}(),TS=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 Ci(t,e)},r}();function AS(r,t){var e=new TS,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Bt&&Fe(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)&&Fe(_),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(CS,null,r)),e.cloneRawData=z(MS,null,r);var v=Qp(n,Bt);e.count=z(v,null,a,i,s);var h=eg(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(DS,null,s,l),e.cloneAllDimensionInfo=z(IS,null,s),e}function CS(r){var t=r.sourceFormat;if(!hu(t)){var e="";Fe(e)}return r.data}function MS(r){var t=r.sourceFormat,e=r.data;if(!hu(t)){var a="";Fe(a)}if(t===$e){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 DS(r,t,e){if(e!=null){if(de(e)||!isNaN(e)&&!j(t,e))return r[e];if(j(t,e))return t[e]}}function IS(r){return U(r)}var rg=F();function LS(r){r=U(r);var t=r.type,e="";t||Fe(e);var a=t.split(":");a.length!==2&&Fe(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,rg.set(t,r)}function PS(r,t,e){var a=le(r),n=a.length,i="";n||Fe(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=RS(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function RS(r,t,e,a){var n="";t.length||Fe(n),H(r)||Fe(n);var i=r.type,o=rg.get(i);o||Fe(n);var s=N(t,function(u){return AS(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)||Fe(f),u.data||Fe(f);var v=Kp(u.data);hu(v)||Fe(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 al(u.data,h,null)})}function hu(r){return r===$e||r===gt}var So="undefined",ES=typeof Uint32Array===So?Array:Uint32Array,kS=typeof Uint16Array===So?Array:Uint16Array,ag=typeof Int32Array===So?Array:Int32Array,lf=typeof Float64Array===So?Array:Float64Array,ng={float:lf,int:ag,ordinal:Array,number:Array,time:lf},Xo;function Ea(r){return r>65535?ES:kS}function Zr(){return[1/0,-1/0]}function OS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function uf(r,t,e,a,n){var i=ng[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 nl=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=F()}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=Xo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],qp(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 ng[e||"float"](this._rawCount),this._rawExtent[i]=Zr(),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]=Zr());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];uf(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=Xo.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]=Zr()),uf(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=De(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]]=Zr();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]=Zr(),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=Zr();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]?OS(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 Ci(e[i],this._dimensions[i])}Xo={arrayRows:t,objectRows:function(e,a,n,i){return Ci(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Ci(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),BS=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(Xn(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=rt(s)?ir:nt,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ce(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=ce(f.sourceHeader,v.sourceHeader),p=ce(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[al(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=[al(_,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&&cf(i)}var o,s=[],l=[];return S(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&cf(f),s.push(c),l.push(u._getVersionSign())}),a?o=PS(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[pS(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];Xn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new nl,s.initData(new jp(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xn(t)){var e=ou(t);return e?[e.getSourceManager()]:[]}else return N(Fx(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(Xn(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 Xn(r){return r.mainType==="series"}function cf(r){throw new Error(r)}var ig="line-height:1";function og(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 NS=[0,10,20,30],VS=["",`
`,`
`,`
`];function Tt(r,t){return t.type=r,t}function il(r){return r.type==="section"}function sg(r){return il(r)?zS:GS}function lg(r){if(il(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=lg(n);i>=t&&(t=i+ +(a&&(!i||il(n)&&!n.noHeader)))}),t}return 0}function zS(r,t,e,a){var n=t.noHeader,i=FS(lg(t)),o=[],s=t.blocks||[];et(!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 wS(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=sg(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):ol(o.join(""),n?e:i.html);if(n)return f;var v=tl(t.header,"ordinal",r.useUTC),h=og(a,r.renderMode).nameStyle;return r.renderMode==="richText"?ug(r,v,h)+i.richText+f:ol('<div style="'+h+";"+ig+';">'+Ye(v)+"</div>"+f,e)}function GS(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 tl(w,k(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":tl(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=og(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":ug(r,v,m))+(o?"":US(r,d,p,g,_)):ol((s?"":f)+(i?"":WS(v,!s,m))+(o?"":HS(d,p,g,_)),e)}}function ff(r,t,e,a,n,i){if(!!r){var o=sg(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function FS(r){return{html:NS[r],richText:VS[r]}}function ol(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+ig+';">'+r+e+"</div>"}function WS(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ye(r)+"</span>"}function HS(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 ug(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function US(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 cg(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Nr(a)}function fg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Ko=function(){function r(){this.richTextStyles={},this._nextStyleNameId=$d()}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=kx({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 $S(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=cg(t,e),c,f,v,h;if(o>1||l&&!o){var d=YS(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=Wl(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:!kn(_),value:c,valueType:f})].concat(v||[])})}function YS(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 Kt=ae();function Kn(r,t){return r.getName(t)||r.getId(t)}var Mi="__universalTransitionEnabled",bo=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=sn({count:XS,reset:KS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Kt(this).sourceManager=new BS(this);i.prepareSource();var o=this.getInitialData(e,n);vf(o,this),this.dataTask.context.data=o,Kt(this).dataBeforeProcessed=o,hf(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=xn(this),i=n?Ta(e):{},o=this.subType;te.hasClass(o)&&(o+="Series"),q(e,a.getTheme().get(this.subType)),q(e,this.getDefaultOption()),Ni(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ur(e,i,n)},t.prototype.mergeOption=function(e,a){e=q(this.option,e,!0),this.fillDataTextStyle(e.data);var n=xn(this);n&&ur(this.option,e,n);var i=Kt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);vf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kt(this).dataBeforeProcessed=o,hf(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!rt(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ni(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=sl(this);if(a){var n=a.context.data;return e==null?n:n.getLinkedData(e)}else return Kt(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=sl(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Kt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return F(e)},t.prototype.getSourceManager=function(){return Kt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Kt(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 $S({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(ge.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=su.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=Kn(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=De(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[Kn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Mi])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=Kn(e,f);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var h=a[l-1],v=Kn(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(bo,tg);Xe(bo,su);ep(bo,te);function hf(r){var t=r.name;Wl(r)||(r.name=ZS(r)||t)}function ZS(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 XS(r){return r.model.getRawData().count()}function KS(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),qS}function qS(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function vf(r,t){S(L0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ee(jS,t))})}function jS(r,t){var e=sl(r);return e&&e.setOutputEnd((t||this).count()),t}function sl(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=bo;var vu=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}();Ul(vu);io(vu);const Ae=vu;function du(){var r=ae();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 hg=ae(),JS=du(),pu=function(){function r(){this.group=new Q,this.uid=wa("viewChart"),this.renderTask=sn({plan:QS,reset:e1}),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||pf(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||pf(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){fo(this.group,t)},r.markUpdateMethod=function(t,e){hg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function df(r,t,e){r&&qs(r)&&(t==="emphasis"?fa:ha)(r,e)}function pf(r,t,e){var a=Br(r,t),n=t&&t.highlightKey!=null?J_(t.highlightKey):null;a!=null?S(le(a),function(i){df(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){df(i,e,n)})}Ul(pu);io(pu);function QS(r){return JS(r.model)}function e1(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&hg(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),t1[l]}var t1={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 We=pu;var Hi="\0__throttleOriginMethod",gf="\0__throttleRate",yf="\0__throttleType";function gu(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 Gn(r,t,e,a){var n=r[t];if(!!n){var i=n[Hi]||n,o=n[yf],s=n[gf];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=gu(i,e,a==="debounce"),n[Hi]=i,n[yf]=a,n[gf]=e}return n}}function bn(r,t){var e=r[t];e&&e[Hi]&&(e.clear&&e.clear(),r[t]=e[Hi])}var mf=ae(),_f={itemStyle:ca(xp,!0),lineStyle:ca(_p,!0)},r1={lineStyle:"stroke",itemStyle:"fill"};function vg(r,t){var e=r.visualStyleMapper||_f[t];return e||(console.warn("Unknown style type '"+t+"'."),_f.itemStyle)}function dg(r,t){var e=r.visualDrawType||r1[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var a1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=vg(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=dg(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,n1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=vg(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}}}},i1={performRawSeries:!0,overallReset:function(r){var t=F();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)),mf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=mf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=dg(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)}})}})}},qn=Math.PI;function o1(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 ne({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 zl({shape:{startAngle:-qn/2,endAngle:-qn/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:qn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:qn*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 s1=function(){function r(t,e,a,n){this._stageTaskMap=F(),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=F();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="";et(!(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=F(),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)||sn({plan:h1,reset:v1,count:p1}));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||sn({reset:l1});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=F(),u=t.seriesType,c=t.getTargetSeries,f=!0,v=!1,h="";et(!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,sn({reset:u1,onDirty:f1})));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:g1(t)}),t.uid=wa("stageHandler"),e&&(t.visualType=e),t},r}();function l1(r){r.overallReset(r.ecModel,r.api,r.payload)}function u1(r){return r.overallProgress&&c1}function c1(){this.agent.dirty(),this.getDownstream().dirty()}function f1(){this.agent&&this.agent.dirty()}function h1(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function v1(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 pg(a)}):d1}var d1=pg(0);function pg(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 p1(r){return r.data.count()}function g1(r){Ui=null;try{r(wn,gg)}catch{}return Ui}var wn={},gg={},Ui;yg(wn,$p);yg(gg,Yp);wn.eachSeriesByType=wn.eachRawSeriesByType=function(r){Ui=r};wn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ui=r.subType)};function yg(r,t){for(var e in t.prototype)r[e]=bt}const mg=s1;var xf=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const y1={color:xf,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],xf]};var Ve="#B9B8CE",Sf="#100C2A",jn=function(){return{axisLine:{lineStyle:{color:Ve}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},bf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],_g={darkMode:!0,color:bf,backgroundColor:Sf,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ve}},textStyle:{color:Ve},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ve}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ve},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:Ve}},timeline:{lineStyle:{color:Ve},label:{color:Ve},controlStyle:{color:Ve,borderColor:Ve}},calendar:{itemStyle:{color:Sf},dayLabel:{color:Ve},monthLabel:{color:Ve},yearLabel:{color:Ve}},timeAxis:jn(),logAxis:jn(),valueAxis:jn(),categoryAxis:jn(),line:{symbol:"circle"},graph:{color:bf},gauge:{title:{color:Ve},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ve},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};_g.categoryAxis.splitLine.show=!1;const m1=_g;var _1=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}(),ll=["symbol","symbolSize","symbolRotate","symbolOffset"],wf=ll.concat(["symbolKeepAspect"]),x1={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<ll.length;o++){var s=ll[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=De(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}}},S1={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<wf.length;s++){var l=wf[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function xg(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 Sg(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 b1(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 bg(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 Xr(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=Br(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 w1(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Xr("map","selectchanged",t,n,a),Xr("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Xr("map","selected",t,n,a),Xr("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Xr("map","unselected",t,n,a),Xr("pie","unselected",t,n,a))})}function Dr(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var T1=Ie.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()}}),A1=Ie.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()}}),C1=Ie.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()}}),M1=Ie.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()}}),D1={line:Ze,rect:oe,roundRect:oe,square:oe,circle:Nt,diamond:A1,pin:C1,arrow:M1,triangle:T1},I1={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}},$i={};S(D1,function(r,t){$i[t]=new r});var L1=Ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=$s(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=$i[a];n||(a="rect",n=$i[a]),I1[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function P1(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=vp(r.slice(8),new ye(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Jl(r.slice(7),{},new ye(t,e,a,n),o?"center":"cover"):l=new L1({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=P1,i&&l.setColor(i),l}function yu(r){return k(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function wo(r,t){if(r!=null)return k(r)||(r=[r,r]),[$(r[0],t[0])||0,$(ce(r[1],r[0]),t[1])||0]}var qo=new P0,Tf=new Ld(100),Af=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yi(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&qo.delete(r);var i=qo.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,qo.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],f=!0,v=0;v<Af.length;++v){var h=o[Af[v]];if(h!=null&&!k(h)&&!G(h)&&!de(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=Tf.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=Tg(o.dashArrayX),y=R1(o.dashArrayY),m=wg(o.symbol),_=E1(g),x=Ag(y),w=!n&&kd.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&&Tf.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=pc(M,_[I]);for(var R=1,I=0,L=m.length;I<L;++I)R=pc(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,W=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(W%2===0){var ue=(1-o.symbolSize)*.5,fe=B+g[V][W]*ue,Ce=L+y[R]*ue,it=g[V][W]*o.symbolSize,be=y[R]*o.symbolSize,$t=Y/2%m[X].length;Yt(fe,Ce,it,be,m[X][$t])}B+=g[V][W],++Y,++W,W===g[V].length&&(W=0)}++V,V===g.length&&(V=0)}L+=y[R],++E,++R,R===y.length&&(R=0)}function Yt(Ma,Da,Hn,Un,$n){var dr=n?1:e,Zt=Oe($n,Ma*dr,Da*dr,Hn*dr,Un*dr,o.color,o.symbolKeepAspect);if(n){var It=a.painter.renderOneToVNode(Zt);It&&b.children.push(It)}else R0(A,Zt)}}}}function wg(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 wg([r]);for(var a=[],e=0;e<r.length;++e)G(r[e])?a.push([r[e]]):a.push(r[e]);return a}function Tg(r){if(!r||r.length===0)return[[0,0]];if(de(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!de(r[a])){e=!1;break}if(e)return Tg([r]);for(var n=[],a=0;a<r.length;++a)if(de(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 R1(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(de(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 E1(r){return N(r,function(t){return Ag(t)})}function Ag(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function k1(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=Yi(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Yi(n,t)}}})}var O1=new ma;const lt=O1;var Cg={};function B1(r,t){Cg[r]=t}function N1(r){return Cg[r]}var V1=1,z1=800,G1=900,F1=1e3,W1=2e3,H1=5e3,Mg=1e3,U1=1100,mu=2e3,Dg=3e3,$1=4e3,To=4500,Y1=4600,Z1=5e3,X1=6e3,Ig=7e3,K1={PROCESSOR:{FILTER:F1,SERIES_FILTER:z1,STATISTIC:H1},VISUAL:{LAYOUT:Mg,PROGRESSIVE_LAYOUT:U1,GLOBAL:mu,CHART:Dg,POST_CHART_LAYOUT:Y1,COMPONENT:$1,BRUSH:Z1,CHART_ITEM:To,ARIA:X1,DECAL:Ig}},Re="__flagInMainProcess",Ge="__pendingUpdate",jo="__needsUpdateStatus",Cf=/^[a-zA-Z0-9_]+$/,Jo="__connectUpdateStatus",Mf=0,q1=1,j1=2;function Lg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Rg(this,r,t)}}function Pg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rg(this,r,t)}}function Rg(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),ma.prototype[t].apply(r,e)}var Eg=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ma),kg=Eg.prototype;kg.on=Pg("on");kg.off=Pg("off");var Kr,Qo,Jn,qt,es,ts,rs,Oa,Ba,Df,If,as,Lf,Qn,Pf,Og,Ke,Rf,Bg=function(r){P(t,r);function t(e,a,n){var i=r.call(this,new _1)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},G(a)&&(a=Ng[a]),i._dom=e;var o="canvas",s="auto",l=!1,u=i._zr=oc(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ce(n.useDirtyRect,l),useCoarsePointer:ce(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=gu(z(u.flush,u),17),a=U(a),a&&Xp(a,!0),i._theme=a,i._locale=Mx(n.locale||Sp),i._coordSysMgr=new lu;var c=i._api=Pf(i);function f(v,h){return v.__prio-h.__prio}return ko(Xi,f),ko(ul,f),i._scheduler=new mg(i,c,ul,Xi),i._messageCenter=new Eg,i._initEvents(),i.resize=z(i.resize,i),u.animation.on("frame",i._onframe,i),Df(u,i),If(u,i),Us(i),i}return t.prototype._onframe=function(){if(!this._disposed){Rf(this);var e=this._scheduler;if(this[Ge]){var a=this[Ge].silent;this[Re]=!0;try{Kr(this),qt.update.call(this,null,this[Ge].updateParams)}catch(l){throw this[Re]=!1,this[Ge]=null,l}this._zr.flush(),this[Re]=!1,this[Ge]=null,Oa.call(this,a),Ba.call(this,a)}else if(e.unfinished){var n=V1,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),ts(this,i),e.performVisualTasks(i),Qn(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 iS(this._api),u=this._theme,c=this._model=new $p;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},cl);var f={seriesTransition:s,optionChanged:!0};if(n)this[Ge]={silent:i,updateParams:f},this[Re]=!1,this.getZr().wakeUp();else{try{Kr(this),qt.update.call(this,null,f)}catch(v){throw this[Ge]=null,this[Re]=!1,v}this._ssr||this._zr.flush(),this[Ge]=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||ge.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!ge.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(Ef[n]){var l=s,u=s,c=-s,f=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();S(un,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=kd.createCanvas(),y=oc(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 es(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return es(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=rn(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=rn(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?xg(s,l,a):Sg(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(J1,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Dr(s,function(d){var p=J(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=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(ln,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)}),w1(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&&jd(this.getDom(),xu,"");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 un[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[Ge]&&(i==null&&(i=this[Ge].silent),n=!0,this[Ge]=null),this[Re]=!0;try{n&&Kr(this),qt.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(),!!fl[e]){var n=fl[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=ln[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(H(a)||(a={silent:!!a}),!!Zi[e.type]&&!!this._model){if(this[Re]){this._pendingActions.push(e);return}var n=a.silent;rs.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&ge.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(){Kr=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),Qo(f,!0),Qo(f,!1),v.plan()},Qo=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):We.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)}},Jn=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=F(),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(Mc(h))if(b instanceof dt)h.type===Ir&&!h.notBlur&&!b.get(["emphasis","disabled"])&&H_(b,h,f._api);else{var A=Kl(b.mainType,b.componentIndex,h.name,f._api),C=A.focusSelf,D=A.dispatchers;h.type===Ir&&C&&!h.notBlur&&Ks(b.mainType,b.componentIndex,f._api),D&&S(D,function(M){h.type===Ir?fa(M):ha(M)})}else js(h)&&b instanceof dt&&(Y_(b,h,f._api),Ac(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)}},qt={prepareAndUpdate:function(f){Kr(this),qt.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),ts(this,h),g.update(h,d),e(h),y.performVisualTasks(h,f),as(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=F();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}),Qn(this,h,d,f,{},g),lt.trigger("afterupdate",h,d)}},updateView:function(f){var v=this._model;!v||(v.setUpdatePayload(f),We.markUpdateMethod(f,"updateView"),e(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0}),as(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()}),We.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){qt.update.call(this,f)}},es=function(f,v,h,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=rn(p,h),_=0;_<g.length;_++){var x=g[_];if(x[v]&&(y=x[v](p,m,d))!=null)return y}},ts=function(f,v){var h=f._chartsMap,d=f._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},rs=function(f,v){var h=this,d=this.getModel(),p=f.type,g=f.escapeConnect,y=Zi[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=js(f),M=Mc(f);if(M&&cp(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=Hl(f),V=E.queryOptionMap,X=E.mainTypeSpecified,B=X?V.keys()[0]:"series";Jn(h,x,R,B),Ke(h)}else D?(Jn(h,x,R,"series"),Ke(h)):w&&Jn(h,x,R,w.main,w.sub)}),x!=="none"&&!M&&!D&&!w)try{this[Ge]?(Kr(this),qt.update.call(this,f),this[Ge]=null):qt[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:Z_(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();rs.call(this,h,f)}},Ba=function(f){!f&&this.trigger("updated")},Df=function(f,v){f.on("rendered",function(h){v.trigger("rendered",h),f.animation.isFinished()&&!v[Ge]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},If=function(f,v){f.on("mouseover",function(h){var d=h.target,p=Dr(d,qs);p&&(U_(p,h,v._api),Ke(v))}).on("mouseout",function(h){var d=h.target,p=Dr(d,qs);p&&($_(p,h,v._api),Ke(v))}).on("click",function(h){var d=h.target,p=Dr(d,function(m){return J(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=J(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;ko(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)})}}as=function(f,v,h,d,p){a(v),Lf(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive=!1}),Qn(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive||g.remove(v,h)})},Lf=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)})},Qn=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),Ac(_)}),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[jo]=!0,f.getZr().wakeUp()},Rf=function(f){!f[jo]||(f.getZr().storage.traverse(function(v){na(v)||n(v)}),f[jo]=!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===so&&f.states.emphasis?v.push("emphasis"):f.hoverState===oo&&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")&&!ge.node&&!ge.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 Ie&&Q_(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)}})}Pf=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){W_(d),Ke(f)},h.prototype.leaveBlur=function(d){op(d),Ke(f)},h.prototype.enterSelect=function(d){sp(d),Ke(f)},h.prototype.leaveSelect=function(d){lp(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}(Yp))(f)},Og=function(f){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Jo]=d}}S(ln,function(h,d){f._messageCenter.on(d,function(p){if(Ef[f.group]&&f[Jo]!==Mf){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),y=[];S(un,function(m){m!==f&&m.group===f.group&&y.push(m)}),v(y,Mf),S(y,function(m){m[Jo]!==q1&&m.dispatchAction(g)}),v(y,j1)}})})}}(),t}(ma),_u=Bg.prototype;_u.on=Lg("on");_u.off=Lg("off");_u.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 J1=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Zi={},ln={},ul=[],cl=[],Xi=[],Ng={},fl={},un={},Ef={},Q1=+new Date-0,xu="_echarts_instance_";function TR(r,t,e){var a=!(e&&e.ssr);if(a){var n=eb(r);if(n)return n}var i=new Bg(r,t,e);return i.id="ec_"+Q1++,un[i.id]=i,a&&jd(r,xu,i.id),Og(i),lt.trigger("afterinit",i),i}function eb(r){return un[S_(r,xu)]}function Vg(r,t){Ng[r]=t}function zg(r){ie(cl,r)<0&&cl.push(r)}function Gg(r,t){bu(ul,r,t,W1)}function tb(r){Su("afterinit",r)}function rb(r){Su("afterupdate",r)}function Su(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,!ln[t]&&(et(Cf.test(a)&&Cf.test(t)),Zi[a]||(Zi[a]={action:e,actionInfo:r}),ln[t]=a)}function ab(r,t){lu.register(r,t)}function nb(r,t){bu(Xi,r,t,Mg,"layout")}function Wr(r,t){bu(Xi,r,t,Dg,"visual")}var kf=[];function bu(r,t,e,a,n){if((Z(t)||H(t))&&(e=t,t=a),!(ie(kf,e)>=0)){kf.push(e);var i=mg.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Fg(r,t){fl[r]=t}function ib(r,t,e){var a=N1("registerMap");a&&a(r,t,e)}var ob=LS;Wr(mu,a1);Wr(To,n1);Wr(To,i1);Wr(mu,x1);Wr(To,S1);Wr(Ig,k1);zg(Xp);Gg(G1,vS);Fg("default",o1);Mt({type:Ir,event:Ir,update:Ir},bt);Mt({type:bi,event:bi,update:bi},bt);Mt({type:an,event:an,update:an},bt);Mt({type:wi,event:wi,update:wi},bt);Mt({type:nn,event:nn,update:nn},bt);Vg("light",y1);Vg("dark",m1);function Na(r){return r==null?0:r.length||1}function Of(r){return r}var sb=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Of,this._newKeyGetter=n||Of,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 Tn=sb;var lb=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 ub(r,t){var e={},a=e.encode={},n=F(),i=[],o=[],s={};S(r.dimensions,function(v){var h=r.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;ns(a,d)[p]=v,h.isExtraCoord||(n.set(d,1),fb(h.type)&&(i[0]=v),ns(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Np.each(function(g,y){var m=ns(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 lb(s,t),e}function ns(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function cb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function fb(r){return!(r==="ordinal"||r==="time")}var hb=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}();const Di=hb;var vb=ae(),db={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Wg=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=$g(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ce(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=qp(this.source),a=!Yg(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+=db[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 Hg(r){return r instanceof Wg}function Ug(r){for(var t=F(),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 $g(r){var t=vb(r);return t.dimNameMap||(t.dimNameMap=Ug(r.dimensionsDefine))}function Yg(r){return r>30}var Va=H,jt=N,pb=typeof Int32Array>"u"?Array:Int32Array,gb="e\0\0",Bf=-1,yb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mb=["_approximateExtent"],Nf,ei,za,Ga,is,ti,os,_b=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;Hg(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 Di({name:f}):f instanceof Di?f:new Di(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=F();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(de(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 nl&&(i=t),!i){var o=this.dimensions,s=uu(t)||Rn(t)?new jp(t,o.length):t;i=new nl;var l=jt(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=ub(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&&os(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!==ir&&!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===nt;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&l_(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++)os(this,c);Nf(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 ei(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(jt(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)?Bf: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=jt(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=jt(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=De(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=jt(Ga(t),this._getStoreDimIndex,this),s=ti(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=jt(Ga(t),this._getStoreDimIndex,this);this._store.modify(o,i?z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=ti(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.lttbDownSample=function(t,e){var a=ti(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 Tn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return ei(t,a)},function(a){return ei(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;k_(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:jt(this.dimensions,this._getDimInfo,this),this.hostModel)),is(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(E0(arguments)))})},r.internalField=function(){Nf=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 pb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Bf;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)},ei=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=za(t,t._idDimIdx,e)),a==null&&(a=gb+e),a},Ga=function(t){return k(t)||(t=t!=null?[t]:[]),t},ti=function(t){var e=new r(t._schema?t._schema:jt(t.dimensions,t._getDimInfo,t),t.hostModel);return is(e,t),e},is=function(t,e){S(yb.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,S(mb,function(a){t[a]=U(e[a])}),t._calculationInfo=O({},e._calculationInfo)},os=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 wu=_b;function Zg(r,t){uu(r)||(r=cu(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=F(),i=[],o=Sb(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Yg(o),l=a===r.dimensionsDefine,u=l?$g(r):Ug(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=F(c),v=new ag(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 Di,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 W=d(X);if(l&&L.type!=null&&(W.type=L.type),g(K(W,L),D,B),W.name==null&&M){var Y=M[B];!H(Y)&&(Y={name:Y}),W.name=W.displayName=Y.name,W.defaultTooltip=Y.defaultTooltip}I&&K(W.otherDims,I)})}});function g(C,D,M){Np.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=bb(x,n,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),w(T),T.type==null&&(Fp(r,b)===Pe.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return xb(i),new Wg({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function xb(r){for(var t=F(),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 Sb(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 bb(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var wb=function(){function r(t){this.coordSysDims=[],this.axisMap=F(),this.categoryAxisMap=F(),this.coordSysName=t}return r}();function Tb(r){var t=r.get("coordinateSystem"),e=new wb(t),a=Ab[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Ab={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),qr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),qr(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),qr(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),qr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),qr(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),qr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function qr(r){return r.get("type")==="category"}function Cb(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Mb(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 Mb(r){return!Hg(r.schema)}function Vr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Db(r,t){return Vr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Ib(r,t){var e=r.get("coordinateSystem"),a=lu.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=cb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Lb(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 Ao(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=cu(r)):(n=a.getSource(),i=n.sourceFormat===nt);var o=Tb(t),s=Ib(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?ee(Gx,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Zg(n,c),v=Lb(f.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(f),d=Cb(t,{schema:f,store:h}),p=new wu(f,t);p.setCalculationInfo(d);var g=v!=null&&Pb(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 Pb(r){if(r.sourceFormat===nt){var t=Rb(r.data||[]);return!k(_a(t))}}function Rb(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Xg=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}();io(Xg);const Ut=Xg;var Eb=0,kb=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Eb}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&N(a,Ob);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=F(this.categories))},r}();function Ob(r){return H(r)&&r.value!=null?r.value:r+""}const hl=kb;function vl(r){return r.type==="interval"||r.type==="log"}function Bb(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Hd(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=Kg(o),l=n.niceTickExtent=[xe(Math.ceil(r[0]/o)*o,s),xe(Math.floor(r[1]/o)*o,s)];return Nb(l,r),n}function ss(r){var t=Math.pow(10,Fl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xe(e*t)}function Kg(r){return Et(r)+2}function Vf(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Nb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Vf(r,0,t),Vf(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Co(r,t){return r>=t[0]&&r<=t[1]}function Mo(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Do(r,t){return r*(t[1]-t[0])+t[0]}var qg=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 hl({})),k(n)&&(n=new hl({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),Co(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Mo(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Do(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(qg);const Tu=qg;var _r=xe,jg=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 Co(e,this._extent)},t.prototype.normalize=function(e){return Mo(e,this._extent)},t.prototype.scale=function(e){return Do(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=Kg(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 Pp(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=Bb(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=_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(jg);const cr=jg;var Jg=typeof Float32Array<"u",Vb=Jg?Float32Array:Array;function kt(r){return k(r)?Jg?new Float32Array(r):r:new Vb(r)}var zb="__ec_stack_";function Au(r){return r.get("stack")||zb+r.seriesIndex}function Cu(r){return r.dim+r.index}function Qg(r,t){var e=[];return t.eachSeriesByType(r,function(a){ay(a)&&e.push(a)}),e}function Gb(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 ey(r){var t=Gb(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")||(ny(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:Cu(i),stackId:Au(a)})}),Fb(e)}function Fb(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=De(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 Wb(r,t,e){if(r&&t){var a=r[Cu(t)];return a!=null&&e!=null?a[Au(e)]:a}}function ty(r,t){var e=Qg(r,t),a=ey(e);S(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Au(n),u=a[Cu(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function ry(r){return{seriesType:r,plan:du(),reset:function(t){if(!!ay(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=Vr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=Hb(n,i),d=ny(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,W=void 0,Y=void 0,re=void 0;if(v){var ue=a.dataToPoint([R,E]);if(f){var fe=a.dataToPoint([X,E]);V=fe[0]}B=V,W=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 fe=a.dataToPoint([E,X]);V=fe[1]}B=ue[0]+m,W=V,Y=y,re=ue[1]-V,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}d?(b[L]=B,b[L+1]=W,b[L+2]=v?Y:re,T&&(T[L]=v?C.x:B,T[L+1]=v?W:C.y,T[L+2]=D),A[M]=M):x.setItemLayout(M,{x:B,y:W,width:Y,height:re}),L+=3}d&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function ay(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ny(r){return r.pipelineContext&&r.pipelineContext.large}function Hb(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var Ub=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},iy=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 po(e.value,Nc[Lx(ia(this._minLevelUnit))]||Nc.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=jb(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]-=Qe,a[1]+=Qe),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]-Qe}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=ri.length,l=Math.min(Ub(ri,this._approxInterval,0,s),s-1);this._interval=ri[l][1],this._minLevelUnit=ri[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return de(e)?e:+wt(e)},t.prototype.contain=function(e){return Co(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Mo(this.parse(e),this._extent)},t.prototype.scale=function(e){return Do(e,this._extent)},t.type="time",t}(cr),ri=[["second",tu],["minute",ru],["hour",on],["quarter-day",on*6],["half-day",on*12],["day",Qe*1.2],["half-week",Qe*3.5],["week",Qe*7],["month",Qe*31],["quarter",Qe*95],["half-year",Bc/2],["year",Bc]];function $b(r,t,e,a){var n=wt(t),i=wt(e),o=function(d){return Vc(n,d,a)===Vc(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 Yb(r,t){return r/=Qe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Zb(r){var t=30*Qe;return r/=t,r>6?6:r>3?3:r>2?2:1}function Xb(r){return r/=on,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function zf(r,t){return r/=t?ru:tu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Kb(r){return Hd(r,!0)}function qb(r,t,e){var a=new Date(r);switch(ia(t)){case"year":case"month":a[Ap(e)](0);case"day":a[Cp(e)](1);case"hour":a[Mp(e)](0);case"minute":a[Dp(e)](0);case"second":a[Ip(e)](0),a[Lp(e)](0)}return a.getTime()}function jb(r,t,e,a){var n=1e4,i=wp,o=0;function s(D,M,I,L,R,E,V){for(var X=new Date(M),B=M,W=X[L]();B<I&&B<=a[1];)V.push({value:B}),W+=D,X[R](W),B=X.getTime();V.push({value:B,notAdd:!0})}function l(D,M,I){var L=[],R=!M.length;if(!$b(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,W=void 0,Y=void 0,re=!1;switch(D){case"year":B=Math.max(1,Math.round(t/Qe/365)),W=au(e),Y=Rx(e);break;case"half-year":case"quarter":case"month":B=Zb(t),W=oa(e),Y=Ap(e);break;case"week":case"half-week":case"day":B=Yb(t),W=go(e),Y=Cp(e),re=!0;break;case"half-day":case"quarter-day":case"hour":B=Xb(t),W=_n(e),Y=Mp(e);break;case"minute":B=zf(t,!0),W=yo(e),Y=Dp(e);break;case"second":B=zf(t,!1),W=mo(e),Y=Ip(e);break;case"millisecond":B=Kb(t),W=_o(e),Y=Lp(e);break}s(B,V,X,W,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=ve(N(u,function(D){return ve(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(iy);const oy=iy;var Gf=Ut.prototype,cn=cr.prototype,Jb=xe,Qb=Math.floor,ew=Math.ceil,ai=Math.pow,st=Math.log,Mu=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 cr,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=cn.getTicks.call(this,e);return N(o,function(s){var l=s.value,u=xe(ai(this.base,l));return u=l===n[0]&&this._fixMin?ni(u,i[0]):u,u=l===n[1]&&this._fixMax?ni(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=st(this.base);e=st(Math.max(0,e))/n,a=st(Math.max(0,a))/n,cn.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=Gf.getExtent.call(this);a[0]=ai(e,a[0]),a[1]=ai(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=ni(a[0],i[0])),this._fixMax&&(a[1]=ni(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=st(e[0])/st(a),e[1]=st(e[1])/st(a),Gf.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=s_(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(ew(a[0]/i)*i),xe(Qb(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){cn.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=st(e)/st(this.base),Co(e,this._extent)},t.prototype.normalize=function(e){return e=st(e)/st(this.base),Mo(e,this._extent)},t.prototype.scale=function(e){return e=Do(e,this._extent),ai(this.base,e)},t.type="log",t}(Ut),sy=Mu.prototype;sy.getMinorTicks=cn.getMinorTicks;sy.getLabel=cn.getLabel;function ni(r,t){return Jb(r,Et(t))}Ut.registerClass(Mu);const tw=Mu;var rw=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=ii(t,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=ii(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Z(o)?this._modelMaxNum=ii(t,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=ii(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=Ys(s)||Ys(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[nw[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=aw[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),aw={min:"_determinedMin",max:"_determinedMax"},nw={min:"_dataMin",max:"_dataMax"};function ly(r,t,e){var a=r.rawExtentInfo;return a||(a=new rw(r,t,e),r.rawExtentInfo=a,a)}function ii(r,t){return t==null?null:Ys(t)?NaN:r.parse(t)}function uy(r,t){var e=r.type,a=ly(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=Qg("bar",o),l=!1;if(S(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=ey(s),c=iw(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function iw(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=Wb(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 An(r,t){var e=t,a=uy(r,e),n=a.extent,i=e.get("splitNumber");r instanceof tw&&(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 Du(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Tu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new oy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ut.getClass(t)||cr)}}function ow(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Fn(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(Iu(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Iu(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function sw(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof Tu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Fn(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=lw(h,o.get("rotate")||0);l?l.union(d):l=d}return l}}function lw(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 ye(r.x,r.y,i,o);return s}function Lu(r){var t=r.get("interval");return t==null?"auto":t}function cy(r){return r.type==="category"&&Lu(r.getLabelModel())===0}function Ki(r,t){var e={};return S(r.mapDimensionsAll(t),function(a){e[Db(r,a)]=!0}),De(e)}function uw(r,t,e){t&&S(Ki(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 Io=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Ff=[],cw={registerPreprocessor:zg,registerProcessor:Gg,registerPostInit:tb,registerPostUpdate:rb,registerUpdateLifecycle:Su,registerAction:Mt,registerCoordinateSystem:ab,registerLayout:nb,registerVisual:Wr,registerTransform:ob,registerLoading:Fg,registerMap:ib,registerImpl:B1,PRIORITY:K1,ComponentModel:te,ComponentView:Ae,SeriesModel:dt,ChartView:We,registerComponentModel:function(r){te.registerClass(r)},registerComponentView:function(r){Ae.registerClass(r)},registerSeriesModel:function(r){dt.registerClass(r)},registerChartView:function(r){We.registerClass(r)},registerSubTypeDefaulter:function(r,t){te.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){k0(r,t)}};function Be(r){if(k(r)){S(r,function(t){Be(t)});return}ie(Ff,r)>=0||(Ff.push(r),Z(r)&&(r={install:r}),r.install(cw))}var fw=[];function ls(r,t){for(var e=0;e<r.length;e++)tt(r[e],r[e],t)}function Wf(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])&&(Od(t,t,i),Bd(e,e,i))}}function hw(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 fy=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}(),Hf=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Uf=function(){function r(t){this.type="linestring",this.points=t}return r}(),hy=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 hw(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"?Wf(s.exterior,n,i,e):S(s.points,function(l){Wf(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 ye(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(sc(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(sc(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 ye(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var v=c[f];v.type==="polygon"?(ls(v.exterior,u),S(v.interiors,function(h){ls(h,u)})):S(v.points,function(h){ls(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}(fy),vw=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=Vl(fw),o=e;o&&!o.isGeoSVGGraphicRoot;)Ei(i,o.getLocalTransform(),i),o=o.parent;return En(i,i),tt(n,n,i),n},t}(fy);function dw(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=vy(s,o,e);break;case"Polygon":us(s,o,e);break;case"MultiLineString":us(s,o,e);break;case"MultiPolygon":S(s,function(l,u){return us(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function us(r,t,e){for(var a=0;a<r.length;a++)r[a]=vy(r[a],t[a],e)}function vy(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 pw(r,t){return r=dw(r),N(ve(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 Hf(o[0],o.slice(1)));break;case"MultiPolygon":S(n.coordinates,function(l){l[0]&&i.push(new Hf(l[0],l.slice(1)))});break;case"LineString":i.push(new Uf([n.coordinates]));break;case"MultiLineString":i.push(new Uf(n.coordinates))}var s=new hy(a[t||"name"],i,a.cp);return s.properties=a,s})}var Cn=ae();function gw(r){return r.type==="category"?mw(r):xw(r)}function yw(r,t){return r.type==="category"?_w(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function mw(r){var t=r.getLabelModel(),e=dy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function dy(r,t){var e=py(r,"labels"),a=Lu(t),n=gy(e,a);if(n)return n;var i,o;return Z(a)?i=_y(r,a):(o=a==="auto"?Sw(r):a,i=my(r,o)),yy(e,a,{labels:i,labelCategoryInterval:o})}function _w(r,t){var e=py(r,"ticks"),a=Lu(t),n=gy(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Z(a))i=_y(r,a,!0);else if(a==="auto"){var s=dy(r,r.getLabelModel());o=s.labelCategoryInterval,i=N(s.labels,function(l){return l.tickValue})}else o=a,i=my(r,o,!0);return yy(e,a,{ticks:i,tickCategoryInterval:o})}function xw(r){var t=r.scale.getTicks(),e=Fn(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 py(r,t){return Cn(r)[t]||(Cn(r)[t]=[])}function gy(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function yy(r,t,e){return r.push({key:t,value:e}),e}function Sw(r){var t=Cn(r).autoInterval;return t!=null?t:Cn(r).autoInterval=r.calculateCategoryInterval()}function bw(r){var t=ww(r),e=Fn(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=no(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=Cn(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 ww(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 my(r,t,e){var a=Fn(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=cy(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 _y(r,t,e){var a=r.scale,n=Fn(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 $f=[0,1],Tw=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 Fd(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(),Yf(a,n.count())),he(t,$f,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Yf(a,n.count()));var i=he(t,a,$f,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=yw(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 Aw(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 gw(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 bw(this)},r}();function Yf(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Aw(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;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=Tw;var Fa=Math.PI*2,xr=Nd.CMD,Cw=["top","right","bottom","left"];function Mw(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 Dw(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=qa(n),n=qa(v)}else a=qa(a),n=qa(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 qi(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 xy(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 Iw(r,t,e){var a=xy(t.x,t.y,t.width,t.height,r.x,r.y,ut);return e.set(ut[0],ut[1]),a}function Lw(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=qi(a,n,c[h],c[h+1],f,v,ut,!0),a=c[h++],n=c[h++];break;case xr.C:p=B0(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=O0(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=Dw(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=xy(i,o,A,C,f,v,ut);break;case xr.Z:p=qi(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,me=new we,St=new we,_t=new we;function Zf(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||Cw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&En([],c),v=t.get("length2")||0;u&&me.copy(u);for(var h=0;h<o.length;h++){var d=o[h];Mw(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 Ie?Lw(se,r.path,me):Iw(se,p,me);g<l&&(l=g,se.transform(c),me.transform(c),me.toArray(i[0]),se.toArray(i[1]),ht.toArray(i[2]))}Sy(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var ji=[],ze=new we;function Sy(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),me.fromArray(r[2]),we.sub(St,ht,se),we.sub(_t,me,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=qi(se.x,se.y,me.x,me.y,ht.x,ht.y,ji,!1);ze.fromArray(ji),ze.scaleAndAdd(_t,o/Math.tan(Math.PI-t));var s=me.x!==se.x?(ze.x-se.x)/(me.x-se.x):(ze.y-se.y)/(me.y-se.y);if(isNaN(s))return;s<0?we.copy(ze,se):s>1&&we.copy(ze,me),ze.toArray(r[1])}}}}function Pw(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),me.fromArray(r[2]),we.sub(St,se,ht),we.sub(_t,me,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=qi(se.x,se.y,me.x,me.y,ht.x,ht.y,ji,!1);ze.fromArray(ji);var l=Math.PI/2,u=Math.acos(_t.dot(t)),c=l+u-e;if(c>=l)we.copy(ze,me);else{ze.scaleAndAdd(_t,s/Math.tan(Math.PI/2-c));var f=me.x!==se.x?(ze.x-se.x)/(me.x-se.x):(ze.y-se.y)/(me.y-se.y);if(isNaN(f))return;f<0?we.copy(ze,se):f>1&&we.copy(ze,me)}ze.toArray(r[1])}}}}function Xf(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 Rw(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=lc(a[0],a[1]),i=lc(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=Oo([],a[1],a[0],o/n),l=Oo([],a[1],a[2],o/i),u=Oo([],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 by(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<Vi.length;l++){var u=Vi[l],c=t[u],f=u==="normal";if(c){var v=c.get("show"),h=f?s:ce(n.states[u]&&n.states[u].ignore,s);if(h||!ce(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)&&Xf(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Xf(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=Rw}}function wy(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<at.length;a++){var n=at[a];e[n]=r.getModel([n,t])}return e}function Ty(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 ki(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 Ay(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 Ew(r,t,e,a){return Ay(r,"x","width",t,e,a)}function Cy(r,t,e,a){return Ay(r,"y","height",t,e,a)}function My(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ye(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 ki(d.localRect,d.transform)),f||(f=new ki(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 kw(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Ow(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:kw(a&&a.shape.points)}}var Kf=["align","verticalAlign","width","height","fontSize"],Ne=new aa,cs=ae(),Bw=ae();function oi(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var si=["x","y","rotation"],Nw=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();ye.applyTransform(c,c,u),u?Ne.setLocalTransform(u):(Ne.x=Ne.y=Ne.rotation=Ne.originX=Ne.originY=0,Ne.scaleX=Ne.scaleY=1),Ne.rotation=qa(Ne.rotation);var f=n.__hostTarget,v;if(f){v=f.getBoundingRect().plain();var h=f.getComputedTransform();ye.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:Ne.x,y:Ne.y,scaleX:Ne.scaleX,scaleY:Ne.scaleY,rotation:Ne.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)||De(n).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=J(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(){Zf(_,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(Ow(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=cs(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<Kf.length;p++){var g=Kf[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=Ty(this._labelList),i=ve(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ve(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Ew(i,0,e),Cy(o,0,a);var s=ve(n,function(l){return l.layoutOption.hideOverlap});My(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=cs(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=J(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");by(t,wy(s),l),Zf(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=cs(a),o=i.oldLayout,s=J(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)),pe(a,u,e,l)}else if(a.attr(u),!ba(a).valueAnimation){var f=ce(a.style.opacity,1);a.style.opacity=0,Le(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};oi(h,u,si),oi(h,a.states.select,si)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};oi(d,u,si),oi(d,a.states.emphasis,si)}dx(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=Bw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),pe(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Le(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Vw=Nw;var fs=ae();function AR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=fs(e).labelManager;n||(n=fs(e).labelManager=new Vw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=fs(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var zw=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 Ao(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 Gw=zw;function Lo(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 Dy(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 Fw=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=Ww,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):pe(v,h,s,a),gn(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,Le(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=wo(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):Lo(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),lr(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=J(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&pn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();pn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return yu(e.getItemVisual(a,"symbolSize"))},t}(Q);function Ww(r,t){this.parent.drift(r,t)}const Pu=Fw;function hs(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 qf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function jf(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 Hw=function(){function r(t){this.group=new Q,this._SymbolCtor=t||Pu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qf(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=jf(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(hs(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(!hs(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):pe(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=jf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=qf(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(hs(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){fo(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 Iy=Hw;function Ly(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Uw(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 Vr(t,f[0])&&(v=!0,f[0]=h),Vr(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 Uw(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:de(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Py(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 $w(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 Yw(r,t,e,a,n,i,o,s){for(var l=$w(r,t),u=[],c=[],f=[],v=[],h=[],d=[],p=[],g=Ly(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=Py(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(it,be){return p[it]-p[be]});for(var V=u.length,X=kt(V),B=kt(V),W=kt(V),Y=kt(V),re=[],_=0;_<d.length;_++){var ue=d[_],fe=_*2,Ce=ue*2;X[fe]=u[Ce],X[fe+1]=u[Ce+1],B[fe]=c[Ce],B[fe+1]=c[Ce+1],W[fe]=f[Ce],W[fe+1]=f[Ce+1],Y[fe]=v[Ce],Y[fe+1]=v[Ce+1],re[_]=h[ue]}return{current:X,next:B,stackedOnCurrent:W,stackedOnNext:Y,status:re}}var Jt=Math.min,Qt=Math.max;function Er(r,t){return isNaN(r)||isNaN(t)}function dl(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(Er(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(;Er(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||Er(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,W=void 0;if(s==="x"){B=Math.abs(R),W=Math.abs(E);var Y=D>0?1:-1;h=y-Y*B*o,d=m,I=y+Y*W*o,L=m}else if(s==="y"){B=Math.abs(V),W=Math.abs(X);var re=M>0?1:-1;h=y,d=m-re*B*o,I=y,L=m+re*W*o}else B=Math.sqrt(R*R+V*V),W=Math.sqrt(E*E+X*X),C=W/(W+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,Qt(b,y)),L=Jt(L,Qt(T,m)),I=Qt(I,Jt(b,y)),L=Qt(L,Jt(T,m)),D=I-y,M=L-m,h=y-D*B/W,d=m-M*B/W,h=Jt(h,Qt(u,y)),d=Jt(d,Qt(c,m)),h=Qt(h,Jt(u,y)),d=Qt(d,Jt(c,m)),D=y-h,M=m-d,I=y+D*W/B,L=m+M*W/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 Ry=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),Zw=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 Ry},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Er(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Er(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=dl(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=Nd.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?uc(s,h,p,y,e,c):uc(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?cc(l,d,g,m,T):cc(s,h,p,y,T);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(Ie),Xw=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ry),Kw=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 Xw},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&&Er(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Er(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=dl(e,n,o,s,s,1,a.smooth,l,a.connectNulls);dl(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Ie);function Ey(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;Le(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return f}function ky(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,Le(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function qw(r,t,e,a,n){if(r){if(r.type==="polar")return ky(r,t,e);if(r.type==="cartesian2d")return Ey(r,t,e,a,n)}else return null;return null}function Ru(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 Qf(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 eh(r,t){var e=Qf(r),a=e[0],n=e[1],i=Qf(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 th(r){return de(r)?r:r?.5:0}function jw(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=kt(a*2),i=0;i<a;i++){var o=Py(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function er(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 Jw(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=N0(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 Qw(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=Jw(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 Gl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function eT(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&tT(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 tT(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(Pu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function rT(r,t){return isNaN(r)||isNaN(t)}function aT(r){for(var t=r.length/2;t>0&&rT(r[t*2-2],r[t*2-1]);t--);return t-1}function rh(r,t){return[r[t*2],r[t*2+1]]}function nT(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 Oy(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<at.length;t++)if(r.get([at[t],"endLabel","show"]))return!0;return!1}function vs(r,t,e,a){if(Ru(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=Oy(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Ey(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 ky(t,e,a)}function iT(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 oT=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 Iy;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=!a.ssr&&e.isAnimationEnabled(),_=!c.isEmpty(),x=c.get("origin"),w=Ly(o,l,x),b=_&&jw(o,l,w),T=e.get("showSymbol"),A=e.get("connectNulls"),C=T&&!v&&eT(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=Qw(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=er(f,o,M,A),b&&(b=er(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,Nr(L)),y.setClipPath(vs(this,o,!0,e));else{_&&!g?g=this._newPolygon(f,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Nr(L));var R=y.getClipPath();if(R){var E=vs(this,o,!1,e);Le(R,{shape:E.shape},e)}else y.setClipPath(vs(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=er(f,o,M,A),b&&(b=er(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"),W=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}J(p).seriesIndex=e.seriesIndex,lr(p,X,B,W);var re=th(e.get("smooth")),ue=e.get("smoothMonotone");if(p.setShape({smooth:re,smoothMonotone:ue,connectNulls:A}),g){var fe=l.getCalculationInfo("stackedOnSeries"),Ce=0;g.useStyle(K(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),fe&&(Ce=th(fe.get("smooth"))),g.setShape({smooth:re,stackedOnSmooth:Ce,smoothMonotone:ue,connectNulls:A}),va(g,e,"areaStyle"),J(g).seriesIndex=e.seriesIndex,lr(g,X,B,W)}var it=function(be){i._changePolyState(be)};l.eachItemGraphicEl(function(be){be&&(be.onHoverStateChange=it)}),this._polyline.onHoverStateChange=it,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){J(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=Br(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")||0,h=e.get("z")||0;u=new Pu(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 We.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Br(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 We.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Zs(this._polyline,e),a&&Zs(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Zw({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 Kw({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(Oy(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 ne({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=aT(l);c>=0&&(Wt(s,Ht(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,h){return h!=null?Dy(o,h):Lo(o,f)},enableTextSetter:!0},iT(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=nT(f,x,T),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!h){var I=rh(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=rh(f,E);o&&(M=v.getRawValue(E)),u.attr({x:I[0]+w,y:I[1]+b})}if(o){var V=ba(u);typeof V.setLabelText=="function"&&V.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=Yw(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=er(v.current,n,o,l),d=er(v.stackedOnCurrent,n,o,l),p=er(v.next,n,o,l),g=er(v.stackedOnNext,n,o,l)),eh(h,p)>3e3||c&&eh(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(),pe(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:d}),c.stopAnimation(),pe(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}(We);const sT=oT;function Eu(r,t){return{seriesType:r,plan:du(),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");Vr(a,s[0])&&(s[0]=u),Vr(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 lT={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]}},uT=function(r){return Math.round(r.length/2)};function By(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=lT[i]:Z(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,uT))}}}}}function CR(r){r.registerChartView(sT),r.registerSeriesModel(Gw),r.registerLayout(Eu("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,By("line"))}var Ny=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 Ao(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)S(i.getAxes(),function(v,h){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=o[h],g=a[h]==="x1"||a[h]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,x=0;x<d.length;x++){var w=d[x].coord,b=x===d.length-1?d[x-1].tickValue+_:d[x].tickValue;if(b===p){m=w;break}else if(b<p)y=w;else if(y!=null&&b>p){m=(w+y)/2;break}x===1&&(_=b-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[h]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(dt);dt.registerClass(Ny);const Ji=Ny;var cT=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 Ao(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=vr(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 fT=cT;var hT=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}(),vT=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 hT},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}(Ie);const ah=vT;function dT(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return $s(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)+li(p,l+m,!1),b=f+d*x(p)+ui(p,l+m,!1),T="right",A="middle";break;case"insideStartAngle":w=c+d*_(p)+li(p,-l+m,!1),b=f+d*x(p)+ui(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)+li(g,l+m,!0),b=f+d*x(g)+ui(g,l+m,!0),T="left",A="middle";break;case"insideEndAngle":w=c+d*_(g)+li(g,-l+m,!0),b=f+d*x(g)+ui(g,-l+m,!0),T="right",A="middle";break;default:return $s(a,n,i)}return a=a||{},a.x=w,a.y=b,a.align=T,a.verticalAlign=A,a}}function pT(r,t,e,a){if(de(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 li(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ui(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Qa(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 ds=Math.max,ps=Math.min;function gT(r,t){var e=r.getArea&&r.getArea();if(Ru(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 yT=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){fo(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=mT(e,u);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,p=gT(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=ci[u.type](s,M),L=AT(u,f,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=ci[u.type](s,M,I);if(y&&A(M),!(!s.hasValue(M)||!lh[u.type](L))){var R=!1;d&&(R=nh[u.type](p,L));var E=ih[u.type](e,s,M,L,f,v,c.model,!1,g);h&&(E.forceLabelAnimation=!0),uh(E,s,M,I,L,e,f,u.type==="polar"),b?E.attr({shape:L}):h?oh(h,v,E,L,M,f,!1,!1):Le(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=ci[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",_):E.setShape("cornerRadius",_),x[M]=E);var V=ci[u.type](s,M),X=zy(f,V,u);pe(E,{shape:X},v,M)}var B=l.getItemGraphicEl(I);if(!s.hasValue(M)||!lh[u.type](R)){o.remove(B);return}var W=!1;if(d&&(W=nh[u.type](p,R),W&&o.remove(B)),B?gn(B):B=ih[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 uh(B,s,M,L,R,e,f,u.type==="polar");b?B.attr({shape:R}):h?oh(h,v,B,R,M,f,!0,T):pe(B,{shape:R},e,M,null),s.setItemGraphicEl(M,B),B.ignore=W,o.add(B)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&zi(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(),fh(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),fh(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){zi(i,e,J(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}(We),nh={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=ds(t.x,r.x),s=ps(t.x+t.width,n),l=ds(t.y,r.y),u=ps(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=ps(t.r,r.r),i=ds(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}},ih={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?ah:Gt,c=new u({shape:a,z2:1});c.name="item";var f=Vy(n);if(c.calculateTextPosition=dT(f,{isRoundCap:u===ah}),i){var v=c.shape,h=n?"r":"endAngle",d={};v[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?pe:Le)(c,{shape:d},i)}return c}};function mT(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 oh(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?pe:Le)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?pe:Le)(e,{shape:u},c,n)}function sh(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var _T=["x","y","width","height"],xT=["cx","cy","r","startAngle","endAngle"],lh={cartesian2d:function(r){return!sh(r,_T)},polar:function(r){return!sh(r,xT)}},ci={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?bT(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 ST(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Vy(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 uh(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=Qa(a.getModel("itemStyle"),c,!0);O(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Ht(a);Wt(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Lo(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,pT(r,g==="outside"?h:g,Vy(o),a.get(["label","rotate"]))}vx(p,d,i.getRawValue(e),function(m){return Dy(t,m)});var y=a.getModel(["emphasis"]);lr(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),va(r,a),ST(n)&&(r.style.fill="none",r.style.stroke="none",S(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function bT(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 wT=function(){function r(){}return r}(),ch=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 wT},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}(Ie);function fh(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 ch({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 ch({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(n.getVisual("style")),J(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",hh),f.on("mousemove",hh)),e&&e.push(f)}var hh=gu(function(r){var t=this,e=TT(t,r.offsetX,r.offsetY);J(t).dataIndex=e>=0?e:null},30,!1);function TT(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 zy(r,t,e){if(Ru(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 AT(r,t,e){var a=r.type==="polar"?Gt:oe;return new a({shape:zy(t,e,r),silent:!0,z2:0})}const CT=yT;function MR(r){r.registerChartView(CT),r.registerSeriesModel(fT),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ee(ty,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ry("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,By("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 fi=Math.PI*2,vh=Math.PI/180;function Gy(r,t){return Ue(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Fy(r,t){var e=Gy(r,t),a=r.get("center"),n=r.get("radius");k(n)||(n=[0,n]);var i=$(e.width,t.getWidth()),o=$(e.height,t.getHeight()),s=Math.min(i,o),l=$(n[0],s/2),u=$(n[1],s/2),c,f,v=r.coordinateSystem;if(v){var h=v.dataToPoint(a);c=h[0]||0,f=h[1]||0}else k(a)||(a=[a,a]),c=$(a[0],i)+e.x,f=$(a[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function MT(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Gy(a,e),s=Fy(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,v=-a.get("startAngle")*vh,h=a.get("minAngle")*vh,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=fi,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=fi/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<fi&&d)if(w<=.001){var C=fi/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 Wy(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 DT=Math.PI/180;function dh(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;Hy(_,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}Cy(r,l,l+o)&&f(r)}function IT(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;gs(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(!gs(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,Hy(d,g)}}dh(u,t,e,a,1,n,i,o,s,f),dh(l,t,e,a,-1,n,i,o,s,c);for(var v=0;v<r.length;v++){var d=r[v];if(!gs(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 Hy(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 gs(r){return r.position==="center"}function LT(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*DT,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"),W=B.get("length");W=$(W,u);var Y=B.get("length2");if(Y=$(Y,u),Math.abs(A.endAngle-A.startAngle)<o){S(C.states,h),C.ignore=!0,D&&(S(D.states,h),D.ignore=!0);return}if(!!d(C)){var re=(A.startAngle+A.endAngle)/2,ue=Math.cos(re),fe=Math.sin(re),Ce,it,be,$t;a=A.cx,n=A.cy;var Yt=L==="inside"||L==="inner";if(L==="center")Ce=A.cx,it=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*fe:A.r*fe)+n;if(Ce=Ma+ue*3,it=Da+fe*3,!Yt){var Hn=Ma+ue*(W+l-A.r),Un=Da+fe*(W+l-A.r),$n=Hn+(ue<0?-1:1)*Y,dr=Un;E==="edge"?Ce=ue<0?c+V:c+u-V:Ce=$n+(ue<0?-R:R),it=dr,be=[[Ma,Da],[Hn,Un],[$n,dr]]}$t=Yt?"center":E==="edge"?ue>0?"right":"left":ue>0?"left":"right"}var Zt=Math.PI,It=0,Ia=I.get("rotate");if(de(Ia))It=Ia*(Zt/180);else if(L==="center")It=0;else if(Ia==="radial"||Ia===!0){var y0=ue<0?-re+Zt:-re;It=y0}else if(Ia==="tangential"&&L!=="outside"&&L!=="outer"){var Ur=Math.atan2(ue,fe);Ur<0&&(Ur=Zt*2+Ur);var m0=fe>0;m0&&(Ur=Zt+Ur),It=Ur-Zt}if(i=!!It,C.x=Ce,C.y=it,C.rotation=It,C.setStyle({verticalAlign:"middle"}),Yt){C.setStyle({align:$t});var Eo=C.states.select;Eo&&(Eo.x+=C.x,Eo.y+=C.y)}else{var La=C.getBoundingRect().clone();La.applyTransform(C.getComputedTransform());var nc=(C.style.margin||0)+2.1;La.y-=nc/2,La.height+=nc,e.push({label:C,labelLine:D,position:L,len:W,len2:Y,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new we(ue,fe),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")&&IT(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):(Sy(w,g.minTurnAngle),Pw(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new we(w[0][0],w[0][1])})}}}var PT=function(r){P(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new ne;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(Qa(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?(Le(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,Le(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Le(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,pe(o,{shape:{endAngle:c.endAngle}},s,a))}else gn(o),pe(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)},Qa(u.getModel("itemStyle"),c)),O(o.ensureState("select"),{x:p,y:g,shape:Qa(l.getModel(["select","itemStyle"]),c)}),O(o.ensureState("blur"),{shape:Qa(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}),lr(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)),by(this,wy(o),{stroke:u,opacity:V0(s.get(["lineStyle","opacity"]),c,1)})}},t}(Gt),RT=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:Fy(e,n)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new PT(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);zi(d,e,h)}).execute(),LT(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}(We);const ET=RT;function ku(r,t,e){t=k(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Zg(a,t).dimensions,i=new wu(n,r);return i.initData(a,e),i}var kT=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 Uy=kT;var OT=ae(),BT=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 Uy(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 ku(this,{coordDimensions:["value"],encodeDefaulter:ee(Gp,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=OT(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=n_(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ni(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 NT=BT;function VT(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!(de(o)&&!isNaN(o)&&o<0)})}}}function DR(r){r.registerChartView(ET),r.registerSeriesModel(NT),bg("pie",r.registerAction),r.registerLayout(ee(MT,"pie")),r.registerProcessor(Wy("pie")),r.registerProcessor(VT("pie"))}var zT=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 Ao(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 GT=zT;var $y=4,FT=function(){function r(){}return r}(),WT=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 FT},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]<$y,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 ye(l-o/2,u-s/2,c-l+o,f-u+s)}return e},t}(Ie),HT=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 WT({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=Oe(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<$y;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=J(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 UT=HT;var $T=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=Eu("").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 UT:new Iy,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}(We);const YT=$T;var ZT=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 XT=ZT;var pl=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(pl,Io);var Yy={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)"]}}},KT=q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Yy),Ou=q({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}}},Yy),qT=q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ou),jT=K({logBase:10},Ou);const Zy={category:KT,value:Ou,time:qT,log:jT};var JT={value:1,category:1,time:1,log:1};function Mn(r,t,e,a){S(JT,function(n,i){var o=q(q({},Zy[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=xn(this),h=v?Ta(c):{},d=f.getTheme();q(c,d.get(i+"Axis")),q(c,this.getDefaultOption()),c.type=ph(c),v&&ur(c,h,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=hl.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",ph)}function ph(r){return r.type||(r.data?"category":"value")}var QT=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(),ve(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 eA=QT;var gl=["x","y"];function gh(r){return r.type==="interval"||r.type==="time"}var tA=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=gl,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!gh(e)||!gh(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=En([],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 ye(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 tt(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 tt(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 ye(n,i,o,s)},t}(eA),rA=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 aA=rA;function yl(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),or(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 yh(r){return r.get("coordinateSystem")==="cartesian2d"}function mh(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 ys=Math.log;function Xy(r,t,e){var a=cr.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=uy(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var v=ys(r.base);u=[ys(u[0])/v,ys(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=ss(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=ss(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=ss(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 nA=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gl,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=De(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;vl(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(h):(An(p,d),vl(p)&&(s=h))}c.length&&(s||(s=c.pop(),An(s.scale,s.model)),S(c,function(g){Xy(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};S(a.x,function(o){_h(a,"y",o,i)}),S(a.y,function(o){_h(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=Ue(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=sw(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]),iA(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 tA(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(!!ms(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 aA(c,Du(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(yh(n)){var i=mh(n),o=i.xAxisModel,s=i.yAxisModel;if(!ms(o,e)||!ms(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(Ki(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(!!yh(n)){var i=mh(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=gl,r}();function ms(r,t){return r.getCoordSysModel()===t}function _h(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)xh(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&xh(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function xh(r){return r&&r.type!=="category"&&r.type!=="time"&&ow(r)}function iA(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 oA=nA;var ar=Math.PI,kr=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!!Sh[t]},r.prototype.add=function(t){Sh[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=Wd(e-t),i,o;return Oi(n)?(o=a>0?"top":"bottom",i="center"):Oi(n-ar)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<ar?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}(),Sh={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(tt(s,s,o),tt(l,l,o));var c=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ze({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});yn(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var v=t.get(["axisLine","symbol"]);if(v!=null){var h=t.get(["axisLine","symbolSize"]);G(v)&&(v=[v,v]),(G(h)||de(h))&&(h=[h,h]);var d=wo(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];S([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=Oe(v[m],-p/2,-g/2,p,g,c.stroke,!0),x=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+x*Math.cos(r.rotation),y:w[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,a){var n=uA(e,a,t,r),i=fA(e,a,t,r);if(lA(t,i,n),cA(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Ty(N(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));My(o)}},axisName:function(r,t,e,a){var n=or(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,wh(i)?r.labelOffset+o*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*ar/180);var d;wh(i)?v=kr.innerTextLayout(r.rotation,h!=null?h:r.rotation,o):(v=sA(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=or(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ne({x:f[0],y:f[1],rotation:v.rotation,silent:kr.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=kr.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,J(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function sA(r,t,e,a){var n=Wd(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Oi(n-ar/2)?(o=l?"bottom":"top",i="center"):Oi(n-ar*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<ar*1.5&&n>ar/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function lA(r,t,e){if(!cy(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?(qe(i),qe(u)):bh(i,o)&&(a?(qe(o),qe(c)):(qe(i),qe(u))),n===!1?(qe(s),qe(f)):bh(l,s)&&(n?(qe(l),qe(v)):(qe(s),qe(f)))}}function qe(r){r&&(r.ignore=!0)}function bh(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=Vl([]);return On(n,n,-r.rotation),e.applyTransform(Ei([],n,r.getLocalTransform())),a.applyTransform(Ei([],n,t.getLocalTransform())),e.intersect(a)}}function wh(r){return r==="middle"||r==="center"}function Ky(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&&(tt(o,o,t),tt(s,s,t));var c=new Ze({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});yn(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function uA(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=Ky(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 cA(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=Ky(o[c],t.transform,l,u,"minorticks_"+c),v=0;v<f.length;v++)r.add(f[v])}}function fA(r,t,e,a){var n=e.axis,i=or(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(or(a.labelRotate,o.get("rotate"))||0)*ar/180,c=kr.innerTextLayout(a.rotation,u,a.labelDirection),f=e.getCategories&&e.getCategories(!0),v=[],h=kr.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 ne({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=kr.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=_,C.tickIndex=g,n.type==="category"&&(C.dataIndex=y),J(A).eventData=C}t.add(A),A.updateTransform(),v.push(A),r.add(A),A.decomposeTransform()}),v}}const fr=kr;function hA(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return vA(e,r,t),e.seriesInvolved&&pA(e,r),e}function vA(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=Dn(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&&!ml(_))){y==null&&(y=_.get("triggerTooltip")),_=g?dA(m,f,n,t,g,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),T=Dn(m.model),A=y||w||m.type==="category",C=r.axesInfo[T]={key:T,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:A,snap:w,useHandle:ml(_),seriesModels:[],linkGroup:null};u[T]=C,r.seriesInvolved=r.seriesInvolved||A;var D=gA(i,m);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[T]=C,M.mapper=i[D].mapper,C.linkGroup=M}}}})}function dA(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 pA(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[Dn(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 gA(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(_s(i[a+"AxisId"],e.id)||_s(i[a+"AxisIndex"],e.componentIndex)||_s(i[a+"AxisName"],e.name))return n}}function _s(r,t){return r==="all"||k(r)&&ie(r,t)>=0||r===t}function yA(r){var t=Bu(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=ml(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 Bu(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Dn(r)]}function mA(r){var t=Bu(r);return t&&t.axisPointerModel}function ml(r){return!!r.get(["handle","show"])}function Dn(r){return r.type+"||"+r.id}var Th={},_A=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&&yA(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=mA(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){Th[e]=a},t.getAxisPointerClass=function(e){return e&&Th[e]},t.type="axis",t}(Ae);const Wn=_A;var _l=ae();function xA(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=_l(r).splitAreaColors,v=F(),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}_l(r).splitAreaColors=v}}}function SA(r){_l(r).splitAreaColors=null}var bA=["axisLine","axisTickLabel","axisName"],wA=["splitArea","splitLine","minorSplitLine"],qy=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=yl(s,e),u=new fr(e,O({handleAutoShown:function(f){for(var v=s.coordinateSystem.getCartesians(),h=0;h<v.length;h++)if(vl(v[h].getOtherAxis(e.axis).scale))return!0;return!1}},l));S(bA,u.add,u),this._axisGroup.add(u.getGroup()),S(wA,function(f){e.get([f,"show"])&&TA[f](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||co(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){SA(this)},t.type="cartesianAxis",t}(Wn),TA={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,_=new Ze({anid:m!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:K({stroke:s[y]},d),silent:!0});yn(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(!!u.length)for(var c=[],f=[],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);var g=new Ze({anid:"minor_line_"+u[h][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:v,silent:!0});yn(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,a){xA(r,t,e,a)}},jy=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}(qy),AA=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=jy.type,e}return t.type="yAxis",t}(qy),CA=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),Ah={offset:0};function Jy(r){r.registerComponentView(CA),r.registerComponentModel(XT),r.registerCoordinateSystem("cartesian2d",oA),Mn(r,"x",pl,Ah),Mn(r,"y",pl,Ah),r.registerComponentView(jy),r.registerComponentView(AA),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function IR(r){Be(Jy),r.registerSeriesModel(GT),r.registerChartView(YT),r.registerLayout(Eu("scatter"))}function MA(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]=Ch(c)?c:Mh(n)})}),e.each(function(o){var s=z0(a[o],function(l){return Ch(l)})||Mh(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function Ch(r){return!isNaN(r[0])&&!isNaN(r[1])}function Mh(r){return[r.cx,r.cy]}function DA(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 IA=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=yu(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]),ho[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 hr,p=new At,g={shape:{points:h}};d.shape.points=f(h),p.shape.points=f(h),Le(d,g,e,v),Le(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),gn(g),gn(p),pe(p,m,e),pe(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})}),lr(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}(We);const LA=IA;var PA=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 Uy(z(this.getData,this),z(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return ku(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=cg(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 RA=PA;var Wa=Zy.value;function hi(r,t){return K({show:t},r)}var EA=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=q(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,Io.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:q({lineStyle:{color:"#bbb"}},Wa.axisLine),axisLabel:hi(Wa.axisLabel,!1),axisTick:hi(Wa.axisTick,!1),splitLine:hi(Wa.splitLine,!0),splitArea:hi(Wa.splitArea,!0),indicator:[]},t}(te);const kA=EA;var OA=["axisLine","axisTickLabel","axisName"],BA=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 fr(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(OA,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 ao({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 hr({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 NA=BA;var VA=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 zA=VA;var GA=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 zA(o,new cr);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)||de(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 cr;o.setExtent(0,i),o.setInterval(1),S(a,function(s,l){Xy(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 FA=GA;function WA(r){r.registerCoordinateSystem("radar",FA),r.registerComponentModel(kA),r.registerComponentView(NA),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 LR(r){Be(WA),r.registerChartView(LA),r.registerSeriesModel(RA),r.registerLayout(MA),r.registerProcessor(Wy("radar")),r.registerPreprocessor(DA)}var Dh="\0_ec_interaction_mutex";function HA(r,t,e){var a=Nu(r);a[t]=e}function UA(r,t,e){var a=Nu(r),n=a[t];n===e&&(a[t]=null)}function Ih(r,t){return!!Nu(r)[t]}function Nu(r){return r[Dh]||(r[Dh]={})}Mt({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},bt);var $A=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(!fc(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Ii("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Ih(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&&sr(e.event),Qy(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){fc(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Ii("zoomOnMouseWheel",e,this._opt),n=Ii("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;xs(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);xs(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Ih(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;xs(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ma);function xs(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(sr(a.event),Qy(r,t,e,a,n))}function Qy(r,t,e,a,n){n.isAvailableBehavior=z(Ii,null,e,a),r.trigger(t,n)}function Ii(r,t,e){var a=e[r];return!r||a&&(!G(a)||t.event[a+"Key"])}const em=$A;function YA(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function ZA(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 XA={axisPointer:1,tooltip:1,brush:1};function tm(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!XA.hasOwnProperty(a.mainType)&&n&&n.model!==e}var KA=F(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qA=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=F(),this._freedGraphics=[],this._mapName=t,this._parsedXML=G0(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=JA(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&&F0(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,et(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 ye(u,c,f,v)}if(s){var d=W0(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){KA.get(g.svgNodeTagLower)!=null&&(p.push(g),jA(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 jA(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function JA(r){var t=[],e=F();return S(r,function(a){if(a.namedFrom==null){var n=new vw(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var xl=[126,25],Lh="\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 jr=0;jr<br[Sr].length;jr++)br[Sr][jr][0]/=10.5,br[Sr][jr][1]/=-10.5/.75,br[Sr][jr][0]+=xl[0],br[Sr][jr][1]+=xl[1];function QA(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Lh)return;t.push(new hy(Lh,N(br,function(a){return{type:"polygon",exterior:a}}),xl))}}var eC={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function tC(r,t){if(r==="china"){var e=eC[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 rC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function aC(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:rC[0]})}var nC="name",iC=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=F(),this._mapName=t,this._specialAreas=a,this._geoJSON=sC(e)}return r.prototype.load=function(t,e){e=e||nC;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:oC(n)})}var i=F(),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 ye(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?pw(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return QA(e,n),S(n,function(i){var o=i.name;tC(e,i),aC(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 oC(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 sC(r){return G(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ha=F();const Vt={registerMap:function(r,t,e){if(t.svg){var a=new qA(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 iC(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 Vu=["rect","circle","line","ellipse","polygon","polyline","path"],lC=F(Vu),uC=F(Vu.concat(["g"])),cC=F(Vu.concat(["g"])),rm=ae();function vi(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Ph(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var fC=function(){function r(t){var e=new Q;this.uid=wa("ec_map_draw"),this._controller=new em(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()):pe(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=F(),a=F(),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=Nh(A,u)),S(A,function(D){_.push(new hr(v(D)))})}else{var C=T.points;u&&(C=Nh(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 Ed({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),Rh(t,C,y,m),Eh(t,C,d,m,o,y,w),A&&(Ph(C),S(C.states,Ph))}}b(_),b(x,!0)}),e.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;kh(t,h,d,y,o,g),Oh(t,h,d,y,o),Bh(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=F(),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(lC.get(c)!=null&&f instanceof fn&&Rh(t,f,v,h),f instanceof fn&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(cC.get(c)!=null&&Eh(t,f,s,h,l,v,null),kh(t,f,s,h,l,v),Oh(t,f,s,h,l),uC.get(c)!=null)){var d=Bh(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){Xl(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,YA(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,ZA(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])&&!tm(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=rm(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 Rh(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=vi(n),u=vi(i),c=vi(s),f=vi(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=Yi(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,Xl(t)}function Eh(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&&(rm(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 kh(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):J(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Oh(r,t,e,a,n){r.data||Sa({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Bh(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return lr(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&j_(t,n,e),o}function Nh(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 am=fC;var hC=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 am(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:rp+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(_){Zs(v,_)}}o.add(v)}}})},t.type="map",t}(We);const vC=hC;var dC=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=ku(this,{coordDimensions:["value"],encodeDefaulter:ee(Gp,this)}),n=F(),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 pC=dC;function gC(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 yC(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=gC(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 mC(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 Vh=tt,_C=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 aa,a._rawTransformable=new aa,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new ye(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 ye(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ye(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=tt([],i,e),n=tt([],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(),H0(this.transform||(this.transform=[]),a.transform||Bn()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],En(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new aa;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?Vh(n,e,i):U0(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?Vh([],e,a):[e[0],e[1]]},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.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(aa);function zh(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const nm=_C;var xC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},im=["lng","lat"],om=function(r){P(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=im,i.type="geo",i._nameCoordMap=F(),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=xC[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:ce(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 ye(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=Gh(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Gh(a);return i===this?i.pointToData(n):null},t}(nm);Xe(om,nm);function Gh(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Me).models[0]||{}).coordinateSystem:null}const Fh=om;function Wh(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]);Od(a,a,R),Bd(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=Ue(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 SC(r,t){S(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var bC=function(){function r(){this.dimensions=im}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 Fh(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=Wh,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 Fh(s,s,O({nameMap:$0(l)},n(o[0])));u.zoomLimit=or.apply(null,N(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=Wh,u.resize(o[0],e),S(o,function(c){c.coordinateSystem=u,SC(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=F(),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}(),wC=new bC;const sm=wC;var TC=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),Ni(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=sm.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},F()),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 AC=TC;function Hh(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function CC(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(Hh(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(Hh(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var MC=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 am(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;Dr(e.target,function(n){return(a=J(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=J(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 DC=MC;function IC(r,t,e){Vt.registerMap(r,t,e)}function LC(r){r.registerCoordinateSystem("geo",sm),r.registerComponentModel(AC),r.registerComponentView(DC),r.registerImpl("registerMap",IC),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=CC(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 PR(r){Be(LC),r.registerChartView(vC),r.registerSeriesModel(pC),r.registerLayout(mC),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,yC),bg("map",r.registerAction)}var In=S,PC=H,Qi=-1,zu=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=U(t);this.type=a,this.mappingMethod=e,this._normalizeData=kC[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Ss(n),RC(n)):e==="category"?n.categories?EC(n):Ss(n,!0):(et(e!=="linear"||n.dataExtent),Ss(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 De(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&&In(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(PC(t)){var e=[];In(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(pi(f[1],t,c[1]))return o}else if(c[1]===1/0){if(pi(f[0],c[0],t))return o}else if(pi(f[0],c[0],t)&&pi(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)),en.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Bo(e,t.parsedVisual,n),i?n:Si(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Si(Bo(t,this.option.parsedVisual),"rgba")},category:en,piecewise:function(t,e){var a=bl.call(this,e);return a==null&&(a=Si(Bo(t,this.option.parsedVisual),"rgba")),a},fixed:wr}},colorHue:di(function(t,e){return No(t,e)}),colorSaturation:di(function(t,e){return No(t,null,e)}),colorLightness:di(function(t,e){return No(t,null,null,e)}),colorAlpha:di(function(t,e){return Y0(t,e)}),decal:{applyVisual:Ua("decal"),_normalizedToVisual:{linear:null,category:en,piecewise:null,fixed:null}},opacity:{applyVisual:Ua("opacity"),_normalizedToVisual:Sl([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:Uh,category:en,piecewise:function(t,e){var a=bl.call(this,e);return a==null&&(a=Uh.call(this,t)),a},fixed:wr}},symbolSize:{applyVisual:Ua("symbolSize"),_normalizedToVisual:Sl([0,1])}},r}();function RC(r){var t=r.pieceList;r.hasSpecialVisual=!1,S(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function EC(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(In(t,function(o,s){e[o]=s}),!k(a)){var n=[];H(a)?In(a,function(o,s){var l=e[s];n[l!=null?l:Qi]=o}):n[Qi]=a,a=lm(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function Ss(r,t){var e=r.visual,a=[];H(e)?In(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]),lm(r,a)}function di(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Sl([0,1])}}function Uh(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 en(r){var t=this.option.visual;return t[this.option.loop&&r!==Qi?r%t.length:r]}function wr(){return this.option.visual[0]}function Sl(r){return{linear:function(t){return he(t,r,this.option.visual,!0)},category:en,piecewise:function(t,e){var a=bl.call(this,e);return a==null&&(a=he(t,r,this.option.visual,!0)),a},fixed:wr}}function bl(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=zu.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function lm(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=N(t,function(e){var a=Vd(e);return a||[0,0,0,1]})),t}var kC={linear:function(r){return he(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=zu.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?Qi:t},fixed:bt};function pi(r,t,e){return r?t<=e:t<e}const He=zu;function OC(r){BC(r),NC(r)}function BC(r){if(!r.parallel){var t=!1;S(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function NC(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&&q(e,n.parallelAxisDefault,!1)}})}var VC=5,zC=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(GC,function(i,o){n.getZr().on(o,this._handlers[o]=z(i,this))},this)),Gn(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){bn(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),GC={mousedown:function(r){bs(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(bs(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>VC)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||!bs(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 bs(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const FC=zC;var WC=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&&q(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=ve(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 HC=WC;var UC=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 $C=UC;function Hr(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=ws(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=ws(t,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(t[1-a]=t[a]+l.sign*n),f=ws(t,a),i!=null&&f.span>i&&(t[1-a]=t[a]+f.sign*i),t}function ws(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 Ts=S,um=Math.min,cm=Math.max,$h=Math.floor,YC=Math.ceil,Yh=xe,ZC=Math.PI,XC=function(){function r(t,e,a){this.type="parallel",this._axesMap=F(),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;Ts(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new $C(o,Du(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();Ts(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),An(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Ue(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=gi(t.get("axisExpandWidth"),l),f=gi(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=gi(h[1]-h[0],l),h[1]=h[0]+d;else{d=gi(c*(f-1),l);var p=t.get("axisExpandCenter")||$h(u/2);h=[c*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var y=[$h(Yh(h[0]/c,1))+1,YC(Yh(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])}),Ts(a,function(o,s){var l=(n.axisExpandable?qC:KC)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:ZC/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],v=c[i],h=Bn();On(h,h,v),hn(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?Hr(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[cm(0,d-h/2)],n[1]=um(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function gi(r,t){return um(cm(r,t[0]),t[1])}function KC(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function qC(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 jC=XC;function JC(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new jC(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 QC={create:JC};const eM=QC;var fm=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(fm,Io);const Zh=fm;var zr=!0,Ln=Math.min,pa=Math.max,tM=Math.pow,rM=1e4,aM=6,nM=6,Xh="globalPan",iM={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},oM={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Kh={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},sM=0,lM=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_"+sM++,S(pM,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||HA(a,Xh,this._uid),S(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=q(U(Kh),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;UA(e,Xh,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 q(U(Kh),v,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Tn(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]):vm(o,hm(o,d));Gu(o,p)}}function f(v){n[v]!==s&&o.group.remove(n[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),wl(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ma);function hm(r,t){var e=Po[t.brushType].createCover(r,t);return e.__brushOption=t,pm(e,t),r.group.add(e),e}function vm(r,t){var e=Fu(t);return e.endCreating&&(e.endCreating(r,t),pm(t,t.__brushOption)),t}function dm(r,t){var e=t.__brushOption;Fu(t).updateCoverShape(r,t,e.range,e)}function pm(r,t){var e=t.z;e==null&&(e=rM),r.traverse(function(a){a.z=e,a.z2=e})}function Gu(r,t){Fu(t).updateCommon(r,t),dm(r,t)}function Fu(r){return Po[r.__brushOption.brushType]}function Wu(r,t,e){var a=r._panels;if(!a)return zr;var n,i=r._transform;return S(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function gm(r,t){var e=r._panels;if(!e)return zr;var a=t.__brushOption.panelId;return a!=null?e[a]:zr}function wl(r){var t=r._covers,e=t.length;return S(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function Gr(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 uM(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=tM(n*n+i*i,.5);return o>aM}function ym(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function mm(r,t,e,a){var n=new Q;return n.add(new oe({name:"main",style:Hu(e),silent:!0,draggable:!0,cursor:"move",drift:ee(qh,r,t,n,["n","s","w","e"]),ondragend:ee(Gr,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(qh,r,t,n,i),ondragend:ee(Gr,t,{isEnd:!0})}))}),n}function _m(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=pa(n,nM),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 Tl(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Hu(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?Al(r,i[0]):fM(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?oM[s]+"-resize":null})})}function Pt(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(vM(Uu(r,t,[[a,n],[a+i,n+o]])))}function Hu(r){return K({strokeNoScale:!0},r.brushStyle)}function xm(r,t,e,a){var n=[Ln(r,e),Ln(t,a)],i=[pa(r,e),pa(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function cM(r){return Pr(r.group)}function Al(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=uo(e[t],cM(r));return a[n]}function fM(r,t){var e=[Al(r,t[0]),Al(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function qh(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Sm(t,n,i);S(a,function(u){var c=iM[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(xm(s[0][0],s[1][0],s[0][1],s[1][1])),Gu(t,e),Gr(t,{isEnd:!1})}function hM(r,t,e,a){var n=t.__brushOption.range,i=Sm(r,e,a);S(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Gu(r,t),Gr(r,{isEnd:!1})}function Sm(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 Uu(r,t,e){var a=gm(r,t);return a&&a!==zr?a.clipPath(e,r._transform):U(e)}function vM(r){var t=Ln(r[0][0],r[1][0]),e=Ln(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 dM(r,t,e){if(!(!r._brushType||gM(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=Wu(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===zr||s.panelId===i.panelId)&&Po[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function Cl(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Ml(r,t,e){return r.childOfName("main").contain(t,e)}function bm(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),uM(r)||n){if(i&&!n){o.brushMode==="single"&&wl(r);var l=U(o);l.brushType=jh(l.brushType,i),l.panelId=i===zr?null:i.panelId,n=r._creatingCover=hm(r,l),r._covers.push(n)}if(n){var u=Po[jh(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(Uu(r,n,r._track)),a&&(vm(r,n),u.updateCommon(r,n)),dm(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Wu(r,t,e)&&wl(r)&&(s={isEnd:a,removeOnClick:!0});return s}function jh(r,t){return r==="auto"?t.defaultBrushType:r}var pM={mousedown:function(r){if(this._dragging)Jh(this,r);else if(!r.target||!r.target.draggable){Cl(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Wu(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(dM(this,r,a),this._dragging){Cl(r);var n=bm(this,r,a,!1);n&&Gr(this,n)}},mouseup:function(r){Jh(this,r)}};function Jh(r,t){if(r._dragging){Cl(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=bm(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Gr(r,i)}}function gM(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Po={lineX:Qh(0),lineY:Qh(1),rect:{createCover:function(r,t){function e(a){return a}return mm({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ym(r);return xm(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){_m(r,t,e,a)},updateCommon:Tl,contain:Ml},polygon:{createCover:function(r,t){var e=new Q;return e.add(new At({name:"main",style:Hu(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new hr({name:"main",draggable:!0,drift:ee(hM,r,t),ondragend:ee(Gr,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:Uu(r,t,e)})},updateCommon:Tl,contain:Ml}};function Qh(r){return{createCover:function(t,e){return mm({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=ym(t),a=Ln(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=gm(t,e);if(o!==zr&&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(),_m(t,e,l,n)},updateCommon:Tl,contain:Ml}}const wm=lM;function Tm(r){return r=$u(r),function(t){return gp(t,r)}}function Am(r,t){return r=$u(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 Cm(r,t,e){var a=$u(r);return function(n,i){return a.contain(i[0],i[1])&&!tm(n,t,e)}}function $u(r){return ye.create(r)}var yM=["axisLine","axisTickLabel","axisName"],mM=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 wm(a.getZr())).on("brush",z(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!_M(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=SM(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 fr(e,h);S(yM,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,u,e,s,c,n),co(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=ye.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:Tm(f),isTargetByCursor:Cm(f,s,i),getLinearBrushOtherExtent:Am(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(xM(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 _M(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function xM(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 SM(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const bM=mM;var wM={type:"axisAreaSelect",event:"axisAreaSelected"};function TM(r){r.registerAction(wM,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 AM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function RR(r){r.registerComponentView(FC),r.registerComponentModel(HC),r.registerCoordinateSystem("parallel",eM),r.registerPreprocessor(OC),r.registerComponentModel(Zh),r.registerComponentView(bM),Mn(r,"parallel",Zh,AM),TM(r)}var CM=["itemStyle","borderWidth"],ev=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],As=new Nt,MM=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:ev[+c],categoryDim:ev[1-+c]};return o.diff(s).add(function(h){if(!!o.hasValue(h)){var d=rv(o,h),p=tv(o,h,d,v),g=av(o,v,p);o.setItemGraphicEl(h,g),i.add(g),iv(g,v,p)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(h)){i.remove(p);return}var g=rv(o,h),y=tv(o,h,g,v),m=Rm(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?kM(p,v,y):p=av(o,v,y,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=y,i.add(p),iv(p,v,y)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&nv(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){nv(i,J(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(We);function tv(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};DM(e,i,n,a,v),IM(r,t,n,i,o,v.boundingLength,v.pxSign,c,a,v),LM(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=wo(e.get("symbolOffset"),h);return PM(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function DM(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=[Cs(s,o[0])-l,Cs(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Cs(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 Cs(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function IM(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 LM(r,t,e,a,n){var i=r.get(CM)||0;i&&(As.attr({scaleX:t[0],scaleY:t[1],rotation:e}),As.updateTransform(),i/=As.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function PM(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=or(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=Ud(a),A=T?a:ov((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?ov((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 Mm(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 Dm(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(Yu(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=Mm(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 Im(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=Mm(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 Lm(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 Pm(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)pe(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],ho[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function rv(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=RM,e.isAnimationEnabled=EM,e}function RM(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function EM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function av(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?Dm(n,t,e):Im(n,t,e),Lm(n,e,a),Pm(n,t,e,a),n.__pictorialShapeStr=Rm(r,e),n.__pictorialSymbolMeta=e,n}function kM(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;pe(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Dm(r,t,e,!0):Im(r,t,e,!0),Lm(r,e,!0),Pm(r,t,e,!0)}function nv(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Yu(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),S(i,function(o){pn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Rm(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Yu(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&&ho[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function iv(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");Yu(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:Lo(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),lr(r,c,f,i.get("disabled"))}function ov(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const OM=MM;var BM=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=vr(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 NM=BM;function ER(r){r.registerChartView(OM),r.registerSeriesModel(NM),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ee(ty,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ry("pictorialBar"))}function VM(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||j(r,"text")))}function zM(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 sv(o,r),S(o.rich,function(l){sv(l,l)}),{textConfig:n,textContent:i}}function sv(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 Em={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lv=De(Em);la(vn,function(r,t){return r[t]=1,r},{});vn.join(", ");var eo=["","style","shape","extra"],ga=ae();function Zu(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($M,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,e[i]),o}function Ms(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(ZM(r,t,f),cv("shape",t,f),cv("extra",t,f),!i&&s&&(YM(r,t,c),uv("shape",r,t,c),uv("extra",r,t,c),XM(r,t,u,c)),f.style=u,FM(r,f,o),HM(r,t),s)if(i){var v={};S(eo,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=Zu("enter",r,t,e,n);h.duration>0&&r.animateFrom(v,h)}else WM(r,t,n||0,e,c);km(r,t),u?r.dirty():r.markRedraw()}function km(r,t){for(var e=ga(r).leaveToProps,a=0;a<eo.length;a++){var n=eo[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 GM(r,t,e,a){if(r){var n=r.parent,i=ga(r).leaveToProps;if(i){var o=Zu("update",r,t,e,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function Or(r){return r==="all"}function FM(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 WM(r,t,e,a,n){if(n){var i=Zu("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function HM(r,t){j(t,"silent")&&(r.silent=t.silent),j(t,"ignore")&&(r.ignore=t.ignore),r instanceof fn&&j(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ie&&j(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var yt={},UM={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 $M(){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(UM)}}function uv(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]={}),Or(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(Or(s)||ie(s,r)>=0){!o&&(o=a[r]={});for(var h=De(i),c=0;c<h.length;c++){var f=h[c],v=i[f];KM(n[f],v)&&(o[f]=v)}}}}}function cv(r,t,e){var a=t[r];if(!!a)for(var n=e[r]={},i=De(a),o=0;o<i.length;o++){var s=i[o];n[s]=Z0(a[s])}}function YM(r,t,e){for(var a=t.transition,n=Or(a)?vn: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 ZM(r,t,e){for(var a=0;a<lv.length;a++){var n=lv[a],i=Em[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<vn.length;a++){var s=vn[a];t[s]!=null&&(e[s]=t[s])}}function XM(r,t,e,a){if(!!e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!Or(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&&(Or(s)||Or(o)||ie(s,"style")>=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=De(e),u=0;u<d.length;u++){var c=d[u];if(h[c]){var f=n[c];i[c]=f}}}}}}}function KM(r,t){return Rn(r)?r!==t:r!=null&&isFinite(r)}var Om=ae(),qM=["percent","easing","shape","style","extra"];function jM(r){r.stopAnimation("keyframe"),r.attr(Om(r))}function Dl(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(k(t)){S(t,function(s){Dl(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=Om(r);S(eo,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=De(f);if(s||(v=ve(v,function(p){return ie(qM,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=ae(),fv=U,Ds=z,JM=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(hv,e,f);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}dv(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=Bu(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 ho[i.type](fv(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Ar(t).labelEl=new ne(fv(e.label));t.add(i),vv(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}),vv(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=Vn(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){sr(u.event)},onmousedown:Ds(this._onHandleDragMove,this,0,0),drift:Ds(this._onHandleDragMove,this),ondragend:Ds(this._onHandleDragEnd,this)}),a.add(n)),dv(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,Gn(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){hv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Is(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(Is(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Is(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),bn(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 hv(r,t,e,a){Bm(Ar(e).lastProp,a)||(Ar(e).lastProp=a,t?pe(e,a,r):(e.stopAnimation(),e.attr(a)))}function Bm(r,t){if(H(r)&&H(t)){var e=!0;return S(t,function(a,n){e=e&&Bm(r[n],a)}),!!e}else return r===t}function vv(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Is(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function dv(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 Nm=JM;function Vm(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 zm(r,t,e,a,n){var i=e.get("value"),o=Gm(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=zn(s.get("padding")||0),u=s.getFont(),c=no(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),QM(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 QM(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 Gm(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:Iu(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 Fm(r,t,e){var a=Bn();return On(a,a,e.rotation),hn(a,a,e.position),vt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function eD(r,t,e,a,n,i){var o=fr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),zm(t,a,n,i,{position:Fm(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Wm(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function tD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function pv(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var rD=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=gv(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=Vm(i),h=aD[u](s,f,c);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=yl(l.model,n);eD(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=yl(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Fm(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=gv(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}(Nm);function gv(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var aD={line:function(r,t,e){var a=Wm([t,e[0]],[t,e[1]],yv(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:tD([t-a/2,e[0]],[a,n],yv(r))}}};function yv(r){return r.dim==="x"?0:1}const nD=rD;var iD=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,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(te);const oD=iD;var Ot=ae(),sD=S;function Hm(r,t,e){if(!ge.node){var a=t.getZr();Ot(a).records||(Ot(a).records={}),lD(a,t);var n=Ot(a).records[r]||(Ot(a).records[r]={});n.handler=e}}function lD(r,t){if(Ot(r).initialized)return;Ot(r).initialized=!0,e("click",ee(mv,"click")),e("mousemove",ee(mv,"mousemove")),e("globalout",cD);function e(a,n){r.on(a,function(i){var o=fD(t);sD(Ot(r).records,function(s){s&&n(s,i,o.dispatchAction)}),uD(o.pendings,t)})}}function uD(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 cD(r,t,e){r.handler("leave",null,e)}function mv(r,t,e,a){t.handler(r,e,a)}function fD(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 Il(r,t){if(!ge.node){var e=t.getZr(),a=(Ot(e).records||{})[r];a&&(Ot(e).records[r]=null)}}var hD=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";Hm("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){Il("axisPointer",a)},t.prototype.dispose=function(e,a){Il("axisPointer",a)},t.type="axisPointer",t}(Ae);const vD=hD;function Um(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Br(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 _v=ae();function dD(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){Li(n)&&(n=Um({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Li(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Li(n),v={},h={},d={list:[],map:{}},p={showPointer:ee(gD,h),showTooltip:ee(yD,d)};S(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);S(s.coordSysAxesInfo[m],function(x,w){var b=x.axis,T=SD(u,x);if(!f&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=b.pointToData(n)),A!=null&&xv(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,Sv(x),Sv(y)))),g[y.key]=T}})}),S(g,function(y,m){xv(c[m],y,p,!0,v)}),mD(h,c,v),_D(d,n,r,o),xD(c,o,e),v}}function xv(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=pD(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 pD(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 gD(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function yD(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=Dn(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 mD(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 _D(r,t,e,a){if(Li(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 xD(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=_v(a)[n]||{},o=_v(a)[n]={};S(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&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 SD(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 Sv(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 Li(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xu(r){Wn.registerAxisPointerClass("CartesianAxisPointer",nD),r.registerComponentModel(oD),r.registerComponentView(vD),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=hA(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dD)}function kR(r){Be(Jy),Be(Xu)}var bD=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=Vm(i),d=TD[v](s,l,f,c);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=wD(a,n,i,l,p);zm(e,n,i,o,g)},t}(Nm);function wD(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=Bn();On(v,v,s),hn(v,v,[a.cx,a.cy]),u=vt([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=fr.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 TD={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:Wm(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:pv(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:pv(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const AD=bD;var CD=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 MD=CD;var Ku=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(Ku,Io);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.type="angleAxis",t}(Ku),ID=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}(Ku),qu=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);qu.prototype.dataToRadius=Dt.prototype.dataToCoord;qu.prototype.radiusToData=Dt.prototype.coordToData;const LD=qu;var PD=ae(),ju=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=no(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=PD(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);ju.prototype.dataToAngle=Dt.prototype.dataToCoord;ju.prototype.angleToData=Dt.prototype.coordToData;const RD=ju;var $m=["radius","angle"],ED=function(){function r(t){this.dimensions=$m,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new LD,this._angleAxis=new RD,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=bv(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=bv(e);return n===this?this.pointToData(a):null},r}();function bv(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const kD=ED;function OD(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 BD(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(Ki(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),S(Ki(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),An(a.scale,a.model),An(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 ND(r){return r.mainType==="angleAxis"}function wv(r,t){if(r.type=t.get("type"),r.scale=Du(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),ND(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 VD={dimensions:$m,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new kD(n+"");i.update=BD;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");wv(o,l),wv(s,u),OD(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 zD=VD;var GD=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function yi(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 mi(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Tv(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 FD=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});Tv(u),Tv(s),S(GD,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&WD[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Wn),WD={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=mi(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 ao({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[mi(e)],u=N(a,function(c){return new Ze({shape:yi(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[mi(e)],c=[],f=0;f<n.length;f++)for(var v=0;v<n[f].length;v++)c.push(new Ze({shape:yi(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[mi(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 ne({silent:fr.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=fr.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=f.rawLabel,J(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:yi(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:yi(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 HD=FD;var UD=["axisLine","axisTickLabel","axisName"],$D=["splitLine","splitArea","minorSplitLine"],YD=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=XD(s,e,f),d=new fr(e,h);S(UD,d.add,d),i.add(d.getGroup()),co(n,i,e),S($D,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&ZD[p](this.group,e,s,f,v,u,c)},this)}},t.type="radiusAxis",t}(Wn),ZD={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 XD(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 KD=YD;function Ym(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Zm(r,t){return t.dim+r.model.componentIndex}function qD(r,t,e){var a={},n=jD(ve(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=Zm(s,l),c=Ym(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=Vr(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,W=l.dataToCoord(M);Math.abs(B)<y&&(B=(B<0?-1:1)*y),R=L,E=L+B,V=W-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 jD(r){var t={};S(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Zm(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=Ym(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 JD={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},QD={splitNumber:5},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.type="polar",t}(Ae);function OR(r){Be(Xu),Wn.registerAxisPointerClass("PolarAxisPointer",AD),r.registerCoordinateSystem("polar",zD),r.registerComponentModel(MD),r.registerComponentView(eI),Mn(r,"angle",DD,JD),Mn(r,"radius",ID,QD),r.registerComponentView(HD),r.registerComponentView(KD),r.registerLayout(ee(qD,"bar"))}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.prototype.init=function(e,a,n){var i=Ta(e);r.prototype.init.apply(this,arguments),Av(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Av(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 Av(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 Ox(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});ur(r,t,{type:"box",ignoreSize:n})}const rI=tI;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.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?Ex(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 ne({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=el(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 ne({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=el(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 ne({z2:30,style:O(Te(s,{text:c[_]}),this._weekTextPositionControl(m,i,u,f,p))});o.add(x)}}},t.type="calendar",t}(Ae);const nI=aI;var Ls=864e5,iI=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=Ue(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+Ls))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=Cv(e);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Cv(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/Ls)-Math.floor(e[0].time/Ls)+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 Cv(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const oI=iI;function BR(r){r.registerComponentModel(rI),r.registerComponentView(nI),r.registerCoordinateSystem("calendar",oI)}function sI(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 Mv(r,t){var e;return S(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function lI(r,t,e){var a=O({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(q(n,a,!0),ur(n,a,{ignoreSize:!0}),Op(e,n),_i(e,n),_i(e,n,"shape"),_i(e,n,"style"),_i(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var Xm=["transition","enterFrom","leaveTo"],uI=Xm.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _i(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?Xm:uI,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function cI(r,t){if(!!r&&(r.hv=t.hv=[Mv(t,["left","right"]),Mv(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 fI=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=Kd(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];S(l,function(c,f){var v=c.newOption;!v||(u.push(v),sI(c,v),lI(o,f,v),cI(o[f],v))},this),n.elements=ve(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),Dv={path:null,compoundPath:null,group:Q,image:zt,text:ne},Je=ae(),hI=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=F()},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&&VM(d,h,!!g,!!p)){var y=zM(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=vI(l),_=l.$action||"merge",x=_==="merge",w=_==="replace";if(x){var b=!c,T=c;b?T=Iv(u,v,l.type,n):(T&&(Je(T).isNew=!1),jM(T)),T&&(Ms(T,m,e,{isInit:b}),Lv(T,l,o,s))}else if(w){Pi(c,l,n,e);var A=Iv(u,v,l.type,n);A&&(Ms(A,m,e,{isInit:!0}),Lv(A,l,o,s))}else _==="remove"&&(km(c,l),Pi(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 ne(p))}else w&&C.setTextContent(new ne(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||Je(R).type!==I,L=b?Ll(I):R}else w&&(b=!0,L=Ll(I));C.setClipPath(L),Ms(L,M,e,{isInit:b}),Dl(L,M.keyframeAnimation,e)}var E=Je(C);C.setTextConfig(g),E.option=l,dI(C,e,l),Sa({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),Dl(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=Je(h),y=Je(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=Je(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},x=iu(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Je(h).isNew&&x){for(var w=f.transition,b={},T=0;T<u.length;T++){var A=u[T],C=_[A];w&&(Or(w)||ie(w,A)>=0)?b[A]=C:h[A]=C}pe(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Pi(n,Je(n).option,a,e._lastGraphicModel)}),this._elMap=F()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ae);function Ll(r){var t=j(Dv,r)?Dv[r]:hp(r),e=new t({});return Je(e).type=r,e}function Iv(r,t,e,a){var n=Ll(e);return t.add(n),a.set(r,n),Je(n).id=r,Je(n).isNew=!0,n}function Pi(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Pi(i,t,e,a)}),GM(r,t,a),e.removeKey(Je(r).id))}function Lv(r,t,e,a){r.isGroup||S([["cursor",fn.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];j(t,i)?r[i]=ce(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),S(De(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 vI(r){return r=O({},r),S(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(kp),function(t){delete r[t]}),r}function dI(r,t,e){var a=J(r).eventData;!r.silent&&!r.ignore&&!a&&(a=J(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function NR(r){r.registerComponentModel(fI),r.registerComponentView(hI),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 Pv=["x","y","radius","angle","single"],pI=["cartesian2d","polar","singleAxis"];function gI(r){var t=r.get("coordinateSystem");return ie(pI,t)>=0}function nr(r){return r+"Axis"}function yI(r,t){var e=F(),a=[],n=F();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 Km(r){var t=r.ecModel,e={infoList:[],infoMap:F()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(nr(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 Ps=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}(),mI=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=Rv(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=Rv(e);q(this.option,e,!0),q(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=F(),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(Pv,function(n){var i=this.getReferringComponents(nr(n),x_);if(!!i.specified){a=!0;var o=new Ps;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 Ps;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(Pv,function(u){if(!!i){var c=n.findComponents({mainType:nr(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var f=new Ps;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(nr(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(nr(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 Rv(r){var t={};return S(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Pn=mI;var _I=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}(Pn);const xI=_I;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.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(Ae);const Ju=SI;var bI=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 wI=bI;var ra=S,Ev=Rt,TI=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(gI(e)){var a=nr(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;ra(["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==null||isNaN(p)?e[h]:p,s[h]=d==null||isNaN(d)?o[h]:d}),Ev(l),Ev(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";Hr(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=AI(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;ra(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 ra(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)}});ra(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;ra(["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=Fd(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 AI(r,t,e){var a=[1/0,-1/0];ra(e,function(o){uw(a,o.getData(),t)});var n=r.getAxisModel(),i=ly(n.axis.scale,n,a).calculate();return[i.min,i.max]}const CI=TI;var MI={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(nr(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 CI(n,i,s,r),e.push(o.__dzAxisProxy))});var a=F();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 DI=MI;function II(r){r.registerAction("dataZoom",function(t,e){var a=yI(e,t);S(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var kv=!1;function Qu(r){kv||(kv=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,DI),II(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function LI(r){r.registerComponentModel(xI),r.registerComponentView(wI),Qu(r)}var ct=function(){function r(){}return r}(),qm={};function $a(r,t){qm[r]=t}function jm(r){return qm[r]}var PI=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=jm(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),q(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 RI=PI;function EI(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ue(a,i,n);Rr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),iu(r,a,i,n)}function Jm(r,t){var e=zn(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 kI=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 Tn(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(OI(g))x={onclick:_.option.onclick,featureName:g};else{var w=jm(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=Vn(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 ne({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})}EI(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=no(p,ne.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 OI(r){return r.indexOf("my")===0}const BI=kI;var NI=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=ge.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 VI=NI;var Ov="__ec_magicType_stack__",zI=[["line","bar"],["stack"]],GI=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(!!Bv[n]){var s={series:[]},l=function(f){var v=f.subType,h=f.id,d=Bv[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(zI,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=q({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),Bv={line:function(r,t,e,a){if(r==="bar")return q({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 q({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")===Ov;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),q({id:t,stack:n?"":Ov},a.get(["option","stack"])||{},!0)}};Mt({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const FI=GI;var Ro=new Array(60).join("-"),ya=" ";function WI(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 HI(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(`
`+Ro+`
`)}function UI(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(`
`+Ro+`
`)}function $I(r){var t=WI(r);return{value:ve([HI(t.seriesGroupByCategoryAxis),UI(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+Ro+`
`),meta:t.meta}}function to(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function YI(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ya)>=0)return!0}var Pl=new RegExp("["+ya+"]+","g");function ZI(r){for(var t=r.split(/\n+/g),e=to(t.shift()).split(Pl),a=[],n=N(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=to(t[i]).split(Pl);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 XI(r){for(var t=r.split(/\n+/g),e=to(t.shift()),a=[],n=0;n<t.length;n++){var i=to(t[n]);if(!!i){var o=i.split(Pl),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 KI(r,t){var e=r.split(new RegExp(`
*`+Ro+`
*`,"g")),a={series:[]};return S(e,function(n,i){if(YI(n)){var o=ZI(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=XI(n);a.series.push(o)}}),a}var qI=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=$I(e);if(Z(f)){var d=f(a.getOption());G(d)?u.innerHTML=d:zd(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}hc(_,"click",b),hc(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=KI(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 jI(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:jI(a.data,i)})}}),t.mergeOption(K({series:e},r.newOption))});const JI=qI;var Qm=S,e0=ae();function QI(r,t){var e=ec(r);Qm(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 eL(r){var t=ec(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return Qm(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 tL(r){e0(r).snapshots=null}function rL(r){return ec(r).length}function ec(r){var t=e0(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var aL=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){tL(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 nL=aL;var iL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],oL=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=Nv(e,t);S(sL,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=Rs[a.brushType](0,i,n);a.__rangeOffset={offset:Fv[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=Rs[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=Rs[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Fv[a.brushType](i.values,o.offset,lL(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:Tm(n),isTargetByCursor:Cm(n,t,a.coordSysModel),getLinearBrushOtherExtent:Am(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=Nv(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<Vv.length;l++)if(Vv[l](n,o))return o}return!0},r}();function Rl(r){return r[0]>r[1]&&r.reverse(),r}function Nv(r,t){return rn(r,t,{includeMainTypes:iL})}var sL={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=F(),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:zv.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:zv.geo})})}},Vv=[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}],zv={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Pr(r)),t}},Rs={lineX:ee(Gv,0),lineY:ee(Gv,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=[Rl([n[0],i[0]]),Rl([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 Gv(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Rl(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 Fv={lineX:ee(Wv,0),lineY:ee(Wv,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 Wv(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function lL(r,t){var e=Hv(r),a=Hv(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 Hv(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const t0=oL;var El=S,uL=p_("toolbox-dataZoom_"),cL=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 wm(n.getZr()),this._brushController.on("brush",z(this._onBrush,this)).mount()),vL(e,a,this,i,n),hL(e,a)},t.prototype.onclick=function(e,a,n){fL[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 t0(tc(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)}}),QI(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=Hr(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=[];El(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),fL={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(eL(this.ecModel))}};function tc(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 hL(r,t){r.setIconStatus("back",rL(t)>1?"emphasis":"normal")}function vL(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 t0(tc(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)}Wx("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=tc(a),o=rn(r,i);El(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),El(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:uL+u+f};v[c]=f,n.push(v)}return n});const dL=cL;function VR(r){r.registerComponentModel(RI),r.registerComponentView(BI),$a("saveAsImage",VI),$a("magicType",FI),$a("dataView",JI),$a("dataZoom",dL),$a("restore",nL),Be(LI)}var pL=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 gL=pL;function r0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function a0(r){if(!!ge.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var n0=a0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yL=a0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function i0(r,t){if(!r)return t;t=Rp(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function mL(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var _L=i0(yL,"transition"),rc=i0(n0,"transform"),xL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ge.transform3dSupported?"will-change:transform;":"");function SL(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function bL(r,t,e){if(!G(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Nr(t);var i=SL(e),o=Math.max(Math.round(n)*1.5,6),s="",l=rc+":",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;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function wL(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+=ge.transformSupported?","+rc+a:",left"+a+",top"+a),_L+":"+n}function Uv(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!ge.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=ge.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+rc+":"+o+";":[["top",0],["left",0],[n0,o]]}function TL(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 AL(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=fg(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),t&&n&&a.push(wL(n,e)),i&&a.push("background-color:"+i),S(["width","color","radius"],function(h){var d="border-"+h,p=Rp(d),g=r.get(p);g!=null&&a.push(d+":"+g+(h==="color"?"":"px"))}),a.push(TL(c)),f!=null&&a.push("padding:"+zn(f).join("px ")+"px"),a.join(";")+";"}function $v(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&K0(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 CL=function(){function r(t,e,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ge.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;$v(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();X0(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=mL(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=xL+AL(t,!this._firstShow,this._longHide)+Uv(i[0],i[1],!0)+("border-color:"+Nr(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"&&!r0(a)&&(s=bL(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++)zd(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($v(a,this._zr,this._appendToBody,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Uv(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",ge.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const ML=CL;var DL=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Zv(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;H(t)&&Fe(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new ne({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:fg(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=Yv(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;Zv(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=tr(i.borderWidth||0),s=Yv(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function tr(r){return Math.max(0,r)}function Yv(r){var t=tr(r.shadowBlur||0),e=tr(r.shadowOffsetX||0),a=tr(r.shadowOffsetY||0);return{left:tr(t-e),right:tr(t+e),top:tr(t-a),bottom:tr(t+a)}}function Zv(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const IL=DL;var LL=new oe({shape:{x:-1,y:-1,width:2,height:2}}),PL=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(!(ge.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=b_(n.get("renderMode"));this._tooltipContent=i==="richText"?new IL(a):new ML(a.getDom(),a,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,a,n){if(!(ge.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Gn(this,"_updatePosition",50,"fixRate"):bn(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Hm("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||ge.node||!n.getDom())){var o=Xv(i,n);this._ticket="";var s=i.dataByCoordSys,l=OL(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=LL;c.x=i.x,c.y=i.y,c.update(),J(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=Um(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._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Xv(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;Dr(n,function(u){if(J(u).dataIndex!=null)return s=u,!0;if(J(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 Ko;S(e,function(m){S(m.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var b=Gm(w,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=Tt("section",{header:b,noHeader:!kn(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=Iu(x.axis,{value:w}),M.axisValueLabel=b,M.marker=v.makeTooltipMarker("item",Nr(M.color),l);var I=of(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=ff(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=J(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 Ko;y.marker=m.makeTooltipMarker("item",Nr(y.color),h);var _=of(u.formatTooltip(c,!1,f)),x=p.get("order"),w=p.get("valueFormatter"),b=_.frag,T=b?ff(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=J(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 Ko;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=po(y.axisValue,h,g)),h=Ep(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=Ue(p,{width:u,height:c});n=g.x,i=g.y,v=null,h=null}else if(G(a)&&l){var y=kL(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=RL(n,i,o,u,c,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=Kv(v)?f[0]/2:v==="right"?f[0]:0),h&&(i-=Kv(h)?f[1]/2:h==="bottom"?f[1]:0),r0(e)){var y=EL(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){ge.node||!a.getDom()||(bn(this,"_updatePosition"),this._tooltipContent.dispose(),Il("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 Xv(r,t){return r.dispatchAction||z(t.dispatchAction,t)}function RL(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 EL(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 kL(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 Kv(r){return r==="center"||r==="middle"}function OL(r,t,e){var a=Hl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Nn(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=J(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const BL=PL;function zR(r){Be(Xu),r.registerComponentModel(gL),r.registerComponentView(BL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}var qv=S;function jv(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Jv(r,t,e){var a={};return qv(t,function(i){var o=a[i]=n();qv(r[i],function(s,l){if(!!He.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new He(u),l==="opacity"&&(u=U(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new He(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function NL(r,t,e){var a;S(e,function(n){t.hasOwnProperty(n)&&jv(t[n])&&(a=!0)}),a&&S(e,function(n){t.hasOwnProperty(n)&&jv(t[n])?r[n]=U(t[n]):delete r[n]})}function VL(r,t,e,a){var n={};return S(r,function(i){var o=He.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(w){return xg(s,f,w)}function c(w,b){b1(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 zL=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),GL=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=ce(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ne({style:Te(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),v=e.get("subtext"),h=new ne({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(){Gc(d,"_"+e.get("target"))}),p&&h.on("click",function(){Gc(p,"_"+e.get("subtarget"))}),J(c).eventData=J(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 _=Ue(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 GR(r){r.registerComponentModel(zL),r.registerComponentView(GL)}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="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 wu([{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 Qv=FL;var o0=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=vr(Qv.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}(Qv);Xe(o0,tg.prototype);const WL=o0;var HL=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 UL=HL;var $L=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 YL=$L;var Es=Math.PI,ed=ae(),ZL=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=KL(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:Es/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*Es/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=Bn(),l=o.x,u=o.y+o.height;hn(s,s,[-l,-u]),On(s,s,-Es/2),hn(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=XL(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 YL("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=td(f,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Lr(g);var y=J(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 ne({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),Lr(y),ed(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(ce(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=qL(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(_),Lr(_)}}},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),rd(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){rd(f,u._progressLine,s,n,i)}};this._currentPointer=td(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();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.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",ed(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(UL);function XL(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Tu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new oy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new cr}}function KL(r,t){return Ue(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function qL(r,t,e,a){var n=a.style,i=Vn(r.get(["controlStyle",t]),a||{},new ye(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function td(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=q({rectHover:!0,z2:100},a,!0);var u=yu(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=wo(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 rd(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 jL=ZL;function JL(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 QL(r){var t=r&&r.timeline;k(t)||(t=t?[t]:[]),S(t,function(e){!e||eP(e)})}function eP(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),ad(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),ad(n))})}function ad(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 FR(r){r.registerComponentModel(WL),r.registerComponentView(jL),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),JL(r),r.registerPreprocessor(QL)}var tP=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"])}},rP=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]=q(i,tP(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,v=f.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(v)),v.length?a=a.concat(v):c=!0}else c=!0;c&&Wl(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=F(),s=N(i,function(l){return(G(l)||de(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Se(l,this,this.ecModel))},this);this._data=ve(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;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 kl=rP;var Qr=ee,Ol=S,xi=Q,aP=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 xi),this.group.add(this._selectorGroup=new xi),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=Ue(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=Ue(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=F(),f=a.get("selectedMode"),v=[];n.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),Ol(a.getData(),function(h,d){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new xi;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",Qr(nd,p,null,i,v)).on("mouseover",Qr(Bl,y.name,null,i,v)).on("mouseout",Qr(Nl,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=Vd(D.fill);I&&I[3]===0&&(I[3]=.2,D=O(O({},D),{fill:Si(I,"rgba")}));var L=this._createItem(T,p,d,h,a,e,{},D,M,f,i);L.on("click",Qr(nd,null,p,i,v)).on("mouseover",Qr(Bl,null,p,i,v)).on("mouseout",Qr(Nl,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();Ol(e,function(u){var c=u.type,f=new ne({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}),Lr(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=nP(c,i,l,u,h,g,v),w=new xi,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(iP({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=g?b.getTextColor():i.get("inactiveColor");w.add(new ne({style:Te(b,{text:M,x:A,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));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),Lr(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Rr(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){Rr("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 nP(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Ol(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:Yi(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 iP(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 nd(r,t,e,a){Nl(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Bl(r,t,e,a)}function s0(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 Bl(r,t,e,a){s0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Nl(r,t,e,a){s0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}const l0=aP;function oP(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 sP(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 u0(r){r.registerComponentModel(kl),r.registerComponentView(l0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,oP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),sP(r)}var lP=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),id(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),id(this,this.option,e)},t.type="legend.scroll",t.defaultOption=vr(kl.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}(kl);function id(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,ur(t,e,{type:"box",ignoreSize:!!n})}const uP=lP;var od=Q,ks=["width","height"],Os=["x","y"],cP=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 od),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new od)},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 ne({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=Vn(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=ks[u],f=Os[u],v=ks[1-u],h=Os[1-u];o&&Rr("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;Rr(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Rr("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],_=ce(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&&pe(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=ks[o],l=Os[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}(l0);const fP=cP;function hP(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 vP(r){Be(u0),r.registerComponentModel(uP),r.registerComponentView(fP),hP(r)}function WR(r){Be(u0),Be(vP)}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.inside",t.defaultOption=vr(Pn.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Pn);const pP=dP;var ac=ae();function gP(r,t,e){ac(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function yP(r,t){for(var e=ac(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||c0(e,o))}}}function c0(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function mP(r,t){var e={model:t,containsPoint:ee(xP,t),dispatchAction:ee(_P,r),dataZoomInfoMap:null,controller:null},a=e.controller=new em(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 _P(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function xP(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function SP(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 bP(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=ac(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=F());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Km(i);S(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,mP(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=F());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){c0(n,i);return}var c=SP(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Gn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var wP=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(),gP(n,e,{pan:z(Bs.pan,this),zoom:z(Bs.zoom,this),scrollMove:z(Bs.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){yP(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Ju),Bs={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=Ns[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(Hr(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:sd(function(r,t,e,a,n,i){var o=Ns[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:sd(function(r,t,e,a,n,i){var o=Ns[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function sd(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(Hr(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Ns={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 TP=wP;function AP(r){Qu(r),r.registerComponentModel(pP),r.registerComponentView(TP),bP(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.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=vr(Pn.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}(Pn);const MP=CP;var Xa=oe,ld=7,DP=1,Vs=30,IP=7,Ka="horizontal",ud="vertical",LP=5,PP=["line","bar","candlestick","scatter"],RP={easing:"cubicOut",duration:100,delay:0},EP=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),Gn(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(){bn(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?IP: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-Vs-ld-i,width:o.width,height:Vs}:{right:ld,top:o.y,width:Vs,height:o.height},u=Ta(e.option);S(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Ue(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ud&&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===ud&&!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(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(l),v=(f[1]-f[0])*.3;f=[f[0]-v,f[1]+v];var h=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),x;o.each([l],function(C,D){if(_>0&&D%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:he(C,f,h,!0);M&&!x&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&x&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,x=M}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var w=this.dataZoomModel;function b(C){var D=w.getModel(C?"selectedDataBackground":"dataBackground"),M=new Q,I=new hr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new At({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var T=0;T<3;T++){var A=b(T===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},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(PP,u.get("type"))<0)){var c=i.getComponent(nr(o),s).axis,f=kP(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:DP,fill:"rgba(0,0,0,0)"}})),S([0,1],function(_){var x=l.get("handleIcon");!$i[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:cd(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(),Lr(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 ne({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:cd(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];Hr(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=Pr(n.handles[d].parent,this.group),g=uo(d===0?"right":"left",p),y=this._handleWidth/2+LP,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,sr(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&&(sr(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?RP:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Km(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 kP(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function cd(r){return r==="vertical"?"ns-resize":"ew-resize"}const OP=EP;function BP(r){r.registerComponentModel(MP),r.registerComponentView(OP),Qu(r)}function HR(r){Be(AP),Be(BP)}var NP={get:function(r,t,e){var a=U((VP[r]||{})[t]);return e&&k(a)?a[a.length-1]:a}},VP={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 f0=NP;var fd=He.mapVisual,zP=He.eachVisual,GP=k,hd=S,FP=Rt,WP=he,HP=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&&NL(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=FP([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={});q(i,n),q(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){GP(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]={},hd(d,function(g,y){if(!!He.isValidType(y)){var m=f0.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";hd(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=fd(_.symbol,function(b){return b==="none"?g:b});var x=_.symbolSize;if(x!=null){var w=-1/0;zP(x,function(b){b>w&&(w=b)}),_.symbolSize=fd(x,function(b){return WP(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 ro=HP;var vd=[20,140],UP=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]=vd[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=vd[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=dd(this,"outOfRange",this.getExtent()),n=dd(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=vr(ro.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}(ro);function dd(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 $P=UP;var YP=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=zn(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=He.prepareVisualTypes(f);return S(v,function(h){var d=f[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=f.__alphaForOpacity),He.dependsOn(h,a)&&d&&d.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api;iu(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Ae);const h0=YP;var pd=[["left","right","width"],["top","bottom","height"]];function v0(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=pd[o],l=[0,null,10],u={},c=0;c<3;c++)u[pd[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=Ue(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 Ri(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,ZP=S,gd=Math.min,zs=Math.max,XP=12,KP=6,qP=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 ne({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=v0(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new Q;u.add(c),c.add(n.outOfRange=yd()),c.add(n.inRange=yd(null,s?_d(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=zs(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=_d(this._orient);f.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){sr(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(),ql(f,!0),a.add(f);var h=this.visualMapModel.textStyleModel,d=new ne({cursor:v,draggable:!0,drift:l,onmousemove:function(y){sr(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 ne({silent:!0,invisible:!0,style:Te(f,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:KP)+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():md(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]];Hr(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 Gl(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();ZP([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],Pr(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,Pr(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]=gd(zs(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=gd(zs(o[0],e),o[1]);var l=jP(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||md(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=m_(v,h);this._dispatchHighDown("downplay",Ri(d[0],n)),this._dispatchHighDown("highlight",Ri(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Dr(e.target,function(l){var u=J(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(!!i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this._api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ri(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=Pr(a,i?null:this.group);return k(e)?vt(e,o,n):uo(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}(h0);function yd(r,t,e,a){return new hr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){sr(n.event)},ondragend:a})}function jP(r,t,e){var a=XP/2,n=r.get("hoverLinkDataSize");return n&&(a=mt(n,t,e,!0)/2),a}function md(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function _d(r){return r==="vertical"?"ns-resize":"ew-resize"}const JP=qP;var QP={type:"selectDataRange",event:"dataRangeSelected",update:"update"},eR=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},tR=[{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(VL(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(rR,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function rR(r,t,e,a){for(var n=t.targetVisuals[a],i=He.prepareVisualTypes(n),o={color:Sg(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 xd=S;function aR(r){var t=r&&r.visualMap;k(t)||(t=t?[t]:[]),xd(t,function(e){if(!!e){ea(e,"splitList")&&!ea(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&k(a)&&xd(a,function(n){H(n)&&(ea(n,"start")&&!ea(n,"min")&&(n.min=n.start),ea(n,"end")&&!ea(n,"max")&&(n.max=n.end))})}})}function ea(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var Sd=!1;function d0(r){Sd||(Sd=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(QP,eR),S(tR,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(aR))}function nR(r){r.registerComponentModel($P),r.registerComponentView(JP),d0(r)}var iR=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=[],oR[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=He.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]=f0.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=He.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=He.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=vr(ro.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}(ro),oR={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]}),dc(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),bd(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=He.retrieveVisuals(e),r.push(n)},this),bd(t,r),dc(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 bd(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const sR=iR;var lR=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=or(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 ne({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),Rr(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:Ri(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return v0(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 ne({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}(h0);const uR=lR;function cR(r){r.registerComponentModel(sR),r.registerComponentView(uR),d0(r)}function UR(r){Be(nR),Be(cR)}var fR={label:{enabled:!0},decal:{show:!1}},wd=ae(),hR={};function vR(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=U(fR);q(a.label,r.getLocaleModel().get("aria"),!1),q(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=F();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=f.get(v.type);h||(h={},f.set(v.type,h)),wd(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=Wc(v.ecModel,v.name,hR,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",x(_,m))}else{var d=v.getRawData(),p={},g=wd(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=Wc(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 W=L.getName(B),Y=L.getValues(B),re=c.get(["data",W?"withName":"withoutName"]);X.push(o(re,{name:W,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 dR(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 $R(r){r.registerPreprocessor(dR),r.registerVisual(r.PRIORITY.VISUAL.ARIA,vR)}function YR(r){r.registerPainter("canvas",q0)}function Td(r){return k(r[0])}function Ad(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 pR={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=t_(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function Gs(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;Td(r)&&(u=r,c=t),Td(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(j0(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:pR[e],individualDelay:s&&function(X,B,W,Y){return s(X+_,x)}},l),I=m?Q0(b,T,M):e_(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?Ad(c,u):Ad(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 Ie&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var p0=1e4,gR=ae();function yR(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 Cd(r){var t=[];return S(r,function(e){var a=e.data;if(!(a.count()>p0))for(var n=a.getIndices(),i=yR(a),o=0;o<n.length;o++)t.push({dataGroupId:e.dataGroupId,data:a,dim:e.dim||i,divide:e.divide,dataIndex:o})}),t}function Fs(r,t,e){r.traverse(function(a){a instanceof Ie&&Le(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Ws(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function ta(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function mR(r,t,e){var a=xa("update",e,t);a&&r.traverse(function(n){if(n instanceof fn){var i=ex(n);i&&n.animateFrom({style:i},a)}})}function _R(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 g0(r,t,e){var a=Cd(r),n=Cd(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=_.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=_R(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&&mR(T,x.dataIndex,w);return}b&&v[b.id]||T&&(ta(T),b?(ta(b),Ws(b),u=!0,Gs(Tr(b),Tr(T),x.divide,w,y,i)):Fs(T,w,y))}new Tn(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=ve(N(m,function(A){return a[A].data.getItemGraphicEl(a[A].dataIndex)}),function(A){return A&&A!==b&&!v[A.id]});b&&(ta(b),T.length?(S(T,function(A){ta(A),Ws(A)}),u=!0,Gs(Tr(T),Tr(b),_.divide,w,y,i)):Fs(b,w,_.dataIndex))}).updateOneToMany(function(y,m){var _=a[m],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&v[x.id])){var w=ve(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 ta(T)}),x?(ta(x),Ws(x),u=!0,Gs(Tr(x),Tr(w),_.divide,b,y[0],i)):S(w,function(T){return Fs(T,b,y[0])}))}}).updateManyToMany(function(y,m){new Tn(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 Ie&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function Md(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Dd(r){return k(r)?r.sort().join(","):r}function rr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function xR(r,t){var e=F(),a=F(),n=F();return S(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Md(i),c=Dd(u);a.set(c,{dataGroupId:s,data:l}),k(u)&&S(u,function(f){n.set(f,{key:c,dataGroupId:s,data:l})})}),S(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Md(i),u=Dd(l),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:rr(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:rr(s),data:s}]});else if(k(l)){var f=[];S(l,function(d){var p=a.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:rr(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:rr(s)}]})}else{var v=n.get(l);if(v){var h=e.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:rr(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:rr(s)})}}}}),e}function Id(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 SR(r,t,e,a){var n=[],i=[];S(le(r.from),function(o){var s=Id(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:rr(t.oldData[s]),dim:o.dimension})}),S(le(r.to),function(o){var s=Id(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:rr(l),dim:o.dimension})}}),n.length>0&&i.length>0&&g0(n,i,a)}function ZR(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][Mi]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=gR(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)S(le(i),function(h){SR(h,n,a,e)});else{var o=xR(n,a);S(o.keys(),function(h){var d=o.get(h);g0(d.oldSeries,d.newSeries,e)})}S(a.updatedSeries,function(h){h[Mi]&&(h[Mi]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],f=0;f<s.length;f++){var v=s[f].getData();v.count()<p0&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(v))}})}export{ZR as A,WR as a,GR as b,zR as c,kR as d,OR as e,$R as f,RR as g,MR as h,TR as i,CR as j,DR as k,PR as l,LR as m,ER as n,WA as o,VR as p,HR as q,UR as r,FR as s,gu as t,Be as u,BR as v,NR as w,IR as x,YR as y,AR as z};