ray-template/assets/echarts.bdfdf659.js
chuan_wuhao d790dcb5bc 打包
2023-01-06 14:31:50 +08:00

42 lines
425 KiB
JavaScript

import{i as z,r as Ca,m as F,c as W,e as w,a as ie,b as st,d as H,f as oe,g as lo,h as O,j as fe,k as Ep,l as N,n as U,L as Lc,o as Mn,p as Ue,P as ge,q as cl,s as Op,t as se,u as Np,v as ee,Z as In,w as gt,x as Bp,y as Vp,z as Fp,A as zp,B as Pc,C as uo,T as kc,D as is,E as Jt,F as Gp,G as os,H as Rc,S as or,R as Ec,I as ss,J as Ln,K as pe,M as er,N as Oc,O as ls,Q as _e,U as be,V as Wp,W as Hp,X as Nc,Y as Up,_ as Ee,$ as Ta,a0 as ye,a1 as Pn,a2 as K,a3 as X,a4 as St,a5 as Yp,a6 as Ve,a7 as Q,a8 as Ge,a9 as xe,aa as ne,ab as Aa,ac as $p,ad as mt,ae as fo,af as Zp,ag as Bc,ah as Xp,ai as kn,aj as vl,ak as di,al as Kp,am as co,an as vo,ao as qp,ap as us,aq as Vc,ar as hl,as as pi,at as jp,au as Qp,av as Yn,aw as vn,ax as Fc,ay as Jp,az as eg,aA as tg,aB as zc,aC as dl,aD as rg,aE as ng,aF as ag,aG as ig,aH as og,aI as pl,aJ as gl,aK as sg,aL as lg,aM as ug,aN as fg,aO as cg,aP as vg,aQ as hg,aR as dg,aS as pg}from"./zrender.a83c43bd.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 ho=function(r,t){return ho=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},ho(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ho(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var ml=1e-4,Gc=20;function gg(r){return r.replace(/^\s+|\s+$/g,"")}function Et(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function re(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 z(r)?gg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function de(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Gc),r=(+r).toFixed(t),e?r:+r}function mg(r){return r.sort(function(t,e){return t-e}),r}function dt(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 yg(r)}function yg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Wc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function _g(r,t){var e=Ca(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ca(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function Sg(r,t){var e=Math.max(dt(r),dt(t)),n=r+t;return e>Gc?n:de(n,e)}function Hc(r){var t=Math.PI*2;return(r%t+t)%t}function Da(r){return r>-ml&&r<ml}var xg=/^(?:(\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 yt(r){if(r instanceof Date)return r;if(z(r)){var t=xg.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 bg(r){return Math.pow(10,fs(r))}function fs(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 Uc(r,t){var e=fs(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Bt(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function wg(r){return!isNaN(Bt(r))}function Yc(){return Math.round(Math.random()*9)}function $c(r,t){return t===0?r:$c(t,r%t)}function yl(r,t){return r==null?t:t==null?r:r*t/$c(r,t)}function q(r){throw new Error(r)}function _l(r,t,e){return(t-r)*e+r}var Zc="series\0",Xc="\0_ec_\0";function ce(r){return r instanceof Array?r:r==null?[]:[r]}function po(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Sl=["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 Rn(r){return H(r)&&!O(r)&&!(r instanceof Date)?r.value:r}function Cg(r){return H(r)&&!(r instanceof Array)}function Tg(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=W();w(t,function(l,u){if(!H(l)){t[u]=null;return}});var s=Ag(r,o,e);return(n||a)&&Dg(s,r,o,t),n&&Mg(s,t),n||a?Ig(s,t,a):i&&Lg(s,t),Pg(s),s}function Ag(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||hn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function Dg(r,t,e,n){w(n,function(a,i){if(!(!a||a.id==null)){var o=rn(a.id),s=e.get(o);if(s!=null){var l=r[s];st(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function Mg(r,t){w(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!hn(e)&&!hn(i)&&Kc("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function Ig(r,t,e){w(t,function(n){if(!!n){for(var a,i=0;(a=r[i])&&(a.newOption||hn(a.existing)||a.existing&&n.id!=null&&!Kc("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function Lg(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Pg(r){var t=W();w(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),w(r,function(e){var n=e.newOption;st(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(!!H(i)){if(o.name=i.name!=null?rn(i.name):a?a.name:Zc+n,a)o.id=rn(a.id);else if(i.id!=null)o.id=rn(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 Kc(r,t,e){var n=it(t[r],null),a=it(e[r],null);return n!=null&&a!=null&&n===a}function rn(r){return it(r,"")}function it(r,t){return r==null?t:z(r)?r:oe(r)||lo(r)?r+"":t}function cs(r){var t=r.name;return!!(t&&t.indexOf(Zc))}function hn(r){return r&&r.id!=null&&rn(r.id).indexOf(Xc)===0}function kg(r){return Xc+r}function Rg(r,t,e){w(r,function(n){var a=n.newOption;H(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Eg(t,a,n.existing,e))})}function Eg(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function tr(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return O(t.dataIndex)?F(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return O(t.name)?F(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function le(){var r="__ec_inner_"+Og++;return function(t){return t[r]||(t[r]={})}}var Og=Yc();function nn(r,t,e){var n=vs(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=En(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function vs(r,t){var e;if(z(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=W(),i={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ie(t.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Le={useDefault:!0,enableAll:!1,enableNone:!1},Ng={useDefault:!1,enableAll:!0,enableNone:!0};function En(r,t,e,n){n=n||Le;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(st(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(st(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function qc(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function Bg(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Vg(r){return r==="auto"?fe.domSupported?"html":"richText":r||"html"}function jc(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(oe(n)){var o=_l(e||0,n,a);return de(o,i?Math.max(dt(e||0),dt(n)):t)}else{if(z(n))return a<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=_l(v,d,a);s[c]=de(o,i?Math.max(dt(v),dt(d)):t)}}return s}}var Fg=".",Gt="___EC__COMPONENT__CONTAINER___",Qc="___EC__EXTENDED_CLASS___";function rt(r){var t={main:"",sub:""};if(r){var e=r.split(Fg);t.main=e[0]||"",t.sub=e[1]||""}return t}function zg(r){st(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Gg(r){return!!(r&&r[Qc])}function hs(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return Wg(n)?a=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},Ep(a,this)),N(a.prototype,e),a[Qc]=!0,a.extend=this.extend,a.superCall=Yg,a.superApply=$g,a.superClass=n,a}}function Wg(r){return U(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Jc(r,t){r.extend=t.extend}var Hg=Math.round(Math.random()*10);function Ug(r){var t=["__\0is_clz",Hg++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function Yg(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function $g(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Ga(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){zg(a),n.prototype.type=a;var i=rt(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Gt){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[Gt]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=rt(n),i=[],o=t[a.main];return o&&o[Gt]?w(o,function(s,l){l!==Gt&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=rt(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return w(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=rt(n),i=t[a.main];return i&&i[Gt]};function e(n){var a=t[n.main];return(!a||!a[Gt])&&(a=t[n.main]={},a[Gt]=!0),a}}function dn(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&ie(a,l)>=0||i&&ie(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Zg=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xg=dn(Zg),Kg=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Xg(this,t,e)},r}(),J=le(),qg=function(r,t,e,n){if(n){var a=J(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,n.type==="group"&&n.traverse(function(i){var o=J(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},xl=1,bl={},ev=le(),ds=le(),ps=0,Wa=1,Ha=2,We=["emphasis","blur","select"],Ma=["normal","emphasis","blur","select"],jg=10,Qg=9,qt="highlight",pa="downplay",an="select",ga="unselect",on="toggleSelect";function fr(r){return r!=null&&r!=="none"}var wl=new Lc(100);function Cl(r){if(z(r)){var t=wl.get(r);return t||(t=cl(r,-.1),wl.put(r,t)),t}else if(Op(r)){var e=N({},r);return e.colorStops=F(r.colorStops,function(n){return{offset:n.offset,color:cl(n.color,-.1)}}),e}return r}function Ua(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function tv(r){Ua(r,"emphasis",Ha)}function rv(r){r.hoverState===Ha&&Ua(r,"normal",ps)}function gs(r){Ua(r,"blur",Wa)}function nv(r){r.hoverState===Wa&&Ua(r,"normal",ps)}function Jg(r){r.selected=!0}function em(r){r.selected=!1}function Tl(r,t,e){t(r,e)}function xt(r,t,e){Tl(r,t,e),r.isGroup&&r.traverse(function(n){Tl(n,t,e)})}function Al(r,t){switch(t){case"emphasis":r.hoverState=Ha;break;case"normal":r.hoverState=ps;break;case"blur":r.hoverState=Wa;break;case"select":r.selected=!0}}function tm(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l==null?n&&n[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 rm(r,t,e,n){var a=e&&ie(e,"select")>=0,i=!1;if(r instanceof ge){var o=ev(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(fr(s)||fr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=N({},n),u=N({},u),u.fill=s):!fr(u.fill)&&fr(s)?(i=!0,n=N({},n),u=N({},u),u.fill=Cl(s)):!fr(u.stroke)&&fr(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=Cl(l)),n.style=u}}if(n&&n.z2==null){i||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:jg)}return n}function nm(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:Qg)}return e}function am(r,t,e){var n=ie(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:tm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?a:i.opacity*.1},o),e.style=o),e}function gi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return rm(this,r,t,e);if(r==="blur")return am(this,r,e);if(r==="select")return nm(this,r,e)}return e}function im(r){r.stateProxy=gi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=gi),e&&(e.stateProxy=gi)}function Dl(r,t){!sv(r,t)&&!r.__highByOuter&&xt(r,tv)}function Ml(r,t){!sv(r,t)&&!r.__highByOuter&&xt(r,rv)}function Tr(r,t){r.__highByOuter|=1<<(t||0),xt(r,tv)}function Ar(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,rv)}function om(r){xt(r,gs)}function av(r){xt(r,nv)}function iv(r){xt(r,Jg)}function ov(r){xt(r,em)}function sv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function lv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=ds(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){nv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function go(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&av(h)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(m){gs(m)}),Mn(t))i(u.getData(),t);else if(H(t))for(var d=Ue(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),ds(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function mo(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(!!n){ds(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){gs(i)})}}}function sm(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(!!a){var i=tr(a,t);i=(O(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=J(o);go(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&go(n,f,c,e)}}}function ms(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(J(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function lm(r,t,e){var n=J(r),a=ms(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&mo(n.componentMainType,n.componentIndex,e),w(i,function(s){return Dl(s,t)})):(go(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&mo(n.componentMainType,n.componentIndex,e),Dl(r,t))}function um(r,t,e){lv(e);var n=J(r),a=ms(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?w(a,function(i){return Ml(i,t)}):Ml(r,t)}function fm(r,t,e){if(!!So(t)){var n=t.dataType,a=r.getData(n),i=tr(a,t);O(i)||(i=[i]),r[t.type===on?"toggleSelect":t.type===an?"select":"unselect"](i,n)}}function Il(r){var t=r.getAllData();w(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?iv(i):ov(i)})})}function cm(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();w(n,function(a){a.data;var i=a.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 yo(r,t,e){uv(r,!0),xt(r,im),hm(r,t,e)}function vm(r){uv(r,!1)}function pn(r,t,e,n){n?vm(r):yo(r,t,e)}function hm(r,t,e){var n=J(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Ll=["emphasis","blur","select"],dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gn(r,t,e,n){e=e||"itemStyle";for(var a=0;a<Ll.length;a++){var i=Ll[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=n?n(o):o[dm[e]]()}}function uv(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function _o(r){return!!(r&&r.__highDownDispatcher)}function pm(r){var t=bl[r];return t==null&&xl<=32&&(t=bl[r]=xl++),t}function So(r){var t=r.type;return t===an||t===ga||t===on}function Pl(r){var t=r.type;return t===qt||t===pa}function gm(r){var t=ev(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 fv=le();function Ya(r,t,e,n,a){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,f=void 0,c=void 0;n?(u=se(n.duration,200),f=se(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),U(c)&&(c=c(e,a)),U(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function ys(r,t,e,n,a,i,o){var s=!1,l;U(a)?(o=i,i=a,a=null):H(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Ya(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,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 Se(r,t,e,n,a,i){ys("update",r,t,e,n,a,i)}function Te(r,t,e,n,a,i){ys("enter",r,t,e,n,a,i)}function xr(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 Ia(r,t,e,n,a,i){xr(r)||ys("leave",r,t,e,n,a,i)}function kl(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Ia(r,{style:{opacity:0}},t,e,n)}function La(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||kl(a,t,e,n)}):kl(r,t,e,n)}function $a(r){fv(r).oldStyle=r.style}function mm(r){return fv(r).oldStyle}var Pa=Math.max,ka=Math.min,xo={};function ym(r){return ge.extend(r)}var _m=Gp;function Sm(r,t){return _m(r,t)}function et(r,t){xo[r]=t}function xm(r){if(xo.hasOwnProperty(r))return xo[r]}function _s(r,t,e,n){var a=Bp(r,t);return e&&(n==="center"&&(e=vv(e,a.getBoundingRect())),hv(a,e)),a}function cv(r,t,e){var n=new In({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(vv(t,i))}}});return n}function vv(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var bm=Fp;function hv(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function mn(r,t){return Vp(r,r,{lineWidth:t}),r}function wm(r){return zp(r.shape,r.shape,r.style),r}var ma=Np;function Ss(r,t){for(var e=Pc([]);r&&r!==t;)uo(e,r.getLocalTransform(),e),r=r.parent;return e}function xs(r,t,e){return t&&!Mn(t)&&(t=kc.getLocalTransform(t)),e&&(t=is([],t)),Jt([],r,t)}function dv(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=xs(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Rl(r){return!r.isGroup}function Cm(r){return r.shape!=null}function pv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Rl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Cm(o)&&(s.shape=N({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Rl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Se(o,l,e,J(o).dataIndex)}}})}function gv(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=ka(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=ka(a,t.y+t.height),[n,a]})}function Tm(r,t){var e=Pa(r.x,t.x),n=ka(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=ka(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Za(r,t,e){var n=N({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),ee(a,e),new In(n)):_s(r.replace("path://",""),n,e,"center")}function Am(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(mv(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function mv(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=mi(f,c,l,u);if(Dm(h))return!1;var v=r-a,d=t-i,p=mi(v,d,l,u)/h;if(p<0||p>1)return!1;var m=mi(v,d,f,c)/h;return!(m<0||m>1)}function mi(r,t,e,n){return r*n-e*t}function Dm(r){return r<=1e-6&&r>=-1e-6}function Xa(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=z(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ue(l),function(f){gt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=J(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:ee({content:n,formatterParams:s},a)}}function El(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function On(r,t){if(r)if(O(r))for(var e=0;e<r.length;e++)El(r[e],t);else El(r,t)}et("circle",os);et("ellipse",Rc);et("sector",or);et("ring",Ec);et("polygon",ss);et("polyline",Ln);et("rect",pe);et("line",er);et("bezierCurve",Oc);et("arc",ls);const Mm=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Se,initProps:Te,removeElement:Ia,removeElementWithFadeOut:La,isElementRemoved:xr,extendShape:ym,extendPath:Sm,registerShape:et,getShapeClass:xm,makePath:_s,makeImage:cv,mergePath:bm,resizePath:hv,subPixelOptimizeLine:mn,subPixelOptimizeRect:wm,subPixelOptimize:ma,getTransform:Ss,applyTransform:xs,transformDirection:dv,groupTransition:pv,clipPointsByRect:gv,clipRectByRect:Tm,createIcon:Za,linePolygonIntersect:Am,lineLineIntersect:mv,setTooltipConfig:Xa,traverseElements:On,Group:_e,Image:In,Text:be,Circle:os,Ellipse:Rc,Sector:or,Ring:Ec,Polygon:ss,Polyline:Ln,Rect:pe,Line:er,BezierCurve:Oc,Arc:ls,IncrementalDisplayable:Wp,CompoundPath:Hp,LinearGradient:Nc,RadialGradient:Up,BoundingRect:Ee,OrientedBoundingRect:Ta,Point:ye,Path:ge},Symbol.toStringTag,{value:"Module"}));var Ka={};function yv(r,t){for(var e=0;e<We.length;e++){var n=We[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function bo(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=U(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<We.length;u++){var f=We[u],c=t[f];l[f]=se(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function Nn(r,t,e,n){e=e||Ka;for(var a=r instanceof be,i=!1,o=0;o<Ma.length;o++){var s=t[Ma[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new be,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=bo(e,t),f=t.normal,c=!!f.getShallow("show"),h=Vt(f,n&&n.normal,e,!1,!a);h.text=u.normal,a||r.setTextConfig(Ol(f,e,!1));for(var o=0;o<We.length;o++){var v=We[o],s=t[v];if(s){var d=l.ensureState(v),p=!!se(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Vt(s,n&&n[v],e,!0,!a),d.style.text=u[v],!a){var m=r.ensureState(v);m.textConfig=Ol(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),e.enableTextSetter&&(kr(l).setLabelText=function(g){var y=bo(e,t,g);yv(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Bn(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<We.length;n++){var a=We[n];e[a]=r.getModel([a,t])}return e}function Vt(r,t,e,n,a){var i={};return Im(i,r,e,n,a),t&&N(i,t),i}function Ol(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=se(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function Im(r,t,e,n,a){e=e||Ka;var i=t.ecModel,o=i&&i.option.textStyle,s=Lm(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Fl(l[u]={},f,o,e,n,a,!1,!0)}}l&&(r.rich=l);var c=t.get("overflow");c&&(r.overflow=c);var h=t.get("minMargin");h!=null&&(r.margin=h),Fl(r,t,o,e,n,a,!0,!1)}function Lm(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Ka).rich;if(e){t=t||{};for(var n=Ue(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var Nl=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Bl=["align","lineHeight","width","height","tag","verticalAlign"],Vl=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Fl(r,t,e,n,a,i,o,s){e=!a&&e||Ka;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=se(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var h=se(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=se(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=se(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(r.opacity=c),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<Nl.length;p++){var m=Nl[p],g=se(t.getShallow(m),e[m]);g!=null&&(r[m]=g)}for(var p=0;p<Bl.length;p++){var m=Bl[p],g=t.getShallow(m);g!=null&&(r[m]=g)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<Vl.length;p++){var m=Vl[p],g=t.getShallow(m);g!=null&&(r[m]=g)}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 Pm(r,t){var e=t&&t.getModel("textStyle");return Pn([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var kr=le();function km(r,t,e,n){if(!!r){var a=kr(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function Rm(r,t,e,n,a){var i=kr(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=se(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=jc(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=bo({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);yv(r,h)}r.percent=0,(i.prevValue==null?Te:Se)(r,{percent:1},n,t,null,u)}var Em=["textStyle","color"],yi=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],_i=new be,Om=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Em):null)},r.prototype.getFont=function(){return Pm({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")},n=0;n<yi.length;n++)e[yi[n]]=this.getShallow(yi[n]);return _i.useStyle(e),_i.update(),_i.getBoundingRect()},r}();const Nm=Om;var _v=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Bm=dn(_v),Vm=function(){function r(){}return r.prototype.getLineStyle=function(t){return Bm(this,t)},r}(),Sv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Fm=dn(Sv),zm=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return Fm(this,t,e)},r}(),sr=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){K(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 n=this.option,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),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(X(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(!fe.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 n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(!!t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();hs(sr);Ug(sr);St(sr,Vm);St(sr,zm);St(sr,Kg);St(sr,Nm);const Ce=sr;var Gm=Math.round(Math.random()*10);function Vn(r){return[r||"",Gm++].join("_")}function Wm(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=rt(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=rt(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function Hm(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(w(i,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),w(d.successor,p?g:m)}w(h,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){h[y]=!0,m(y)}};function e(i){var o={},s=[];return w(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(h){ie(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);ie(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return w(i,function(l){ie(o,l)>=0&&s.push(l)}),s}}function xv(r,t){return K(K({},r,!0),t,!0)}const Um={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ym={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ra="ZH",bs="EN",yn=bs,ya={},ws={},bv=fe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ra)>-1?Ra:yn}():yn;function wv(r,t){r=r.toUpperCase(),ws[r]=new Ce(t),ya[r]=t}function $m(r){if(z(r)){var t=ya[r.toUpperCase()]||{};return r===Ra||r===bs?X(t):K(X(t),X(ya[yn]),!1)}else return K(X(r),X(ya[yn]),!1)}function Zm(r){return ws[r]}function Xm(){return ws[yn]}wv(bs,Um);wv(Ra,Ym);var Cs=1e3,Ts=Cs*60,sn=Ts*60,Fe=sn*24,zl=Fe*365,Jr={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}"},$n="{yyyy}-{MM}-{dd}",Gl={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+Jr.hour,minute:$n+" "+Jr.minute,second:$n+" "+Jr.second,millisecond:Jr.none},Si=["year","month","day","hour","minute","second","millisecond"],Cv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(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 Km(r){return r===br(r)}function qm(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qa(r,t,e,n){var a=yt(r),i=a[As(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ja(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[_n(e)](),c=(f-1)%12+1,h=a[Qa(e)](),v=a[Ja(e)](),d=a[ei(e)](),p=n instanceof Ce?n:Zm(n||bv)||Xm(),m=p.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Wt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Wt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Wt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Wt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Wt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Wt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Wt(d,3)).replace(/{S}/g,d+"")}function jm(r,t,e,n,a){var i=null;if(z(e))i=e;else if(U(e))i=e(r.value,t,{level:r.level});else{var o=N({},Jr);if(r.level>0)for(var s=0;s<Si.length;++s)o[Si[s]]="{primary|"+o[Si[s]]+"}";var l=e?e.inherit===!1?e:ee(e,o):o,u=Tv(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=Cv.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return qa(new Date(r.value),i,a,n)}function Tv(r,t){var e=yt(r),n=e[wr(t)]()+1,a=e[ja(t)](),i=e[_n(t)](),o=e[Qa(t)](),s=e[Ja(t)](),l=e[ei(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Wl(r,t,e){var n=oe(r)?yt(r):r;switch(t=t||Tv(r,e),t){case"year":return n[As(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[ja(e)]();case"half-day":return n[_n(e)]()/24;case"hour":return n[_n(e)]();case"minute":return n[Qa(e)]();case"second":return n[Ja(e)]();case"millisecond":return n[ei(e)]()}}function As(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function ja(r){return r?"getUTCDate":"getDate"}function _n(r){return r?"getUTCHours":"getHours"}function Qa(r){return r?"getUTCMinutes":"getMinutes"}function Ja(r){return r?"getUTCSeconds":"getSeconds"}function ei(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Qm(r){return r?"setUTCFullYear":"setFullYear"}function Av(r){return r?"setUTCMonth":"setMonth"}function Dv(r){return r?"setUTCDate":"setDate"}function Mv(r){return r?"setUTCHours":"setHours"}function Iv(r){return r?"setUTCMinutes":"setMinutes"}function Lv(r){return r?"setUTCSeconds":"setSeconds"}function Pv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function kv(r){if(!wg(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Rv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ti=Yp;function wo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Pn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return qa(l,n,e)}if(t==="ordinal")return lo(r)?a(r):oe(r)&&i(r)?r+"":"-";var u=Bt(r);return i(u)?kv(u):lo(r)?a(r):typeof r=="boolean"?r+"":"-"}var Hl=["a","b","c","d","e","f","g"],xi=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Ev(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Hl[i];r=r.replace(xi(o),xi(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(xi(Hl[l],s),e?Ve(u):u)}return r}function Jm(r,t){var e=z(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ve(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ve(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rr(r,t){return t=t||"transparent",z(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ul(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var _a=w,ey=["left","right","top","bottom","width","height"],Zn=[["width","left","right"],["height","top","bottom"]];function Ds(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(h?-h.y+f.y:0);d=o+m,d>a||l.newline?(i+=s+e,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Ds;Q(Ds,"vertical");Q(Ds,"horizontal");function Ft(r,t,e){e=ti(e||0);var n=t.width,a=t.height,i=re(r.left,n),o=re(r.top,a),s=re(r.right,n),l=re(r.bottom,a),u=re(r.width,n),f=re(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ee(i+e[3],o+e[0],u,f);return d.margin=e,d}function ty(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.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 Ee(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=Ft(ee({width:u.width,height:u.height},t),e,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function Sn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Dr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(Zn[0],0),i=o(Zn[1],1);u(Zn[0],r,a),u(Zn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,m=2;if(_a(f,function(_){d[_]=r[_]}),_a(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===m||!v)return d;if(v>=m)return h;for(var g=0;g<f.length;g++){var y=f[g];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){_a(f,function(v){c[v]=h[v]})}}function ri(r){return ry({},r)}function ry(r,t){return t&&r&&_a(ey,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var ny=le(),Rr=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=Vn("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Sn(this),i=a?ri(e):{},o=n.getTheme();K(e,o.get(this.mainType)),K(e,this.getDefaultOption()),a&&Dr(e,i,a)},t.prototype.mergeOption=function(e,n){K(this.option,e,!0);var a=Sn(this);a&&Dr(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Gg(e))return e.defaultOption;var n=ny(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=K(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return En(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},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}(Ce);Jc(Rr,Ce);Ga(Rr);Wm(Rr);Hm(Rr,ay);function ay(r){var t=[];return w(Rr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return rt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const ae=Rr;var Ov="";typeof navigator<"u"&&(Ov=navigator.platform||"");var cr="rgba(0, 0, 0, 0.2)";const iy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ov.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 Nv=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ye="original",Pe="arrayRows",$e="objectRows",ut="keyedColumns",Nt="typedArray",Bv="unknown",ot="column",Er="row",we={Must:1,Might:2,Not:3},Vv=le();function oy(r){Vv(r).datasetMap=W()}function Fv(r,t,e){var n={},a=Ms(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Vv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,m){var g=H(p)?p:r[m]={name:p};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,m){var g=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[g],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===m)v(n[g],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[g],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,m,g){for(var y=0;y<g;y++)p.push(m+y)}function d(p){var m=p.dimsDef;return m?m.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function sy(r,t,e){var n={},a=Ms(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===$e||i===ut)&&w(o,function(f,c){(H(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=Gv(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var m=p===we.Not;if(m&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!m&&h[f.n]===we.Not)&&(f.n=v),g(f)&&h[f.n]!==we.Not)return f;m||(p===we.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function Ms(r){var t=r.get("data",!0);if(!t)return En(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Le).models[0]}function ly(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:En(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Le).models}function zv(r,t){return Gv(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Gv(r,t,e,n,a,i){var o,s=5;if(Ge(r))return we.Not;var l,u;if(n){var f=n[i];H(f)?(l=f.name,u=f.type):z(f)&&(l=f)}if(u!=null)return u==="ordinal"?we.Must:we.Not;if(t===Pe){var c=r;if(e===Er){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===$e){var p=r;if(!l)return we.Not;for(var v=0;v<p.length&&v<s;v++){var m=p[v];if(m&&(o=S(m[l]))!=null)return o}}else if(t===ut){var g=r;if(!l)return we.Not;var h=g[l];if(!h||Ge(h))return we.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===Ye)for(var y=r,v=0;v<y.length&&v<s;v++){var m=y[v],_=Rn(m);if(!O(_))return we.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=z(b);if(b!=null&&isFinite(b)&&b!=="")return x?we.Might:we.Not;if(x&&b!=="-")return we.Must}return we.Not}var Co=W();function uy(r,t){st(Co.get(r)==null&&t),Co.set(r,t)}function fy(r,t,e){var n=Co.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var Yl=le(),cy=le(),Is=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=ce(this.get("color",!0)),i=this.get("colorLayer",!0);return Wv(this,Yl,a,i,t,e,n)},r.prototype.clearColorPalette=function(){hy(this,Yl)},r}();function $l(r,t,e,n){var a=ce(r.get(["aria","decal","decals"]));return Wv(r,cy,a,null,t,e,n)}function vy(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function Wv(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:vy(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function hy(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Xn,Fr,Zl,Xl="\0_ec_inner",dy=1,Hv=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ce(i),this._locale=new Ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=jl(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,jl(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Zl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=n&&n.replaceMergeMainTypeMap;oy(this),w(e,function(c,h){c!=null&&(ae.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?X(c):K(a[h],c,!0))}),u&&u.each(function(c,h){ae.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ae.topologicalTravel(s,ae.getAllClassMainTypes(),f,this);function f(c){var h=fy(this,c,ce(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Tg(v,h,d);Rg(p,c,ae),a[c]=null,i.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",A=ae.getClass(c,S.keyInfo.subType,!T);if(!A)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var M=N({componentIndex:b},S.keyInfo);x=new A(C,this,this,M),N(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),g.push(x),y++):(m.push(void 0),g.push(void 0))},this),a[c]=m,i.set(c,g),o.set(c,y),c==="series"&&Xn(this)}this._seriesIndices||Xn(this)},t.prototype.getOption=function(){var e=X(this.option);return w(e,function(n,a){if(ae.hasClass(a)){for(var i=ce(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!hn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Xl],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,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],w(ce(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Kl("id",i,s):o!=null?l=Kl("name",o,s):l=xe(s,function(u){return!!u}),ql(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):xe(this._componentsMap.get(a),function(u){return!!u});return l(ql(o,e));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?xe(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(U(e)){var o=n,s=e;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=z(e)?i.get(e):H(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=it(e,null);return xe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return xe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return xe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Fr(this),w(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){w(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){Fr(this),w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return w(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return Fr(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Fr(this);var a=[];w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=W(a)},t.prototype.restoreData=function(e){Xn(this);var n=this._componentsMap,a=[];n.each(function(i,o){ae.hasClass(o)&&a.push(o)}),ae.topologicalTravel(a,ae.getAllClassMainTypes(),function(i){w(n.get(i),function(o){o&&(i!=="series"||!py(o,e))&&o.restoreData()})})},t.internalField=function(){Xn=function(e){var n=e._seriesIndices=[];w(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=W(n)},Fr=function(e){},Zl=function(e,n){e.option={},e.option[Xl]=dy,e._componentsMap=W({series:[]}),e._componentsCount=W();var a=n.aria;H(a)&&a.enabled==null&&(a.enabled=!0),gy(n,e._theme.option),K(n,iy,!1),e._mergeOption(n,null)}}(),t}(Ce);function py(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function gy(r,t){var e=r.color&&!r.colorLayer;w(t,function(n,a){a==="colorLayer"&&e||ae.hasClass(a)||(typeof n=="object"?r[a]=r[a]?K(r[a],n,!1):X(n):r[a]==null&&(r[a]=n))})}function Kl(r,t,e){if(O(t)){var n=W();return w(t,function(i){if(i!=null){var o=it(i,null);o!=null&&n.set(i,!0)}}),xe(e,function(i){return i&&n.get(i[r])})}else{var a=it(t,null);return xe(e,function(i){return i&&a!=null&&i[r]===a})}}function ql(r,t){return t.hasOwnProperty("subType")?xe(r,function(e){return e&&e.subType===t.subType}):r}function jl(r){var t=W();return r&&w(ce(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}St(Hv,Is);const Uv=Hv;var my=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],yy=function(){function r(t){w(my,function(e){this[e]=ne(t[e],t)},this)}return r}();const Yv=yy;var bi={},_y=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];w(bi,function(a,i){var o=a.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){w(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){bi[t]=e},r.get=function(t){return bi[t]},r}();const Ls=_y;var Sy=/^(min|max)?(.+)$/,xy=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(w(ce(t.series),function(o){o&&o.data&&Ge(o.data)&&Aa(o.data)}),w(ce(t.dataset),function(o){o&&o.source&&Ge(o.source)&&Aa(o.source)})),t=X(t);var a=this._optionBackup,i=by(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.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=[],X(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=X(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)wy(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Ty(o,this._currentMediaIndices)&&(s=F(o,function(f){return X(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function by(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&O(u)&&w(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),w(l,function(v){return h(v)}),w(n,function(v){return h(v.option)});function h(v){w(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function wy(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return w(r,function(i,o){var s=o.match(Sy);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Cy(n[u],i,l)||(a=!1)}}),a}function Cy(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function Ty(r,t){return r.join(",")===t.join(",")}const Ay=xy;var Xe=w,xn=H,Ql=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wi(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=Ql.length;e<n;e++){var a=Ql[e],i=t.normal,o=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?K(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?K(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function De(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,ee(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function en(r){De(r,"itemStyle"),De(r,"lineStyle"),De(r,"areaStyle"),De(r,"label"),De(r,"labelLine"),De(r,"upperLabel"),De(r,"edgeLabel")}function ve(r,t){var e=xn(r)&&r[t],n=xn(e)&&e.textStyle;if(n)for(var a=0,i=Sl.length;a<i;a++){var o=Sl[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Be(r){r&&(en(r),ve(r,"label"),r.emphasis&&ve(r.emphasis,"label"))}function Dy(r){if(!!xn(r)){wi(r),en(r),ve(r,"label"),ve(r,"upperLabel"),ve(r,"edgeLabel"),r.emphasis&&(ve(r.emphasis,"label"),ve(r.emphasis,"upperLabel"),ve(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(wi(t),Be(t));var e=r.markLine;e&&(wi(e),Be(e));var n=r.markArea;n&&Be(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!Ge(i))for(var o=0;o<i.length;o++)Be(i[o]);w(r.categories,function(u){en(u)})}if(a&&!Ge(a))for(var o=0;o<a.length;o++)Be(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Be(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)O(l[o])?(Be(l[o][0]),Be(l[o][1])):Be(l[o]);r.type==="gauge"?(ve(r,"axisLabel"),ve(r,"title"),ve(r,"detail")):r.type==="treemap"?(De(r.breadcrumb,"itemStyle"),w(r.levels,function(u){en(u)})):r.type==="tree"&&en(r.leaves)}}function vt(r){return O(r)?r:r?[r]:[]}function Jl(r){return(O(r)?r[0]:r)||{}}function My(r,t){Xe(vt(r.series),function(n){xn(n)&&Dy(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xe(e,function(n){Xe(vt(r[n]),function(a){a&&(ve(a,"axisLabel"),ve(a.axisPointer,"label"))})}),Xe(vt(r.parallel),function(n){var a=n&&n.parallelAxisDefault;ve(a,"axisLabel"),ve(a&&a.axisPointer,"label")}),Xe(vt(r.calendar),function(n){De(n,"itemStyle"),ve(n,"dayLabel"),ve(n,"monthLabel"),ve(n,"yearLabel")}),Xe(vt(r.radar),function(n){ve(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Xe(vt(r.geo),function(n){xn(n)&&(Be(n),Xe(vt(n.regions),function(a){Be(a)}))}),Xe(vt(r.timeline),function(n){Be(n),De(n,"label"),De(n,"itemStyle"),De(n,"controlStyle",!0);var a=n.data;O(a)&&w(a,function(i){H(i)&&(De(i,"label"),De(i,"itemStyle"))})}),Xe(vt(r.toolbox),function(n){De(n,"iconStyle"),Xe(n.feature,function(a){De(a,"iconStyle")})}),ve(Jl(r.axisPointer),"label"),ve(Jl(r.tooltip).axisPointer,"label")}function Iy(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function Ly(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=e)}function eu(r){r&&w(Py,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var Py=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ky=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ci=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zr(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Ci.length;e++){var n=Ci[e][1],a=Ci[e][0];t[n]!=null&&(t[a]=t[n])}}function tu(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function ru(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function Ry(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function $v(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&$v(r[e].children,t)}function Zv(r,t){My(r,t),r.series=ce(r.series),w(r.series,function(e){if(!!H(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),tu(e.label);var a=e.data;if(a&&!Ge(a))for(var i=0;i<a.length;i++)tu(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=Iy(e,"pointer.color");o!=null&&Ly(e,"itemStyle.color",o)}else if(n==="bar"){zr(e),zr(e.backgroundStyle),zr(e.emphasis);var a=e.data;if(a&&!Ge(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(zr(a[i]),zr(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),ru(e),$v(e.data,ru)}else n==="graph"||n==="sankey"?Ry(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ee(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),eu(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(ky,function(e){var n=r[e];n&&(O(n)||(n=[n]),w(n,function(a){eu(a)}))})}function Ey(r){var t=W();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),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;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(Oy)}function Oy(r){w(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,m=e-1;m>=0;m--){var g=r[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Sg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ni=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||Bv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var a=e[n];a.type==null&&zv(this,n)===we.Must&&(a.type="ordinal")}}return r}();function Ps(r){return r instanceof ni}function To(r,t,e){e=e||Xv(r);var n=t.seriesLayoutBy,a=By(r,e,n,t.sourceHeader,t.dimensions),i=new ni({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:X(t)});return i}function ks(r){return new ni({data:r,sourceFormat:Ge(r)?Nt:Ye})}function Ny(r){return new ni({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:X(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Xv(r){var t=Bv;if(Ge(r))t=Nt;else if(O(r)){r.length===0&&(t=Pe);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(O(a)){t=Pe;break}else if(H(a)){t=$e;break}}}}else if(H(r)){for(var i in r)if(gt(r,i)&&Mn(r[i])){t=ut;break}}return t}function By(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:nu(a),startIndex:o,dimensionsDetectedCount:i};if(t===Pe){var s=r;n==="auto"||n==null?au(function(u){u!=null&&u!=="-"&&(z(u)?o==null&&(o=1):o=0)},e,s,10):o=oe(n)?n:n?1:0,!a&&o===1&&(a=[],au(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===Er?s.length:s[0]?s[0].length:null}else if(t===$e)a||(a=Vy(r));else if(t===ut)a||(a=[],w(r,function(u,f){a.push(f)}));else if(t===Ye){var l=Rn(r[0]);i=O(l)&&l.length||1}return{startIndex:o,dimensionsDefine:nu(a),dimensionsDetectedCount:i}}function Vy(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e){var n=[];return w(e,function(a,i){n.push(i)}),n}}function nu(r){if(!!r){var t=W();return F(r,function(e,n){e=H(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function au(r,t,e,n){if(t===Er)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function Kv(r){var t=r.sourceFormat;return t===$e||t===ut}var Ht,Ut,Yt,iu,ou,qv=function(){function r(t,e){var n=Ps(t)?t:ks(t);this._source=n;var a=this._data=n.data;n.sourceFormat===Nt&&(this._offset=0,this._dimSize=e,this._data=a),ou(this,a,n)}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;ou=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=iu[Rs(u,f)];if(N(o,v),u===Nt)o.getItem=e,o.count=a,o.fillStorage=n;else{var d=jv(u,f);o.getItem=ne(d,null,s,c,h);var p=Qv(u,f);o.count=ne(p,null,s,c,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],m=s-o,g=l[h],y=0;y<m;y++){var _=f[y*c+h];g[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};iu=(t={},t[Pe+"_"+ot]={pure:!0,appendData:i},t[Pe+"_"+Er]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Ye]={appendData:i},t[Nt]={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}(),su=function(r,t,e,n){return r[n]},Fy=(Ht={},Ht[Pe+"_"+ot]=function(r,t,e,n){return r[n+t]},Ht[Pe+"_"+Er]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ht[$e]=su,Ht[ut]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[n]:null}return i},Ht[Ye]=su,Ht);function jv(r,t){var e=Fy[Rs(r,t)];return e}var lu=function(r,t,e){return r.length},zy=(Ut={},Ut[Pe+"_"+ot]=function(r,t,e){return Math.max(0,r.length-t)},Ut[Pe+"_"+Er]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Ut[$e]=lu,Ut[ut]=function(r,t,e){var n=e[0].name,a=r[n];return a?a.length:0},Ut[Ye]=lu,Ut);function Qv(r,t){var e=zy[Rs(r,t)];return e}var Ti=function(r,t,e){return r[t]},Gy=(Yt={},Yt[Pe]=Ti,Yt[$e]=function(r,t,e){return r[e]},Yt[ut]=Ti,Yt[Ye]=function(r,t,e){var n=Rn(r);return n instanceof Array?n[t]:n},Yt[Nt]=Ti,Yt);function Jv(r){var t=Gy[r];return t}function Rs(r,t){return r===Pe?r+"_"+t:r}function Mr(r,t,e){if(!!r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return Jv(i)(n,o,s)}else{var l=n;return i===Ye&&(l=Rn(n)),l}}}}var Wy=/\{@(.+?)\}/g,Hy=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&O(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(U(i))return l.status=e,l.dimensionIndex=a,i(l);if(z(i)){var f=Ev(i,l);return f.replace(Wy,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Mr(s,t,d);if(o&&O(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Mr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function uu(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ln(r){return new Uy(r)}var Uy=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,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(O(p))for(var m=0;m<p.length;m++)this._doProgress(p[m],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}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,n,a,i){fu.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:fu.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),O(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},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}(),fu=function(){var r,t,e,n,a,i={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}}();function Sa(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!oe(r)&&r!=null&&r!=="-"&&(r=+yt(r)),r==null||r===""?NaN:+r)}var Yy=W({number:function(r){return parseFloat(r)},time:function(r){return+yt(r)},trim:function(r){return z(r)?Pn(r):r}});function eh(r){return Yy.get(r)}var th={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},$y=function(){function r(t,e){if(!oe(e)){var n="";q(n)}this._opFn=th[t],this._rvalFloat=Bt(e)}return r.prototype.evaluate=function(t){return oe(t)?this._opFn(t,this._rvalFloat):this._opFn(Bt(t),this._rvalFloat)},r}(),rh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=oe(t)?t:Bt(t),a=oe(e)?e:Bt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=z(t),l=z(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),Zy=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Bt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Bt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Xy(r,t){return r==="eq"||r==="ne"?new Zy(r==="eq",t):gt(th,r)?new $y(r,t):null}var Ky=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 Sa(t,e)},r}();function qy(r,t){var e=new Ky,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";gt(l,g)&&q(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=jv(a,ot);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(n,i,s,p)},e.getRawData=ne(jy,null,r)),e.cloneRawData=ne(Qy,null,r);var h=Qv(a,ot);e.count=ne(h,null,n,i,s);var v=Jv(a);e.retrieveValue=function(p,m){var g=c(n,i,s,p);return d(g,m)};var d=e.retrieveValueFromItem=function(p,m){if(p!=null){var g=s[m];if(g)return v(p,m,g.name)}};return e.getDimensionInfo=ne(Jy,null,s,l),e.cloneAllDimensionInfo=ne(e0,null,s),e}function jy(r){var t=r.sourceFormat;if(!Es(t)){var e="";q(e)}return r.data}function Qy(r){var t=r.sourceFormat,e=r.data;if(!Es(t)){var n="";q(n)}if(t===Pe){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===$e){for(var a=[],i=0,o=e.length;i<o;i++)a.push(N({},e[i]));return a}}function Jy(r,t,e){if(e!=null){if(oe(e)||!isNaN(e)&&!gt(t,e))return r[e];if(gt(t,e))return t[e]}}function e0(r){return X(r)}var nh=W();function t0(r){r=X(r);var t=r.type,e="";t||q(e);var n=t.split(":");n.length!==2&&q(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,nh.set(t,r)}function r0(r,t,e){var n=ce(r),a=n.length,i="";a||q(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=n0(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function n0(r,t,e,n){var a="";t.length||q(a),H(r)||q(a);var i=r.type,o=nh.get(i);o||q(a);var s=F(t,function(u){return qy(u,o)}),l=ce(o.transform({upstream:s[0],upstreamList:s,config:X(r.config)}));return F(l,function(u,f){var c="";H(u)||q(c),u.data||q(c);var h=Xv(u.data);Es(h)||q(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:ot,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:ot,sourceHeader:0,dimensions:u.dimensions};return To(u.data,v,null)})}function Es(r){return r===Pe||r===$e}var ai="undefined",a0=typeof Uint32Array===ai?Array:Uint32Array,i0=typeof Uint16Array===ai?Array:Uint16Array,ah=typeof Int32Array===ai?Array:Int32Array,cu=typeof Float64Array===ai?Array:Float64Array,ih={float:cu,int:ah,ordinal:Array,number:Array,time:cu},Ai;function Gr(r){return r>65535?a0:i0}function vr(){return[1/0,-1/0]}function o0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function vu(r,t,e,n,a){var i=ih[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var Ao=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Ai[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Kv(a),this._dimensions=F(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 n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new ih[e||"float"](this._rawCount),this._rawExtent[i]=vr(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=vr());for(var l=i[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];vu(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=a[d],p=Ai.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=p;var m=o[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=vr()),vu(i,f,c.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],m=this._dimValueGetter(h,u[d],v,d);p[v]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.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 n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var n=e.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/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,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),v=e-i[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=Gr(this._rawCount);t=new n(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 n=this.clone(),a=n.count(),i=Gr(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var m=0;m<l;m++)s[m]=c[t[m]][d];s[m]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var a=Ue(t),i=a.length;if(!i)return this;var o=e.count(),s=Gr(e._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var m=v[a[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var m=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],g=0;g<n;g++){var y=m[g],x=_[g];(y>=c&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var C=e.getRawIndex(g),y=v[a[0]][C];(y>=c&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var g=0;g<o;g++){for(var T=!0,C=e.getRawIndex(g),A=0;A<i;A++){var M=a[A],y=v[M][C];(y<t[M][0]||y>t[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=vr();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=a[e[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],m=d[f],g=u[p],y=a[p];y&&(y[h]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Gr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+p)/2,y=0,_=p;_<m;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(y+=b)}y/=m-p;var x=d,C=Math.min(d+l,o),T=d-1,A=i[u];f=-1,h=x;for(var M=-1,D=0,_=x;_<C;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){D++,M<0&&(M=S);continue}c=Math.abs((T-g)*(b-A)-(T-_)*(y-A)),c>f&&(f=c,h=S)}D>0&&D<C-x&&(v[s++]=Math.min(M,h),h=Math.max(M,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=vr(),h=new(Gr(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var m=this.getRawIndex(d+p);s[p]=u[m]}var g=n(s),y=this.getRawIndex(Math.min(d+a(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=vr();if(!e)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),c=e[f];c<s&&(s=c),c>l&&(l=c)}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 n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&Ca(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?o0(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=X(this._extent),t._rawExtent=X(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var a=0;a<n;a++)e[a]=this._indices[a]}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,n,a,i){return Sa(e[i],this._dimensions[i])}Ai={arrayRows:t,objectRows:function(e,n,a,i){return Sa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return Sa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),oh=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(),n=!!e.length,a,i;if(Kn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ge(s)?Nt:Ye,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=se(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=se(c.sourceHeader,h.sourceHeader),p=se(c.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[To(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[To(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&du(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&du(c),s.push(f),l.push(u._getVersionSign())}),n?o=r0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Ny(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 n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[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,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Kn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Ao,s.initData(new qv(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Kn(t)){var e=Ms(t);return e?[e.getSourceManager()]:[]}else return F(ly(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(Kn(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function hu(r){var t=r.option.transform;t&&Aa(r.option.transform)}function Kn(r){return r.mainType==="series"}function du(r){throw new Error(r)}var sh="line-height:1";function lh(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ve(n+"")+"px;color:"+Ve(e)+";font-weight:"+Ve(a+""),valueStyle:"font-size:"+Ve(o+"")+"px;color:"+Ve(i)+";font-weight:"+Ve(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var s0=[0,10,20,30],l0=["",`
`,`
`,`
`];function bn(r,t){return t.type=r,t}function Do(r){return r.type==="section"}function uh(r){return Do(r)?u0:f0}function fh(r){if(Do(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=fh(a);i>=t&&(t=i+ +(n&&(!i||Do(a)&&!a.noHeader)))}),t}return 0}function u0(r,t,e,n){var a=t.noHeader,i=c0(fh(t)),o=[],s=t.blocks||[];st(!s||O(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var f=new rh(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var m=t.valueFormatter,g=uh(d)(m?N(N({},r),{valueFormatter:m}):r,d,p>0?i.html:0,n);g!=null&&o.push(g)});var c=r.renderMode==="richText"?o.join(i.richText):Mo(o.join(""),a?e:i.html);if(a)return c;var h=wo(t.header,"ordinal",r.useUTC),v=lh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?ch(r,h,v)+i.richText+c:Mo('<div style="'+v+";"+sh+';">'+Ve(h)+"</div>"+c,e)}function f0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=O(S)?S:[S],F(S,function(b,x){return wo(b,O(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":wo(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),p=!s||!i,m=!s&&i,g=lh(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":c)+(i?"":ch(r,h,y))+(o?"":d0(r,d,p,m,_)):Mo((s?"":c)+(i?"":v0(h,!s,y))+(o?"":h0(d,p,m,_)),e)}}function pu(r,t,e,n,a,i){if(!!r){var o=uh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function c0(r){return{html:s0[r],richText:l0[r]}}function Mo(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+sh+';">'+r+e+"</div>"}function v0(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Ve(r)+"</span>"}function h0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],'<span style="'+i+";"+n+'">'+F(r,function(o){return Ve(o)}).join("&nbsp;&nbsp;")+"</span>"}function ch(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function d0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(t)?t.join(" "):t,i)}function p0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return rr(n)}function vh(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Di=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Yc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=Jm({color:e,type:t,renderMode:n,markerId:a});return z(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};O(e)?w(e,function(i){return N(n,i)}):N(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function g0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=O(s),u=p0(t,e),f,c,h,v;if(o>1||l&&!o){var d=m0(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Mr(a,e,i[0]),c=p.type}else v=f=l?s[0]:s;var m=cs(t),g=m&&t.name||"",y=a.getName(e),_=n?g:y;return bn("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[bn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:f,valueType:c})].concat(h||[])})}function m0(r,t,e,n,a){var i=t.getData(),o=Ca(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(c){f(Mr(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(bn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=le();function qn(r,t){return r.getName(t)||r.getId(t)}var xa="__universalTransitionEnabled",ii=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=ln({count:_0,reset:S0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new oh(this);i.prepareSource();var o=this.getInitialData(e,a);mu(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,gu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Sn(this),i=a?ri(e):{},o=this.subType;ae.hasClass(o)&&(o+="Series"),K(e,n.getTheme().get(this.subType)),K(e,this.getDefaultOption()),po(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Dr(e,i,a)},t.prototype.mergeOption=function(e,n){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Sn(this);a&&Dr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);mu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,gu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ge(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&po(e[a],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=Io(this);if(n){var a=n.context.data;return e==null?a:a.getLinkedData(e)}else return At(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=Io(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}At(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return W(e)},t.prototype.getSourceManager=function(){return At(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return At(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,n,a){return g0({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(fe.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Is.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),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,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(!!a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=qn(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=Ue(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[xa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=qn(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=qn(e,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ae.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}(ae);St(ii,Hy);St(ii,Is);Jc(ii,ae);function gu(r){var t=r.name;cs(r)||(r.name=y0(r)||t)}function y0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function _0(r){return r.model.getRawData().count()}function S0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),x0}function x0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function mu(r,t){w($p(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Q(b0,t))})}function b0(r,t){var e=Io(r);return e&&e.setOutputEnd((t||this).count()),t}function Io(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=ii;var Os=function(){function r(){this.group=new _e,this.uid=Vn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();hs(Os);Ga(Os);const He=Os;function Fn(){var r=le();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var hh=le(),w0=Fn(),Ns=function(){function r(){this.group=new _e,this.uid=Vn("viewChart"),this.renderTask=ln({plan:C0,reset:T0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);!i||_u(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);!i||_u(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){On(this.group,t)},r.markUpdateMethod=function(t,e){hh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function yu(r,t,e){r&&_o(r)&&(t==="emphasis"?Tr:Ar)(r,e)}function _u(r,t,e){var n=tr(r,t),a=t&&t.highlightKey!=null?pm(t.highlightKey):null;n!=null?w(ce(n),function(i){yu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){yu(i,e,a)})}hs(Ns);Ga(Ns);function C0(r){return w0(r.model)}function T0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&hh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),A0[l]}var A0={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 ze=Ns;var Ea="\0__throttleOriginMethod",Su="\0__throttleRate",xu="\0__throttleType";function Bs(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,m=f||e;f=null,s=n-(m?a:i)-p,clearTimeout(o),m?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function dh(r,t,e,n){var a=r[t];if(!!a){var i=a[Ea]||a,o=a[xu],s=a[Su];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Bs(i,e,n==="debounce"),a[Ea]=i,a[xu]=n,a[Su]=e}return a}}function Lo(r,t){var e=r[t];e&&e[Ea]&&(e.clear&&e.clear(),r[t]=e[Ea])}var bu=le(),wu={itemStyle:dn(Sv,!0),lineStyle:dn(_v,!0)},D0={lineStyle:"stroke",itemStyle:"fill"};function ph(r,t){var e=r.visualStyleMapper||wu[t];return e||(console.warn("Unkown style type '"+t+"'."),wu.itemStyle)}function gh(r,t){var e=r.visualDrawType||D0[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var M0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=ph(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=gh(r,n),u=o[l],f=U(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||U(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||U(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=N({},o);m[l]=f(p),v.setItemVisual(d,"style",m)}}}},Wr=new Ce,I0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=ph(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Wr.option=l[n];var u=a(Wr),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Wr.option.decal&&(o.setItemVisual(s,"decal",Wr.option.decal),Wr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},L0={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),bu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=bu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=gh(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},jn=Math.PI;function P0(r,t){t=t||{},ee(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 _e,n=new pe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new be({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 pe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new ls({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=a.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),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var k0=function(){function r(t,e,n,a){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.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 n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,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,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(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(n){e=n.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,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||ln({plan:B0,reset:V0,count:z0}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||ln({reset:R0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,w(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,ln({reset:E0,onDirty:N0})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return U(t)&&(t={overallReset:t,seriesType:G0(t)}),t.uid=Vn("stageHandler"),e&&(t.visualType=e),t},r}();function R0(r){r.overallReset(r.ecModel,r.api,r.payload)}function E0(r){return r.overallProgress&&O0}function O0(){this.agent.dirty(),this.getDownstream().dirty()}function N0(){this.agent&&this.agent.dirty()}function B0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function V0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ce(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return mh(n)}):F0}var F0=mh(0);function mh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function z0(r){return r.data.count()}function G0(r){Oa=null;try{r(wn,yh)}catch{}return Oa}var wn={},yh={},Oa;_h(wn,Uv);_h(yh,Yv);wn.eachSeriesByType=wn.eachRawSeriesByType=function(r){Oa=r};wn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Oa=r.subType)};function _h(r,t){for(var e in t.prototype)r[e]=mt}const Sh=k0;var Cu=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const W0={color:Cu,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Cu]};var Me="#B9B8CE",Tu="#100C2A",Qn=function(){return{axisLine:{lineStyle:{color:Me}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Au=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],xh={darkMode:!0,color:Au,backgroundColor:Tu,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Me}},textStyle:{color:Me},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Me}},dataZoom:{borderColor:"#71708A",textStyle:{color:Me},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:Me}},timeline:{lineStyle:{color:Me},label:{color:Me},controlStyle:{color:Me,borderColor:Me}},calendar:{itemStyle:{color:Tu},dayLabel:{color:Me},monthLabel:{color:Me},yearLabel:{color:Me}},timeAxis:Qn(),logAxis:Qn(),valueAxis:Qn(),categoryAxis:Qn(),line:{symbol:"circle"},graph:{color:Au},gauge:{title:{color:Me},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Me},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};xh.categoryAxis.splitLine.show=!1;const H0=xh;var U0=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(z(t)){var i=rt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Po=["symbol","symbolSize","symbolRotate","symbolOffset"],Du=Po.concat(["symbolKeepAspect"]),Y0={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 n={},a={},i=!1,o=0;o<Po.length;o++){var s=Po[o],l=r.get(s);U(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(N({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=Ue(a);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var m=u[p];c.setItemVisual(h,m,a[m](v,d))}}return{dataEach:i?f:null}}},$0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Du.length;s++){var l=Du[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function Z0(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function X0(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 K0(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=N({},a),o.dispatchAction(N(a,{type:n[1],seriesIndex:e(i,a)}))})})}function hr(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=tr(c,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:O(h)?c.getName(h[0]):c.getName(h),selected:z(l)?l:N({},l)})}})}function q0(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(hr("map","selectchanged",t,a,n),hr("pie","selectchanged",t,a,n)):n.fromAction==="select"?(hr("map","selected",t,a,n),hr("pie","selected",t,a,n)):n.fromAction==="unselect"&&(hr("map","unselected",t,a,n),hr("pie","unselected",t,a,n))})}function tn(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var j0=ge.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),Q0=ge.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),J0=ge.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),e_=ge.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),t_={line:er,rect:pe,roundRect:pe,square:pe,circle:os,diamond:Q0,pin:J0,arrow:e_,triangle:j0},r_={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},ko={};w(t_,function(r,t){ko[t]=new r});var n_=ge.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=fo(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var a=ko[n];a||(n="rect",a=ko[n]),r_[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function a_(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 nr(r,t,e,n,a,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=cv(r.slice(8),new Ee(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=_s(r.slice(7),{},new Ee(t,e,n,a),o?"center":"cover"):l=new n_({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=a_,i&&l.setColor(i),l}function i_(r){return O(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function bh(r,t){if(r!=null)return O(r)||(r=[r,r]),[re(r[0],t[0])||0,re(se(r[1],r[0]),t[1])||0]}var Mi=new Zp,Mu=new Lc(100),Iu=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ro(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&Mi.delete(r);var i=Mi.get(r);if(i)return i;var o=ee(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=a?1:1/e,Mi.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Iu.length;++h){var v=o[Iu[h]];if(v!=null&&!O(v)&&!z(v)&&!oe(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=Mu.get(d);p&&(a?u.svgElement=p:u.image=p)}var m=Ch(o.dashArrayX),g=o_(o.dashArrayY),y=wh(o.symbol),_=s_(m),S=Th(g),b=!a&&Bc.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=A(),T;b&&(b.width=C.width*e,b.height=C.height*e,T=b.getContext("2d")),M(),c&&Mu.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function A(){for(var D=1,I=0,L=_.length;I<L;++I)D=yl(D,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=yl(P,y[I].length);D*=P;var k=S*_.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<g.length;++I)D+=g[I];if(D<=0)return;for(var L=-S,P=0,k=0,V=0;L<C.height;){if(P%2===0){for(var $=k/2%y.length,R=0,E=0,G=0;R<C.width*2;){for(var Y=0,I=0;I<m[V].length;++I)Y+=m[V][I];if(Y<=0)break;if(E%2===0){var Z=(1-o.symbolSize)*.5,j=R+m[V][E]*Z,me=L+g[P]*Z,Ze=m[V][E]*o.symbolSize,he=g[P]*o.symbolSize,wt=G/2%y[$].length;Ct(j,me,Ze,he,y[$][wt])}R+=m[V][E],++G,++E,E===m[V].length&&(E=0)}++V,V===m.length&&(V=0)}L+=g[P],++k,++P,P===g.length&&(P=0)}function Ct(Or,Nr,Wn,Hn,Un){var zt=a?1:e,Tt=nr(Un,Or*zt,Nr*zt,Wn*zt,Hn*zt,o.color,o.symbolKeepAspect);if(a){var ct=n.painter.renderOneToVNode(Tt);ct&&x.children.push(ct)}else Xp(T,Tt)}}}}function wh(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!z(r[e])){t=!1;break}if(t)return wh([r]);for(var n=[],e=0;e<r.length;++e)z(r[e])?n.push([r[e]]):n.push(r[e]);return n}function Ch(r){if(!r||r.length===0)return[[0,0]];if(oe(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!oe(r[n])){e=!1;break}if(e)return Ch([r]);for(var a=[],n=0;n<r.length;++n)if(oe(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=F(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function o_(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(oe(r)){var t=Math.ceil(r);return[t,t]}var e=F(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function s_(r){return F(r,function(t){return Th(t)})}function Th(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function l_(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ro(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Ro(a,t)}}})}var u_=new kn;const qe=u_;var Ah={};function f_(r,t){Ah[r]=t}function c_(r){return Ah[r]}var v_=typeof window<"u",h_=1,d_=800,p_=900,g_=1e3,m_=2e3,y_=5e3,Dh=1e3,__=1100,Vs=2e3,Mh=3e3,S_=4e3,oi=4500,x_=4600,b_=5e3,w_=6e3,Ih=7e3,C_={PROCESSOR:{FILTER:g_,SERIES_FILTER:d_,STATISTIC:y_},VISUAL:{LAYOUT:Dh,PROGRESSIVE_LAYOUT:__,GLOBAL:Vs,CHART:Mh,POST_CHART_LAYOUT:x_,COMPONENT:S_,BRUSH:b_,CHART_ITEM:oi,ARIA:w_,DECAL:Ih}},Ae="__flagInMainProcess",ke="__pendingUpdate",Ii="__needsUpdateStatus",Lu=/^[a-zA-Z0-9_]+$/,Li="__connectUpdateStatus",Pu=0,T_=1,A_=2;function Lh(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return kh(this,r,t)}}function Ph(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return kh(this,r,t)}}function kh(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),kn.prototype[t].apply(r,e)}var Rh=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(kn),Eh=Rh.prototype;Eh.on=Ph("on");Eh.off=Ph("off");var dr,Pi,Jn,Dt,ki,Ri,Ei,Hr,Ur,ku,Ru,Oi,Eu,ea,Ou,Oh,Oe,Nu,Nh=function(r){B(t,r);function t(e,n,a){var i=r.call(this,new U0)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},z(n)&&(n=Bh[n]),i._dom=e;var o="canvas",s="auto",l=!1,u=i._zr=vl(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:se(a.useDirtyRect,l),useCoarsePointer:se(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Bs(ne(u.flush,u),17),n=X(n),n&&Zv(n,!0),i._theme=n,i._locale=$m(a.locale||bv),i._coordSysMgr=new Ls;var f=i._api=Ou(i);function c(h,v){return h.__prio-v.__prio}return di(Ba,c),di(Eo,c),i._scheduler=new Sh(i,f,Eo,Ba),i._messageCenter=new Rh,i._initEvents(),i.resize=ne(i.resize,i),u.animation.on("frame",i._onframe,i),ku(u,i),Ru(u,i),Aa(i),i}return t.prototype._onframe=function(){if(!this._disposed){Nu(this);var e=this._scheduler;if(this[ke]){var n=this[ke].silent;this[Ae]=!0;try{dr(this),Dt.update.call(this,null,this[ke].updateParams)}catch(l){throw this[Ae]=!1,this[ke]=null,l}this._zr.flush(),this[Ae]=!1,this[ke]=null,Hr.call(this,n),Ur.call(this,n)}else if(e.unfinished){var a=h_,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Ri(this,i),e.performVisualTasks(i),ea(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>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,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(H(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Ay(this._api),u=this._theme,f=this._model=new Uv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Oo);var c={seriesTransition:s,optionChanged:!0};if(a)this[ke]={silent:i,updateParams:c},this[Ae]=!1,this.getZr().wakeUp();else{try{dr(this),Dt.update.call(this,null,c)}catch(h){throw this[ke]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[ke]=null,this[Ae]=!1,Hr.call(this,i),Ur.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||v_&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!fe.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Bu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(fn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,m=Bc.createCanvas(),g=vl(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new pe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new In({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ki(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ki(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=nn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=nn(a,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?Z0(s,l,n):X0(s,n)},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;w(D_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&tn(s,function(d){var p=J(d);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=N({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(un,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),q0(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&&qc(this.getDom(),zs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete fn[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ke]&&(i==null&&(i=this[ke].silent),a=!0,this[ke]=null),this[Ae]=!0;try{a&&dr(this),Dt.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Hr.call(this,i),Ur.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(H(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!No[e]){var a=No[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},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 n=N({},e);return n.type=un[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!Na[e.type]&&!!this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Ei.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&fe.browser.weChat&&this._throttledZrFlush(),Hr.call(this,a),Ur.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){dr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Pi(c,!0),Pi(c,!1),h.plan()},Pi=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,m=h?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,C){x!=="series"&&S(C)}):v.eachSeries(S);function S(x){var C=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,A=!C&&m[T];if(!A){var M=rt(x.type),D=h?He.getClass(M.main,M.sub):ze.getClass(M.sub);A=new D,A.init(v,y),m[T]=A,p.push(A),g.add(A.group)}x.__viewId=A.__id=T,A.__alive=!0,A.__model=x,A.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(A,x,v,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,y),p.splice(_,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Jn=function(c,h,v,d,p){var m=c._model;if(m.setUpdatePayload(v),!d){w([].concat(c._componentsViews).concat(c._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var y={mainType:d,query:g};p&&(y.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=W(),w(ce(_),function(x){var C=it(x,null);C!=null&&S.set(C,!0)})),m&&m.eachComponent(y,function(x){var C=S&&S.get(x.id)!==null;if(!C)if(Pl(v))if(x instanceof lt)v.type===qt&&!v.notBlur&&!x.get(["emphasis","disabled"])&&sm(x,v,c._api);else{var T=ms(x.mainType,x.componentIndex,v.name,c._api),A=T.focusSelf,M=T.dispatchers;v.type===qt&&A&&!v.notBlur&&mo(x.mainType,x.componentIndex,c._api),M&&w(M,function(D){v.type===qt?Tr(D):Ar(D)})}else So(v)&&x instanceof lt&&(fm(x,v,c._api),Il(x),Oe(c))},c),m&&m.eachComponent(y,function(x){var C=S&&S.get(x.id)!==null;C||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,m,c._api,v)}},Dt={prepareAndUpdate:function(c){dr(this),Dt.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,m=this._coordSysMgr,g=this._scheduler;if(!!v){v.setUpdatePayload(c),g.restoreData(v,c),g.performSeriesTasks(v),m.create(v,d),g.performDataProcessorTasks(v,c),Ri(this,v),m.update(v,d),e(v),g.performVisualTasks(v,c),Oi(this,v,d,c,h);var y=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),qe.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(g,y){if(g!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var m=W();v.eachSeries(function(g){var y=h._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,v,d,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),e(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:m}),ea(this,v,d,c,{},m),qe.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;!h||(h.setUpdatePayload(c),ze.markUpdateMethod(c,"updateView"),e(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Oi(this,h,this._api,c,{}),qe.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;!v||(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),ze.markUpdateMethod(c,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var m=h.getViewOfComponentModel(p);m&&m.__alive&&m.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),qe.trigger("afterupdate",v,this._api))},updateLayout:function(c){Dt.update.call(this,c)}},ki=function(c,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),g,y=nn(p,v),_=0;_<m.length;_++){var S=m[_];if(S[h]&&(g=S[h](p,y,d))!=null)return g}},Ri=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Ei=function(c,h){var v=this,d=this.getModel(),p=c.type,m=c.escapeConnect,g=Na[p],y=g.actionInfo,_=(y.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&rt(_[0]);this[Ae]=!0;var x=[c],C=!1;c.batch&&(C=!0,x=F(c.batch,function(P){return P=ee(N({},P),c),P.batch=null,P}));var T=[],A,M=So(c),D=Pl(c);if(D&&lv(this._api),w(x,function(P){if(A=g.action(P,v._model,v._api),A=A||N({},P),A.type=y.event||A.type,T.push(A),D){var k=vs(c),V=k.queryOptionMap,$=k.mainTypeSpecified,R=$?V.keys()[0]:"series";Jn(v,S,P,R),Oe(v)}else M?(Jn(v,S,P,"series"),Oe(v)):b&&Jn(v,S,P,b.main,b.sub)}),S!=="none"&&!D&&!M&&!b)try{this[ke]?(dr(this),Dt.update.call(this,c),this[ke]=null):Dt[S].call(this,c)}catch(P){throw this[Ae]=!1,P}if(C?A={type:y.event||p,escapeConnect:m,batch:T}:A=T[0],this[Ae]=!1,!h){var I=this._messageCenter;if(I.trigger(A.type,A),M){var L={type:"selectchanged",escapeConnect:m,selected:cm(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};I.trigger(L.type,L)}}},Hr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Ei.call(this,v,c)}},Ur=function(c){!c&&this.trigger("updated")},ku=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[ke]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Ru=function(c,h){c.on("mouseover",function(v){var d=v.target,p=tn(d,_o);p&&(lm(p,v,h._api),Oe(h))}).on("mouseout",function(v){var d=v.target,p=tn(d,_o);p&&(um(p,v,h._api),Oe(h))}).on("click",function(v){var d=v.target,p=tn(d,function(y){return J(y).dataIndex!=null},!0);if(p){var m=p.selected?"unselect":"select",g=J(p);h._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function e(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(y==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:x})}),d){var p=h.concat(v),m,g;di(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;m!=null&&(S=Math.max(m,S)),b?(S===m&&b!==g&&S++,g=b):g&&(S===m&&S++,g=""),m=S,_.setZLevel(S)})}}Oi=function(c,h,v,d,p){n(h),Eu(c,h,v,d,p),w(c._chartsViews,function(m){m.__alive=!1}),ea(c,h,v,d,p),w(c._chartsViews,function(m){m.__alive||m.remove(h,v)})},Eu=function(c,h,v,d,p,m){w(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,h,v,d),s(y,g),f(y,g)})},ea=function(c,h,v,d,p,m){var g=c._scheduler;p=N(p||{},{updatedSeries:h.getSeries()}),qe.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),m&&m.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),o(_,S),Il(_)}),g.unfinished=y||g.unfinished,qe.trigger("series:layoutlabels",h,v,p),qe.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(c,h),qe.trigger("series:afterupdate",h,v,p)},Oe=function(c){c[Ii]=!0,c.getZr().wakeUp()},Nu=function(c){!c[Ii]||(c.getZr().storage.traverse(function(h){xr(h)||a(h)}),c[Ii]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Ha&&c.states.emphasis?h.push("emphasis"):c.hoverState===Wa&&c.states.blur&&h.push("blur"),c.useStates(h)}function i(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(m){m.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!fe.node&&!fe.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=c._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),m=c.getTextGuideLine(),g=c.isGroup;if(g)for(var y=c.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),m){var S=c.textGuideLineConfig;m.z=h,m.zlevel=v,isFinite(d)&&(m.z2=d+(S&&S.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!xr(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),m=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xr(g))return;if(g instanceof ge&&gm(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&a(g)}})}Ou=function(c){return new(function(h){B(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Tr(d,p),Oe(c)},v.prototype.leaveEmphasis=function(d,p){Ar(d,p),Oe(c)},v.prototype.enterBlur=function(d){om(d),Oe(c)},v.prototype.leaveBlur=function(d){av(d),Oe(c)},v.prototype.enterSelect=function(d){iv(d),Oe(c)},v.prototype.leaveSelect=function(d){ov(d),Oe(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(Yv))(c)},Oh=function(c){function h(v,d){for(var p=0;p<v.length;p++){var m=v[p];m[Li]=d}}w(un,function(v,d){c._messageCenter.on(d,function(p){if(Bu[c.group]&&c[Li]!==Pu){if(p&&p.escapeConnect)return;var m=c.makeActionFromEvent(p),g=[];w(fn,function(y){y!==c&&y.group===c.group&&g.push(y)}),h(g,Pu),w(g,function(y){y[Li]!==T_&&y.dispatchAction(m)}),h(g,A_)}})})}}(),t}(kn),Fs=Nh.prototype;Fs.on=Lh("on");Fs.off=Lh("off");Fs.one=function(r,t,e){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var D_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Na={},un={},Eo=[],Oo=[],Ba=[],Bh={},No={},fn={},Bu={},M_=+new Date-0,zs="_echarts_instance_";function RT(r,t,e){var n=!(e&&e.ssr);if(n){var a=I_(r);if(a)return a}var i=new Nh(r,t,e);return i.id="ec_"+M_++,fn[i.id]=i,n&&qc(r,zs,i.id),Oh(i),qe.trigger("afterinit",i),i}function I_(r){return fn[Bg(r,zs)]}function Vh(r,t){Bh[r]=t}function Fh(r){ie(Oo,r)<0&&Oo.push(r)}function zh(r,t){Ws(Eo,r,t,m_)}function L_(r){Gs("afterinit",r)}function P_(r){Gs("afterupdate",r)}function Gs(r,t){qe.on(r,t)}function ft(r,t,e){U(t)&&(e=t,t="");var n=H(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!un[t]&&(st(Lu.test(n)&&Lu.test(t)),Na[n]||(Na[n]={action:e,actionInfo:r}),un[t]=n)}function k_(r,t){Ls.register(r,t)}function R_(r,t){Ws(Ba,r,t,Dh,"layout")}function lr(r,t){Ws(Ba,r,t,Mh,"visual")}var Vu=[];function Ws(r,t,e,n,a){if((U(t)||H(t))&&(e=t,t=n),!(ie(Vu,e)>=0)){Vu.push(e);var i=Sh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function Gh(r,t){No[r]=t}function E_(r,t,e){var n=c_("registerMap");n&&n(r,t,e)}var O_=t0;lr(Vs,M0);lr(oi,I0);lr(oi,L0);lr(Vs,Y0);lr(oi,$0);lr(Ih,l_);Fh(Zv);zh(p_,Ey);Gh("default",P0);ft({type:qt,event:qt,update:qt},mt);ft({type:pa,event:pa,update:pa},mt);ft({type:an,event:an,update:an},mt);ft({type:ga,event:ga,update:ga},mt);ft({type:on,event:on,update:on},mt);Vh("light",W0);Vh("dark",H0);function Yr(r){return r==null?0:r.length||1}function Fu(r){return r}var N_=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Fu,this._newKeyGetter=a||Fu,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,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Yr(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=Yr(u),h=Yr(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=Yr(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[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!e){var l=e[s],u=Yr(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Cn=N_;var B_=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 V_(r,t){var e={},n=e.encode={},a=W(),i=[],o=[],s={};w(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Ni(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),F_(v.type)&&(i[0]=h),Ni(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Nv.each(function(m,g){var y=Ni(n,g),_=v.otherDims[g];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};a.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=F(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e.userOutput=new B_(s,t),e}function Ni(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Bo(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function F_(r){return!(r==="ordinal"||r==="time")}var z_=function(){function r(t){this.otherDims={},t!=null&&N(this,t)}return r}();const ba=z_;var G_=le(),W_={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Wh=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=Yh(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return se(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=Kv(this.source),n=!$h(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=W_[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Hh(r){return r instanceof Wh}function Uh(r){for(var t=W(),e=0;e<(r||[]).length;e++){var n=r[e],a=H(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function Yh(r){var t=G_(r);return t.dimNameMap||(t.dimNameMap=Uh(r.dimensionsDefine))}function $h(r){return r>30}var $r=H,Mt=F,H_=typeof Int32Array>"u"?Array:Int32Array,U_="e\0\0",zu=-1,Y_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$_=["_approximateExtent"],Gu,ta,Zr,Xr,Bi,ra,Vi,Z_=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 n,a=!1;Hh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=z(c)?new ba({name:c}):c instanceof ba?c:new ba(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=W();w(o,function(m){p.set(i[m].storeDimIndex,m)})}}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 n=this._dimIdxToName.get(e);if(n!=null)return n;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(oe(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(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var a=this,i;if(t instanceof Ao&&(i=t),!i){var o=this.dimensions,s=Ps(t)||Mn(t)?new qv(t,o.length):t;i=new Ao;var l=Mt(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=V_(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 n=this._store.appendValues(t,e.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&Vi(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Nt&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ye;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Cg(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=it(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=it(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Vi(this,f);Gu(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){$r(t)?N(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=Zr(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return ta(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.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 n=this,a=this._store;return O(t)?a.getValues(Mt(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;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 n=t&&this._invertedIndicesMap[t],a=n[e];return a==null||isNaN(a)?zu:a},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){U(t)&&(n=e,e=t,t=[]);var a=n||this,i=Mt(Xr(t),this._getStoreDimIndex,this);this._store.each(i,a?ne(e,a):e)},r.prototype.filterSelf=function(t,e,n){U(t)&&(n=e,e=t,t=[]);var a=n||this,i=Mt(Xr(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ne(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=Ue(t);return w(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){U(t)&&(n=e,e=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=Mt(Xr(t),this._getStoreDimIndex,this),s=ra(this);return s._store=this._store.map(o,i?ne(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=n||a||this,o=Mt(Xr(t),this._getStoreDimIndex,this);this._store.modify(o,i?ne(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=ra(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.lttbDownSample=function(t,e){var n=ra(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Ce(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Cn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ta(t,n)},function(n){return ta(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},$r(t)?N(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a==null?this.getVisual(e):a},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),O(i)?i=i.slice():$r(i)&&(i=N({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,$r(e)?N(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){$r(t)?N(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,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;qg(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Mt(this.dimensions,this._getDimInfo,this),this.hostModel)),Bi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!U(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(Kp(arguments)))})},r.internalField=function(){Gu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new H_(o.categories.length);for(var l=0;l<n.length;l++)n[l]=zu;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Zr=function(t,e,n){return it(t._getCategory(e,n),null)},ta=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Zr(t,t._idDimIdx,e)),n==null&&(n=U_+e),n},Xr=function(t){return O(t)||(t=t!=null?[t]:[]),t},ra=function(t){var e=new r(t._schema?t._schema:Mt(t.dimensions,t._getDimInfo,t),t.hostModel);return Bi(e,t),e},Bi=function(t,e){w(Y_.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,w($_,function(n){t[n]=X(e[n])}),t._calculationInfo=N({},e._calculationInfo)},Vi=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=Zr(t,i,e)),l==null&&o!=null&&(a[e]=l=Zr(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}}(),r}();const Zh=Z_;function Xh(r,t){Ps(r)||(r=ks(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=W(),i=[],o=K_(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$h(o),l=n===r.dimensionsDefine,u=l?Yh(r):Uh(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=W(f),h=new ah(o),v=0;v<h.length;v++)h[v]=-1;function d(A){var M=h[A];if(M<0){var D=n[A],I=H(D)?D:{name:D},L=new ba,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 k=i.length;return h[A]=k,L.storeDimIndex=A,i.push(L),L}return i[M]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(A,M){var D=ce(A).slice();if(D.length===1&&!z(D[0])&&D[0]<0){c.set(M,!1);return}var I=c.set(M,[]);w(D,function(L,P){var k=z(L)?u.get(L):L;k!=null&&k<o&&(I[P]=k,m(d(k),M,P))})});var p=0;w(e,function(A){var M,D,I,L;if(z(A))M=A,L={};else{L=A,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=N({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=c.get(M);if(k!==!1){if(k=ce(k),!k.length)for(var V=0;V<(D&&D.length||1);V++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}w(k,function($,R){var E=d($);if(l&&L.type!=null&&(E.type=L.type),m(ee(E,L),M,R),E.name==null&&D){var G=D[R];!H(G)&&(G={name:G}),E.name=E.displayName=G.name,E.defaultTooltip=G.defaultTooltip}I&&ee(E.otherDims,I)})}});function m(A,M,D){Nv.get(M)!=null?A.otherDims[M]=D:(A.coordDim=M,A.coordDimIndex=D,a.set(M,!0))}var g=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=g?y||1:0;var S=g||"value";function b(A){A.name==null&&(A.name=A.coordDim)}if(s)w(i,function(A){b(A)}),i.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var C=d(x),T=C.coordDim;T==null&&(C.coordDim=q_(S,a,_),C.coordDimIndex=0,(!g||y<=0)&&(C.isExtraCoord=!0),y--),b(C),C.type==null&&(zv(r,x)===we.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return X_(i),new Wh({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function X_(r){for(var t=W(),e=0;e<r.length;e++){var n=r[e],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function K_(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function q_(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var a=0;n.hasOwnProperty(r+a);)a++;r+=a}return t.set(r,!0),r}var j_=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function Q_(r){var t=r.get("coordinateSystem"),e=new j_(t),n=J_[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var J_={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Le).models[0],i=r.getReferringComponents("yAxis",Le).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),pr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),pr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Le).models[0];t.coordSysDims=["single"],e.set("single",a),pr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Le).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),pr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),pr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),pr(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function pr(r){return r.get("type")==="category"}function eS(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;tS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(y,_){z(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(y){y.coordDim===v&&p++});var m={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function tS(r){return!Hh(r.schema)}function Ir(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function rS(r,t){return Ir(r,t)?r.getCalculationInfo("stackResultDimension"):t}function nS(r,t){var e=r.get("coordinateSystem"),n=Ls.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Bo(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function aS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function si(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=ks(r)):(a=n.getSource(),i=a.sourceFormat===Ye);var o=Q_(t),s=nS(t,o),l=e.useEncodeDefaulter,u=U(l)?l:l?Q(Fv,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Xh(a,f),h=aS(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=eS(t,{schema:c,store:v}),p=new Zh(c,t);p.setCalculationInfo(d);var m=h!=null&&iS(a)?function(g,y,_,S){return S===h?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,m),p}function iS(r){if(r.sourceFormat===Ye){var t=oS(r.data||[]);return!O(Rn(t))}}function oS(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Kh=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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[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}();Ga(Kh);const bt=Kh;var sS=0,lS=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++sS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,uS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!z(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function uS(r){return H(r)&&r.value!=null?r.value:r+""}const Vo=lS;function Fo(r){return r.type==="interval"||r.type==="log"}function fS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=Uc(i/t,!0);e!=null&&o<e&&(o=a.interval=e),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=qh(o),l=a.niceTickExtent=[de(Math.ceil(r[0]/o)*o,s),de(Math.floor(r[1]/o)*o,s)];return cS(l,r),a}function Fi(r){var t=Math.pow(10,fs(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,de(e*t)}function qh(r){return dt(r)+2}function Wu(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function cS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Wu(r,0,t),Wu(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function li(r,t){return r>=t[0]&&r<=t[1]}function ui(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var jh=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Vo({})),O(a)&&(a=new Vo({categories:F(a,function(i){return H(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),li(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ui(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},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}(bt);bt.registerClass(jh);const Qh=jh;var $t=de,Jh=function(r){B(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 li(e,this._extent)},t.prototype.normalize=function(e){return ui(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=qh(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(e?s.push({value:$t(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=$t(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:$t(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/e;u<e-1;){var v=$t(l.value+(u+1)*h);v>i[0]&&v<i[1]&&f.push(v),u++}a.push(f)}return a},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=dt(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=$t(e.value,a,!0);return kv(i)},t.prototype.calcNiceTicks=function(e,n,a){e=e||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=fS(i,e,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);e.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=$t(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=$t(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(bt);bt.registerClass(Jh);const zn=Jh;var ed=typeof Float32Array<"u",vS=ed?Float32Array:Array;function nt(r){return O(r)?ed?new Float32Array(r):r:new vS(r)}var hS="__ec_stack_";function Hs(r){return r.get("stack")||hS+r.seriesIndex}function Us(r){return r.dim+r.index}function td(r,t){var e=[];return t.eachSeriesByType(r,function(n){nd(n)&&e.push(n)}),e}function dS(r){var t={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,m=d.count();p<m;++p){var g=d.get(v,p);t[h]?t[h].push(g):t[h]=[g]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function rd(r){var t=dS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.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],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=re(n.get("barWidth"),s),p=re(n.get("barMaxWidth"),s),m=re(n.get("barMinWidth")||(ad(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:Us(i),stackId:Hs(n)})}),pS(e)}function pS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ue(i).length;s=Math.max(35-l*4,15)+"%"}var u=re(s,o),f=re(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;y&&y<S&&(S=Math.min(y,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(g,y){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var m=-d/2;w(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),e}function gS(r,t,e){if(r&&t){var n=r[Us(t)];return n!=null&&e!=null?n[Hs(e)]:n}}function mS(r,t){var e=td(r,t),n=rd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Hs(a),u=n[Us(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function yS(r){return{seriesType:r,plan:Fn(),reset:function(t){if(!!nd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=Ir(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=_S(a,i),d=ad(t),p=t.get("barMinHeight")||0,m=f&&e.getDimensionIndex(f),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),A=n.master.getRect(),M=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?m:o,D),k=I.get(s,D),V=v,$=void 0;c&&($=+P-I.get(o,D));var R=void 0,E=void 0,G=void 0,Y=void 0;if(h){var Z=n.dataToPoint([P,k]);if(c){var j=n.dataToPoint([$,k]);V=j[0]}R=V,E=Z[1]+y,G=Z[0]-V,Y=g,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var Z=n.dataToPoint([k,P]);if(c){var j=n.dataToPoint([k,$]);V=j[1]}R=Z[0]+y,E=V,G=g,Y=Z[1]-V,Math.abs(Y)<p&&(Y=(Y<=0?-1:1)*p)}d?(x[L]=R,x[L+1]=E,x[L+2]=h?G:Y,C&&(C[L]=h?A.x:R,C[L+1]=h?E:A.y,C[L+2]=M),T[D]=D):S.setItemLayout(D,{x:R,y:E,width:G,height:Y}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function nd(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ad(r){return r.pipelineContext&&r.pipelineContext.large}function _S(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var SS=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},id=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return qa(e.value,Gl[qm(br(this._minLevelUnit))]||Gl.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return jm(e,n,a,o,i)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,a=[];if(!e)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=DS(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Fe,n[1]+=Fe),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Fe}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,a){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=na.length,l=Math.min(SS(na,this._approxInterval,0,s),s-1);this._interval=na[l][1],this._minLevelUnit=na[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return oe(e)?e:+yt(e)},t.prototype.contain=function(e){return li(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ui(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(zn),na=[["second",Cs],["minute",Ts],["hour",sn],["quarter-day",sn*6],["half-day",sn*12],["day",Fe*1.2],["half-week",Fe*3.5],["week",Fe*7],["month",Fe*31],["quarter",Fe*95],["half-year",zl/2],["year",zl]];function xS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return Wl(a,d,n)===Wl(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function bS(r,t){return r/=Fe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function wS(r){var t=30*Fe;return r/=t,r>6?6:r>3?3:r>2?2:1}function CS(r){return r/=sn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Hu(r,t){return r/=t?Ts:Cs,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function TS(r){return Uc(r,!0)}function AS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Av(e)](0);case"day":n[Dv(e)](1);case"hour":n[Mv(e)](0);case"minute":n[Iv(e)](0);case"second":n[Lv(e)](0),n[Pv(e)](0)}return n.getTime()}function DS(r,t,e,n){var a=1e4,i=Cv,o=0;function s(M,D,I,L,P,k,V){for(var $=new Date(D),R=D,E=$[L]();R<I&&R<=n[1];)V.push({value:R}),E+=M,$[P](E),R=$.getTime();V.push({value:R,notAdd:!0})}function l(M,D,I){var L=[],P=!D.length;if(!xS(br(M),n[0],n[1],e)){P&&(D=[{value:AS(new Date(n[0]),M,e)},{value:n[1]}]);for(var k=0;k<D.length-1;k++){var V=D[k].value,$=D[k+1].value;if(V!==$){var R=void 0,E=void 0,G=void 0,Y=!1;switch(M){case"year":R=Math.max(1,Math.round(t/Fe/365)),E=As(e),G=Qm(e);break;case"half-year":case"quarter":case"month":R=wS(t),E=wr(e),G=Av(e);break;case"week":case"half-week":case"day":R=bS(t),E=ja(e),G=Dv(e),Y=!0;break;case"half-day":case"quarter-day":case"hour":R=CS(t),E=_n(e),G=Mv(e);break;case"minute":R=Hu(t,!0),E=Qa(e),G=Iv(e);break;case"second":R=Hu(t,!1),E=Ja(e),G=Lv(e);break;case"millisecond":R=TS(t),E=ei(e),G=Pv(e);break}s(R,V,$,E,G,Y,L),M==="year"&&I.length>1&&k===0&&I.unshift({value:I[0].value-R})}}for(var k=0;k<L.length;k++)I.push(L[k]);return L}}for(var u=[],f=[],c=0,h=0,v=0;v<i.length&&o++<a;++v){var d=br(i[v]);if(!!Km(i[v])){l(i[v],u[u.length-1]||[],f);var p=i[v+1]?br(i[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(M,D){return M.value-D.value});for(var m=[],g=0;g<f.length;++g){var y=f[g].value;(g===0||f[g-1].value!==y)&&(m.push(f[g]),y>=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(m),c>_||r===i[v]))break}f=[]}}}for(var S=xe(F(u,function(M){return xe(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v<S.length;++v)for(var C=S[v],T=0;T<C.length;++T)b.push({value:C[T].value,level:x-v});b.sort(function(M,D){return M.value-D.value});for(var A=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&A.push(b[v]);return A}bt.registerClass(id);const MS=id;var Uu=bt.prototype,cn=zn.prototype,IS=de,LS=Math.floor,PS=Math.ceil,aa=Math.pow,Ke=Math.log,Ys=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new zn,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=cn.getTicks.call(this,e);return F(o,function(s){var l=s.value,u=de(aa(this.base,l));return u=l===a[0]&&this._fixMin?ia(u,i[0]):u,u=l===a[1]&&this._fixMax?ia(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var a=Ke(this.base);e=Ke(Math.max(0,e))/a,n=Ke(Math.max(0,n))/a,cn.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Uu.getExtent.call(this);n[0]=aa(e,n[0]),n[1]=aa(e,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=ia(n[0],i[0])),this._fixMax&&(n[1]=ia(n[1],i[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Ke(e[0])/Ke(n),e[1]=Ke(e[1])/Ke(n),Uu.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=bg(a),o=e/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[de(PS(n[0]/i)*i),de(LS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){cn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),li(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),ui(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),aa(this.base,e)},t.type="log",t}(bt),od=Ys.prototype;od.getMinorTicks=cn.getMinorTicks;od.getLabel=cn.getLabel;function ia(r,t){return IS(r,dt(t))}bt.registerClass(Ys);const kS=Ys;var RS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);U(i)?this._modelMinNum=oa(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=oa(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(U(o)?this._modelMaxNum=oa(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=oa(t,o)),a)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=[co(l[0],1),co(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:e-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=vo(s)||vo(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[OS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=ES[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ES={min:"_determinedMin",max:"_determinedMax"},OS={min:"_dataMin",max:"_dataMax"};function sd(r,t,e){var n=r.rawExtentInfo;return n||(n=new RS(r,t,e),r.rawExtentInfo=n,n)}function oa(r,t){return t==null?null:vo(t)?NaN:r.parse(t)}function ld(r,t){var e=r.type,n=sd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=td("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=rd(s),f=NS(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function NS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=gS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Yu(r,t){var e=t,n=ld(r,e),a=n.extent,i=e.get("splitNumber");r instanceof kS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function BS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new MS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bt.getClass(t)||zn)}}function VS(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Gn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):z(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(t):U(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n($s(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function $s(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function FS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Qh?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Gn(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},h=s(c,f),v=o.getTextRect(h),d=zS(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function zS(r,t){var e=t*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new Ee(r.x,r.y,i,o);return s}function Zs(r){var t=r.get("interval");return t==null?"auto":t}function ud(r){return r.type==="category"&&Zs(r.getLabelModel())===0}function fd(r,t){var e={};return w(r.mapDimensionsAll(t),function(n){e[rS(r,n)]=!0}),Ue(e)}function GS(r,t,e){t&&w(fd(t,e),function(n){var a=t.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var WS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),$u=[],HS={registerPreprocessor:Fh,registerProcessor:zh,registerPostInit:L_,registerPostUpdate:P_,registerUpdateLifecycle:Gs,registerAction:ft,registerCoordinateSystem:k_,registerLayout:R_,registerVisual:lr,registerTransform:O_,registerLoading:Gh,registerMap:E_,registerImpl:f_,PRIORITY:C_,ComponentModel:ae,ComponentView:He,SeriesModel:lt,ChartView:ze,registerComponentModel:function(r){ae.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){ze.registerClass(r)},registerSubTypeDefaulter:function(r,t){ae.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){qp(r,t)}};function _t(r){if(O(r)){w(r,function(t){_t(t)});return}ie($u,r)>=0||($u.push(r),U(r)&&(r={install:r}),r.install(HS))}var Tn=le();function US(r){return r.type==="category"?$S(r):XS(r)}function YS(r,t){return r.type==="category"?ZS(r,t):{ticks:F(r.scale.getTicks(),function(e){return e.value})}}function $S(r){var t=r.getLabelModel(),e=cd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function cd(r,t){var e=vd(r,"labels"),n=Zs(t),a=hd(e,n);if(a)return a;var i,o;return U(n)?i=gd(r,n):(o=n==="auto"?KS(r):n,i=pd(r,o)),dd(e,n,{labels:i,labelCategoryInterval:o})}function ZS(r,t){var e=vd(r,"ticks"),n=Zs(t),a=hd(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),U(n))i=gd(r,n,!0);else if(n==="auto"){var s=cd(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=pd(r,o,!0);return dd(e,n,{ticks:i,tickCategoryInterval:o})}function XS(r){var t=r.scale.getTicks(),e=Gn(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function vd(r,t){return Tn(r)[t]||(Tn(r)[t]=[])}function hd(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function dd(r,t,e){return r.push({key:t,value:e}),e}function KS(r){var t=Tn(r).autoInterval;return t!=null?t:Tn(r).autoInterval=r.calculateCategoryInterval()}function qS(r){var t=jS(r),e=Gn(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.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),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,m=us(e({value:l}),t.font,"center","top");d=m.width*1.3,p=m.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var g=h/f,y=v/c;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),S=Tn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function jS(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 pd(r,t,e){var n=Gn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=ud(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(m){var g={value:m};s.push(e?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function gd(r,t,e){var n=r.scale,a=Gn(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Zu=[0,1],QS=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Wc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Xu(n,a.count())),Et(t,Zu,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Xu(n,a.count()));var i=Et(t,n,Zu,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(),n=YS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return JS(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 n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return US(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(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return qS(this)},r}();function Xu(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function JS(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=de(v),d=de(d),c?v>d:v<d}}const ex=QS;var Kr=Math.PI*2,Zt=Vc.CMD,tx=["top","right","bottom","left"];function rx(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function nx(r,t,e,n,a,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(n-a)%Kr<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var h=n;n=Yn(a),a=Yn(h)}else n=Yn(n),a=Yn(a);n>a&&(a+=Kr);var v=Math.atan2(s,o);if(v<0&&(v+=Kr),v>=n&&v<=a||v+Kr>=n&&v+Kr<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,m=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function Va(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,m=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(m-i)*(m-i))}function md(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var je=[];function ax(r,t,e){var n=md(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function ix(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var p=u;switch(d){case Zt.M:i=f[v++],o=f[v++],n=i,a=o;break;case Zt.L:p=Va(n,a,f[v],f[v+1],c,h,je,!0),n=f[v++],a=f[v++];break;case Zt.C:p=Qp(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,je),n=f[v++],a=f[v++];break;case Zt.Q:p=jp(n,a,f[v++],f[v++],f[v],f[v+1],c,h,je),n=f[v++],a=f[v++];break;case Zt.A:var m=f[v++],g=f[v++],y=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*y+m,l=Math.sin(S)*_+g,v<=1&&(i=s,o=l);var C=(c-m)*_/y+m;p=nx(m,g,_,S,S+b,x,C,h,je),n=Math.cos(S+b)*y+m,a=Math.sin(S+b)*_+g;break;case Zt.R:i=n=f[v++],o=a=f[v++];var T=f[v++],A=f[v++];p=md(i,o,T,A,c,h,je);break;case Zt.Z:p=Va(n,a,i,o,c,h,je,!0),n=i,a=o;break}p<u&&(u=p,e.set(je[0],je[1]))}return u}var Je=new ye,te=new ye,ue=new ye,at=new ye,tt=new ye;function Ku(r,t){if(!!r){var e=r.getTextGuideLine(),n=r.getTextContent();if(!!(n&&e)){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||tx,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&is([],f),h=t.get("length2")||0;u&&ue.copy(u);for(var v=0;v<o.length;v++){var d=o[v];rx(d,0,s,Je,at),ye.scaleAndAdd(te,Je,at,h),te.transform(c);var p=r.getBoundingRect(),m=u?u.distance(te):r instanceof ge?ix(te,r.path,ue):ax(te,p,ue);m<l&&(l=m,te.transform(f),ue.transform(f),ue.toArray(i[0]),te.toArray(i[1]),Je.toArray(i[2]))}yd(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Fa=[],Ie=new ye;function yd(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Je.fromArray(r[0]),te.fromArray(r[1]),ue.fromArray(r[2]),ye.sub(at,Je,te),ye.sub(tt,ue,te);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i<a){var o=Va(te.x,te.y,ue.x,ue.y,Je.x,Je.y,Fa,!1);Ie.fromArray(Fa),Ie.scaleAndAdd(tt,o/Math.tan(Math.PI-t));var s=ue.x!==te.x?(Ie.x-te.x)/(ue.x-te.x):(Ie.y-te.y)/(ue.y-te.y);if(isNaN(s))return;s<0?ye.copy(Ie,te):s>1&&ye.copy(Ie,ue),Ie.toArray(r[1])}}}}function ox(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),te.fromArray(r[1]),ue.fromArray(r[2]),ye.sub(at,te,Je),ye.sub(tt,ue,te);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i<o){var s=Va(te.x,te.y,ue.x,ue.y,Je.x,Je.y,Fa,!1);Ie.fromArray(Fa);var l=Math.PI/2,u=Math.acos(tt.dot(t)),f=l+u-e;if(f>=l)ye.copy(Ie,ue);else{Ie.scaleAndAdd(tt,s/Math.tan(Math.PI/2-f));var c=ue.x!==te.x?(Ie.x-te.x)/(ue.x-te.x):(Ie.y-te.y)/(ue.y-te.y);if(isNaN(c))return;c<0?ye.copy(Ie,te):c>1&&ye.copy(Ie,ue)}Ie.toArray(r[1])}}}}function qu(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function sx(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=hl(n[0],n[1]),i=hl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=pi([],n[1],n[0],o/a),l=pi([],n[1],n[2],o/i),u=pi([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function _d(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<Ma.length;l++){var u=Ma[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:se(a.states[u]&&a.states[u].ignore,s);if(v||!se(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new Ln,r.setTextGuideLine(n),!c&&(s||!o)&&qu(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),qu(n,!1,u,f)}}if(n){ee(n.style,e),n.style.fill=null;var p=i.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=p||!1,n.buildPath=sx}}function Sd(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<We.length;n++){var a=We[n];e[a]=r.getModel([a,t])}return e}function xd(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Ta(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function bd(r,t,e,n,a,i){var o=r.length;if(o<2)return;r.sort(function(T,A){return T.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&i&&b(-f/o,0,o);var p=r[0],m=r[o-1],g,y;_(),g<0&&x(-g,.8),y<0&&x(y,.8),_(),S(g,y,1),S(y,g,-1),_(),g<0&&C(-g),y<0&&C(y);function _(){g=p.rect[t]-n,y=a-m.rect[t]-m.rect[e]}function S(T,A,M){if(T<0){var D=Math.min(A,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,A,M){T!==0&&(u=!0);for(var D=A;D<M;D++){var I=r[D],L=I.rect;L[t]+=T,I.label[t]+=T}}function x(T,A){for(var M=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);M.push(P),D+=P}if(!!D){var k=Math.min(Math.abs(T)/D,A);if(T>0)for(var I=0;I<o-1;I++){var V=M[I]*k;b(V,0,I+1)}else for(var I=o-1;I>0;I--){var V=M[I-1]*k;b(-V,I,o)}}}function C(T){var A=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(A>0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function lx(r,t,e,n){return bd(r,"x","width",t,e,n)}function wd(r,t,e,n){return bd(r,"y","height",t,e,n)}function Cd(r){var t=[];r.sort(function(p,m){return m.priority-p.priority});var e=new Ee(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var a=0;a<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=i.obb,h=!1,v=0;v<t.length;v++){var d=t[v];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Ta(d.localRect,d.transform)),c||(c=new Ta(s,l)),c.intersect(d.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function ux(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function fx(r,t){var e=r.label,n=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:ux(n&&n.shape.points)}}var ju=["align","verticalAlign","width","height","fontSize"],Re=new kc,zi=le(),cx=le();function sa(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var la=["x","y","rotation"],vx=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();Ee.applyTransform(f,f,u),u?Re.setLocalTransform(u):(Re.x=Re.y=Re.rotation=Re.originX=Re.originY=0,Re.scaleX=Re.scaleY=1);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Ee.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Re.x,y:Re.y,scaleX:Re.scaleX,scaleY:Re.scaleY,rotation:Re.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");!(U(a)||Ue(a).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=J(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){Ku(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;U(o.layoutOption)?f=o.layoutOption(fx(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=re(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=re(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=zi(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<ju.length;p++){var m=ju[p];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=xd(this._labelList),i=xe(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=xe(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});lx(i,0,e),wd(o,0,n);var s=xe(a,function(l){return l.layoutOption.hideOverlap});Cd(s)},r.prototype.processLabelsOverall=function(){var t=this;w(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=zi(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=J(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),f=o.getVisual("drawType");l.stroke=u[f];var c=s.getModel("labelLine");_d(t,Sd(s),l),Ku(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!xr(t))){var i=zi(n),o=i.oldLayout,s=J(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(ie(h,"select")>=0&&n.attr(i.oldLayoutSelect),ie(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Se(n,u,e,l)}else if(n.attr(u),!kr(n).valueAnimation){var c=se(n.style.opacity,1);n.style.opacity=0,Te(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};sa(v,u,la),sa(v,n.states.select,la)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};sa(d,u,la),sa(d,n.states.emphasis,la)}Rm(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=cx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Se(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Te(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const hx=vx;var Gi=le();function ET(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Gi(e).labelManager;a||(a=Gi(e).labelManager=new hx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Gi(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var dx=function(r){B(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}(ae);const px=dx;var zo=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Le).models[0]},t.type="cartesian2dAxis",t}(ae);St(zo,WS);var Td={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)"]}}},gx=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Td),Xs=K({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}}},Td),mx=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Xs),yx=ee({logBase:10},Xs);const _x={category:gx,value:Xs,time:mx,log:yx};var Sx={value:1,category:1,time:1,log:1};function Qu(r,t,e,n){w(Sx,function(a,i){var o=K(K({},_x[i],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Sn(this),v=h?ri(f):{},d=c.getTheme();K(f,d.get(i+"Axis")),K(f,this.getDefaultOption()),f.type=Ju(f),h&&Dr(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Vo.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.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",Ju)}function Ju(r){return r.type||(r.data?"category":"value")}var xx=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 F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(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 bx=xx;var Go=["x","y"];function ef(r){return r.type==="interval"||r.type==="time"}var wx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Go,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ef(e)||!ef(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=is([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.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,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ee(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Jt(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Jt(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),i=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-a,s=Math.max(n[0],n[1])-i;return new Ee(a,i,o,s)},t}(bx),Cx=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ex);const Tx=Cx;function Wo(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),vn(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-g:g,i.z2=1,i}function tf(r){return r.get("coordinateSystem")==="cartesian2d"}function rf(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Le).models[0];t[n]=i}),t}var Wi=Math.log;function Ax(r,t,e){var n=zn.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=ld(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Wi(r.base);u=[Wi(u[0])/h,Wi(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],m=u[1];if(f&&c)d=(m-p)/o;else if(f)for(m=u[0]+d*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)d=Fi(d),m=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Fi(d),p=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=Fi(d));var y=d*o;m=Math.ceil(u[1]/d)*d,p=de(m-y),p<0&&u[0]>=0?(p=0,m=de(y)):m>0&&u[1]<=0&&(m=0,p=-de(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,m+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,m-d)}var Dx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Go,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ue(o),u=l.length;if(!!u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Fo(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Yu(p,d),Fo(p)&&(s=v))}f.length&&(s||(s=f.pop(),Yu(s.scale,s.model)),w(f,function(m){Ax(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){nf(n,"y",o,i)}),w(n.y,function(o){nf(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Ft(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=FS(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),Mx(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Le).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",Le).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ie(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.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,n){var a=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,w(s.x,function(f,c){w(s.y,function(h,v){var d="x"+c+"y"+v,p=new wx(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(!!Hi(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new Tx(f,BS(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(tf(a)){var i=rf(a),o=i.xAxisModel,s=i.yAxisModel;if(!Hi(o,e)||!Hi(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){w(fd(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return w(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);ie(e,i)<0&&e.push(i),ie(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(!!tf(a)){var i=rf(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Go,r}();function Hi(r,t){return r.getCoordSysModel()===t}function nf(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)af(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&af(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function af(r){return r&&r.type!=="category"&&r.type!=="time"&&VS(r)}function Mx(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const Ix=Dx;var Ot=Math.PI,jt=function(){function r(t,e){this.group=new _e,this.opt=e,this.axisModel=t,ee(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _e({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!of[t]},r.prototype.add=function(t){of[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var a=Hc(e-t),i,o;return Da(a)?(o=n>0?"top":"bottom",i="center"):Da(a-Ot)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ot?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,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}(),of={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Jt(s,s,o),Jt(l,l,o));var f=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});mn(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);z(h)&&(h=[h,h]),(z(v)||oe(v))&&(v=[v,v]);var d=bh(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],m=v[1];w([{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(g,y){if(h[y]!=="none"&&h[y]!=null){var _=nr(h[y],-p/2,-m/2,p,m,f.stroke,!0),S=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=kx(e,n,t,r),i=Ex(e,n,t,r);if(Px(t,i,a),Rx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=xd(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Cd(o)}},axisName:function(r,t,e,n){var a=vn(r.axisName,t.get("name"));if(!!a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,lf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ot/180);var d;lf(i)?h=jt.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=Lx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,y=vn(r.nameTruncateMaxWidth,m.maxWidth,d),_=new be({x:c[0],y:c[1],rotation:h.rotation,silent:jt.isLabelSilent(t),style:Vt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Xa({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=jt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,J(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function Lx(r,t,e,n){var a=Hc(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Da(a-Ot/2)?(o=l?"bottom":"top",i="center"):Da(a-Ot*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ot*1.5&&a>Ot/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Px(r,t,e){if(!ud(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=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],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Ne(i),Ne(u)):sf(i,o)&&(n?(Ne(o),Ne(f)):(Ne(i),Ne(u))),a===!1?(Ne(s),Ne(c)):sf(l,s)&&(a?(Ne(l),Ne(h)):(Ne(s),Ne(c)))}}function Ne(r){r&&(r.ignore=!0)}function sf(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Pc([]);return Fc(a,a,-r.rotation),e.applyTransform(uo([],a,r.getLocalTransform())),n.applyTransform(uo([],a,t.getLocalTransform())),e.intersect(n)}}function lf(r){return r==="middle"||r==="center"}function Ad(r,t,e,n,a){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&&(Jt(o,o,t),Jt(s,s,t));var f=new er({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});mn(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function kx(r,t,e,n){var a=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=Ad(u,t.transform,l,ee(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function Rx(r,t,e,n){var a=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=ee(s.getLineStyle(),ee(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=Ad(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function Ex(r,t,e,n){var a=e.axis,i=vn(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(vn(n.labelRotate,o.get("rotate"))||0)*Ot/180,f=jt.innerTextLayout(n.rotation,u,n.labelDirection),c=e.getCategories&&e.getCategories(!0),h=[],v=jt.isLabelSilent(e),d=e.get("triggerEvent");return w(l,function(p,m){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,S=o;if(c&&c[g]){var b=c[g];H(b)&&b.textStyle&&(S=new Ce(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(g),T=new be({x:C,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Vt(S,{text:y,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:U(x)?x(a.type==="category"?_:a.type==="value"?g+"":g,m):x})});if(T.anid="label_"+g,d){var A=jt.makeAxisEventDataBase(e);A.targetType="axisLabel",A.value=_,A.tickIndex=m,a.type==="category"&&(A.dataIndex=g),J(T).eventData=A}t.add(T),T.updateTransform(),h.push(T),r.add(T),T.decomposeTransform()}),h}}const Dd=jt;function Ox(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Nx(e,r,t),e.seriesInvolved&&Vx(e,r),e}function Nx(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=An(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(w(s.getAxes(),Q(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&w(d.baseAxes,Q(p,v?"cross":!0,h)),v&&w(d.otherAxes,Q(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!m&&!Ho(_))){g==null&&(g=_.get("triggerTooltip")),_=m?Bx(y,c,a,t,m,g):_;var b=_.get("snap"),x=An(y.model),C=g||b||y.type==="category",T=r.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,involveSeries:C,snap:b,useHandle:Ho(_),seriesModels:[],linkGroup:null};u[x]=T,r.seriesInvolved=r.seriesInvolved||C;var A=Fx(i,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[x]=T,M.mapper=i[A].mapper,T.linkGroup=M}}}})}function Bx(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(h){l[h]=X(o.get(h))}),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),a==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ee(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ce(l,e,n))}function Vx(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[An(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function Fx(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Ui(i[n+"AxisId"],e.id)||Ui(i[n+"AxisIndex"],e.componentIndex)||Ui(i[n+"AxisName"],e.name))return a}}function Ui(r,t){return r==="all"||O(r)&&ie(r,t)>=0||r===t}function zx(r){var t=Ks(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ho(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Ks(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[An(r)]}function Gx(r){var t=Ks(r);return t&&t.axisPointerModel}function Ho(r){return!!r.get(["handle","show"])}function An(r){return r.type+"||"+r.id}var uf={},Wx=function(r){B(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,n,a,i){this.axisPointerClass&&zx(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=Gx(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){uf[e]=n},t.getAxisPointerClass=function(e){return e&&uf[e]},t.type="axis",t}(He);const Md=Wx;var Uo=le();function Hx(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var f=s.length,c=Uo(r).splitAreaColors,h=W(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=O(s)?s:[s];for(var d=1;d<u.length;d++){var y=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=m,S=l.y,b=y-_,x=l.height,m=_+b):(_=l.x,S=m,b=l.width,x=y-S,m=S+x);var C=u[d-1].tickValue;C!=null&&h.set(C,v),t.add(new pe({anid:C!=null?"area_"+C:null,shape:{x:_,y:S,width:b,height:x},style:ee({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Uo(r).splitAreaColors=h}}}function Ux(r){Uo(r).splitAreaColors=null}var Yx=["axisLine","axisTickLabel","axisName"],$x=["splitArea","splitLine","minorSplitLine"],Id=function(r){B(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,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _e,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Wo(s,e),u=new Dd(e,N({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Fo(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(Yx,u.add,u),this._axisGroup.add(u.getGroup()),w($x,function(c){e.get([c,"show"])&&Zx[c](this,this._axisGroup,e,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||pv(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){Ux(this)},t.type="cartesianAxis",t}(Md),Zx={splitLine:function(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=O(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,c=a.getTicksCoords({tickModel:i}),h=[],v=[],d=o.getLineStyle(),p=0;p<c.length;p++){var m=a.toGlobalCoord(c[p].coord);u?(h[0]=m,h[1]=l.y,v[0]=m,v[1]=l.y+l.height):(h[0]=l.x,h[1]=m,v[0]=l.x+l.width,v[1]=m);var g=f++%s.length,y=c[p].tickValue,_=new er({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:ee({stroke:s[g]},d),silent:!0});mn(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var a=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(!!u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=a.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var m=new er({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});mn(m.shape,h.lineWidth),t.add(m)}},splitArea:function(r,t,e,n){Hx(r,t,e,n)}},Ld=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(Id),Xx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Ld.type,e}return t.type="yAxis",t}(Id),Kx=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new pe({shape:e.coordinateSystem.getRect(),style:ee({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(He),ff={offset:0};function Pd(r){r.registerComponentView(Kx),r.registerComponentModel(px),r.registerCoordinateSystem("cartesian2d",Ix),Qu(r,"x",zo,ff),Qu(r,"y",zo,ff),r.registerComponentView(Ld),r.registerComponentView(Xx),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Kt=le(),cf=X,Yi=ne,qx=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&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,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new _e,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=Q(vf,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}df(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 n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Ks(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=Kt(t).pointerEl=new Mm[i.type](cf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=Kt(t).labelEl=new be(cf(e.label));t.add(i),hf(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=Kt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=Kt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),hf(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Za(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Jp(u.event)},onmousedown:Yi(this._onHandleDragMove,this,0,0),drift:Yi(this._onHandleDragMove,this),ondragend:Yi(this._onHandleDragEnd,this)}),n.add(a)),df(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,dh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){vf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform($i(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($i(a)),Kt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Lo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function vf(r,t,e,n){kd(Kt(e).lastProp,n)||(Kt(e).lastProp=n,t?Se(e,n,r):(e.stopAnimation(),e.attr(n)))}function kd(r,t){if(H(r)&&H(t)){var e=!0;return w(t,function(n,a){e=e&&kd(r[a],n)}),!!e}else return r===t}function hf(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function df(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const jx=qx;function Qx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function Jx(r,t,e,n,a){var i=e.get("value"),o=Rd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ti(s.get("padding")||0),u=s.getFont(),f=us(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),eb(c,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Vt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function eb(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-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 Rd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:$s(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),z(o)?i=o.replace("{value}",i):U(o)&&(i=o(s))}return i}function Ed(r,t,e){var n=tg();return Fc(n,n,e.rotation),eg(n,n,e.position),xs([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function tb(r,t,e,n,a,i){var o=Dd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),Jx(t,n,a,i,{position:Ed(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function rb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function nb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var ab=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=pf(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Qx(i),v=ib[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Wo(l.model,a);tb(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Wo(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Ed(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=pf(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(jx);function pf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var ib={line:function(r,t,e){var n=rb([t,e[0]],[t,e[1]],gf(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:nb([t-n/2,e[0]],[n,a],gf(r))}}};function gf(r){return r.dim==="x"?0:1}const ob=ab;var sb=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ae);const lb=sb;var pt=le(),ub=w;function Od(r,t,e){if(!fe.node){var n=t.getZr();pt(n).records||(pt(n).records={}),fb(n,t);var a=pt(n).records[r]||(pt(n).records[r]={});a.handler=e}}function fb(r,t){if(pt(r).initialized)return;pt(r).initialized=!0,e("click",Q(mf,"click")),e("mousemove",Q(mf,"mousemove")),e("globalout",vb);function e(n,a){r.on(n,function(i){var o=hb(t);ub(pt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),cb(o.pendings,t)})}}function cb(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function vb(r,t,e){r.handler("leave",null,e)}function mf(r,t,e,n){t.handler(r,e,n)}function hb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Yo(r,t){if(!fe.node){var e=t.getZr(),n=(pt(e).records||{})[r];n&&(pt(e).records[r]=null)}}var db=function(r){B(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,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Od("axisPointer",a,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,n){Yo("axisPointer",n)},t.prototype.dispose=function(e,n){Yo("axisPointer",n)},t.type="axisPointer",t}(He);const pb=db;function Nd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=tr(i,r);if(o==null||o<0||O(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var yf=le();function gb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ne(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){wa(a)&&(a=Nd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=wa(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||wa(a),h={},v={},d={list:[],map:{}},p={showPointer:Q(yb,v),showTooltip:Q(_b,d)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=wb(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&_f(S,T,p,!1,h)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var C=x.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,Sf(S),Sf(g)))),m[g.key]=C}})}),w(m,function(g,y){_f(f[y],g,p,!0,h)}),Sb(v,f,h),xb(d,a,r,o),bb(f,o,e),h}}function _f(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=mb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function mb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),w(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function yb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function _b(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=An(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Sb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xb(r,t,e,n){if(wa(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function bb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=yf(n)[a]||{},o=yf(n)[a]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&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 wb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Sf(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function wa(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Bd(r){Md.registerAxisPointerClass("CartesianAxisPointer",ob),r.registerComponentModel(lb),r.registerComponentView(pb),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=Ox(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gb)}function OT(r){_t(Pd),_t(Bd)}var xf="\0_ec_interaction_mutex";function Cb(r,t,e){var n=Vd(r);n[t]=e}function Tb(r,t,e){var n=Vd(r),a=n[t];a===e&&(n[t]=null)}function Vd(r){return r[xf]||(r[xf]={})}ft({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var Ab={axisPointer:1,tooltip:1,brush:1};function Db(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Ab.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Fd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=gr(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gr(s,[0,o]),a=i=gr(s,[a,i]),n=0}t[0]=gr(t[0],e),t[1]=gr(t[1],e);var l=Zi(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=gr(t[n],f);var c;return c=Zi(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=t[n]+l.sign*a),c=Zi(t,n),i!=null&&c.span>i&&(t[1-n]=t[n]+c.sign*i),t}function Zi(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 gr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,Dn=Math.min,Lr=Math.max,Mb=Math.pow,Ib=1e4,Lb=6,Pb=6,bf="globalPan",kb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Rb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wf={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Eb=0,Ob=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new _e,n._uid="brushController_"+Eb++,w(Wb,function(a,i){this._handlers[i]=ne(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||Cb(n,bf,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=K(X(wf),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Tb(e,bf,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=X(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return K(X(wf),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Cn(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):Gd(o,zd(o,d));qs(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),$o(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(kn);function zd(r,t){var e=ci[t.brushType].createCover(r,t);return e.__brushOption=t,Hd(e,t),r.group.add(e),e}function Gd(r,t){var e=js(t);return e.endCreating&&(e.endCreating(r,t),Hd(t,t.__brushOption)),t}function Wd(r,t){var e=t.__brushOption;js(t).updateCoverShape(r,t,e.range,e)}function Hd(r,t){var e=t.z;e==null&&(e=Ib),r.traverse(function(n){n.z=e,n.z2=e})}function qs(r,t){js(t).updateCommon(r,t),Wd(r,t)}function js(r){return ci[r.__brushOption.brushType]}function Qs(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function Ud(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function $o(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=X(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Nb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Mb(a*a+i*i,.5);return o>Lb}function Yd(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function $d(r,t,e,n){var a=new _e;return a.add(new pe({name:"main",style:Js(e),silent:!0,draggable:!0,cursor:"move",drift:Q(Cf,r,t,a,["n","s","w","e"]),ondragend:Q(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new pe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Q(Cf,r,t,a,i),ondragend:Q(ir,t,{isEnd:!0})}))}),a}function Zd(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Lr(a,Pb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,m=d+a,g=p+a;ht(r,t,"main",o,s,d,p),n.transformable&&(ht(r,t,"w",l,u,i,g),ht(r,t,"e",h,u,i,g),ht(r,t,"n",l,u,m,i),ht(r,t,"s",l,v,m,i),ht(r,t,"nw",l,u,i,i),ht(r,t,"ne",h,u,i,i),ht(r,t,"sw",l,v,i,i),ht(r,t,"se",h,v,i,i))}function Zo(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Js(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Xo(r,i[0]):Vb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Rb[s]+"-resize":null})})}function ht(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(zb(el(r,t,[[n,a],[n+i,a+o]])))}function Js(r){return ee({strokeNoScale:!0},r.brushStyle)}function Xd(r,t,e,n){var a=[Dn(r,e),Dn(t,n)],i=[Lr(r,e),Lr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Bb(r){return Ss(r.group)}function Xo(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=dv(e[t],Bb(r));return n[a]}function Vb(r,t){var e=[Xo(r,t[0]),Xo(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Cf(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Kd(t,a,i);w(n,function(u){var f=kb[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Xd(s[0][0],s[1][0],s[0][1],s[1][1])),qs(t,e),ir(t,{isEnd:!1})}function Fb(r,t,e,n){var a=t.__brushOption.range,i=Kd(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),qs(r,t),ir(r,{isEnd:!1})}function Kd(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function el(r,t,e){var n=Ud(r,t);return n&&n!==ar?n.clipPath(e,r._transform):X(e)}function zb(r){var t=Dn(r[0][0],r[1][0]),e=Dn(r[0][1],r[1][1]),n=Lr(r[0][0],r[1][0]),a=Lr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Gb(r,t,e){if(!(!r._brushType||Hb(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=Qs(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===ar||s.panelId===i.panelId)&&ci[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function Ko(r){var t=r.event;t.preventDefault&&t.preventDefault()}function qo(r,t,e){return r.childOfName("main").contain(t,e)}function qd(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),Nb(r)||a){if(i&&!a){o.brushMode==="single"&&$o(r);var l=X(o);l.brushType=Tf(l.brushType,i),l.panelId=i===ar?null:i.panelId,a=r._creatingCover=zd(r,l),r._covers.push(a)}if(a){var u=ci[Tf(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(el(r,a,r._track)),n&&(Gd(r,a),u.updateCommon(r,a)),Wd(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Qs(r,t,e)&&$o(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Tf(r,t){return r==="auto"?t.defaultBrushType:r}var Wb={mousedown:function(r){if(this._dragging)Af(this,r);else if(!r.target||!r.target.draggable){Ko(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Qs(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(Gb(this,r,n),this._dragging){Ko(r);var a=qd(this,r,n,!1);a&&ir(this,a)}},mouseup:function(r){Af(this,r)}};function Af(r,t){if(r._dragging){Ko(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=qd(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&ir(r,i)}}function Hb(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var ci={lineX:Df(0),lineY:Df(1),rect:{createCover:function(r,t){function e(n){return n}return $d({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Yd(r);return Xd(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Zd(r,t,e,n)},updateCommon:Zo,contain:qo},polygon:{createCover:function(r,t){var e=new _e;return e.add(new Ln({name:"main",style:Js(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ss({name:"main",draggable:!0,drift:Q(Fb,r,t),ondragend:Q(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:el(r,t,e)})},updateCommon:Zo,contain:qo}};function Df(r){return{createCover:function(t,e){return $d({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Yd(t),n=Dn(e[0][r],e[1][r]),a=Lr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=Ud(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),Zd(t,e,l,a)},updateCommon:Zo,contain:qo}}const Ub=Ob;function Yb(r){return r=tl(r),function(t){return gv(t,r)}}function $b(r,t){return r=tl(r),function(e){var n=t!=null?t:e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function Zb(r,t,e){var n=tl(r);return function(a,i){return n.contain(i[0],i[1])&&!Db(a,t,e)}}function tl(r){return Ee.create(r)}var Mf=["x","y","radius","angle","single"],Xb=["cartesian2d","polar","singleAxis"];function Kb(r){var t=r.get("coordinateSystem");return ie(Xb,t)>=0}function Sr(r){return r+"Axis"}function qb(r,t){var e=W(),n=[],a=W();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}var Xi=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}(),jb=function(r){B(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,n,a){var i=If(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=If(e);K(this.option,e,!0),K(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Mf,function(a){var i=this.getReferringComponents(Sr(a),Ng);if(!!i.specified){n=!0;var o=new Xi;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(!!c){var h=new Xi;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Le).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Le).models[0]&&h.add(d.componentIndex)})}}}i&&w(Mf,function(u){if(!!i){var f=a.findComponents({mainType:Sr(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Xi;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Sr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Sr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[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;n||(n=u)}return n},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}(ae);function If(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Qb=jb;var Jb=function(r){B(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}(Qb);const ew=Jb;var tw=function(r){B(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,n,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(He);const rw=tw;var nw=function(r){B(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}(rw);const aw=nw;var _r=w,Lf=mg,iw=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=n}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(Kb(e)){var n=Sr(this._dimName),a=e.getReferringComponents(n,Le).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return X(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;_r(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=a.parse(Et(d,o,e))):(u=!0,p=p==null?e[v]:a.parse(p),d=Et(p,e,o)),l[v]=p,s[v]=d}),Lf(l),Lf(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,m){var g=m?"Span":"ValueSpan";Fd(0,h,d,"all",f["min"+g],f["max"+g]);for(var y=0;y<2;y++)v[y]=Et(h[y],d,p,!0),m&&(v[y]=a.parse(v[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=ow(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;_r(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(!!f.length){if(i==="weakFilter"){var c=u.getStore(),h=F(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,m,g=0;g<f.length;g++){var y=c.get(h[g],v),_=!isNaN(y),S=y<o[0],b=y>o[1];if(_&&!S&&!b)return!0;_&&(m=!0),S&&(d=!0),b&&(p=!0)}return m&&d&&p})}else _r(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});_r(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;_r(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Et(n[0]+o,n,[0,100],!0):i!=null&&(o=Et(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var a=Wc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function ow(r,t,e){var n=[1/0,-1/0];_r(e,function(o){GS(n,o.getData(),t)});var a=r.getAxisModel(),i=sd(a.axis.scale,a,n).calculate();return[i.min,i.max]}const sw=iw;var lw={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Sr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sw(a,i,s,r),e.push(o.__dzAxisProxy))});var n=W();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const uw=lw;function fw(r){r.registerAction("dataZoom",function(t,e){var n=qb(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Pf=!1;function cw(r){Pf||(Pf=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,uw),fw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vw(r){r.registerComponentModel(ew),r.registerComponentView(aw),cw(r)}var Qe=function(){function r(){}return r}(),jd={};function qr(r,t){jd[r]=t}function Qd(r){return jd[r]}var hw=function(r){B(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;w(this.option.feature,function(n,a){var i=Qd(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),K(n,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}(ae);const dw=hw;function pw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ft(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),ty(r,n,i,a)}function Jd(r,t){var e=ti(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new pe({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:n,silent:!0,z2:-1}),r}var gw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,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")||{},f=this._features||(this._features={}),c=[];w(u,function(d,p){c.push(p)}),new Cn(this._featureNames||[],c).add(h).update(h).remove(Q(h,null)).execute(),this._featureNames=c;function h(d,p){var m=c[d],g=c[p],y=u[m],_=new Ce(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(y.title=i.newTitle),m&&!g){if(mw(m))S={onclick:_.option.onclick,featureName:m};else{var b=Qd(m);if(!b)return;S=new b}f[m]=S}else if(S=f[g],!S)return;S.uid=Vn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!m&&g){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,m),_.setIconStatus=function(C,T){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[C]=T,M[C]&&(T==="emphasis"?Tr:Ar)(M[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,m){var g=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;z(_)?(b={},b[m]=_):b=_,z(S)?(x={},x[m]=S):x=S;var C=d.iconPaths={};w(b,function(T,A){var M=Za(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(g.getItemStyle());var D=M.ensureState("emphasis");D.style=y.getItemStyle();var I=new be({style:{text:x[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),Xa({el:M,componentModel:e,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var L=y.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:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?Tr:Ar)(M),o.add(M),M.on("click",ne(p.onclick,p,n,a,A)),C[A]=M})}pw(o,e,a),o.add(Jd(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,m=d.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!U(_)&&p){var S=_.style||(_.style={}),b=us(p,be.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(g.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(g.position=["100%",A],S.align="right"):x-b.width/2<0&&(g.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(He);function mw(r){return r.indexOf("my")===0}const yw=gw;var _w=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=fe.browser;if(U(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,g=new Uint8Array(m);m--;)g[m]=d.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={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 n},t}(Qe);const Sw=_w;var kf="__ec_magicType_stack__",xw=[["line","bar"],["stack"]],bw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={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 n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!Rf[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=Rf[a](h,v,c,i);d&&(ee(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=c.getReferringComponents(y,Le).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(xw,function(c){ie(c,a)>=0&&w(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=K({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Rf={line:function(r,t,e,n){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===kf;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),K({id:t,stack:a?"":kf},n.get(["option","stack"])||{},!0)}};ft({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const ww=bw;var vi=new Array(60).join("-"),Pr=" ";function Cw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.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:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Tw(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Pr)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Pr))}t.push(u.join(`
`))}),t.join(`
`+vi+`
`)}function Aw(r){return F(r,function(t){var e=t.getRawData(),n=[t.name],a=[];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++)a[l]=arguments[l];n.push((s?s+Pr:"")+a.join(Pr))}),n.join(`
`)}).join(`
`+vi+`
`)}function Dw(r){var t=Cw(r);return{value:xe([Tw(t.seriesGroupByCategoryAxis),Aw(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+vi+`
`),meta:t.meta}}function za(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mw(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(Pr)>=0)return!0}var jo=new RegExp("["+Pr+"]+","g");function Iw(r){for(var t=r.split(/\n+/g),e=za(t.shift()).split(jo),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=za(t[i]).split(jo);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Lw(r){for(var t=r.split(/\n+/g),e=za(t.shift()),n=[],a=0;a<t.length;a++){var i=za(t[a]);if(!!i){var o=i.split(jo),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function Pw(r,t){var e=r.split(new RegExp(`
*`+vi+`
*`,"g")),n={series:[]};return w(e,function(a,i){if(Mw(a)){var o=Iw(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Lw(a);n.series.push(o)}}),n}var kw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.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"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),v=Dw(e);if(U(c)){var d=c(n.getOption());z(d)?u.innerHTML=d:zc(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.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"),f.value=v.value,u.appendChild(f)}var m=v.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}dl(_,"click",x),dl(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){x();return}var C;try{U(h)?C=h(u,n.getOption()):C=Pw(f.value,m)}catch(T){throw x(),new Error("Data view format error "+T)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=y,!i.get("readOnly")&&g.appendChild(S),g.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={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 n},t}(Qe);function Rw(r,t){return F(r,function(e,n){var a=t&&t[n];if(H(a)&&!O(a)){var i=H(e)&&!O(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=ee(e,a),o&&delete e.name,e}else return e})}ft({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];w(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(N({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:Rw(n.data,i)})}}),t.mergeOption(ee({series:e},r.newOption))});const Ew=kw;var ep=w,tp=le();function Ow(r,t){var e=rl(r);ep(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Nw(r){var t=rl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return ep(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Bw(r){tp(r).snapshots=null}function Vw(r){return rl(r).length}function rl(r){var t=tp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Fw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Bw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={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 n},t}(Qe);ft({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const zw=Fw;var Gw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Ww=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Ef(e,t);w(Hw,function(o,s){(!n||!n.include||ie(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Ki[n.brushType](0,i,a);n.__rangeOffset={offset:Vf[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=Ki[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Ki[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Vf[n.brushType](i.values,o.offset,Uw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Yb(a),isTargetByCursor:Zb(a,t,n.coordSysModel),getLinearBrushOtherExtent:$b(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&ie(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Ef(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Of.length;l++)if(Of[l](a,o))return o}return!0},r}();function Qo(r){return r[0]>r[1]&&r.reverse(),r}function Ef(r,t){return nn(r,t,{includeMainTypes:Gw})}var Hw={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=W(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(c,h){(ie(e,c.getAxis("x").model)>=0||ie(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Nf.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Nf.geo})})}},Of=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Nf={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ss(r)),t}},Ki={lineX:Q(Bf,0),lineY:Q(Bf,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Qo([a[0],i[0]]),Qo([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Bf(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Qo(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Vf={lineX:Q(Ff,0),lineY:Q(Ff,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 F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Ff(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Uw(r,t){var e=zf(r),n=zf(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function zf(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const rp=Ww;var Jo=w,Yw=kg("toolbox-dataZoom_"),$w=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new Ub(a.getZr()),this._brushController.on("brush",ne(this._onBrush,this)).mount()),Kw(e,n,this,i,a),Xw(e,n)},t.prototype.onclick=function(e,n,a){Zw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new rp(nl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),Ow(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Fd(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];Jo(e,function(a,i){n.push(X(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={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 n},t}(Qe),Zw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Nw(this.ecModel))}};function nl(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 Xw(r,t){r.setIconStatus("back",Vw(t)>1?"emphasis":"normal")}function Kw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new rp(nl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,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)}uy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=nl(n),o=nn(r,i);Jo(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Jo(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Yw+u+c};h[f]=c,a.push(h)}return a});const qw=$w;function NT(r){r.registerComponentModel(dw),r.registerComponentView(yw),qr("saveAsImage",Sw),qr("magicType",ww),qr("dataView",Ew),qr("dataZoom",qw),qr("restore",zw),_t(vw)}var jw=function(r){B(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}(ae);const Qw=jw;function np(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function ap(r){if(!!fe.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var ip=ap(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Jw=ap(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function op(r,t){if(!r)return t;t=Rv(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function e1(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var t1=op(Jw,"transition"),al=op(ip,"transform"),r1="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(fe.transform3dSupported?"will-change:transform;":"");function n1(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function a1(r,t,e){if(!z(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=rr(t);var i=n1(e),o=Math.max(Math.round(a)*1.5,6),s="",l=al+":",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 f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function i1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=fe.transformSupported?","+al+n:",left"+n+",top"+n),t1+":"+a}function Gf(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!fe.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+al+":"+o+";":[["top",0],["left",0],[ip,o]]}function o1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function s1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=vh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(i1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Rv(d),m=r.get(p);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(o1(f)),c!=null&&n.push("padding:"+ti(c).join("px ")+"px"),n.join(";")+";"}function Wf(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&ng(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;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 l1=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,fe.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Wf(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;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=i.handler,f=i.painter.getViewportRoot();rg(f,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){var e=this._container,n=e1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=r1+s1(t,!this._firstShow,this._longHide)+Gf(i[0],i[1],!0)+("border-color:"+rr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(i)&&n.get("trigger")==="item"&&!np(n)&&(s=a1(n,a,i)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",O(t)||(t=[t]);for(var l=0;l<t.length;l++)zc(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 n=this._styleCoord;if(Wf(n,this._zr,this._appendToBody,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=Gf(n[0],n[1]);w(i,function(o){a[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",fe.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ne(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const u1=l1;var f1=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Uf(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,a,i){var o=this;H(t)&&q(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new be({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:vh(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),w(["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(),n=Hf(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var a=this._styleCoord;Uf(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=kt(i.borderWidth||0),s=Hf(i);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ne(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function kt(r){return Math.max(0,r)}function Hf(r){var t=kt(r.shadowBlur||0),e=kt(r.shadowOffsetX||0),n=kt(r.shadowOffsetY||0);return{left:kt(t-e),right:kt(t+e),top:kt(t-n),bottom:kt(t+n)}}function Uf(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const c1=f1;var v1=new pe({shape:{x:-1,y:-1,width:2,height:2}}),h1=function(r){B(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,n){if(!(fe.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=Vg(a.get("renderMode"));this._tooltipContent=i==="richText"?new c1(n):new u1(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(e,n,a){if(!(fe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?dh(this,"_updatePosition",50,"fixRate"):Lo(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");Od("itemTooltip",this._api,ne(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=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(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||fe.node||!a.getDom())){var o=Yf(i,a);this._ticket="";var s=i.dataByCoordSys,l=m1(i,n,a);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 f=v1;f.x=i.x,f.y=i.y,f.update(),J(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},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,n,a,i))return;var c=Nd(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Yf(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=jr([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=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(a){this._lastDataByCoordSys=null;var s,l;tn(a,function(u){if(J(u).dataIndex!=null)return s=u,!0;if(J(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ne(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=jr([n.tooltipOption],i),l=this._renderMode,u=[],f=bn("section",{blocks:[],noHeader:!0}),c=[],h=new Di;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Rd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=bn("section",{header:x,noHeader:!Pn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var A=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=$s(S.axis,{value:b}),D.axisValueLabel=x,D.marker=h.makeTooltipMarker("item",rr(D.color),l);var I=uu(A.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=jr([A],i).get("valueFormatter");C.blocks.push(P?N({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=pu(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?`
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=J(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=jr([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Di;g.marker=y.makeTooltipMarker("item",rr(g.color),v);var _=uu(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?pu(b?N({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,g,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=J(n),o=i.tooltipConfig,s=o.option||{};if(z(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=e.positionDefault,h=jr(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",p=new Di;this._showOrMove(h,function(){var m=X(h.get("formatterParams")||{});this._showTooltipContent(h,v,m,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(z(h)){var m=e.ecModel.get("useUTC"),g=O(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=qa(g.axisValue,v,m)),v=Ev(v,a,!0)}else if(U(h)){var _=ne(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||O(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!O(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),U(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),O(n))a=re(n[0],u),i=re(n[1],f);else if(H(n)){var p=n;p.width=c[0],p.height=c[1];var m=Ft(p,{width:u,height:f});a=m.x,i=m.y,h=null,v=null}else if(z(n)&&l){var g=g1(n,d,c,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=d1(a,i,o,u,f,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=$f(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=$f(v)?c[1]/2:v==="bottom"?c[1]:0),np(e)){var g=p1(a,i,o,u,f);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===m.length,o&&w(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){fe.node||!n.getDom()||(Lo(this,"_updatePosition"),this._tooltipContent.dispose(),Yo("itemTooltip",n))},t.type="tooltip",t}(He);function jr(r,t,e){var n=t.ecModel,a;e?(a=new Ce(e,n,n),a=new Ce(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ce&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(a=new Ce(o,a,n)))}return a}function Yf(r,t){return r.dispatchAction||ne(t.dispatchAction,t)}function d1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function p1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function g1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function $f(r){return r==="center"||r==="middle"}function m1(r,t,e){var n=vs(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=En(t,a,n.get(a),{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 f=J(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const y1=h1;function BT(r){_t(Bd),r.registerComponentModel(Qw),r.registerComponentView(y1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var _1=function(r){B(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}(ae),S1=function(r){B(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,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=se(e.get("textBaseline"),e.get("textVerticalAlign")),f=new be({style:Vt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new be({style:Vt(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);f.silent=!d&&!m,v.silent=!p&&!m,d&&f.on("click",function(){Ul(d,"_"+e.get("target"))}),p&&v.on("click",function(){Ul(p,"_"+e.get("subtarget"))}),J(f).eventData=J(v).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Ft(y,{width:a.getWidth(),height:a.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 S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),g=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new pe({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(He);function VT(r){r.registerComponentModel(_1),r.registerComponentView(S1)}function il(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Mr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push(Mr(r,t,e[o]));return i.join(" ")}}function sp(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!O(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var x1=function(r){B(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=nr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=b1,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(){Tr(this.childAt(0))},t.prototype.downplay=function(){Ar(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Se(h,v,s,n),$a(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Te(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,m,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Bn(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=bh(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof In){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(N({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Nn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(k){return D?e.getName(k):il(e,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),pn(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=J(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Ia(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ia(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return i_(e.getItemVisual(n,"symbolSize"))},t}(_e);function b1(r,t){this.parent.drift(r,t)}const ol=x1;function qi(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Zf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function Xf(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:Bn(t),cursorStyle:t.get("cursor")}}var w1=function(){function r(t){this.group=new _e,this._SymbolCtor=t||ol}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Zf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Xf(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(qi(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!qi(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Se(v,g,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Xf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Zf(n);function a(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(qi(e,o,i,n)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){On(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();const lp=w1;function sl(r,t){return r.type===t}var C1=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"])}},T1=function(r){B(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,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),O(n)&&w(n,function(i,o){z(i)&&(i={type:i}),n[o]=K(i,C1(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(s){var l=s.name;a.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,c=f.getAllNames();e.isSeriesFiltered(s)||(a=a.concat(c)),c.length?n=n.concat(c):u=!0}else u=!0;u&&cs(s)&&n.push(s.name)}),this._availableNames=a;var i=this.get("data")||n,o=F(i,function(s){return(z(s)||oe(s))&&(s={name:s}),new Ce(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;w(i,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;w(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;w(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[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}(ae);const es=T1;var mr=Q,ts=w,ua=_e,A1=function(r){B(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 ua),this.group.add(this._selectorGroup=new ua),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){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,n,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Ft(f,c,h),d=this.layoutInner(e,o,v,i,l,u),p=Ft(ee({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Jd(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=W(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ts(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var m=new ua;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(p)[0];if(!f.get(p))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(g,p,d,v,n,e,_,b,S,c,i);x.on("click",mr(Kf,p,null,i,h)).on("mouseover",mr(rs,g.name,null,i,h)).on("mouseout",mr(ns,g.name,null,i,h)),f.set(p,!0)}else a.eachRawSeries(function(C){if(!f.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),M=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=ag(M.fill);I&&I[3]===0&&(I[3]=.2,M=N(N({},M),{fill:ig(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},M,D,c,i);L.on("click",mr(Kf,null,p,i,h)).on("mouseover",mr(rs,null,p,i,h)).on("mouseout",mr(ns,null,p,i,h)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ts(e,function(u){var f=u.type,c=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nn(c,{normal:h,emphasis:v},{defaultText:u.title}),yo(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=D1(f,i,l,u,v,m,h),b=new ua,x=i.getModel("textStyle");if(U(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(M1({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,A=s,M=o.get("formatter"),D=n;z(M)&&M?D=M.replace("{name}",n!=null?n:""):U(M)&&(D=M(n));var I=i.get("inactiveColor");b.add(new be({style:Vt(x,{text:D,x:T,y:p/2,fill:m?x.getTextColor():I,align:A,verticalAlign:"middle"})}));var L=new pe({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Xa({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(k){k.silent=!0}),L.silent=!c,this.getContentGroup().add(b),yo(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[m]+d:c[p]+=h[m]+d,v[1-p]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+h[m],_[g]=Math.max(f[g],h[g]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(He);function D1(r,t,e,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ts(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Ro(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function M1(r){var t=r.icon||"roundRect",e=nr(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 Kf(r,t,e,n){ns(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),rs(r,t,e,n)}function up(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;n<a&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function rs(r,t,e,n){up(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function ns(r,t,e,n){up(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const fp=A1;function I1(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function Qr(r,t,e){var n={},a=r==="toggleSelected",i;return e.eachComponent("legend",function(o){a&&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();w(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function L1(r){r.registerAction("legendToggleSelect","legendselectchanged",Q(Qr,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Q(Qr,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Q(Qr,"inverseSelect")),r.registerAction("legendSelect","legendselected",Q(Qr,"select")),r.registerAction("legendUnSelect","legendunselected",Q(Qr,"unSelect"))}function cp(r){r.registerComponentModel(es),r.registerComponentView(fp),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,I1),r.registerSubTypeDefaulter("legend",function(){return"plain"}),L1(r)}var P1=function(r){B(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,n,a){var i=ri(e);r.prototype.init.call(this,e,n,a),qf(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),qf(this,this.option,e)},t.type="legend.scroll",t.defaultOption=xv(es.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}(es);function qf(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Dr(t,e,{type:"box",ignoreSize:!!a})}const k1=P1;var jf=_e,ji=["width","height"],Qi=["x","y"],R1=function(r){B(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 jf),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new jf)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=O(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new be({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,m){var g=p+"DataIndex",y=Za(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:ne(u._pageGo,u,g,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=ji[u],c=Qi[u],h=ji[1-u],v=Qi[1-u];o&&Cr("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],g=X(a);o&&(g[f]=a[f]-p[f]-d);var y=this._layoutContentAndController(e,i,g,u,f,h,v,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var _=p[f]+d;m[u]-=_,y[c]-=_}y[f]+=p[f]+d,m[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;Cr(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),Cr("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>a[o],m=[-v.x,-v.y];n||(m[i]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=se(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:g[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new pe({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&Se(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=ji[o],l=Qi[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=S(f[m]),(!_&&y.e>g.s+i||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(f[m]),(!_||!b(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(x){if(x){var C=x.getBoundingRect(),T=C[l]+x[l];return{s:T,e:T+C[s],i:x.__legendDataIndex}}}function b(x,C){return x.e>=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n!=null?n:i},t.type="legend.scroll",t}(fp);const E1=R1;function O1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function N1(r){_t(cp),r.registerComponentModel(k1),r.registerComponentView(E1),O1(r)}function FT(r){_t(cp),_t(N1)}var B1={label:{enabled:!0},decal:{show:!1}},Qf=le(),V1={};function F1(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=X(B1);K(n.label,r.getLocaleModel().get("aria"),!1),K(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=W();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),Qf(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(U(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=$l(h.ecModel,h.name,V1,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},m=Qf(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var g=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=$l(h.ecModel,C,m,g),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var C=b?N(N({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=ee(f.option,u),!!f.get("enabled")){var c=t.getZr().dom;if(f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),m;if(!(h<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),r.eachSeries(function(T,A){if(A<p){var M=void 0,D=T.get("name"),I=D?"withName":"withoutName";M=h>1?f.get(["series","multiple",I]):f.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),V=f.get(["data","separator","end"]),$=[],R=0;R<L.count();R++)if(R<v){var E=L.getName(R),G=L.getValues(R),Y=f.get(["data",E?"withName":"withoutName"]);$.push(o(Y,{name:E,value:G.join(k)}))}M+=$.join(k)+V,_.push(M)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),C=b.get("end");m+=_.join(x)+C,c.setAttribute("aria-label",m)}}}function o(u,f){if(!z(u))return u;var c=u;return w(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function z1(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},w(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function zT(r){r.registerPreprocessor(z1),r.registerVisual(r.PRIORITY.VISUAL.ARIA,F1)}var Jf={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},G1=function(){function r(t){var e=this._condVal=z(t)?new RegExp(t):og(t)?t:null;if(e==null){var n="";q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return z(e)?this._condVal.test(t):oe(e)?this._condVal.test(t+""):!1},r}(),W1=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),H1=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),U1=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),Y1=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),$1=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r}();function ll(r,t){if(r===!0||r===!1){var e=new W1;return e.value=r,e}var n="";return vp(r)||q(n),r.and?ec("and",r,t):r.or?ec("or",r,t):r.not?Z1(r,t):X1(r,t)}function ec(r,t,e){var n=t[r],a="";O(n)||q(a),n.length||q(a);var i=r==="and"?new H1:new U1;return i.children=F(n,function(o){return ll(o,e)}),i.children.length||q(a),i}function Z1(r,t){var e=r.not,n="";vp(e)||q(n);var a=new Y1;return a.child=ll(e,t),a.child||q(n),a}function X1(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=Ue(r),o=r.parser,s=o?eh(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=gt(Jf,u)?Jf[u]:u,c=r[u],h=s?s(c):c,v=Xy(f,h)||f==="reg"&&new G1(h);v||q(e),a.push(v)}}a.length||q(e);var d=new $1;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function vp(r){return H(r)&&!Mn(r)}var K1=function(){function r(t,e){this._cond=ll(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function q1(r,t){return new K1(r,t)}var j1={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=q1(r.config,{valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;gt(s,"dimension")||q(l);var f=t.getDimensionInfo(u);return f||q(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},Q1={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=ce(e);a.length||q(n);var i=[];w(a,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&q(n),h!=="asc"&&h!=="desc"&&q(n),d&&d!=="min"&&d!=="max"){var p="";q(p)}if(h!=="asc"&&h!=="desc"){var m="";q(m)}var g=t.getDimensionInfo(c);g||q(n);var y=v?eh(v):null;v&&!y&&q(n),i.push({dimIdx:g.index,parser:y,comparator:new rh(h,d)})});var o=t.sourceFormat;o!==Pe&&o!==$e&&q(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var m=v.comparator.evaluate(d,p);if(m!==0)return m}return 0}),{data:s}}};function GT(r){r.registerTransform(j1),r.registerTransform(Q1)}var J1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new oh(this),hu(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),hu(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ot},t}(ae),eC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(He);function WT(r){r.registerComponentModel(J1),r.registerComponentView(eC)}var tC=function(r){B(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 si(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new _e,a=nr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=nr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*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),n},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}(lt);const rC=tC;function hp(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=nC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Ir(t,c[0])&&(h=!0,c[0]=v),Ir(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function nC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:oe(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function dp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function aC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function iC(r,t,e,n,a,i,o,s){for(var l=aC(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],m=hp(a,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,C=void 0;switch(S.cmd){case"=":x=S.idx*2,C=S.idx1*2;var T=g[x],A=g[x+1],M=y[C],D=y[C+1];(isNaN(T)||isNaN(A))&&(T=M,A=D),u.push(T,A),f.push(M,D),c.push(e[x],e[x+1]),h.push(n[C],n[C+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=m.dataDimsForPoint,P=a.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);C=I*2,u.push(P[0],P[1]),f.push(y[C],y[C+1]);var k=dp(m,a,t,I);c.push(k[0],k[1]),h.push(n[C],n[C+1]),p.push(t.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(Ze,he){return p[Ze]-p[he]});for(var V=u.length,$=nt(V),R=nt(V),E=nt(V),G=nt(V),Y=[],_=0;_<d.length;_++){var Z=d[_],j=_*2,me=Z*2;$[j]=u[me],$[j+1]=u[me+1],R[j]=f[me],R[j+1]=f[me+1],E[j]=c[me],E[j+1]=c[me+1],G[j]=h[me],G[j+1]=h[me+1],Y[_]=v[Z]}return{current:$,next:R,stackedOnCurrent:E,stackedOnNext:G,status:Y}}var It=Math.min,Lt=Math.max;function Qt(r,t){return isNaN(r)||isNaN(t)}function as(r,t,e,n,a,i,o,s,l){for(var u,f,c,h,v,d,p=e,m=0;m<n;m++){var g=t[p*2],y=t[p*2+1];if(p>=a||p<0)break;if(Qt(g,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,y),c=g,h=y;else{var _=g-u,S=y-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===g&&C===y&&m<n;)m++,b+=i,p+=i,x=t[b*2],C=t[b*2+1],g=t[p*2],y=t[p*2+1],_=g-u,S=y-f;var T=m+1;if(l)for(;Qt(x,C)&&T<n;)T++,b+=i,x=t[b*2],C=t[b*2+1];var A=.5,M=0,D=0,I=void 0,L=void 0;if(T>=n||Qt(x,C))v=g,d=y;else{M=x-u,D=C-f;var P=g-u,k=x-g,V=y-f,$=C-y,R=void 0,E=void 0;if(s==="x"){R=Math.abs(P),E=Math.abs(k);var G=M>0?1:-1;v=g-G*R*o,d=y,I=g+G*E*o,L=y}else if(s==="y"){R=Math.abs(V),E=Math.abs($);var Y=D>0?1:-1;v=g,d=y-Y*R*o,I=g,L=y+Y*E*o}else R=Math.sqrt(P*P+V*V),E=Math.sqrt(k*k+$*$),A=E/(E+R),v=g-M*o*(1-A),d=y-D*o*(1-A),I=g+M*o*A,L=y+D*o*A,I=It(I,Lt(x,g)),L=It(L,Lt(C,y)),I=Lt(I,It(x,g)),L=Lt(L,It(C,y)),M=I-g,D=L-y,v=g-M*R/E,d=y-D*R/E,v=It(v,Lt(u,g)),d=It(d,Lt(f,y)),v=Lt(v,It(u,g)),d=Lt(d,It(f,y)),M=g-v,D=y-d,I=g+M*E/R,L=y+D*E/R}r.bezierCurveTo(c,h,v,d,g,y),c=I,h=L}else r.lineTo(g,y)}u=g,f=y,p+=i}return m}var pp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),oC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Qt(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Qt(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=as(e,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Vc.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],m=i[c++],g=i[c++],y=i[c++];var b=u?pl(s,v,p,g,e,f):pl(l,d,m,y,e,f);if(b>0)for(var x=0;x<b;x++){var C=f[x];if(C<=1&&C>=0){var S=u?gl(l,d,m,y,C):gl(s,v,p,g,C);return u?[e,S]:[S,e]}}s=g,l=y;break}}},t}(ge),sC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(pp),lC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new sC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Qt(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Qt(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=as(e,a,o,s,s,1,n.smooth,l,n.connectNulls);as(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(ge);function gp(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new pe({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=U(a)?function(m){a(m,c)}:null;Te(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return c}function mp(r,t,e){var n=r.getArea(),a=de(n.r0,1),i=de(n.r,1),o=new or({shape:{cx:de(r.cx,1),cy:de(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Te(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function yp(r,t,e,n,a){if(r){if(r.type==="polar")return mp(r,t,e);if(r.type==="cartesian2d")return gp(r,t,e,n,a)}else return null;return null}function tc(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function rc(r){for(var t=1/0,e=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[n,a]]}function nc(r,t){var e=rc(r),n=e[0],a=e[1],i=rc(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function ac(r){return oe(r)?r:r?.5:0}function uC(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),a=nt(n*2),i=0;i<n;i++){var o=dp(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Pt(r,t,e,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&c.push(r[s],r[s+1]);r=c}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var h=(u[i]+f[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function fC(r,t){var e=[],n=r.length,a,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=sg(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function cC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!!i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=fC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,m=h[v-1].coord+d,g=m-p;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new Nc(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function vC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(a&&hC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function hC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(ol.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function dC(r,t){return isNaN(r)||isNaN(t)}function pC(r){for(var t=r.length/2;t>0&&dC(r[t*2-2],r[t*2-1]);t--);return t-1}function ic(r,t){return[r[t*2],r[t*2+1]]}function gC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){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 _p(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<We.length;t++)if(r.get([We[t],"endLabel","show"]))return!0;return!1}function Ji(r,t,e,n){if(sl(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=_p(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=gp(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return mp(t,e,n)}function mC(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var yC=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _e,n=new lp;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,m=this._polygon,g=this._lineGroup,y=e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),b=hp(o,l,S),x=_&&uC(o,l,b),C=e.get("showSymbol"),T=e.get("connectNulls"),A=C&&!h&&vC(e,l,o),M=this._data;M&&M.eachItemGraphicEl(function(he,wt){he.__temp&&(s.remove(he),M.setItemGraphicEl(wt,null))}),C||d.remove(),s.add(g);var D=h?!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=cC(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&D===this._step))C&&d.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(he){return[c[he*2],c[he*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,I),D&&(c=Pt(c,o,D,T),x&&(x=Pt(x,o,D,T))),p=this._newPolyline(c),_?m=this._newPolygon(c,x):m&&(g.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,rr(L)),g.setClipPath(Ji(this,o,!0,e));else{_&&!m?m=this._newPolygon(c,x):m&&!_&&(g.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,rr(L));var P=g.getClipPath();if(P){var k=Ji(this,o,!1,e);Te(P,{shape:k.shape},e)}else g.setClipPath(Ji(this,o,!0,e));C&&d.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(he){return[c[he*2],c[he*2+1]]}}),(!tc(this._stackedOnPoints,x)||!tc(this._points,c))&&(y?this._doUpdateAnimation(l,x,o,a,D,S,T):(D&&(c=Pt(c,o,D,T),x&&(x=Pt(x,o,D,T))),p.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:x})))}var V=e.getModel("emphasis"),$=V.get("focus"),R=V.get("blurScope"),E=V.get("disabled");if(p.useStyle(ee(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),gn(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}J(p).seriesIndex=e.seriesIndex,pn(p,$,R,E);var Y=ac(e.get("smooth")),Z=e.get("smoothMonotone");if(p.setShape({smooth:Y,smoothMonotone:Z,connectNulls:T}),m){var j=l.getCalculationInfo("stackedOnSeries"),me=0;m.useStyle(ee(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(me=ac(j.get("smooth"))),m.setShape({smooth:Y,stackedOnSmooth:me,smoothMonotone:Z,connectNulls:T}),gn(m,e,"areaStyle"),J(m).seriesIndex=e.seriesIndex,pn(m,$,R,E)}var Ze=function(he){i._changePolyState(he)};l.eachItemGraphicEl(function(he){he&&(he.onHoverStateChange=Ze)}),this._polyline.onHoverStateChange=Ze,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),m&&this.packEventData(e,m))},t.prototype.packEventData=function(e,n){J(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=tr(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 f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new ol(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ze.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=tr(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 ze.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Al(this._polyline,e),n&&Al(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new oC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new lC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");U(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=U(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(m);i?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var x=a;i?(g=x.x,y=x.x+x.width,_=v.x):(g=x.y+x.height,y=x.y,_=v.y)}var C=y===g?0:(_-g)/(y-g);l&&(C=1-C);var T=U(c)?c(d):f*C+h,A=p.getSymbolPath(),M=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(_p(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 be({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=pC(l);f>=0&&(Nn(s,Bn(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?sp(o,v):il(o,c)},enableTextSetter:!0},mC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),C=g?"x":"y",T=gC(c,S,C),A=T.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!v){var I=ic(c,A[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=h.getRawValue(A[0]))}else{var I=f.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=jc(a,d,L,P,T.t))}i.lastFrameIndex=A[0]}else{var k=e===1||i.lastFrameIndex>0?A[0]:0,I=ic(c,k);o&&(D=h.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}o&&kr(u).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=iC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(v=Pt(h.current,a,o,l),d=Pt(h.stackedOnCurrent,a,o,l),p=Pt(h.next,a,o,l),m=Pt(h.stackedOnNext,a,o,l)),nc(v,p)>3e3||f&&nc(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Se(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Se(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;T<y.length;T++){var A=y[T].el,M=y[T].ptIdx*2;A.x=C[M],A.y=C[M+1],A.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ze);const _C=yC;function ul(r,t){return{seriesType:r,plan:Fn(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!a){var s=F(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ir(n,s[0])&&(s[0]=u),Ir(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,m=o&&nt(p*l),g=[],y=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,y)}else g[0]=f.get(c,_),g[1]=f.get(h,_),b=a.dataToPoint(g,null,y);o?(m[S++]=b[0],m[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",m)}}}}}}var SC={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},xC=function(r){return Math.round(r.length/2)};function Sp(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;z(i)?d=SC[i]:U(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,xC))}}}}}function HT(r){r.registerChartView(_C),r.registerSeriesModel(rC),r.registerLayout(ul("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Sp("line"))}var xp=function(r){B(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,n){return si(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.dataToPoint(n.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;return a[l]+=o+s/2,a}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}(lt);lt.registerClass(xp);const oc=xp;var bC=function(r){B(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 si(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"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=xv(oc.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}(oc);const wC=bC;var CC=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}(),TC=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(e.moveTo(p*o+a,m*o+i),e.arc(p*u+a,m*u+i,l,-Math.PI+f,f,!h)):e.moveTo(p*s+a,m*s+i),e.arc(a,i,s,f,c,!h),e.arc(g*u+a,y*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(a,i,o,c,f,h)},t}(ge);const sc=TC;function AC(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return fo(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,m=u.endAngle,g=(p+m)/2,y=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),C="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),C="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),C="center",T="bottom";break;case"startAngle":b=f+d*_(p)+fa(p,l+y,!1),x=c+d*S(p)+ca(p,l+y,!1),C="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+fa(p,-l+y,!1),x=c+d*S(p)+ca(p,-l+y,!1),C="left",T="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),C="center",T="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),C="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),C="center",T="top";break;case"endAngle":b=f+d*_(m)+fa(m,l+y,!0),x=c+d*S(m)+ca(m,l+y,!0),C="left",T="middle";break;case"insideEndAngle":b=f+d*_(m)+fa(m,-l+y,!0),x=c+d*S(m)+ca(m,-l+y,!0),C="right",T="middle";break;default:return fo(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=C,n.verticalAlign=T,n}}function DC(r,t,e,n){if(oe(n)){r.setTextConfig({rotation:n});return}else if(O(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.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 f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function fa(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ca(r,t,e){return t*Math.cos(r)*(e?1:-1)}var eo=Math.max,to=Math.min;function MC(r,t){var e=r.getArea&&r.getArea();if(sl(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var IC=function(r){B(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,n,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){On(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,a,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=LC(e,u);v&&this._enableRealtimeSort(v,s,a);var d=e.get("clip",!0)||v,p=MC(u,s);o.removeClipPath();var m=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(D){var I=va[u.type](s,D),L=BC(u,c,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=va[u.type](s,D,I);if(g&&T(D),!(!s.hasValue(D)||!vc[u.type](L))){var P=!1;d&&(P=lc[u.type](p,L));var k=uc[u.type](e,s,D,L,c,h,f.model,!1,m);v&&(k.forceLabelAnimation=!0),hc(k,s,D,I,L,e,c,u.type==="polar"),x?k.attr({shape:L}):v?fc(v,h,k,L,D,c,!1,!1):Te(k,{shape:L},e,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=va[u.type](s,D,L);if(g){var k=void 0;b.length===0?k=T(I):(k=b[I],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&k.setShape("r",_),S[D]=k);var V=va[u.type](s,D),$=wp(c,V,u);Se(k,{shape:$},h,D)}var R=l.getItemGraphicEl(I);if(!s.hasValue(D)||!vc[u.type](P)){o.remove(R);return}var E=!1;if(d&&(E=lc[u.type](p,P),E&&o.remove(R)),R?$a(R):R=uc[u.type](e,s,D,P,c,h,f.model,!!R,m),v&&(R.forceLabelAnimation=!0),C){var G=R.getTextContent();if(G){var Y=kr(G);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else hc(R,s,D,L,P,e,c,u.type==="polar");x?R.attr({shape:P}):v?fc(v,h,R,P,D,c,!0,C):Se(R,{shape:P},e,D,null),s.setItemGraphicEl(D,R),R.ignore=E,o.add(R)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&La(I,e,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new _e);A.removeAll();for(var M=0;M<S.length;++M)A.add(S[M]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),pc(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),pc(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&yp(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(!!n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(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:F(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(!!this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){La(i,e,J(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ze),lc={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=eo(t.x,r.x),s=to(t.x+t.width,a),l=eo(t.y,r.y),u=to(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=to(t.r,r.r),i=eo(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},uc={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new pe({shape:N({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?sc:or,f=new u({shape:n,z2:1});f.name="item";var c=bp(a);if(f.calculateTextPosition=AC(c,{isRoundCap:u===sc}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?0:n.startAngle,d[v]=n[v],(s?Se:Te)(f,{shape:d},i)}return f}};function LC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function fc(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Se:Te)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Se:Te)(e,{shape:u},f,a)}function cc(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var PC=["x","y","width","height"],kC=["cx","cy","r","startAngle","endAngle"],vc={cartesian2d:function(r){return!cc(r,PC)},polar:function(r){return!cc(r,kC)}},va={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),a=e?EC(e,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function RC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function bp(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function hc(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=n.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",c=Bn(n);Nn(r,c,{labelFetcher:i,labelDataIndex:e,defaultText:il(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var h=r.getTextContent();if(s&&h){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,DC(r,v==="outside"?f:v,bp(o),n.get(["label","rotate"]))}km(h,c,i.getRawValue(e),function(p){return sp(t,p)});var d=n.getModel(["emphasis"]);pn(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),gn(r,n),RC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function EC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var OC=function(){function r(){}return r}(),dc=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(ge);function pc(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new dc({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new dc({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(a.getVisual("style")),J(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",gc),c.on("mousemove",gc)),e&&e.push(c)}var gc=Bs(function(r){var t=this,e=NC(t,r.offsetX,r.offsetY);J(t).dataIndex=e>=0?e:null},30,!1);function NC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function wp(r,t,e){if(sl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function BC(r,t,e){var n=r.type==="polar"?or:pe;return new n({shape:wp(t,e,r),silent:!0,z2:0})}const VC=IC;function UT(r){r.registerChartView(VC),r.registerSeriesModel(wC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Q(mS,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yS("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Sp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ha=Math.PI*2,mc=Math.PI/180;function Cp(r,t){return Ft(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Tp(r,t){var e=Cp(r,t),n=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]),O(n)||(n=[n,n]);var i=re(e.width,t.getWidth()),o=re(e.height,t.getHeight()),s=Math.min(i,o),l=re(a[0],s/2),u=re(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else f=re(n[0],i)+e.x,c=re(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function FC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Cp(n,e),s=Tp(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*mc,v=n.get("minAngle")*mc,d=0;a.each(i,function(M){!isNaN(M)&&d++});var p=a.getSum(i),m=Math.PI/(p||d)*2,g=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=ha,x=0,C=h,T=g?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(M,D){var I;if(isNaN(M)){a.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?I=p===0&&_?m:M*m:I=ha/d,I<v?(I=v,b-=v):x+=M;var L=C+T*I;a.setItemLayout(D,{angle:I,startAngle:C,endAngle:L,clockwise:g,cx:l,cy:u,r0:c,r:y?Et(M,S,[c,f]):f}),C=L}),b<ha&&d)if(b<=.001){var A=ha/d;a.each(i,function(M,D){if(!isNaN(M)){var I=a.getItemLayout(D);I.angle=A,I.startAngle=h+T*D*A,I.endAngle=h+T*(D+1)*A}})}else m=b/x,C=h,a.each(i,function(M,D){if(!isNaN(M)){var I=a.getItemLayout(D),L=I.angle===v?v:M*m;I.startAngle=C,I.endAngle=C+T*L,C+=T*L}})})}function zC(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var GC=Math.PI/180;function yc(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var m=p.rB,g=m*m,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-e),b=n+_.len,x=b*b,C=Math.sqrt((1-Math.abs(S*S/g))*x),T=t+(C+_.len2)*a,A=T-_.label.x,M=_.targetTextWidth-A*a;Ap(_,M,!0),_.label.x=T}}function c(p){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>e?g:m,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)<C?Math.sqrt(b*b/(1-x*x/C/C)):C;S.rB=T,S.maxY=b}S.list.push(_)}f(m),f(g)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}wd(r,l,l+o)&&c(r)}function WC(r,t,e,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;ro(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!ro(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,m=void 0;d.labelAlignTo==="edge"?v.x<t?m=p[2][0]-d.labelDistance-o-d.edgeDistance:m=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?m=f-o-d.bleedMargin:m=o+a-c-d.bleedMargin:v.x<t?m=v.x-o-d.bleedMargin:m=o+a-v.x-d.bleedMargin,d.targetTextWidth=m,Ap(d,m)}}yc(u,t,e,n,1,a,i,o,s,c),yc(l,t,e,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!ro(d)&&d.linePoints){var v=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];g?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function Ap(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){var c=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var m=(n.style.margin||0)+2.1;i.height=p.height+m,i.y-=(i.height-c)/2}}}function ro(r){return r.position==="center"}function HC(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*GC,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,A=C.getTextContent(),M=C.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),V=re(I.get("edgeDistance"),u),$=I.get("bleedMargin"),R=D.getModel("labelLine"),E=R.get("length");E=re(E,u);var G=R.get("length2");if(G=re(G,u),Math.abs(T.endAngle-T.startAngle)<o){w(A.states,v),w(M.states,v),A.ignore=M.ignore=!0;return}if(!!d(A)){var Y=(T.startAngle+T.endAngle)/2,Z=Math.cos(Y),j=Math.sin(Y),me,Ze,he,wt;n=T.cx,a=T.cy;var Ct=L==="inside"||L==="inner";if(L==="center")me=T.cx,Ze=T.cy,wt="center";else{var Or=(Ct?(T.r+T.r0)/2*Z:T.r*Z)+n,Nr=(Ct?(T.r+T.r0)/2*j:T.r*j)+a;if(me=Or+Z*3,Ze=Nr+j*3,!Ct){var Wn=Or+Z*(E+l-T.r),Hn=Nr+j*(E+l-T.r),Un=Wn+(Z<0?-1:1)*G,zt=Hn;k==="edge"?me=Z<0?f+V:f+u-V:me=Un+(Z<0?-P:P),Ze=zt,he=[[Or,Nr],[Wn,Hn],[Un,zt]]}wt=Ct?"center":k==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Tt=Math.PI,ct=0,Br=I.get("rotate");if(oe(Br))ct=Br*(Tt/180);else if(L==="center")ct=0;else if(Br==="radial"||Br===!0){var kp=Z<0?-Y+Tt:-Y;ct=kp}else if(Br==="tangential"&&L!=="outside"&&L!=="outer"){var ur=Math.atan2(Z,j);ur<0&&(ur=Tt*2+ur);var Rp=j>0;Rp&&(ur=Tt+ur),ct=ur-Tt}if(i=!!ct,A.x=me,A.y=Ze,A.rotation=ct,A.setStyle({verticalAlign:"middle"}),Ct){A.setStyle({align:wt});var hi=A.states.select;hi&&(hi.x+=A.x,hi.y+=A.y)}else{var Vr=A.getBoundingRect().clone();Vr.applyTransform(A.getComputedTransform());var fl=(A.style.margin||0)+2.1;Vr.y-=fl/2,Vr.height+=fl,e.push({label:A,labelLine:M,position:L,len:E,len2:G,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ye(Z,j),linePoints:he,textAlign:wt,labelDistance:P,labelAlignTo:k,edgeDistance:V,bleedMargin:$,rect:Vr,unconstrainedWidth:Vr.width,labelStyleWidth:A.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&WC(e,n,a,l,u,h,f,c);for(var p=0;p<e.length;p++){var m=e[p],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(w(g.states,v),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(y){var b=m.linePoints;_||!b?(w(y.states,v),y.ignore=!0):(yd(b,m.minTurnAngle),ox(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ye(b[0][0],b[0][1])})}}}function da(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;O(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:F(n,function(i){return co(i,a)})}}var UC=function(r){B(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new be;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=N(da(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Te(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Te(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Te(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Se(o,{shape:{endAngle:f.endAngle}},s,n))}else $a(o),Se(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),gn(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,m=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},da(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:p,y:m,shape:da(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:da(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:p,y:m}),N(_.ensureState("select"),{x:p,y:m}),pn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Nn(i,Bn(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Ln,this.setTextGuideLine(v)),_d(this,Sd(o),{stroke:u,opacity:lg(s.get(["lineStyle","opacity"]),f,1)})}},t}(or),YC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=new or({shape:Tp(e,a)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new UC(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);La(d,e,v)}).execute(),HC(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.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}(ze);const $C=YC;function Dp(r,t,e){t=O(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Xh(n,t).dimensions,i=new Zh(a,r);return i.initData(n,e),i}var ZC=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 n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const XC=ZC;var KC=function(r){B(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 XC(ne(this.getData,this),ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=Dp(this,{coordDimensions:["value"],encodeDefaulter:Q(sy,this)}),n=[];return e.each(e.mapDimension("value"),function(a){n.push(a)}),this.seats=_g(n,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){po(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(lt);const qC=KC;function jC(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(oe(o)&&!isNaN(o)&&o<0)})}}}function YT(r){r.registerChartView($C),r.registerSeriesModel(qC),K0("pie",r.registerAction),r.registerLayout(Q(FC,"pie")),r.registerProcessor(zC("pie")),r.registerProcessor(jC("pie"))}var QC=function(r){B(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,n){return si(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,n,a){return a.point(n.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}(lt);const JC=QC;var Mp=4,eT=function(){function r(){}return r}(),tT=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new eT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Mp,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],v=a[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,a=e.size,i=this._ctx,o=this.softClipShape,s;if(!!i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var v=a[h++],d=a[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}e=this._rect=new Ee(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t}(ge),rT=function(){function r(){this.group=new _e}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;e=new Float32Array(e.buffer,i,a)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.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,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new tT({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=nr(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Mp;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=J(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const nT=rT;var aT=function(r){B(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,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=ul("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new nT:new lp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ze);const iT=aT;function $T(r){_t(Pd),r.registerSeriesModel(JC),r.registerChartView(iT),r.registerLayout(ul("scatter"))}var oT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),m=t.data;if(m&&l){var g=[];w(m,function(S,b){var x;O(S)?(x=S.slice(),S.unshift(b)):O(S.value)?(x=N({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,g.push(x)}),t.data=g}var y=this.defaultValueDimensions,_=[{name:c,type:Bo(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Bo(p),dimsDef:y.slice()}];return Dp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Q(Fv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),sT=["color","borderColor"],lT=function(r){B(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,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){On(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&_c(u,c))return;var h=no(c,f,!0);Te(h,{shape:{points:c.ends}},e,f),ao(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&_c(u,v)){i.remove(h);return}h?(Se(h,{shape:{points:v.ends}},e,f),$a(h)):h=no(v),ao(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),xc(e,this.group);var n=e.get("clip",!0)?yp(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=no(s);ao(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){xc(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ze),uT=function(){function r(){}return r}(),fT=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new uT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(ge);function no(r,t,e){var n=r.ends;return new fT({shape:{points:e?cT(n,r):n},z2:100})}function _c(r,t){for(var e=!0,n=0;n<t.ends.length;n++)if(r.contain(t.ends[n][0],t.ends[n][1])){e=!1;break}return e}function ao(r,t,e,n){var a=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,gn(r,a)}function cT(r,t){return F(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var vT=function(){function r(){}return r}(),Sc=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new vT},t.prototype.buildPath=function(e,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];e.moveTo(o,a[i++]),e.lineTo(o,a[i++])}else i+=3},t}(ge);function xc(r,t,e,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new Sc({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Sc({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s),bc(1,o,r),bc(-1,s,r),n&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function bc(r,t,e,n){var a=e.get(["itemStyle",r>0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),i=e.getModel("itemStyle").getItemStyle(sT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const hT=lT;var Ip=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(lt);St(Ip,oT,!0);const dT=Ip;function pT(r){!r||!O(r.series)||w(r.series,function(t){H(t)&&t.type==="k"&&(t.type="candlestick")})}var gT=["itemStyle","borderColor"],mT=["itemStyle","borderColor0"],yT=["itemStyle","color"],_T=["itemStyle","color0"],ST={seriesType:"candlestick",plan:Fn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?yT:_T)}function n(i,o){return o.get(i>0?gT:mT)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");N(c,f)}}}}}};const xT=ST;var bT={seriesType:"candlestick",plan:Fn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=wT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,m){for(var g,y=m.getStore();(g=p.next())!=null;){var _=y.get(s,g),S=y.get(u,g),b=y.get(f,g),x=y.get(c,g),C=y.get(h,g),T=Math.min(S,b),A=Math.max(S,b),M=k(T,_),D=k(A,_),I=k(x,_),L=k(C,_),P=[];V(P,D,0),V(P,M,1),P.push(R(L),R(D),R(I),R(M)),m.setItemLayout(g,{sign:wc(y,g,S,b,f),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:$(x,C,_)})}function k(E,G){var Y=[];return Y[a]=G,Y[i]=E,isNaN(G)||isNaN(E)?[NaN,NaN]:t.dataToPoint(Y)}function V(E,G,Y){var Z=G.slice(),j=G.slice();Z[a]=ma(Z[a]+n/2,1,!1),j[a]=ma(j[a]-n/2,1,!0),Y?E.push(Z,j):E.push(j,Z)}function $(E,G,Y){var Z=k(E,Y),j=k(G,Y);return Z[a]-=n/2,j[a]-=n/2,{x:Z[0],y:Z[1],width:n,height:j[1]-Z[1]}}function R(E){return E[a]=ma(E[a],1),E}}function d(p,m){for(var g=nt(p.count*4),y=0,_,S=[],b=[],x,C=m.getStore();(x=p.next())!=null;){var T=C.get(s,x),A=C.get(u,x),M=C.get(f,x),D=C.get(c,x),I=C.get(h,x);if(isNaN(T)||isNaN(D)||isNaN(I)){g[y++]=NaN,y+=3;continue}g[y++]=wc(C,x,A,M,f),S[a]=T,S[i]=D,_=t.dataToPoint(S,null,b),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,b),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function wc(r,t,e,n,a){var i;return e>n?i=-1:e<n?i=1:i=t>0?r.get(a,t-1)<=n?1:-1:1,i}function wT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=re(se(r.get("barMaxWidth"),a),a),o=re(se(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?re(s,a):Math.max(Math.min(a/2,i),o)}const CT=bT;function ZT(r){r.registerChartView(hT),r.registerSeriesModel(dT),r.registerPreprocessor(pT),r.registerVisual(xT),r.registerLayout(CT)}function Cc(r){return O(r[0])}function Tc(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!e[a].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[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var TT={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=hg(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function io(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=Ya("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Cc(r)&&(u=r,f=t),Cc(t)&&(u=t,f=r);function c(g,y,_,S,b){var x=g.many,C=g.one;if(x.length===1&&!b){var T=y?x[0]:C,A=y?C:x[0];if(ug(T))c({many:[T],one:A},!0,_,S,!0);else{var M=s?ee({delay:s(_,S)},l):l;fg(T,A,M),i(T,A,T,A,M)}}else for(var D=ee({dividePath:TT[e],individualDelay:s&&function($,R,E,G){return s($+_,S)}},l),I=y?cg(x,C,D):vg(C,x,D),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,V=0;V<k;V++){var M=s?ee({delay:s(V,k)},l):l;i(L[V],P[V],y?x[V]:g.one,y?g.one:x[V],M)}}for(var h=u?u===r:r.length>t.length,v=u?Tc(f,u):Tc(h?t:r,[h?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var m=0,p=0;p<v.length;p++)c(v[p],h,m,d),m+=v[p].many.length}function Xt(r){if(!r)return[];if(O(r)){for(var t=[],e=0;e<r.length;e++)t.push(Xt(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof ge&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var Lp=1e4,AT=le();function DT(r){for(var t=r.dimensions,e=0;e<t.length;e++){var n=r.getDimensionInfo(t[e]);if(n&&n.otherDims.itemGroupId===0)return t[e]}}function Ac(r){var t=[];return w(r,function(e){var n=e.data;if(!(n.count()>Lp))for(var a=n.getIndices(),i=DT(n),o=0;o<a.length;o++)t.push({data:n,dim:e.dim||i,divide:e.divide,dataIndex:o})}),t}function oo(r,t,e){r.traverse(function(n){n instanceof ge&&Te(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function so(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function yr(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function MT(r,t,e){var n=Ya("update",e,t);n&&r.traverse(function(a){if(a instanceof dg){var i=mm(a);i&&a.animateFrom({style:i},n)}})}function IT(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Pp(r,t,e){var n=Ac(r),a=Ac(t);function i(g,y,_,S,b){(_||g)&&y.animateFrom({style:_&&_!==g?N(N({},_.style),g.style):g.style},b)}function o(g){for(var y=0;y<g.length;y++)if(g[y].dim)return g[y].dim}var s=o(n),l=o(a),u=!1;function f(g,y){return function(_){var S=_.data,b=_.dataIndex;if(y)return S.getId(b);var x=S.hostModel&&S.hostModel.get("dataGroupId"),C=g?s||l:l||s,T=C&&S.getDimensionInfo(C),A=T&&T.ordinalMeta;if(T){var M=S.get(T.name,b);return A&&A.categories[M]||M+""}var D=S.getRawDataItem(b);return D&&D.groupId?D.groupId+"":x||S.getId(b)}}var c=IT(n,a),h={};if(!c)for(var v=0;v<a.length;v++){var d=a[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(h[p.id]=!0)}function m(g,y){var _=n[y],S=a[g],b=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),C=S.data.getItemGraphicEl(S.dataIndex);if(x===C){C&&MT(C,S.dataIndex,b);return}x&&h[x.id]||C&&(yr(C),x?(yr(x),so(x),u=!0,io(Xt(x),Xt(C),S.divide,b,g,i)):oo(C,b,g))}new Cn(n,a,f(!0,c),f(!1,c),null,"multiple").update(m).updateManyToOne(function(g,y){var _=a[g],S=_.data,b=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),C=xe(F(y,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==x&&!h[T.id]});x&&(yr(x),C.length?(w(C,function(T){yr(T),so(T)}),u=!0,io(Xt(C),Xt(x),_.divide,b,g,i)):oo(x,b,_.dataIndex))}).updateOneToMany(function(g,y){var _=n[y],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&h[S.id])){var b=xe(F(g,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==S}),x=a[g[0]].data.hostModel;b.length&&(w(b,function(C){return yr(C)}),S?(yr(S),so(S),u=!0,io(Xt(S),Xt(b),_.divide,x,g[0],i)):w(b,function(C){return oo(C,x,g[0])}))}}).updateManyToMany(function(g,y){new Cn(y,g,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){m(g[_],y[S])}).execute()}).execute(),u&&w(t,function(g){var y=g.data,_=y.hostModel,S=_&&e.getViewOfSeriesModel(_),b=Ya("update",_,0);S&&_.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(x){x instanceof ge&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Dc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Mc(r){return O(r)?r.sort().join(","):r}function Rt(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function LT(r,t){var e=W(),n=W(),a=W();return w(r.oldSeries,function(i,o){var s=r.oldData[o],l=Dc(i),u=Mc(l);n.set(u,s),O(l)&&w(l,function(f){a.set(f,{data:s,key:u})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=Dc(i),l=Mc(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{divide:Rt(u),data:u}],newSeries:[{divide:Rt(o),data:o}]});else if(O(s)){var f=[];w(s,function(v){var d=n.get(v);d&&f.push({divide:Rt(d),data:d})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{data:o,divide:Rt(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{data:c.data,divide:Rt(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({data:o,divide:Rt(o)})}}}}),e}function Ic(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function PT(r,t,e,n){var a=[],i=[];w(ce(r.from),function(o){var s=Ic(t.oldSeries,o);s>=0&&a.push({data:t.oldData[s],divide:Rt(t.oldData[s]),dim:o.dimension})}),w(ce(r.to),function(o){var s=Ic(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({data:l,divide:Rt(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Pp(a,i,n)}function XT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(ce(n.seriesTransition),function(a){w(ce(a.to),function(i){for(var o=n.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][xa]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=AT(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)w(ce(i),function(h){PT(h,a,n,e)});else{var o=LT(a,n);w(o.keys(),function(h){var v=o.get(h);Pp(v.oldSeries,v.newSeries,e)})}w(n.updatedSeries,function(h){h[xa]&&(h[xa]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldData=[],f=0;f<s.length;f++){var c=s[f].getData();c.count()<Lp&&(l.push(s[f]),u.push(c))}})}function KT(r){r.registerPainter("canvas",pg)}export{VT as a,BT as b,OT as c,WT as d,GT as e,FT as f,NT as g,zT as h,RT as i,UT as j,HT as k,YT as l,ZT as m,$T as n,ET as o,XT as p,KT as q,_t as u};