import{i as W,r as ua,m as z,c as F,e as S,a as $,b as tt,d as de,f as Us,g as O,h as ie,j as ge,k as b0,l as B,n as X,o as En,p as De,P as Ie,q as lc,s as oe,t as w0,Z as Vt,u as A0,v as T0,w as C0,x as M0,y as Fl,z as ki,T as aa,A as kn,B as rt,C as K,D as Q,E as D0,F as Gr,G as Ed,S as zt,R as no,H as fr,I as Tt,J as se,L as Ze,K as kd,M as Wl,N as ee,O as ne,Q as I0,U as Od,V as Hl,W as L0,X as ye,Y as Oi,_ as we,$ as On,a0 as j,a1 as Y,a2 as Ke,a3 as P0,a4 as Ye,a5 as te,a6 as Xe,a7 as ve,a8 as G,a9 as $s,aa as R0,ab as bt,ac as Ys,ad as E0,ae as k0,af as Nd,ag as O0,ah as _a,ai as uc,aj as ko,ak as N0,al as ca,am as Zs,an as B0,ao as cc,ap as Bd,aq as Vd,ar as io,as as fc,at as Oo,au as V0,av as z0,aw as zd,ax as Ja,ay as hc,az as vc,aA as G0,aB as F0,aC as W0,aD as ir,aE as Nn,aF as H0,aG as dc,aH as or,aI as U0,aJ as $0,aK as Y0,aL as vn,aM as Z0,aN as Bn,aO as X0,aP as K0,aQ as No,aR as bi,aS as Bo,aT as q0,aU as Gd,aV as dn,aW as pn,aX as j0,aY as Xs,aZ as pc,a_ as J0,a$ as Q0,b0 as e_,b1 as t_,b2 as r_,b3 as a_,b4 as n_,b5 as i_}from"./zrender.b2f30540.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ks=function(r,t){return Ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Ks(r,t)};function E(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ks(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var gc=1e-4,Fd=20;function o_(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 Z(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 W(r)?o_(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),Fd),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 s_(r)}function s_(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 Wd(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 l_(r,t){var e=ua(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=z(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=z(n,function(h){return Math.floor(h)}),s=ua(o,function(h,d){return h+d},0),l=z(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 z(o,function(h){return h/a})}function u_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>Fd?a:xe(a,e)}function Hd(r){var t=Math.PI*2;return(r%t+t)%t}function Ni(r){return r>-gc&&r<gc}var c_=/^(?:(\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(W(r)){var t=c_.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 f_(r){return Math.pow(10,Ul(r))}function Ul(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 Ud(r,t){var e=Ul(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 yc(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||!W(r)||r.indexOf("x")<=0)?t:NaN}function $d(r){return!isNaN(Bi(r))}function Yd(){return Math.round(Math.random()*9)}function Zd(r,t){return t===0?r:Zd(t,r%t)}function mc(r,t){return r==null?t:t==null?r:r*t/Zd(r,t)}function Fe(r){throw new Error(r)}function _c(r,t,e){return(t-r)*e+r}var Xd="series\0",Kd="\0_ec_\0";function ue(r){return r instanceof Array?r:r==null?[]:[r]}function Vi(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 xc=["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 xa(r){return $(r)&&!O(r)&&!(r instanceof Date)?r.value:r}function h_(r){return $(r)&&!(r instanceof Array)}function qd(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(!$(l)){t[u]=null;return}});var s=v_(r,o,e);return(a||n)&&d_(s,r,o,t),a&&p_(s,t),a||n?g_(s,t,n):i&&y_(s,t),m_(s),s}function v_(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"||gn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function d_(r,t,e,a){S(a,function(n,i){if(!(!n||n.id==null)){var o=an(n.id),s=e.get(o);if(s!=null){var l=r[s];tt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function p_(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)&&!gn(e)&&!gn(i)&&jd("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function g_(r,t,e){S(t,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||gn(n.existing)||n.existing&&a.id!=null&&!jd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function y_(r,t){S(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function m_(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;tt(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),S(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(!!$(i)){if(o.name=i.name!=null?an(i.name):n?n.name:Xd+a,n)o.id=an(n.id);else if(i.id!=null)o.id=an(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 jd(r,t,e){var a=ke(t[r],null),n=ke(e[r],null);return a!=null&&n!=null&&a===n}function an(r){return ke(r,"")}function ke(r,t){return r==null?t:W(r)?r:de(r)||Us(r)?r+"":t}function $l(r){var t=r.name;return!!(t&&t.indexOf(Xd))}function gn(r){return r&&r.id!=null&&an(r.id).indexOf(Kd)===0}function __(r){return Kd+r}function x_(r,t,e){S(r,function(a){var n=a.newOption;$(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=S_(t,n,a.existing,e))})}function S_(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function b_(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=ue(o[u].dataIndex),h=l&&l[f],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Or(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return O(t.dataIndex)?z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return O(t.name)?z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ae(){var r="__ec_inner_"+w_++;return function(t){return t[r]||(t[r]={})}}var w_=Yd();function nn(r,t,e){var a=Yl(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=Vn(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 Yl(r,t){var e;if(W(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},A_={useDefault:!1,enableAll:!0,enableNone:!0};function Vn(r,t,e,a){a=a||Me;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(tt(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(tt(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function Jd(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function T_(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function C_(r){return r==="auto"?ge.domSupported?"html":"richText":r||"html"}function Qd(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(de(a)){var o=_c(e||0,a,n);return xe(o,i?Math.max(Et(e||0),Et(a)):t)}else{if(W(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=_c(h,d,n);s[f]=xe(o,i?Math.max(Et(h),Et(d)):t)}}return s}}var M_=".",dr="___EC__COMPONENT__CONTAINER___",ep="___EC__EXTENDED_CLASS___";function xt(r){var t={main:"",sub:""};if(r){var e=r.split(M_);t.main=e[0]||"",t.sub=e[1]||""}return t}function D_(r){tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function I_(r){return!!(r&&r[ep])}function Zl(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return L_(a)?n=function(i){E(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},b0(n,this)),B(n.prototype,e),n[ep]=!0,n.extend=this.extend,n.superCall=E_,n.superApply=k_,n.superClass=a,n}}function L_(r){return X(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function tp(r,t){r.extend=t.extend}var P_=Math.round(Math.random()*10);function R_(r){var t=["__\0is_clz",P_++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function E_(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 k_(r,t,e){return this.superClass.prototype[t].apply(r,e)}function oo(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){D_(n),a.prototype.type=n;var i=xt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==dr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[dr]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=xt(a),i=[],o=t[n.main];return o&&o[dr]?S(o,function(s,l){l!==dr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=xt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return S(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=xt(a),i=t[n.main];return i&&i[dr]};function e(a){var n=t[a.main];return(!n||!n[dr])&&(n=t[a.main]={},n[dr]=!0),n}}function fa(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 O_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],N_=fa(O_),B_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return N_(this,t,e)},r}(),q=ae(),V_=function(r,t,e,a){if(a){var n=q(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=q(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Sc=1,bc={},rp=ae(),Xl=ae(),Kl=0,so=1,lo=2,at=["emphasis","blur","select"],zi=["normal","emphasis","blur","select"],ap=10,z_=9,Dr="highlight",wi="downplay",on="select",Ai="unselect",sn="toggleSelect";function $r(r){return r!=null&&r!=="none"}function uo(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function np(r){uo(r,"emphasis",lo)}function ip(r){r.hoverState===lo&&uo(r,"normal",Kl)}function ql(r){uo(r,"blur",so)}function op(r){r.hoverState===so&&uo(r,"normal",Kl)}function G_(r){r.selected=!0}function F_(r){r.selected=!1}function wc(r,t,e){t(r,e)}function Gt(r,t,e){wc(r,t,e),r.isGroup&&r.traverse(function(a){wc(a,t,e)})}function qs(r,t){switch(t){case"emphasis":r.hoverState=lo;break;case"normal":r.hoverState=Kl;break;case"blur":r.hoverState=so;break;case"select":r.selected=!0}}function W_(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 H_(r,t,e,a){var n=e&&ie(e,"select")>=0,i=!1;if(r instanceof Ie){var o=rp(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=B({},a),u=B({},u),u.fill=s):!$r(u.fill)&&$r(s)?(i=!0,a=B({},a),u=B({},u),u.fill=lc(s)):!$r(u.stroke)&&$r(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=lc(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:ap)}return a}function U_(r,t,e){if(e&&e.z2==null){e=B({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:z_)}return e}function $_(r,t,e){var a=ie(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:W_(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({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 H_(this,r,t,e);if(r==="blur")return $_(this,r,e);if(r==="select")return U_(this,r,e)}return e}function jl(r){r.stateProxy=Vo;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Vo),e&&(e.stateProxy=Vo)}function Ac(r,t){!cp(r,t)&&!r.__highByOuter&&Gt(r,np)}function Tc(r,t){!cp(r,t)&&!r.__highByOuter&&Gt(r,ip)}function ha(r,t){r.__highByOuter|=1<<(t||0),Gt(r,np)}function va(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Gt(r,ip)}function Y_(r){Gt(r,ql)}function sp(r){Gt(r,op)}function lp(r){Gt(r,G_)}function up(r){Gt(r,F_)}function cp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function fp(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Xl(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){op(u)}),s&&e.push(i)),o.isBlured=!1}),S(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function js(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&&sp(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"||ql(g)}),En(t))i(u.getData(),t);else if($(t))for(var d=De(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Xl(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 Js(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(!!a){Xl(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){ql(i)})}}}function Z_(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!!n){var i=Or(n,t);i=(O(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=q(o);js(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&js(a,c,f,e)}}}function Jl(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(q(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function X_(r,t,e){var a=q(r),n=Jl(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Js(a.componentMainType,a.componentIndex,e),S(i,function(s){return Ac(s,t)})):(js(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Js(a.componentMainType,a.componentIndex,e),Ac(r,t))}function K_(r,t,e){fp(e);var a=q(r),n=Jl(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?S(n,function(i){return Tc(i,t)}):Tc(r,t)}function q_(r,t,e){if(!!el(t)){var a=t.dataType,n=r.getData(a),i=Or(n,t);O(i)||(i=[i]),r[t.type===sn?"toggleSelect":t.type===on?"select":"unselect"](i,a)}}function Cc(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)?lp(i):up(i)})})}function j_(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();S(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ir(r,t,e){Ql(r,!0),Gt(r,jl),Q_(r,t,e)}function J_(r){Ql(r,!1)}function sr(r,t,e,a){a?J_(r):Ir(r,t,e)}function Q_(r,t,e){var a=q(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Mc=["emphasis","blur","select"],ex={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function da(r,t,e,a){e=e||"itemStyle";for(var n=0;n<Mc.length;n++){var i=Mc[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[ex[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 tx(r,t,e){var a=q(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function rx(r){var t=bc[r];return t==null&&Sc<=32&&(t=bc[r]=Sc++),t}function el(r){var t=r.type;return t===on||t===Ai||t===sn}function Dc(r){var t=r.type;return t===Dr||t===wi}function ax(r){var t=rp(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 hp=ae();function Sa(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=oe(a.duration,200),c=oe(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)),X(f)&&(f=f(e,n)),X(u)&&(u=u(e));var v={duration:u||0,delay:f,easing:c};return v}else return null}function eu(r,t,e,a,n,i,o){var s=!1,l;X(n)?(o=i,i=n,n=null):$(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=Sa(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){eu("update",r,t,e,a,n,i)}function Le(r,t,e,a,n,i){eu("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 yn(r,t,e,a,n,i){na(r)||eu("leave",r,t,e,a,n,i)}function Ic(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),yn(r,{style:{opacity:0}},t,e,a)}function Gi(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Ic(n,t,e,a)}):Ic(r,t,e,a)}function mn(r){hp(r).oldStyle=r.style}function nx(r){return hp(r).oldStyle}var Fi=Math.max,Wi=Math.min,tl={};function ix(r){return Ie.extend(r)}var ox=D0;function sx(r,t){return ox(r,t)}function pt(r,t){tl[r]=t}function vp(r){if(tl.hasOwnProperty(r))return tl[r]}function tu(r,t,e,a){var n=w0(r,t);return e&&(a==="center"&&(e=pp(e,n.getBoundingRect())),gp(n,e)),n}function dp(r,t,e){var a=new Vt({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(pp(t,i))}}});return a}function pp(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=A0;function gp(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function _n(r,t){return T0(r,r,{lineWidth:t}),r}function lx(r){return C0(r.shape,r.shape,r.style),r}var ux=M0;function Lr(r,t){for(var e=Fl([]);r&&r!==t;)ki(e,r.getLocalTransform(),e),r=r.parent;return e}function vt(r,t,e){return t&&!En(t)&&(t=aa.getLocalTransform(t)),e&&(t=kn([],t)),rt([],r,t)}function co(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 Lc(r){return!r.isGroup}function cx(r){return r.shape!=null}function fo(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Lc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cx(o)&&(s.shape=B({},o.shape)),s}var i=a(r);t.traverse(function(o){if(Lc(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),pe(o,l,e,q(o).dataIndex)}}})}function yp(r,t){return z(r,function(e){var a=e[0];a=Fi(a,t.x),a=Wi(a,t.x+t.width);var n=e[1];return n=Fi(n,t.y),n=Wi(n,t.y+t.height),[a,n]})}function fx(r,t){var e=Fi(r.x,t.x),a=Wi(r.x+r.width,t.x+t.width),n=Fi(r.y,t.y),i=Wi(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 zn(r,t,e){var a=B({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 Vt(a)):tu(r.replace("path://",""),a,e,"center")}function hx(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(mp(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function mp(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(vx(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 vx(r){return r<=1e-6&&r>=-1e-6}function ba(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=W(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){Q(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function Pc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ho(r,t){if(r)if(O(r))for(var e=0;e<r.length;e++)Pc(r[e],t);else Pc(r,t)}pt("circle",Gr);pt("ellipse",Ed);pt("sector",zt);pt("ring",no);pt("polygon",fr);pt("polyline",Tt);pt("rect",se);pt("line",Ze);pt("bezierCurve",kd);pt("arc",Wl);const wa=Object.freeze(Object.defineProperty({__proto__:null,updateProps:pe,initProps:Le,removeElement:yn,removeElementWithFadeOut:Gi,isElementRemoved:na,extendShape:ix,extendPath:sx,registerShape:pt,getShapeClass:vp,makePath:tu,makeImage:dp,mergePath:ft,resizePath:gp,subPixelOptimizeLine:_n,subPixelOptimizeRect:lx,subPixelOptimize:ux,getTransform:Lr,applyTransform:vt,transformDirection:co,groupTransition:fo,clipPointsByRect:yp,clipRectByRect:fx,createIcon:zn,linePolygonIntersect:hx,lineLineIntersect:mp,setTooltipConfig:ba,traverseElements:ho,Group:ee,Image:Vt,Text:ne,Circle:Gr,Ellipse:Ed,Sector:zt,Ring:no,Polygon:fr,Polyline:Tt,Rect:se,Line:Ze,BezierCurve:kd,Arc:Wl,IncrementalDisplayable:I0,CompoundPath:Od,LinearGradient:Hl,RadialGradient:L0,BoundingRect:ye,OrientedBoundingRect:Oi,Point:we,Path:Ie},Symbol.toStringTag,{value:"Module"}));var vo={};function _p(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 rl(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=X(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]=oe(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Ft(r,t,e,a){e=e||vo;for(var n=r instanceof ne,i=!1,o=0;o<zi.length;o++){var s=t[zi[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=rl(e,t),c=t.normal,f=!!c.getShallow("show"),v=Ae(c,a&&a.normal,e,!1,!n);v.text=u.normal,n||r.setTextConfig(Rc(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=!!oe(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Ae(s,a&&a[h],e,!0,!n),d.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=Rc(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&&(Aa(l).setLabelText=function(y){var m=rl(e,t,y);_p(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Wt(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 Ae(r,t,e,a,n){var i={};return dx(i,r,e,a,n),t&&B(i,t),i}function Rc(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=oe(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 dx(r,t,e,a,n){e=e||vo;var i=t.ecModel,o=i&&i.option.textStyle,s=px(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Nc(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),Nc(r,t,o,e,a,n,!0,!1)}function px(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 Ec=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],kc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Oc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Nc(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=oe(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=oe(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var h=oe(t.getShallow("textBorderType"),e.textBorderType);h!=null&&(r.lineDash=h);var d=oe(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<Ec.length;p++){var g=Ec[p],y=oe(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<kc.length;p++){var g=kc[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<Oc.length;p++){var g=Oc[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 xp(r,t){var e=t&&t.getModel("textStyle");return On([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 Aa=ae();function gx(r,t,e,a){if(!!r){var n=Aa(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 yx(r,t,e,a,n){var i=Aa(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=oe(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=Qd(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var v=rl({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);_p(r,v)}r.percent=0,(i.prevValue==null?Le:pe)(r,{percent:1},a,t,null,u)}var mx=["textStyle","color"],Go=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Fo=new ne,_x=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(mx):null)},r.prototype.getFont=function(){return xp({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 xx=_x;var Sp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Sx=fa(Sp),bx=function(){function r(){}return r.prototype.getLineStyle=function(t){return Sx(this,t)},r}(),bp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wx=fa(bp),Ax=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return wx(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){j(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Y(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}();Zl(Fr);R_(Fr);Ke(Fr,bx);Ke(Fr,Ax);Ke(Fr,B_);Ke(Fr,xx);const Se=Fr;var Tx=Math.round(Math.random()*10);function Ta(r){return[r||"",Tx++].join("_")}function Cx(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 Mx(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,f=u.noEntryList,v={};for(S(i,function(m){v[m]=!0});f.length;){var h=f.pop(),d=c[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),S(d.successor,p?y:g)}S(v,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){v[m]=!0,g(m)}};function e(i){var o={},s=[];return S(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),S(f,function(v){ie(u.predecessor,v)<0&&u.predecessor.push(v);var h=a(o,v);ie(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return S(i,function(l){ie(o,l)>=0&&s.push(l)}),s}}function hr(r,t){return j(j({},r,!0),t,!0)}const Dx={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ix={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",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},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 Hi="ZH",ru="EN",ia=ru,Ti={},au={},wp=ge.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ia).toUpperCase();return r.indexOf(Hi)>-1?Hi:ia}():ia;function Ap(r,t){r=r.toUpperCase(),au[r]=new Se(t),Ti[r]=t}function Lx(r){if(W(r)){var t=Ti[r.toUpperCase()]||{};return r===Hi||r===ru?Y(t):j(Y(t),Y(Ti[ia]),!1)}else return j(Y(r),Y(Ti[ia]),!1)}function al(r){return au[r]}function Px(){return au[ia]}Ap(ru,Dx);Ap(Hi,Ix);var nu=1e3,iu=nu*60,ln=iu*60,et=ln*24,Bc=et*365,Qa={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Zn="{yyyy}-{MM}-{dd}",Vc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zn,hour:Zn+" "+Qa.hour,minute:Zn+" "+Qa.minute,second:Zn+" "+Qa.second,millisecond:Qa.none},Wo=["year","month","day","hour","minute","second","millisecond"],Tp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Zt(r,t){return r+="","0000".substr(0,t-r.length)+r}function oa(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 Rx(r){return r===oa(r)}function Ex(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[ou(e)](),o=n[sa(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[go(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[xn(e)](),f=(c-1)%12+1,v=n[yo(e)](),h=n[mo(e)](),d=n[_o(e)](),p=a instanceof Se?a:al(a||wp)||Px(),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,Zt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Zt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Zt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Zt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Zt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Zt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Zt(d,3)).replace(/{S}/g,d+"")}function kx(r,t,e,a,n){var i=null;if(W(e))i=e;else if(X(e))i=e(r.value,t,{level:r.level});else{var o=B({},Qa);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=Cp(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=Tp.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(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 Cp(r,t){var e=wt(r),a=e[sa(t)]()+1,n=e[go(t)](),i=e[xn(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 zc(r,t,e){var a=de(r)?wt(r):r;switch(t=t||Cp(r,e),t){case"year":return a[ou(e)]();case"half-year":return a[sa(e)]()>=6?1:0;case"quarter":return Math.floor((a[sa(e)]()+1)/4);case"month":return a[sa(e)]();case"day":return a[go(e)]();case"half-day":return a[xn(e)]()/24;case"hour":return a[xn(e)]();case"minute":return a[yo(e)]();case"second":return a[mo(e)]();case"millisecond":return a[_o(e)]()}}function ou(r){return r?"getUTCFullYear":"getFullYear"}function sa(r){return r?"getUTCMonth":"getMonth"}function go(r){return r?"getUTCDate":"getDate"}function xn(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 Ox(r){return r?"setUTCFullYear":"setFullYear"}function Mp(r){return r?"setUTCMonth":"setMonth"}function Dp(r){return r?"setUTCDate":"setDate"}function Ip(r){return r?"setUTCHours":"setHours"}function Lp(r){return r?"setUTCMinutes":"setMinutes"}function Pp(r){return r?"setUTCSeconds":"setSeconds"}function Rp(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ep(r){if(!$d(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function kp(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 Gn=P0;function nl(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&On(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 Us(r)?n(r):de(r)&&i(r)?r+"":"-";var u=Bi(r);return i(u)?Ep(u):Us(r)?n(r):typeof r=="boolean"?r+"":"-"}var Gc=["a","b","c","d","e","f","g"],Ho=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Op(r,t,e){O(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=Gc[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(Gc[l],s),e?Ye(u):u)}return r}function Nx(r,t,e){return S(t,function(a,n){r=r.replace("{"+n+"}",e?Ye(a):a)}),r}function Bx(r,t){var e=W(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",W(r)?r:$(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Fc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ci=S,Np=["left","right","top","bottom","width","height"],Cr=[["width","left","right"],["height","top","bottom"]];function su(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),h,d;if(r==="horizontal"){var p=c.width+(v?-v.x+c.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Pr=su;te(su,"vertical");te(su,"horizontal");function Ue(r,t,e){e=Gn(e||0);var a=t.width,n=t.height,i=Z(r.left,a),o=Z(r.top,n),s=Z(r.right,a),l=Z(r.bottom,n),u=Z(r.width,a),c=Z(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 lu(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 Vx(r,t){return r[Cr[t][0]]!=null||r[Cr[t][1]]!=null&&r[Cr[t][2]]!=null}function Sn(r){var t=r.layoutMode||r.constructor.layoutMode;return $(t)?t:t?{type:t}:null}function lr(r,t,e){var a=e&&e.ignoreSize;!O(a)&&(a=[a,a]);var n=o(Cr[0],0),i=o(Cr[1],1);u(Cr[0],r,n),u(Cr[1],r,i);function o(c,f){var v={},h=0,d={},p=0,g=2;if(Ci(c,function(_){d[_]=r[_]}),Ci(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){Ci(c,function(h){f[h]=v[h]})}}function Ca(r){return Bp({},r)}function Bp(r,t){return t&&r&&Ci(Np,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var zx=ae(),Ma=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=Ta("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Sn(this),i=n?Ca(e):{},o=a.getTheme();j(e,o.get(this.mainType)),j(e,this.getDefaultOption()),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){j(this.option,e,!0);var n=Sn(this);n&&lr(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!I_(e))return e.defaultOption;var a=zx(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=j(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Vn(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);tp(Ma,Se);oo(Ma);Cx(Ma);Mx(Ma,Gx);function Gx(r){var t=[];return S(Ma.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return xt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const re=Ma;var Vp="";typeof navigator<"u"&&(Vp=navigator.platform||"");var Yr="rgba(0, 0, 0, 0.2)";const Fx={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:Vp.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 zp=F(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),nt="original",$e="arrayRows",gt="objectRows",Ct="keyedColumns",nr="typedArray",Gp="unknown",Nt="column",Da="row",Pe={Must:1,Might:2,Not:3},Fp=ae();function Wx(r){Fp(r).datasetMap=F()}function Hx(r,t,e){var a={},n=uu(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=Fp(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),S(r,function(p,g){var y=$(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 Wp(r,t,e){var a={},n=uu(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===gt||i===Ct)&&S(o,function(c,f){($(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=Up(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 uu(r){var t=r.get("data",!0);if(!t)return Vn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Me).models[0]}function Ux(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Vn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Me).models}function Hp(r,t){return Up(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Up(r,t,e,a,n,i){var o,s=5;if(Xe(r))return Pe.Not;var l,u;if(a){var c=a[i];$(c)?(l=c.name,u=c.type):W(c)&&(l=c)}if(u!=null)return u==="ordinal"?Pe.Must:Pe.Not;if(t===$e){var f=r;if(e===Da){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||Xe(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],_=xa(g);if(!O(_))return Pe.Not;if((o=x(_[i]))!=null)return o}function x(w){var b=W(w);if(w!=null&&isFinite(w)&&w!=="")return b?Pe.Might:Pe.Not;if(b&&w!=="-")return Pe.Must}return Pe.Not}var il=F();function $x(r,t){tt(il.get(r)==null&&t),il.set(r,t)}function Yx(r,t,e){var a=il.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Wc=ae(),Zx=ae(),cu=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=ue(this.get("color",!0)),i=this.get("colorLayer",!0);return $p(this,Wc,n,i,t,e,a)},r.prototype.clearColorPalette=function(){Kx(this,Wc)},r}();function Hc(r,t,e,a){var n=ue(r.get(["aria","decal","decals"]));return $p(r,Zx,n,null,t,e,a)}function Xx(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 $p(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:Xx(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 Kx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Xn,Ea,Uc,$c="\0_ec_inner",qx=1,Yp=function(r){E(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=Xc(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Xc(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"?Uc(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;Wx(this),S(e,function(f,v){f!=null&&(re.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?Y(f):j(n[v],f,!0))}),u&&u.each(function(f,v){re.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),re.topologicalTravel(s,re.getAllClassMainTypes(),c,this);function c(f){var v=Yx(this,f,ue(e[f])),h=i.get(f),d=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=qd(h,v,d);x_(p,f,re),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,A=x.newOption;if(!A)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=f==="series",C=re.getClass(f,x.keyInfo.subType,!T);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=x.keyInfo.name,b.mergeOption(A,this),b.optionUpdated(A,!1);else{var D=B({componentIndex:w},x.keyInfo);b=new C(A,this,this,D),B(b,D),x.brandNew&&(b.__requireNewView=!0),b.init(A,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"&&Xn(this)}this._seriesIndices||Xn(this)},t.prototype.getOption=function(){var e=Y(this.option);return S(e,function(a,n){if(re.hasClass(n)){for(var i=ue(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!gn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[$c],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(ue(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Yc("id",i,s):o!=null?l=Yc("name",o,s):l=ve(s,function(u){return!!u}),Zc(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(Zc(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(X(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=W(e)?i.get(e):$(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){Ea(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){Ea(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 Ea(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Ea(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){Xn(this);var a=this._componentsMap,n=[];a.each(function(i,o){re.hasClass(o)&&n.push(o)}),re.topologicalTravel(n,re.getAllClassMainTypes(),function(i){S(a.get(i),function(o){o&&(i!=="series"||!jx(o,e))&&o.restoreData()})})},t.internalField=function(){Xn=function(e){var a=e._seriesIndices=[];S(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=F(a)},Ea=function(e){},Uc=function(e,a){e.option={},e.option[$c]=qx,e._componentsMap=F({series:[]}),e._componentsCount=F();var n=a.aria;$(n)&&n.enabled==null&&(n.enabled=!0),Jx(a,e._theme.option),j(a,Fx,!1),e._mergeOption(a,null)}}(),t}(Se);function jx(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function Jx(r,t){var e=r.color&&!r.colorLayer;S(t,function(a,n){n==="colorLayer"&&e||re.hasClass(n)||(typeof a=="object"?r[n]=r[n]?j(r[n],a,!1):Y(a):r[n]==null&&(r[n]=a))})}function Yc(r,t,e){if(O(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 Zc(r,t){return t.hasOwnProperty("subType")?ve(r,function(e){return e&&e.subType===t.subType}):r}function Xc(r){var t=F();return r&&S(ue(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ke(Yp,cu);const Zp=Yp;var Qx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],eS=function(){function r(t){S(Qx,function(e){this[e]=G(t[e],t)},this)}return r}();const Xp=eS;var Uo={},tS=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 fu=tS;var rS=/^(min|max)?(.+)$/,aS=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(S(ue(t.series),function(o){o&&o.data&&Xe(o.data)&&$s(o.data)}),S(ue(t.dataset),function(o){o&&o.source&&Xe(o.source)&&$s(o.source)})),t=Y(t);var n=this._optionBackup,i=nS(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=[],Y(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=Y(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++)iS(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!sS(o,this._currentMediaIndices)&&(s=z(o,function(c){return Y(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function nS(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&&O(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 iS(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return S(r,function(i,o){var s=o.match(rS);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();oS(a[u],i,l)||(n=!1)}}),n}function oS(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function sS(r,t){return r.join(",")===t.join(",")}const lS=aS;var ot=S,bn=$,Kc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $o(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=Kc.length;e<a;e++){var n=Kc[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?j(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?j(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ee(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,K(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function en(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=bn(r)&&r[t],a=bn(e)&&e.textStyle;if(a)for(var n=0,i=xc.length;n<i;n++){var o=xc[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Je(r){r&&(en(r),_e(r,"label"),r.emphasis&&_e(r.emphasis,"label"))}function uS(r){if(!!bn(r)){$o(r),en(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&&!Xe(i))for(var o=0;o<i.length;o++)Je(i[o]);S(r.categories,function(u){en(u)})}if(n&&!Xe(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++)O(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){en(u)})):r.type==="tree"&&en(r.leaves)}}function Lt(r){return O(r)?r:r?[r]:[]}function qc(r){return(O(r)?r[0]:r)||{}}function cS(r,t){ot(Lt(r.series),function(a){bn(a)&&uS(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){bn(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;O(n)&&S(n,function(i){$(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(qc(r.axisPointer),"label"),_e(qc(r.tooltip).axisPointer,"label")}function fS(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 hS(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 jc(r){r&&S(vS,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var vS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],dS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yo=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ka(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 Qc(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function pS(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Kp(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Kp(r[e].children,t)}function qp(r,t){cS(r,t),r.series=ue(r.series),S(r.series,function(e){if(!!$(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&&!Xe(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=fS(e,"pointer.color");o!=null&&hS(e,"itemStyle.color",o)}else if(a==="bar"){ka(e),ka(e.backgroundStyle),ka(e.emphasis);var n=e.data;if(n&&!Xe(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(ka(n[i]),ka(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)),Qc(e),Kp(e.data,Qc)}else a==="graph"||a==="sankey"?pS(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)),jc(e)}}),r.dataRange&&(r.visualMap=r.dataRange),S(dS,function(e){var a=r[e];a&&(O(a)||(a=[a]),S(a,function(n){jc(n)}))})}function gS(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(yS)}function yS(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=u_(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||Gp,this.seriesLayoutBy=t.seriesLayoutBy||Nt,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&&Hp(this,a)===Pe.Must&&(n.type="ordinal")}}return r}();function hu(r){return r instanceof xo}function ol(r,t,e){e=e||jp(r);var a=t.seriesLayoutBy,n=_S(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:Y(t)});return i}function vu(r){return new xo({data:r,sourceFormat:Xe(r)?nr:nt})}function mS(r){return new xo({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Y(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function jp(r){var t=Gp;if(Xe(r))t=nr;else if(O(r)){r.length===0&&(t=$e);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(O(n)||Xe(n)){t=$e;break}else if($(n)){t=gt;break}}}}else if($(r)){for(var i in r)if(Q(r,i)&&En(r[i])){t=Ct;break}}return t}function _S(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:ef(n),startIndex:o,dimensionsDetectedCount:i};if(t===$e){var s=r;a==="auto"||a==null?tf(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},e,s,10):o=de(a)?a:a?1:0,!n&&o===1&&(n=[],tf(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Da?s.length:s[0]?s[0].length:null}else if(t===gt)n||(n=xS(r));else if(t===Ct)n||(n=[],S(r,function(u,c){n.push(c)}));else if(t===nt){var l=xa(r[0]);i=O(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ef(n),dimensionsDetectedCount:i}}function xS(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return De(e)}function ef(r){if(!!r){var t=F();return z(r,function(e,a){e=$(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 tf(r,t,e,a){if(t===Da)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 Jp(r){var t=r.sourceFormat;return t===gt||t===Ct}var pr,gr,yr,rf,af,Qp=function(){function r(t,e){var a=hu(t)?t:vu(t);this._source=a;var n=this._data=a.data;a.sourceFormat===nr&&(this._offset=0,this._dimSize=e,this._data=n),af(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;af=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,h=rf[du(u,c)];if(B(o,h),u===nr)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=eg(u,c);o.getItem=G(d,null,s,f,v);var p=tg(u,c);o.count=G(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};rf=(t={},t[$e+"_"+Nt]={pure:!0,appendData:i},t[$e+"_"+Da]={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[nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),nf=function(r,t,e,a){return r[a]},SS=(pr={},pr[$e+"_"+Nt]=function(r,t,e,a){return r[a+t]},pr[$e+"_"+Da]=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},pr[gt]=nf,pr[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},pr[nt]=nf,pr);function eg(r,t){var e=SS[du(r,t)];return e}var of=function(r,t,e){return r.length},bS=(gr={},gr[$e+"_"+Nt]=function(r,t,e){return Math.max(0,r.length-t)},gr[$e+"_"+Da]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},gr[gt]=of,gr[Ct]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},gr[nt]=of,gr);function tg(r,t){var e=bS[du(r,t)];return e}var Zo=function(r,t,e){return r[t]},wS=(yr={},yr[$e]=Zo,yr[gt]=function(r,t,e){return r[e]},yr[Ct]=Zo,yr[nt]=function(r,t,e){var a=xa(r);return a instanceof Array?a[t]:a},yr[nr]=Zo,yr);function rg(r){var t=wS[r];return t}function du(r,t){return r===$e?r+"_"+t:r}function pa(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 rg(i)(a,o,s)}else{var l=a;return i===nt&&(l=xa(a)),l}}}}var AS=/\{@(.+?)\}/g,ag=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&&O(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(X(i))return l.status=e,l.dimensionIndex=n,i(l);if(W(i)){var c=Op(i,l);return c.replace(AS,function(f,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=pa(s,t,d);if(o&&O(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return pa(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function sf(r){var t,e;return $(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function un(r){return new TS(r)}var TS=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(f||h<d)){var p=this._progress;if(O(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){lf.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:lf.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),O(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}(),lf=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 Mi(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 W(r)?On(r):r}});var CS=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=W(t),l=W(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),MS=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 Mi(t,e)},r}();function DS(r,t){var e=new MS,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Nt&&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 _="";Q(l,y)&&Fe(_),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=eg(n,Nt);t.__isBuiltIn&&(e.getRawDataItem=function(p){return f(a,i,s,p)},e.getRawData=G(IS,null,r)),e.cloneRawData=G(LS,null,r);var v=tg(n,Nt);e.count=G(v,null,a,i,s);var h=rg(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=G(PS,null,s,l),e.cloneAllDimensionInfo=G(RS,null,s),e}function IS(r){var t=r.sourceFormat;if(!pu(t)){var e="";Fe(e)}return r.data}function LS(r){var t=r.sourceFormat,e=r.data;if(!pu(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(B({},e[i]));return n}}function PS(r,t,e){if(e!=null){if(de(e)||!isNaN(e)&&!Q(t,e))return r[e];if(Q(t,e))return t[e]}}function RS(r){return Y(r)}var ng=F();function ES(r){r=Y(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,ng.set(t,r)}function kS(r,t,e){var a=ue(r),n=a.length,i="";n||Fe(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=OS(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function OS(r,t,e,a){var n="";t.length||Fe(n),$(r)||Fe(n);var i=r.type,o=ng.get(i);o||Fe(n);var s=z(t,function(u){return DS(u,o)}),l=ue(o.transform({upstream:s[0],upstreamList:s,config:Y(r.config)}));return z(l,function(u,c){var f="";$(u)||Fe(f),u.data||Fe(f);var v=jp(u.data);pu(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:Nt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Nt,sourceHeader:0,dimensions:u.dimensions};return ol(u.data,h,null)})}function pu(r){return r===$e||r===gt}var So="undefined",NS=typeof Uint32Array===So?Array:Uint32Array,BS=typeof Uint16Array===So?Array:Uint16Array,ig=typeof Int32Array===So?Array:Int32Array,uf=typeof Float64Array===So?Array:Float64Array,og={float:uf,int:ig,ordinal:Array,number:Array,time:uf},Xo;function Oa(r){return r>65535?NS:BS}function Zr(){return[1/0,-1/0]}function VS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function cf(r,t,e,a,n){var i=og[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 sl=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=[],Jp(n),this._dimensions=z(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 og[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];cf(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=z(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Zr()),cf(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=Oa(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=Oa(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=Oa(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 A=e.getRawIndex(y),m=h[n[0]][A];(m>=f&&m<=v||isNaN(m))&&(l[u++]=A)}else for(var y=0;y<o;y++){for(var T=!0,A=e.getRawIndex(y),C=0;C<i;C++){var D=n[C],m=h[D][A];(m<t[D][0]||m>t[D][1])&&(T=!1)}T&&(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(Oa(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,A=Math.min(d+l,o),T=d-1,C=i[u];c=-1,v=b;for(var D=-1,M=0,_=b;_<A;_++){var x=this.getRawIndex(_),w=i[x];if(isNaN(w)){M++,D<0&&(D=x);continue}f=Math.abs((T-y)*(w-C)-(T-_)*(m-C)),f>c&&(c=f,v=x)}M>0&&M<A-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(Oa(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&&ua(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?VS(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=Y(this._extent),t._rawExtent=Y(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 Mi(e[i],this._dimensions[i])}Xo={arrayRows:t,objectRows:function(e,a,n,i){return Mi(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Mi(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),zS=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(Kn(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=Xe(s)?nr:nt,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=oe(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=oe(f.sourceHeader,v.sourceHeader),p=oe(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[ol(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=[ol(_,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&&ff(i)}var o,s=[],l=[];return S(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&ff(f),s.push(c),l.push(u._getVersionSign())}),a?o=kS(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[mS(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];Kn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new sl,s.initData(new Qp(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Kn(t)){var e=uu(t);return e?[e.getSourceManager()]:[]}else return z(Ux(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(Kn(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 Kn(r){return r.mainType==="series"}function ff(r){throw new Error(r)}var sg="line-height:1";function lg(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 GS=[0,10,20,30],FS=["",`
`,`

`,`


`];function At(r,t){return t.type=r,t}function ll(r){return r.type==="section"}function ug(r){return ll(r)?WS:HS}function cg(r){if(ll(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=cg(n);i>=t&&(t=i+ +(a&&(!i||ll(n)&&!n.noHeader)))}),t}return 0}function WS(r,t,e,a){var n=t.noHeader,i=US(cg(t)),o=[],s=t.blocks||[];tt(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var c=new CS(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=ug(d)(g?B(B({},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):ul(o.join(""),n?e:i.html);if(n)return f;var v=nl(t.header,"ordinal",r.useUTC),h=lg(a,r.renderMode).nameStyle;return r.renderMode==="richText"?fg(r,v,h)+i.richText+f:ul('<div style="'+h+";"+sg+';">'+Ye(v)+"</div>"+f,e)}function HS(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=O(x)?x:[x],z(x,function(w,b){return nl(w,O(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":nl(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=lg(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":fg(r,v,m))+(o?"":ZS(r,d,p,g,_)):ul((s?"":f)+(i?"":$S(v,!s,m))+(o?"":YS(d,p,g,_)),e)}}function hf(r,t,e,a,n,i){if(!!r){var o=ug(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function US(r){return{html:GS[r],richText:FS[r]}}function ul(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+sg+';">'+r+e+"</div>"}function $S(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ye(r)+"</span>"}function YS(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=O(r)?r:[r],'<span style="'+i+";"+a+'">'+z(r,function(o){return Ye(o)}).join("&nbsp;&nbsp;")+"</span>"}function fg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function ZS(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(O(t)?t.join("  "):t,i)}function hg(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Nr(a)}function vg(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=Yd()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=Bx({color:e,type:t,renderMode:a,markerId:n});return W(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};O(e)?S(e,function(i){return B(a,i)}):B(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function XS(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=O(s),u=hg(t,e),c,f,v,h;if(o>1||l&&!o){var d=KS(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=pa(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=$l(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return At("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[At("nameValue",{markerType:"item",markerColor:u,name:_,noName:!On(_),value:c,valueType:f,dataIndex:e})].concat(v||[])})}function KS(r,t,e,a,n){var i=t.getData(),o=ua(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(pa(i,e,f),f)}):S(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(At("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xt=ae();function qn(r,t){return r.getName(t)||r.getId(t)}var Di="__universalTransitionEnabled",bo=function(r){E(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=un({count:jS,reset:JS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Xt(this).sourceManager=new zS(this);i.prepareSource();var o=this.getInitialData(e,n);df(o,this),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,vf(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Sn(this),i=n?Ca(e):{},o=this.subType;re.hasClass(o)&&(o+="Series"),j(e,a.getTheme().get(this.subType)),j(e,this.getDefaultOption()),Vi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Sn(this);n&&lr(this.option,e,n);var i=Xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);df(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,vf(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Xe(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Vi(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=cl(this);if(a){var n=a.context.data;return e==null?n:n.getLinkedData(e)}else return Xt(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=cl(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Xt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return F(e)},t.prototype.getSourceManager=function(){return Xt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Xt(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,n){return XS({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=cu.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=qn(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[qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Di])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"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],v=qn(e,f);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var h=a[l-1],v=qn(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 re.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}(re);Ke(bo,ag);Ke(bo,cu);tp(bo,re);function vf(r){var t=r.name;$l(r)||(r.name=qS(r)||t)}function qS(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 jS(r){return r.model.getRawData().count()}function JS(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 df(r,t){S(R0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,te(e1,t))})}function e1(r,t){var e=cl(r);return e&&e.setOutputEnd((t||this).count()),t}function cl(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 gu=function(){function r(){this.group=new ee,this.uid=Ta("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}();Zl(gu);oo(gu);const Te=gu;function yu(){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 dg=ae(),t1=yu(),mu=function(){function r(){this.group=new ee,this.uid=Ta("viewChart"),this.renderTask=un({plan:r1,reset:a1}),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||gf(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||gf(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){ho(this.group,t)},r.markUpdateMethod=function(t,e){dg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function pf(r,t,e){r&&Qs(r)&&(t==="emphasis"?ha:va)(r,e)}function gf(r,t,e){var a=Or(r,t),n=t&&t.highlightKey!=null?rx(t.highlightKey):null;a!=null?S(ue(a),function(i){pf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){pf(i,e,n)})}Zl(mu);oo(mu);function r1(r){return t1(r.model)}function a1(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&dg(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),n1[l]}var n1={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=mu;var Ui="\0__throttleOriginMethod",yf="\0__throttleRate",mf="\0__throttleType";function _u(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 Fn(r,t,e,a){var n=r[t];if(!!n){var i=n[Ui]||n,o=n[mf],s=n[yf];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=_u(i,e,a==="debounce"),n[Ui]=i,n[mf]=a,n[yf]=e}return n}}function wn(r,t){var e=r[t];e&&e[Ui]&&(e.clear&&e.clear(),r[t]=e[Ui])}var _f=ae(),xf={itemStyle:fa(bp,!0),lineStyle:fa(Sp,!0)},i1={lineStyle:"stroke",itemStyle:"fill"};function pg(r,t){var e=r.visualStyleMapper||xf[t];return e||(console.warn("Unknown style type '"+t+"'."),xf.itemStyle)}function gg(r,t){var e=r.visualDrawType||i1[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var o1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=pg(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=gg(r,a),u=o[l],c=X(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"||X(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||X(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=B({},o);g[l]=c(p),h.setItemVisual(d,"style",g)}}}},Na=new Se,s1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=pg(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Na.option=l[a];var u=n(Na),c=o.ensureUniqueItemVisual(s,"style");B(c,u),Na.option.decal&&(o.setItemVisual(s,"decal",Na.option.decal),Na.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},l1={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)),_f(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=_f(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=gg(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)}})}})}},jn=Math.PI;function u1(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 ee,a=new se({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 se({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 Wl({shape:{startAngle:-jn/2,endAngle:-jn/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:jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jn*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 c1=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="";tt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;S(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else f&&f.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=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)||un({plan:p1,reset:g1,count:m1}));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||un({reset:f1});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="";tt(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,S(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,un({reset:h1,onDirty:d1})));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 X(t)&&(t={overallReset:t,seriesType:_1(t)}),t.uid=Ta("stageHandler"),e&&(t.visualType=e),t},r}();function f1(r){r.overallReset(r.ecModel,r.api,r.payload)}function h1(r){return r.overallProgress&&v1}function v1(){this.agent.dirty(),this.getDownstream().dirty()}function d1(){this.agent&&this.agent.dirty()}function p1(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function g1(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ue(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,a){return yg(a)}):y1}var y1=yg(0);function yg(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 m1(r){return r.data.count()}function _1(r){$i=null;try{r(An,mg)}catch{}return $i}var An={},mg={},$i;_g(An,Zp);_g(mg,Xp);An.eachSeriesByType=An.eachRawSeriesByType=function(r){$i=r};An.eachComponent=function(r){r.mainType==="series"&&r.subType&&($i=r.subType)};function _g(r,t){for(var e in t.prototype)r[e]=bt}const xg=c1;var Sf=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const x1={color:Sf,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Sf]};var Ve="#B9B8CE",bf="#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"}}}},wf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Sg={darkMode:!0,color:wf,backgroundColor:bf,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:bf},dayLabel:{color:Ve},monthLabel:{color:Ve},yearLabel:{color:Ve}},timeAxis:Jn(),logAxis:Jn(),valueAxis:Jn(),categoryAxis:Jn(),line:{symbol:"circle"},graph:{color:wf},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"}}};Sg.categoryAxis.splitLine.show=!1;const S1=Sg;var b1=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(W(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}(),fl=["symbol","symbolSize","symbolRotate","symbolOffset"],Af=fl.concat(["symbolKeepAspect"]),w1={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<fl.length;o++){var s=fl[o],l=r.get(s);X(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(B({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}}},A1={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<Af.length;s++){var l=Af[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function bg(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 wg(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function T1(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function Ag(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=B({},n),o.dispatchAction(B(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=Or(f,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:O(v)?f.getName(v[0]):f.getName(v),selected:W(l)?l:B({},l)})}})}function C1(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 Mr(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var M1=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()}}),D1=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()}}),I1=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()}}),L1=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()}}),P1={line:Ze,rect:se,roundRect:se,square:se,circle:Gr,diamond:D1,pin:I1,arrow:L1,triangle:M1},R1={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}},Yi={};S(P1,function(r,t){Yi[t]=new r});var E1=Ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Ys(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=Yi[a];n||(a="rect",n=Yi[a]),R1[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function k1(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=dp(r.slice(8),new ye(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=tu(r.slice(7),{},new ye(t,e,a,n),o?"center":"cover"):l=new E1({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=k1,i&&l.setColor(i),l}function xu(r){return O(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function wo(r,t){if(r!=null)return O(r)||(r=[r,r]),[Z(r[0],t[0])||0,Z(oe(r[1],r[0]),t[1])||0]}var qo=new E0,Tf=new k0(100),Cf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Zi(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<Cf.length;++v){var h=o[Cf[v]];if(h!=null&&!O(h)&&!W(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=Cg(o.dashArrayX),y=O1(o.dashArrayY),m=Tg(o.symbol),_=N1(g),x=Mg(y),w=!n&&Nd.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},A=C(),T;w&&(w.width=A.width*e,w.height=A.height*e,T=w.getContext("2d")),D(),f&&Tf.put(d,w||b),u.image=w,u.svgElement=b,u.svgWidth=A.width,u.svgHeight=A.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=mc(M,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=mc(P,m[I].length);M*=P;var R=x*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.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,P=0,R=0,N=0;L<A.height;){if(P%2===0){for(var U=R/2%m.length,k=0,V=0,H=0;k<A.width*2;){for(var J=0,I=0;I<g[N].length;++I)J+=g[N][I];if(J<=0)break;if(V%2===0){var ce=(1-o.symbolSize)*.5,fe=k+g[N][V]*ce,Ce=L+y[P]*ce,it=g[N][V]*o.symbolSize,be=y[P]*o.symbolSize,Ut=H/2%m[U].length;$t(fe,Ce,it,be,m[U][Ut])}k+=g[N][V],++H,++V,V===g[N].length&&(V=0)}++N,N===g.length&&(N=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function $t(Ia,La,Un,$n,Yn){var vr=n?1:e,Yt=Oe(Yn,Ia*vr,La*vr,Un*vr,$n*vr,o.color,o.symbolKeepAspect);if(n){var It=a.painter.renderOneToVNode(Yt);It&&b.children.push(It)}else O0(T,Yt)}}}}function Tg(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!W(r[e])){t=!1;break}if(t)return Tg([r]);for(var a=[],e=0;e<r.length;++e)W(r[e])?a.push([r[e]]):a.push(r[e]);return a}function Cg(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 Cg([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=z(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function O1(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=z(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function N1(r){return z(r,function(t){return Mg(t)})}function Mg(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function B1(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Zi(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Zi(n,t)}}})}var V1=new _a;const lt=V1;var Dg={};function z1(r,t){Dg[r]=t}function G1(r){return Dg[r]}var F1=1,W1=800,H1=900,U1=1e3,$1=2e3,Y1=5e3,Ig=1e3,Z1=1100,Su=2e3,Lg=3e3,X1=4e3,Ao=4500,K1=4600,q1=5e3,j1=6e3,Pg=7e3,J1={PROCESSOR:{FILTER:U1,SERIES_FILTER:W1,STATISTIC:Y1},VISUAL:{LAYOUT:Ig,PROGRESSIVE_LAYOUT:Z1,GLOBAL:Su,CHART:Lg,POST_CHART_LAYOUT:K1,COMPONENT:X1,BRUSH:q1,CHART_ITEM:Ao,ARIA:j1,DECAL:Pg}},Re="__flagInMainProcess",Ge="__pendingUpdate",jo="__needsUpdateStatus",Mf=/^[a-zA-Z0-9_]+$/,Jo="__connectUpdateStatus",Df=0,Q1=1,eb=2;function Rg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return kg(this,r,t)}}function Eg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return kg(this,r,t)}}function kg(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),_a.prototype[t].apply(r,e)}var Og=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(_a),Ng=Og.prototype;Ng.on=Eg("on");Ng.off=Eg("off");var Kr,Qo,Qn,Kt,es,ts,rs,Ba,Va,If,Lf,as,Pf,ei,Rf,Bg,qe,Ef,Vg=function(r){E(t,r);function t(e,a,n){var i=r.call(this,new b1)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},W(a)&&(a=zg[a]),i._dom=e;var o="canvas",s="auto",l=!1;n.ssr;var u=i._zr=uc(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:oe(n.useDirtyRect,l),useCoarsePointer:oe(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=_u(G(u.flush,u),17),a=Y(a),a&&qp(a,!0),i._theme=a,i._locale=Lx(n.locale||wp),i._coordSysMgr=new fu;var c=i._api=Rf(i);function f(v,h){return v.__prio-h.__prio}return ko(Ki,f),ko(hl,f),i._scheduler=new xg(i,c,hl,Ki),i._messageCenter=new Og,i._initEvents(),i.resize=G(i.resize,i),u.animation.on("frame",i._onframe,i),If(u,i),Lf(u,i),$s(i),i}return t.prototype._onframe=function(){if(!this._disposed){Ef(this);var e=this._scheduler;if(this[Ge]){var a=this[Ge].silent;this[Re]=!0;try{Kr(this),Kt.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,Ba.call(this,a),Va.call(this,a)}else if(e.unfinished){var n=F1,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),ts(this,i),e.performVisualTasks(i),ei(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($(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 lS(this._api),u=this._theme,c=this._model=new Zp;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},vl);var f={seriesTransition:s,optionChanged:!0};if(n)this[Ge]={silent:i,updateParams:f},this[Re]=!1,this.getZr().wakeUp();else{try{Kr(this),Kt.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,Ba.call(this,i),Va.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(kf[n]){var l=s,u=s,c=-s,f=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();S(fn,function(_,x){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Y(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=Nd.createCanvas(),y=uc(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 se({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),S(v,function(_){var x=new Vt({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=nn(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=nn(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?bg(s,l,a):wg(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;S(tb,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Mr(s,function(d){var p=q(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},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(cn,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)}),C1(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(),wu,"");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 fn[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),Kt.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Re]=!1,o}this[Re]=!1,Ba.call(this,i),Va.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if($(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!dl[e]){var n=dl[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=B({},e);return a.type=cn[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if($(a)||(a={silent:!!a}),!!Xi[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(),Ba.call(this,n),Va.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,A){b!=="series"&&x(A)}):h.eachSeries(x);function x(b){var A=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,C=!A&&g[T];if(!C){var D=xt(b.type),M=v?Te.getClass(D.main,D.sub):We.getClass(D.sub);C=new M,C.init(h,m),g[T]=C,p.push(C),y.add(C.group)}b.__viewId=C.__id=T,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(C,b,h,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Qn=function(f,v,h,d,p){var g=f._model;if(g.setUpdatePayload(h),!d){S([].concat(f._componentsViews).concat(f._chartsViews),w);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=h.excludeSeriesId,x;_!=null&&(x=F(),S(ue(_),function(b){var A=ke(b,null);A!=null&&x.set(A,!0)})),g&&g.eachComponent(m,function(b){var A=x&&x.get(b.id)!=null;if(!A)if(Dc(h))if(b instanceof dt)h.type===Dr&&!h.notBlur&&!b.get(["emphasis","disabled"])&&Z_(b,h,f._api);else{var T=Jl(b.mainType,b.componentIndex,h.name,f._api),C=T.focusSelf,D=T.dispatchers;h.type===Dr&&C&&!h.notBlur&&Js(b.mainType,b.componentIndex,f._api),D&&S(D,function(M){h.type===Dr?ha(M):va(M)})}else el(h)&&b instanceof dt&&(q_(b,h,f._api),Cc(b),qe(f))},f),g&&g.eachComponent(m,function(b){var A=x&&x.get(b.id)!=null;A||w(f[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},f);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,f._api,h)}},Kt={prepareAndUpdate:function(f){Kr(this),Kt.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,d),y.performDataProcessorTasks(h,f),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}),ei(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){Kt.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=nn(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=Xi[p],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&xt(_[0]);this[Re]=!0;var b=[f],A=!1;f.batch&&(A=!0,b=z(f.batch,function(P){return P=K(B({},P),f),P.batch=null,P}));var T=[],C,D=el(f),M=Dc(f);if(M&&fp(this._api),S(b,function(P){if(C=y.action(P,h._model,h._api),C=C||B({},P),C.type=m.event||C.type,T.push(C),M){var R=Yl(f),N=R.queryOptionMap,U=R.mainTypeSpecified,k=U?N.keys()[0]:"series";Qn(h,x,P,k),qe(h)}else D?(Qn(h,x,P,"series"),qe(h)):w&&Qn(h,x,P,w.main,w.sub)}),x!=="none"&&!M&&!D&&!w)try{this[Ge]?(Kr(this),Kt.update.call(this,f),this[Ge]=null):Kt[x].call(this,f)}catch(P){throw this[Re]=!1,P}if(A?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[Re]=!1,!v){var I=this._messageCenter;if(I.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:g,selected:j_(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(L.type,L)}}},Ba=function(f){for(var v=this._pendingActions;v.length;){var h=v.shift();rs.call(this,h,f)}},Va=function(f){!f&&this.trigger("updated")},If=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")})},Lf=function(f,v){f.on("mouseover",function(h){var d=h.target,p=Mr(d,Qs);p&&(X_(p,h,v._api),qe(v))}).on("mouseout",function(h){var d=h.target,p=Mr(d,Qs);p&&(K_(p,h,v._api),qe(v))}).on("click",function(h){var d=h.target,p=Mr(d,function(m){return q(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=q(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(v){v.clearColorPalette()})}function a(f){var v=[],h=[],d=!1;if(f.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:v).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(h),g,y;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),Pf(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive=!1}),ei(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive||g.remove(v,h)})},Pf=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)})},ei=function(f,v,h,d,p,g){var y=f._scheduler;p=B(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),Cc(_)}),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)},qe=function(f){f[jo]=!0,f.getZr().wakeUp()},Ef=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===lo&&f.states.emphasis?v.push("emphasis"):f.hoverState===so&&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&&ax(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)}})}Rf=function(f){return new(function(v){E(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){ha(d,p),qe(f)},h.prototype.leaveEmphasis=function(d,p){va(d,p),qe(f)},h.prototype.enterBlur=function(d){Y_(d),qe(f)},h.prototype.leaveBlur=function(d){sp(d),qe(f)},h.prototype.enterSelect=function(d){lp(d),qe(f)},h.prototype.leaveSelect=function(d){up(d),qe(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}(Xp))(f)},Bg=function(f){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Jo]=d}}S(cn,function(h,d){f._messageCenter.on(d,function(p){if(kf[f.group]&&f[Jo]!==Df){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),y=[];S(fn,function(m){m!==f&&m.group===f.group&&y.push(m)}),v(y,Df),S(y,function(m){m[Jo]!==Q1&&m.dispatchAction(g)}),v(y,eb)}})})}}(),t}(_a),bu=Vg.prototype;bu.on=Rg("on");bu.off=Rg("off");bu.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var tb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Xi={},cn={},hl=[],vl=[],Ki=[],zg={},dl={},fn={},kf={},rb=+new Date-0,wu="_echarts_instance_";function MR(r,t,e){var a=!(e&&e.ssr);if(a){var n=ab(r);if(n)return n}var i=new Vg(r,t,e);return i.id="ec_"+rb++,fn[i.id]=i,a&&Jd(r,wu,i.id),Bg(i),lt.trigger("afterinit",i),i}function ab(r){return fn[T_(r,wu)]}function Gg(r,t){zg[r]=t}function Fg(r){ie(vl,r)<0&&vl.push(r)}function Wg(r,t){Tu(hl,r,t,$1)}function nb(r){Au("afterinit",r)}function ib(r){Au("afterupdate",r)}function Au(r,t){lt.on(r,t)}function Mt(r,t,e){X(t)&&(e=t,t="");var a=$(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!cn[t]&&(tt(Mf.test(a)&&Mf.test(t)),Xi[a]||(Xi[a]={action:e,actionInfo:r}),cn[t]=a)}function ob(r,t){fu.register(r,t)}function sb(r,t){Tu(Ki,r,t,Ig,"layout")}function Wr(r,t){Tu(Ki,r,t,Lg,"visual")}var Of=[];function Tu(r,t,e,a,n){if((X(t)||$(t))&&(e=t,t=a),!(ie(Of,e)>=0)){Of.push(e);var i=xg.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Hg(r,t){dl[r]=t}function lb(r,t,e){var a=G1("registerMap");a&&a(r,t,e)}var ub=ES;Wr(Su,o1);Wr(Ao,s1);Wr(Ao,l1);Wr(Su,w1);Wr(Ao,A1);Wr(Pg,B1);Fg(qp);Wg(H1,gS);Hg("default",u1);Mt({type:Dr,event:Dr,update:Dr},bt);Mt({type:wi,event:wi,update:wi},bt);Mt({type:on,event:on,update:on},bt);Mt({type:Ai,event:Ai,update:Ai},bt);Mt({type:sn,event:sn,update:sn},bt);Gg("light",x1);Gg("dark",S1);function za(r){return r==null?0:r.length||1}function Nf(r){return r}var cb=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Nf,this._newKeyGetter=n||Nf,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=za(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=za(u),v=za(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=za(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=za(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Tn=cb;var fb=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function hb(r,t){var e={},a=e.encode={},n=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),db(h.type)&&(i[0]=v),ns(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}zp.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=z(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new fb(s,t),e}function ns(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function vb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function db(r){return!(r==="ordinal"||r==="time")}var pb=function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r}();const Ii=pb;var gb=ae(),yb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ug=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=Zg(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return oe(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=Jp(this.source),a=!Xg(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=e?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=yb[u]||"f",c&&(n+=c.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function $g(r){return r instanceof Ug}function Yg(r){for(var t=F(),e=0;e<(r||[]).length;e++){var a=r[e],n=$(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Zg(r){var t=gb(r);return t.dimNameMap||(t.dimNameMap=Yg(r.dimensionsDefine))}function Xg(r){return r>30}var Ga=$,qt=z,mb=typeof Int32Array>"u"?Array:Int32Array,_b="e\0\0",Bf=-1,xb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Sb=["_approximateExtent"],Vf,ti,Fa,Wa,is,ri,os,bb=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;$g(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=W(f)?new Ii({name:f}):f instanceof Ii?f:new Ii(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 sl&&(i=t),!i){var o=this.dimensions,s=hu(t)||En(t)?new Qp(t,o.length):t;i=new sl;var l=qt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=hb(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&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!==nr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===nt;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&h_(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);Vf(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){Ga(t)?B(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=Fa(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 ti(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 O(t)?n.getValues(qt(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a[e];return n==null||isNaN(n)?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){X(t)&&(a=e,e=t,t=[]);var n=a||this,i=qt(Wa(t),this._getStoreDimIndex,this);this._store.each(i,n?G(e,n):e)},r.prototype.filterSelf=function(t,e,a){X(t)&&(a=e,e=t,t=[]);var n=a||this,i=qt(Wa(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?G(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){X(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=qt(Wa(t),this._getStoreDimIndex,this),s=ri(this);return s._store=this._store.map(o,i?G(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=qt(Wa(t),this._getStoreDimIndex,this);this._store.modify(o,i?G(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=ri(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.lttbDownSample=function(t,e){var a=ri(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 ti(t,a)},function(a){return ti(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||{},Ga(t)?B(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),O(i)?i=i.slice():Ga(i)&&(i=B({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Ga(e)?B(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ga(t)?B(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?B(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;V_(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){S(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:qt(this.dimensions,this._getDimInfo,this),this.hostModel)),is(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!X(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(N0(arguments)))})},r.internalField=function(){Vf=function(t){var e=t._invertedIndicesMap;S(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new mb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Bf;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Fa=function(t,e,a){return ke(t._getCategory(e,a),null)},ti=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Fa(t,t._idDimIdx,e)),a==null&&(a=_b+e),a},Wa=function(t){return O(t)||(t=t!=null?[t]:[]),t},ri=function(t){var e=new r(t._schema?t._schema:qt(t.dimensions,t._getDimInfo,t),t.hostModel);return is(e,t),e},is=function(t,e){S(xb.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,S(Sb,function(a){t[a]=Y(e[a])}),t._calculationInfo=B({},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=Fa(t,i,e)),l==null&&o!=null&&(n[e]=l=Fa(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 Cu=bb;function Kg(r,t){hu(r)||(r=vu(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=F(),i=[],o=Ab(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Xg(o),l=a===r.dimensionsDefine,u=l?Zg(r):Yg(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=F(c),v=new ig(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=$(M)?M:{name:M},L=new Ii,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=i.length;return v[C]=R,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=ue(C).slice();if(M.length===1&&!W(M[0])&&M[0]<0){f.set(D,!1);return}var I=f.set(D,[]);S(M,function(L,P){var R=W(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),D,P))})});var p=0;S(e,function(C){var D,M,I,L;if(W(C))D=C,L={};else{L=C,D=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=f.get(D);if(R!==!1){if(R=ue(R),!R.length)for(var N=0;N<(M&&M.length||1);N++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}S(R,function(U,k){var V=d(U);if(l&&L.type!=null&&(V.type=L.type),g(K(V,L),D,k),V.name==null&&M){var H=M[k];!$(H)&&(H={name:H}),V.name=V.displayName=H.name,V.defaultTooltip=H.defaultTooltip}I&&K(V.otherDims,I)})}});function g(C,D,M){zp.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 A=d(b),T=A.coordDim;T==null&&(A.coordDim=Tb(x,n,_),A.coordDimIndex=0,(!y||m<=0)&&(A.isExtraCoord=!0),m--),w(A),A.type==null&&(Hp(r,b)===Pe.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return wb(i),new Ug({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function wb(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 Ab(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return S(t,function(i){var o;$(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Tb(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 Cb=function(){function r(t){this.coordSysDims=[],this.axisMap=F(),this.categoryAxisMap=F(),this.coordSysName=t}return r}();function Mb(r){var t=r.get("coordinateSystem"),e=new Cb(t),a=Db[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Db={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Me).models[0],i=r.getReferringComponents("yAxis",Me).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),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 Ib(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Lb(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,v;if(S(i,function(m,_){W(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(c=m))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,d=c.type,p=0;S(i,function(m){m.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:f}}function Lb(r){return!$g(r.schema)}function Br(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Pb(r,t){return Br(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Rb(r,t){var e=r.get("coordinateSystem"),a=fu.get(e),n;return t&&t.coordSysDims&&(n=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=vb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Eb(r,t,e){var a,n;return e&&S(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function To(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=vu(r)):(n=a.getSource(),i=n.sourceFormat===nt);var o=Mb(t),s=Rb(t,o),l=e.useEncodeDefaulter,u=X(l)?l:l?te(Hx,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Kg(n,c),v=Eb(f.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(f),d=Ib(t,{schema:f,store:h}),p=new Cu(f,t);p.setCalculationInfo(d);var g=v!=null&&kb(n)?function(y,m,_,x){return x===v?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function kb(r){if(r.sourceFormat===nt){var t=Ob(r.data||[]);return!O(xa(t))}}function Ob(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var qg=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}();oo(qg);const Ht=qg;var Nb=0,Bb=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Nb}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&z(a,Vb);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!W(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 Vb(r){return $(r)&&r.value!=null?r.value:r+""}const pl=Bb;function gl(r){return r.type==="interval"||r.type==="log"}function zb(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Ud(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=jg(o),l=n.niceTickExtent=[xe(Math.ceil(r[0]/o)*o,s),xe(Math.floor(r[1]/o)*o,s)];return Gb(l,r),n}function ss(r){var t=Math.pow(10,Ul(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xe(e*t)}function jg(r){return Et(r)+2}function zf(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Gb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),zf(r,0,t),zf(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 Jg=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new pl({})),O(n)&&(n=new pl({categories:z(n,function(i){return $(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:W(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}(Ht);Ht.registerClass(Jg);const Mu=Jg;var mr=xe,Qg=function(r){E(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=jg(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:mr(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=mr(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:mr(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=mr(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=mr(e.value,n,!0);return Ep(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=zb(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=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]=mr(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=mr(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(Ht);Ht.registerClass(Qg);const ur=Qg;var ey=typeof Float32Array<"u",Fb=ey?Float32Array:Array;function kt(r){return O(r)?ey?new Float32Array(r):r:new Fb(r)}var Wb="__ec_stack_";function Du(r){return r.get("stack")||Wb+r.seriesIndex}function Iu(r){return r.dim+r.index}function ty(r,t){var e=[];return t.eachSeriesByType(r,function(a){iy(a)&&e.push(a)}),e}function Hb(r){var t={};S(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),v=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(h,p);t[v]?t[v].push(y):t[v]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function ry(r){var t=Hb(r),e=[];return S(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?c/v*u:c}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=Z(a.get("barWidth"),s),p=Z(a.get("barMaxWidth"),s),g=Z(a.get("barMinWidth")||(oy(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:Iu(i),stackId:Du(a)})}),Ub(e)}function Ub(r){var t={};S(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return S(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=De(i).length;s=Math.max(35-l*4,15)+"%"}var u=Z(s,o),c=Z(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,h=(f-u)/(v+(v-1)*c);h=Math.max(h,0),S(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,f-=x+c*x,v--}else{var x=h;m&&m<x&&(x=Math.min(m,f)),_&&_>x&&(x=_),x!==h&&(y.width=x,f-=x+c*x,v--)}}),h=(f-u)/(v+(v-1)*c),h=Math.max(h,0);var d=0,p;S(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;S(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function $b(r,t,e){if(r&&t){var a=r[Iu(t)];return a!=null&&e!=null?a[Du(e)]:a}}function ay(r,t){var e=ty(r,t),a=ry(e);S(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Du(n),u=a[Iu(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function ny(r){return{seriesType:r,plan:yu(),reset:function(t){if(!!iy(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=Br(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=Yb(n,i),d=oy(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),A=d&&l&&kt(w*3),T=d&&kt(w),C=a.master.getRect(),D=v?C.width:C.height,M,I=x.getStore(),L=0;(M=_.next())!=null;){var P=I.get(f?g:o,M),R=I.get(s,M),N=h,U=void 0;f&&(U=+P-I.get(o,M));var k=void 0,V=void 0,H=void 0,J=void 0;if(v){var ce=a.dataToPoint([P,R]);if(f){var fe=a.dataToPoint([U,R]);N=fe[0]}k=N,V=ce[1]+m,H=ce[0]-N,J=y,Math.abs(H)<p&&(H=(H<0?-1:1)*p)}else{var ce=a.dataToPoint([R,P]);if(f){var fe=a.dataToPoint([R,U]);N=fe[1]}k=ce[0]+m,V=N,H=y,J=ce[1]-N,Math.abs(J)<p&&(J=(J<=0?-1:1)*p)}d?(b[L]=k,b[L+1]=V,b[L+2]=v?H:J,A&&(A[L]=v?C.x:k,A[L+1]=v?V:C.y,A[L+2]=D),T[M]=M):x.setItemLayout(M,{x:k,y:V,width:H,height:J}),L+=3}d&&x.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:A,valueAxisHorizontal:v})}}}}}}function iy(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function oy(r){return r.pipelineContext&&r.pipelineContext.large}function Yb(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var Zb=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},sy=function(r){E(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,Vc[Ex(oa(this._minLevelUnit))]||Vc.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return kx(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=ew(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=et,a[1]+=et),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-et}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ai.length,l=Math.min(Zb(ai,this._approxInterval,0,s),s-1);this._interval=ai[l][1],this._minLevelUnit=ai[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}(ur),ai=[["second",nu],["minute",iu],["hour",ln],["quarter-day",ln*6],["half-day",ln*12],["day",et*1.2],["half-week",et*3.5],["week",et*7],["month",et*31],["quarter",et*95],["half-year",Bc/2],["year",Bc]];function Xb(r,t,e,a){var n=wt(t),i=wt(e),o=function(d){return zc(n,d,a)===zc(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},v=function(){return f()&&o("second")},h=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return v();case"millisecond":return h()}}function Kb(r,t){return r/=et,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qb(r){var t=30*et;return r/=t,r>6?6:r>3?3:r>2?2:1}function jb(r){return r/=ln,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Gf(r,t){return r/=t?iu:nu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Jb(r){return Ud(r,!0)}function Qb(r,t,e){var a=new Date(r);switch(oa(t)){case"year":case"month":a[Mp(e)](0);case"day":a[Dp(e)](1);case"hour":a[Ip(e)](0);case"minute":a[Lp(e)](0);case"second":a[Pp(e)](0),a[Rp(e)](0)}return a.getTime()}function ew(r,t,e,a){var n=1e4,i=Tp,o=0;function s(D,M,I,L,P,R,N){for(var U=new Date(M),k=M,V=U[L]();k<I&&k<=a[1];)N.push({value:k}),V+=D,U[P](V),k=U.getTime();N.push({value:k,notAdd:!0})}function l(D,M,I){var L=[],P=!M.length;if(!Xb(oa(D),a[0],a[1],e)){P&&(M=[{value:Qb(new Date(a[0]),D,e)},{value:a[1]}]);for(var R=0;R<M.length-1;R++){var N=M[R].value,U=M[R+1].value;if(N!==U){var k=void 0,V=void 0,H=void 0,J=!1;switch(D){case"year":k=Math.max(1,Math.round(t/et/365)),V=ou(e),H=Ox(e);break;case"half-year":case"quarter":case"month":k=qb(t),V=sa(e),H=Mp(e);break;case"week":case"half-week":case"day":k=Kb(t),V=go(e),H=Dp(e),J=!0;break;case"half-day":case"quarter-day":case"hour":k=jb(t),V=xn(e),H=Ip(e);break;case"minute":k=Gf(t,!0),V=yo(e),H=Lp(e);break;case"second":k=Gf(t,!1),V=mo(e),H=Pp(e);break;case"millisecond":k=Jb(t),V=_o(e),H=Rp(e);break}s(k,N,U,V,H,J,L),D==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],c=[],f=0,v=0,h=0;h<i.length&&o++<n;++h){var d=oa(i[h]);if(!!Rx(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?oa(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(z(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 A=x[h],T=0;T<A.length;++T)w.push({value:A[T].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}Ht.registerClass(sy);const ly=sy;var Ff=Ht.prototype,hn=ur.prototype,tw=xe,rw=Math.floor,aw=Math.ceil,ni=Math.pow,st=Math.log,Lu=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ur,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=hn.getTicks.call(this,e);return z(o,function(s){var l=s.value,u=xe(ni(this.base,l));return u=l===n[0]&&this._fixMin?ii(u,i[0]):u,u=l===n[1]&&this._fixMax?ii(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,hn.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=Ff.getExtent.call(this);a[0]=ni(e,a[0]),a[1]=ni(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=ii(a[0],i[0])),this._fixMax&&(a[1]=ii(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),Ff.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=f_(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[xe(aw(a[0]/i)*i),xe(rw(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){hn.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),ni(this.base,e)},t.type="log",t}(Ht),uy=Lu.prototype;uy.getMinorTicks=hn.getMinorTicks;uy.getLabel=hn.getLabel;function ii(r,t){return tw(r,Et(t))}Ht.registerClass(Lu);const nw=Lu;var iw=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);X(i)?this._modelMinNum=oi(t,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=oi(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(X(o)?this._modelMaxNum=oi(t,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=oi(t,o)),n)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=O(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ca(l[0],1),ca(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=Zs(s)||Zs(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[sw[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ow[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ow={min:"_determinedMin",max:"_determinedMax"},sw={min:"_dataMin",max:"_dataMax"};function cy(r,t,e){var a=r.rawExtentInfo;return a||(a=new iw(r,t,e),r.rawExtentInfo=a,a)}function oi(r,t){return t==null?null:Zs(t)?NaN:r.parse(t)}function fy(r,t){var e=r.type,a=cy(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=ty("bar",o),l=!1;if(S(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=ry(s),c=lw(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function lw(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=$b(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;S(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;S(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,v=c/f-c;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function Cn(r,t){var e=t,a=fy(r,e),n=a.extent,i=e.get("splitNumber");r instanceof nw&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Pu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Mu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ly({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ht.getClass(t)||ur)}}function uw(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Wn(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):W(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):X(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Ru(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Ru(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function cw(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof Mu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Wn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},v=s(f,c),h=o.getTextRect(v),d=fw(h,o.get("rotate")||0);l?l.union(d):l=d}return l}}function fw(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new ye(r.x,r.y,i,o);return s}function Eu(r){var t=r.get("interval");return t==null?"auto":t}function hy(r){return r.type==="category"&&Eu(r.getLabelModel())===0}function qi(r,t){var e={};return S(r.mapDimensionsAll(t),function(a){e[Pb(r,a)]=!0}),De(e)}function hw(r,t,e){t&&S(qi(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}(),Wf=[],vw={registerPreprocessor:Fg,registerProcessor:Wg,registerPostInit:nb,registerPostUpdate:ib,registerUpdateLifecycle:Au,registerAction:Mt,registerCoordinateSystem:ob,registerLayout:sb,registerVisual:Wr,registerTransform:ub,registerLoading:Hg,registerMap:lb,registerImpl:z1,PRIORITY:J1,ComponentModel:re,ComponentView:Te,SeriesModel:dt,ChartView:We,registerComponentModel:function(r){re.registerClass(r)},registerComponentView:function(r){Te.registerClass(r)},registerSeriesModel:function(r){dt.registerClass(r)},registerChartView:function(r){We.registerClass(r)},registerSubTypeDefaulter:function(r,t){re.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){B0(r,t)}};function Ne(r){if(O(r)){S(r,function(t){Ne(t)});return}ie(Wf,r)>=0||(Wf.push(r),X(r)&&(r={install:r}),r.install(vw))}var dw=[];function ls(r,t){for(var e=0;e<r.length;e++)rt(r[e],r[e],t)}function Hf(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])&&(Bd(t,t,i),Vd(e,e,i))}}function pw(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var vy=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}(),Uf=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),$f=function(){function r(t){this.type="linestring",this.points=t}return r}(),dy=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return pw(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return S(o,function(s){s.type==="polygon"?Hf(s.exterior,n,i,e):S(s.points,function(l){Hf(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(cc(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(cc(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}(vy),gw=function(r){E(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=Fl(dw),o=e;o&&!o.isGeoSVGGraphicRoot;)ki(i,o.getLocalTransform(),i),o=o.parent;return kn(i,i),rt(n,n,i),n},t}(vy);function yw(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return S(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=py(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]=py(r[a],t[a],e)}function py(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function mw(r,t){return r=yw(r),z(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 Uf(o[0],o.slice(1)));break;case"MultiPolygon":S(n.coordinates,function(l){l[0]&&i.push(new Uf(l[0],l.slice(1)))});break;case"LineString":i.push(new $f([n.coordinates]));break;case"MultiLineString":i.push(new $f(n.coordinates))}var s=new dy(a[t||"name"],i,a.cp);return s.properties=a,s})}var Mn=ae();function _w(r){return r.type==="category"?Sw(r):ww(r)}function xw(r,t){return r.type==="category"?bw(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function Sw(r){var t=r.getLabelModel(),e=gy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function gy(r,t){var e=yy(r,"labels"),a=Eu(t),n=my(e,a);if(n)return n;var i,o;return X(a)?i=Sy(r,a):(o=a==="auto"?Aw(r):a,i=xy(r,o)),_y(e,a,{labels:i,labelCategoryInterval:o})}function bw(r,t){var e=yy(r,"ticks"),a=Eu(t),n=my(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),X(a))i=Sy(r,a,!0);else if(a==="auto"){var s=gy(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=a,i=xy(r,o,!0);return _y(e,a,{ticks:i,tickCategoryInterval:o})}function ww(r){var t=r.scale.getTicks(),e=Wn(r);return{labels:z(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function yy(r,t){return Mn(r)[t]||(Mn(r)[t]=[])}function my(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function _y(r,t,e){return r.push({key:t,value:e}),e}function Aw(r){var t=Mn(r).autoInterval;return t!=null?t:Mn(r).autoInterval=r.calculateCategoryInterval()}function Tw(r){var t=Cw(r),e=Wn(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=io(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=Mn(r.model),w=r.getExtent(),b=x.lastAutoInterval,A=x.lastTickCount;return b!=null&&A!=null&&Math.abs(b-_)<=1&&Math.abs(A-o)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Cw(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function xy(r,t,e){var a=Wn(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=hy(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 Sy(r,t,e){var a=r.scale,n=Wn(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 Yf=[0,1],Mw=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Wd(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(),Zf(a,n.count())),he(t,Yf,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Zf(a,n.count()));var i=he(t,a,Yf,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=xw(this,e),n=a.ticks,i=z(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Dw(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=z(a,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return _w(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return Tw(this)},r}();function Zf(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Dw(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[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=Mw;var Ha=Math.PI*2,_r=zd.CMD,Iw=["top","right","bottom","left"];function Lw(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function Pw(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,f=s*e+t;if(Math.abs(a-n)%Ha<1e-4)return l[0]=c,l[1]=f,u-e;if(i){var v=a;a=Ja(n),n=Ja(v)}else a=Ja(a),n=Ja(n);a>n&&(n+=Ha);var h=Math.atan2(s,o);if(h<0&&(h+=Ha),h>=a&&h<=n||h+Ha>=a&&h+Ha<=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 ji(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 by(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ut=[];function Rw(r,t,e){var a=by(t.x,t.y,t.width,t.height,r.x,r.y,ut);return e.set(ut[0],ut[1]),a}function Ew(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,v=r.y,h=0;h<c.length;){var d=c[h++];h===1&&(a=c[h],n=c[h+1],i=a,o=n);var p=u;switch(d){case _r.M:i=c[h++],o=c[h++],a=i,n=o;break;case _r.L:p=ji(a,n,c[h],c[h+1],f,v,ut,!0),a=c[h++],n=c[h++];break;case _r.C:p=z0(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 _r.Q:p=V0(a,n,c[h++],c[h++],c[h],c[h+1],f,v,ut),a=c[h++],n=c[h++];break;case _r.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 A=(f-g)*_/m+g;p=Pw(g,y,_,x,x+w,b,A,v,ut),a=Math.cos(x+w)*m+g,n=Math.sin(x+w)*_+y;break;case _r.R:i=a=c[h++],o=n=c[h++];var T=c[h++],C=c[h++];p=by(i,o,T,C,f,v,ut);break;case _r.Z:p=ji(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,le=new we,me=new we,St=new we,_t=new we;function Xf(r,t){if(!!r){var e=r.getTextGuideLine(),a=r.getTextContent();if(!!(a&&e)){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||Iw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&kn([],c),v=t.get("length2")||0;u&&me.copy(u);for(var h=0;h<o.length;h++){var d=o[h];Lw(d,0,s,ht,St),we.scaleAndAdd(le,ht,St,v),le.transform(f);var p=r.getBoundingRect(),g=u?u.distance(le):r instanceof Ie?Ew(le,r.path,me):Rw(le,p,me);g<l&&(l=g,le.transform(c),me.transform(c),me.toArray(i[0]),le.toArray(i[1]),ht.toArray(i[2]))}wy(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Ji=[],ze=new we;function wy(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ht.fromArray(r[0]),le.fromArray(r[1]),me.fromArray(r[2]),we.sub(St,ht,le),we.sub(_t,me,le);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=ji(le.x,le.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!==le.x?(ze.x-le.x)/(me.x-le.x):(ze.y-le.y)/(me.y-le.y);if(isNaN(s))return;s<0?we.copy(ze,le):s>1&&we.copy(ze,me),ze.toArray(r[1])}}}}function kw(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ht.fromArray(r[0]),le.fromArray(r[1]),me.fromArray(r[2]),we.sub(St,le,ht),we.sub(_t,me,le);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=ji(le.x,le.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!==le.x?(ze.x-le.x)/(me.x-le.x):(ze.y-le.y)/(me.y-le.y);if(isNaN(f))return;f<0?we.copy(ze,le):f>1&&we.copy(ze,me)}ze.toArray(r[1])}}}}function cs(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Ow(r,t){var e=t.smooth,a=t.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=fc(a[0],a[1]),i=fc(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 Ay(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<zi.length;l++){var u=zi[l],c=t[u],f=u==="normal";if(c){var v=c.get("show"),h=f?s:oe(n.states[u]&&n.states[u].ignore,s);if(h||!oe(v,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0),a&&cs(a,!0,u,c);continue}a||(a=new Tt,r.setTextGuideLine(a),!f&&(s||!o)&&cs(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),cs(a,!1,u,c)}}if(a){K(a.style,e),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=Ow}}function Ty(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 Cy(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 Oi(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 My(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.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&&A(-y),m<0&&A(m);function _(){y=p.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function x(T,C,D){if(T<0){var M=Math.min(C,-T);if(M>0){w(M*D,0,o);var I=M+T;I<0&&b(-I*D,1)}else b(-T*D,1)}}function w(T,C,D){T!==0&&(u=!0);for(var M=C;M<D;M++){var I=r[M],L=I.rect;L[t]+=T,I.label[t]+=T}}function b(T,C){for(var D=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(P),M+=P}if(!!M){var R=Math.min(Math.abs(T)/M,C);if(T>0)for(var I=0;I<o-1;I++){var N=D[I]*R;w(N,0,I+1)}else for(var I=o-1;I>0;I--){var N=D[I-1]*R;w(-N,I,o)}}}function A(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(C>0?w(D,0,M+1):w(-D,o-M-1,o),T-=D,T<=0)return}return u}function Nw(r,t,e,a){return My(r,"x","width",t,e,a)}function Dy(r,t,e,a){return My(r,"y","height",t,e,a)}function Iy(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 Oi(d.localRect,d.transform)),f||(f=new Oi(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 Bw(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Vw(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:Bw(a&&a.shape.points)}}var Kf=["align","verticalAlign","width","height","fontSize"],Be=new aa,fs=ae(),zw=ae();function si(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var li=["x","y","rotation"],Gw=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();ye.applyTransform(c,c,u),u?Be.setLocalTransform(u):(Be.x=Be.y=Be.rotation=Be.originX=Be.originY=0,Be.scaleX=Be.scaleY=1),Be.rotation=Ja(Be.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:Be.x,y:Be.y,scaleX:Be.scaleX,scaleY:Be.scaleY,rotation:Be.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");!(X(n)||De(n).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=q(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,x){return function(){Xf(_,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;X(o.layoutOption)?c=o.layoutOption(Vw(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var v=!1;if(c.x!=null?(s.x=Z(c.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Z(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=fs(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=Cy(this._labelList),i=ve(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ve(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Nw(i,0,e),Dy(o,0,a);var s=ve(n,function(l){return l.layoutOption.hideOverlap});Iy(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=fs(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=q(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");Ay(t,Ty(s),l),Xf(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=fs(a),o=i.oldLayout,s=q(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var v=t.prevStates;v&&(ie(v,"select")>=0&&a.attr(i.oldLayoutSelect),ie(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),pe(a,u,e,l)}else if(a.attr(u),!Aa(a).valueAnimation){var f=oe(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={};si(h,u,li),si(h,a.states.select,li)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};si(d,u,li),si(d,a.states.emphasis,li)}yx(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=zw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),pe(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Le(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Fw=Gw;var hs=ae();function DR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=hs(e).labelManager;n||(n=hs(e).labelManager=new Fw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=hs(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Ww=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new ee,n=Oe("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Oe(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(dt);const Hw=Ww;function Lo(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=pa(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(pa(r,t,e[o]));return i.join(" ")}}function Ly(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!O(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var Uw=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Oe(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$w,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ha(this.childAt(0))},t.prototype.downplay=function(){va(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),mn(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=Wt(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"),A=b.fill;if(s instanceof Vt){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(B({},b)):s.useStyle(b),s.style.decal=null,s.setColor(A,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;Ft(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:b.opacity});function I(R){return M?e.getName(R):Lo(e,R)}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 P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),sr(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=q(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&yn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();yn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return xu(e.getItemVisual(a,"symbolSize"))},t}(ee);function $w(r,t){this.parent.drift(r,t)}const ku=Uw;function vs(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&&!$(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:Wt(t),cursorStyle:t.get("cursor")}}var Yw=function(){function r(t){this.group=new ee,this._SymbolCtor=t||ku}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(vs(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(!vs(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(vs(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){ho(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 Py=Yw;function Ry(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Zw(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=z(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return Br(t,f[0])&&(v=!0,f[0]=h),Br(t,f[1])&&(v=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Zw(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:de(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Ey(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Xw(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function Kw(r,t,e,a,n,i,o,s){for(var l=Xw(r,t),u=[],c=[],f=[],v=[],h=[],d=[],p=[],g=Ry(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,b=void 0,A=void 0;switch(x.cmd){case"=":b=x.idx*2,A=x.idx1*2;var T=y[b],C=y[b+1],D=m[A],M=m[A+1];(isNaN(T)||isNaN(C))&&(T=D,C=M),u.push(T,C),c.push(D,M),f.push(e[b],e[b+1]),v.push(a[A],a[A+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,P=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);A=I*2,u.push(P[0],P[1]),c.push(m[A],m[A+1]);var R=Ey(g,n,t,I);f.push(R[0],R[1]),v.push(a[A],a[A+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 N=u.length,U=kt(N),k=kt(N),V=kt(N),H=kt(N),J=[],_=0;_<d.length;_++){var ce=d[_],fe=_*2,Ce=ce*2;U[fe]=u[Ce],U[fe+1]=u[Ce+1],k[fe]=c[Ce],k[fe+1]=c[Ce+1],V[fe]=f[Ce],V[fe+1]=f[Ce+1],H[fe]=v[Ce],H[fe+1]=v[Ce+1],J[_]=h[ce]}return{current:U,next:k,stackedOnCurrent:V,stackedOnNext:H,status:J}}var jt=Math.min,Jt=Math.max;function Rr(r,t){return isNaN(r)||isNaN(t)}function yl(r,t,e,a,n,i,o,s,l){for(var u,c,f,v,h,d,p=e,g=0;g<a;g++){var y=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Rr(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),f=y,v=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var w=p+i,b=t[w*2],A=t[w*2+1];b===y&&A===m&&g<a;)g++,w+=i,p+=i,b=t[w*2],A=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-u,x=m-c;var T=g+1;if(l)for(;Rr(b,A)&&T<a;)T++,w+=i,b=t[w*2],A=t[w*2+1];var C=.5,D=0,M=0,I=void 0,L=void 0;if(T>=a||Rr(b,A))h=y,d=m;else{D=b-u,M=A-c;var P=y-u,R=b-y,N=m-c,U=A-m,k=void 0,V=void 0;if(s==="x"){k=Math.abs(P),V=Math.abs(R);var H=D>0?1:-1;h=y-H*k*o,d=m,I=y+H*V*o,L=m}else if(s==="y"){k=Math.abs(N),V=Math.abs(U);var J=M>0?1:-1;h=y,d=m-J*k*o,I=y,L=m+J*V*o}else k=Math.sqrt(P*P+N*N),V=Math.sqrt(R*R+U*U),C=V/(V+k),h=y-D*o*(1-C),d=m-M*o*(1-C),I=y+D*o*C,L=m+M*o*C,I=jt(I,Jt(b,y)),L=jt(L,Jt(A,m)),I=Jt(I,jt(b,y)),L=Jt(L,jt(A,m)),D=I-y,M=L-m,h=y-D*k/V,d=m-M*k/V,h=jt(h,Jt(u,y)),d=jt(d,Jt(c,m)),h=Jt(h,jt(u,y)),d=Jt(d,jt(c,m)),D=y-h,M=m-d,I=y+D*V/k,L=m+M*V/k}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 ky=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),qw=function(r){E(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 ky},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Rr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Rr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=yl(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=zd.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?hc(s,h,p,y,e,c):hc(l,d,g,m,e,c);if(w>0)for(var b=0;b<w;b++){var A=c[b];if(A<=1&&A>=0){var x=u?vc(l,d,g,m,A):vc(s,h,p,y,A);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(Ie),jw=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ky),Jw=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new jw},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Rr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Rr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=yl(e,n,o,s,s,1,a.smooth,l,a.connectNulls);yl(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Ie);function Oy(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new se({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=X(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 Ny(r,t,e){var a=r.getArea(),n=xe(a.r0,1),i=xe(a.r,1),o=new zt({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 By(r,t,e,a,n){if(r){if(r.type==="polar")return Ny(r,t,e);if(r.type==="cartesian2d")return Oy(r,t,e,a,n)}else return null;return null}function Ou(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 Qw(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=kt(a*2),i=0;i<a;i++){var o=Ey(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Qt(r,t,e,a){var n=t.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&f.push(r[s],r[s+1]);r=f}for(s=0;s<r.length-2;s+=2)switch(c[0]=r[s+2],c[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var v=(u[i]+c[i])/2,h=[];l[i]=h[i]=v,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function eA(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=G0(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 tA(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=z(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=eA(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 Hl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function rA(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&aA(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 aA(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(ku.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function nA(r,t){return isNaN(r)||isNaN(t)}function iA(r){for(var t=r.length/2;t>0&&nA(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 oA(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 Vy(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 ds(r,t,e,a){if(Ou(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=Vy(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Oy(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 Ny(t,e,a)}function sA(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 lA=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ee,a=new Py;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.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Ry(o,l,x),b=_&&Qw(o,l,w),A=e.get("showSymbol"),T=e.get("connectNulls"),C=A&&!v&&rA(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(be,Ut){be.__temp&&(s.remove(be),D.setItemGraphicEl(Ut,null))}),A||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=tA(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&M===this._step))A&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(be){return[f[be*2],f[be*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),M&&(f=Qt(f,o,M,T),b&&(b=Qt(b,o,M,T))),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(ds(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 P=y.getClipPath();if(P){var R=ds(this,o,!1,e);Le(P,{shape:R.shape},e)}else y.setClipPath(ds(this,o,!0,e));A&&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,T):(M&&(f=Qt(f,o,M,T),b&&(b=Qt(b,o,M,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))}var N=e.getModel("emphasis"),U=N.get("focus"),k=N.get("blurScope"),V=N.get("disabled");if(p.useStyle(K(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),da(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var H=p.getState("emphasis").style;H.lineWidth=+p.style.lineWidth+1}q(p).seriesIndex=e.seriesIndex,sr(p,U,k,V);var J=th(e.get("smooth")),ce=e.get("smoothMonotone");if(p.setShape({smooth:J,smoothMonotone:ce,connectNulls:T}),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:J,stackedOnSmooth:Ce,smoothMonotone:ce,connectNulls:T}),da(g,e,"areaStyle"),q(g).seriesIndex=e.seriesIndex,sr(g,U,k,V)}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){q(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Or(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new ku(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=Or(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else We.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;qs(this._polyline,e),a&&qs(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new qw({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Jw({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");X(c)&&(c=c(null));var f=u.get("animationDelay")||0,v=X(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 A=m===y?0:(_-y)/(m-y);l&&(A=1-A);var T=X(f)?f(d):c*A+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(Vy(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=iA(l);c>=0&&(Ft(s,Wt(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,h){return h!=null?Ly(o,h):Lo(o,f)},enableTextSetter:!0},sA(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),A=y?"x":"y",T=oA(f,x,A),C=T.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,A);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(M=Qd(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=rh(f,R);o&&(M=v.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+b})}if(o){var N=Aa(u);typeof N.setLabelText=="function"&&N.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=Kw(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(h=Qt(v.current,n,o,l),d=Qt(v.stackedOnCurrent,n,o,l),p=Qt(v.next,n,o,l),g=Qt(v.stackedOnNext,n,o,l)),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 A=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,D=m[T].ptIdx*2;C.x=A[D],C.y=A[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 uA=lA;function Nu(r,t){return{seriesType:r,plan:yu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!n){var s=z(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Br(a,s[0])&&(s[0]=u),Br(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 cA={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},minmax:function(r){for(var t=-1/0,e=-1/0,a=0;a<r.length;a++){var n=r[a],i=Math.abs(n);i>t&&(t=i,e=n)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},fA=function(r){return Math.round(r.length/2)};function zy(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;W(i)?d=cA[i]:X(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,fA))}}}}}function IR(r){r.registerChartView(uA),r.registerSeriesModel(Hw),r.registerLayout(Nu("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,zy("line"))}var Gy=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,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=v.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,x=1,w=0;w<d.length;w++){var b=d[w].coord,A=w===d.length-1?d[w-1].tickValue+x:d[w].tickValue;if(A===g){_=b;break}else if(A<g)m=b;else if(m!=null&&A>g){_=(b+m)/2;break}w===1&&(x=A-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(dt);dt.registerClass(Gy);const Qi=Gy;var hA=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return To(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hr(Qi.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}(Qi);const vA=hA;var dA=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}(),pA=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new dA},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=pA;function gA(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Ys(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),A="left",T="top";switch(s){case"startArc":w=c+(h-l)*_(y),b=f+(h-l)*x(y),A="center",T="top";break;case"insideStartArc":w=c+(h+l)*_(y),b=f+(h+l)*x(y),A="center",T="bottom";break;case"startAngle":w=c+d*_(p)+ui(p,l+m,!1),b=f+d*x(p)+ci(p,l+m,!1),A="right",T="middle";break;case"insideStartAngle":w=c+d*_(p)+ui(p,-l+m,!1),b=f+d*x(p)+ci(p,-l+m,!1),A="left",T="middle";break;case"middle":w=c+d*_(y),b=f+d*x(y),A="center",T="middle";break;case"endArc":w=c+(v+l)*_(y),b=f+(v+l)*x(y),A="center",T="bottom";break;case"insideEndArc":w=c+(v-l)*_(y),b=f+(v-l)*x(y),A="center",T="top";break;case"endAngle":w=c+d*_(g)+ui(g,l+m,!0),b=f+d*x(g)+ci(g,l+m,!0),A="left",T="middle";break;case"insideEndAngle":w=c+d*_(g)+ui(g,-l+m,!0),b=f+d*x(g)+ci(g,-l+m,!0),A="right",T="middle";break;default:return Ys(a,n,i)}return a=a||{},a.x=w,a.y=b,a.align=A,a.verticalAlign=T,a}}function yA(r,t,e,a){if(de(a)){r.setTextConfig({rotation:a});return}else if(O(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 ui(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ci(r,t,e){return t*Math.cos(r)*(e?1:-1)}function tn(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;O(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(a,function(i){return ca(i,n)})}}var ps=Math.max,gs=Math.min;function mA(r,t){var e=r.getArea&&r.getArea();if(Ou(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 _A=function(r){E(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){ho(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=xA(e,u);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,p=mA(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,A=i&&i.type==="changeAxisOrder";function T(M){var I=fi[u.type](s,M),L=MA(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=fi[u.type](s,M,I);if(y&&T(M),!(!s.hasValue(M)||!lh[u.type](L))){var P=!1;d&&(P=nh[u.type](p,L));var R=ih[u.type](e,s,M,L,f,v,c.model,!1,g);h&&(R.forceLabelAnimation=!0),uh(R,s,M,I,L,e,f,u.type==="polar"),b?R.attr({shape:L}):h?oh(h,v,R,L,M,f,!1,!1):Le(R,{shape:L},e,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=fi[u.type](s,M,L);if(y){var R=void 0;w.length===0?R=T(I):(R=w[I],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[M]=R);var N=fi[u.type](s,M),U=Wy(f,N,u);pe(R,{shape:U},v,M)}var k=l.getItemGraphicEl(I);if(!s.hasValue(M)||!lh[u.type](P)){o.remove(k);return}var V=!1;if(d&&(V=nh[u.type](p,P),V&&o.remove(k)),k?mn(k):k=ih[u.type](e,s,M,P,f,v,c.model,!!k,g),h&&(k.forceLabelAnimation=!0),A){var H=k.getTextContent();if(H){var J=Aa(H);J.prevValue!=null&&(J.prevValue=J.value)}}else uh(k,s,M,L,P,e,f,u.type==="polar");b?k.attr({shape:P}):h?oh(h,v,k,P,M,f,!0,A):pe(k,{shape:P},e,M,null),s.setItemGraphicEl(M,k),k.ignore=V,o.add(k)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Gi(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ee);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)&&By(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:z(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){Gi(i,e,q(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(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=ps(t.x,r.x),s=gs(t.x+t.width,n),l=ps(t.y,r.y),u=gs(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=gs(t.r,r.r),i=ps(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 se({shape:B({},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:zt,c=new u({shape:a,z2:1});c.name="item";var f=Fy(n);if(c.calculateTextPosition=gA(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 xA(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 SA=["x","y","width","height"],bA=["cx","cy","r","startAngle","endAngle"],lh={cartesian2d:function(r){return!sh(r,SA)},polar:function(r){return!sh(r,bA)}},fi={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?AA(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 wA(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Fy(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=tn(a.getModel("itemStyle"),c,!0);B(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=Wt(a);Ft(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,yA(r,g==="outside"?h:g,Fy(o),a.get(["label","rotate"]))}gx(p,d,i.getRawValue(e),function(m){return Ly(t,m)});var y=a.getModel(["emphasis"]);sr(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),da(r,a),wA(n)&&(r.style.fill="none",r.style.stroke="none",S(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function AA(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 TA=function(){function r(){}return r}(),ch=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new TA},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")),q(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",hh),f.on("mousemove",hh)),e&&e.push(f)}var hh=_u(function(r){var t=this,e=CA(t,r.offsetX,r.offsetY);q(t).dataIndex=e>=0?e:null},30,!1);function CA(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 Wy(r,t,e){if(Ou(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 MA(r,t,e){var a=r.type==="polar"?zt:se;return new a({shape:Wy(t,e,r),silent:!0,z2:0})}const DA=_A;function LR(r){r.registerChartView(DA),r.registerSeriesModel(vA),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,te(ay,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ny("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,zy("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 vh=Math.PI*2,hi=Math.PI/180;function Hy(r,t){return Ue(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Uy(r,t){var e=Hy(r,t),a=r.get("center"),n=r.get("radius");O(n)||(n=[0,n]);var i=Z(e.width,t.getWidth()),o=Z(e.height,t.getHeight()),s=Math.min(i,o),l=Z(n[0],s/2),u=Z(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 O(a)||(a=[a,a]),c=Z(a[0],i)+e.x,f=Z(a[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function IA(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Hy(a,e),s=Uy(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,v=-a.get("startAngle")*hi,h=a.get("endAngle"),d=a.get("padAngle")*hi;h=h==="auto"?v-vh:-h*hi;var p=a.get("minAngle")*hi,g=p+d,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,x=a.get("clockwise"),w=a.get("roseType"),b=a.get("stillShowZeroSum"),A=n.getDataExtent(i);A[0]=0;var T=x?1:-1,C=[v,h],D=T*d/2;F0(C,!x),v=C[0],h=C[1];var M=Math.abs(h-v),I=M,L=0,P=v;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(N,U){var k;if(isNaN(N)){n.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:w?NaN:c});return}w!=="area"?k=m===0&&b?_:N*_:k=M/y,k<g?(k=g,I-=g):L+=N;var V=P+T*k,H=0,J=0;d>k?(H=P+T*k/2,J=H):(H=P+D,J=V-D),n.setItemLayout(U,{angle:k,startAngle:H,endAngle:J,clockwise:x,cx:l,cy:u,r0:f,r:w?he(N,A,[f,c]):c}),P=V}),I<vh&&y)if(I<=.001){var R=M/y;n.each(i,function(N,U){if(!isNaN(N)){var k=n.getItemLayout(U);k.angle=R;var V=0,H=0;R<d?(V=v+T*(U+1/2)*R,H=V):(V=v+T*U*R+D,H=v+T*(U+1)*R-D),k.startAngle=V,k.endAngle=H}})}else _=I/L,P=v,n.each(i,function(N,U){if(!isNaN(N)){var k=n.getItemLayout(U),V=k.angle===g?g:N*_,H=0,J=0;V<d?(H=P+T*V/2,J=H):(H=P+D,J=P+T*V-D),k.startAngle=H,k.endAngle=J,P+=T*V}})})}function $y(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 LA=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,A=Math.sqrt((1-Math.abs(x*x/y))*b),T=t+(A+_.len2)*n,C=T-_.label.x,D=_.targetTextWidth-C*n;Yy(_,D,!0),_.label.x=T}}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,A=a+_.len,T=Math.abs(b)<A?Math.sqrt(w*w/(1-b*b/A/A)):A;x.rB=T,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}Dy(r,l,l+o)&&f(r)}function PA(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;ys(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(!ys(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,Yy(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(!ys(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 Yy(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 ys(r){return r.position==="center"}function RA(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*LA,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 A in b.states)if(b.states[A].ignore===!1)return!0;return!1}t.each(function(b){var A=t.getItemGraphicEl(b),T=A.shape,C=A.getTextContent(),D=A.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),N=Z(I.get("edgeDistance"),u),U=I.get("bleedMargin"),k=M.getModel("labelLine"),V=k.get("length");V=Z(V,u);var H=k.get("length2");if(H=Z(H,u),Math.abs(T.endAngle-T.startAngle)<o){S(C.states,h),C.ignore=!0,D&&(S(D.states,h),D.ignore=!0);return}if(!!d(C)){var J=(T.startAngle+T.endAngle)/2,ce=Math.cos(J),fe=Math.sin(J),Ce,it,be,Ut;a=T.cx,n=T.cy;var $t=L==="inside"||L==="inner";if(L==="center")Ce=T.cx,it=T.cy,Ut="center";else{var Ia=($t?(T.r+T.r0)/2*ce:T.r*ce)+a,La=($t?(T.r+T.r0)/2*fe:T.r*fe)+n;if(Ce=Ia+ce*3,it=La+fe*3,!$t){var Un=Ia+ce*(V+l-T.r),$n=La+fe*(V+l-T.r),Yn=Un+(ce<0?-1:1)*H,vr=$n;R==="edge"?Ce=ce<0?c+N:c+u-N:Ce=Yn+(ce<0?-P:P),it=vr,be=[[Ia,La],[Un,$n],[Yn,vr]]}Ut=$t?"center":R==="edge"?ce>0?"right":"left":ce>0?"left":"right"}var Yt=Math.PI,It=0,Pa=I.get("rotate");if(de(Pa))It=Pa*(Yt/180);else if(L==="center")It=0;else if(Pa==="radial"||Pa===!0){var x0=ce<0?-J+Yt:-J;It=x0}else if(Pa==="tangential"&&L!=="outside"&&L!=="outer"){var Ur=Math.atan2(ce,fe);Ur<0&&(Ur=Yt*2+Ur);var S0=fe>0;S0&&(Ur=Yt+Ur),It=Ur-Yt}if(i=!!It,C.x=Ce,C.y=it,C.rotation=It,C.setStyle({verticalAlign:"middle"}),$t){C.setStyle({align:Ut});var Eo=C.states.select;Eo&&(Eo.x+=C.x,Eo.y+=C.y)}else{var Ra=C.getBoundingRect().clone();Ra.applyTransform(C.getComputedTransform());var sc=(C.style.margin||0)+2.1;Ra.y-=sc/2,Ra.height+=sc,e.push({label:C,labelLine:D,position:L,len:V,len2:H,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new we(ce,fe),linePoints:be,textAlign:Ut,labelDistance:P,labelAlignTo:R,edgeDistance:N,bleedMargin:U,rect:Ra,unconstrainedWidth:Ra.width,labelStyleWidth:C.style.width})}A.setTextConfig({inside:$t})}}),!i&&r.get("avoidLabelOverlap")&&PA(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):(wy(w,g.minTurnAngle),kw(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new we(w[0][0],w[0][1])})}}}var EA=function(r){E(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=B(tn(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 mn(o),pe(o,{shape:f},s,a);o.useStyle(e.getItemVisual(a,"style")),da(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=B({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},tn(u.getModel("itemStyle"),c)),B(o.ensureState("select"),{x:p,y:g,shape:tn(l.getModel(["select","itemStyle"]),c)}),B(o.ensureState("blur"),{shape:tn(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:p,y:g}),B(_.ensureState("select"),{x:p,y:g}),sr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Ft(i,Wt(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 Tt,this.setTextGuideLine(h)),Ay(this,Ty(o),{stroke:u,opacity:W0(s.get(["lineStyle","opacity"]),c,1)})}},t}(zt),kA=function(r){E(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 zt({shape:Uy(e,n)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new EA(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);Gi(d,e,h)}).execute(),RA(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 OA=kA;function Bu(r,t,e){t=O(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Kg(a,t).dimensions,i=new Cu(n,r);return i.initData(a,e),i}var NA=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 Zy=NA;var BA=ae(),VA=function(r){E(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 Zy(G(this.getData,this),G(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Bu(this,{coordDimensions:["value"],encodeDefaulter:te(Wp,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=BA(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=l_(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){Vi(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(dt);const zA=VA;function GA(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 PR(r){r.registerChartView(OA),r.registerSeriesModel(zA),Ag("pie",r.registerAction),r.registerLayout(te(IA,"pie")),r.registerProcessor($y("pie")),r.registerProcessor(GA("pie"))}var FA=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(dt);const WA=FA;var Xy=4,HA=function(){function r(){}return r}(),UA=function(r){E(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 HA},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]<Xy,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),$A=function(){function r(){this.group=new ee}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 UA({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]<Xy;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=q(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const YA=$A;var ZA=function(r){E(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=Nu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(!!e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new YA:new Py,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 XA=ZA;var KA=function(r){E(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}(re);const qA=KA;var ml=function(r){E(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}(re);Ke(ml,Io);var Ky={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)"]}}},jA=j({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ky),Vu=j({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ky),JA=j({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vu),QA=K({logBase:10},Vu);const qy={category:jA,value:Vu,time:JA,log:QA};var eT={value:1,category:1,time:1,log:1};function Dn(r,t,e,a){S(eT,function(n,i){var o=j(j({},qy[i],!0),a,!0),s=function(l){E(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=Sn(this),h=v?Ca(c):{},d=f.getTheme();j(c,d.get(i+"Axis")),j(c,this.getDefaultOption()),c.type=ph(c),v&&lr(c,h,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=pl.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 tT=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 z(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 rT=tT;var _l=["x","y"];function gh(r){return r.type==="interval"||r.type==="time"}var aT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=_l,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=kn([],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 rt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return rt(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new ye(i,o,s,l)},t}(rT),nT=function(r){E(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 iT=nT;function xl(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],v={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:f[0],u==="x"?d[v[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ir(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function 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 ms=Math.log;function jy(r,t,e){var a=ur.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=fy(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var v=ms(r.base);u=[ms(u[0])/v,ms(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 oT=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_l,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;gl(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(h):(Cn(p,d),gl(p)&&(s=h))}c.length&&(s||(s=c.pop(),Cn(s.scale,s.model)),S(c,function(g){jy(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=cw(u);if(c){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+v,u.position==="top"?o.y+=c.height+v:u.position==="left"&&(o.x+=c.width+v)}}}),l()),S(this._coordsList,function(u){u.calcAffineTransform()});function l(){S(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),sT(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]}$(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 aT(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(!!_s(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 iT(c,Pu(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(!_s(o,e)||!_s(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(qi(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=_l,r}();function _s(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"&&uw(r)}function sT(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 lT=oT;var rr=Math.PI,Er=function(){function r(t,e){this.group=new ee,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 ee({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=Hd(e-t),i,o;return Ni(n)?(o=a>0?"top":"bottom",i="center"):Ni(n-rr)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<rr?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),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&&(rt(s,s,o),rt(l,l,o));var c=B({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});_n(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"]);W(v)&&(v=[v,v]),(W(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=fT(e,a,t,r),i=vT(e,a,t,r);if(cT(t,i,n),hT(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Cy(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Iy(o)}},axisName:function(r,t,e,a){var n=ir(r.axisName,t.get("name"));if(!!n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wh(i)?r.labelOffset+o*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*rr/180);var d;wh(i)?v=Er.innerTextLayout(r.rotation,h!=null?h:r.rotation,o):(v=uT(r.rotation,i,h||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=ir(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ne({x:f[0],y:f[1],rotation:v.rotation,silent:Er.isLabelSilent(t),style:Ae(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(ba({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=Er.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,q(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function uT(r,t,e,a){var n=Hd(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Ni(n-rr/2)?(o=l?"bottom":"top",i="center"):Ni(n-rr*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<rr*1.5&&n>rr/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function cT(r,t,e){if(!hy(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],v=e[e.length-2];a===!1?(je(i),je(u)):bh(i,o)&&(a?(je(o),je(c)):(je(i),je(u))),n===!1?(je(s),je(f)):bh(l,s)&&(n?(je(l),je(v)):(je(s),je(f)))}}function je(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=Fl([]);return Nn(n,n,-r.rotation),e.applyTransform(ki([],n,r.getLocalTransform())),a.applyTransform(ki([],n,t.getLocalTransform())),e.intersect(a)}}function wh(r){return r==="middle"||r==="center"}function Jy(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(rt(o,o,t),rt(s,s,t));var c=new Ze({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});_n(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function fT(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=Jy(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 hT(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=Jy(o[c],t.transform,l,u,"minorticks_"+c),v=0;v<f.length;v++)r.add(f[v])}}function vT(r,t,e,a){var n=e.axis,i=ir(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(ir(a.labelRotate,o.get("rotate"))||0)*rr/180,c=Er.innerTextLayout(a.rotation,u,a.labelDirection),f=e.getCategories&&e.getCategories(!0),v=[],h=Er.isLabelSilent(e),d=e.get("triggerEvent");return S(l,function(p,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,x=o;if(f&&f[y]){var w=f[y];$(w)&&w.textStyle&&(x=new Se(w.textStyle,o,e.ecModel))}var b=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),A=n.dataToCoord(y),T=x.getShallow("align",!0)||c.textAlign,C=oe(x.getShallow("alignMinLabel",!0),T),D=oe(x.getShallow("alignMaxLabel",!0),T),M=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,I=oe(x.getShallow("verticalAlignMinLabel",!0),M),L=oe(x.getShallow("verticalAlignMaxLabel",!0),M),P=new ne({x:A,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:Ae(x,{text:m,align:g===0?C:g===l.length-1?D:T,verticalAlign:g===0?I:g===l.length-1?L:M,fill:X(b)?b(n.type==="category"?_:n.type==="value"?y+"":y,g):b})});if(P.anid="label_"+y,d){var R=Er.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=g,n.type==="category"&&(R.dataIndex=y),q(P).eventData=R}t.add(P),P.updateTransform(),v.push(P),r.add(P),P.decomposeTransform()}),v}}const cr=Er;function dT(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pT(e,r,t),e.seriesInvolved&&yT(e,r),e}function pT(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=In(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(S(s.getAxes(),te(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,te(p,h?"cross":!0,v)),h&&S(d.otherAxes,te(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Sl(_))){y==null&&(y=_.get("triggerTooltip")),_=g?gT(m,f,n,t,g,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),A=In(m.model),T=y||w||m.type==="category",C=r.axesInfo[A]={key:A,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:w,useHandle:Sl(_),seriesModels:[],linkGroup:null};u[A]=C,r.seriesInvolved=r.seriesInvolved||T;var D=mT(i,m);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[A]=C,M.mapper=i[D].mapper,C.linkGroup=M}}}})}function gT(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]=Y(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 yT(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[In(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 mT(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(xs(i[a+"AxisId"],e.id)||xs(i[a+"AxisIndex"],e.componentIndex)||xs(i[a+"AxisName"],e.name))return n}}function xs(r,t){return r==="all"||O(r)&&ie(r,t)>=0||r===t}function _T(r){var t=zu(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=Sl(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 zu(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[In(r)]}function xT(r){var t=zu(r);return t&&t.axisPointerModel}function Sl(r){return!!r.get(["handle","show"])}function In(r){return r.type+"||"+r.id}var Ah={},ST=function(r){E(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&&_T(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=xT(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){Ah[e]=a},t.getAxisPointerClass=function(e){return e&&Ah[e]},t.type="axis",t}(Te);const Hn=ST;var bl=ae();function bT(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=bl(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=O(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 A=u[d-1].tickValue;A!=null&&v.set(A,h),t.add(new se({anid:A!=null?"area_"+A:null,shape:{x:_,y:x,width:w,height:b},style:K({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}bl(r).splitAreaColors=v}}}function wT(r){bl(r).splitAreaColors=null}var AT=["axisLine","axisTickLabel","axisName"],TT=["splitArea","splitLine","minorSplitLine"],Qy=function(r){E(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 ee,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=xl(s,e),u=new cr(e,B({handleAutoShown:function(f){for(var v=s.coordinateSystem.getCartesians(),h=0;h<v.length;h++)if(gl(v[h].getOtherAxis(e.axis).scale))return!0;return!1}},l));S(AT,u.add,u),this._axisGroup.add(u.getGroup()),S(TT,function(f){e.get([f,"show"])&&CT[f](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||fo(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){wT(this)},t.type="cartesianAxis",t}(Hn),CT={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=O(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});_n(_.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});_n(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,a){bT(r,t,e,a)}},em=function(r){E(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),MT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=em.type,e}return t.type="yAxis",t}(Qy),DT=function(r){E(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 se({shape:e.coordinateSystem.getRect(),style:K({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Te),Th={offset:0};function tm(r){r.registerComponentView(DT),r.registerComponentModel(qA),r.registerCoordinateSystem("cartesian2d",lT),Dn(r,"x",ml,Th),Dn(r,"y",ml,Th),r.registerComponentView(em),r.registerComponentView(MT),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function RR(r){Ne(tm),r.registerSeriesModel(WA),r.registerChartView(XA),r.registerLayout(Nu("scatter"))}function IT(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=H0(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 LT(r){var t=r.polar;if(t){O(t)||(t=[t]);var e=[];S(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],O(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 PT=function(r){E(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=xu(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]),wa[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},e,g)):_.setPosition(h[m]),d.add(_))}}function f(v){return z(v,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(!!h){var d=new fr,p=new Tt,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 ee,m=new ee;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),mn(g),mn(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:_})),da(p,d,"lineStyle"),da(g,d,"areaStyle");var x=d.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=w,S(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=D&&w}),g.useStyle(K(x.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis"),A=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Vt){var C=T.style;T.useStyle(B({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var D=T.ensureState("emphasis");D.style=Y(A);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(M==null||isNaN(M))&&(M=""),Ft(T,Wt(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),sr(v,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(We);const RT=PT;var ET=function(r){E(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 Zy(G(this.getData,this),G(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Bu(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=hg(this,e);return At("section",{header:u,sortBlocks:!0,blocks:z(s,function(f){var v=i.get(i.mapDimension(f.dim),e);return At("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(z(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 kT=ET;var Ua=qy.value;function vi(r,t){return K({show:t},r)}var OT=function(r){E(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=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=K({color:d.color},l));var g=j(Y(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(W(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else X(c)&&(g.name=c(g.name,g));var m=new Se(g,null,this.ecModel);return Ke(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:j({lineStyle:{color:"#bbb"}},Ua.axisLine),axisLabel:vi(Ua.axisLabel,!1),axisTick:vi(Ua.axisTick,!1),splitLine:vi(Ua.splitLine,!0),splitArea:vi(Ua.splitArea,!0),indicator:[]},t}(re);const NT=OT;var BT=["axisLine","axisTickLabel","axisName"],VT=function(r){E(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=z(n,function(o){var s=o.model.get("showName")?o.name:"",l=new cr(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});S(i,function(o){S(BT,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=O(v)?v:[v],p=O(h)?h:[h],g=[],y=[];function m(R,N,U){var k=U%N.length;return R[k]=R[k]||[],k}if(i==="circle")for(var _=n[0].getTicksCoords(),x=a.cx,w=a.cy,b=0;b<_.length;b++){if(c){var A=m(g,d,b);g[A].push(new Gr({shape:{cx:x,cy:w,r:_[b].coord}}))}if(f&&b<_.length-1){var A=m(y,p,b);y[A].push(new no({shape:{cx:x,cy:w,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=z(n,function(R,N){var U=R.getTicksCoords();return T=T==null?U.length-1:Math.min(U.length-1,T),z(U,function(k){return a.coordToPoint(k.coord,N)})}),D=[],b=0;b<=T;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 A=m(g,d,b);g[A].push(new Tt({shape:{points:M}}))}if(f&&D){var A=m(y,p,b-1);y[A].push(new fr({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();S(y,function(R,N){this.group.add(ft(R,{style:K({stroke:"none",fill:p[N%p.length]},P),silent:!0}))},this),S(g,function(R,N){this.group.add(ft(R,{style:K({fill:"none",stroke:d[N%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Te);const zT=VT;var GT=function(r){E(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 FT=GT;var WT=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new FT(o,new ur);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=Z(a[0],n),this.cy=Z(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(W(s)||de(s))&&(s=[0,s]),this.r0=Z(s[0],o),this.r=Z(s[1],o),S(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;S(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();S(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new ur;o.setExtent(0,i),o.setInterval(1),S(a,function(s,l){jy(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 HT=WT;function UT(r){r.registerCoordinateSystem("radar",HT),r.registerComponentModel(NT),r.registerComponentView(zT),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 ER(r){Ne(UT),r.registerChartView(RT),r.registerSeriesModel(kT),r.registerLayout(IT),r.registerProcessor($y("radar")),r.registerPreprocessor(LT)}var Dh="\0_ec_interaction_mutex";function $T(r,t,e){var a=Gu(r);a[t]=e}function YT(r,t,e){var a=Gu(r),n=a[t];n===e&&(a[t]=null)}function Ih(r,t){return!!Gu(r)[t]}function Gu(r){return r[Dh]||(r[Dh]={})}Mt({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},bt);var ZT=function(r){E(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=G(a._mousedownHandler,a),i=G(a._mousemoveHandler,a),o=G(a._mouseupHandler,a),s=G(a._mousewheelHandler,a),l=G(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=K(Y(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(!dc(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||!Li("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&&or(e.event),rm(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){dc(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Li("zoomOnMouseWheel",e,this._opt),n=Li("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;Ss(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);Ss(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;Ss(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(_a);function Ss(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(or(a.event),rm(r,t,e,a,n))}function rm(r,t,e,a,n){n.isAvailableBehavior=G(Li,null,e,a),r.trigger(t,n)}function Li(r,t,e){var a=e[r];return!r||a&&(!W(a)||t.event[a+"Key"])}const am=ZT;function XT(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function KT(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 qT={axisPointer:1,tooltip:1,brush:1};function nm(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!qT.hasOwnProperty(a.mainType)&&n&&n.model!==e}var jT=F(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),JT=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=F(),this._freedGraphics=[],this._mapName=t,this._parsedXML=U0(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=eC(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&$0(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,tt(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var n=new ee;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=Y0(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new se({shape:l.plain()}));var p=[];return S(e.named,function(g){jT.get(g.svgNodeTagLower)!=null&&(p.push(g),QT(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 QT(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function eC(r){var t=[],e=F();return S(r,function(a){if(a.namedFrom==null){var n=new gw(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var wl=[126,25],Lh="\u5357\u6D77\u8BF8\u5C9B",Sr=[[[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 xr=0;xr<Sr.length;xr++)for(var jr=0;jr<Sr[xr].length;jr++)Sr[xr][jr][0]/=10.5,Sr[xr][jr][1]/=-10.5/.75,Sr[xr][jr][0]+=wl[0],Sr[xr][jr][1]+=wl[1];function tC(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Lh)return;t.push(new dy(Lh,z(Sr,function(a){return{type:"polygon",exterior:a}}),wl))}}var rC={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function aC(r,t){if(r==="china"){var e=rC[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var nC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function iC(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:nC[0]})}var oC="name",sC=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=F(),this._mapName=t,this._specialAreas=a,this._geoJSON=uC(e)}return r.prototype.load=function(t,e){e=e||oC;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:lC(n)})}var i=F(),o=[];return S(a.regions,function(s){var l=s.name;t&&Q(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?mw(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return tC(e,n),S(n,function(i){var o=i.name;aC(e,i),iC(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function lC(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function uC(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var $a=F();const Bt={registerMap:function(r,t,e){if(t.svg){var a=new JT(r,t.svg);$a.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new sC(r,n,e);$a.set(r,a)}},getGeoResource:function(r){return $a.get(r)},getMapForUser:function(r){var t=$a.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=$a.get(r);if(!!a)return a.load(t,e)}};var Fu=["rect","circle","line","ellipse","polygon","polyline","path"],cC=F(Fu),fC=F(Fu.concat(["g"])),hC=F(Fu.concat(["g"])),im=ae();function di(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 vC=function(){function r(t){var e=new ee;this.uid=Ta("ec_map_draw"),this._controller=new am(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ee),e.add(this._svgGroup=new ee)}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 ee),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(A){if(A.type==="polygon"){var T=[A.exterior].concat(A.interiors||[]);u&&(T=Bh(T,u)),S(T,function(D){_.push(new fr(v(D)))})}else{var C=A.points;u&&(C=Bh(C,u,!0)),S(C,function(D){x.push(new Tt(v(D)))})}});var w=c(h.getCenter(),l&&l.project);function b(A,T){if(!!A.length){var C=new Od({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});p.add(C),Rh(t,C,y,m),Eh(t,C,d,m,o,y,w),T&&(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),Nh(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(cC.get(c)!=null&&f instanceof vn&&Rh(t,f,v,h),f instanceof vn&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(hC.get(c)!=null&&Eh(t,f,s,h,l,v,null),kh(t,f,s,h,l,v),Oh(t,f,s,h,l),fC.get(c)!=null)){var d=Nh(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){jl(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=Bt.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=Bt.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,XT(o,u.dx,u.dy),a.dispatchAction(B(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,KT(o,u.scale,u.originX,u.originY),a.dispatchAction(B(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])&&!nm(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=im(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=di(n),u=di(i),c=di(s),f=di(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=Zi(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,jl(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;Ft(t,Wt(a),{labelFetcher:v,labelDataIndex:f,defaultText:e},h);var d=t.getTextContent();if(d&&(im(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):q(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||ba({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Nh(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return sr(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&tx(t,n,e),o}function Bh(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),S(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}const om=vC;var dC=function(r){E(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 om(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 Gr({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:ap+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);Ft(v,Wt(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(_){qs(v,_)}}o.add(v)}}})},t.type="map",t}(We);const pC=dC;var gC=function(r){E(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=Bu(this,{coordDimensions:["value"],encodeDefaulter:te(Wp,this)}),n=F(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,!0)}var u=Bt.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 At("section",{header:u.join(", "),noHeader:!u.length,blocks:[At("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=Oe(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(dt);const yC=gC;function mC(r,t){var e={};return S(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,c=0;c<u;c++)s=Math.min(s,e[i][c]),l=Math.max(l,e[i][c]),o+=e[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function _C(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),S(t,function(e,a){for(var n=mC(z(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function xC(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};S(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),v=s.getRegion(f);if(!(!v||isNaN(u))){var h=n[f]||0,d=s.dataToPoint(v.getCenter());n[f]=h+1,l.setItemLayout(c,{point:d,offset:h})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var Vh=rt,SC=function(r){E(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=[Z(e[0],a.getWidth()),Z(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=rt([],i,e),n=rt([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),Z0(this.transform||(this.transform=[]),a.transform||Bn()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],kn(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):X0(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 sm=SC;var bC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},lm=["lng","lat"],um=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=lm,i.type="geo",i._nameCoordMap=F(),i.map=a;var o=n.projection,s=Bt.load(a,n.nameMap,n.nameProperty),l=Bt.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=bC[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var v=0;v<u.length;v++){var h=u[v].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:oe(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(W(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}(sm);Ke(um,sm);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=um;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,A,T,C){for(var D=T-b,M=C-A,I=0;I<=100;I++){var L=I/100,P=i.project([b+D*L,A+M*L]);Bd(a,a,P),Vd(n,n,P)}};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=[Z(v[0],d),Z(v[1],p)],_=Z(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 wC(r,t){S(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var AC=function(){function r(){this.dimensions=lm}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,B({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=z(o,function(c){return c.get("nameMap")}),u=new Fh(s,s,B({nameMap:K0(l)},n(o[0])));u.zoomLimit=ir.apply(null,z(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,wC(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=Bt.load(e,a,n);return S(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},r}(),TC=new AC;const cm=TC;var CC=function(r){E(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=Bt.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Vi(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=cm.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=ua(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(X(i))return o.status=a,i(o);if(W(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}(re);const MC=CC;function Hh(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function DC(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(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 IC=function(r){E(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 om(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;Mr(e.target,function(n){return(a=q(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=q(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Te);const LC=IC;function PC(r,t,e){Bt.registerMap(r,t,e)}function RC(r){r.registerCoordinateSystem("geo",cm),r.registerComponentModel(MC),r.registerComponentView(LC),r.registerImpl("registerMap",PC),r.registerImpl("getMap",function(e){return Bt.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;S(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];S(o,function(f,v){o[v]&&c.push(v)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=DC(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&S(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function kR(r){Ne(RC),r.registerChartView(pC),r.registerSeriesModel(yC),r.registerLayout(xC),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_C),Ag("map",r.registerAction)}var Ln=S,EC=$,eo=-1,Wu=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=Y(t);this.type=a,this.mappingMethod=e,this._normalizeData=NC[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(bs(n),kC(n)):e==="category"?n.categories?OC(n):bs(n,!0):(tt(e!=="linear"||n.dataExtent),bs(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return G(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){$(t)?S(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=O(t)?[]:$(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&&Ln(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(O(t))t=t.slice();else if(EC(t)){var e=[];Ln(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||W(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(gi(f[1],t,c[1]))return o}else if(c[1]===1/0){if(gi(f[0],c[0],t))return o}else if(gi(f[0],c[0],t)&&gi(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:Ya("color"),getColorMapper:function(){var t=this.option;return G(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),rn.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=No(e,t.parsedVisual,n),i?n:bi(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return bi(No(t,this.option.parsedVisual),"rgba")},category:rn,piecewise:function(t,e){var a=Tl.call(this,e);return a==null&&(a=bi(No(t,this.option.parsedVisual),"rgba")),a},fixed:br}},colorHue:pi(function(t,e){return Bo(t,e)}),colorSaturation:pi(function(t,e){return Bo(t,null,e)}),colorLightness:pi(function(t,e){return Bo(t,null,null,e)}),colorAlpha:pi(function(t,e){return q0(t,e)}),decal:{applyVisual:Ya("decal"),_normalizedToVisual:{linear:null,category:rn,piecewise:null,fixed:null}},opacity:{applyVisual:Ya("opacity"),_normalizedToVisual:Al([0,1])},liftZ:{applyVisual:Ya("liftZ"),_normalizedToVisual:{linear:br,category:br,piecewise:br,fixed:br}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:Uh,category:rn,piecewise:function(t,e){var a=Tl.call(this,e);return a==null&&(a=Uh.call(this,t)),a},fixed:br}},symbolSize:{applyVisual:Ya("symbolSize"),_normalizedToVisual:Al([0,1])}},r}();function kC(r){var t=r.pieceList;r.hasSpecialVisual=!1,S(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function OC(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Ln(t,function(o,s){e[o]=s}),!O(a)){var n=[];$(a)?Ln(a,function(o,s){var l=e[s];n[l!=null?l:eo]=o}):n[eo]=a,a=fm(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function bs(r,t){var e=r.visual,a=[];$(e)?Ln(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]),fm(r,a)}function pi(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Al([0,1])}}function Uh(r){var t=this.option.visual;return t[Math.round(he(r,[0,1],[0,t.length-1],!0))]||{}}function Ya(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function rn(r){var t=this.option.visual;return t[this.option.loop&&r!==eo?r%t.length:r]}function br(){return this.option.visual[0]}function Al(r){return{linear:function(t){return he(t,r,this.option.visual,!0)},category:rn,piecewise:function(t,e){var a=Tl.call(this,e);return a==null&&(a=he(t,r,this.option.visual,!0)),a},fixed:br}}function Tl(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Wu.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function fm(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=z(t,function(e){var a=Gd(e);return a||[0,0,0,1]})),t}var NC={linear:function(r){return he(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Wu.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?eo:t},fixed:bt};function gi(r,t,e){return r?t<=e:t<e}const He=Wu;function BC(r){VC(r),zC(r)}function VC(r){if(!r.parallel){var t=!1;S(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function zC(r){var t=ue(r.parallelAxis);S(t,function(e){if(!!$(e)){var a=e.parallelIndex||0,n=ue(r.parallel)[a];n&&n.parallelAxisDefault&&j(e,n.parallelAxisDefault,!1)}})}var GC=5,FC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},S(WC,function(i,o){n.getZr().on(o,this._handlers[o]=G(i,this))},this)),Fn(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){wn(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(B({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Te),WC={mousedown:function(r){ws(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(ws(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>GC)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!ws(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 ws(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const HC=FC;var UC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&j(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){S(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=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}(re);const $C=UC;var YC=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Dt);const ZC=YC;function 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=As(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=As(t,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(t[1-a]=t[a]+l.sign*n),f=As(t,a),i!=null&&f.span>i&&(t[1-a]=t[a]+f.sign*i),t}function As(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,hm=Math.min,vm=Math.max,$h=Math.floor,XC=Math.ceil,Yh=xe,KC=Math.PI,qC=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 ZC(o,Pu(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)),Cn(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=yi(t.get("axisExpandWidth"),l),f=yi(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=yi(h[1]-h[0],l),h[1]=h[0]+d;else{d=yi(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,XC(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?JC:jC)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:KC/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],v=c[i],h=Bn();Nn(h,h,v),dn(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 Y(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=[vm(0,d-h/2)],n[1]=hm(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function yi(r,t){return hm(vm(r,t[0]),t[1])}function jC(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function JC(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const QC=qC;function eM(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new QC(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",Me).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var tM={create:eM};const rM=tM;var dm=function(r){E(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 fa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=Y(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}(re);Ke(dm,Io);const Zh=dm;var Vr=!0,Pn=Math.min,ga=Math.max,aM=Math.pow,nM=1e4,iM=6,oM=6,Xh="globalPan",sM={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},lM={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Kh={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uM=0,cM=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new ee,a._uid="brushController_"+uM++,S(yM,function(n,i){this._handlers[i]=G(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||$T(a,Xh,this._uid),S(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=j(Y(Kh),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;YT(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]=Y(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=z(e,function(v){return j(Y(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]):gm(o,pm(o,d));Hu(o,p)}}function f(v){n[v]!==s&&o.group.remove(n[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),Cl(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(_a);function pm(r,t){var e=Po[t.brushType].createCover(r,t);return e.__brushOption=t,mm(e,t),r.group.add(e),e}function gm(r,t){var e=Uu(t);return e.endCreating&&(e.endCreating(r,t),mm(t,t.__brushOption)),t}function ym(r,t){var e=t.__brushOption;Uu(t).updateCoverShape(r,t,e.range,e)}function mm(r,t){var e=t.z;e==null&&(e=nM),r.traverse(function(a){a.z=e,a.z2=e})}function Hu(r,t){Uu(t).updateCommon(r,t),ym(r,t)}function Uu(r){return Po[r.__brushOption.brushType]}function $u(r,t,e){var a=r._panels;if(!a)return Vr;var n,i=r._transform;return S(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function _m(r,t){var e=r._panels;if(!e)return Vr;var a=t.__brushOption.panelId;return a!=null?e[a]:Vr}function Cl(r){var t=r._covers,e=t.length;return S(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function zr(r,t){var e=z(r._covers,function(a){var n=a.__brushOption,i=Y(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function fM(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=aM(n*n+i*i,.5);return o>iM}function xm(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Sm(r,t,e,a){var n=new ee;return n.add(new se({name:"main",style:Yu(e),silent:!0,draggable:!0,cursor:"move",drift:te(qh,r,t,n,["n","s","w","e"]),ondragend:te(zr,t,{isEnd:!0})})),S(a,function(i){n.add(new se({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:te(qh,r,t,n,i),ondragend:te(zr,t,{isEnd:!0})}))}),n}function bm(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=ga(n,oM),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],f=e[1][1],v=c-i+n/2,h=f-i+n/2,d=c-o,p=f-s,g=d+n,y=p+n;Pt(r,t,"main",o,s,d,p),a.transformable&&(Pt(r,t,"w",l,u,i,y),Pt(r,t,"e",v,u,i,y),Pt(r,t,"n",l,u,g,i),Pt(r,t,"s",l,h,g,i),Pt(r,t,"nw",l,u,i,i),Pt(r,t,"ne",v,u,i,i),Pt(r,t,"sw",l,h,i,i),Pt(r,t,"se",v,h,i,i))}function Ml(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Yu(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?Dl(r,i[0]):vM(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?lM[s]+"-resize":null})})}function Pt(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(pM(Zu(r,t,[[a,n],[a+i,n+o]])))}function Yu(r){return K({strokeNoScale:!0},r.brushStyle)}function wm(r,t,e,a){var n=[Pn(r,e),Pn(t,a)],i=[ga(r,e),ga(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function hM(r){return Lr(r.group)}function Dl(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=co(e[t],hM(r));return a[n]}function vM(r,t){var e=[Dl(r,t[0]),Dl(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=Am(t,n,i);S(a,function(u){var c=sM[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(wm(s[0][0],s[1][0],s[0][1],s[1][1])),Hu(t,e),zr(t,{isEnd:!1})}function dM(r,t,e,a){var n=t.__brushOption.range,i=Am(r,e,a);S(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Hu(r,t),zr(r,{isEnd:!1})}function Am(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 Zu(r,t,e){var a=_m(r,t);return a&&a!==Vr?a.clipPath(e,r._transform):Y(e)}function pM(r){var t=Pn(r[0][0],r[1][0]),e=Pn(r[0][1],r[1][1]),a=ga(r[0][0],r[1][0]),n=ga(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function gM(r,t,e){if(!(!r._brushType||mM(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=$u(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Vr||s.panelId===i.panelId)&&Po[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function Il(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Ll(r,t,e){return r.childOfName("main").contain(t,e)}function Tm(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),fM(r)||n){if(i&&!n){o.brushMode==="single"&&Cl(r);var l=Y(o);l.brushType=jh(l.brushType,i),l.panelId=i===Vr?null:i.panelId,n=r._creatingCover=pm(r,l),r._covers.push(n)}if(n){var u=Po[jh(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(Zu(r,n,r._track)),a&&(gm(r,n),u.updateCommon(r,n)),ym(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&$u(r,t,e)&&Cl(r)&&(s={isEnd:a,removeOnClick:!0});return s}function jh(r,t){return r==="auto"?t.defaultBrushType:r}var yM={mousedown:function(r){if(this._dragging)Jh(this,r);else if(!r.target||!r.target.draggable){Il(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=$u(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(gM(this,r,a),this._dragging){Il(r);var n=Tm(this,r,a,!1);n&&zr(this,n)}},mouseup:function(r){Jh(this,r)}};function Jh(r,t){if(r._dragging){Il(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=Tm(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&zr(r,i)}}function mM(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Po={lineX:Qh(0),lineY:Qh(1),rect:{createCover:function(r,t){function e(a){return a}return Sm({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=xm(r);return wm(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){bm(r,t,e,a)},updateCommon:Ml,contain:Ll},polygon:{createCover:function(r,t){var e=new ee;return e.add(new Tt({name:"main",style:Yu(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new fr({name:"main",draggable:!0,drift:te(dM,r,t),ondragend:te(zr,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:Zu(r,t,e)})},updateCommon:Ml,contain:Ll}};function Qh(r){return{createCover:function(t,e){return Sm({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=xm(t),a=Pn(e[0][r],e[1][r]),n=ga(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=_m(t,e);if(o!==Vr&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),bm(t,e,l,n)},updateCommon:Ml,contain:Ll}}const Cm=cM;function Mm(r){return r=Xu(r),function(t){return yp(t,r)}}function Dm(r,t){return r=Xu(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 Im(r,t,e){var a=Xu(r);return function(n,i){return a.contain(i[0],i[1])&&!nm(n,t,e)}}function Xu(r){return ye.create(r)}var _M=["axisLine","axisTickLabel","axisName"],xM=function(r){E(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 Cm(a.getZr())).on("brush",G(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!SM(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ee,this.group.add(this._axisGroup),!!e.get("show")){var s=wM(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,f=e.axis.dim,v=l.getAxisLayout(f),h=B({strokeContainThreshold:c},v),d=new cr(e,h);S(_M,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,u,e,s,c,n),fo(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:Mm(f),isTargetByCursor:Im(f,s,i),getLinearBrushOtherExtent:Dm(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(bM(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=z(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}(Te);function SM(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function bM(r){var t=r.axis;return z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function wM(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const AM=xM;var TM={type:"axisAreaSelect",event:"axisAreaSelected"};function CM(r){r.registerAction(TM,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var MM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OR(r){r.registerComponentView(HC),r.registerComponentModel($C),r.registerCoordinateSystem("parallel",rM),r.registerPreprocessor(BC),r.registerComponentModel(Zh),r.registerComponentView(AM),Dn(r,"parallel",Zh,MM),CM(r)}var DM=["itemStyle","borderWidth"],ev=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Cs=new Gr,IM=function(r){E(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]};o.diff(s).add(function(d){if(!!o.hasValue(d)){var p=rv(o,d),g=tv(o,d,p,v),y=av(o,v,g);o.setItemGraphicEl(d,y),i.add(y),iv(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=rv(o,d),m=tv(o,d,y,v),_=Om(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?NM(g,v,m):g=av(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),iv(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&nv(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?By(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){nv(i,q(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};LM(e,i,n,a,v),PM(r,t,n,i,o,v.boundingLength,v.pxSign,c,a,v),RM(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=wo(e.get("symbolOffset"),h);return EM(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function LM(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(O(o)){var f=[Ms(s,o[0])-l,Ms(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Ms(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 Ms(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function PM(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,v=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),d;O(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[f.index]=Z(d[f.index],v),d[c.index]=Z(d[c.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function RM(r,t,e,a,n){var i=r.get(DM)||0;i&&(Cs.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Cs.updateTransform(),i/=Cs.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function EM(r,t,e,a,n,i,o,s,l,u,c,f){var v=c.categoryDim,h=c.valueDim,d=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=ir(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var x=Z(m,t[h.index]),w=Math.max(p+x*2,0),b=_?0:x*2,A=$d(a),T=A?a:ov((y+b)/w),C=y-T*p;x=C/2/(_?T:Math.max(T-1,1)),w=p+x*2,b=_?0:x*2,!A&&a!=="fixed"&&(T=u?ov((Math.abs(u)+b)/w):0),g=T*w-b,f.repeatTimes=T,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=B({},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 P=f.clipShape={};P[v.xy]=-e[v.xy],P[v.wh]=c.ecSize[v.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function Lm(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 Pm(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(Ku(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?la(p,null,d(c),e,a):la(p,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(p)}),c++});c<u;c++){var v=Lm(e);v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,n.add(v);var h=d(c);la(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 Rm(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?la(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=Lm(e),n.add(i),la(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 Em(r,t,e){var a=B({},t.barRectShape),n=r.__pictorialBarRect;n?la(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new se({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function km(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=B({},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 se({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],wa[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function rv(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=kM,e.isAnimationEnabled=OM,e}function kM(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function OM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function av(r,t,e,a){var n=new ee,i=new ee;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Pm(n,t,e):Rm(n,t,e),Em(n,e,a),km(n,t,e,a),n.__pictorialShapeStr=Om(r,e),n.__pictorialSymbolMeta=e,n}function NM(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?Pm(r,t,e,!0):Rm(r,t,e,!0),Em(r,e,!0),km(r,t,e,!0)}function nv(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Ku(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),S(i,function(o){yn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Om(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Ku(r,t,e){S(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function la(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&wa[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");Ku(r,function(p){if(p instanceof Vt){var g=p.style;p.useStyle(B({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;d.ignoreClip=!0,Ft(d,Wt(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Lo(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),sr(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 BM=IM;var VM=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=hr(Qi.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Qi);const zM=VM;function NR(r){r.registerChartView(BM),r.registerSeriesModel(zM),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,te(ay,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ny("pictorialBar"))}function GM(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Q(r,"text")))}function FM(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Q(a,"text")&&(o.text=a.text),Q(a,"rich")&&(o.rich=a.rich),Q(a,"textFill")&&(o.fill=a.textFill),Q(a,"textStroke")&&(o.stroke=a.textStroke),Q(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Q(a,"fontSize")&&(o.fontSize=a.fontSize),Q(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Q(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Q(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Q(a,"textPosition")&&(n.position=a.textPosition),Q(a,"textOffset")&&(n.offset=a.textOffset),Q(a,"textRotation")&&(n.rotation=a.textRotation),Q(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,Q(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Q(t,"textAlign")&&(r.align=t.textAlign),Q(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Q(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Q(t,"textWidth")&&(r.width=t.textWidth),Q(t,"textHeight")&&(r.height=t.textHeight),Q(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Q(t,"textPadding")&&(r.padding=t.textPadding),Q(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Q(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Q(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Q(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Q(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Q(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Q(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var Nm={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lv=De(Nm);ua(pn,function(r,t){return r[t]=1,r},{});pn.join(", ");var to=["","style","shape","extra"],ya=ae();function qu(r,t,e,a,n){var i=r+"Animation",o=Sa(r,a,n)||{},s=ya(t).userDuring;return o.duration>0&&(o.during=s?G(ZM,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,e[i]),o}function Ds(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=ya(r),u=t.style;l.userDuring=t.during;var c={},f={};if(KM(r,t,f),cv("shape",t,f),cv("extra",t,f),!i&&s&&(XM(r,t,c),uv("shape",r,t,c),uv("extra",r,t,c),qM(r,t,u,c)),f.style=u,HM(r,f,o),$M(r,t),s)if(i){var v={};S(to,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),B(d?v[d]:v,p.enterFrom))});var h=qu("enter",r,t,e,n);h.duration>0&&r.animateFrom(v,h)}else UM(r,t,n||0,e,c);Bm(r,t),u?r.dirty():r.markRedraw()}function Bm(r,t){for(var e=ya(r).leaveToProps,a=0;a<to.length;a++){var n=to[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=ya(r).leaveToProps={}),n&&(e[n]=e[n]||{}),B(n?e[n]:e,i.leaveTo))}}function WM(r,t,e,a){if(r){var n=r.parent,i=ya(r).leaveToProps;if(i){var o=qu("update",r,t,e,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function kr(r){return r==="all"}function HM(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function UM(r,t,e,a,n){if(n){var i=qu("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function $M(r,t){Q(t,"silent")&&(r.silent=t.silent),Q(t,"ignore")&&(r.ignore=t.ignore),r instanceof vn&&Q(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ie&&Q(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var yt={},YM={setTransform:function(r,t){return yt.el[r]=t,this},getTransform:function(r){return yt.el[r]},setShape:function(r,t){var e=yt.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=yt.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=yt.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=yt.el.style;if(t)return t[r]},setExtra:function(r,t){var e=yt.el.extra||(yt.el.extra={});return e[r]=t,this},getExtra:function(r){var t=yt.el.extra;if(t)return t[r]}};function ZM(){var r=this,t=r.el;if(!!t){var e=ya(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}yt.el=t,a(YM)}}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]={}),kr(l))B(o,i);else for(var u=ue(l),c=0;c<u.length;c++){var f=u[c],v=i[f];o[f]=v}else if(kr(s)||ie(s,r)>=0){!o&&(o=a[r]={});for(var h=De(i),c=0;c<h.length;c++){var f=h[c],v=i[f];jM(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]=j0(a[s])}}function XM(r,t,e){for(var a=t.transition,n=kr(a)?pn:ue(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function KM(r,t,e){for(var a=0;a<lv.length;a++){var n=lv[a],i=Nm[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<pn.length;a++){var s=pn[a];t[s]!=null&&(e[s]=t[s])}}function qM(r,t,e,a){if(!!e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!kr(o)){var l=ue(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(kr(s)||kr(o)||ie(s,"style")>=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=De(e),u=0;u<d.length;u++){var c=d[u];if(h[c]){var f=n[c];i[c]=f}}}}}}}function jM(r,t){return En(r)?r!==t:r!=null&&isFinite(r)}var Vm=ae(),JM=["percent","easing","shape","style","extra"];function QM(r){r.stopAnimation("keyframe"),r.attr(Vm(r))}function Pl(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(O(t)){S(t,function(s){Pl(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=Sa("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Vm(r);S(to,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(JM,p)<0})),!!v.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;S(v,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,f,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Ar=ae(),fv=Y,Is=G,eD=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ee,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=te(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=zu(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 wa[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=zn(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){or(u.event)},onmousedown:Is(this._onHandleDragMove,this,0,0),drift:Is(this._onHandleDragMove,this),ondragend:Is(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");O(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Fn(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,Ls(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(Ls(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ls(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),wn(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){zm(Ar(e).lastProp,a)||(Ar(e).lastProp=a,t?pe(e,a,r):(e.stopAnimation(),e.attr(a)))}function zm(r,t){if($(r)&&$(t)){var e=!0;return S(t,function(a,n){e=e&&zm(r[n],a)}),!!e}else return r===t}function vv(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ls(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 Gm=eD;function Fm(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 Wm(r,t,e,a,n){var i=e.get("value"),o=Hm(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Gn(s.get("padding")||0),u=s.getFont(),c=io(o,u),f=n.position,v=c.width+l[1]+l[3],h=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=v),d==="center"&&(f[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),tD(f,v,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Ae(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function tD(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Hm(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:Ru(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)}),W(o)?i=o.replace("{value}",i):X(o)&&(i=o(s))}return i}function Um(r,t,e){var a=Bn();return Nn(a,a,e.rotation),dn(a,a,e.position),vt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function rD(r,t,e,a,n,i){var o=cr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Wm(t,a,n,i,{position:Um(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $m(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function aD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function pv(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var nD=function(r){E(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=Fm(i),h=iD[u](s,f,c);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=xl(l.model,n);rD(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=xl(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Um(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}(Gm);function gv(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var iD={line:function(r,t,e){var a=$m([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:aD([t-a/2,e[0]],[a,n],yv(r))}}};function yv(r){return r.dim==="x"?0:1}const oD=nD;var sD=function(r){E(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}(re);const lD=sD;var Ot=ae(),uD=S;function Ym(r,t,e){if(!ge.node){var a=t.getZr();Ot(a).records||(Ot(a).records={}),cD(a,t);var n=Ot(a).records[r]||(Ot(a).records[r]={});n.handler=e}}function cD(r,t){if(Ot(r).initialized)return;Ot(r).initialized=!0,e("click",te(mv,"click")),e("mousemove",te(mv,"mousemove")),e("globalout",hD);function e(a,n){r.on(a,function(i){var o=vD(t);uD(Ot(r).records,function(s){s&&n(s,i,o.dispatchAction)}),fD(o.pendings,t)})}}function fD(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function hD(r,t,e){r.handler("leave",null,e)}function mv(r,t,e,a){t.handler(r,e,a)}function vD(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Rl(r,t){if(!ge.node){var e=t.getZr(),a=(Ot(e).records||{})[r];a&&(Ot(e).records[r]=null)}}var dD=function(r){E(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";Ym("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){Rl("axisPointer",a)},t.prototype.dispose=function(e,a){Rl("axisPointer",a)},t.type="axisPointer",t}(Te);const pD=dD;function Zm(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Or(i,r);if(o==null||o<0||O(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(z(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 gD(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||G(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Pi(n)&&(n=Zm({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Pi(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Pi(n),v={},h={},d={list:[],map:{}},p={showPointer:te(mD,h),showTooltip:te(_D,d)};S(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);S(s.coordSysAxesInfo[m],function(x,w){var b=x.axis,A=wD(u,x);if(!f&&_&&(!u||A)){var T=A&&A.value;T==null&&!l&&(T=b.pointToData(n)),T!=null&&xv(x,T,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 A=b.value;_.mapper&&(A=y.axis.scale.parse(_.mapper(A,Sv(x),Sv(y)))),g[y.key]=A}})}),S(g,function(y,m){xv(c[m],y,p,!0,v)}),xD(h,c,v),SD(d,n,r,o),bD(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=yD(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function yD(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return S(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,r,e);v=h.dataIndices,f=h.nestestValue}else{if(v=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!v.length)return;f=l.getData().get(c[0],v[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),S(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function mD(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function _D(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=In(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function xD(r,t,e){var a=e.axesInfo=[];S(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function SD(r,t,e,a){if(Pi(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function bD(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=_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 wD(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function 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 Pi(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ju(r){Hn.registerAxisPointerClass("CartesianAxisPointer",oD),r.registerComponentModel(lD),r.registerComponentView(pD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!O(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=dT(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gD)}function BR(r){Ne(tm),Ne(ju)}var AD=function(r){E(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=Fm(i),d=CD[v](s,l,f,c);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=TD(a,n,i,l,p);Wm(e,n,i,o,g)},t}(Gm);function TD(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();Nn(v,v,s),dn(v,v,[a.cx,a.cy]),u=vt([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=cr.innerTextLayout(s,h*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var CD={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:$m(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 MD=AD;var DD=function(r){E(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}(re);const ID=DD;var Ju=function(r){E(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}(re);Ke(Ju,Io);var LD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Ju),PD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Ju),Qu=function(r){E(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 RD=Qu;var ED=ae(),ec=function(r){E(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=io(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),v=f/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=ED(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(Dt);ec.prototype.dataToAngle=Dt.prototype.dataToCoord;ec.prototype.angleToData=Dt.prototype.coordToData;const kD=ec;var Xm=["radius","angle"],OD=function(){function r(t){this.dimensions=Xm,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new RD,this._angleAxis=new kD,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,v=this.r0;return c<=f*f&&c>=v*v}}},r.prototype.convertToPixel=function(t,e,a){var n=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 ND=OD;function BD(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=Z(a[0],n),r.cy=Z(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:O(l)||(l=[0,l]);var u=[Z(l[0],s),Z(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function VD(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();S(qi(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),S(qi(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Cn(a.scale,a.model),Cn(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function zD(r){return r.mainType==="angleAxis"}function wv(r,t){var e;if(r.type=t.get("type"),r.scale=Pu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),zD(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var GD={dimensions:Xm,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new ND(n+"");i.update=VD;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");wv(o,l),wv(s,u),BD(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Me).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const FD=GD;var WD=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function mi(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 _i(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Av(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var HD=function(r){E(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=z(n.getViewLabels(),function(c){c=Y(c);var f=n.scale,v=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(v),c});Av(u),Av(s),S(WD,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&UD[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Hn),UD={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=_i(e),f=c?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?v=new wa[h]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new no({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[_i(e)],u=z(a,function(c){return new Ze({shape:mi(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[_i(e)],c=[],f=0;f<n.length;f++)for(var v=0;v<n[f].length;v++)c.push(new Ze({shape:mi(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[_i(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];$(w)&&w.textStyle&&(h=new Se(w.textStyle,l,l.ecModel))}var b=new ne({silent:cr.isLabelSilent(t),style:Ae(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 A=cr.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,q(b).eventData=A}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Ze({shape:mi(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:mi(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 zt({shape:{cx:e.cx,cy:e.cy,r0:h,r:d,startAngle:v,endAngle:-m*f,clockwise:p},silent:!0})),v=-m*f}for(var g=0;g<c.length;g++)r.add(ft(c[g],{style:K({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const $D=HD;var YD=["axisLine","axisTickLabel","axisName"],ZD=["splitLine","splitArea","minorSplitLine"],XD=function(r){E(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 ee;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],v=o.getExtent(),h=qD(s,e,f),d=new cr(e,h);S(YD,d.add,d),i.add(d.getGroup()),fo(n,i,e),S(ZD,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&KD[p](this.group,e,s,f,v,u,c)},this)}},t.type="radiusAxis",t}(Hn),KD={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),f=Math.PI/180,v=c.getExtent(),h=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new wa[h]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[p].coord,0),startAngle:-v[0]*f,endAngle:-v[1]*f,clockwise:c.inverse}}))}for(var p=0;p<d.length;p++)r.add(ft(d[p],{style:K({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Gr({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 zt({shape:{cx:e.cx,cy:e.cy,r0:f,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[v].coord}for(var v=0;v<c.length;v++)r.add(ft(c[v],{style:K({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function qD(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const jD=XD;function Km(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function qm(r,t){return t.dim+r.model.componentIndex}function JD(r,t,e){var a={},n=QD(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=qm(s,l),c=Km(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=Br(o,_),b=l.dim!=="radius"||!i.get("roundCap",!0),A=d.dataToCoord(0),T=0,C=o.count();T<C;T++){var D=o.get(_,T),M=o.get(x,T),I=D>=0?"p":"n",L=A;w&&(a[c][M]||(a[c][M]={p:A,n:A}),L=a[c][M][I]);var P=void 0,R=void 0,N=void 0,U=void 0;if(d.dim==="radius"){var k=d.dataToCoord(D)-A,V=l.dataToCoord(M);Math.abs(k)<y&&(k=(k<0?-1:1)*y),P=L,R=L+k,N=V-v,U=N-h,w&&(a[c][M][I]=R)}else{var H=d.dataToCoord(D,b)-A,J=l.dataToCoord(M);Math.abs(H)<m&&(H=(H<0?-1:1)*m),P=J+v,R=P+h,N=L,U=L+H,w&&(a[c][M][I]=U)}o.setItemLayout(T,{cx:p,cy:g,r0:P,r:R,startAngle:-N*Math.PI/180,endAngle:-U*Math.PI/180,clockwise:N>=U})}}})}function QD(r){var t={};S(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=qm(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=Km(a);v[h]||f.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=Z(a.get("barWidth"),c),p=Z(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=Z(a.categoryGap,o),l=Z(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),S(i,function(p,g){var y=p.maxWidth;y&&y<f&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var v=0,h;S(i,function(p,g){p.width||(p.width=f),h=p,v+=p.width*(1+l)}),h&&(v-=h.width*l);var d=-v/2;S(i,function(p,g){e[n][g]=e[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var eI={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},tI={splitNumber:5},rI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Te);function VR(r){Ne(ju),Hn.registerAxisPointerClass("PolarAxisPointer",MD),r.registerCoordinateSystem("polar",FD),r.registerComponentModel(ID),r.registerComponentView(rI),Dn(r,"angle",LD,eI),Dn(r,"radius",PD,tI),r.registerComponentView($D),r.registerComponentView(jD),r.registerLayout(te(JD,"bar"))}var aI=function(r){E(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=Ca(e);r.prototype.init.apply(this,arguments),Tv(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Tv(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(re);function Tv(r,t){var e=r.cellSize,a;O(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=z([0,1],function(i){return Vx(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});lr(r,t,{type:"box",ignoreSize:n})}const nI=aI;var iI=function(r){E(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 se({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 Tt({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 W(e)&&e?Nx(e,a):X(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:Ae(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||W(s))&&(s&&(a=al(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),A=new ne({z2:30,style:B(Ae(o,{text:b}),this._monthTextPositionControl(g,d,n,u,l))});i.add(A)}}},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||W(c)){c&&(a=al(c)||a);var h=a.get(["time","dayOfWeekShort"]);c=h||z(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=Z(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:B(Ae(s,{text:c[_]}),this._weekTextPositionControl(m,i,u,f,p))});o.add(x)}}},t.type="calendar",t}(Te);const oI=iI;var Ps=864e5,sI=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=wt(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];S([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=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){O(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+Ps))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(O(t)&&t.length===1&&(t=t[0]),O(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/Ps)-Math.floor(e[0].time/Ps)+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 lI=sI;function zR(r){r.registerComponentModel(nI),r.registerComponentView(oI),r.registerCoordinateSystem("calendar",lI)}function uI(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function Mv(r,t){var e;return S(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function cI(r,t,e){var a=B({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(j(n,a,!0),lr(n,a,{ignoreSize:!0}),Bp(e,n),xi(e,n),xi(e,n,"shape"),xi(e,n,"style"),xi(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var jm=["transition","enterFrom","leaveTo"],fI=jm.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function xi(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?jm:fI,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function hI(r,t){if(!!r&&(r.hv=t.hv=[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 vI=function(r){E(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=qd(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];S(l,function(c,f){var v=c.newOption;!v||(u.push(v),uI(c,v),cI(o,f,v),hI(o[f],v))},this),n.elements=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}(re),Dv={path:null,compoundPath:null,group:ee,image:Vt,text:ne},Qe=ae(),dI=function(r){E(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&&GM(d,h,!!g,!!p)){var y=FM(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=pI(l),_=l.$action||"merge",x=_==="merge",w=_==="replace";if(x){var b=!c,A=c;b?A=Iv(u,v,l.type,n):(A&&(Qe(A).isNew=!1),QM(A)),A&&(Ds(A,m,e,{isInit:b}),Lv(A,l,o,s))}else if(w){Ri(c,l,n,e);var T=Iv(u,v,l.type,n);T&&(Ds(T,m,e,{isInit:!0}),Lv(T,l,o,s))}else _==="remove"&&(Bm(c,l),Ri(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 P=C.getClipPath();b=!P||Qe(P).type!==I,L=b?El(I):P}else w&&(b=!0,L=El(I));C.setClipPath(L),Ds(L,M,e,{isInit:b}),Pl(L,M.keyframeAnimation,e)}var R=Qe(C);C.setTextConfig(g),R.option=l,gI(C,e,l),ba({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),Pl(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c],v=ke(f.id,null),h=v!=null?o.get(v):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Qe(h),y=Qe(d);g.width=Z(g.option.width,p?s:y.width)||0,g.height=Z(g.option.height,p?l:y.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],v=ke(f.id,null),h=v!=null?o.get(v):null;if(!!h){var d=h.parent,y=Qe(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},x=lu(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Qe(h).isNew&&x){for(var w=f.transition,b={},A=0;A<u.length;A++){var T=u[A],C=_[T];w&&(kr(w)||ie(w,T)>=0)?b[T]=C:h[T]=C}pe(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Ri(n,Qe(n).option,a,e._lastGraphicModel)}),this._elMap=F()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Te);function El(r){var t=Q(Dv,r)?Dv[r]:vp(r),e=new t({});return Qe(e).type=r,e}function Iv(r,t,e,a){var n=El(e);return t.add(n),a.set(r,n),Qe(n).id=r,Qe(n).isNew=!0,n}function Ri(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Ri(i,t,e,a)}),WM(r,t,a),e.removeKey(Qe(r).id))}function Lv(r,t,e,a){r.isGroup||S([["cursor",vn.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];Q(t,i)?r[i]=oe(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]=X(i)?i:null}}),Q(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function pI(r){return r=B({},r),S(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Np),function(t){delete r[t]}),r}function gI(r,t,e){var a=q(r).eventData;!r.silent&&!r.ignore&&!a&&(a=q(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function GR(r){r.registerComponentModel(vI),r.registerComponentView(dI),r.registerPreprocessor(function(t){var e=t.graphic;O(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"],yI=["cartesian2d","polar","singleAxis"];function mI(r){var t=r.get("coordinateSystem");return ie(yI,t)>=0}function ar(r){return r+"Axis"}function _I(r,t){var e=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 Jm(r){var t=r.ecModel,e={infoList:[],infoMap:F()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(ar(a),n);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Rs=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),xI=function(r){E(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);j(this.option,e,!0),j(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;S([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=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(ar(n),A_);if(!!i.specified){a=!0;var o=new Rs;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 Rs;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:ar(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var f=new Rs;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");S([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(ar(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){S(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(ar(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;S([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;S(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(re);function Rv(r){var t={};return S(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Rn=xI;var SI=function(r){E(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}(Rn);const bI=SI;var wI=function(r){E(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}(Te);const tc=wI;var AI=function(r){E(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}(tc);const TI=AI;var ra=S,Ev=Rt,CI=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(mI(e)){var a=ar(this._dimName),n=e.getReferringComponents(a,Me).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Y(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=MI(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ra(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(!!c.length){if(i==="weakFilter"){var f=u.getStore(),v=z(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=Wd(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function MI(r,t,e){var a=[1/0,-1/0];ra(e,function(o){hw(a,o.getData(),t)});var n=r.getAxisModel(),i=cy(n.axis.scale,n,a).calculate();return[i.min,i.max]}const DI=CI;var II={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(ar(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new DI(n,i,s,r),e.push(o.__dzAxisProxy))});var a=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 LI=II;function PI(r){r.registerAction("dataZoom",function(t,e){var a=_I(e,t);S(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var kv=!1;function rc(r){kv||(kv=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,LI),PI(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function RI(r){r.registerComponentModel(bI),r.registerComponentView(TI),rc(r)}var ct=function(){function r(){}return r}(),Qm={};function Za(r,t){Qm[r]=t}function e0(r){return Qm[r]}var EI=function(r){E(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=e0(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),j(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(re);const kI=EI;function OI(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ue(a,i,n);Pr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),lu(r,a,i,n)}function t0(r,t){var e=Gn(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new se({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 NI=function(r){E(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(te(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(BI(g))x={onclick:_.option.onclick,featureName:g};else{var w=e0(g);if(!w)return;x=new w}c[g]=x}else if(x=c[y],!x)return;x.uid=Ta("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(A,T){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[A]=T,D[A]&&(T==="emphasis"?ha:va)(D[A])},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;W(_)?(w={},w[g]=_):w=_,W(x)?(b={},b[g]=x):b=x;var A=d.iconPaths={};S(w,function(T,C){var D=zn(T,{},{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,font:xp({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),ba({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:b[C]}}),D.__title=b[C],D.on("mouseover",function(){var L=m.getItemStyle(),P=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")||P}),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"?ha:va)(D),o.add(D),D.on("click",G(p.onclick,p,a,n,C)),A[C]=D})}OI(o,e,n),o.add(t0(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(_&&!X(_)&&p){var x=_.style||(_.style={}),w=io(p,ne.makeFont(x)),b=d.x+o.x,A=d.y+o.y+s,T=!1;A+w.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-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}(Te);function BI(r){return r.indexOf("my")===0}const VI=NI;var zI=function(r){E(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(X(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"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(A),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(ct);const GI=zI;var Ov="__ec_magicType_stack__",FI=[["line","bar"],["stack"]],WI=function(r){E(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(!!Nv[n]){var s={series:[]},l=function(f){var v=f.subType,h=f.id,d=Nv[n](v,h,f,i);d&&(K(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=f.getReferringComponents(m,Me).models[0],x=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=x;w++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=n==="bar"}}};S(FI,function(f){ie(f,n)>=0&&S(f,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=j({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ct),Nv={line:function(r,t,e,a){if(r==="bar")return j({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return j({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===Ov;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),j({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 HI=WI;var Ro=new Array(60).join("-"),ma="	";function UI(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function $I(r){var t=[];return S(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(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(ma)],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(ma))}t.push(u.join(`
`))}),t.join(`

`+Ro+`

`)}function YI(r){return z(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+ma:"")+n.join(ma))}),a.join(`
`)}).join(`

`+Ro+`

`)}function ZI(r){var t=UI(r);return{value:ve([$I(t.seriesGroupByCategoryAxis),YI(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+Ro+`

`),meta:t.meta}}function ro(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function XI(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ma)>=0)return!0}var kl=new RegExp("["+ma+"]+","g");function KI(r){for(var t=r.split(/\n+/g),e=ro(t.shift()).split(kl),a=[],n=z(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=ro(t[i]).split(kl);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function qI(r){for(var t=r.split(/\n+/g),e=ro(t.shift()),a=[],n=0;n<t.length;n++){var i=ro(t[n]);if(!!i){var o=i.split(kl),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function jI(r,t){var e=r.split(new RegExp(`
*`+Ro+`
*`,"g")),a={series:[]};return S(e,function(n,i){if(XI(n)){var o=KI(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=qI(n);a.series.push(o)}}),a}var JI=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),v=i.get("contentToOption"),h=ZI(e);if(X(f)){var d=f(a.getOption());W(d)?u.innerHTML=d:Xs(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}pc(_,"click",b),pc(x,"click",function(){if(v==null&&f!=null||v!=null&&f==null){b();return}var A;try{X(v)?A=v(u,a.getOption()):A=jI(c.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}A&&a.dispatchAction({type:"changeDataView",newOption:A}),b()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(ct);function QI(r,t){return z(r,function(e,a){var n=t&&t[a];if($(n)&&!O(n)){var i=$(e)&&!O(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(B({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:QI(a.data,i)})}}),t.mergeOption(K({series:e},r.newOption))});const eL=JI;var r0=S,a0=ae();function tL(r,t){var e=ac(r);r0(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function rL(r){var t=ac(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return r0(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function aL(r){a0(r).snapshots=null}function nL(r){return ac(r).length}function ac(r){var t=a0(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var iL=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){aL(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(ct);Mt({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const oL=iL;var sL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],lL=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=Bv(e,t);S(uL,function(o,s){(!a||!a.include||ie(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Es[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=Es[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=Es[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Fv[a.brushType](i.values,o.offset,cL(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:Mm(n),isTargetByCursor:Im(n,t,a.coordSysModel),getLinearBrushOtherExtent:Dm(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&ie(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=Bv(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Vv.length;l++)if(Vv[l](n,o))return o}return!0},r}();function Ol(r){return r[0]>r[1]&&r.reverse(),r}function Bv(r,t){return nn(r,t,{includeMainTypes:sL})}var uL={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(Lr(r)),t}},Es={lineX:te(Gv,0),lineY:te(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=[Ol([n[0],i[0]]),Ol([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=z(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=Ol(z([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:te(Wv,0),lineY:te(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 z(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 cL(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 n0=lL;var Nl=S,fL=__("toolbox-dataZoom_"),hL=function(r){E(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 Cm(n.getZr()),this._brushController.on("brush",G(this._onBrush,this)).mount()),pL(e,a,this,i,n),dL(e,a)},t.prototype.onclick=function(e,a,n){vL[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new n0(nc(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[v],f,c)}}),tL(i,n),this._dispatchZoomAction(n);function s(u,c,f){var v=c.getAxis(u),h=v.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=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=[];Nl(e,function(n,i){a.push(Y(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t}(ct),vL={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(rL(this.ecModel))}};function nc(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function dL(r,t){r.setIconStatus("back",nL(t)>1?"emphasis":"normal")}function pL(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new n0(nc(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)}$x("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=nc(a),o=nn(r,i);Nl(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Nl(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:fL+u+f};v[c]=f,n.push(v)}return n});const gL=hL;function FR(r){r.registerComponentModel(kI),r.registerComponentView(VI),Za("saveAsImage",GI),Za("magicType",HI),Za("dataView",eL),Za("dataZoom",gL),Za("restore",oL),Ne(RI)}var yL=function(r){E(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}(re);const mL=yL;function i0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function o0(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 s0=o0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_L=o0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function l0(r,t){if(!r)return t;t=kp(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function xL(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var SL=l0(_L,"transition"),ic=l0(s0,"transform"),bL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ge.transform3dSupported?"will-change:transform;":"");function wL(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function AL(r,t,e){if(!W(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Nr(t);var i=wL(e),o=Math.max(Math.round(n)*1.5,6),s="",l=ic+":",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 TL(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?","+ic+a:",left"+a+",top"+a),SL+":"+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;"+ic+":"+o+";":[["top",0],["left",0],[s0,o]]}function CL(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),S(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function ML(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=vg(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),t&&n&&a.push(TL(n,e)),i&&a.push("background-color:"+i),S(["width","color","radius"],function(h){var d="border-"+h,p=kp(d),g=r.get(p);g!=null&&a.push(d+":"+g+(h==="color"?"":"px"))}),a.push(CL(c)),f!=null&&a.push("padding:"+Gn(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&&Q0(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var DL=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ge.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(W(i)?document.querySelector(i):Xs(i)?i:X(i)&&i(t.getDom()));$v(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();J0(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=xL(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=bL+ML(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(W(i)&&a.get("trigger")==="item"&&!i0(a)&&(s=AL(a,n,i)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l<t.length;l++)Xs(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._container,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(G(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}();const IL=DL;var LL=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;$(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:vg(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=er(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(G(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function er(r){return Math.max(0,r)}function Yv(r){var t=er(r.shadowBlur||0),e=er(r.shadowOffsetX||0),a=er(r.shadowOffsetY||0);return{left:er(t-e),right:er(t+e),top:er(t-a),bottom:er(t+a)}}function Zv(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const PL=LL;var RL=new se({shape:{x:-1,y:-1,width:2,height:2}}),EL=function(r){E(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=C_(n.get("renderMode"));this._tooltipContent=i==="richText"?new PL(a):new IL(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!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")?Fn(this,"_updatePosition",50,"fixRate"):wn(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Ym("itemTooltip",this._api,G(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=BL(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=RL;c.x=i.x,c.y=i.y,c.update(),q(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var f=Zm(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=Xa([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=q(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Mr(n,function(c){if(q(c).dataIndex!=null)return l=c,!0;if(q(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=G(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=Xa([a.tooltipOption],i),l=this._renderMode,u=[],c=At("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=Hm(w,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),A=At("section",{header:b,noHeader:!On(b),sortBlocks:!0,blocks:[]});c.blocks.push(A),S(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Ru(x.axis,{value:w}),M.axisValueLabel=b,M.marker=v.makeTooltipMarker("item",Nr(M.color),l);var I=sf(C.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=Xa([C],i).get("valueFormatter");A.blocks.push(P?B({valueFormatter:P},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=hf(c,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`

`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=q(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=e.positionDefault,p=Xa([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 _=sf(u.formatTooltip(c,!1,f)),x=p.get("order"),w=p.get("valueFormatter"),b=_.frag,A=b?hf(w?B({valueFormatter:w},b):b,m,h,x,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=q(a),o=i.tooltipConfig,s=o.option||{};if(W(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=Xa(u,this._tooltipModel,f?{position:f}:null),h=v.get("content"),d=Math.random()+"",p=new Ko;this._showOrMove(v,function(){var g=Y(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(W(v)){var g=e.ecModel.get("useUTC"),y=O(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=po(y.axisValue,h,g)),h=Op(h,n,!0)}else if(X(v)){var _=G(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"||O(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(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),X(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),O(a))n=Z(a[0],u),i=Z(a[1],c);else if($(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(W(a)&&l){var y=NL(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=kL(n,i,o,u,c,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=Kv(v)?f[0]/2:v==="right"?f[0]:0),h&&(i-=Kv(h)?f[1]/2:h==="bottom"?f[1]:0),i0(e)){var y=OL(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&S(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&S(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&S(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&S(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],x=i[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){ge.node||!a.getDom()||(wn(this,"_updatePosition"),this._tooltipContent.dispose(),Rl("itemTooltip",a))},t.type="tooltip",t}(Te);function Xa(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)),W(o)&&(o={formatter:o}),o&&(n=new Se(o,n,a)))}return n}function Xv(r,t){return r.dispatchAction||G(t.dispatchAction,t)}function kL(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function OL(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function NL(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 BL(r,t,e){var a=Yl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Vn(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=q(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const VL=EL;function WR(r){Ne(ju),r.registerComponentModel(mL),r.registerComponentView(VL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}var 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=Y(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 zL(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]=Y(t[n]):delete r[n]})}function GL(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 bg(s,f,w)}function c(w,b){T1(s,f,w,b)}for(var f,v=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var d=a!=null?v.get(l,f):f,p=e(d),g=t[p],y=n[p],m=0,_=y.length;m<_;m++){var x=y[m];g[x]&&g[x].applyVisual(d,u,c)}}}}}var FL=function(r){E(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}(re),WL=function(r){E(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=oe(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ne({style:Ae(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),v=e.get("subtext"),h=new ne({style:Ae(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(){Fc(d,"_"+e.get("target"))}),p&&h.on("click",function(){Fc(p,"_"+e.get("subtarget"))}),q(c).eventData=q(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=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 A=new se({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(A)}},t.type="title",t}(Te);function HR(r){r.registerComponentModel(FL),r.registerComponentView(WL)}var HL=function(r){E(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(xa(u),""),v;$(u)?(v=Y(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 Cu([{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}(re);const Qv=HL;var u0=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=hr(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);Ke(u0,ag.prototype);const UL=u0;var $L=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Te);const YL=$L;var ZL=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Dt);const XL=ZL;var ks=Math.PI,ed=ae(),KL=function(r){E(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 At("nameValue",{noName:!0,value:c})},S(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=jL(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":W(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:ks/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*ks/180;var m,_,x,w=v.get("position",!0),b=h&&v.get("showPlayBtn",!0),A=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,D=f;w==="left"||w==="bottom"?(b&&(m=[0,0],C+=g),A&&(_=[C,0],C+=g),T&&(x=[D-d,0],D-=g)):(b&&(m=[D-d,0],D-=g),A&&(_=[0,0],C+=g),T&&(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;dn(s,s,[-l,-u]),Nn(s,s,-ks/2),dn(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||W(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,A,T){x[A]+=b[A][T]-w[A][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=qL(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new XL("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new ee;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:B({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:G(o._changeTimeline,o,u.value)},g=td(f,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Ir(g);var y=q(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],S(u,function(c){var f=c.tickValue,v=l.getItemModel(f),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),y=new ne({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:G(o._changeTimeline,o,f),silent:!1,style:Ae(h,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Ae(d),y.ensureState("progress").style=Ae(p),a.add(y),Ir(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",G(this._changeTimeline,this,f?"-":"+")),v(e.prevBtnPosition,"prev",G(this._changeTimeline,this,f?"+":"-")),v(e.playPosition,c?"stop":"play",G(this._handlePlayClick,this,!c),!0);function v(h,d,p,g){if(!!h){var y=ca(oe(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=JL(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),Ir(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=G(u._handlePointerDrag,u),f.ondragend=G(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}(YL);function qL(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Mu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new ly({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ur}}function jL(r,t){return Ue(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function JL(r,t,e,a){var n=a.style,i=zn(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=j({rectHover:!0,z2:100},a,!0);var u=xu(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 QL=KL;function eP(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),K({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function tP(r){var t=r&&r.timeline;O(t)||(t=t?[t]:[]),S(t,function(e){!e||rP(e)})}function rP(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),ad(r),Tr(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Tr(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Tr(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}S(r.data||[],function(n){$(n)&&!O(n)&&(!Tr(n,"value")&&Tr(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]&&!Tr(n,s)&&(n[s]=o)}),e.label&&!Tr(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function Tr(r,t){return r.hasOwnProperty(t)}function UR(r){r.registerComponentModel(UL),r.registerComponentView(QL),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),eP(r),r.registerPreprocessor(tP)}var aP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},nP=function(r){E(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"]),O(a)&&S(a,function(i,o){W(i)&&(i={type:i}),a[o]=j(i,aP(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(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&&$l(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=F(),s=z(i,function(l){return(W(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}(re);const Bl=nP;var Qr=te,Vl=S,Si=ee,iP=function(r){E(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 Si),this.group.add(this._selectorGroup=new Si),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=t0(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)}),Vl(a.getData(),function(h,d){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new Si;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(zl,y.name,null,i,v)).on("mouseout",Qr(Gl,y.name,null,i,v)),n.ssr&&b.eachChild(function(A){var T=q(A);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),D=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=Gd(D.fill);I&&I[3]===0&&(I[3]=.2,D=B(B({},D),{fill:bi(I,"rgba")}));var L=this._createItem(A,p,d,h,a,e,{},D,M,f,i);L.on("click",Qr(nd,null,p,i,v)).on("mouseover",Qr(zl,null,p,i,v)).on("mouseout",Qr(Gl,null,p,i,v)),n.ssr&&L.eachChild(function(P){var R=q(P);R.seriesIndex=A.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),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();Vl(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"]);Ft(f,{normal:v,emphasis:h},{defaultText:u.title}),Ir(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=oP(c,i,l,u,h,g,v),w=new Si,b=i.getModel("textStyle");if(X(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 A=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(sP({itemWidth:d,itemHeight:p,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;W(D)&&D?M=D.replace("{name}",a!=null?a:""):X(D)&&(M=D(a));var I=g?b.getTextColor():i.get("inactiveColor");w.add(new ne({style:Ae(b,{text:M,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new se({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&ba({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!f,this.getContentGroup().add(w),Ir(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Pr(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Pr("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+d:f[p]+=v[g]+d,h[1-p]+=c[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+v[g],_[y]=Math.max(c[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Te);function oP(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Vl(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:Zi(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function sP(r){var t=r.icon||"roundRect",e=Oe(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function nd(r,t,e,a){Gl(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),zl(r,t,e,a)}function c0(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 zl(r,t,e,a){c0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Gl(r,t,e,a){c0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}const f0=iP;function lP(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Ka(r,t,e){var a={},n=r==="toggleSelected",i;return e.eachComponent("legend",function(o){n&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();S(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var c=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&c:a[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function uP(r){r.registerAction("legendToggleSelect","legendselectchanged",te(Ka,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",te(Ka,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",te(Ka,"inverseSelect")),r.registerAction("legendSelect","legendselected",te(Ka,"select")),r.registerAction("legendUnSelect","legendunselected",te(Ka,"unSelect"))}function h0(r){r.registerComponentModel(Bl),r.registerComponentView(f0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,lP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),uP(r)}var cP=function(r){E(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=Ca(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=hr(Bl.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}(Bl);function id(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,lr(t,e,{type:"box",ignoreSize:!!n})}const fP=cP;var od=ee,Os=["width","height"],Ns=["x","y"],hP=function(r){E(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=O(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=zn(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:G(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=Os[u],f=Ns[u],v=Os[1-u],h=Ns[1-u];o&&Pr("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=Y(n);o&&(y[c]=n[c]-p[c]-d);var m=this._layoutContentAndController(e,i,y,u,c,v,h,f);if(o){if(s==="end")g[u]+=m[c]+d;else{var _=p[c]+d;g[u]-=_,m[f]-=_}m[c]+=p[c]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Pr(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Pr("horizontal",v,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=oe(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 se({shape:b})),f.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return A.pageIndex!=null&&pe(c,{x:A.contentPosition[0],y:A.contentPosition[1]},p?e:null),this._updatePageInfoView(e,A),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",W(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=Os[o],l=Ns[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 A=b.getBoundingRect(),T=A[l]+b[l];return{s:T,e:T+A[s],i:b.__legendDataIndex}}}function w(b,A){return b.e>=A&&b.s<=A+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a!=null?a:i},t.type="legend.scroll",t}(f0);const vP=hP;function dP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function pP(r){Ne(h0),r.registerComponentModel(fP),r.registerComponentView(vP),dP(r)}function $R(r){Ne(h0),Ne(pP)}var gP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=hr(Rn.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Rn);const yP=gP;var oc=ae();function mP(r,t,e){oc(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function _P(r,t){for(var e=oc(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||v0(e,o))}}}function v0(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function xP(r,t){var e={model:t,containsPoint:te(bP,t),dispatchAction:te(SP,r),dataZoomInfoMap:null,controller:null},a=e.controller=new am(r.getZr());return S(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(!!i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function SP(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function bP(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function wP(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function AP(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=oc(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=F());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Jm(i);S(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,xP(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=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){v0(n,i);return}var c=wP(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Fn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var TP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),mP(n,e,{pan:G(Bs.pan,this),zoom:G(Bs.zoom,this),scrollMove:G(Bs.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_P(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(tc),Bs={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=Vs[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=Vs[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=Vs[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 Vs={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const CP=TP;function MP(r){rc(r),r.registerComponentModel(yP),r.registerComponentView(CP),AP(r)}var DP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hr(Rn.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}(Rn);const IP=DP;var qa=se,ld=7,LP=1,zs=30,PP=7,ja="horizontal",ud="vertical",RP=5,EP=["line","bar","candlestick","scatter"],kP={easing:"cubicOut",duration:100,delay:0},OP=function(r){E(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=G(this._onBrush,this),this._onBrushEnd=G(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Fn(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(){wn(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 ee;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?PP:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===ja?{right:s.width-o.x-o.width,top:s.height-zs-ld-i,width:o.width,height:zs}:{right:ld,top:o.y,width:zs,height:o.height},u=Ca(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===ja&&!o?{scaleY:l?1:-1,scaleX:1}:n===ja&&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 qa({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new qa({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:G(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 ee,I=new fr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Tt({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var A=0;A<3;A++){var T=b(A===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();S(l,function(u){if(!n&&!(a!==!0&&ie(EP,u.get("type"))<0)){var c=i.getComponent(ar(o),s).axis,f=NP(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 qa({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new qa({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:LP,fill:"rgba(0,0,0,0)"}})),S([0,1],function(_){var x=l.get("handleIcon");!Yi[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:G(this._onDragMove,this,_),ondragend:G(this._onDragEnd,this),onmouseover:G(this._showDataInfo,this,!0),onmouseout:G(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Z(A,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ir(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(n[_]=w);var C=l.getModel("textStyle");e.add(i[_]=new ne({silent:!0,invisible:!0,style:Ae(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=Z(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new se({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 se({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:G(this._onDragMove,this,"all"),ondragstart:G(this._showDataInfo,this,!0),ondragend:G(this._onDragEnd,this),onmouseover:G(this._showDataInfo,this,!0),onmouseout:G(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 se,f.setClipPath(v)),v.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var v=Rt(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(d){var p=Lr(n.handles[d].parent,this.group),g=co(d===0?"right":"left",p),y=this._handleWidth/2+RP,m=vt([v[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===ja?"middle":g,align:o===ja?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 X(i)?i(e,s):W(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var a=this._displayables,n=a.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),a.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,or(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=vt([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new we(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Rt([he(n.x,o,s,!0),he(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(or(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new qa({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?kP:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Jm(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}(tc);function NP(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 BP=OP;function VP(r){r.registerComponentModel(IP),r.registerComponentView(BP),rc(r)}function YR(r){Ne(MP),Ne(VP)}var zP={get:function(r,t,e){var a=Y((GP[r]||{})[t]);return e&&O(a)?a[a.length-1]:a}},GP={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const d0=zP;var fd=He.mapVisual,FP=He.eachVisual,WP=O,hd=S,HP=Rt,UP=he,$P=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&zL(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=G(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=ue(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||["<",">"],O(e)&&(e=e.slice(),u=!0);var c=a?e:u?[f(e[0]),f(e[1])]:f(e);if(W(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(X(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+c[1]:e[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=HP([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});j(i,n),j(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){WP(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function u(f,v,h){var d=f[v],p=f[h];d&&!p&&(p=f[h]={},hd(d,function(g,y){if(!!He.isValidType(y)){var m=d0.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&&Y(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&Y(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;FP(x,function(b){b>w&&(w=b)}),_.symbolSize=fd(x,function(b){return UP(b,[0,w],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(re);const ao=$P;var vd=[20,140],YP=function(r){E(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):O(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=hr(ao.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}(ao);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 ZP=YP;var XP=function(r){E(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=Gn(a.get("padding")||0),i=e.getBoundingRect();e.add(new se({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;lu(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Te);const p0=XP;var pd=[["left","right","width"],["top","bottom","height"]];function g0(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 Ei(r,t){return S(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var mt=he,KP=S,gd=Math.min,Gs=Math.max,qP=12,jP=6,JP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=G(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=G(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");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:Ae(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=g0(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new ee;u.add(c),c.add(n.outOfRange=yd()),c.add(n.inRange=yd(null,s?_d(this._orient):null,G(this._dragHandle,this,"all",!1),G(this._dragHandle,this,"all",!0))),c.setClipPath(new se({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("\u56FD"),v=Gs(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=G(this._dragHandle,this,n,!1),u=G(this._dragHandle,this,n,!0),c=ca(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){or(y.event)}}),f.x=i[0]/2,f.useStyle(e.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Ql(f,!0),a.add(f);var h=this.visualMapModel.textStyleModel,d=new ne({cursor:v,draggable:!0,drift:l,onmousemove:function(y){or(y.event)},ondragend:u,style:Ae(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=ca(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 Vt){var c=l.style;l.useStyle(B({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:Ae(f,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:jP)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(!!this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():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 Hl(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 ee(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(!!this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();KP([0,1],function(c){var f=o[c];f.setStyle("fill",a.handlesColor[c]),f.y=e[c];var v=mt(e[c],[0,l[1]],u,!0),h=this.getControllerVisual(v,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var d=vt(n.handleLabelPoints[c],Lr(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(!!f){f.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=mt(e,s,u,!0),g=l[0]-d/2,y={x:f.x,y:f.y};f.y=p,f.x=g;var m=vt(c.indicatorLabelPoint,Lr(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),w=this._orient,b=w==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?x:"middle",align:b?"center":x});var A={x:g,y:p,style:{fill:h}},T={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(A,C),_.animateTo(T,C)}else f.attr(A),_.attr(T);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(Gs(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(Gs(o[0],e),o[1]);var l=QP(n,s,o),u=[e-l,e+l],c=mt(e,o,s,!0),f=[mt(u[0],o,s,!0),mt(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var v=this._hoverLinkDataIndices,h=[];(a||md(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=b_(v,h);this._dispatchHighDown("downplay",Ei(d[0],n)),this._dispatchHighDown("highlight",Ei(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Mr(e.target,function(l){var u=q(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",Ei(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Lr(a,i?null:this.group);return O(e)?vt(e,o,n):co(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(p0);function yd(r,t,e,a){return new fr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){or(n.event)},ondragend:a})}function QP(r,t,e){var a=qP/2,n=r.get("hoverLinkDataSize");return n&&(a=mt(n,t,e,!0)/2),a}function 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 eR=JP;var tR={type:"selectDataRange",event:"dataRangeSelected",update:"update"},rR=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},aR=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(GL(a.stateList,a.targetVisuals,G(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(G(nR,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function nR(r,t,e,a){for(var n=t.targetVisuals[a],i=He.prepareVisualTypes(n),o={color:wg(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 iR(r){var t=r&&r.visualMap;O(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&&O(a)&&xd(a,function(n){$(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 y0(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(tR,rR),S(aR,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(iR))}function oR(r){r.registerComponentModel(ZP),r.registerComponentView(eR),y0(r)}var sR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],lR[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=Y(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=z(this._pieceList,function(l){return l=Y(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]=d0.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=Y(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=hr(ao.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}(ao),lR={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),yc(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){$(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),yc(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 uR=sR;var cR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),f=c.endsText,v=ir(a.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],u,v,l),S(c.viewPieceList,function(h){var d=h.piece,p=new ee;p.onclick=G(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),Pr(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Ei(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return g0(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 ee,l=this.visualMapModel.textStyleModel;s.add(new ne({style:Ae(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=z(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=Y(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}(p0);const fR=cR;function hR(r){r.registerComponentModel(uR),r.registerComponentView(fR),y0(r)}function ZR(r){Ne(oR),Ne(hR)}var vR={label:{enabled:!0},decal:{show:!1}},wd=ae(),dR={};function pR(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Y(vR);j(a.label,r.getLocaleModel().get("aria"),!1),j(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=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(X(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=Hc(v.ecModel,v.name,dR,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],A=d.getName(w)||w+"",T=Hc(v.ecModel,A,g,y),C=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",x(C,T))})}function x(w,b){var A=w?B(B({},b),w):b;return A.dirty=!0,A}})}}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(T,C){if(C<p){var D=void 0,M=T.get("name"),I=M?"withName":"withoutName";D=v>1?c.get(["series","multiple",I]):c.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var P=c.get(["data","partialData"]);D+=o(P,{displayCnt:h})}else D+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),U=[],k=0;k<L.count();k++)if(k<h){var V=L.getName(k),H=L.getValues(k),J=c.get(["data",V?"withName":"withoutName"]);U.push(o(J,{name:V,value:H.join(R)}))}D+=U.join(R)+N,_.push(D)}});var w=c.getModel(["series","multiple","separator"]),b=w.get("middle"),A=w.get("end");g+=_.join(b)+A,f.setAttribute("aria-label",g)}}}function o(u,c){if(!W(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){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function gR(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},S(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function XR(r){r.registerPreprocessor(gR),r.registerVisual(r.PRIORITY.VISUAL.ARIA,pR)}function KR(r){r.registerPainter("canvas",e_)}function Ad(r){return O(r[0])}function Td(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var yR={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=i_(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function Fs(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=Sa("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Ad(r)&&(u=r,c=t),Ad(t)&&(u=t,c=r);function f(y,m,_,x,w){var b=y.many,A=y.one;if(b.length===1&&!w){var T=m?b[0]:A,C=m?A:b[0];if(t_(T))f({many:[T],one:C},!0,_,x,!0);else{var D=s?K({delay:s(_,x)},l):l;r_(T,C,D),i(T,C,T,C,D)}}else for(var M=K({dividePath:yR[e],individualDelay:s&&function(U,k,V,H){return s(U+_,x)}},l),I=m?a_(b,A,M):n_(A,b,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,N=0;N<R;N++){var D=s?K({delay:s(N,R)},l):l;i(L[N],P[N],m?b[N]:y.one,m?y.one:b[N],D)}}for(var v=u?u===r:r.length>t.length,h=u?Td(c,u):Td(v?t:r,[v?r:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)f(h[p],v,g,d),g+=h[p].many.length}function wr(r){if(!r)return[];if(O(r)){for(var t=[],e=0;e<r.length;e++)t.push(wr(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 m0=1e4,mR=0,Cd=1,Md=2,_R=ae();function xR(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function SR(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function Dd(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=xR(r,n);if(i){var o=SR(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function Id(r){var t=[];return S(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>m0))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:Dd(a,o,n,!1),childGroupId:Dd(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function Ws(r,t,e){r.traverse(function(a){a instanceof Ie&&Le(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Hs(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 bR(r,t,e){var a=Sa("update",e,t);a&&r.traverse(function(n){if(n instanceof vn){var i=nx(n);i&&n.animateFrom({style:i},a)}})}function wR(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 _0(r,t,e){var a=Id(r),n=Id(t);function i(_,x,w,b,A){(w||_)&&x.animateFrom({style:w&&w!==_?B(B({},w.style),_.style):_.style},A)}var o=!1,s=mR,l=F(),u=F();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=Cd;break}var v=n[c].childGroupId;if(v&&l.get(v)){s=Md;break}}function h(_,x){return function(w){var b=w.data,A=w.dataIndex;return x?b.getId(A):_?s===Cd?w.childGroupId:w.groupId:s===Md?w.childGroupId:w.groupId}}var d=wR(a,n),p={};if(!d)for(var c=0;c<n.length;c++){var g=n[c],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,x){var w=a[x],b=n[_],A=b.data.hostModel,T=w.data.getItemGraphicEl(w.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(T===C){C&&bR(C,b.dataIndex,A);return}T&&p[T.id]||C&&(ta(C),T?(ta(T),Hs(T),o=!0,Fs(wr(T),wr(C),b.divide,A,_,i)):Ws(C,A,_))}new Tn(a,n,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,x){var w=n[_],b=w.data,A=b.hostModel,T=b.getItemGraphicEl(w.dataIndex),C=ve(z(x,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==T&&!p[D.id]});T&&(ta(T),C.length?(S(C,function(D){ta(D),Hs(D)}),o=!0,Fs(wr(C),wr(T),w.divide,A,_,i)):Ws(T,A,w.dataIndex))}).updateOneToMany(function(_,x){var w=a[x],b=w.data.getItemGraphicEl(w.dataIndex);if(!(b&&p[b.id])){var A=ve(z(_,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b}),T=n[_[0]].data.hostModel;A.length&&(S(A,function(C){return ta(C)}),b?(ta(b),Hs(b),o=!0,Fs(wr(b),wr(A),w.divide,T,_[0],i)):S(A,function(C){return Ws(C,T,_[0])}))}}).updateManyToMany(function(_,x){new Tn(x,_,function(w){return a[w].data.getId(a[w].dataIndex)},function(w){return n[w].data.getId(n[w].dataIndex)}).update(function(w,b){m(_[w],x[b])}).execute()}).execute(),o&&S(t,function(_){var x=_.data,w=x.hostModel,b=w&&e.getViewOfSeriesModel(w),A=Sa("update",w,0);b&&w.isAnimationEnabled()&&A&&A.duration>0&&b.group.traverse(function(T){T instanceof Ie&&!T.animators.length&&T.animateFrom({style:{opacity:0}},A)})})}function Ld(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Pd(r){return O(r)?r.sort().join(","):r}function tr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function AR(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=Ld(i),c=Pd(u);a.set(c,{dataGroupId:s,data:l}),O(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=Ld(i),u=Pd(l),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:tr(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:tr(s),data:s}]});else if(O(l)){var f=[];S(l,function(d){var p=a.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:tr(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:tr(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:tr(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:tr(s)})}}}}),e}function Rd(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 TR(r,t,e,a){var n=[],i=[];S(ue(r.from),function(o){var s=Rd(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:tr(t.oldData[s]),groupIdDim:o.dimension})}),S(ue(r.to),function(o){var s=Rd(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:tr(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&_0(n,i,a)}function qR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){S(ue(a.seriesTransition),function(n){S(ue(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][Di]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=_R(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)S(ue(i),function(h){TR(h,n,a,e)});else{var o=AR(n,a);S(o.keys(),function(h){var d=o.get(h);_0(d.oldSeries,d.newSeries,e)})}S(a.updatedSeries,function(h){h[Di]&&(h[Di]=!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()<m0&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(v))}})}export{qR as A,$R as a,HR as b,WR as c,BR as d,VR as e,XR as f,OR as g,LR as h,MR as i,IR as j,PR as k,kR as l,ER as m,NR as n,UT as o,FR as p,YR as q,ZR as r,UR as s,_u as t,Ne as u,zR as v,GR as w,RR as x,KR as y,DR as z};
