mokelay-editor 0.0.3 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/ApiBuilderShell-Bm4OYwge.js +1 -0
- package/assets/ApiBuilderShell-DGgsHv3d.css +1 -0
- package/assets/EditorPanel-CF3kVQ21.css +1 -0
- package/assets/EditorPanel-DU-O-EE-.js +1 -0
- package/assets/MPage-ChS8xsfM.js +1 -0
- package/assets/MPage.vue_vue_type_script_setup_true_lang-D2OXItLi.js +1 -0
- package/assets/PreviewPanel-Dt5b3mBI.js +1 -0
- package/assets/block-advanced-CdUL2rGG.js +1 -0
- package/assets/block-advanced-DfEsE7Tf.css +1 -0
- package/assets/block-chart-BDhOWgsD.css +1 -0
- package/assets/block-chart-C_HzJKhS.js +1 -0
- package/assets/block-datasource-B8nJNjoV.js +1 -0
- package/assets/block-datasource-DIH8wAmJ.css +1 -0
- package/assets/block-editor-selector-DWvvND_N.js +72 -0
- package/assets/block-editor-selector-Da_ew6E9.css +1 -0
- package/assets/block-form-0t-EPu3N.css +1 -0
- package/assets/block-form-C_cJnRtX.js +51 -0
- package/assets/echarts-BN_iJMI5.js +24 -0
- package/assets/{editorjs-hCuh8vdW.js → editorjs-CrGo22NX.js} +10 -10
- package/assets/element-plus-Bo3B6ZwD.js +1 -0
- package/assets/element-plus-Dit-l95b.css +1 -0
- package/assets/index-BJ_rhCtu.js +10 -0
- package/assets/index-D7DgezOc.css +1 -0
- package/assets/vue-vendor-CGusfGYN.js +17 -0
- package/assets/zrender-CyMoNtco.js +29 -0
- package/index.html +19 -6
- package/package.json +1 -1
- package/assets/EditorPanel-C1sfyxYP.js +0 -1
- package/assets/EditorPanel-vQbiWj6F.css +0 -1
- package/assets/MForm-DHyGtILs.css +0 -1
- package/assets/MForm-IOgKE4fR.js +0 -50
- package/assets/MPage-DdQoXp86.css +0 -1
- package/assets/MPage-okwcd_fI.js +0 -1
- package/assets/MPage.vue_vue_type_script_setup_true_lang-BfUuzlf-.js +0 -51
- package/assets/PreviewPanel-BB0_i9aa.js +0 -1
- package/assets/index-CH5-XypS.css +0 -1
- package/assets/index-DKqdRiPk.js +0 -26
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{r as sa,m as Y,i as H,a as F,b as X,c as $,e as C,d as ge,f as ae,g as Vi,h as pt,j as pe,k as $h,l as G,n as K,P as Be,o as Hs,p as Ra,q as Qe,s as j,Z as _n,t as Kh,u as qh,v as jh,w as Ke,x as ve,y as Qh,B as Re,T as Jh,z as Bo,A as jt,C as Cc,D as Tc,E as ed,F as td,G as J,H as rd,I as Oa,J as Fo,K as Dc,S as nr,R as Ac,L as Mc,M as Na,N as _e,O as Qt,Q as Ic,U as Vo,V as nd,W as De,X as ad,Y as Lc,_ as kc,$ as se,a0 as id,a1 as Ee,a2 as Sn,a3 as Pc,a4 as zo,a5 as ne,a6 as Bt,a7 as ke,a8 as de,a9 as zi,aa as Ne,ab as Te,ac as ee,ad as Gi,ae as od,af as Rt,ag as Hi,ah as sd,ai as ld,aj as Ec,ak as ud,al as Ba,am as Us,an as ei,ao as cd,ap as Ui,aq as la,ar as fd,as as Rc,at as Ws,au as ti,av as vd,aw as Ys,ax as Xs,ay as hd,az as dd,aA as Oc,aB as ua,aC as Zs,aD as pd,aE as gd,aF as md,aG as $s,aH as yd,aI as _d,aJ as Sd,aK as xd,aL as bd,aM as wd}from"./zrender-CyMoNtco.js";/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Wi=function(r,e){return Wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},Wi(r,e)};function Z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wi(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ks=1e-4,Nc=20;function Cd(r){return r.replace(/^\s+|\s+$/g,"")}var an=Math.min,Oe=Math.max,rt=Math.abs;function Yi(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[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}var ie=Td;function Td(r,e,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 Xi(r,e,t)}function Xi(r,e,t){return H(r)?Cd(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function we(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Nc),r=(+r).toFixed(e),t?r:+r}function vt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Dd(r)}function Dd(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Ad(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(rt(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Md(r,e){var t=sa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=Y(r,function(v){return(isNaN(v)?0:v)/t*n*100}),i=n*100,o=Y(a,function(v){return Math.floor(v)}),s=sa(o,function(v,d){return v+d},0),l=Y(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 Y(o,function(v){return v/n})}function Id(r,e){var t=Math.max(vt(r),vt(e)),n=r+e;return t>Nc?n:we(n,t)}function Bc(r){var e=Math.PI*2;return(r%e+e)%e}function ca(r){return r>-Ks&&r<Ks}var Ld=/^(?:(\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 Ar(r){if(r instanceof Date)return r;if(H(r)){var e=Ld.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function kd(r){return Math.pow(10,Go(r))}function Go(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function Fc(r,e){var t=Go(r),n=Math.pow(10,t),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function fa(r){var e=parseFloat(r);return e==r&&(e!==0||!H(r)||r.indexOf("x")<=0)?e:NaN}function Pd(r){return!isNaN(fa(r))}function Vc(){return Math.round(Math.random()*9)}function zc(r,e){return e===0?r:zc(e,r%e)}function qs(r,e){return r==null?e:e==null?r:r*e/zc(r,e)}var Ed="[ECharts] ",Rd=typeof console<"u"&&console.warn&&console.log;function Od(r,e,t){Rd&&console[r](Ed+e)}function Gc(r,e){Od("error",r)}function Pe(r){throw new Error(r)}function js(r,e,t){return(e-r)*t+r}var Hc="series\0",Nd="\0_ec_\0";function Ie(r){return r instanceof Array?r:r==null?[]:[r]}function Zi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var Qs=["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 xn(r){return X(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function Bd(r){return X(r)&&!(r instanceof Array)}function Fd(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=$();C(e,function(l,u){if(!X(l)){e[u]=null;return}});var s=Vd(r,o,t);return(n||a)&&zd(s,r,o,e),n&&Gd(s,e),n||a?Hd(s,e,a):i&&Ud(s,e),Wd(s),s}function Vd(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||on(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function zd(r,e,t,n){C(n,function(a,i){if(!(!a||a.id==null)){var o=Kr(a.id),s=t.get(o);if(s!=null){var l=r[s];pt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function Gd(r,e){C(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!on(t)&&!on(i)&&Uc("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function Hd(r,e,t){C(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||on(a.existing)||a.existing&&n.id!=null&&!Uc("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function Ud(r,e){C(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Wd(r){var e=$();C(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),C(r,function(t){var n=t.newOption;pt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),C(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(X(i)){if(o.name=i.name!=null?Kr(i.name):a?a.name:Hc+n,a)o.id=Kr(a.id);else if(i.id!=null)o.id=Kr(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function Uc(r,e,t){var n=at(e[r],null),a=at(t[r],null);return n!=null&&a!=null&&n===a}function Kr(r){return at(r,"")}function at(r,e){return r==null?e:H(r)?r:ae(r)||Vi(r)?r+"":e}function Ho(r){var e=r.name;return!!(e&&e.indexOf(Hc))}function on(r){return r&&r.id!=null&&Kr(r.id).indexOf(Nd)===0}function Yd(r,e,t){C(r,function(n){var a=n.newOption;X(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=Xd(e,a,n.existing,t))})}function Xd(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function Jt(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return F(e.dataIndex)?Y(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return F(e.name)?Y(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function oe(){var r="__ec_inner_"+Zd++;return function(e){return e[r]||(e[r]={})}}var Zd=Vc();function ri(r,e,t){var n=Uo(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=bn(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Uo(r,e){var t;if(H(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=$(),i={},o=!1;return C(t,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||e&&e.includeMainTypes&&ge(e.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Ge={useDefault:!0,enableAll:!1,enableNone:!1};function bn(r,e,t,n){n=n||Ge;var a=t.index,i=t.id,o=t.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(e))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s}function Wc(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function $d(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Kd(r){return r==="auto"?pe.domSupported?"html":"richText":r||"html"}function qd(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(ae(n)){var o=js(t||0,n,a);return we(o,i?Math.max(vt(t||0),vt(n)):e)}else{if(H(n))return a<1?t:n;for(var s=[],l=t,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=js(v,d,a);s[c]=we(o,i?Math.max(vt(v),vt(d)):e)}}return s}}var jd=".",zt="___EC__COMPONENT__CONTAINER___",Yc="___EC__EXTENDED_CLASS___";function nt(r){var e={main:"",sub:""};if(r){var t=r.split(jd);e.main=t[0]||"",e.sub=t[1]||""}return e}function Qd(r){pt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Jd(r){return!!(r&&r[Yc])}function Wo(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return ep(n)?a=(function(i){Z(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},$h(a,this)),G(a.prototype,t),a[Yc]=!0,a.extend=this.extend,a.superCall=np,a.superApply=ap,a.superClass=n,a}}function ep(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Xc(r,e){r.extend=e.extend}var tp=Math.round(Math.random()*10);function rp(r){var e=["__\0is_clz",tp++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function np(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function ap(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Fa(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Qd(a),n.prototype.type=a;var i=nt(a);if(!i.sub)e[i.main]=n;else if(i.sub!==zt){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[zt]&&(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=nt(n),i=[],o=e[a.main];return o&&o[zt]?C(o,function(s,l){l!==zt&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=nt(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return C(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=nt(n),i=e[a.main];return i&&i[zt]};function t(n){var a=e[n.main];return(!a||!a[zt])&&(a=e[n.main]={},a[zt]=!0),a}}function sn(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&ge(a,l)>=0||i&&ge(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var ip=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],op=sn(ip),sp=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return op(this,e,t)},r})(),Q=oe(),lp=function(r,e,t,n){if(n){var a=Q(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Q(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},Js=1,el={},Zc=oe(),Yo=oe(),Xo=0,Va=1,za=2,Ye=["emphasis","blur","select"],va=["normal","emphasis","blur","select"],up=10,cp=9,$t="highlight",Jn="downplay",ha="select",$i="unselect",da="toggleSelect",Zo="selectchanged";function lr(r){return r!=null&&r!=="none"}function Ga(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function $c(r){Ga(r,"emphasis",za)}function Kc(r){r.hoverState===za&&Ga(r,"normal",Xo)}function $o(r){Ga(r,"blur",Va)}function qc(r){r.hoverState===Va&&Ga(r,"normal",Xo)}function fp(r){r.selected=!0}function vp(r){r.selected=!1}function tl(r,e,t){e(r,t)}function gt(r,e,t){tl(r,e,t),r.isGroup&&r.traverse(function(n){tl(n,e,t)})}function rl(r,e){switch(e){case"emphasis":r.hoverState=za;break;case"normal":r.hoverState=Xo;break;case"blur":r.hoverState=Va;break;case"select":r.selected=!0}}function hp(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function dp(r,e,t,n){var a=t&&ge(t,"select")>=0,i=!1;if(r instanceof Be){var o=Zc(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(lr(s)||lr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!lr(u.fill)&&lr(s)?(i=!0,n=G({},n),u=G({},u),u.fill=Hs(s)):!lr(u.stroke)&&lr(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=Hs(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??up)}return n}function pp(r,e,t){if(t&&t.z2==null){t=G({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??cp)}return t}function gp(r,e,t){var n=ge(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:hp(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=G({},t),o=G({opacity:n?a:i.opacity*.1},o),t.style=o),t}function ni(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return dp(this,r,e,t);if(r==="blur")return gp(this,r,t);if(r==="select")return pp(this,r,t)}return t}function mp(r){r.stateProxy=ni;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=ni),t&&(t.stateProxy=ni)}function nl(r,e){!ef(r,e)&&!r.__highByOuter&>(r,$c)}function al(r,e){!ef(r,e)&&!r.__highByOuter&>(r,Kc)}function pa(r,e){r.__highByOuter|=1<<(e||0),gt(r,$c)}function ga(r,e){!(r.__highByOuter&=~(1<<(e||0)))&>(r,Kc)}function yp(r){gt(r,$o)}function jc(r){gt(r,qc)}function Qc(r){gt(r,fp)}function Jc(r){gt(r,vp)}function ef(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function tf(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=Yo(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){qc(u)}),s&&t.push(i)),o.isBlured=!1}),C(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Ki(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&jc(h)}}if(r!=null&&!(!e||e==="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(!(t==="series"&&!f||t==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||$o(m)}),Ra(e))i(u.getData(),e);else if(X(e))for(var d=Qe(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),Yo(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 qi(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Yo(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){$o(i)})}}}function _p(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=Jt(a,e);i=(F(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=Q(o);Ki(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Ki(n,f,c,t)}}}function Ko(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(Q(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Sp(r,e,t){var n=Q(r),a=Ko(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&qi(n.componentMainType,n.componentIndex,t),C(i,function(s){return nl(s,e)})):(Ki(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&qi(n.componentMainType,n.componentIndex,t),nl(r,e))}function xp(r,e,t){tf(t);var n=Q(r),a=Ko(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?C(a,function(i){return al(i,e)}):al(r,e)}function bp(r,e,t){if(Ji(e)){var n=e.dataType,a=r.getData(n),i=Jt(a,e);F(i)||(i=[i]),r[e.type===da?"toggleSelect":e.type===ha?"select":"unselect"](i,n)}}function il(r){var e=r.getAllData();C(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?Qc(i):Jc(i)})})}function wp(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();C(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function ji(r,e,t){rf(r,!0),gt(r,mp),Tp(r,e,t)}function Cp(r){rf(r,!1)}function ln(r,e,t,n){n?Cp(r):ji(r,e,t)}function Tp(r,e,t){var n=Q(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var ol=["emphasis","blur","select"],Dp={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ma(r,e,t,n){t=t||"itemStyle";for(var a=0;a<ol.length;a++){var i=ol[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=o[Dp[t]]()}}function rf(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Qi(r){return!!(r&&r.__highDownDispatcher)}function Ap(r){var e=el[r];return e==null&&Js<=32&&(e=el[r]=Js++),e}function Ji(r){var e=r.type;return e===ha||e===$i||e===da}function sl(r){var e=r.type;return e===$t||e===Jn}function Mp(r){var e=Zc(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Ip=oe();function Lp(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=j(n.duration,200),f=j(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),K(c)&&(c=c(t,a)),K(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function qo(r,e,t,n,a,i,o){var s=!1,l;K(a)?(o=i,i=a,a=null):X(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Lp(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,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?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Le(r,e,t,n,a,i){qo("update",r,e,t,n,a,i)}function Ue(r,e,t,n,a,i){qo("enter",r,e,t,n,a,i)}function qr(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function ya(r,e,t,n,a,i){qr(r)||qo("leave",r,e,t,n,a,i)}function ll(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),ya(r,{style:{opacity:0}},e,t,n)}function jr(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||ll(a,e,t,n)}):ll(r,e,t,n)}function jo(r){Ip(r).oldStyle=r.style}var eo={},Mt=["x","y"],Sr=["width","height"];function kp(r){return Be.extend(r)}var Pp=rd;function Ep(r,e){return Pp(r,e)}function Je(r,e){eo[r]=e}function Rp(r){if(eo.hasOwnProperty(r))return eo[r]}function Qo(r,e,t,n){var a=Kh(r,e);return t&&(n==="center"&&(t=af(t,a.getBoundingRect())),of(a,t)),a}function nf(r,e,t){var n=new _n({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(af(e,i))}}});return n}function af(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);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 Op=qh;function of(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function un(r,e){return ed(r,r,{lineWidth:e}),r}function Np(r,e){return td(r,r,e),r}var Bp=jh;function Fp(r,e){for(var t=Cc([]);r&&r!==e;)Tc(t,r.getLocalTransform(),t),r=r.parent;return t}function Jo(r,e,t){return e&&!Ra(e)&&(e=Jh.getLocalTransform(e)),t&&(e=Bo([],e)),jt([],r,e)}function Vp(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:rt(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:rt(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Jo(i,e,t),rt(i[0])>rt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ul(r){return!r.isGroup}function zp(r){return r.shape!=null}function sf(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){ul(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return zp(o)&&(s.shape=J(o.shape)),s}var i=n(r);e.traverse(function(o){if(ul(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Le(o,l,t,Q(o).dataIndex)}}})}function Gp(r,e){return Y(r,function(t){var n=t[0];n=Oe(n,e.x),n=an(n,e.x+e.width);var a=t[1];return a=Oe(a,e.y),a=an(a,e.y+e.height),[n,a]})}function Hp(r,e){var t=Oe(r.x,e.x),n=an(r.x+r.width,e.x+e.width),a=Oe(r.y,e.y),i=an(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function es(r,e,t){var n=G({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),ve(a,t),new _n(n)):Qo(r.replace("path://",""),n,t,"center")}function Up(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(lf(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function lf(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=ai(f,c,l,u);if(Wp(h))return!1;var v=r-a,d=e-i,p=ai(v,d,l,u)/h;if(p<0||p>1)return!1;var m=ai(v,d,f,c)/h;return!(m<0||m>1)}function ai(r,e,t,n){return r*n-t*e}function Wp(r){return r<=1e-6&&r>=-1e-6}function _a(r,e,t,n,a){return e==null||(ae(e)?re[0]=re[1]=re[2]=re[3]=e:(re[0]=e[0],re[1]=e[1],re[2]=e[2],re[3]=e[3]),n&&(re[0]=Oe(0,re[0]),re[1]=Oe(0,re[1]),re[2]=Oe(0,re[2]),re[3]=Oe(0,re[3])),t&&(re[0]=-re[0],re[1]=-re[1],re[2]=-re[2],re[3]=-re[3]),cl(r,re,"x","width",3,1,a&&a[0]||0),cl(r,re,"y","height",0,2,a&&a[1]||0)),r}var re=[0,0,0,0];function cl(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=Oe(0,an(o,l)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:rt(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function Ha(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=H(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(Qe(l),function(f){Ke(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:ve({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function to(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Ua(r,e){if(r)if(F(r))for(var t=0;t<r.length;t++)to(r[t],e);else to(r,e)}function ts(r){return!r||rt(r[1])<Ln&&rt(r[2])<Ln||rt(r[0])<Ln&&rt(r[3])<Ln}var Ln=1e-5;function cn(r,e){return r?Re.copy(r,e):e.clone()}function rs(r,e){return e?Qh(r||Oa(),e):void 0}function uf(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function Yp(r){var e=-1/0,t=1/0;to(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function cf(r,e,t){ff(r,e,t,-1/0)}function ff(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=Oe(ff(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=Oe(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}Je("circle",Fo);Je("ellipse",Dc);Je("sector",nr);Je("ring",Ac);Je("polygon",Mc);Je("polyline",Na);Je("rect",_e);Je("line",Qt);Je("bezierCurve",Ic);Je("arc",Vo);const Xp=Object.freeze(Object.defineProperty({__proto__:null,Arc:Vo,BezierCurve:Ic,BoundingRect:Re,Circle:Fo,CompoundPath:nd,Ellipse:Dc,Group:De,Image:_n,IncrementalDisplayable:ad,Line:Qt,LinearGradient:Lc,OrientedBoundingRect:kc,Path:Be,Point:se,Polygon:Mc,Polyline:Na,RadialGradient:id,Rect:_e,Ring:Ac,Sector:nr,Text:Ee,WH:Sr,XY:Mt,applyTransform:Jo,calcZ2Range:Yp,clipPointsByRect:Gp,clipRectByRect:Hp,createIcon:es,ensureCopyRect:cn,ensureCopyTransform:rs,expandOrShrinkRect:_a,extendPath:Ep,extendShape:kp,getShapeClass:Rp,getTransform:Fp,groupTransition:sf,initProps:Ue,isBoundingRectAxisAligned:ts,isElementRemoved:qr,lineLineIntersect:lf,linePolygonIntersect:Up,makeImage:nf,makePath:Qo,mergePath:Op,registerShape:Je,removeElement:ya,removeElementWithFadeOut:jr,resizePath:of,retrieveZInfo:uf,setTooltipConfig:Ha,subPixelOptimize:Bp,subPixelOptimizeLine:un,subPixelOptimizeRect:Np,transformDirection:Vp,traverseElements:Ua,traverseUpdateZ:cf,updateProps:Le},Symbol.toStringTag,{value:"Module"}));var Wa={};function Zp(r,e){for(var t=0;t<Ye.length;t++){var n=Ye[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function fl(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ye.length;u++){var f=Ye[u],c=e[f];l[f]=j(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function wn(r,e,t,n){t=t||Wa;for(var a=r instanceof Ee,i=!1,o=0;o<va.length;o++){var s=e[va[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Ee,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=fl(t,e),f=e.normal,c=!!f.getShallow("show"),h=xr(f,n&&n.normal,t,!1,!a);h.text=u.normal,a||r.setTextConfig(vl(f,t,!1));for(var o=0;o<Ye.length;o++){var v=Ye[o],s=e[v];if(s){var d=l.ensureState(v),p=!!j(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=xr(s,n&&n[v],t,!0,!a),d.style.text=u[v],!a){var m=r.ensureState(v);m.textConfig=vl(s,t,!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(),t.enableTextSetter&&(Ya(l).setLabelText=function(g){var y=fl(t,e,g);Zp(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Cn(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Ye.length;n++){var a=Ye[n];t[a]=r.getModel([a,e])}return t}function xr(r,e,t,n,a){var i={};return $p(i,r,t,n,a),e&&G(i,e),i}function vl(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=j(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.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"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function $p(r,e,t,n,a){t=t||Wa;var i=e.ecModel,o=i&&i.option.textStyle,s=Kp(e),l;if(s){l={};var u="richInheritPlainLabel",f=j(e.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);gl(l[c]={},h,o,e,f,t,n,a,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,m=e.get("minMargin");if(m!=null)m=ae(m)?m/2:0,p.margin=[m,m,m,m],p.__marginType=yr.minMargin;else{var g=e.get("textMargin");g!=null&&(p.margin=Pc(g),p.__marginType=yr.textMargin)}gl(r,e,o,null,null,t,n,a,!0,!1)}function Kp(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Wa).rich;if(t){e=e||{};for(var n=Qe(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var hl=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dl=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pl=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gl(r,e,t,n,a,i,o,s,l,u){t=!o&&t||Wa;var f=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=j(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||t.color,h=h||t.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=j(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=j(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var m=j(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<hl.length;g++){var y=hl[g],_=a!==!1&&n?zo(e.getShallow(y),n.getShallow(y),t[y]):j(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var g=0;g<dl.length;g++){var y=dl[g],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var g=0;g<pl.length;g++){var y=pl[g],_=e.getShallow(y);_!=null&&(r[y]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function qp(r,e){var t=e&&e.getModel("textStyle");return Sn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ya=oe();function jp(r,e,t,n){if(r){var a=Ya(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}var yr={minMargin:1,textMargin:2},Qp=["textStyle","color"],ii=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],oi=new Ee,Jp=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Qp):null)},r.prototype.getFont=function(){return qp({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ii.length;n++)t[ii[n]]=this.getShallow(ii[n]);return oi.useStyle(t),oi.update(),oi.getBoundingRect()},r})(),vf=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],eg=sn(vf),tg=(function(){function r(){}return r.prototype.getLineStyle=function(e){return eg(this,e)},r})(),hf=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],rg=sn(hf),ng=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return rg(this,e,t)},r})(),le=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){ne(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(J(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!pe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();Wo(le);rp(le);Bt(le,tg);Bt(le,ng);Bt(le,sp);Bt(le,Jp);var ag=Math.round(Math.random()*10);function Xa(r){return[r||"",ag++].join("_")}function ig(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=nt(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=nt(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function og(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(C(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]),C(d.successor,p?g:m)}C(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 t(i){var o={},s=[];return C(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),C(c,function(h){ge(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);ge(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 C(i,function(l){ge(o,l)>=0&&s.push(l)}),s}}function df(r,e){return ne(ne({},r,!0),e,!0)}const sg={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},lg={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Sa="ZH",ns="EN",_r=ns,ea={},as={},pf=pe.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_r).toUpperCase();return r.indexOf(Sa)>-1?Sa:_r})():_r;function gf(r,e){r=r.toUpperCase(),as[r]=new le(e),ea[r]=e}function ug(r){if(H(r)){var e=ea[r.toUpperCase()]||{};return r===Sa||r===ns?J(e):ne(J(e),J(ea[_r]),!1)}else return ne(J(r),J(ea[_r]),!1)}function cg(r){return as[r]}function fg(){return as[_r]}gf(ns,sg);gf(Sa,lg);var vg=null;function xa(){return vg}var is=1e3,os=is*60,Qr=os*60,He=Qr*24,ml=He*365,hg={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ta={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},dg="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",kn="{yyyy}-{MM}-{dd}",yl={year:"{yyyy}",month:"{yyyy}-{MM}",day:kn,hour:kn+" "+ta.hour,minute:kn+" "+ta.minute,second:kn+" "+ta.second,millisecond:dg},Kt=["year","month","day","hour","minute","second","millisecond"],pg=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gg(r){return!H(r)&&!K(r)?mg(r):r}function mg(r){r=r||{};var e={},t=!0;return C(Kt,function(n){t&&(t=r[n]==null)}),C(Kt,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=Kt[s],u=X(i)&&!F(i)?i[l]:i,f=void 0;F(u)?(f=u.slice(),o=f[0]||""):H(u)?(o=u,f=[o]):(o==null?o=ta[n]:hg[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function St(r,e){return r+="","0000".substr(0,e-r.length)+r}function Jr(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 yg(r){return r===Jr(r)}function _g(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Za(r,e,t,n){var a=Ar(r),i=a[mf(t)](),o=a[ss(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[ls(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[us(t)](),c=(f-1)%12+1,h=a[cs(t)](),v=a[fs(t)](),d=a[vs(t)](),p=f>=12?"pm":"am",m=p.toUpperCase(),g=n instanceof le?n:cg(n||pf)||fg(),y=g.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,St(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,St(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,St(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,St(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,St(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,St(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,St(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,St(d,3)).replace(/{S}/g,d+"")}function Sg(r,e,t,n,a){var i=null;if(H(t))i=t;else if(K(t)){var o={time:r.time,level:r.time.level},s=xa();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=ba(r.value,a);i=t[f][f][0]}}return Za(new Date(r.value),i,a,n)}function ba(r,e){var t=Ar(r),n=t[ss(e)]()+1,a=t[ls(e)](),i=t[us(e)](),o=t[cs(e)](),s=t[fs(e)](),l=t[vs(e)](),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 ro(r,e,t){switch(e){case"year":r[yf(t)](0);case"month":r[_f(t)](1);case"day":r[Sf(t)](0);case"hour":r[xf(t)](0);case"minute":r[bf(t)](0);case"second":r[wf(t)](0)}return r}function mf(r){return r?"getUTCFullYear":"getFullYear"}function ss(r){return r?"getUTCMonth":"getMonth"}function ls(r){return r?"getUTCDate":"getDate"}function us(r){return r?"getUTCHours":"getHours"}function cs(r){return r?"getUTCMinutes":"getMinutes"}function fs(r){return r?"getUTCSeconds":"getSeconds"}function vs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xg(r){return r?"setUTCFullYear":"setFullYear"}function yf(r){return r?"setUTCMonth":"setMonth"}function _f(r){return r?"setUTCDate":"setDate"}function Sf(r){return r?"setUTCHours":"setHours"}function xf(r){return r?"setUTCMinutes":"setMinutes"}function bf(r){return r?"setUTCSeconds":"setSeconds"}function wf(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Cf(r){if(!Pd(r))return H(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Tf(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var $a=Pc;function no(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Sn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Ar(r):r;if(isNaN(+l)){if(s)return"-"}else return Za(l,n,t)}if(e==="ordinal")return Vi(r)?a(r):ae(r)&&i(r)?r+"":"-";var u=fa(r);return i(u)?Cf(u):Vi(r)?a(r):typeof r=="boolean"?r+"":"-"}var _l=["a","b","c","d","e","f","g"],si=function(r,e){return"{"+r+(e??"")+"}"};function Df(r,e,t){F(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=_l[i];r=r.replace(si(o),si(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(si(_l[l],s),t?ke(u):u)}return r}function bg(r,e){var t=H(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.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:'+ke(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ke(n)+";"+(e||"")+'"></span>';var o=t.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 er(r,e){return e=e||"transparent",H(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}var ra={},li={},hs=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(ra),this._normalMasterList=n(li);function n(a,i){var o=[];return C(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){C(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){ra[e]=t;return}li[e]=t},r.get=function(e){return li[e]||ra[e]},r})();function wg(r){return!!ra[r]}var ao={coord:1,coord2:2};function Cg(r){Af.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var Af=$();function Tg(r){var e=r.getShallow("coord",!0),t=ao.coord;if(e==null){var n=Af.get(r.type);n&&n.getCoord2&&(t=ao.coord2,e=n.getCoord2(r))}return{coord:e,from:t}}var ft={none:0,dataCoordSys:1,boxCoordSys:2};function Dg(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=ft.none;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=ft.dataCoordSys,i||(a=ft.none)):n==="box"&&(a=ft.boxCoordSys,!i&&!wg(t)&&(a=ft.none))}return{coordSysType:t,kind:a}}function Ag(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys,i=Dg(e),o=i.kind,s=i.coordSysType;if(a&&o!==ft.dataCoordSys&&(o=ft.dataCoordSys,s=t),o===ft.none||s!==t)return!1;var l=n(t,e);return l?(o===ft.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var na=C,Mg=["left","right","top","bottom","width","height"],Pn=[["width","left","right"],["height","top","bottom"]];function ds(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.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+t,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+t,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+t:o=d+t)})}var en=ds;de(ds,"vertical");de(ds,"horizontal");function Ig(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function Lg(r,e){var t=ps(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===Wr.point)i=t.refPoint,a=tr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=F(o)?o:[o,o];a=tr(n,t.refContainer),i=t.boxCoordFrom===ao.coord2?t.refPoint:[ie(s[0],a.width)+a.x,ie(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function kg(r,e){var t=Lg(r,e),n=t.viewRect,a=t.center,i=r.get("radius");F(i)||(i=[0,i]);var o=ie(n.width,e.getWidth()),s=ie(n.height,e.getHeight()),l=Math.min(o,s),u=ie(i[0],l/2),f=ie(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function tr(r,e,t){t=$a(t||0);var n=e.width,a=e.height,i=ie(r.left,n),o=ie(r.top,a),s=ie(r.right,n),l=ie(r.bottom,a),u=ie(r.width,n),f=ie(r.height,a),c=t[2]+t[0],h=t[1]+t[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-t[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[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 Re((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}var Wr={rect:1,point:2};function ps(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=Tg(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Wr.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Wr.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=Wr.rect),i===Wr.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function fn(r){var e=r.layoutMode||r.constructor.layoutMode;return X(e)?e:e?{type:e}:null}function Ot(r,e,t){var n=t&&t.ignoreSize;!F(n)&&(n=[n,n]);var a=o(Pn[0],0),i=o(Pn[1],1);l(Pn[0],r,a),l(Pn[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(na(u,function(y){v[y]=r[y]}),na(u,function(y){Ke(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Ke(c,g)&&Ke(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){na(u,function(h){f[h]=c[h]})}}function Tn(r){return Pg({},r)}function Pg(r,e){return e&&r&&na(Mg,function(t){Ke(e,t)&&(r[t]=e[t])}),r}var Eg=oe(),te=(function(r){Z(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=Xa("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=fn(this),i=a?Tn(t):{},o=n.getTheme();ne(t,o.get(this.mainType)),ne(t,this.getDefaultOption()),a&&Ot(t,i,a)},e.prototype.mergeOption=function(t,n){ne(this.option,t,!0);var a=fn(this);a&&Ot(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Jd(t))return t.defaultOption;var n=Eg(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ne(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return bn(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return Ig(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(le);Xc(te,le);Fa(te);ig(te);og(te,Rg);function Rg(r){var e=[];return C(te.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=Y(e,function(t){return nt(t).main}),r!=="dataset"&&ge(e,"dataset")<=0&&e.unshift("dataset"),e}var W={color:{},darkColor:{},size:{}},ce=W.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};G(ce,{primary:ce.neutral80,secondary:ce.neutral70,tertiary:ce.neutral60,quaternary:ce.neutral50,disabled:ce.neutral20,border:ce.neutral30,borderTint:ce.neutral20,borderShade:ce.neutral40,background:ce.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ce.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ce.neutral70,axisLineTint:ce.neutral40,axisTick:ce.neutral70,axisTickMinor:ce.neutral60,axisLabel:ce.neutral70,axisSplitLine:ce.neutral15,axisMinorSplitLine:ce.neutral05});for(var Gt in ce)if(ce.hasOwnProperty(Gt)){var Sl=ce[Gt];Gt==="theme"?W.darkColor.theme=ce.theme.slice():Gt==="highlight"?W.darkColor.highlight="rgba(255,231,130,0.4)":Gt.indexOf("accent")===0?W.darkColor[Gt]=zi(Sl,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):W.darkColor[Gt]=zi(Sl,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}W.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Mf="";typeof navigator<"u"&&(Mf=navigator.platform||"");var ur="rgba(0, 0, 0, 0.2)",If=W.color.theme[0],Og=zi(If,null,null,.9);const Ng={darkMode:"auto",colorBy:"series",color:W.color.theme,gradientColor:[Og,If],aria:{decal:{decals:[{color:ur,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ur,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ur,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ur,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ur,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ur,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Mf.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 Lf=$(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Fe="original",Ae="arrayRows",Xe="objectRows",et="keyedColumns",Pt="typedArray",kf="unknown",it="column",ar="row",xe={Must:1,Might:2,Not:3},Pf=oe();function Bg(r){Pf(r).datasetMap=$()}function Fg(r,e,t){var n={},a=gs(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=Pf(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),C(r,function(p,m){var g=X(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});C(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 Vg(r,e,t){var n={},a=gs(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Xe||i===et)&&C(o,function(f,c){(X(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=Rf(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var m=p===xe.Not;if(m&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!m&&h[f.n]===xe.Not)&&(f.n=v),g(f)&&h[f.n]!==xe.Not)return f;m||(p===xe.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??l.n;n.itemName=[u],n.seriesName=[u]}return n}function gs(r){var e=r.get("data",!0);if(!e)return bn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ge).models[0]}function zg(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:bn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ge).models}function Ef(r,e){return Rf(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function Rf(r,e,t,n,a,i){var o,s=5;if(Ne(r))return xe.Not;var l,u;if(n){var f=n[i];X(f)?(l=f.name,u=f.type):H(f)&&(l=f)}if(u!=null)return u==="ordinal"?xe.Must:xe.Not;if(e===Ae){var c=r;if(t===ar){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(e===Xe){var p=r;if(!l)return xe.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(e===et){var g=r;if(!l)return xe.Not;var h=g[l];if(!h||Ne(h))return xe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===Fe)for(var y=r,v=0;v<y.length&&v<s;v++){var m=y[v],_=xn(m);if(!F(_))return xe.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=H(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?xe.Might:xe.Not;if(x&&b!=="-")return xe.Must}return xe.Not}var Gg=$();function Hg(r,e,t){var n=Gg.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var xl=oe();oe();var ms=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Ie(this.get("color",!0)),i=this.get("colorLayer",!0);return Wg(this,xl,a,i,e,t,n)},r.prototype.clearColorPalette=function(){Yg(this,xl)},r})();function Ug(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function Wg(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?t:Ug(n,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function Yg(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var En,Pr,bl,wl="\0_ec_inner",Xg=1,ys=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new le(i),this._locale=new le(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=Dl(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,Dl(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=$(),u=n&&n.replaceMergeMainTypeMap;Bg(this),C(t,function(c,h){c!=null&&(te.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?J(c):ne(a[h],c,!0))}),u&&u.each(function(c,h){te.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),f,this);function f(c){var h=Hg(this,c,Ie(t[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Fd(v,h,d);Yd(p,c,te),a[c]=null,i.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;C(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var A=c==="series",D=te.getClass(c,S.keyInfo.subType,!A);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=G({componentIndex:b},S.keyInfo);x=new D(w,this,this,M),G(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,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"&&En(this)}this._seriesIndices||En(this)},e.prototype.getOption=function(){var t=J(this.option);return C(t,function(n,a){if(te.hasClass(a)){for(var i=Ie(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!on(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[wl],t},e.prototype.setTheme=function(t){this._theme=new le(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);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]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],C(Ie(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Cl("id",i,s):o!=null?l=Cl("name",o,s):l=Te(s,function(u){return!!u}),Tl(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):Te(this._componentsMap.get(a),function(u){return!!u});return l(Tl(o,t));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 t.filter?Te(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(K(t)){var o=n,s=t;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=H(t)?i.get(t):X(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=at(t,null);return Te(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Te(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Te(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Pr(this),C(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){C(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Pr(this),C(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return C(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Pr(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Pr(this);var a=[];C(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=$(a)},e.prototype.restoreData=function(t){En(this);var n=this._componentsMap,a=[];n.each(function(i,o){te.hasClass(o)&&a.push(o)}),te.topologicalTravel(a,te.getAllClassMainTypes(),function(i){C(n.get(i),function(o){o&&(i!=="series"||!Zg(o,t))&&o.restoreData()})})},e.internalField=(function(){En=function(t){var n=t._seriesIndices=[];C(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=$(n)},Pr=function(t){},bl=function(t,n){t.option={},t.option[wl]=Xg,t._componentsMap=$({series:[]}),t._componentsCount=$();var a=n.aria;X(a)&&a.enabled==null&&(a.enabled=!0),$g(n,t._theme.option),ne(n,Ng,!1),t._mergeOption(n,null)}})(),e})(le);function Zg(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function $g(r,e){var t=r.color&&!r.colorLayer;C(e,function(n,a){a==="colorLayer"&&t||a==="color"&&r.color||te.hasClass(a)||(typeof n=="object"?r[a]=r[a]?ne(r[a],n,!1):J(n):r[a]==null&&(r[a]=n))})}function Cl(r,e,t){if(F(e)){var n=$();return C(e,function(i){if(i!=null){var o=at(i,null);o!=null&&n.set(i,!0)}}),Te(t,function(i){return i&&n.get(i[r])})}else{var a=at(e,null);return Te(t,function(i){return i&&a!=null&&i[r]===a})}}function Tl(r,e){return e.hasOwnProperty("subType")?Te(r,function(t){return t&&t.subType===e.subType}):r}function Dl(r){var e=$();return r&&C(Ie(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Bt(ys,ms);var Kg=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Of=(function(){function r(e){C(Kg,function(t){this[t]=ee(e[t],e)},this)}return r})(),qg=/^(min|max)?(.+)$/,jg=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(C(Ie(e.series),function(o){o&&o.data&&Ne(o.data)&&Gi(o.data)}),C(Ie(e.dataset),function(o){o&&o.source&&Ne(o.source)&&Gi(o.source)})),e=J(e);var a=this._optionBackup,i=Qg(e,t,!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(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],J(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=J(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=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++)Jg(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!tm(o,this._currentMediaIndices)&&(s=Y(o,function(f){return J(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function Qg(r,e,t){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&&F(u)&&C(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),C(l,function(v){return h(v)}),C(n,function(v){return h(v.option)});function h(v){C(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Jg(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return C(r,function(i,o){var s=o.match(qg);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();em(n[u],i,l)||(a=!1)}}),a}function em(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function tm(r,e){return r.join(",")===e.join(",")}var Ze=C,vn=X,Al=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ui(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=Al.length;t<n;t++){var a=Al[t],i=e.normal,o=e.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?ne(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?ne(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Ce(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,ve(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Yr(r){Ce(r,"itemStyle"),Ce(r,"lineStyle"),Ce(r,"areaStyle"),Ce(r,"label"),Ce(r,"labelLine"),Ce(r,"upperLabel"),Ce(r,"edgeLabel")}function he(r,e){var t=vn(r)&&r[e],n=vn(t)&&t.textStyle;if(n)for(var a=0,i=Qs.length;a<i;a++){var o=Qs[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function ze(r){r&&(Yr(r),he(r,"label"),r.emphasis&&he(r.emphasis,"label"))}function rm(r){if(vn(r)){ui(r),Yr(r),he(r,"label"),he(r,"upperLabel"),he(r,"edgeLabel"),r.emphasis&&(he(r.emphasis,"label"),he(r.emphasis,"upperLabel"),he(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(ui(e),ze(e));var t=r.markLine;t&&(ui(t),ze(t));var n=r.markArea;n&&ze(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!Ne(i))for(var o=0;o<i.length;o++)ze(i[o]);C(r.categories,function(u){Yr(u)})}if(a&&!Ne(a))for(var o=0;o<a.length;o++)ze(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ze(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)F(l[o])?(ze(l[o][0]),ze(l[o][1])):ze(l[o]);r.type==="gauge"?(he(r,"axisLabel"),he(r,"title"),he(r,"detail")):r.type==="treemap"?(Ce(r.breadcrumb,"itemStyle"),C(r.levels,function(u){Yr(u)})):r.type==="tree"&&Yr(r.leaves)}}function lt(r){return F(r)?r:r?[r]:[]}function Ml(r){return(F(r)?r[0]:r)||{}}function nm(r,e){Ze(lt(r.series),function(n){vn(n)&&rm(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ze(t,function(n){Ze(lt(r[n]),function(a){a&&(he(a,"axisLabel"),he(a.axisPointer,"label"))})}),Ze(lt(r.parallel),function(n){var a=n&&n.parallelAxisDefault;he(a,"axisLabel"),he(a&&a.axisPointer,"label")}),Ze(lt(r.calendar),function(n){Ce(n,"itemStyle"),he(n,"dayLabel"),he(n,"monthLabel"),he(n,"yearLabel")}),Ze(lt(r.radar),function(n){he(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)}),Ze(lt(r.geo),function(n){vn(n)&&(ze(n),Ze(lt(n.regions),function(a){ze(a)}))}),Ze(lt(r.timeline),function(n){ze(n),Ce(n,"label"),Ce(n,"itemStyle"),Ce(n,"controlStyle",!0);var a=n.data;F(a)&&C(a,function(i){X(i)&&(Ce(i,"label"),Ce(i,"itemStyle"))})}),Ze(lt(r.toolbox),function(n){Ce(n,"iconStyle"),Ze(n.feature,function(a){Ce(a,"iconStyle")})}),he(Ml(r.axisPointer),"label"),he(Ml(r.tooltip).axisPointer,"label")}function am(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function im(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=t)}function Il(r){r&&C(om,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var om=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sm=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ci=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Er(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<ci.length;t++){var n=ci[t][1],a=ci[t][0];e[n]!=null&&(e[a]=e[n])}}function Ll(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function kl(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function lm(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Nf(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&Nf(r[t].children,e)}function Bf(r,e){nm(r,e),r.series=Ie(r.series),C(r.series,function(t){if(X(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),Ll(t.label);var a=t.data;if(a&&!Ne(a))for(var i=0;i<a.length;i++)Ll(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=am(t,"pointer.color");o!=null&&im(t,"itemStyle.color",o)}else if(n==="bar"){Er(t),Er(t.backgroundStyle),Er(t.emphasis);var a=t.data;if(a&&!Ne(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Er(a[i]),Er(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),kl(t),Nf(t.data,kl)}else n==="graph"||n==="sankey"?lm(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ve(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),Il(t)}}),r.dataRange&&(r.visualMap=r.dataRange),C(sm,function(t){var n=r[t];n&&(F(n)||(n=[n]),C(n,function(a){Il(a)}))})}function um(r){var e=$();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.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:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),C(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),cm(t)}})}function cm(r){C(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,m=t-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=Id(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var Ka=(function(){function r(e){this.data=e.data||(e.sourceFormat===et?{}:[]),this.sourceFormat=e.sourceFormat||kf,this.seriesLayoutBy=e.seriesLayoutBy||it,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&Ef(this,n)===xe.Must&&(a.type="ordinal")}}return r})();function _s(r){return r instanceof Ka}function io(r,e,t){t=t||Vf(r);var n=e.seriesLayoutBy,a=vm(r,t,n,e.sourceHeader,e.dimensions),i=new Ka({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:J(e)});return i}function Ff(r){return new Ka({data:r,sourceFormat:Ne(r)?Pt:Fe})}function fm(r){return new Ka({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:J(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Vf(r){var e=kf;if(Ne(r))e=Pt;else if(F(r)){r.length===0&&(e=Ae);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(F(a)||Ne(a)){e=Ae;break}else if(X(a)){e=Xe;break}}}}else if(X(r)){for(var i in r)if(Ke(r,i)&&Ra(r[i])){e=et;break}}return e}function vm(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:Pl(a),startIndex:o,dimensionsDetectedCount:i};if(e===Ae){var s=r;n==="auto"||n==null?El(function(u){u!=null&&u!=="-"&&(H(u)?o==null&&(o=1):o=0)},t,s,10):o=ae(n)?n:n?1:0,!a&&o===1&&(a=[],El(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===ar?s.length:s[0]?s[0].length:null}else if(e===Xe)a||(a=hm(r));else if(e===et)a||(a=[],C(r,function(u,f){a.push(f)}));else if(e===Fe){var l=xn(r[0]);i=F(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Pl(a),dimensionsDetectedCount:i}}function hm(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Qe(t)}function Pl(r){if(r){var e=$();return Y(r,function(t,n){t=X(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function El(r,e,t,n){if(e===ar)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function zf(r){var e=r.sourceFormat;return e===Xe||e===et}var Ht,Ut,Wt,Yt,Rl,Ol,Gf=(function(){function r(e,t){var n=_s(e)?e:Ff(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Pt&&(this._offset=0,this._dimSize=t,this._data=a),Ol(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;Ol=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Rl[Ss(u,f)];if(G(o,v),u===Pt)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=Hf(u,f);o.getItem=ee(d,null,s,c,h);var p=Uf(u,f);o.count=ee(p,null,s,c,h)}};var t=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};Rl=(e={},e[Ae+"_"+it]={pure:!0,appendData:i},e[Ae+"_"+ar]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xe]={pure:!0,appendData:i},e[et]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Fe]={appendData:i},e[Pt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Rn=function(r){F(r)||Gc("series.data or dataset.source must be an array.")};Ht={},Ht[Ae+"_"+it]=Rn,Ht[Ae+"_"+ar]=Rn,Ht[Xe]=Rn,Ht[et]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&Gc("dimension name must not be null/undefined.")}},Ht[Fe]=Rn;var Nl=function(r,e,t,n){return r[n]},dm=(Ut={},Ut[Ae+"_"+it]=function(r,e,t,n){return r[n+e]},Ut[Ae+"_"+ar]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ut[Xe]=Nl,Ut[et]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},Ut[Fe]=Nl,Ut);function Hf(r,e){var t=dm[Ss(r,e)];return t}var Bl=function(r,e,t){return r.length},pm=(Wt={},Wt[Ae+"_"+it]=function(r,e,t){return Math.max(0,r.length-e)},Wt[Ae+"_"+ar]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Wt[Xe]=Bl,Wt[et]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},Wt[Fe]=Bl,Wt);function Uf(r,e){var t=pm[Ss(r,e)];return t}var fi=function(r,e,t){return r[e]},gm=(Yt={},Yt[Ae]=fi,Yt[Xe]=function(r,e,t){return r[t]},Yt[et]=fi,Yt[Fe]=function(r,e,t){var n=xn(r);return n instanceof Array?n[e]:n},Yt[Pt]=fi,Yt);function Wf(r){var e=gm[r];return e}function Ss(r,e){return r===Ae?r+"_"+e:r}function br(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return Wf(i)(n,o,s)}else{var l=n;return i===Fe&&(l=xn(n)),l}}}}var mm=/\{@(.+?)\}/g,ym=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"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:t,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&F(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(K(i))return l.status=t,l.dimensionIndex=a,i(l);if(H(i)){var f=Df(i,l);return f.replace(mm,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=br(s,e,d);if(o&&F(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return br(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function Fl(r){var e,t;return X(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function tn(r){return new _m(r)}var _m=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.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(e&&e.modBy),u=e&&e.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=e&&e.step;if(t?this._dueEnd=t._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(F(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(e,t,n,a,i){Vl.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Vl.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),F(t)&&!t.length&&(t=null)),this._progress=t,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(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),Vl=(function(){var r,e,t,n,a,i={reset:function(l,u,f,c){e=l,r=u,t=f,n=c,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})();function aa(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ae(r)&&r!=null&&r!=="-"&&(r=+Ar(r)),r==null||r===""?NaN:Number(r))}$({number:function(r){return parseFloat(r)},time:function(r){return+Ar(r)},trim:function(r){return H(r)?Sn(r):r}});var Sm=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=ae(e)?e:fa(e),a=ae(t)?t:fa(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=H(e),l=H(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),xm=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return aa(e,t)},r})();function bm(r,e){var t=new xm,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==it&&Pe(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";Ke(l,g)&&Pe(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=Hf(a,it);e.__isBuiltIn&&(t.getRawDataItem=function(p){return c(n,i,s,p)},t.getRawData=ee(wm,null,r)),t.cloneRawData=ee(Cm,null,r);var h=Uf(a,it);t.count=ee(h,null,n,i,s);var v=Wf(a);t.retrieveValue=function(p,m){var g=c(n,i,s,p);return d(g,m)};var d=t.retrieveValueFromItem=function(p,m){if(p!=null){var g=s[m];if(g)return v(p,m,g.name)}};return t.getDimensionInfo=ee(Tm,null,s,l),t.cloneAllDimensionInfo=ee(Dm,null,s),t}function wm(r){var e=r.sourceFormat;if(!xs(e)){var t="";Pe(t)}return r.data}function Cm(r){var e=r.sourceFormat,t=r.data;if(!xs(e)){var n="";Pe(n)}if(e===Ae){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Xe){for(var a=[],i=0,o=t.length;i<o;i++)a.push(G({},t[i]));return a}}function Tm(r,e,t){if(t!=null){if(ae(t)||!isNaN(t)&&!Ke(e,t))return r[t];if(Ke(e,t))return e[t]}}function Dm(r){return J(r)}var Yf=$();function Am(r){r=J(r);var e=r.type,t="";e||Pe(t);var n=e.split(":");n.length!==2&&Pe(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,Yf.set(e,r)}function Mm(r,e,t){var n=Ie(r),a=n.length,i="";a||Pe(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=Im(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Im(r,e,t,n){var a="";e.length||Pe(a),X(r)||Pe(a);var i=r.type,o=Yf.get(i);o||Pe(a);var s=Y(e,function(u){return bm(u,o)}),l=Ie(o.transform({upstream:s[0],upstreamList:s,config:J(r.config)}));return Y(l,function(u,f){var c="";X(u)||Pe(c),u.data||Pe(c);var h=Vf(u.data);xs(h)||Pe(c);var v,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:it,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:it,sourceHeader:0,dimensions:u.dimensions};return io(u.data,v,null)})}function xs(r){return r===Ae||r===Xe}var qa="undefined",Lm=typeof Uint32Array===qa?Array:Uint32Array,km=typeof Uint16Array===qa?Array:Uint16Array,Xf=typeof Int32Array===qa?Array:Int32Array,zl=typeof Float64Array===qa?Array:Float64Array,Zf={float:zl,int:Xf,ordinal:Array,number:Array,time:zl},vi;function cr(r){return r>65535?Lm:km}function fr(){return[1/0,-1/0]}function Pm(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Gl(r,e,t,n,a){var i=Zf[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var oo=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=vi[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],zf(a),this._dimensions=Y(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new Zf[t||"float"](this._rawCount),this._rawExtent[i]=fr(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=fr());for(var l=i[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=a[u];Gl(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=vi.arrayRows.call(this,e[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(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=fr()),Gl(i,f,c.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;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=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var n=t.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(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=cr(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=cr(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=c[f][d];v=t(p,h)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=h,v=t.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(e){var t=this.clone(),n=t._count;if(!n)return this;var a=Qe(e),i=a.length;if(!i)return this;var o=t.count(),s=cr(t._rawCount),l=new s(o),u=0,f=a[0],c=e[f][0],h=e[f][1],v=t._chunks,d=!1;if(!t._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=e[a[1]][0],b=e[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 w=t.getRawIndex(g),y=v[a[0]][w];(y>=c&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=t.getRawIndex(g),D=0;D<i;D++){var M=a[D],y=v[M][w];(y<e[M][0]||y>e[M][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=fr();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=a[t[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=t[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(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(cr(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,w=Math.min(d+l,o),A=d-1,D=i[u];f=-1,h=x;for(var M=-1,T=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){T++,M<0&&(M=S);continue}c=Math.abs((A-g)*(b-D)-(A-_)*(y-D)),c>f&&(f=c,h=S)}T>0&&T<w-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.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(cr(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var m=0;m<p;m++){var g=this.getRawIndex(f+m),y=o[g];y<h&&(h=y,c=f+m),y>d&&(d=y,v=f+m)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=i._rawExtent[e]=fr(),h=new(cr(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(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=fr();if(!t)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],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=t[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&sa(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?Pm(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=J(this._extent),e._rawExtent=J(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,a,i){return aa(t[i],this._dimensions[i])}vi={arrayRows:e,objectRows:function(t,n,a,i){return aa(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return aa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),Em=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(On(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ne(s)?Pt:Fe,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=j(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=j(c.sourceHeader,h.sourceHeader),p=j(c.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=m?[io(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(t);a=y.sourceList,i=y.upstreamSignList}else{var _=g.get("source",!0);a=[io(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&Hl(i)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&Hl(c),s.push(f),l.push(u._getVersionSign())}),n?o=Mm(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[fm(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,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];On(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new oo,s.initData(new Gf(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(On(e)){var t=gs(e);return t?[t.getSourceManager()]:[]}else return Y(zg(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(On(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function On(r){return r.mainType==="series"}function Hl(r){throw new Error(r)}var Rm="line-height:1";function $f(r){var e=r.lineHeight;return e==null?Rm:"line-height:"+ke(e+"")+"px"}function Kf(r,e){var t=r.color||W.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||W.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ke(n+"")+"px;color:"+ke(t)+";font-weight:"+ke(a+""),valueStyle:"font-size:"+ke(o+"")+"px;color:"+ke(i)+";font-weight:"+ke(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Om=[0,10,20,30],Nm=["",`
|
|
15
|
+
`,`
|
|
16
|
+
|
|
17
|
+
`,`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
`];function hn(r,e){return e.type=r,e}function so(r){return r.type==="section"}function qf(r){return so(r)?Bm:Fm}function jf(r){if(so(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return C(r.blocks,function(a){var i=jf(a);i>=e&&(e=i+ +(n&&(!i||so(a)&&!a.noHeader)))}),e}return 0}function Bm(r,e,t,n){var a=e.noHeader,i=Vm(jf(e)),o=[],s=e.blocks||[];pt(!s||F(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ke(u,l)){var f=new Sm(u[l],null);s.sort(function(p,m){return f.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(p,m){var g=e.valueFormatter,y=qf(p)(g?G(G({},r),{valueFormatter:g}):r,p,m>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):lo(n,o.join(""),a?t:i.html);if(a)return c;var h=no(e.header,"ordinal",r.useUTC),v=Kf(n,r.renderMode).nameStyle,d=$f(n);return r.renderMode==="richText"?Qf(r,h,v)+i.richText+c:lo(n,'<div style="'+v+";"+d+';">'+ke(h)+"</div>"+c,t)}function Fm(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],Y(S,function(b,x){return no(b,F(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||W.color.secondary,a),h=i?"":no(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,m=!s&&i,g=Kf(n,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":c)+(i?"":Qf(r,h,y))+(o?"":Hm(r,d,p,m,_)):lo(n,(s?"":c)+(i?"":zm(h,!s,y))+(o?"":Gm(d,p,m,_)),t)}}function Ul(r,e,t,n,a,i){if(r){var o=qf(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Vm(r){return{html:Om[r],richText:Nm[r]}}function lo(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=$f(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function zm(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+ke(r)+"</span>"}function Gm(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=F(r)?r:[r],'<span style="'+i+";"+n+'">'+Y(r,function(o){return ke(o)}).join(" ")+"</span>"}function Qf(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Hm(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,i)}function Um(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return er(n)}function Jf(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var hi=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Vc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=bg({color:t,type:e,renderMode:n,markerId:a});return H(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};F(t)?C(t,function(i){return G(n,i)}):G(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function Wm(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=F(s),u=Um(e,t),f,c,h,v;if(o>1||l&&!o){var d=Ym(s,e,t,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=br(a,t,i[0]),c=p.type}else v=f=l?s[0]:s;var m=Ho(e),g=m&&e.name||"",y=a.getName(t),_=n?g:y;return hn("section",{header:g,noHeader:n||!m,sortParam:v,blocks:[hn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Sn(_),value:f,valueType:c,dataIndex:t})].concat(h||[])})}function Ym(r,e,t,n,a){var i=e.getData(),o=sa(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?C(n,function(c){f(br(i,t,c),c)}):C(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(hn("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 xt=oe();function Nn(r,e){return r.getName(e)||r.getId(e)}var Xm="__universalTransitionEnabled",qe=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=tn({count:$m,reset:Km}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=xt(this).sourceManager=new Em(this);i.prepareSource();var o=this.getInitialData(t,a);Yl(o,this),this.dataTask.context.data=o,xt(this).dataBeforeProcessed=o,Wl(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=fn(this),i=a?Tn(t):{},o=this.subType;te.hasClass(o)&&(o+="Series"),ne(t,n.getTheme().get(this.subType)),ne(t,this.getDefaultOption()),Zi(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Ot(t,i,a)},e.prototype.mergeOption=function(t,n){t=ne(this.option,t,!0),this.fillDataTextStyle(t.data);var a=fn(this);a&&Ot(this.option,t,a);var i=xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);Yl(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xt(this).dataBeforeProcessed=o,Wl(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ne(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Zi(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=uo(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return xt(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=uo(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}xt(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return $(t)},e.prototype.getSourceManager=function(){return xt(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return xt(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(n,function(d,p){var m=l.dataToCoord(d),g=u-m,y=Math.abs(g);y<=i&&((y<c||y===c&&g>=0&&h<0)&&(c=y,h=g,v=0),g===h&&(f[v++]=p))}),f.length=v,f},e.prototype.formatTooltip=function(t,n,a){return Wm({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(pe.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=ms.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,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<t.length;s++){var l=t[s],u=Nn(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=Qe(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Nn(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Xm])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,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"){X(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Nn(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=Nn(t,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return te.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(te);Bt(qe,ym);Bt(qe,ms);Xc(qe,te);function Wl(r){var e=r.name;Ho(r)||(r.name=Zm(r)||e)}function Zm(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return C(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function $m(r){return r.model.getRawData().count()}function Km(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),qm}function qm(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Yl(r,e){C(od(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,de(jm,e))})}function jm(r,e){var t=uo(r);return t&&t.setOutputEnd((e||this).count()),e}function uo(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var ot=(function(){function r(){this.group=new De,this.uid=Xa("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Wo(ot);Fa(ot);function bs(){var r=oe();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var ev=oe(),Qm=bs(),We=(function(){function r(){this.group=new De,this.uid=Xa("viewChart"),this.renderTask=tn({plan:Jm,reset:ey}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Zl(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Zl(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){Ua(this.group,e)},r.markUpdateMethod=function(e,t){ev(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function Xl(r,e,t){r&&Qi(r)&&(e==="emphasis"?pa:ga)(r,t)}function Zl(r,e,t){var n=Jt(r,e),a=e&&e.highlightKey!=null?Ap(e.highlightKey):null;n!=null?C(Ie(n),function(i){Xl(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){Xl(i,t,a)})}Wo(We);Fa(We);function Jm(r){return Qm(r.model)}function ey(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&ev(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),ty[l]}var ty={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},wa="\0__throttleOriginMethod",$l="\0__throttleRate",Kl="\0__throttleType";function ws(r,e,t){var n,a=0,i=0,o=null,s,l,u,f;e=e||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||e,m=f||t;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 tv(r,e,t,n){var a=r[e];if(a){var i=a[wa]||a,o=a[Kl],s=a[$l];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=ws(i,t,n==="debounce"),a[wa]=i,a[Kl]=n,a[$l]=t}return a}}function co(r,e){var t=r[e];t&&t[wa]&&(t.clear&&t.clear(),r[e]=t[wa])}var ql=oe(),jl={itemStyle:sn(hf,!0),lineStyle:sn(vf,!0)},ry={lineStyle:"stroke",itemStyle:"fill"};function rv(r,e){var t=r.visualStyleMapper||jl[e];return t||(console.warn("Unknown style type '"+e+"'."),jl.itemStyle)}function nv(r,e){var t=r.visualDrawType||ry[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ny={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=rv(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=nv(r,n),u=o[l],f=K(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),m=G({},o);m[l]=f(p),v.setItemVisual(d,"style",m)}}}},Rr=new le,ay={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=rv(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Rr.option=l[n];var u=a(Rr),f=o.ensureUniqueItemVisual(s,"style");G(f,u),Rr.option.decal&&(o.setItemVisual(s,"decal",Rr.option.decal),Rr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},iy={performRawSeries:!0,overallReset:function(r){var e=$();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),ql(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=ql(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=nv(t,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]=t.getColorFromPalette(v,o,d)}})}})}},Bn=Math.PI;function oy(r,e){e=e||{},ve(e,{text:"loading",textColor:W.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:W.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new De,n=new _e({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new Ee({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new _e({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Vo({shape:{startAngle:-Bn/2,endAngle:-Bn/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Bn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Bn*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.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()})},t.resize(),t}var av=(function(){function r(e,t,n,a){this._stageTaskMap=$(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__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(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=$();e.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}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;C(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";pt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;C(e,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&&t.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(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=$(),l=e.seriesType,u=e.getTargetSeries;e.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)||tn({plan:fy,reset:vy,count:dy}));v.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||tn({reset:sy});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=$(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";pt(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,C(n.getSeries(),d));function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,tn({reset:ly,onDirty:cy})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:py(e)}),e.uid=Xa("stageHandler"),t&&(e.visualType=t),e},r})();function sy(r){r.overallReset(r.ecModel,r.api,r.payload)}function ly(r){return r.overallProgress&&uy}function uy(){this.agent.dirty(),this.getDownstream().dirty()}function cy(){this.agent&&this.agent.dirty()}function fy(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function vy(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ie(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?Y(e,function(t,n){return iv(n)}):hy}var hy=iv(0);function iv(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function dy(r){return r.data.count()}function py(r){Ca=null;try{r(dn,ov)}catch{}return Ca}var dn={},ov={},Ca;sv(dn,ys);sv(ov,Of);dn.eachSeriesByType=dn.eachRawSeriesByType=function(r){Ca=r};dn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ca=r.subType)};function sv(r,e){for(var t in e.prototype)r[t]=Rt}var N=W.darkColor,gy=N.background,Or=function(){return{axisLine:{lineStyle:{color:N.axisLine}},splitLine:{lineStyle:{color:N.axisSplitLine}},splitArea:{areaStyle:{color:[N.backgroundTint,N.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:N.axisMinorSplitLine}},axisLabel:{color:N.axisLabel},axisName:{}}},Ql={label:{color:N.secondary},itemStyle:{borderColor:N.borderTint},dividerLineStyle:{color:N.border}},lv={darkMode:!0,color:N.theme,backgroundColor:gy,axisPointer:{lineStyle:{color:N.border},crossStyle:{color:N.borderShade},label:{color:N.tertiary}},legend:{textStyle:{color:N.secondary},pageTextStyle:{color:N.tertiary}},textStyle:{color:N.secondary},title:{textStyle:{color:N.primary},subtextStyle:{color:N.quaternary}},toolbox:{iconStyle:{borderColor:N.accent50}},tooltip:{backgroundColor:N.neutral20,defaultBorderColor:N.border,textStyle:{color:N.tertiary}},dataZoom:{borderColor:N.accent10,textStyle:{color:N.tertiary},brushStyle:{color:N.backgroundTint},handleStyle:{color:N.neutral00,borderColor:N.accent20},moveHandleStyle:{color:N.accent40},emphasis:{handleStyle:{borderColor:N.accent50}},dataBackground:{lineStyle:{color:N.accent30},areaStyle:{color:N.accent20}},selectedDataBackground:{lineStyle:{color:N.accent50},areaStyle:{color:N.accent30}}},visualMap:{textStyle:{color:N.secondary},handleStyle:{borderColor:N.neutral30}},timeline:{lineStyle:{color:N.accent10},label:{color:N.tertiary},controlStyle:{color:N.accent30,borderColor:N.accent30}},calendar:{itemStyle:{color:N.neutral00,borderColor:N.neutral20},dayLabel:{color:N.tertiary},monthLabel:{color:N.secondary},yearLabel:{color:N.secondary}},matrix:{x:Ql,y:Ql,backgroundColor:{borderColor:N.axisLine},body:{itemStyle:{borderColor:N.borderTint}}},timeAxis:Or(),logAxis:Or(),valueAxis:Or(),categoryAxis:Or(),line:{symbol:"circle"},graph:{color:N.theme},gauge:{title:{color:N.secondary},axisLine:{lineStyle:{color:[[1,N.neutral05]]}},axisLabel:{color:N.axisLabel},detail:{color:N.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:N.background}},radar:(function(){var r=Or();return r.axisName={color:N.axisLabel},r.axisLine.lineStyle.color=N.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:N.neutral20,textStyle:{color:N.secondary}},emphasis:{itemStyle:{color:N.neutral30}}}},sunburst:{itemStyle:{borderColor:N.background}},map:{itemStyle:{borderColor:N.border,areaColor:N.neutral10},label:{color:N.tertiary},emphasis:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}},select:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}}},geo:{itemStyle:{borderColor:N.border,areaColor:N.neutral10},emphasis:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}},select:{label:{color:N.primary},itemStyle:{color:N.highlight}}}};lv.categoryAxis.splitLine.show=!1;var my=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(H(e)){var i=nt(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,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"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){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=t.cptQuery,u=t.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(e,t.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})(),fo=["symbol","symbolSize","symbolRotate","symbolOffset"],Jl=fo.concat(["symbolKeepAspect"]),yy={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<fo.length;o++){var s=fo[o],l=r.get(s);K(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(G({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=Qe(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}}},_y={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Jl.length;s++){var l=Jl[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function Sy(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function xy(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function by(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}C([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=G({},a),o.dispatchAction(G(a,{type:n[1],seriesIndex:t(i,a)}))})})}function vr(r,e,t,n,a){var i=r+e;t.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=Jt(c,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:F(h)?c.getName(h[0]):c.getName(h),selected:H(l)?l:G({},l)})}})}function wy(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(vr("map","selectchanged",e,a,n),vr("pie","selectchanged",e,a,n)):n.fromAction==="select"?(vr("map","selected",e,a,n),vr("pie","selected",e,a,n)):n.fromAction==="unselect"&&(vr("map","unselected",e,a,n),vr("pie","unselected",e,a,n))})}function Xr(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Cy=Be.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),Ty=Be.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),Dy=Be.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.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(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*v,l+s+h*v,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+c*v,l+s+h*v,t-f,l+s),r.closePath()}}),Ay=Be.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),My={line:Qt,rect:_e,roundRect:_e,square:_e,circle:Fo,diamond:Ty,pin:Dy,arrow:Ay,triangle:Cy},Iy={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},vo={};C(My,function(r,e){vo[e]=new r});var Ly=Be.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Hi(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=vo[n];a||(n="rect",a=vo[n]),Iy[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function ky(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||W.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function wr(r,e,t,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=nf(r.slice(8),new Re(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Qo(r.slice(7),{},new Re(e,t,n,a),o?"center":"cover"):l=new Ly({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=ky,i&&l.setColor(i),l}function Py(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function uv(r,e){if(r!=null)return F(r)||(r=[r,r]),[ie(r[0],e[0])||0,ie(j(r[1],r[0]),e[1])||0]}var di=new sd,eu=new ld(100),tu=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ho(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&di.delete(r);var i=di.get(r);if(i)return i;var o=ve(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/t,di.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<tu.length;++h){var v=o[tu[h]];if(v!=null&&!F(v)&&!H(v)&&!ae(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=eu.get(d);p&&(a?u.svgElement=p:u.image=p)}var m=fv(o.dashArrayX),g=Ey(o.dashArrayY),y=cv(o.symbol),_=Ry(m),S=vv(g),b=!a&&Ec.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=D(),A;b&&(b.width=w.width*t,b.height=w.height*t,A=b.getContext("2d")),M(),c&&eu.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function D(){for(var T=1,L=0,I=_.length;L<I;++L)T=qs(T,_[L]);for(var P=1,L=0,I=y.length;L<I;++L)P=qs(P,y[L].length);T*=P;var k=S*_.length*y.length;return{width:Math.max(1,Math.min(T,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function M(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,b.width,b.height)));for(var T=0,L=0;L<g.length;++L)T+=g[L];if(T<=0)return;for(var I=-S,P=0,k=0,O=0;I<w.height;){if(P%2===0){for(var U=k/2%y.length,E=0,R=0,V=0;E<w.width*2;){for(var B=0,L=0;L<m[O].length;++L)B+=m[O][L];if(B<=0)break;if(R%2===0){var z=(1-o.symbolSize)*.5,q=E+m[O][R]*z,ue=I+g[P]*z,me=m[O][R]*o.symbolSize,mt=g[P]*o.symbolSize,or=V/2%y[U].length;yt(q,ue,me,mt,y[U][or])}E+=m[O][R],++V,++R,R===m[O].length&&(R=0)}++O,O===m.length&&(O=0)}I+=g[P],++k,++P,P===g.length&&(P=0)}function yt(Ir,Lr,An,Mn,In){var Vt=a?1:t,_t=wr(In,Ir*Vt,Lr*Vt,An*Vt,Mn*Vt,o.color,o.symbolKeepAspect);if(a){var st=n.painter.renderOneToVNode(_t);st&&x.children.push(st)}else ud(A,_t)}}}}function cv(r){if(!r||r.length===0)return[["rect"]];if(H(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!H(r[t])){e=!1;break}if(e)return cv([r]);for(var n=[],t=0;t<r.length;++t)H(r[t])?n.push([r[t]]):n.push(r[t]);return n}function fv(r){if(!r||r.length===0)return[[0,0]];if(ae(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!ae(r[n])){t=!1;break}if(t)return fv([r]);for(var a=[],n=0;n<r.length;++n)if(ae(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=Y(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function Ey(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ae(r)){var e=Math.ceil(r);return[e,e]}var t=Y(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function Ry(r){return Y(r,function(e){return vv(e)})}function vv(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function Oy(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ho(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ho(a,e)}}})}var $e=new Ba,hv={};function Ny(r,e){hv[r]=e}function By(r){return hv[r]}var Fy=1,Vy=800,zy=900,Gy=1e3,Hy=2e3,Uy=5e3,dv=1e3,Wy=1100,Cs=2e3,pv=3e3,Yy=4e3,ja=4500,Xy=4600,Zy=5e3,$y=6e3,gv=7e3,Ky={PROCESSOR:{FILTER:Gy,SERIES_FILTER:Vy,STATISTIC:Uy},VISUAL:{LAYOUT:dv,PROGRESSIVE_LAYOUT:Wy,GLOBAL:Cs,CHART:pv,POST_CHART_LAYOUT:Xy,COMPONENT:Yy,BRUSH:Zy,CHART_ITEM:ja,ARIA:$y,DECAL:gv}},ye="__flagInMainProcess",Fn="__mainProcessVersion",Se="__pendingUpdate",pi="__needsUpdateStatus",ru=/^[a-zA-Z0-9_]+$/,gi="__connectUpdateStatus",nu=0,qy=1,jy=2;function mv(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return _v(this,r,e)}}function yv(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _v(this,r,e)}}function _v(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ba.prototype[e].apply(r,t)}var Sv=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Ba),xv=Sv.prototype;xv.on=yv("on");xv.off=yv("off");var Xt,mi,Vn,ut,zn,yi,_i,hr,dr,au,iu,Si,ou,Gn,su,bv,Ve,lu,pr,wv=(function(r){Z(e,r);function e(t,n,a){var i=r.call(this,new my)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=t;var o="canvas",s="auto",l=!1;i[Fn]=1,a.ssr;var u=i._zr=Us(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:j(a.useDirtyRect,l),useCoarsePointer:j(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=ws(ee(u.flush,u),17),i._updateTheme(n),i._locale=ug(a.locale||pf),i._coordSysMgr=new hs;var f=i._api=su(i);function c(h,v){return h.__prio-v.__prio}return ei(Da,c),ei(mo,c),i._scheduler=new av(i,f,mo,Da),i._messageCenter=new Sv,i._initEvents(),i.resize=ee(i.resize,i),u.animation.on("frame",i._onframe,i),au(u,i),iu(u,i),Gi(i),i}return e.prototype._onframe=function(){if(!this._disposed){lu(this);var t=this._scheduler;if(this[Se]){var n=this[Se].silent;this[ye]=!0,pr(this);try{Xt(this),ut.update.call(this,null,this[Se].updateParams)}catch(l){throw this[ye]=!1,this[Se]=null,l}this._zr.flush(),this[ye]=!1,this[Se]=null,hr.call(this,n),dr.call(this,n)}else if(t.unfinished){var a=Fy,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),yi(this,i),t.performVisualTasks(i),Gn(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[ye]){if(this._disposed){this.id;return}var i,o,s;if(X(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ye]=!0,pr(this),!this._model||n){var l=new jg(this._api),u=this._theme,f=this._model=new ys;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},yo);var c={seriesTransition:s,optionChanged:!0};if(a)this[Se]={silent:i,updateParams:c},this[ye]=!1,this.getZr().wakeUp();else{try{Xt(this),ut.update.call(this,null,c)}catch(h){throw this[Se]=null,this[ye]=!1,h}this._ssr||this._zr.flush(),this[Se]=null,this[ye]=!1,hr.call(this,i),dr.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[ye]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Se]&&(i==null&&(i=this[Se].silent),o=this[Se].updateParams,this[Se]=null),this[ye]=!0,pr(this);try{this._updateTheme(t),a.setTheme(this._theme),Xt(this),ut.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ye]=!1,s}this[ye]=!1,hr.call(this,i),dr.call(this,i)}}},e.prototype._updateTheme=function(t){H(t)&&(t=Cv[t]),t&&(t=J(t),t&&Bf(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||pe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return C(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;C(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(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(uu[a]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();C(rn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(J(t)),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=Ec.createCanvas(),g=Us(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return C(h,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new _e({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),C(h,function(_){var S=new _n({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return zn(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return zn(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return zn(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=ri(a,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(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},e.prototype.getVisual=function(t,n){var a=this._model,i=ri(a,t,{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?Sy(s,l,n):xy(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(Qy,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Xr(l,function(p){var m=Q(p);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=G({},m.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;C(go,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),wy(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Wc(this.getDom(),Ds,"");var n=this,a=n._api,i=n._model;C(n._componentsViews,function(o){o.dispose(i,a)}),C(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 rn[n.id]},e.prototype.resize=function(t){if(!this[ye]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Se]&&(i==null&&(i=this[Se].silent),a=!0,this[Se]=null),this[ye]=!0,pr(this);try{a&&Xt(this),ut.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(o){throw this[ye]=!1,o}this[ye]=!1,hr.call(this,i),dr.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(X(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!_o[t]){var a=_o[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=G({},t);return n.type=po[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!Ta[t.type]&&this._model){if(this[ye]){this._pendingActions.push(t);return}var a=n.silent;_i.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&pe.browser.weChat&&this._throttledZrFlush(),hr.call(this,a),dr.call(this,a)}},e.prototype.updateLabelLayout=function(){$e.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Xt=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),mi(c,!0),mi(c,!1),h.plan()},mi=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,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var A="_ec_"+x.id+"_"+x.type,D=!w&&m[A];if(!D){var M=nt(x.type),T=h?ot.getClass(M.main,M.sub):We.getClass(M.sub);D=new T,D.init(v,y),m[A]=D,p.push(D),g.add(D.group)}x.__viewId=D.__id=A,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(D,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)}},Vn=function(c,h,v,d,p){var m=c._model;if(m.setUpdatePayload(v),!d){C([].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=$(),C(Ie(_),function(x){var w=at(x,null);w!=null&&S.set(w,!0)})),m&&m.eachComponent(y,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(sl(v))if(x instanceof qe)v.type===$t&&!v.notBlur&&!x.get(["emphasis","disabled"])&&_p(x,v,c._api);else{var A=Ko(x.mainType,x.componentIndex,v.name,c._api),D=A.focusSelf,M=A.dispatchers;v.type===$t&&D&&!v.notBlur&&qi(x.mainType,x.componentIndex,c._api),M&&C(M,function(T){v.type===$t?pa(T):ga(T)})}else Ji(v)&&x instanceof qe&&(bp(x,v,c._api),il(x),Ve(c))},c),m&&m.eachComponent(y,function(x){var w=S&&S.get(x.id)!=null;w||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)}},ut={prepareAndUpdate:function(c){Xt(this),ut.update.call(this,c,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),yi(this,v),m.update(v,d),n(v),g.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Si(this,v,d,c,h),$e.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=$();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)}),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:m}),Gn(this,v,d,c,{},m),$e.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),We.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Si(this,h,this._api,c,{}),$e.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()}),We.markUpdateMethod(c,"updateVisual"),n(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)}),$e.trigger("afterupdate",v,this._api))},updateLayout:function(c){ut.update.call(this,c)}};function t(c,h,v,d,p){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=ri(m,v),S=0;S<g.length;S++){var b=g[S];if(b[h]&&(y=b[h](m,_,d,p))!=null)return y}}zn=t,yi=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},_i=function(c,h){var v=this,d=this.getModel(),p=c.type,m=c.escapeConnect,g=Ta[p],y=(g.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&nt(y[0]);this[ye]=!0,pr(this);var b=[c],x=!1;c.batch&&(x=!0,b=Y(c.batch,function(O){return O=ve(G({},O),c),O.batch=null,O}));var w=[],A,D=[],M=g.nonRefinedEventType,T=Ji(c),L=sl(c);if(L&&tf(this._api),C(b,function(O){var U=g.action(O,d,v._api);if(g.refineEvent?D.push(U):A=U,A=A||G({},O),A.type=M,w.push(A),L){var E=Uo(c),R=E.queryOptionMap,V=E.mainTypeSpecified,B=V?R.keys()[0]:"series";Vn(v,_,O,B),Ve(v)}else T?(Vn(v,_,O,"series"),Ve(v)):S&&Vn(v,_,O,S.main,S.sub)}),_!=="none"&&!L&&!T&&!S)try{this[Se]?(Xt(this),ut.update.call(this,c),this[Se]=null):ut[_].call(this,c)}catch(O){throw this[ye]=!1,O}if(x?A={type:M,escapeConnect:m,batch:w}:A=w[0],this[ye]=!1,!h){var I=void 0;if(g.refineEvent){var P=g.refineEvent(D,c,d,this._api).eventContent;pt(X(P)),I=ve({type:g.refinedEventType},P),I.fromAction=c.type,I.fromActionPayload=c,I.escapeConnect=!0}var k=this._messageCenter;k.trigger(A.type,A),I&&k.trigger(I.type,I)}},hr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();_i.call(this,v,c)}},dr=function(c){!c&&this.trigger("updated")},au=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Se]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},iu=function(c,h){c.on("mouseover",function(v){var d=v.target,p=Xr(d,Qi);p&&(Sp(p,v,h._api),Ve(h))}).on("mouseout",function(v){var d=v.target,p=Xr(d,Qi);p&&(xp(p,v,h._api),Ve(h))}).on("click",function(v){var d=v.target,p=Xr(d,function(y){return Q(y).dataIndex!=null},!0);if(p){var m=p.selected?"unselect":"select",g=Q(p);h._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(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;ei(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(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)})}}Si=function(c,h,v,d,p){a(h),ou(c,h,v,d,p),C(c._chartsViews,function(m){m.__alive=!1}),Gn(c,h,v,d,p),C(c._chartsViews,function(m){m.__alive||m.remove(h,v)})},ou=function(c,h,v,d,p,m){C(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,h,v,d),l(y,g),f(y,g)})},Gn=function(c,h,v,d,p,m){var g=c._scheduler;p=G(p||{},{updatedSeries:h.getSeries()}),$e.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"),s(_,S),il(_)}),g.unfinished=y||g.unfinished,$e.trigger("series:layoutlabels",h,v,p),$e.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),$e.trigger("series:afterupdate",h,v,p)},Ve=function(c){c[pi]=!0,c.getZr().wakeUp()},pr=function(c){c[Fn]=(c[Fn]+1)%1e3},lu=function(c){c[pi]&&(c.getZr().storage.traverse(function(h){qr(h)||i(h)}),c[pi]=!1)};function i(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===za&&c.states.emphasis?h.push("emphasis"):c.hoverState===Va&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(m){m.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!pe.node&&!pe.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 s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=uf(c);h.eachRendered(function(d){return cf(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!qr(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(qr(g))return;if(g instanceof Be&&Mp(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&&i(g)}})}su=function(c){return new((function(h){Z(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){pa(d,p),Ve(c)},v.prototype.leaveEmphasis=function(d,p){ga(d,p),Ve(c)},v.prototype.enterBlur=function(d){yp(d),Ve(c)},v.prototype.leaveBlur=function(d){jc(d),Ve(c)},v.prototype.enterSelect=function(d){Qc(d),Ve(c)},v.prototype.leaveSelect=function(d){Jc(d),Ve(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.prototype.getMainProcessVersion=function(){return c[Fn]},v})(Of))(c)},bv=function(c){function h(v,d){for(var p=0;p<v.length;p++){var m=v[p];m[gi]=d}}C(po,function(v,d){c._messageCenter.on(d,function(p){if(uu[c.group]&&c[gi]!==nu){if(p&&p.escapeConnect)return;var m=c.makeActionFromEvent(p),g=[];C(rn,function(y){y!==c&&y.group===c.group&&g.push(y)}),h(g,nu),C(g,function(y){y[gi]!==qy&&y.dispatchAction(m)}),h(g,jy)}})})}})(),e})(Ba),Ts=wv.prototype;Ts.on=mv("on");Ts.off=mv("off");Ts.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var Qy=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ta={},po={},go={},mo=[],yo=[],Da=[],Cv={},_o={},rn={},uu={},Jy=+new Date-0,Ds="_echarts_instance_";function Cb(r,e,t){var n=!(t&&t.ssr);if(n){var a=e0(r);if(a)return a}var i=new wv(r,e,t);return i.id="ec_"+Jy++,rn[i.id]=i,n&&Wc(r,Ds,i.id),bv(i),$e.trigger("afterinit",i),i}function e0(r){return rn[$d(r,Ds)]}function Tv(r,e){Cv[r]=e}function Dv(r){ge(yo,r)<0&&yo.push(r)}function Av(r,e){Ms(mo,r,e,Hy)}function t0(r){As("afterinit",r)}function r0(r){As("afterupdate",r)}function As(r,e){$e.on(r,e)}function Mr(r,e,t){var n,a,i,o,s;K(e)&&(t=e,e=""),X(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Ta[n]||(pt(ru.test(n)&&ru.test(a)),i&&pt(a!==n),Ta[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:i},go[a]=1,i&&s&&(go[u]=1),po[u]=n)}function n0(r,e){hs.register(r,e)}function a0(r,e){Ms(Da,r,e,dv,"layout")}function ir(r,e){Ms(Da,r,e,pv,"visual")}var cu=[];function Ms(r,e,t,n,a){if((K(e)||X(e))&&(t=e,e=n),!(ge(cu,t)>=0)){cu.push(t);var i=av.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function Mv(r,e){_o[r]=e}function i0(r,e,t){var n=By("registerMap");n&&n(r,e,t)}var o0=Am;ir(Cs,ny);ir(ja,ay);ir(ja,iy);ir(Cs,yy);ir(ja,_y);ir(gv,Oy);Dv(Bf);Av(zy,um);Mv("default",oy);Mr({type:$t,event:$t,update:$t},Rt);Mr({type:Jn,event:Jn,update:Jn},Rt);Mr({type:ha,event:Zo,update:ha,action:Rt,refineEvent:Is,publishNonRefinedEvent:!0});Mr({type:$i,event:Zo,update:$i,action:Rt,refineEvent:Is,publishNonRefinedEvent:!0});Mr({type:da,event:Zo,update:da,action:Rt,refineEvent:Is,publishNonRefinedEvent:!0});function Is(r,e,t,n){return{eventContent:{selected:wp(t),isFromClick:e.isFromClick||!1}}}Tv("default",{});Tv("dark",lv);function Nr(r){return r==null?0:r.length||1}function fu(r){return r}var s0=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||fu,this._newKeyGetter=a||fu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=Nr(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 e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=Nr(u),h=Nr(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(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Nr(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);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=Nr(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),l0=(function(){function r(e,t){this._encode=e,this._schema=t}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 u0(r,e){var t={},n=t.encode={},a=$(),i=[],o=[],s={};C(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;xi(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),f0(v.type)&&(i[0]=h),xi(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Lf.each(function(m,g){var y=xi(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)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=Y(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.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,t.userOutput=new l0(s,e),t}function xi(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function c0(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function f0(r){return!(r==="ordinal"||r==="time")}var ia=(function(){function r(e){this.otherDims={},e!=null&&G(this,e)}return r})(),v0=oe(),h0={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Iv=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Pv(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return j(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=zf(this.source),n=!Ev(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=h0[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 e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Lv(r){return r instanceof Iv}function kv(r){for(var e=$(),t=0;t<(r||[]).length;t++){var n=r[t],a=X(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function Pv(r){var e=v0(r);return e.dimNameMap||(e.dimNameMap=kv(r.dimensionsDefine))}function Ev(r){return r>30}var Br=X,bt=Y,d0=typeof Int32Array>"u"?Array:Int32Array,p0="e\0\0",vu=-1,g0=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],m0=["_approximateExtent"],hu,Hn,Fr,Vr,bi,zr,wi,Rv=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Lv(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=H(c)?new ia({name:c}):c instanceof ia?c:new ia(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]=[]);var p=f;ae(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=$();C(o,function(g){m.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ae(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof oo&&(i=e),!i){var o=this.dimensions,s=_s(e)||Ra(e)?new Gf(e,o.length):e;i=new oo;var l=bt(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=u0(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&wi(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Pt&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Fe;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Bd(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=at(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=at(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)wi(this,f);hu(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Br(e)?G(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Fr(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Hn(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return F(e)?a.getValues(bt(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?vu:a},r.prototype.each=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var a=n||this,i=bt(Vr(e),this._getStoreDimIndex,this);this._store.each(i,a?ee(t,a):t)},r.prototype.filterSelf=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var a=n||this,i=bt(Vr(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ee(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=Qe(e);return C(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){K(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=bt(Vr(e),this._getStoreDimIndex,this),s=zr(this);return s._store=this._store.map(o,i?ee(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=bt(Vr(e),this._getStoreDimIndex,this);this._store.modify(o,i?ee(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=zr(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=zr(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=zr(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new le(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new s0(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Hn(e,n)},function(n){return Hn(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Br(e)?G(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),F(i)?i=i.slice():Br(i)&&(i=G({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Br(t)?G(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Br(e)?G(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?G(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;lp(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:bt(this.dimensions,this._getDimInfo,this),this.hostModel)),bi(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(cd(arguments)))})},r.internalField=(function(){hu=function(e){var t=e._invertedIndicesMap;C(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new d0(o.categories.length);for(var l=0;l<n.length;l++)n[l]=vu;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Fr=function(e,t,n){return at(e._getCategory(t,n),null)},Hn=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Fr(e,e._idDimIdx,t)),n==null&&(n=p0+t),n},Vr=function(e){return F(e)||(e=e!=null?[e]:[]),e},zr=function(e){var t=new r(e._schema?e._schema:bt(e.dimensions,e._getDimInfo,e),e.hostModel);return bi(t,e),t},bi=function(e,t){C(g0.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,C(m0,function(n){e[n]=J(t[n])}),e._calculationInfo=G({},t._calculationInfo)},wi=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Fr(e,i,t)),l==null&&o!=null&&(a[t]=l=Fr(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}})(),r})();function Ov(r,e){_s(r)||(r=Ff(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=$(),i=[],o=_0(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ev(o),l=n===r.dimensionsDefine,u=l?Pv(r):kv(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=$(f),h=new Xf(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var M=h[D];if(M<0){var T=n[D],L=X(T)?T:{name:T},I=new ia,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var k=i.length;return h[D]=k,I.storeDimIndex=D,i.push(I),I}return i[M]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,M){var T=Ie(D).slice();if(T.length===1&&!H(T[0])&&T[0]<0){c.set(M,!1);return}var L=c.set(M,[]);C(T,function(I,P){var k=H(I)?u.get(I):I;k!=null&&k<o&&(L[P]=k,m(d(k),M,P))})});var p=0;C(t,function(D){var M,T,L,I;if(H(D))M=D,I={};else{I=D,M=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,T=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var k=c.get(M);if(k!==!1){if(k=Ie(k),!k.length)for(var O=0;O<(T&&T.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}C(k,function(U,E){var R=d(U);if(l&&I.type!=null&&(R.type=I.type),m(ve(R,I),M,E),R.name==null&&T){var V=T[E];!X(V)&&(V={name:V}),R.name=R.displayName=V.name,R.defaultTooltip=V.defaultTooltip}L&&ve(R.otherDims,L)})}});function m(D,M,T){Lf.get(M)!=null?D.otherDims[M]=T:(D.coordDim=M,D.coordDimIndex=T,a.set(M,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var S=g||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)C(i,function(D){b(D)}),i.sort(function(D,M){return D.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),A=w.coordDim;A==null&&(w.coordDim=S0(S,a,_),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(Ef(r,x)===xe.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return y0(i),new Iv({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function y0(r){for(var e=$(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function _0(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return C(e,function(i){var o;X(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function S0(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var x0=(function(){function r(e){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=e}return r})();function b0(r){var e=r.get("coordinateSystem"),t=new x0(e),n=w0[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var w0={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",Ge).models[0],i=r.getReferringComponents("yAxis",Ge).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),gr(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),gr(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",Ge).models[0];e.coordSysDims=["single"],t.set("single",a),gr(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",Ge).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),gr(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),gr(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),gr(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",Ge).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function gr(r){return r.get("type")==="category"}function C0(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;T0(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(C(i,function(y,_){H(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;C(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 T0(r){return!Lv(r.schema)}function Cr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function D0(r,e){return Cr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function A0(r,e){var t=r.get("coordinateSystem"),n=hs.get(t),a;return e&&e.coordSysDims&&(a=Y(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=c0(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function M0(r,e,t){var n,a;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Ls(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Fe;var o=b0(e),s=A0(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?de(Fg,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Ov(a,f),h=M0(c.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=C0(e,{schema:c,store:v}),p=new Rv(c,e);p.setCalculationInfo(d);var m=h!=null&&I0(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 I0(r){if(r.sourceFormat===Fe){var e=L0(r.data||[]);return!F(xn(e))}}function L0(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function So(r){return r.type==="interval"||r.type==="log"}function k0(r,e,t,n,a){var i={},o=i.interval=Fc(e/t);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=pn(o),l=i.niceTickExtent=[we(Math.ceil(r[0]/o)*o,s),we(Math.floor(r[1]/o)*o,s)];return P0(l,r),i}function Ci(r){var e=Math.pow(10,Go(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,we(t*e)}function pn(r){return vt(r)+2}function du(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function P0(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),du(r,0,e),du(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ks(r,e){return r>=e[0]&&r<=e[1]}var E0=(function(){function r(){this.normalize=pu,this.scale=gu}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=ee(e.normalize,e),this.scale=ee(e.scale,e)):(this.normalize=pu,this.scale=gu)},r})();function pu(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function gu(r,e){return r*(e[1]-e[0])+e[0]}function xo(r,e,t){var n=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/n,Math.log(t?e[1]:Math.max(0,e[1]))/n]}var Ft=(function(){function r(e){this._calculator=new E0,this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(e){},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();Fa(Ft);var R0=0,bo=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++R0,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&Y(n,O0);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},r})();function O0(r){return X(r)&&r.value!=null?r.value:r+""}var Nv=(function(r){Z(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new bo({})),F(a)&&(a=new bo({categories:Y(a,function(i){return X(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:H(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return ks(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.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}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(Ft);Ft.registerClass(Nv);var wt=we,Tr=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return ks(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=pn(t)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=xa(),l=[];if(!n)return l;t.breakTicks;var u=1e4;a[0]<i[0]&&(t.expandToNicedExtent?l.push({value:wt(i[0]-n,o)}):l.push({value:a[0]}));for(var f=function(d,p){return Math.round((p-d)/n)},c=i[0];c<=i[1];){if(l.push({value:c}),c=wt(c+n,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=wt(c+h*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return a[1]>v&&(t.expandToNicedExtent?l.push({value:wt(v+n,o)}):l.push({value:a[1]})),t.breakTicks,l},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/t,v=pn(h);u<t-1;){var d=wt(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=xa();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(m){return m},this._interval,i),a.push(f)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=vt(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=wt(t.value,a,!0);return Cf(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=k0(i,o,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.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._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(n[0]=wt(Math.floor(n[0]/o)*o,s)),t.fixMax||(n[1]=wt(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e})(Ft);Ft.registerClass(Tr);var Bv=typeof Float32Array<"u",N0=Bv?Float32Array:Array;function ht(r){return F(r)?Bv?new Float32Array(r):r:new N0(r)}var B0="__ec_stack_";function Fv(r){return r.get("stack")||B0+r.seriesIndex}function Ps(r){return r.dim+r.index}function Vv(r,e){var t=[];return e.eachSeriesByType(r,function(n){Gv(n)&&t.push(n)}),t}function F0(r){var e={};C(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);e[h]?e[h].push(g):e[h]=[g]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[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))}t[n]=i}}return t}function zv(r){var e=F0(r),t=[];return C(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=e[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=ie(n.get("barWidth"),s),p=ie(n.get("barMaxWidth"),s),m=ie(n.get("barMinWidth")||(Hv(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:Ps(i),stackId:Fv(n)})}),V0(t)}function V0(r){var e={};C(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[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 t={};return C(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Qe(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),f=ie(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),C(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;C(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;C(i,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),t}function z0(r,e,t){if(r&&e){var n=r[Ps(e)];return n}}function G0(r,e){var t=Vv(r,e),n=zv(t);C(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Fv(a),u=n[Ps(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function H0(r){return{seriesType:r,plan:bs(),reset:function(e){if(Gv(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),c=Cr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=U0(a,i),d=Hv(e),p=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&ht(b*3),w=d&&l&&ht(b*3),A=d&&ht(b),D=n.master.getRect(),M=h?D.width:D.height,T,L=S.getStore(),I=0;(T=_.next())!=null;){var P=L.get(c?m:o,T),k=L.get(s,T),O=v,U=void 0;c&&(U=+P-L.get(o,T));var E=void 0,R=void 0,V=void 0,B=void 0;if(h){var z=n.dataToPoint([P,k]);if(c){var q=n.dataToPoint([U,k]);O=q[0]}E=O,R=z[1]+y,V=z[0]-O,B=g,Math.abs(V)<p&&(V=(V<0?-1:1)*p)}else{var z=n.dataToPoint([k,P]);if(c){var q=n.dataToPoint([k,U]);O=q[1]}E=z[0]+y,R=O,V=g,B=z[1]-O,Math.abs(B)<p&&(B=(B<=0?-1:1)*p)}d?(x[I]=E,x[I+1]=R,x[I+2]=h?V:B,w&&(w[I]=h?D.x:E,w[I+1]=h?R:D.y,w[I+2]=M),A[T]=T):S.setItemLayout(T,{x:E,y:R,width:V,height:B}),I+=3}d&&S.setLayout({largePoints:x,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function Gv(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Hv(r){return r.pipelineContext&&r.pipelineContext.large}function U0(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var W0=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},Uv=(function(r){Z(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return Za(t.value,yl[_g(Jr(this._minLevelUnit))]||yl.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Sg(t,n,a,o,i)},e.prototype.getTicks=function(t){var n=this._interval,a=this._extent,i=[];if(!n)return i;var o=this.getSetting("useUTC"),s=ba(a[1],o);i.push({value:a[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=Q0(this._minLevelUnit,this._approxInterval,o,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=ba(a[1],o);i.push({value:a[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=Kt.length-1,c=0;return C(i,function(h){f=Math.min(f,ge(Kt,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},e.prototype.calcNiceExtent=function(t){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=He,n[1]+=He),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]-He}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=Un.length,s=Math.min(W0(Un,this._approxInterval,0,o),o-1);this._interval=Un[s][1],this._intervalPrecision=pn(this._interval),this._minLevelUnit=Un[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return ae(t)?t:+Ar(t)},e.prototype.contain=function(t){return ks(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e})(Tr),Un=[["second",is],["minute",os],["hour",Qr],["quarter-day",Qr*6],["half-day",Qr*12],["day",He*1.2],["half-week",He*3.5],["week",He*7],["month",He*31],["quarter",He*95],["half-year",ml/2],["year",ml]];function Y0(r,e,t,n){return ro(new Date(e),r,n).getTime()===ro(new Date(t),r,n).getTime()}function X0(r,e){return r/=He,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Z0(r){var e=30*He;return r/=e,r>6?6:r>3?3:r>2?2:1}function $0(r){return r/=Qr,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function mu(r,e){return r/=e?os:is,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function K0(r){return Fc(r)}function q0(r,e,t){var n=Math.max(0,ge(Kt,e)-1);return ro(new Date(r),Kt[n],t).getTime()}function j0(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function Q0(r,e,t,n,a,i){var o=1e4,s=pg,l=0;function u(I,P,k,O,U,E,R){for(var V=j0(U,I),B=P,z=new Date(B);B<k&&B<=n[1]&&(R.push({value:B}),!(l++>o));)if(z[U](z[O]()+I),B=z.getTime(),i){var q=i.calcNiceTickMultiple(B,V);q>0&&(z[U](z[O]()+q*I),B=z.getTime())}R.push({value:B,notAdd:!0})}function f(I,P,k){var O=[],U=!P.length;if(!Y0(Jr(I),n[0],n[1],t)){U&&(P=[{value:q0(n[0],I,t)},{value:n[1]}]);for(var E=0;E<P.length-1;E++){var R=P[E].value,V=P[E+1].value;if(R!==V){var B=void 0,z=void 0,q=void 0,ue=!1;switch(I){case"year":B=Math.max(1,Math.round(e/He/365)),z=mf(t),q=xg(t);break;case"half-year":case"quarter":case"month":B=Z0(e),z=ss(t),q=yf(t);break;case"week":case"half-week":case"day":B=X0(e),z=ls(t),q=_f(t),ue=!0;break;case"half-day":case"quarter-day":case"hour":B=$0(e),z=us(t),q=Sf(t);break;case"minute":B=mu(e,!0),z=cs(t),q=xf(t);break;case"second":B=mu(e,!1),z=fs(t),q=bf(t);break;case"millisecond":B=K0(e),z=vs(t),q=wf(t);break}V>=n[0]&&R<=n[1]&&u(B,R,V,z,q,ue,O),I==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-B})}}for(var E=0;E<O.length;E++)k.push(O[E])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var m=Jr(s[p]);if(yg(s[p])){f(s[p],c[c.length-1]||[],h);var g=s[p+1]?Jr(s[p+1]):null;if(m!==g){if(h.length){d=v,h.sort(function(I,P){return I.value-P.value});for(var y=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(y.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var b=a/e;if(v>b*1.5&&d>b/1.5||(c.push(y),v>b||r===s[p]))break}h=[]}}}for(var x=Te(Y(c,function(I){return Te(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),w=[],A=x.length-1,p=0;p<x.length;++p)for(var D=x[p],M=0;M<D.length;++M){var T=ba(D[M].value,t);w.push({value:D[M].value,time:{level:A-p,upperTimeUnit:T,lowerTimeUnit:T}})}w.sort(function(I,P){return I.value-P.value});for(var L=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&L.push(w[p]);return L}Ft.registerClass(Uv);var wo=we,J0=Math.floor,e_=Math.ceil,Wn=Math.pow,Yn=Math.log,Wv=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Tr,t}return e.prototype.getTicks=function(t){t=t||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),Y(i,function(s){var l=s.value,u=null,f=Wn(o,l);l===n[0]&&this._fixMin?u=a[0]:l===n[1]&&this._fixMax&&(u=a[1]);var c;return u!=null&&(f=Ti(f,u)),{value:f,break:c}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var a=xo(this.base,[t,n]);r.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var t=this.base,n=r.prototype.getExtent.call(this);n[0]=Wn(t,n[0]),n[1]=Wn(t,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=Ti(n[0],a[0])),this._fixMax&&(n[1]=Ti(n[1],a[1])),n},e.prototype.unionExtentFromData=function(t,n){this._originalScale.unionExtentFromData(t,n);var a=xo(this.base,t.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=kd(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[wo(e_(n[0]/i)*i),wo(J0(n[1]/i)*i)];this._interval=i,this._intervalPrecision=pn(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=Yn(t)/Yn(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=Yn(t)/Yn(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),Wn(this.base,t)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e})(Tr);function Ti(r,e){return wo(r,vt(e))}Ft.registerClass(Wv);var t_=(function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;K(o)?this._modelMinNum=Xn(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Xn(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(K(s)?this._modelMaxNum=Xn(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Xn(e,s)),a)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=F(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ui(u[0],1),Ui(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=la(s)||la(l)||e&&!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(e,t){this[n_[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=r_[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),r_={min:"_determinedMin",max:"_determinedMax"},n_={min:"_dataMin",max:"_dataMax"};function a_(r,e,t){var n=r.rawExtentInfo;return n||(n=new t_(r,e,t),r.rawExtentInfo=n,n)}function Xn(r,e){return e==null?null:la(e)?NaN:r.parse(e)}function Yv(r,e){var t=r.type,n=a_(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=Vv("bar",o),l=!1;if(C(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=zv(s),f=i_(a,i,e,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function i_(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=z0(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;C(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,c=1-(s+l)/i,h=f/c-f;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function yu(r,e){var t=e,n=Yv(r,t),a=n.extent,i=t.get("splitNumber");r instanceof Wv&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(Zv(t)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function o_(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Nv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Uv({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ft.getClass(e)||Tr)}}function s_(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Dn(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=gg(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(H(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(K(e)){if(r.type==="category")return function(a,i){return e(Aa(r,a),a.value-r.scale.getExtent()[0],null)};var n=xa();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Aa(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Aa(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function Es(r){var e=r.get("interval");return e??"auto"}function Xv(r){return r.type==="category"&&Es(r.getLabelModel())===0}function l_(r,e){var t={};return C(r.mapDimensionsAll(e),function(n){t[D0(r,n)]=!0}),Qe(t)}function Dr(r){return r==="middle"||r==="center"}function gn(r){return r.getShallow("show")}function Zv(r){var e=r.get("breaks",!0);e==null}var u_=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})(),_u=[],c_={registerPreprocessor:Dv,registerProcessor:Av,registerPostInit:t0,registerPostUpdate:r0,registerUpdateLifecycle:As,registerAction:Mr,registerCoordinateSystem:n0,registerLayout:a0,registerVisual:ir,registerTransform:o0,registerLoading:Mv,registerMap:i0,registerImpl:Ny,PRIORITY:Ky,ComponentModel:te,ComponentView:ot,SeriesModel:qe,ChartView:We,registerComponentModel:function(r){te.registerClass(r)},registerComponentView:function(r){ot.registerClass(r)},registerSeriesModel:function(r){qe.registerClass(r)},registerChartView:function(r){We.registerClass(r)},registerCustomSeries:function(r,e){},registerSubTypeDefaulter:function(r,e){te.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){fd(r,e)}};function rr(r){if(F(r)){C(r,function(e){rr(e)});return}ge(_u,r)>=0||(_u.push(r),K(r)&&(r={install:r}),r.install(c_))}var f_=oe(),nn=oe(),je={estimate:1,determine:2};function Ma(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function $v(r,e){var t=Y(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function v_(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=Dn(r),a=r.scale.getExtent(),i=$v(r,t),o=Te(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?d_(r,e):g_(r)}function h_(r,e,t){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=$v(r,n);return{ticks:Te(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?p_(r,e):{ticks:Y(r.scale.getTicks(t),function(o){return o.value})}}function d_(r,e){var t=r.getLabelModel(),n=Kv(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function Kv(r,e,t){var n=y_(r),a=Es(e),i=t.kind===je.estimate;if(!i){var o=jv(n,a);if(o)return o}var s,l;K(a)?s=eh(r,a):(l=a==="auto"?__(r,t):a,s=Jv(r,l));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return Co(n,a,u),!0}):Co(n,a,u),u}function p_(r,e){var t=m_(r),n=Es(e),a=jv(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),K(n))i=eh(r,n,!0);else if(n==="auto"){var s=Kv(r,r.getLabelModel(),Ma(je.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=n,i=Jv(r,o,!0);return Co(t,n,{ticks:i,tickCategoryInterval:o})}function g_(r){var e=r.scale.getTicks(),t=Dn(r);return{labels:Y(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var m_=qv("axisTick"),y_=qv("axisLabel");function qv(r){return function(t){return nn(t)[r]||(nn(t)[r]={list:[]})}}function jv(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function Co(r,e,t){return r.list.push({key:e,value:t}),t}function __(r,e){if(e.kind===je.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return nn(r).autoInterval=t,!0}),t}var n=nn(r).autoInterval;return n??(nn(r).autoInterval=r.calculateCategoryInterval(e))}function S_(r,e){var t=e.kind,n=b_(r),a=Dn(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Rc(a({value:c}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),m=Math.max(m,y,7)}var S=p/v,b=m/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(t===je.estimate)return e.out.noPxChangeTryDetermine.push(ee(x_,null,r,x,l)),x;var w=Qv(r,x,l);return w??x}function x_(r,e,t){return Qv(r,e,t)==null}function Qv(r,e,t){var n=f_(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function b_(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Jv(r,e,t){var n=Dn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||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=Xv(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(t?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m,time:void 0,break:void 0})}return s}function eh(r,e,t){var n=r.scale,a=Dn(r),i=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Su=[0,1],w_=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Ad(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),xu(n,a.count())),Yi(e,Su,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),xu(n,a.count()));var i=Yi(e,n,Su,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=h_(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=Y(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return C_(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=Y(n,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||Ma(je.determine),v_(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(e){return e=e||Ma(je.determine),S_(this,e)},r})();function xu(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function C_(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;C(e,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var c=i[0]>i[1];h(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&h(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&h(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function h(v,d){return v=we(v),d=we(d),c?v>d:v<d}}function th(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,f=t-r,c=n-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;d*=h;var p=o[0]=r+d*f,m=o[1]=e+d*c;return Math.sqrt((p-a)*(p-a)+(m-i)*(m-i))}var It=new se,fe=new se,be=new se,Lt=new se,tt=new se,Ia=[],Me=new se;function T_(r,e){if(e<=180&&e>0){e=e/180*Math.PI,It.fromArray(r[0]),fe.fromArray(r[1]),be.fromArray(r[2]),se.sub(Lt,It,fe),se.sub(tt,be,fe);var t=Lt.len(),n=tt.len();if(!(t<.001||n<.001)){Lt.scale(1/t),tt.scale(1/n);var a=Lt.dot(tt),i=Math.cos(e);if(i<a){var o=th(fe.x,fe.y,be.x,be.y,It.x,It.y,Ia);Me.fromArray(Ia),Me.scaleAndAdd(tt,o/Math.tan(Math.PI-e));var s=be.x!==fe.x?(Me.x-fe.x)/(be.x-fe.x):(Me.y-fe.y)/(be.y-fe.y);if(isNaN(s))return;s<0?se.copy(Me,fe):s>1&&se.copy(Me,be),Me.toArray(r[1])}}}}function D_(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,It.fromArray(r[0]),fe.fromArray(r[1]),be.fromArray(r[2]),se.sub(Lt,fe,It),se.sub(tt,be,fe);var n=Lt.len(),a=tt.len();if(!(n<.001||a<.001)){Lt.scale(1/n),tt.scale(1/a);var i=Lt.dot(e),o=Math.cos(t);if(i<o){var s=th(fe.x,fe.y,be.x,be.y,It.x,It.y,Ia);Me.fromArray(Ia);var l=Math.PI/2,u=Math.acos(tt.dot(e)),f=l+u-t;if(f>=l)se.copy(Me,be);else{Me.scaleAndAdd(tt,s/Math.tan(Math.PI/2-f));var c=be.x!==fe.x?(Me.x-fe.x)/(be.x-fe.x):(Me.y-fe.y)/(be.y-fe.y);if(isNaN(c))return;c<0?se.copy(Me,fe):c>1&&se.copy(Me,be)}Me.toArray(r[1])}}}}function Di(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;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 A_(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Ws(n[0],n[1]),i=Ws(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)*t,s=ti([],n[1],n[0],o/a),l=ti([],n[1],n[2],o/i),u=ti([],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 M_(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<va.length;l++){var u=va[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:j(a.states[u]&&a.states[u].ignore,s);if(v||!j(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Di(n,!0,u,f);continue}n||(n=new Na,r.setTextGuideLine(n),!c&&(s||!o)&&Di(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Di(n,!1,u,f)}}if(n){ve(n.style,t),n.style.fill=null;var p=i.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=p||!1,n.buildPath=A_}}function I_(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Ye.length;n++){var a=Ye[n];t[a]=r.getModel([a,e])}return t}var bu=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],L_=1,La=2,rh=L_|La;function ka(r,e,t){t=t||rh,e?r.dirty|=t:r.dirty&=~t}function nh(r,e){return e=e||rh,r.dirty==null||!!(r.dirty&e)}function Nt(r){if(r)return nh(r)&&ah(r,r.label,r),r}function ah(r,e,t){var n=e.getComputedTransform();r.transform=rs(r.transform,n);var a=r.localRect=cn(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=yr.textMargin);for(var c=0;c<4;c++)Ai[c]=f===yr.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===yr.textMargin&&_a(a,Ai,!1,!1);var h=r.rect=cn(r.rect,a);return n&&h.applyTransform(n),f===yr.minMargin&&_a(h,Ai,!1,!1),r.axisAligned=ts(n),(r.label=r.label||{}).ignore=e.ignore,ka(r,!1),ka(r,!0,La),r}var Ai=[0,0,0,0];function k_(r,e,t){return r.transform=rs(r.transform,t),r.localRect=cn(r.localRect,e),r.rect=cn(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=ts(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function P_(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function wu(r,e){for(var t=0;t<bu.length;t++){var n=bu[t];r[n]==null&&(r[n]=e[n])}return Nt(r)}function Cu(r){var e=r.obb;return(!e||nh(r,La))&&(r.obb=e=e||new kc,e.fromBoundingRect(r.localRect,r.transform),ka(r,!1,La)),e}function E_(r,e,t,n,a){var i=r.length,o=Mt[e],s=Sr[e];if(i<2)return!1;r.sort(function(w,A){return w.rect[o]-A.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],m,g;y(),m<0&&b(-m,.8),g<0&&b(g,.8),y(),_(m,g,1),_(g,m,-1),y(),m<0&&x(-m),g<0&&x(g);function y(){m=d.rect[o]-t,g=n-p.rect[o]-p.rect[s]}function _(w,A,D){if(w<0){var M=Math.min(A,-w);if(M>0){S(M*D,0,i);var T=M+w;T<0&&b(-T*D,1)}else b(-w*D,1)}}function S(w,A,D){w!==0&&(f=!0);for(var M=A;M<D;M++){var T=r[M],L=T.rect;L[o]+=w,T.label[o]+=w}}function b(w,A){for(var D=[],M=0,T=1;T<i;T++){var L=r[T-1].rect,I=Math.max(r[T].rect[o]-L[o]-L[s],0);D.push(I),M+=I}if(M){var P=Math.min(Math.abs(w)/M,A);if(w>0)for(var T=0;T<i-1;T++){var k=D[T]*P;S(k,0,T+1)}else for(var T=i-1;T>0;T--){var k=D[T-1]*P;S(-k,T,i)}}}function x(w){var A=w<0?-1:1;w=Math.abs(w);for(var D=Math.ceil(w/(i-1)),M=0;M<i-1;M++)if(A>0?S(D,0,M+1):S(-D,i-M-1,i),w-=D,w<=0)return}return f}function R_(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var a=Nt(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Rs(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function Rs(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:Cu(r).intersect(Cu(e),t,n)}var O_=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Ls(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new De,a=wr("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=wr(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=W.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(qe);function Os(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=br(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(br(r,e,t[o]));return i.join(" ")}}function ih(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!F(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Ns=(function(r){Z(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var l=wr(t,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=N_,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){pa(this.childAt(0))},e.prototype.downplay=function(){ga(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):Le(v,d,s,n),jo(v)}if(this._updateCommon(t,n,l,a,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ue(v,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.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||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.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=Cn(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=uv(t.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=t.getItemVisual(n,"style"),w=x.fill;if(s instanceof _n){var A=s.style;s.useStyle(G({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},x))}else s.__isEmptyBrush?s.useStyle(G({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=t.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var T=o&&o.useNameLabel;wn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(k){return T?t.getName(k):Os(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.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;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),ln(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Q(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ya(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ya(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Py(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e})(De);function N_(r,e){this.parent.drift(r,e)}function Mi(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Tu(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Du(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Cn(e),cursorStyle:e.get("cursor")}}var B_=(function(){function r(e){this.group=new De,this._SymbolCtor=e||Ns}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Tu(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Du(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||n.removeAll(),e.diff(i).add(function(c){var h=f(c);if(Mi(e,h,c,t)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Mi(e,d,c,t)){n.remove(v);return}var p=e.getItemVisual(c,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==p)n.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Le(v,g,a)}n.add(v),e.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=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Du(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=Tu(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Mi(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Ua(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r})();function oh(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=F_(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=Y(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Cr(e,c[0])&&(h=!0,c[0]=v),Cr(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function F_(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:ae(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function sh(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function V_(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function z_(r,e,t,n,a,i,o,s){for(var l=V_(r,e),u=[],f=[],c=[],h=[],v=[],d=[],p=[],m=oh(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var A=g[x],D=g[x+1],M=y[w],T=y[w+1];(isNaN(A)||isNaN(D))&&(A=M,D=T),u.push(A,D),f.push(M,T),c.push(t[x],t[x+1]),h.push(n[w],n[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=m.dataDimsForPoint,P=a.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(y[w],y[w+1]);var k=sh(m,a,e,L);c.push(k[0],k[1]),h.push(n[w],n[w+1]),p.push(e.getRawIndex(L));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(me,mt){return p[me]-p[mt]});for(var O=u.length,U=ht(O),E=ht(O),R=ht(O),V=ht(O),B=[],_=0;_<d.length;_++){var z=d[_],q=_*2,ue=z*2;U[q]=u[ue],U[q+1]=u[ue+1],E[q]=f[ue],E[q+1]=f[ue+1],R[q]=c[ue],R[q+1]=c[ue+1],V[q]=h[ue],V[q+1]=h[ue+1],B[_]=v[z]}return{current:U,next:E,stackedOnCurrent:R,stackedOnNext:V,status:B}}var Ct=Math.min,Tt=Math.max;function qt(r,e){return isNaN(r)||isNaN(e)}function To(r,e,t,n,a,i,o,s,l){for(var u,f,c,h,v,d,p=t,m=0;m<n;m++){var g=e[p*2],y=e[p*2+1];if(p>=a||p<0)break;if(qt(g,y)){if(l){p+=i;continue}break}if(p===t)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=e[b*2],w=e[b*2+1];x===g&&w===y&&m<n;)m++,b+=i,p+=i,x=e[b*2],w=e[b*2+1],g=e[p*2],y=e[p*2+1],_=g-u,S=y-f;var A=m+1;if(l)for(;qt(x,w)&&A<n;)A++,b+=i,x=e[b*2],w=e[b*2+1];var D=.5,M=0,T=0,L=void 0,I=void 0;if(A>=n||qt(x,w))v=g,d=y;else{M=x-u,T=w-f;var P=g-u,k=x-g,O=y-f,U=w-y,E=void 0,R=void 0;if(s==="x"){E=Math.abs(P),R=Math.abs(k);var V=M>0?1:-1;v=g-V*E*o,d=y,L=g+V*R*o,I=y}else if(s==="y"){E=Math.abs(O),R=Math.abs(U);var B=T>0?1:-1;v=g,d=y-B*E*o,L=g,I=y+B*R*o}else E=Math.sqrt(P*P+O*O),R=Math.sqrt(k*k+U*U),D=R/(R+E),v=g-M*o*(1-D),d=y-T*o*(1-D),L=g+M*o*D,I=y+T*o*D,L=Ct(L,Tt(x,g)),I=Ct(I,Tt(w,y)),L=Tt(L,Ct(x,g)),I=Tt(I,Ct(w,y)),M=L-g,T=I-y,v=g-M*E/R,d=y-T*E/R,v=Ct(v,Tt(u,g)),d=Ct(d,Tt(f,y)),v=Tt(v,Ct(u,g)),d=Tt(d,Ct(f,y)),M=g-v,T=y-d,L=g+M*R/E,I=y+T*R/E}r.bezierCurveTo(c,h,v,d,g,y),c=L,h=I}else r.lineTo(g,y)}u=g,f=y,p+=i}return m}var lh=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),G_=(function(r){Z(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:W.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new lh},e.prototype.buildPath=function(t,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+=To(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=vd.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?(t-s)/(v-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}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?Ys(s,v,p,g,t,f):Ys(l,d,m,y,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?Xs(l,d,m,y,w):Xs(s,v,p,g,w);return u?[t,S]:[S,t]}}s=g,l=y;break}}},e})(Be),H_=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(lh),U_=(function(r){Z(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new H_},e.prototype.buildPath=function(t,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=To(t,a,o,s,s,1,n.smooth,l,n.connectNulls);To(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(Be);function uh(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new _e({shape:{x:o,y:s,width:l,height:u}});if(e){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=K(a)?function(m){a(m,c)}:null;Ue(c,{shape:{width:l,height:u,x:o,y:s}},t,null,n,p)}return c}function ch(r,e,t){var n=r.getArea(),a=we(n.r0,1),i=we(n.r,1),o=new nr({shape:{cx:we(r.cx,1),cy:we(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ue(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function W_(r,e,t,n,a){if(r){if(r.type==="polar")return ch(r,e,t);if(r.type==="cartesian2d")return uh(r,e,t,n,a)}else return null;return null}function Bs(r,e){return r.type===e}function Au(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Mu(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function Iu(r,e){var t=Mu(r),n=t[0],a=t[1],i=Mu(e),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 Lu(r){return ae(r)?r:r?.5:0}function Y_(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=ht(n*2),i=0;i<n;i++){var o=sh(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Dt(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(a){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function X_(r,e){var t=[],n=r.length,a,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=hd(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>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function Z_(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.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=e.getAxis(a),u=Y(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=X_(u,a==="x"?t.getWidth():t.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";C(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 Lc(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=m,y}}}function $_(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&K_(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function K_(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Ns.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function q_(r,e){return isNaN(r)||isNaN(e)}function j_(r){for(var e=r.length/2;e>0&&q_(r[e*2-2],r[e*2-1]);e--);return e-1}function ku(r,e){return[r[e*2],r[e*2+1]]}function Q_(r,e,t){for(var n=r.length/2,a=t==="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<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function fh(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ye.length;e++)if(r.get([Ye[e],"endLabel","show"]))return!0;return!1}function Ii(r,e,t,n){if(Bs(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=fh(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=uh(e,t,n,function(){var v=r._endLabel;v&&t&&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 ch(e,t,n)}function J_(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.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 eS=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new De,n=new B_;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=ee(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,m=this._lineGroup,g=!n.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=oh(i,s,_),b=y&&Y_(i,s,S),x=t.get("showSymbol"),w=t.get("connectNulls"),A=x&&!c&&$_(t,s,i),D=this._data;D&&D.eachItemGraphicEl(function(me,mt){me.__temp&&(o.remove(me),D.setItemGraphicEl(mt,null))}),x||v.remove(),o.add(m);var M=c?!1:t.get("step"),T;i&&i.getArea&&t.get("clip",!0)&&(T=i.getArea(),T.width!=null?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var L=Z_(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&M===this._step))x&&v.updateData(s,{isIgnore:A,clipShape:T,disableAnimation:!0,getSymbolPoint:function(me){return[f[me*2],f[me*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,T),M&&(b&&(b=Dt(b,f,i,M,w)),f=Dt(f,null,i,M,w)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,er(L)),m.setClipPath(Ii(this,i,!0,t));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,er(L));var I=m.getClipPath();if(I){var P=Ii(this,i,!1,t);Ue(I,{shape:P.shape},t)}else m.setClipPath(Ii(this,i,!0,t));x&&v.updateData(s,{isIgnore:A,clipShape:T,disableAnimation:!0,getSymbolPoint:function(me){return[f[me*2],f[me*2+1]]}}),(!Au(this._stackedOnPoints,b)||!Au(this._points,f))&&(g?this._doUpdateAnimation(s,b,i,a,M,_,w):(M&&(b&&(b=Dt(b,f,i,M,w)),f=Dt(f,null,i,M,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var k=t.getModel("emphasis"),O=k.get("focus"),U=k.get("blurScope"),E=k.get("disabled");if(d.useStyle(ve(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),ma(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var R=d.getState("emphasis").style;R.lineWidth=+d.style.lineWidth+1}Q(d).seriesIndex=t.seriesIndex,ln(d,O,U,E);var V=Lu(t.get("smooth")),B=t.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:B,connectNulls:w}),p){var z=s.getCalculationInfo("stackedOnSeries"),q=0;p.useStyle(ve(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),z&&(q=Lu(z.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:q,smoothMonotone:B,connectNulls:w}),ma(p,t,"areaStyle"),Q(p).seriesIndex=t.seriesIndex,ln(p,O,U,E)}var ue=this._changePolyState;s.eachItemGraphicEl(function(me){me&&(me.onHoverStateChange=ue)}),this._polyline.onHoverStateChange=ue,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,n){Q(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=Jt(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=t.get("zlevel")||0,v=t.get("z")||0;u=new Ns(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 We.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=Jt(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else We.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;rl(this._polyline,t),n&&rl(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new G_({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new U_({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=K(c)?c(null):c;t.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 w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var A=K(c)?c(d):f*w+h,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:A}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(fh(t)){var o=t.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 Ee({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=j_(l);f>=0&&(wn(s,Cn(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?ih(o,v):Os(o,c)},enableTextSetter:!0},J_(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<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),w=g?"x":"y",A=Q_(c,S,w),D=A.range,M=D[1]-D[0],T=void 0;if(M>=1){if(M>1&&!v){var L=ku(c,D[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(T=h.getRawValue(D[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(T=qd(a,d,I,P,A.t))}i.lastFrameIndex=D[0]}else{var k=t===1||i.lastFrameIndex>0?D[0]:0,L=ku(c,k);o&&(T=h.getRawValue(k)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var O=Ya(u);typeof O.setLabelText=="function"&&O.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=z_(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(d=Dt(h.stackedOnCurrent,h.current,a,o,l),v=Dt(h.current,null,a,o,l),m=Dt(h.stackedOnNext,h.next,a,o,l),p=Dt(h.next,null,a,o,l)),Iu(v,p)>3e3||f&&Iu(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(),Le(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Le(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=t.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 w=u.shape.__points,A=0;A<y.length;A++){var D=y[A].el,M=y[A].ptIdx*2;D.x=w[M],D.y=w[M+1],D.markRedraw()}})},e.prototype.remove=function(t){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},e.type="line",e})(We);function tS(r,e){return{seriesType:r,plan:bs(),reset:function(t){var n=t.getData(),a=t.coordinateSystem;if(t.pipelineContext,!!a){var i=Y(a.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),o=i.length,s=n.getCalculationInfo("stackResultDimension");Cr(n,i[0])&&(i[0]=s),Cr(n,i[1])&&(i[1]=s);var l=n.getStore(),u=n.getDimensionIndex(i[0]),f=n.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=ht(v*o),p=[],m=[],g=c.start,y=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=a.dataToPoint(S,null,m)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=a.dataToPoint(p,null,m);d[y++]=_[0],d[y++]=_[1]}h.setLayout("points",d)}}}}}}var rS={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},nS=function(r){return Math.round(r.length/2)};function vh(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.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"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var d=void 0;H(i)?d=rS[i]:K(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,d,nS))}}}}}function Tb(r){r.registerChartView(eS),r.registerSeriesModel(O_),r.registerLayout(tS("line")),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vh("line"))}var Do=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Ls(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)C(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),m=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&!p&&(m+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===m){_=x;break}else if(w<m)y=x;else if(y!=null&&w>m){_=(x+y)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(qe);qe.registerClass(Do);var aS=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ls(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=df(Do.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:W.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Do),iS=(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})(),Pu=(function(r){Z(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new iS},e.prototype.buildPath=function(t,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?(t.moveTo(p*o+a,m*o+i),t.arc(p*u+a,m*u+i,l,-Math.PI+f,f,!h)):t.moveTo(p*s+a,m*s+i),t.arc(a,i,s,f,c,!h),t.arc(g*u+a,y*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(a,i,o,c,f,h)},e})(Be);function oS(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Hi(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=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),w="left",A="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),w="center",A="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),w="center",A="bottom";break;case"startAngle":b=f+d*_(p)+Zn(p,l+y,!1),x=c+d*S(p)+$n(p,l+y,!1),w="right",A="middle";break;case"insideStartAngle":b=f+d*_(p)+Zn(p,-l+y,!1),x=c+d*S(p)+$n(p,-l+y,!1),w="left",A="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),w="center",A="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),w="center",A="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),w="center",A="top";break;case"endAngle":b=f+d*_(m)+Zn(m,l+y,!0),x=c+d*S(m)+$n(m,l+y,!0),w="left",A="middle";break;case"insideEndAngle":b=f+d*_(m)+Zn(m,-l+y,!0),x=c+d*S(m)+$n(m,-l+y,!0),w="right",A="middle";break;default:return Hi(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=A,n}}function sS(r,e,t,n){if(ae(n)){r.setTextConfig({rotation:n});return}else if(F(e)){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=t(e);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 Zn(r,e,t){return e*Math.sin(r)*(t?-1:1)}function $n(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Zr(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Y(n,function(i){return Ui(i,a)})}}var Li=Math.max,ki=Math.min;function lS(r,e){var t=r.getArea&&r.getArea();if(Bs(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var uS=(function(r){Z(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){Ua(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=cS(t,u);v&&this._enableRealtimeSort(v,s,a);var d=t.get("clip",!0)||v,p=lS(u,s);o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function A(T){var L=Kn[u.type](s,T);if(!L)return null;var I=mS(u,c,L);return I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[T]=I,I}s.diff(l).add(function(T){var L=s.getItemModel(T),I=Kn[u.type](s,T,L);if(I&&(g&&A(T),!(!s.hasValue(T)||!Bu[u.type](I)))){var P=!1;d&&(P=Eu[u.type](p,I));var k=Ru[u.type](t,s,T,I,c,h,f.model,!1,m);v&&(k.forceLabelAnimation=!0),Fu(k,s,T,L,I,t,c,u.type==="polar"),x?k.attr({shape:I}):v?Ou(v,h,k,I,T,c,!1,!1):Ue(k,{shape:I},t,T),s.setItemGraphicEl(T,k),o.add(k),k.ignore=P}}).update(function(T,L){var I=s.getItemModel(T),P=Kn[u.type](s,T,I);if(P){if(g){var k=void 0;b.length===0?k=A(L):(k=b[L],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),S[T]=k);var O=Kn[u.type](s,T),U=dh(c,O,u);Le(k,{shape:U},h,T)}var E=l.getItemGraphicEl(L);if(!s.hasValue(T)||!Bu[u.type](P)){o.remove(E);return}var R=!1;d&&(R=Eu[u.type](p,P),R&&o.remove(E));var V=E&&(E.type==="sector"&&m||E.type==="sausage"&&!m);if(V&&(E&&jr(E,t,L),E=null),E?jo(E):E=Ru[u.type](t,s,T,P,c,h,f.model,!0,m),v&&(E.forceLabelAnimation=!0),w){var B=E.getTextContent();if(B){var z=Ya(B);z.prevValue!=null&&(z.prevValue=z.value)}}else Fu(E,s,T,I,P,t,c,u.type==="polar");x?E.attr({shape:P}):v?Ou(v,h,E,P,T,c,!0,w):Le(E,{shape:P},t,T,null),s.setItemGraphicEl(T,E),E.ignore=R,o.add(E)}}).remove(function(T){var L=l.getItemGraphicEl(T);L&&jr(L,t,T)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new De);D.removeAll();for(var M=0;M<S.length;++M)D.add(S[M]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),zu(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),zu(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&W_(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,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)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Y(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){jr(i,t,Q(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(We),Eu={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Li(e.x,r.x),s=ki(e.x+e.width,a),l=Li(e.y,r.y),u=ki(e.y+e.height,i),f=s<o,c=u<l;return e.x=f&&o>a?s:o,e.y=c&&l>i?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=ki(e.r,r.r),i=Li(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Ru={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new _e({shape:G({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?Pu:nr,f=new u({shape:n,z2:1});f.name="item";var c=hh(a);if(f.calculateTextPosition=oS(c,{isRoundCap:u===Pu}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?Le:Ue)(f,{shape:d},i)}return f}};function cS(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Ou(r,e,t,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?Le:Ue)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Le:Ue)(t,{shape:u},f,a)}function Nu(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var fS=["x","y","width","height"],vS=["cx","cy","r","startAngle","endAngle"],Bu={cartesian2d:function(r){return!Nu(r,fS)},polar:function(r){return!Nu(r,vS)}},Kn={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?dS(t,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,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function hS(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function hh(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function Fu(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Zr(n.getModel("itemStyle"),f,!0);G(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=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",d=Cn(n);wn(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Os(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var m=n.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,sS(r,m==="outside"?v:m,hh(o),n.get(["label","rotate"]))}jp(p,d,i.getRawValue(t),function(y){return ih(e,y)});var g=n.getModel(["emphasis"]);ln(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),ma(r,n),hS(a)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function dS(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var pS=(function(){function r(){}return r})(),Vu=(function(r){Z(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new pS},e.prototype.buildPath=function(t,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],t.rect(s[0],s[1],l[0],l[1])},e})(Be);function zu(r,e,t,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 Vu({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var c=new Vu({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,Q(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",Gu),c.on("mousemove",Gu)),t&&t.push(c)}var Gu=ws(function(r){var e=this,t=gS(e,r.offsetX,r.offsetY);Q(e).dataIndex=t>=0?t:null},30,!1);function gS(r,e,t){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]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function dh(r,e,t){if(Bs(t,"cartesian2d")){var n=e,a=t.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=t.getArea(),i=e;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 mS(r,e,t){var n=r.type==="polar"?nr:_e;return new n({shape:dh(e,t,r),silent:!0,z2:0})}function Db(r){r.registerChartView(uS),r.registerSeriesModel(aS),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,de(G0,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,H0("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vh("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var Hu=Math.PI*2,qn=Math.PI/180;function yS(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=kg(n,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-n.get("startAngle")*qn,v=n.get("endAngle"),d=n.get("padAngle")*qn;v=v==="auto"?h-Hu:-v*qn;var p=n.get("minAngle")*qn,m=p+d,g=0;a.each(i,function(U){!isNaN(U)&&g++});var y=a.getSum(i),_=Math.PI/(y||g)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var A=S?1:-1,D=[h,v],M=A*d/2;dd(D,!S),h=D[0],v=D[1];var T=ph(n);T.startAngle=h,T.endAngle=v,T.clockwise=S,T.cx=s,T.cy=l,T.r=u,T.r0=f;var L=Math.abs(v-h),I=L,P=0,k=h;if(a.setLayout({viewRect:c,r:u}),a.each(i,function(U,E){var R;if(isNaN(U)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?R=y===0&&x?_:U*_:R=L/g,R<m?(R=m,I-=m):P+=U;var V=k+A*R,B=0,z=0;d>R?(B=k+A*R/2,z=B):(B=k+M,z=V-M),a.setItemLayout(E,{angle:R,startAngle:B,endAngle:z,clockwise:S,cx:s,cy:l,r0:f,r:b?Yi(U,w,[f,u]):u}),k=V}),I<Hu&&g)if(I<=.001){var O=L/g;a.each(i,function(U,E){if(!isNaN(U)){var R=a.getItemLayout(E);R.angle=O;var V=0,B=0;O<d?(V=h+A*(E+1/2)*O,B=V):(V=h+A*E*O+M,B=h+A*(E+1)*O-M),R.startAngle=V,R.endAngle=B}})}else _=I/P,k=h,a.each(i,function(U,E){if(!isNaN(U)){var R=a.getItemLayout(E),V=R.angle===m?m:U*_,B=0,z=0;V<d?(B=k+A*V/2,z=B):(B=k+M,z=k+A*V-M),R.startAngle=B,R.endAngle=z,k+=A*V}})})}var ph=oe();function _S(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.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 SS=Math.PI/180;function Uu(r,e,t,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-t),b=n+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/g)*x)),A=e+(w+_.len2)*a,D=A-_.label.x,M=_.targetTextWidth-D*a;gh(_,M,!0),_.label.x=A}}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>t?g:m,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*a,w=n+_.len,A=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=A,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}E_(r,1,l,l+o)&&c(r)}function xS(r,e,t,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;Pi(r[h])||(v.x<e?(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(!Pi(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,m=void 0;d.labelAlignTo==="edge"?v.x<e?m=p[2][0]-d.labelDistance-o-d.edgeDistance:m=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?m=f-o-d.bleedMargin:m=o+a-c-d.bleedMargin:v.x<e?m=v.x-o-d.bleedMargin:m=o+a-v.x-d.bleedMargin,d.targetTextWidth=m,gh(d,m,!1)}}Uu(u,e,t,n,1,a,i,o,s,c),Uu(l,e,t,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!Pi(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<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(v.x<e?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 gh(r,e,t){if(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(e<f||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var h=e-l,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}mh(i,n)}}}function mh(r,e){Wu.rect=r,ah(Wu,e,bS)}var bS={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Wu={};function Pi(r){return r.position==="center"}function wS(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*SS,s=e.getLayout("viewRect"),l=e.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 w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),A=w.shape,D=w.getTextContent(),M=w.getTextGuideLine(),T=e.getItemModel(x),L=T.getModel("label"),I=L.get("position")||T.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),k=L.get("alignTo"),O=ie(L.get("edgeDistance"),u),U=L.get("bleedMargin");U==null&&(U=Math.min(u,h)>200?10:2);var E=T.getModel("labelLine"),R=E.get("length");R=ie(R,u);var V=E.get("length2");if(V=ie(V,u),Math.abs(A.endAngle-A.startAngle)<o){C(D.states,v),D.ignore=!0,M&&(C(M.states,v),M.ignore=!0);return}if(d(D)){var B=(A.startAngle+A.endAngle)/2,z=Math.cos(B),q=Math.sin(B),ue,me,mt,or;n=A.cx,a=A.cy;var yt=I==="inside"||I==="inner";if(I==="center")ue=A.cx,me=A.cy,or="center";else{var Ir=(yt?(A.r+A.r0)/2*z:A.r*z)+n,Lr=(yt?(A.r+A.r0)/2*q:A.r*q)+a;if(ue=Ir+z*3,me=Lr+q*3,!yt){var An=Ir+z*(R+l-A.r),Mn=Lr+q*(R+l-A.r),In=An+(z<0?-1:1)*V,Vt=Mn;k==="edge"?ue=z<0?f+O:f+u-O:ue=In+(z<0?-P:P),me=Vt,mt=[[Ir,Lr],[An,Mn],[In,Vt]]}or=yt?"center":k==="edge"?z>0?"right":"left":z>0?"left":"right"}var _t=Math.PI,st=0,kr=L.get("rotate");if(ae(kr))st=kr*(_t/180);else if(I==="center")st=0;else if(kr==="radial"||kr===!0){var Xh=z<0?-B+_t:-B;st=Xh}else if(kr==="tangential"&&I!=="outside"&&I!=="outer"){var sr=Math.atan2(z,q);sr<0&&(sr=_t*2+sr);var Zh=q>0;Zh&&(sr=_t+sr),st=sr-_t}if(i=!!st,D.x=ue,D.y=me,D.rotation=st,D.setStyle({verticalAlign:"middle"}),yt){D.setStyle({align:or});var Ja=D.states.select;Ja&&(Ja.x+=D.x,Ja.y+=D.y)}else{var Qa=new Re(0,0,0,0);mh(Qa,D),t.push({label:D,labelLine:M,position:I,len:R,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new se(z,q),linePoints:mt,textAlign:or,labelDistance:P,labelAlignTo:k,edgeDistance:O,bleedMargin:U,rect:Qa,unconstrainedWidth:Qa.width,labelStyleWidth:D.style.width})}w.setTextConfig({inside:yt})}}),!i&&r.get("avoidLabelOverlap")&&xS(t,n,a,l,u,h,f,c);for(var p=0;p<t.length;p++){var m=t[p],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(C(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?(C(y.states,v),y.ignore=!0):(T_(b,m.minTurnAngle),D_(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new se(b[0][0],b[0][1])})}}}var CS=(function(r){Z(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new Ee;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),c=G(Zr(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?(Ue(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,Ue(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ue(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Le(o,{shape:{endAngle:f.endAngle}},s,n))}else jo(o),Le(o,{shape:c},s,n);o.useStyle(t.getItemVisual(n,"style")),ma(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,t,n),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Zr(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:p,y:m,shape:Zr(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Zr(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&G(y.ensureState("select"),{x:p,y:m}),G(_.ensureState("select"),{x:p,y:m}),ln(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,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;wn(i,Cn(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Na,this.setTextGuideLine(v)),M_(this,I_(o),{stroke:u,opacity:zo(s.get(["lineStyle","opacity"]),f,1)})}},e})(nr),TS=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.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&&t.get("showEmptyCircle")){var h=ph(t),v=new nr({shape:J(h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new CS(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var m=s.getItemGraphicEl(p);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var p=s.getItemGraphicEl(d);jr(p,t,d)}).execute(),wS(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(We);function DS(r,e,t){e=F(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Ov(n,e).dimensions,i=new Rv(a,r);return i.initData(n,t),i}var AS=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),MS=oe(),yh=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new AS(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return DS(this,{coordDimensions:["value"],encodeDefaulter:de(Vg,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=MS(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Md(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Zi(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(qe);Cg({fullType:yh.type,getCoord2:function(r){return r.getShallow("center")}});function IS(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ae(o)&&!isNaN(o)&&o<0)})}}}function Ab(r){r.registerChartView(TS),r.registerSeriesModel(yh),by("pie",r.registerAction),r.registerLayout(de(yS,"pie")),r.registerProcessor(_S("pie")),r.registerProcessor(IS("pie"))}var _h={left:0,right:0,top:0,bottom:0},Pa=["25%","25%"],LS=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=Tn(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&Ot(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Ot(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:_h,outerBoundsContain:"all",outerBoundsClampWidth:Pa[0],outerBoundsClampHeight:Pa[1],backgroundColor:W.color.transparent,borderWidth:1,borderColor:W.color.neutral30},e})(te),Ao=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ge).models[0]},e.type="cartesian2dAxis",e})(te);Bt(Ao,u_);var Sh={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:W.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:W.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:W.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[W.color.backgroundTint,W.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:W.color.neutral00,borderColor:W.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},kS=ne({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Sh),Fs=ne({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:W.color.axisMinorSplitLine,width:1}}},Sh),PS=ne({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Fs),ES=ve({logBase:10},Fs);const RS={category:kS,value:Fs,time:PS,log:ES};var OS={value:1,category:1,time:1,log:1},NS=null;function BS(){return NS}function Yu(r,e,t,n){C(OS,function(a,i){var o=ne(ne({},RS[i],!0),n,!0),s=(function(l){Z(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=fn(this),v=h?Tn(f):{},d=c.getTheme();ne(f,d.get(i+"Axis")),ne(f,this.getDefaultOption()),f.type=Xu(f),h&&Ot(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=bo.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.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",Xu)}function Xu(r){return r.type||(r.data?"category":"value")}var FS=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return Y(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Te(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),Mo=["x","y"];function Zu(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var VS=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Mo,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Zu(t)||!Zu(n))){var a=t.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=Bo([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new Re(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return jt(a,t,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},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[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},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return jt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new Re(i,o,s,l)},e})(FS),zS=(function(r){Z(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(w_),GS="expandAxisBreak",kt=Math.PI,HS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],US=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],mn=oe(),xh=oe(),bh=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r})();function WS(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=Vs(r.axisName)&&Dr(r.nameLocation);C(n,function(d){var p=Nt(d);if(!(!p||p.label.ignore)){o.push(p);var m=i.transGroup;l&&(m.transform?Bo(Gr,m.transform):Cc(Gr),p.transform&&Tc(Gr,Gr,p.transform),Re.copy(jn,p.localRect),jn.applyTransform(Gr),s?s.union(jn):Re.copy(s=new Re(0,0,0,0),jn))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Re(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Gr=Oa(),jn=new Re(0,0,0,0),wh=function(r,e,t,n,a,i){if(Dr(r.nameLocation)){var o=i.stOccupiedRect;o&&Ch(k_({},o,i.transGroup.transform),n,a)}else Th(i.labelInfoList,i.dirVec,n,a)};function Ch(r,e,t){var n=new se;Rs(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&P_(e,n)}function Th(r,e,t,n){for(var a=se.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||Ch(s,t,n)}}var Et=(function(){function r(e,t,n,a){this.group=new De,this._axisModel=e,this._api=t,this._local={},this._shared=a||new bh(wh),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=j(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=j(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:j(e.nameDirection,1),tickDirection:j(e.tickDirection,1),labelDirection:j(e.labelDirection,1),labelOffset:j(e.labelOffset,0),silent:j(e.silent,!0),axisName:a,nameLocation:zo(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Vs(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new De({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new se(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(YS,function(a){e[a]&&XS[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=Bc(t-e),i,o;return ca(a)?(o=n>0?"top":"bottom",i="center"):ca(a-kt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<kt?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),YS=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],XS={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(jt(f,f,u),jt(c,c,u));var v=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())BS().buildAxisBreakLine(n,a,i,d);else{var p=new Qt(G({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));un(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var g=n.get(["axisLine","symbolSize"]);H(m)&&(m=[m,m]),(H(g)||ae(g))&&(g=[g,g]);var y=uv(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];C([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(m[x]!=="none"&&m[x]!=null){var w=wr(m[x],-_/2,-S/2,_,S,v.stroke,!0),A=b.r+b.offset,D=h?c:f;w.attr({rotation:b.rotate,x:D[0]+A*Math.cos(r.rotation),y:D[1]-A*Math.sin(r.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var l=Ku(e,a,s);l&&$u(r,e,t,n,a,i,o,je.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=Ku(e,a,s);l&&$u(r,e,t,n,a,i,o,je.determine);var u=qS(r,a,i,n);KS(r,e.labelLayoutList,u),jS(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Vs(u)){var f=r.nameLocation,c=r.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new se(0,0),g=new se(0,0);f==="start"?(m.x=d[0]-p*v,g.x=-p):f==="end"?(m.x=d[1]+p*v,g.x=p):(m.x=(d[0]+d[1])/2,m.y=r.labelOffset+c*v,g.y=c);var y=Oa();g.transform(Oc(y,y,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*kt/180);var S,b;Dr(f)?S=Et.innerTextLayout(r.rotation,_??r.rotation,c):(S=ZS(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=n.get("nameTruncate",!0)||{},A=w.ellipsis,D=ua(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,T=new Ee({x:m.x,y:m.y,rotation:S.rotation,silent:Et.isLabelSilent(n),style:xr(h,{text:u,font:x,overflow:"truncate",width:D,ellipsis:A,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Ha({el:T,componentModel:n,itemName:u}),T.__fullText=u,T.anid="name",n.get("triggerEvent")){var L=Et.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,Q(T).eventData=L}i.add(T),T.updateTransform(),e.nameEl=T;var I=l.nameLayout=Nt({label:T,priority:T.z2,defaultAttr:{ignore:T.ignore},marginDefault:Dr(f)?HS[M]:US[M]});if(l.nameLocation=f,a.add(T),T.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,I,g,P)}}}};function $u(r,e,t,n,a,i,o,s){Ah(e)||QS(r,e,a,s,n,o);var l=e.labelLayoutList;JS(r,n,l,i),r.rotation;var u=r.optionHideOverlap;$S(n,l,u),u&&R_(Te(l,function(f){return f&&!f.label.ignore})),WS(r,t,n,l)}function ZS(r,e,t,n){var a=Bc(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return ca(a-kt/2)?(o=l?"bottom":"top",i="center"):ca(a-kt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<kt*1.5&&a>kt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function $S(r,e,t){if(Xv(r.axis))return;function n(s,l,u){var f=Nt(e[l]),c=Nt(e[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){$r(f.label);return}if(c.suggestIgnore){$r(c.label);return}var h=.1;if(!t){var v=[0,0,0,0];f=wu({marginForce:v},f),c=wu({marginForce:v},c)}Rs(f,c,null,{touchThreshold:h})&&$r(s?c.label:f.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function KS(r,e,t){r.showMinorTicks||C(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=xh(i),s=mn(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){$r(i);return}}})}function $r(r){r&&(r.ignore=!0)}function Dh(r,e,t,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]=t,e&&(jt(o,o,e),jt(s,s,e));var f=new Qt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});un(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var c=xh(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function qS(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),f=Dh(u,t.transform,l,ve(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function jS(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=ve(l.getLineStyle(),ve(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=Dh(s[c],t.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function Ku(r,e,t){if(Ah(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),Io(r,null,null,null))}return!0}function QS(r,e,t,n,a,i){var o=a.axis,s=ua(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new De;t.add(l);var u=Ma(n);if(!s||o.scale.isBlank()){Io(e,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),h=(ua(r.raw.labelRotate,f.get("rotate"))||0)*kt/180,v=Et.innerTextLayout(r.rotation,h,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],m=a.get("triggerEvent"),g=1/0,y=-1/0;C(c,function(S,b){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,A=S.formattedLabel,D=S.rawLabel,M=f;if(d&&d[w]){var T=d[w];X(T)&&T.textStyle&&(M=new le(T.textStyle,f,a.ecModel))}var L=M.getTextColor()||a.get(["axisLine","lineStyle","color"]),I=M.getShallow("align",!0)||v.textAlign,P=j(M.getShallow("alignMinLabel",!0),I),k=j(M.getShallow("alignMaxLabel",!0),I),O=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||v.textVerticalAlign,U=j(M.getShallow("verticalAlignMinLabel",!0),O),E=j(M.getShallow("verticalAlignMaxLabel",!0),O),R=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);g=Math.min(g,R),y=Math.max(y,R);var V=new Ee({x:0,y:0,rotation:0,silent:Et.isLabelSilent(a),z2:R,style:xr(M,{text:A,align:b===0?P:b===c.length-1?k:I,verticalAlign:b===0?U:b===c.length-1?E:O,fill:K(L)?L(o.type==="category"?D:o.type==="value"?w+"":w,b):L})});V.anid="label_"+w;var B=mn(V);if(B.break=S.break,B.tickValue=w,B.layoutRotation=v.rotation,Ha({el:V,componentModel:a,itemName:A,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:D,tickIndex:b}}),m){var z=Et.makeAxisEventDataBase(a);z.targetType="axisLabel",z.value=D,z.tickIndex=b,S.break&&(z.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(z.dataIndex=w),Q(V).eventData=z,S.break&&tx(a,i,V,S.break)}p.push(V),l.add(V)});var _=Y(p,function(S){return{label:S,priority:mn(S).break?S.z2+(y-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});Io(e,_,l,u)}function Ah(r){return!!r.labelLayoutList}function Io(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function JS(r,e,t,n){var a=e.get(["axisLabel","margin"]);C(t,function(i,o){var s=Nt(i);if(s){var l=s.label,u=mn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Zs(ct,ex),ct.x=e.axis.dataToCoord(u.tickValue),ct.y=r.labelOffset+r.labelDirection*a,ct.rotation=u.layoutRotation,n.add(ct),ct.updateTransform(),n.remove(ct),ct.decomposeTransform(),Zs(l,ct),l.markRedraw(),ka(s,!0),Nt(s)}})}var ct=new _e,ex=new _e;function Vs(r){return!!r}function tx(r,e,t,n){t.on("click",function(a){var i={type:GS,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function Ea(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}a.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ua(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function rx(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function qu(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Ge).models[0];e[n]=i}),e}function nx(r,e,t,n,a,i){for(var o=Ea(r,t),s=!1,l=!1,u=0;u<e.length;u++)So(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Et(t,n,o,a)}function ax(r,e,t){var n=Ea(e,t);r.updateCfg(n)}function ix(r,e,t){var n=Tr.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,{expandToNicedExtent:!0}),o=a.length-1,s=n.getInterval.call(t),l=Yv(r,e),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=xo(r.base,u,!0)),r.setBreaksFromOption(Zv(e)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(r);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(r),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=Ci(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=Ci(v),d=u[1]-v*o;else{var m=r.getTicks().length-1;m>o&&(v=Ci(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=we(p-g),d<0&&u[0]>=0?(d=0,p=we(g)):p>0&&u[1]<=0&&(p=0,d=-we(g))}var y=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(r,d+v*y,p+v*_),n.setInterval.call(r,v),(y||_)&&n.setNiceExtent.call(r,d+v,p-v)}var ju=[[3,1],[0,2]],ox=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Mo,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Qe(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;So(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(yu(p,d),So(p)&&(s=v))}f.length&&(s||(s=f.pop(),yu(s.scale,s.model)),C(f,function(m){ix(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};C(n.x,function(o){Qu(n,"y",o,i)}),C(n.y,function(o){Qu(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=ps(e,t),i=this._rect=tr(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Mh(o,i),!n){var u=lx(i,s,o,l,t),f=void 0;if(l)f=tc(i.clone(),"axisLabel",null,i,o,u,a);else{var c=ux(e,i,a),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=tc(h,v,d,i,o,u,a))}Ih(i,o,je.determine,null,f,a)}C(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}X(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ge).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ge).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,ge(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(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(f,c){C(s.y,function(h,v){var d="x"+c+"y"+v,p=new VS(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(Ei(c,e)){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 zS(f,o_(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(e,t){C(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)}}),e.eachSeries(function(a){if(rx(a)){var i=qu(a),o=i.xAxisModel,s=i.yAxisModel;if(!Ei(o,t)||!Ei(s,t))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){C(l_(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return C(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);ge(t,i)<0&&t.push(i),ge(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){Ag({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=qu(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},r.dimensions=Mo,r})();function Ei(r,e){return r.getCoordSysModel()===e}function Qu(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Ju(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Ju(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Ju(r){return r&&r.type!=="category"&&r.type!=="time"&&s_(r)}function sx(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function Mh(r,e){C(r.x,function(t){return ec(t,e.x,e.width)}),C(r.y,function(t){return ec(t,e.y,e.height)})}function ec(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),sx(r,e)}function tc(r,e,t,n,a,i,o){Ih(n,a,je.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=pd(s,function(h){return h>0})==null;return _a(n,s,!0,!0,t),Mh(a,n),l;function u(h){C(a[Mt[h]],function(v){if(gn(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var m=0;m<p.length;m++){var g=p[m],y=v.scale.normalize(mn(g.label).tickValue);y=h===1?1-y:y,f(g.rect,h,y),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=Dr(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[Mt[v]]-h[Mt[v]],m=h[Sr[v]]+h[Mt[v]]-(r[Sr[v]]+r[Mt[v]]);p=c(p,1-d),m=c(m,d);var g=ju[v][0],y=ju[v][1];s[g]=Oe(s[g],p),s[y]=Oe(s[y],m)}function c(h,v){return h>0&&!la(v)&&v>1e-4&&(h/=v),h}}function lx(r,e,t,n,a){var i=new bh(cx);return C(t,function(o){return C(o,function(s){if(gn(s.model)){var l=!n;s.axisBuilder=nx(r,e,s.model,a,i,l)}})}),i}function Ih(r,e,t,n,a,i){var o=t===je.determine;C(e,function(u){return C(u,function(f){gn(f.model)&&(ax(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Mt[1-u]]=r[Sr[u]]<=i.refContainer[Sr[u]]*.5?0:1-u===1?2:1}C(e,function(u,f){return C(u,function(c){gn(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function ux(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=tr(r.get("outerBounds",!0)||_h,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ge(["all","axisLabel"],i)<0?o="all":o=i;var s=[Xi(j(r.get("outerBoundsClampWidth",!0),Pa[0]),e.width),Xi(j(r.get("outerBoundsClampHeight",!0),Pa[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var cx=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";wh(r,e,t,n,a,i),Dr(r.nameLocation)||C(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Th(s.labelInfoList,s.dirVec,n,a)})};function fx(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return vx(t,r,e),t.seriesInvolved&&dx(t,r),t}function vx(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];C(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=yn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(C(s.getAxes(),de(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)&&C(d.baseAxes,de(p,v?"cross":!0,h)),v&&C(d.otherAxes,de(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!m&&!Lo(_))){g==null&&(g=_.get("triggerTooltip")),_=m?hx(y,c,a,e,m,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=yn(y.model),A=g||b||y.type==="category",D=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:A,snap:b,useHandle:Lo(_),seriesModels:[],linkGroup:null};u[w]=D,r.seriesInvolved=r.seriesInvolved||A;var M=px(i,y);if(M!=null){var T=o[M]||(o[M]={axesInfo:{}});T.axesInfo[w]=D,T.mapper=i[M].mapper,D.linkGroup=T}}}})}function hx(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(h){l[h]=J(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??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ve(u,c.textStyle)}}return r.model.getModel("axisPointer",new le(l,t,n))}function dx(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||C(r.coordSysAxesInfo[yn(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function px(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Ri(i[n+"AxisId"],t.id)||Ri(i[n+"AxisIndex"],t.componentIndex)||Ri(i[n+"AxisName"],t.name))return a}}function Ri(r,e){return r==="all"||F(r)&&ge(r,e)>=0||r===e}function gx(r){var e=zs(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=Lo(t);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=e.axis.scale.isBlank()?"hide":"show")}}function zs(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[yn(r)]}function mx(r){var e=zs(r);return e&&e.axisPointerModel}function Lo(r){return!!r.get(["handle","show"])}function yn(r){return r.type+"||"+r.id}var rc={},Lh=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&gx(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=mx(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){rc[t]=n},e.getAxisPointerClass=function(t){return t&&rc[t]},e.type="axis",e})(ot),ko=oe();function yx(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=ko(r).splitAreaColors,h=$(),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=F(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 w=u[d-1].tickValue;w!=null&&h.set(w,v),e.add(new _e({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:ve({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}ko(r).splitAreaColors=h}}}function _x(r){ko(r).splitAreaColors=null}var Sx=["splitArea","splitLine","minorSplitLine","breakArea"],kh=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new De,this.group.add(this._axisGroup),!!gn(t)){this._axisGroup.add(t.axis.axisBuilder.group),C(Sx,function(l){t.get([l,"show"])&&xx[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||sf(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){_x(this)},e.type="cartesianAxis",e})(Lh),xx={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=F(l)?l:[l];for(var c=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=i.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;h?(p[0]=_,p[1]=c.y,m[0]=_,m[1]=c.y+c.height):(p[0]=c.x,p[1]=_,m[0]=c.x+c.width,m[1]=_);var b=v++%l.length,x=new Qt({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:ve({stroke:l[b]},g),silent:!0});un(x.shape,g.lineWidth),e.add(x)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var m=i.toGlobalCoord(f[d][p].coord);u?(c[0]=m,c[1]=l.y,h[0]=m,h[1]=l.y+l.height):(c[0]=l.x,c[1]=m,h[0]=l.x+l.width,h[1]=m);var g=new Qt({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});un(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,n,a){yx(r,e,t,n)},breakArea:function(r,e,t,n,a){t.axis.scale}},Ph=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(kh),bx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ph.type,t}return e.type="yAxis",e})(kh),wx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new _e({shape:t.coordinateSystem.getRect(),style:ve({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(ot),nc={offset:0};function Cx(r){r.registerComponentView(wx),r.registerComponentModel(LS),r.registerCoordinateSystem("cartesian2d",ox),Yu(r,"x",Ao,nc),Yu(r,"y",Ao,nc),r.registerComponentView(Ph),r.registerComponentView(bx),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Zt=oe(),ac=J,Oi=ee,Tx=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new De,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=de(ic,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}sc(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.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=zs(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=Zt(e).pointerEl=new Xp[i.type](ac(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=Zt(e).labelEl=new Ee(ac(t.label));e.add(i),oc(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=Zt(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=Zt(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),oc(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.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=es(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gd(u.event)},onmousedown:Oi(this._onHandleDragMove,this,0,0),drift:Oi(this._onHandleDragMove,this),ondragend:Oi(this._onHandleDragEnd,this)}),n.add(a)),sc(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");F(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,tv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){ic(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ni(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Ni(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Ni(a)),Zt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),co(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function ic(r,e,t,n){Eh(Zt(t).lastProp,n)||(Zt(t).lastProp=n,e?Le(t,n,r):(t.stopAnimation(),t.attr(n)))}function Eh(r,e){if(X(r)&&X(e)){var t=!0;return C(e,function(n,a){t=t&&Eh(r[a],n)}),!!t}else return r===e}function oc(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Ni(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function sc(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function Dx(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function Ax(r,e,t,n,a){var i=t.get("value"),o=Rh(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=$a(s.get("padding")||0),u=s.getFont(),f=Rc(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),Mx(c,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:xr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Mx(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Rh(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Aa(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),H(o)?i=o.replace("{value}",i):K(o)&&(i=o(s))}return i}function Oh(r,e,t){var n=Oa();return Oc(n,n,t.rotation),md(n,n,t.position),Jo([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function Ix(r,e,t,n,a,i){var o=Et.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),Ax(e,n,a,i,{position:Oh(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Lx(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function kx(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}var Px=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=lc(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Dx(i),v=Ex[u](s,c,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=Ea(l.getRect(),a);Ix(n,t,d,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=Ea(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Oh(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=lc(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.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:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(Tx);function lc(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Ex={line:function(r,e,t){var n=Lx([e,t[0]],[e,t[1]],uc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:kx([e-n/2,t[0]],[n,a],uc(r))}}};function uc(r){return r.dim==="x"?0:1}var Rx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:W.color.border,width:1,type:"dashed"},shadowStyle:{color:W.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:W.color.neutral00,padding:[5,7,5,7],backgroundColor:W.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:W.color.accent40,throttle:40}},e})(te),dt=oe(),Ox=C;function Nh(r,e,t){if(!pe.node){var n=e.getZr();dt(n).records||(dt(n).records={}),Nx(n,e);var a=dt(n).records[r]||(dt(n).records[r]={});a.handler=t}}function Nx(r,e){if(dt(r).initialized)return;dt(r).initialized=!0,t("click",de(cc,"click")),t("mousemove",de(cc,"mousemove")),t("globalout",Fx);function t(n,a){r.on(n,function(i){var o=Vx(e);Ox(dt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Bx(o.pendings,e)})}}function Bx(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Fx(r,e,t){r.handler("leave",null,t)}function cc(r,e,t,n){e.handler(r,t,n)}function Vx(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function Po(r,e){if(!pe.node){var t=e.getZr(),n=(dt(t).records||{})[r];n&&(dt(t).records[r]=null)}}var zx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Nh("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})})},e.prototype.remove=function(t,n){Po("axisPointer",n)},e.prototype.dispose=function(t,n){Po("axisPointer",n)},e.type="axisPointer",e})(ot);function Bh(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Jt(i,r);if(o==null||o<0||F(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=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),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(Y(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var fc=oe();function Gx(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ee(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){oa(a)&&(a=Bh({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=oa(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||oa(a),h={},v={},d={list:[],map:{}},p={showPointer:de(Ux,v),showTooltip:de(Wx,d)};C(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);C(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,w=$x(u,S);if(!c&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=x.pointToData(a)),A!=null&&vc(S,A,p,!1,h)}})});var m={};return C(f,function(g,y){var _=g.linkGroup;_&&!v[y]&&C(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var w=x.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,hc(S),hc(g)))),m[g.key]=w}})}),C(m,function(g,y){vc(f[y],g,p,!0,h)}),Yx(v,f,h),Xx(d,a,r,o),Zx(f,o,t),h}}function vc(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Hx(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Hx(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(n,f[0],r,t.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),C(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Ux(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function Wx(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=yn(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 Yx(r,e,t){var n=t.axesInfo=[];C(e,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 Xx(r,e,t,n){if(oa(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Zx(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=fc(n)[a]||{},o=fc(n)[a]={};C(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&C(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];C(i,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $x(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function hc(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function oa(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Fh(r){Lh.registerAxisPointerClass("CartesianAxisPointer",Px),r.registerComponentModel(Rx),r.registerComponentView(zx),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!F(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fx(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Gx)}function Mb(r){rr(Cx),rr(Fh)}function Kx(r,e){var t=$a(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new _e({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var qx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:W.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:W.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:W.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:W.color.tertiary,fontSize:14}},e})(te);function Vh(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function zh(r){if(pe.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var Gh=zh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),jx=zh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Hh(r,e){if(!r)return e;e=Tf(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Qx(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var Jx=Hh(jx,"transition"),Gs=Hh(Gh,"transform"),eb="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(pe.transform3dSupported?"will-change:transform;":"");function tb(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function rb(r,e,t){if(!H(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=er(e);var i=tb(t),o=Math.max(Math.round(a)*1.5,6),s="",l=Gs+":",u;ge(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var 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=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function nb(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(pe.transformSupported?""+Gs+a:",left"+a+",top"+a)),Jx+":"+i}function dc(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!pe.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=pe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+Gs+":"+o+";":[["top",0],["left",0],[Gh,o]]}function ab(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=j(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),C(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function ib(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=Jf(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+v),e&&i>0&&a.push(nb(i,t,n)),o&&a.push("background-color:"+o),C(["width","color","radius"],function(d){var p="border-"+d,m=Tf(p),g=r.get(m);g!=null&&a.push(p+":"+g+(d==="color"?"":"px"))}),a.push(ab(c)),h!=null&&a.push("padding:"+$a(h).join("px ")+"px"),a.join(";")+";"}function pc(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&_d(r,o,t,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]/e.getWidth(),r[3]=r[1]/e.getHeight()}var ob=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,pe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(H(i)?document.querySelector(i):$s(i)?i:K(i)&&i(e.getDom()));pc(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();yd(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Qx(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=eb+ib(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+dc(i[0],i[1],!0)+("border-color:"+er(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(H(i)&&n.get("trigger")==="item"&&!Vh(n)&&(s=rb(n,a,i)),H(e))o.innerHTML=e+s;else if(e){o.innerHTML="",F(e)||(e=[e]);for(var l=0;l<e.length;l++)$s(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(pc(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=dc(n[0],n[1]);C(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",pe.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Sd(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r})(),sb=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),mc(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;X(e)&&Pe(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ee({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Jf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),C(["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(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=gc(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;mc(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=At(i.borderWidth||0),s=gc(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function At(r){return Math.max(0,r)}function gc(r){var e=At(r.shadowBlur||0),t=At(r.shadowOffsetX||0),n=At(r.shadowOffsetY||0);return{left:At(e-t),right:At(e+t),top:At(e-n),bottom:At(e+n)}}function mc(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var lb=new _e({shape:{x:-1,y:-1,width:2,height:2}}),ub=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(pe.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=Kd(a.get("renderMode"));this._tooltipContent=i==="richText"?new sb(n):new ob(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(pe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?tv(this,"_updatePosition",50,"fixRate"):co(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");Nh("itemTooltip",this._api,ee(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.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(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||pe.node||!a.getDom())){var o=yc(i,a);this._ticket="";var s=i.dataByCoordSys,l=hb(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=lb;f.x=i.x,f.y=i.y,f.update(),Q(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(t,n,a,i))return;var c=Bh(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))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(yc(i,a))},e.prototype._manuallyAxisShowTip=function(t,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=Hr([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}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=Q(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Xr(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(Q(f).dataIndex!=null?l=f:Q(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=ee(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Hr([n.tooltipOption],i),l=this._renderMode,u=[],f=hn("section",{blocks:[],noHeader:!0}),c=[],h=new hi;C(t,function(y){C(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Rh(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=hn("section",{header:x,noHeader:!Sn(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(A){var D=a.getSeriesByIndex(A.seriesIndex),M=A.dataIndexInside,T=D.getDataParams(M);if(!(T.dataIndex<0)){T.axisDim=_.axisDim,T.axisIndex=_.axisIndex,T.axisType=_.axisType,T.axisId=_.axisId,T.axisValue=Aa(S.axis,{value:b}),T.axisValueLabel=x,T.marker=h.makeTooltipMarker("item",er(T.color),l);var L=Fl(D.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=Hr([D],i).get("valueFormatter");w.blocks.push(P?G({valueFormatter:P},I):I)}L.text&&c.push(L.text),u.push(T)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=Ul(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?`
|
|
21
|
+
|
|
22
|
+
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,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)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=Q(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=t.positionDefault,p=Hr([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 hi;g.marker=y.makeTooltipMarker("item",er(g.color),v);var _=Fl(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?Ul(b?G({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,g,A,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=Q(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=J(l),l.content=ke(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=t.positionDefault,d=Hr(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),m=Math.random()+"",g=new hi;this._showOrMove(d,function(){var y=J(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,m,t.offsetX,t.offsetY,t.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(H(h)){var m=t.ecModel.get("useUTC"),g=F(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,y&&(v=Za(g.axisValue,v,m)),v=Df(v,a,!0)}else if(K(h)){var _=ee(function(S,b){S===this._ticket&&(c.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||F(n))return{color:i||o};if(!F(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),K(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),F(n))a=ie(n[0],u),i=ie(n[1],f);else if(X(n)){var p=n;p.width=c[0],p.height=c[1];var m=tr(p,{width:u,height:f});a=m.x,i=m.y,h=null,v=null}else if(H(n)&&l){var g=vb(n,d,c,t.get("borderWidth"));a=g[0],i=g[1]}else{var g=cb(a,i,o,u,f,h?null:20,v?null:20);a=g[0],i=g[1]}if(h&&(a-=_c(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=_c(v)?c[1]/2:v==="bottom"?c[1]:0),Vh(t)){var g=fb(a,i,o,u,f);a=g[0],i=g[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&C(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&C(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&&C(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&C(h.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){pe.node||!n.getDom()||(co(this,"_updatePosition"),this._tooltipContent.dispose(),Po("itemTooltip",n))},e.type="tooltip",e})(ot);function Hr(r,e,t){var n=e.ecModel,a;t?(a=new le(t,n,n),a=new le(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof le&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(a=new le(o,a,n)))}return a}function yc(r,e){return r.dispatchAction||ee(e.dispatchAction,e)}function cb(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function fb(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function vb(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function _c(r){return r==="center"||r==="middle"}function hb(r,e,t){var n=Uo(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=bn(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Q(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function Ib(r){rr(Fh),r.registerComponentModel(qx),r.registerComponentView(ub),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}var db=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Eo=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),F(n)&&C(n,function(i,o){H(i)&&(i={type:i}),n[o]=ne(i,db(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Ho(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=$(),s=Y(i,function(l){return(H(l)||ae(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new le(l,this,this.ecModel))},this);this._data=Te(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;C(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;C(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;C(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&ge(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:W.size.m,align:"auto",backgroundColor:W.color.transparent,borderColor:W.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:W.color.disabled,inactiveBorderColor:W.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:W.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:W.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:W.color.tertiary,borderWidth:1,borderColor:W.color.border},emphasis:{selectorLabel:{show:!0,color:W.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(te),mr=de,Ro=C,Qn=De,Uh=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Qn),this.group.add(this._selectorGroup=new Qn),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var f=ps(t,a).refContainer,c=t.getBoxLayoutParams(),h=t.get("padding"),v=tr(c,f,h),d=this.layoutInner(t,o,v,i,l,u),p=tr(ve({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Kx(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=$(),c=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Ro(n.getData(),function(d,p){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
23
|
+
`)){var y=new Qn;y.newline=!0,u.add(y);return}var _=a.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),A=this._createItem(_,g,p,d,n,t,b,w,x,c,i);A.on("click",mr(Sc,g,null,i,v)).on("mouseover",mr(Oo,_.name,null,i,v)).on("mouseout",mr(No,_.name,null,i,v)),a.ssr&&A.eachChild(function(D){var M=Q(D);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),h&&A.eachChild(function(D){m.packEventData(D,n,_,p,g)}),f.set(g,!0)}else a.eachRawSeries(function(D){var M=this;if(!f.get(g)&&D.legendVisualProvider){var T=D.legendVisualProvider;if(!T.containName(g))return;var L=T.indexOfName(g),I=T.getItemVisual(L,"style"),P=T.getItemVisual(L,"legendIcon"),k=xd(I.fill);k&&k[3]===0&&(k[3]=.2,I=G(G({},I),{fill:bd(k,"rgba")}));var O=this._createItem(D,g,p,d,n,t,{},I,P,c,i);O.on("click",mr(Sc,null,g,i,v)).on("mouseover",mr(Oo,null,g,i,v)).on("mouseout",mr(No,null,g,i,v)),a.ssr&&O.eachChild(function(U){var E=Q(U);E.seriesIndex=D.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),h&&O.eachChild(function(U){M.packEventData(U,n,D,p,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Q(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();Ro(t,function(u){var f=u.type,c=new Ee({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);wn(c,{normal:h,emphasis:v},{defaultText:u.title}),ji(c)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,f,c,h){var v=t.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=pb(f,i,l,u,v,m,h),b=new Qn,x=i.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(gb({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var A=s==="left"?d+5:-5,D=s,M=o.get("formatter"),T=n;H(M)&&M?T=M.replace("{name}",n??""):K(M)&&(T=M(n));var L=m?x.getTextColor():i.get("inactiveColor");b.add(new Ee({style:xr(x,{text:T,x:A,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new _e({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Ha({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(k){k.silent=!0}),I.silent=!c,this.getContentGroup().add(b),ji(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();en(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){en("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.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()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(ot);function pb(r,e,t,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Ro(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:ho(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function gb(r){var e=r.icon||"roundRect",t=wr(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=W.color.neutral00,t.style.lineWidth=2),t}function Sc(r,e,t,n){No(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Oo(r,e,t,n)}function Wh(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function Oo(r,e,t,n){Wh(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function No(r,e,t,n){Wh(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function mb(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Ur(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),xc(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){C(a,function(l,u){s[l?"select":"unSelect"](u)}),xc(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function xc(r,e){var t=e||{};return C(r.getData(),function(n){var a=n.get("name");if(!(a===`
|
|
24
|
+
`||a==="")){var i=r.isSelected(a);Ke(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function yb(r){r.registerAction("legendToggleSelect","legendselectchanged",de(Ur,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",de(Ur,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",de(Ur,"inverseSelect")),r.registerAction("legendSelect","legendselected",de(Ur,"select")),r.registerAction("legendUnSelect","legendunselected",de(Ur,"unSelect"))}function Yh(r){r.registerComponentModel(Eo),r.registerComponentView(Uh),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,mb),r.registerSubTypeDefaulter("legend",function(){return"plain"}),yb(r)}var _b=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=Tn(t);r.prototype.init.call(this,t,n,a),bc(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),bc(this,this.option,t)},e.type="legend.scroll",e.defaultOption=df(Eo.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:W.color.accent50,pageIconInactiveColor:W.color.accent10,pageIconSize:15,pageTextStyle:{color:W.color.tertiary},animationDurationUpdate:800}),e})(Eo);function bc(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,Ot(e,t,{type:"box",ignoreSize:!!a})}var wc=De,Bi=["width","height"],Fi=["x","y"],Sb=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new wc),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new wc)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=F(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ee({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=es(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:ee(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)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Bi[u],c=Fi[u],h=Bi[1-u],v=Fi[1-u];o&&en("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],g=J(a);o&&(g[f]=a[f]-p[f]-d);var y=this._layoutContentAndController(t,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},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;en(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),en("horizontal",h,t.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],_=j(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.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 _e({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Le(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",H(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Bi[o],l=Fi[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 w=x.getBoundingRect(),A=w[l]+x[l];return{s:A,e:A+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){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===t&&(n=s)}),n??i},e.type="legend.scroll",e})(Uh);function xb(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function bb(r){rr(Yh),r.registerComponentModel(_b),r.registerComponentView(Sb),xb(r)}function Lb(r){rr(Yh),rr(bb)}function kb(r){r.registerPainter("canvas",wd)}export{Db as a,Tb as b,Ab as c,Mb as d,Lb as e,Ib as f,kb as g,Cb as i,rr as u};
|