import{r as ba,m as G,i as U,a as J,b as me,c as dc,d as B,e as Z,f as w,g as ce,h as bt,j as ke,k as i0,l as z,n as K,o as bn,p as Ue,P as Ie,q as Ef,s as pe,t as Wb,Z as Dt,u as $b,v as Mv,w as gs,x as Q,y as Ub,C as Yr,E as Iv,S as wt,R as Ki,z as At,A as mt,B as de,L as Je,D as qi,F as Qs,G as Yb,H as Zb,I as Xb,T as nn,J as ji,K as Ot,M as Y,N as te,O as ue,Q as o0,U as Lv,V as Ji,W as s0,X as we,Y as ys,_ as He,$ as Qi,a0 as ne,a1 as j,a2 as Ze,a3 as l0,a4 as st,a5 as ee,a6 as Tt,a7 as Se,a8 as $,a9 as ms,aa as Mi,ab as dt,ac as gc,ad as Kb,ae as qb,af as Ss,ag as u0,ah as wn,ai as kf,aj as c0,ak as jb,al as Ll,am as Jb,an as hn,ao as xs,ap as Qb,aq as la,ar as v0,as as h0,at as ew,au as el,av as f0,aw as va,ax as Pl,ay as tw,az as rw,aA as ur,aB as aw,aC as nw,aD as iw,aE as ow,aF as sw,aG as Nf,aH as Of,aI as lw,aJ as p0,aK as An,aL as Qe,aM as eo,aN as uw,aO as Vf,aP as zr,aQ as cw,aR as vw,aS as hw,aT as wa,aU as fw,aV as Tn,aW as ht,aX as Pv,aY as d0,aZ as Aa,a_ as pw,a$ as Rl,b0 as rs,b1 as g0,b2 as mi,b3 as _s,b4 as Er,b5 as to,b6 as dw,b7 as gw,b8 as on,b9 as Bf,ba as yw,bb as yc,bc as mw,bd as y0,be as Sw,bf as xw,bg as _w,bh as zf,bi as bw,bj as ww,bk as Ii,bl as Aw,bm as mc,bn as Gf,bo as Tw,bp as Cw,bq as Dw,br as Mw,bs as Iw,bt as Lw,bu as Pw,bv as Rw,bw as Ew,bx as kw}from"./vendor-zrender.1a7efbee.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

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

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Sc=function(r,t){return Sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Sc(r,t)};function E(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sc(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ff=1e-4,m0=20;function Nw(r){return r.replace(/^\s+|\s+$/g,"")}function ge(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?Nw(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Oe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),m0),r=(+r).toFixed(t),e?r:+r}function _t(r){return r.sort(function(t,e){return t-e}),r}function Ut(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return S0(r)}function S0(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Rv(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Ow(r,t,e){if(!r[t])return 0;var a=x0(r,e);return a[t]||0}function x0(r,t){var e=ba(r,function(f,p){return f+(isNaN(p)?0:p)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=G(r,function(f){return(isNaN(f)?0:f)/e*a*100}),i=a*100,o=G(n,function(f){return Math.floor(f)}),s=ba(o,function(f,p){return f+p},0),l=G(n,function(f,p){return f-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,v=0,h=l.length;v<h;++v)l[v]>u&&(u=l[v],c=v);++o[c],l[c]=0,++s}return G(o,function(f){return f/a})}function Vw(r,t){var e=Math.max(Ut(r),Ut(t)),a=r+t;return e>m0?a:Oe(a,e)}var xc=9007199254740991;function Ev(r){var t=Math.PI*2;return(r%t+t)%t}function fn(r){return r>-Ff&&r<Ff}var Bw=/^(?:(\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 Ct(r){if(r instanceof Date)return r;if(U(r)){var t=Bw.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function _0(r){return Math.pow(10,tl(r))}function tl(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function kv(r,t){var e=tl(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function as(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function _c(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function ar(r){var t=parseFloat(r);return t==r&&(t!==0||!U(r)||r.indexOf("x")<=0)?t:NaN}function Nv(r){return!isNaN(ar(r))}function b0(){return Math.round(Math.random()*9)}function w0(r,t){return t===0?r:w0(t,r%t)}function Hf(r,t){return r==null?t:t==null?r:r*t/w0(r,t)}function ye(r){throw new Error(r)}function Wf(r,t,e){return(t-r)*e+r}var A0="series\0",T0="\0_ec_\0";function _e(r){return r instanceof Array?r:r==null?[]:[r]}function Ta(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var $f=["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 Cn(r){return J(r)&&!B(r)&&!(r instanceof Date)?r.value:r}function zw(r){return J(r)&&!(r instanceof Array)}function C0(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Z();w(t,function(l,u){if(!J(l)){t[u]=null;return}});var s=Gw(r,o,e);return(a||n)&&Fw(s,r,o,t),a&&Hw(s,t),a||n?Ww(s,t,n):i&&$w(s,t),Uw(s),s}function Gw(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||Li(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Fw(r,t,e,a){w(a,function(n,i){if(!(!n||n.id==null)){var o=Si(n.id),s=e.get(o);if(s!=null){var l=r[s];bt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function Hw(r,t){w(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!Li(e)&&!Li(i)&&D0("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function Ww(r,t,e){w(t,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||Li(n.existing)||n.existing&&a.id!=null&&!D0("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function $w(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Uw(r){var t=Z();w(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),w(r,function(e){var a=e.newOption;bt(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(!!J(i)){if(o.name=i.name!=null?Si(i.name):n?n.name:A0+a,n)o.id=Si(n.id);else if(i.id!=null)o.id=Si(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function D0(r,t,e){var a=Ye(t[r],null),n=Ye(e[r],null);return a!=null&&n!=null&&a===n}function Si(r){return Ye(r,"")}function Ye(r,t){return r==null?t:U(r)?r:me(r)||dc(r)?r+"":t}function Ov(r){var t=r.name;return!!(t&&t.indexOf(A0))}function Li(r){return r&&r.id!=null&&Si(r.id).indexOf(T0)===0}function Yw(r){return T0+r}function Zw(r,t,e){w(r,function(a){var n=a.newOption;J(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=Xw(t,n,a.existing,e))})}function Xw(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function Kw(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var v=Ye(o[u].seriesId,null);if(v==null)return;for(var h=_e(o[u].dataIndex),f=l&&l[v],p=0,d=h.length;p<d;p++){var g=h[p];f&&f[g]?f[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Ca(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?G(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?G(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ve(){var r="__ec_inner_"+qw++;return function(t){return t[r]||(t[r]={})}}var qw=b0();function xi(r,t,e){var a=Vv(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var v=ro(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=v.models,s[c+"Model"]=v.models[0]}),s}function Vv(r,t){var e;if(U(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=Z(),i={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],v=(u[2]||"").toLowerCase();if(!(!c||!v||t&&t.includeMainTypes&&ce(t.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var We={useDefault:!0,enableAll:!1,enableNone:!1},jw={useDefault:!1,enableAll:!0,enableNone:!0};function ro(r,t,e,a){a=a||We;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(bt(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(bt(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function M0(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function Jw(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Qw(r){return r==="auto"?ke.domSupported?"html":"richText":r||"html"}function bc(r,t){var e=Z(),a=[];return w(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function I0(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(me(a)){var o=Wf(e||0,a,n);return Oe(o,i?Math.max(Ut(e||0),Ut(a)):t)}else{if(U(a))return n<1?e:a;for(var s=[],l=e,u=a,c=Math.max(l?l.length:0,u.length),v=0;v<c;++v){var h=r.getDimensionInfo(v);if(h&&h.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var f=l&&l[v]?l[v]:0,p=u[v],o=Wf(f,p,n);s[v]=Oe(o,i?Math.max(Ut(f),Ut(p)):t)}}return s}}var eA=".",qr="___EC__COMPONENT__CONTAINER___",L0="___EC__EXTENDED_CLASS___";function Qt(r){var t={main:"",sub:""};if(r){var e=r.split(eA);t.main=e[0]||"",t.sub=e[1]||""}return t}function tA(r){bt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function rA(r){return!!(r&&r[L0])}function Bv(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return aA(a)?n=function(i){E(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},i0(n,this)),z(n.prototype,e),n[L0]=!0,n.extend=this.extend,n.superCall=oA,n.superApply=sA,n.superClass=a,n}}function aA(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function P0(r,t){r.extend=t.extend}var nA=Math.round(Math.random()*10);function iA(r){var t=["__\0is_clz",nA++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function oA(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function sA(r,t,e){return this.superClass.prototype[t].apply(r,e)}function rl(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){tA(n),a.prototype.type=n;var i=Qt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==qr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[qr]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Qt(a),i=[],o=t[n.main];return o&&o[qr]?w(o,function(s,l){l!==qr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Qt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return w(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Qt(a),i=t[n.main];return i&&i[qr]};function e(a){var n=t[a.main];return(!n||!n[qr])&&(n=t[a.main]={},n[qr]=!0),n}}function Da(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ce(n,l)>=0||i&&ce(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var lA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],uA=Da(lA),cA=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return uA(this,t,e)},r}(),q=ve(),wc=function(r,t,e,a){if(a){var n=q(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=q(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Uf=1,Yf={},R0=ve(),zv=ve(),Gv=0,ao=1,al=2,gt=["emphasis","blur","select"],Pi=["normal","emphasis","blur","select"],Dn=10,vA=9,ga="highlight",ns="downplay",_i="select",is="unselect",bi="toggleSelect";function Fa(r){return r!=null&&r!=="none"}function nl(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function E0(r){nl(r,"emphasis",al)}function k0(r){r.hoverState===al&&nl(r,"normal",Gv)}function Fv(r){nl(r,"blur",ao)}function N0(r){r.hoverState===ao&&nl(r,"normal",Gv)}function hA(r){r.selected=!0}function fA(r){r.selected=!1}function Zf(r,t,e){t(r,e)}function Sr(r,t,e){Zf(r,t,e),r.isGroup&&r.traverse(function(a){Zf(a,t,e)})}function bs(r,t){switch(t){case"emphasis":r.hoverState=al;break;case"normal":r.hoverState=Gv;break;case"blur":r.hoverState=ao;break;case"select":r.selected=!0}}function pA(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l==null?a&&a[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function dA(r,t,e,a){var n=e&&ce(e,"select")>=0,i=!1;if(r instanceof Ie){var o=R0(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Fa(s)||Fa(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=z({},a),u=z({},u),u.fill=s):!Fa(u.fill)&&Fa(s)?(i=!0,a=z({},a),u=z({},u),u.fill=Ef(s)):!Fa(u.stroke)&&Fa(l)&&(i||(a=z({},a),u=z({},u)),u.stroke=Ef(l)),a.style=u}}if(a&&a.z2==null){i||(a=z({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:Dn)}return a}function gA(r,t,e){if(e&&e.z2==null){e=z({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:vA)}return e}function yA(r,t,e){var a=ce(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:pA(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=z({},e),o=z({opacity:a?n:i.opacity*.1},o),e.style=o),e}function El(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return dA(this,r,t,e);if(r==="blur")return yA(this,r,e);if(r==="select")return gA(this,r,e)}return e}function Ma(r){r.stateProxy=El;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=El),e&&(e.stateProxy=El)}function Xf(r,t){!z0(r,t)&&!r.__highByOuter&&Sr(r,E0)}function Kf(r,t){!z0(r,t)&&!r.__highByOuter&&Sr(r,k0)}function fr(r,t){r.__highByOuter|=1<<(t||0),Sr(r,E0)}function pr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Sr(r,k0)}function O0(r){Sr(r,Fv)}function Hv(r){Sr(r,N0)}function V0(r){Sr(r,hA)}function B0(r){Sr(r,fA)}function z0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function G0(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=zv(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){N0(u)}),s&&e.push(i)),o.isBlured=!1}),w(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Ac(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var v=0;v<c.length;v++){var h=u.getItemGraphicEl(c[v]);h&&Hv(h)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,v=u.coordinateSystem;v&&v.master&&(v=v.master);var h=v&&s?v===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!h||t==="series"&&c)){var f=a.getViewOfSeriesModel(u);if(f.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Fv(g)}),bn(t))i(u.getData(),t);else if(J(t))for(var p=Ue(t),d=0;d<p.length;d++)i(u.getData(p[d]),t[p[d]]);l.push(u),zv(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var v=a.getViewOfComponentModel(c);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function Tc(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(!!a){zv(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Fv(i)})}}}function mA(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!!n){var i=Ca(n,t);i=(B(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=q(o);Ac(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);c!=null&&Ac(a,c,v,e)}}}function Wv(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(q(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function SA(r,t,e){var a=q(r),n=Wv(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Tc(a.componentMainType,a.componentIndex,e),w(i,function(s){return Xf(s,t)})):(Ac(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Tc(a.componentMainType,a.componentIndex,e),Xf(r,t))}function xA(r,t,e){G0(e);var a=q(r),n=Wv(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?w(n,function(i){return Kf(i,t)}):Kf(r,t)}function _A(r,t,e){if(!!Dc(t)){var a=t.dataType,n=r.getData(a),i=Ca(n,t);B(i)||(i=[i]),r[t.type===bi?"toggleSelect":t.type===_i?"select":"unselect"](i,a)}}function qf(r){var t=r.getAllData();w(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?V0(i):B0(i)})})}function bA(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();w(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function kr(r,t,e){ha(r,!0),Sr(r,Ma),Cc(r,t,e)}function wA(r){ha(r,!1)}function Ne(r,t,e,a){a?wA(r):kr(r,t,e)}function Cc(r,t,e){var a=q(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var jf=["emphasis","blur","select"],AA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function rt(r,t,e,a){e=e||"itemStyle";for(var n=0;n<jf.length;n++){var i=jf[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[AA[e]]()}}function ha(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Ri(r){return!!(r&&r.__highDownDispatcher)}function TA(r,t,e){var a=q(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function CA(r){var t=Yf[r];return t==null&&Uf<=32&&(t=Yf[r]=Uf++),t}function Dc(r){var t=r.type;return t===_i||t===is||t===bi}function Jf(r){var t=r.type;return t===ga||t===ns}function DA(r){var t=R0(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var F0=ve();function Mn(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,v=void 0;a?(u=pe(a.duration,200),c=pe(a.easing,"cubicOut"),v=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),v=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(v=i.delay)),K(v)&&(v=v(e,n)),K(u)&&(u=u(e));var h={duration:u||0,delay:v,easing:c};return h}else return null}function $v(r,t,e,a,n,i,o){var s=!1,l;K(n)?(o=i,i=n,n=null):J(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=Mn(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var v=c.duration,h=c.delay,f=c.easing,p={duration:v,delay:h||0,easing:f,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function he(r,t,e,a,n,i){$v("update",r,t,e,a,n,i)}function Me(r,t,e,a,n,i){$v("enter",r,t,e,a,n,i)}function sn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Gr(r,t,e,a,n,i){sn(r)||$v("leave",r,t,e,a,n,i)}function Qf(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),Gr(r,{style:{opacity:0}},t,e,a)}function Ei(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Qf(n,t,e,a)}):Qf(r,t,e,a)}function Xt(r){F0(r).oldStyle=r.style}function MA(r){return F0(r).oldStyle}var ws=Math.max,As=Math.min,Mc={};function H0(r){return Ie.extend(r)}var IA=Ub;function W0(r,t){return IA(r,t)}function Vt(r,t){Mc[r]=t}function il(r){if(Mc.hasOwnProperty(r))return Mc[r]}function no(r,t,e,a){var n=Wb(r,t);return e&&(a==="center"&&(e=$0(e,n.getBoundingRect())),Yv(n,e)),n}function Uv(r,t,e){var a=new Dt({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle($0(t,i))}}});return a}function $0(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var xt=$b;function Yv(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function pn(r,t){return Yb(r,r,{lineWidth:t}),r}function LA(r){return Zb(r.shape,r.shape,r.style),r}var os=Xb;function Nr(r,t){for(var e=Mv([]);r&&r!==t;)gs(e,r.getLocalTransform(),e),r=r.parent;return e}function Zt(r,t,e){return t&&!bn(t)&&(t=nn.getLocalTransform(t)),e&&(t=ji([],t)),Ot([],r,t)}function ol(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Zt(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ep(r){return!r.isGroup}function PA(r){return r.shape!=null}function io(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){ep(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return PA(o)&&(s.shape=z({},o.shape)),s}var i=a(r);t.traverse(function(o){if(ep(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),he(o,l,e,q(o).dataIndex)}}})}function Zv(r,t){return G(r,function(e){var a=e[0];a=ws(a,t.x),a=As(a,t.x+t.width);var n=e[1];return n=ws(n,t.y),n=As(n,t.y+t.height),[a,n]})}function U0(r,t){var e=ws(r.x,t.x),a=As(r.x+r.width,t.x+t.width),n=ws(r.y,t.y),i=As(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function In(r,t,e){var a=z({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Q(n,e),new Dt(a)):no(r.replace("path://",""),a,e,"center")}function vi(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(Y0(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function Y0(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,v=s-i,h=kl(c,v,l,u);if(RA(h))return!1;var f=r-n,p=t-i,d=kl(f,p,l,u)/h;if(d<0||d>1)return!1;var g=kl(f,p,c,v)/h;return!(g<0||g>1)}function kl(r,t,e,a){return r*a-e*t}function RA(r){return r<=1e-6&&r>=-1e-6}function Ea(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=U(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ue(l),function(c){Y(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Q({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function tp(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Zr(r,t){if(r)if(B(r))for(var e=0;e<r.length;e++)tp(r[e],t);else tp(r,t)}Vt("circle",Yr);Vt("ellipse",Iv);Vt("sector",wt);Vt("ring",Ki);Vt("polygon",At);Vt("polyline",mt);Vt("rect",de);Vt("line",Je);Vt("bezierCurve",qi);Vt("arc",Qs);var ka=Object.freeze(Object.defineProperty({__proto__:null,updateProps:he,initProps:Me,removeElement:Gr,removeElementWithFadeOut:Ei,isElementRemoved:sn,extendShape:H0,extendPath:W0,registerShape:Vt,getShapeClass:il,makePath:no,makeImage:Uv,mergePath:xt,resizePath:Yv,subPixelOptimizeLine:pn,subPixelOptimizeRect:LA,subPixelOptimize:os,getTransform:Nr,applyTransform:Zt,transformDirection:ol,groupTransition:io,clipPointsByRect:Zv,clipRectByRect:U0,createIcon:In,linePolygonIntersect:vi,lineLineIntersect:Y0,setTooltipConfig:Ea,traverseElements:Zr,Group:te,Image:Dt,Text:ue,Circle:Yr,Ellipse:Iv,Sector:wt,Ring:Ki,Polygon:At,Polyline:mt,Rect:de,Line:Je,BezierCurve:qi,Arc:Qs,IncrementalDisplayable:o0,CompoundPath:Lv,LinearGradient:Ji,RadialGradient:s0,BoundingRect:we,OrientedBoundingRect:ys,Point:He,Path:Ie},Symbol.toStringTag,{value:"Module"})),sl={};function Z0(r,t){for(var e=0;e<gt.length;e++){var a=gt[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Ic(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<gt.length;u++){var c=gt[u],v=t[c];l[c]=pe(a?a.getFormattedLabel(n,c,null,i,v&&v.get("formatter")):null,s)}return l}function at(r,t,e,a){e=e||sl;for(var n=r instanceof ue,i=!1,o=0;o<Pi.length;o++){var s=t[Pi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new ue,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Ic(e,t),c=t.normal,v=!!c.getShallow("show"),h=Ae(c,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(Ts(c,e,!1));for(var o=0;o<gt.length;o++){var f=gt[o],s=t[f];if(s){var p=l.ensureState(f),d=!!pe(s.getShallow("show"),v);if(d!==v&&(p.ignore=!d),p.style=Ae(s,a&&a[f],e,!0,!n),p.style.text=u[f],!n){var g=r.ensureState(f);g.textConfig=Ts(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!v,l.useStyle(h),l.dirty(),e.enableTextSetter&&(Ln(l).setLabelText=function(y){var m=Ic(e,t,y);Z0(l,m)})}else l&&(l.ignore=!0);r.dirty()}function qe(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<gt.length;a++){var n=gt[a];e[n]=r.getModel([n,t])}return e}function Ae(r,t,e,a,n){var i={};return EA(i,r,e,a,n),t&&z(i,t),i}function Ts(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=pe(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function EA(r,t,e,a,n){e=e||sl;var i=t.ecModel,o=i&&i.option.textStyle,s=kA(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);ip(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var v=t.get("overflow");v&&(r.overflow=v);var h=t.get("minMargin");h!=null&&(r.margin=h),ip(r,t,o,e,a,n,!0,!1)}function kA(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||sl).rich;if(e){t=t||{};for(var a=Ue(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var rp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ap=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],np=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ip(r,t,e,a,n,i,o,s){e=!n&&e||sl;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=pe(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var h=pe(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var f=pe(t.getShallow("textBorderType"),e.textBorderType);f!=null&&(r.lineDash=f);var p=pe(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!n&&v==null&&!s&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var d=0;d<rp.length;d++){var g=rp[d],y=pe(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var d=0;d<ap.length;d++){var g=ap[d],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var d=0;d<np.length;d++){var g=np[d],y=t.getShallow(g);y!=null&&(r[g]=y)}var S=t.getShallow("borderType");S!=null&&(r.borderDash=S),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function Xv(r,t){var e=t&&t.getModel("textStyle");return Qi([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ln=ve();function X0(r,t,e,a){if(!!r){var n=Ln(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function K0(r,t,e,a,n){var i=Ln(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=pe(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var v=I0(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:v;var h=Ic({labelDataIndex:t,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);Z0(r,h)}r.percent=0,(i.prevValue==null?Me:he)(r,{percent:1},a,t,null,u)}var NA=["textStyle","color"],Nl=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ol=new ue,OA=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(NA):null)},r.prototype.getFont=function(){return Xv({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Nl.length;a++)e[Nl[a]]=this.getShallow(Nl[a]);return Ol.useStyle(e),Ol.update(),Ol.getBoundingRect()},r}(),VA=OA,q0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],BA=Da(q0),zA=function(){function r(){}return r.prototype.getLineStyle=function(t){return BA(this,t)},r}(),j0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],GA=Da(j0),FA=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return GA(this,t,e)},r}(),Na=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){ne(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(j(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!ke.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(!!t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();Bv(Na);iA(Na);Ze(Na,zA);Ze(Na,FA);Ze(Na,cA);Ze(Na,VA);var xe=Na,HA=Math.round(Math.random()*10);function Pn(r){return[r||"",HA++].join("_")}function WA(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=Qt(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=Qt(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function $A(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,v=u.noEntryList,h={};for(w(i,function(m){h[m]=!0});v.length;){var f=v.pop(),p=c[f],d=!!h[f];d&&(s.call(l,f,p.originalDeps.slice()),delete h[f]),w(p.successor,d?y:g)}w(h,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&v.push(m)}function y(m){h[m]=!0,g(m)}};function e(i){var o={},s=[];return w(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),v=n(c,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),w(v,function(h){ce(u.predecessor,h)<0&&u.predecessor.push(h);var f=a(o,h);ce(f.successor,h)<0&&f.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return w(i,function(l){ce(o,l)>=0&&s.push(l)}),s}}function Xr(r,t){return ne(ne({},r,!0),t,!0)}var UA={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:". "}}}},YA={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},Cs="ZH",Kv="EN",ln=Kv,ss={},qv={},J0=ke.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ln).toUpperCase();return r.indexOf(Cs)>-1?Cs:ln}():ln;function jv(r,t){r=r.toUpperCase(),qv[r]=new xe(t),ss[r]=t}function ZA(r){if(U(r)){var t=ss[r.toUpperCase()]||{};return r===Cs||r===Kv?j(t):ne(j(t),j(ss[ln]),!1)}else return ne(j(r),j(ss[ln]),!1)}function Lc(r){return qv[r]}function XA(){return qv[ln]}jv(Kv,UA);jv(Cs,YA);var Jv=1e3,Qv=Jv*60,wi=Qv*60,kt=wi*24,op=kt*365,hi={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},xo="{yyyy}-{MM}-{dd}",sp={year:"{yyyy}",month:"{yyyy}-{MM}",day:xo,hour:xo+" "+hi.hour,minute:xo+" "+hi.minute,second:xo+" "+hi.second,millisecond:hi.none},Vl=["year","month","day","hour","minute","second","millisecond"],Q0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ft(r,t){return r+="","0000".substr(0,t-r.length)+r}function un(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 KA(r){return r===un(r)}function qA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oo(r,t,e,a){var n=Ct(r),i=n[eh(e)](),o=n[cn(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[ll(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[ki(e)](),v=(c-1)%12+1,h=n[ul(e)](),f=n[cl(e)](),p=n[vl(e)](),d=c>=12?"pm":"am",g=d.toUpperCase(),y=a instanceof xe?a:Lc(a||J0)||XA(),m=y.getModel("time"),S=m.get("month"),x=m.get("monthAbbr"),_=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ft(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,ft(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ft(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ft(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ft(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,ft(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,ft(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ft(p,3)).replace(/{S}/g,p+"")}function jA(r,t,e,a,n){var i=null;if(U(e))i=e;else if(K(e))i=e(r.value,t,{level:r.level});else{var o=z({},hi);if(r.level>0)for(var s=0;s<Vl.length;++s)o[Vl[s]]="{primary|"+o[Vl[s]]+"}";var l=e?e.inherit===!1?e:Q(e,o):o,u=eS(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=Q0.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(B(i)){var v=r.level==null?0:r.level>=0?r.level:i.length+r.level;v=Math.min(v,i.length-1),i=i[v]}}return oo(new Date(r.value),i,n,a)}function eS(r,t){var e=Ct(r),a=e[cn(t)]()+1,n=e[ll(t)](),i=e[ki(t)](),o=e[ul(t)](),s=e[cl(t)](),l=e[vl(t)](),u=l===0,c=u&&s===0,v=c&&o===0,h=v&&i===0,f=h&&n===1,p=f&&a===1;return p?"year":f?"month":h?"day":v?"hour":c?"minute":u?"second":"millisecond"}function lp(r,t,e){var a=me(r)?Ct(r):r;switch(t=t||eS(r,e),t){case"year":return a[eh(e)]();case"half-year":return a[cn(e)]()>=6?1:0;case"quarter":return Math.floor((a[cn(e)]()+1)/4);case"month":return a[cn(e)]();case"day":return a[ll(e)]();case"half-day":return a[ki(e)]()/24;case"hour":return a[ki(e)]();case"minute":return a[ul(e)]();case"second":return a[cl(e)]();case"millisecond":return a[vl(e)]()}}function eh(r){return r?"getUTCFullYear":"getFullYear"}function cn(r){return r?"getUTCMonth":"getMonth"}function ll(r){return r?"getUTCDate":"getDate"}function ki(r){return r?"getUTCHours":"getHours"}function ul(r){return r?"getUTCMinutes":"getMinutes"}function cl(r){return r?"getUTCSeconds":"getSeconds"}function vl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function JA(r){return r?"setUTCFullYear":"setFullYear"}function tS(r){return r?"setUTCMonth":"setMonth"}function rS(r){return r?"setUTCDate":"setDate"}function aS(r){return r?"setUTCHours":"setHours"}function nS(r){return r?"setUTCMinutes":"setMinutes"}function iS(r){return r?"setUTCSeconds":"setSeconds"}function oS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function QA(r,t,e,a,n,i,o,s){var l=new ue({style:{text:r,font:t,align:e,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function th(r){if(!Nv(r))return U(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function rh(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Oa=l0;function Pc(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Qi(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ct(r):r;if(isNaN(+l)){if(s)return"-"}else return oo(l,a,e)}if(t==="ordinal")return dc(r)?n(r):me(r)&&i(r)?r+"":"-";var u=ar(r);return i(u)?th(u):dc(r)?n(r):typeof r=="boolean"?r+"":"-"}var up=["a","b","c","d","e","f","g"],Bl=function(r,t){return"{"+r+(t==null?"":t)+"}"};function ah(r,t,e){B(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=up[i];r=r.replace(Bl(o),Bl(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Bl(up[l],s),e?st(u):u)}return r}function eT(r,t,e){return w(t,function(a,n){r=r.replace("{"+n+"}",e?st(a):a)}),r}function sS(r,t){var e=U(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+st(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+st(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function tT(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var a=Ct(t),n=e?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),c=a[n+"Seconds"](),v=a[n+"Milliseconds"]();return r=r.replace("MM",ft(o,2)).replace("M",o).replace("yyyy",i).replace("yy",ft(i%100+"",2)).replace("dd",ft(s,2)).replace("d",s).replace("hh",ft(l,2)).replace("h",l).replace("mm",ft(u,2)).replace("m",u).replace("ss",ft(c,2)).replace("s",c).replace("SSS",ft(v,3)),r}function rT(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ia(r,t){return t=t||"transparent",U(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ds(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ls=w,lS=["left","right","top","bottom","width","height"],fa=[["width","left","right"],["height","top","bottom"]];function nh(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),v=t.childAt(u+1),h=v&&v.getBoundingRect(),f,p;if(r==="horizontal"){var d=c.width+(h?-h.x+c.x:0);f=i+d,f>a||l.newline?(i=0,f=d,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);p=o+g,p>n||l.newline?(i+=s+e,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=f+e:o=p+e)})}var ya=nh;ee(nh,"vertical");ee(nh,"horizontal");function aT(r,t,e){var a=t.width,n=t.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=Oa(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function $e(r,t,e){e=Oa(e||0);var a=t.width,n=t.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),c=H(r.height,n),v=e[2]+e[0],h=e[1]+e[3],f=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-v-o),f!=null&&(isNaN(u)&&isNaN(c)&&(f>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-v),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-v-o-(l||0));var p=new we(i+e[3],o+e[0],u,c);return p.margin=e,p}function hl(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new we(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var v=$e(Q({width:u.width,height:u.height},t),e,a),h=o?v.x-u.x:0,f=s?v.y-u.y:0;return l==="raw"?(i.x=h,i.y=f):(i.x+=h,i.y+=f),i===r&&r.markRedraw(),!0}function nT(r,t){return r[fa[t][0]]!=null||r[fa[t][1]]!=null&&r[fa[t][2]]!=null}function Ni(r){var t=r.layoutMode||r.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function Fr(r,t,e){var a=e&&e.ignoreSize;!B(a)&&(a=[a,a]);var n=o(fa[0],0),i=o(fa[1],1);u(fa[0],r,n),u(fa[1],r,i);function o(c,v){var h={},f=0,p={},d=0,g=2;if(ls(c,function(S){p[S]=r[S]}),ls(c,function(S){s(t,S)&&(h[S]=p[S]=t[S]),l(h,S)&&f++,l(p,S)&&d++}),a[v])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(d===g||!f)return p;if(f>=g)return h;for(var y=0;y<c.length;y++){var m=c[y];if(!s(h,m)&&s(r,m)){h[m]=r[m];break}}return h}function s(c,v){return c.hasOwnProperty(v)}function l(c,v){return c[v]!=null&&c[v]!=="auto"}function u(c,v,h){ls(c,function(f){v[f]=h[f]})}}function Rn(r){return uS({},r)}function uS(r,t){return t&&r&&ls(lS,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var iT=ve(),En=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=Pn("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Ni(this),i=n?Rn(e):{},o=a.getTheme();ne(e,o.get(this.mainType)),ne(e,this.getDefaultOption()),n&&Fr(e,i,n)},t.prototype.mergeOption=function(e,a){ne(this.option,e,!0);var n=Ni(this);n&&Fr(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!rA(e))return e.defaultOption;var a=iT(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ne(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return ro(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(xe);P0(En,xe);rl(En);WA(En);$A(En,oT);function oT(r){var t=[];return w(En.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=G(t,function(e){return Qt(e).main}),r!=="dataset"&&ce(t,"dataset")<=0&&t.unshift("dataset"),t}var le=En,cS="";typeof navigator!="undefined"&&(cS=navigator.platform||"");var Ha="rgba(0, 0, 0, 0.2)",sT={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ha,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ha,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ha,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ha,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ha,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ha,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cS.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},vS=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Bt="original",ut="arrayRows",zt="objectRows",nr="keyedColumns",Or="typedArray",hS="unknown",rr="column",kn="row",et={Must:1,Might:2,Not:3},fS=ve();function lT(r){fS(r).datasetMap=Z()}function pS(r,t,e){var a={},n=oh(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=fS(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,v;r=r.slice(),w(r,function(d,g){var y=J(d)?d:r[g]={name:d};y.type==="ordinal"&&c==null&&(c=g,v=p(y)),a[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});w(r,function(d,g){var y=d.name,m=p(d);if(c==null){var S=h.valueWayDim;f(a[y],S,m),f(o,S,m),h.valueWayDim+=m}else if(c===g)f(a[y],0,m),f(i,0,m);else{var S=h.categoryWayDim;f(a[y],S,m),f(o,S,m),h.categoryWayDim+=m}});function f(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function ih(r,t,e){var a={},n=oh(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===zt||i===nr)&&w(o,function(c,v){(J(c)?c.name:c)==="name"&&(s=v)});var l=function(){for(var c={},v={},h=[],f=0,p=Math.min(5,e);f<p;f++){var d=gS(t.data,i,t.seriesLayoutBy,o,t.startIndex,f);h.push(d);var g=d===et.Not;if(g&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v||!g&&h[c.n]===et.Not)&&(c.n=f),y(c)&&h[c.n]!==et.Not)return c;g||(d===et.Might&&v.v==null&&f!==s&&(v.v=f),(v.n==null||v.n===v.v)&&(v.n=f))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(v)?v:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function oh(r){var t=r.get("data",!0);if(!t)return ro(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},We).models[0]}function uT(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ro(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},We).models}function dS(r,t){return gS(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function gS(r,t,e,a,n,i){var o,s=5;if(Tt(r))return et.Not;var l,u;if(a){var c=a[i];J(c)?(l=c.name,u=c.type):U(c)&&(l=c)}if(u!=null)return u==="ordinal"?et.Must:et.Not;if(t===ut){var v=r;if(e===kn){for(var h=v[i],f=0;f<(h||[]).length&&f<s;f++)if((o=x(h[n+f]))!=null)return o}else for(var f=0;f<v.length&&f<s;f++){var p=v[n+f];if(p&&(o=x(p[i]))!=null)return o}}else if(t===zt){var d=r;if(!l)return et.Not;for(var f=0;f<d.length&&f<s;f++){var g=d[f];if(g&&(o=x(g[l]))!=null)return o}}else if(t===nr){var y=r;if(!l)return et.Not;var h=y[l];if(!h||Tt(h))return et.Not;for(var f=0;f<h.length&&f<s;f++)if((o=x(h[f]))!=null)return o}else if(t===Bt)for(var m=r,f=0;f<m.length&&f<s;f++){var g=m[f],S=Cn(g);if(!B(S))return et.Not;if((o=x(S[i]))!=null)return o}function x(_){var b=U(_);if(_!=null&&Number.isFinite(Number(_))&&_!=="")return b?et.Might:et.Not;if(b&&_!=="-")return et.Must}return et.Not}var Rc=Z();function cT(r,t){bt(Rc.get(r)==null&&t),Rc.set(r,t)}function vT(r,t,e){var a=Rc.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var cp=ve(),hT=ve(),sh=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=_e(this.get("color",!0)),i=this.get("colorLayer",!0);return yS(this,cp,n,i,t,e,a)},r.prototype.clearColorPalette=function(){pT(this,cp)},r}();function Ec(r,t,e,a){var n=_e(r.get(["aria","decal","decals"]));return yS(r,hT,n,null,t,e,a)}function fT(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function yS(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:fT(a,o);if(c=c||e,!(!c||!c.length)){var v=c[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%c.length,v}}function pT(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var _o,$n,vp,hp="\0_ec_inner",dT=1,mS=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new xe(i),this._locale=new xe(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=dp(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,dp(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?vp(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;lT(this),w(e,function(v,h){v!=null&&(le.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?j(v):ne(n[h],v,!0))}),u&&u.each(function(v,h){le.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),le.topologicalTravel(s,le.getAllClassMainTypes(),c,this);function c(v){var h=vT(this,v,_e(e[v])),f=i.get(v),p=f?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",d=C0(f,h,p);Zw(d,v,le),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,S;w(d,function(x,_){var b=x.existing,A=x.newOption;if(!A)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=v==="series",C=le.getClass(v,x.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(S)return;S=!0}if(b&&b.constructor===C)b.name=x.keyInfo.name,b.mergeOption(A,this),b.optionUpdated(A,!1);else{var D=z({componentIndex:_},x.keyInfo);b=new C(A,this,this,D),z(b,D),x.brandNew&&(b.__requireNewView=!0),b.init(A,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&_o(this)}this._seriesIndices||_o(this)},t.prototype.getOption=function(){var e=j(this.option);return w(e,function(a,n){if(le.hasClass(n)){for(var i=_e(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Li(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[hp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(_e(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=fp("id",i,s):o!=null?l=fp("name",o,s):l=Se(s,function(u){return!!u}),pp(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Se(this._componentsMap.get(n),function(u){return!!u});return l(pp(o,e));function s(u){var c=n+"Index",v=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[v]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[v],name:u[h]}:null}function l(u){return e.filter?Se(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(K(e)){var o=a,s=e;i.each(function(v,h){for(var f=0;v&&f<v.length;f++){var p=v[f];p&&s.call(o,h,p,p.componentIndex)}})}else for(var l=U(e)?i.get(e):J(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=Ye(e,null);return Se(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Se(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Se(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){$n(this),w(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){w(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){$n(this),w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return w(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return $n(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){$n(this);var n=[];w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Z(n)},t.prototype.restoreData=function(e){_o(this);var a=this._componentsMap,n=[];a.each(function(i,o){le.hasClass(o)&&n.push(o)}),le.topologicalTravel(n,le.getAllClassMainTypes(),function(i){w(a.get(i),function(o){o&&(i!=="series"||!gT(o,e))&&o.restoreData()})})},t.internalField=function(){_o=function(e){var a=e._seriesIndices=[];w(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=Z(a)},$n=function(e){},vp=function(e,a){e.option={},e.option[hp]=dT,e._componentsMap=Z({series:[]}),e._componentsCount=Z();var n=a.aria;J(n)&&n.enabled==null&&(n.enabled=!0),yT(a,e._theme.option),ne(a,sT,!1),e._mergeOption(a,null)}}(),t}(xe);function gT(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function yT(r,t){var e=r.color&&!r.colorLayer;w(t,function(a,n){n==="colorLayer"&&e||le.hasClass(n)||(typeof a=="object"?r[n]=r[n]?ne(r[n],a,!1):j(a):r[n]==null&&(r[n]=a))})}function fp(r,t,e){if(B(t)){var a=Z();return w(t,function(i){if(i!=null){var o=Ye(i,null);o!=null&&a.set(i,!0)}}),Se(e,function(i){return i&&a.get(i[r])})}else{var n=Ye(t,null);return Se(e,function(i){return i&&n!=null&&i[r]===n})}}function pp(r,t){return t.hasOwnProperty("subType")?Se(r,function(e){return e&&e.subType===t.subType}):r}function dp(r){var t=Z();return r&&w(_e(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ze(mS,sh);var SS=mS,mT=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ST=function(){function r(t){w(mT,function(e){this[e]=$(t[e],t)},this)}return r}(),xS=ST,zl={},xT=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];w(zl,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){w(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){zl[t]=e},r.get=function(t){return zl[t]},r}(),Nn=xT,_T=/^(min|max)?(.+)$/,bT=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(w(_e(t.series),function(o){o&&o.data&&Tt(o.data)&&ms(o.data)}),w(_e(t.dataset),function(o){o&&o.source&&Tt(o.source)&&ms(o.source)})),t=j(t);var n=this._optionBackup,i=wT(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],j(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=j(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)AT(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!CT(o,this._currentMediaIndices)&&(s=G(o,function(c){return j(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function wT(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||c)&&(r.options=r.media=null),i=r),c&&B(u)&&w(u,function(f){f&&f.option&&(f.query?a.push(f):n||(n=f))}),h(i),w(l,function(f){return h(f)}),w(a,function(f){return h(f.option)});function h(f){w(t,function(p){p(f,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function AT(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return w(r,function(i,o){var s=o.match(_T);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();TT(a[u],i,l)||(n=!1)}}),n}function TT(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function CT(r,t){return r.join(",")===t.join(",")}var DT=bT,Ft=w,Oi=J,gp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gl(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=gp.length;e<a;e++){var n=gp[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?ne(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ne(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function ot(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,Q(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function fi(r){ot(r,"itemStyle"),ot(r,"lineStyle"),ot(r,"areaStyle"),ot(r,"label"),ot(r,"labelLine"),ot(r,"upperLabel"),ot(r,"edgeLabel")}function Fe(r,t){var e=Oi(r)&&r[t],a=Oi(e)&&e.textStyle;if(a)for(var n=0,i=$f.length;n<i;n++){var o=$f[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Pt(r){r&&(fi(r),Fe(r,"label"),r.emphasis&&Fe(r.emphasis,"label"))}function MT(r){if(!!Oi(r)){Gl(r),fi(r),Fe(r,"label"),Fe(r,"upperLabel"),Fe(r,"edgeLabel"),r.emphasis&&(Fe(r.emphasis,"label"),Fe(r.emphasis,"upperLabel"),Fe(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Gl(t),Pt(t));var e=r.markLine;e&&(Gl(e),Pt(e));var a=r.markArea;a&&Pt(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Tt(i))for(var o=0;o<i.length;o++)Pt(i[o]);w(r.categories,function(u){fi(u)})}if(n&&!Tt(n))for(var o=0;o<n.length;o++)Pt(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Pt(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)B(l[o])?(Pt(l[o][0]),Pt(l[o][1])):Pt(l[o]);r.type==="gauge"?(Fe(r,"axisLabel"),Fe(r,"title"),Fe(r,"detail")):r.type==="treemap"?(ot(r.breadcrumb,"itemStyle"),w(r.levels,function(u){fi(u)})):r.type==="tree"&&fi(r.leaves)}}function sr(r){return B(r)?r:r?[r]:[]}function yp(r){return(B(r)?r[0]:r)||{}}function IT(r,t){Ft(sr(r.series),function(a){Oi(a)&&MT(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ft(e,function(a){Ft(sr(r[a]),function(n){n&&(Fe(n,"axisLabel"),Fe(n.axisPointer,"label"))})}),Ft(sr(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Fe(n,"axisLabel"),Fe(n&&n.axisPointer,"label")}),Ft(sr(r.calendar),function(a){ot(a,"itemStyle"),Fe(a,"dayLabel"),Fe(a,"monthLabel"),Fe(a,"yearLabel")}),Ft(sr(r.radar),function(a){Fe(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Ft(sr(r.geo),function(a){Oi(a)&&(Pt(a),Ft(sr(a.regions),function(n){Pt(n)}))}),Ft(sr(r.timeline),function(a){Pt(a),ot(a,"label"),ot(a,"itemStyle"),ot(a,"controlStyle",!0);var n=a.data;B(n)&&w(n,function(i){J(i)&&(ot(i,"label"),ot(i,"itemStyle"))})}),Ft(sr(r.toolbox),function(a){ot(a,"iconStyle"),Ft(a.feature,function(n){ot(n,"iconStyle")})}),Fe(yp(r.axisPointer),"label"),Fe(yp(r.tooltip).axisPointer,"label")}function LT(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function PT(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];(a||i[n[s]]==null)&&(i[n[s]]=e)}function mp(r){r&&w(RT,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var RT=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ET=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fl=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Un(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Fl.length;e++){var a=Fl[e][1],n=Fl[e][0];t[a]!=null&&(t[n]=t[a])}}function Sp(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function xp(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function kT(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function _S(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&_S(r[e].children,t)}function bS(r,t){IT(r,t),r.series=_e(r.series),w(r.series,function(e){if(!!J(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Sp(e.label);var n=e.data;if(n&&!Tt(n))for(var i=0;i<n.length;i++)Sp(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=LT(e,"pointer.color");o!=null&&PT(e,"itemStyle.color",o)}else if(a==="bar"){Un(e),Un(e.backgroundStyle),Un(e.emphasis);var n=e.data;if(n&&!Tt(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Un(n[i]),Un(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),xp(e),_S(e.data,xp)}else a==="graph"||a==="sankey"?kT(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Q(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),mp(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(ET,function(e){var a=r[e];a&&(B(a)||(a=[a]),w(a,function(n){mp(n)}))})}function NT(r){var t=Z();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(OT)}function OT(r){w(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,v){var h=o.get(t.stackedDimension,v);if(isNaN(h))return n;var f,p;s?p=o.getRawIndex(v):f=o.get(t.stackedByDimension,v);for(var d=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,f)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Vw(h,m),d=m;break}}}return a[0]=h,a[1]=d,a})})}var fl=function(){function r(t){this.data=t.data||(t.sourceFormat===nr?{}:[]),this.sourceFormat=t.sourceFormat||hS,this.seriesLayoutBy=t.seriesLayoutBy||rr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&dS(this,a)===et.Must&&(n.type="ordinal")}}return r}();function lh(r){return r instanceof fl}function kc(r,t,e){e=e||wS(r);var a=t.seriesLayoutBy,n=BT(r,e,a,t.sourceHeader,t.dimensions),i=new fl({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(t)});return i}function uh(r){return new fl({data:r,sourceFormat:Tt(r)?Or:Bt})}function VT(r){return new fl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:j(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function wS(r){var t=hS;if(Tt(r))t=Or;else if(B(r)){r.length===0&&(t=ut);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(B(n)||Tt(n)){t=ut;break}else if(J(n)){t=zt;break}}}}else if(J(r)){for(var i in r)if(Y(r,i)&&bn(r[i])){t=nr;break}}return t}function BT(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:_p(n),startIndex:o,dimensionsDetectedCount:i};if(t===ut){var s=r;a==="auto"||a==null?bp(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},e,s,10):o=me(a)?a:a?1:0,!n&&o===1&&(n=[],bp(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===kn?s.length:s[0]?s[0].length:null}else if(t===zt)n||(n=zT(r));else if(t===nr)n||(n=[],w(r,function(u,c){n.push(c)}));else if(t===Bt){var l=Cn(r[0]);i=B(l)&&l.length||1}return{startIndex:o,dimensionsDefine:_p(n),dimensionsDetectedCount:i}}function zT(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ue(e)}function _p(r){if(!!r){var t=Z();return G(r,function(e,a){e=J(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function bp(r,t,e,a){if(t===kn)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function AS(r){var t=r.sourceFormat;return t===zt||t===nr}var jr,Jr,Qr,wp,Ap,TS=function(){function r(t,e){var a=lh(t)?t:uh(t);this._source=a;var n=this._data=a.data;a.sourceFormat===Or&&(this._offset=0,this._dimSize=e,this._data=n),Ap(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Ap=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,v=l.startIndex,h=l.dimensionsDefine,f=wp[ch(u,c)];if(z(o,f),u===Or)o.getItem=e,o.count=n,o.fillStorage=a;else{var p=CS(u,c);o.getItem=$(p,null,s,v,h);var d=DS(u,c);o.count=$(d,null,s,v,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,v=0;v<u;v++)s[v]=l[c+v];return s},a=function(o,s,l,u){for(var c=this._data,v=this._dimSize,h=0;h<v;h++){for(var f=u[h],p=f[0]==null?1/0:f[0],d=f[1]==null?-1/0:f[1],g=s-o,y=l[h],m=0;m<g;m++){var S=c[m*v+h];y[o+m]=S,S<p&&(p=S),S>d&&(d=S)}f[0]=p,f[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};wp=(t={},t[ut+"_"+rr]={pure:!0,appendData:i},t[ut+"_"+kn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[zt]={pure:!0,appendData:i},t[nr]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)c.push(l[v])})}},t[Bt]={appendData:i},t[Or]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Tp=function(r,t,e,a){return r[a]},GT=(jr={},jr[ut+"_"+rr]=function(r,t,e,a){return r[a+t]},jr[ut+"_"+kn]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},jr[zt]=Tp,jr[nr]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[a]:null}return i},jr[Bt]=Tp,jr);function CS(r,t){var e=GT[ch(r,t)];return e}var Cp=function(r,t,e){return r.length},FT=(Jr={},Jr[ut+"_"+rr]=function(r,t,e){return Math.max(0,r.length-t)},Jr[ut+"_"+kn]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},Jr[zt]=Cp,Jr[nr]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},Jr[Bt]=Cp,Jr);function DS(r,t){var e=FT[ch(r,t)];return e}var Hl=function(r,t,e){return r[t]},HT=(Qr={},Qr[ut]=Hl,Qr[zt]=function(r,t,e){return r[e]},Qr[nr]=Hl,Qr[Bt]=function(r,t,e){var a=Cn(r);return a instanceof Array?a[t]:a},Qr[Or]=Hl,Qr);function MS(r){var t=HT[r];return t}function ch(r,t){return r===ut?r+"_"+t:r}function dn(r,t,e){if(!!r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return MS(i)(a,o,s)}else{var l=a;return i===Bt&&(l=Cn(a)),l}}}}var WT=/\{@(.+?)\}/g,pl=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,v=this.mainType,h=v==="series",f=a.userOutput&&a.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:c,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&B(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(K(i))return l.status=e,l.dimensionIndex=n,i(l);if(U(i)){var c=ah(i,l);return c.replace(WT,function(v,h){var f=h.length,p=h;p.charAt(0)==="["&&p.charAt(f-1)==="]"&&(p=+p.slice(1,f-1));var d=dn(s,t,p);if(o&&B(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return dn(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function Dp(r){var t,e;return J(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Ai(r){return new $T(r)}var $T=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(v||f<p)){var d=this._progress;if(B(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){Mp.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Mp.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),B(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Mp=function(){var r,t,e,a,n,i={reset:function(l,u,c,v){t=l,r=u,e=c,a=v,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Vr(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!me(r)&&r!=null&&r!=="-"&&(r=+Ct(r)),r==null||r===""?NaN:Number(r))}var UT=Z({number:function(r){return parseFloat(r)},time:function(r){return+Ct(r)},trim:function(r){return U(r)?Qi(r):r}});function IS(r){return UT.get(r)}var LS={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},YT=function(){function r(t,e){if(!me(e)){var a="";ye(a)}this._opFn=LS[t],this._rvalFloat=ar(e)}return r.prototype.evaluate=function(t){return me(t)?this._opFn(t,this._rvalFloat):this._opFn(ar(t),this._rvalFloat)},r}(),PS=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=me(t)?t:ar(t),n=me(e)?e:ar(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(t),l=U(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),ZT=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ar(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=ar(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function XT(r,t){return r==="eq"||r==="ne"?new ZT(r==="eq",t):Y(LS,r)?new YT(r,t):null}var KT=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Vr(t,e)},r}();function qT(r,t){var e=new KT,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==rr&&ye(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var S="";Y(l,y)&&ye(S),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var v=CS(n,rr);t.__isBuiltIn&&(e.getRawDataItem=function(d){return v(a,i,s,d)},e.getRawData=$(jT,null,r)),e.cloneRawData=$(JT,null,r);var h=DS(n,rr);e.count=$(h,null,a,i,s);var f=MS(n);e.retrieveValue=function(d,g){var y=v(a,i,s,d);return p(y,g)};var p=e.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return f(d,g,y.name)}};return e.getDimensionInfo=$(QT,null,s,l),e.cloneAllDimensionInfo=$(eC,null,s),e}function jT(r){var t=r.sourceFormat;if(!vh(t)){var e="";ye(e)}return r.data}function JT(r){var t=r.sourceFormat,e=r.data;if(!vh(t)){var a="";ye(a)}if(t===ut){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===zt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(z({},e[i]));return n}}function QT(r,t,e){if(e!=null){if(me(e)||!isNaN(e)&&!Y(t,e))return r[e];if(Y(t,e))return t[e]}}function eC(r){return j(r)}var RS=Z();function tC(r){r=j(r);var t=r.type,e="";t||ye(e);var a=t.split(":");a.length!==2&&ye(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,RS.set(t,r)}function rC(r,t,e){var a=_e(r),n=a.length,i="";n||ye(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=aC(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function aC(r,t,e,a){var n="";t.length||ye(n),J(r)||ye(n);var i=r.type,o=RS.get(i);o||ye(n);var s=G(t,function(u){return qT(u,o)}),l=_e(o.transform({upstream:s[0],upstreamList:s,config:j(r.config)}));return G(l,function(u,c){var v="";J(u)||ye(v),u.data||ye(v);var h=wS(u.data);vh(h)||ye(v);var f,p=t[0];if(p&&c===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),f={seriesLayoutBy:rr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else f={seriesLayoutBy:rr,sourceHeader:0,dimensions:u.dimensions};return kc(u.data,f,null)})}function vh(r){return r===ut||r===zt}var dl="undefined",nC=typeof Uint32Array===dl?Array:Uint32Array,iC=typeof Uint16Array===dl?Array:Uint16Array,ES=typeof Int32Array===dl?Array:Int32Array,Ip=typeof Float64Array===dl?Array:Float64Array,kS={float:Ip,int:ES,ordinal:Array,number:Array,time:Ip},Wl;function Wa(r){return r>65535?nC:iC}function $a(){return[1/0,-1/0]}function oC(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Lp(r,t,e,a,n){var i=kS[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var sC=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Wl[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],AS(n),this._dimensions=G(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new kS[e||"float"](this._rawCount),this._rawExtent[i]=$a(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=$a());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];Lp(a,u,c.type,l,!0)}for(var v=[],h=s;h<l;h++)for(var f=h-s,p=0;p<i;p++){var c=n[p],d=Wl.arrayRows.call(this,t[f]||v,c.property,f,p);a[p][h]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),c=0;c<s;c++){var v=o[c];l[c]||(l[c]=$a()),Lp(i,c,v.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],f=t;f<e;f++){h=n.getItem(f,h);for(var p=0;p<s;p++){var d=i[p],g=this._dimValueGetter(h,u[p],f,p);d[f]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,v=this.count();c<v;c++){var h=this.getRawIndex(c),f=e-i[h],p=Math.abs(f);p<=a&&((p<s||p===s&&f>=0&&l<0)&&(s=p,l=f,u=0),f===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Wa(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Wa(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],v=a._chunks,h=0;h<n;h++){var f=void 0,p=a.getRawIndex(h);if(l===0)f=e(h);else if(l===1){var d=v[c][p];f=e(d,h)}else{for(var g=0;g<l;g++)s[g]=v[t[g]][p];s[g]=h,f=e.apply(null,s)}f&&(o[u++]=p)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ue(t),i=n.length;if(!i)return this;var o=e.count(),s=Wa(e._rawCount),l=new s(o),u=0,c=n[0],v=t[c][0],h=t[c][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(i===1){for(var g=f[n[0]],y=0;y<a;y++){var m=g[y];(m>=v&&m<=h||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=f[n[0]],S=f[n[1]],x=t[n[1]][0],_=t[n[1]][1],y=0;y<a;y++){var m=g[y],b=S[y];(m>=v&&m<=h||isNaN(m))&&(b>=x&&b<=_||isNaN(b))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var A=e.getRawIndex(y),m=f[n[0]][A];(m>=v&&m<=h||isNaN(m))&&(l[u++]=A)}else for(var y=0;y<o;y++){for(var T=!0,A=e.getRawIndex(y),C=0;C<i;C++){var D=n[C],m=f[D][A];(m<t[D][0]||m>t[D][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=$a();for(var v=0;v<s;v++){for(var h=t.getRawIndex(v),f=0;f<o;f++)l[f]=n[e[f]][h];l[o]=v;var p=a&&a.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var d=e[c],g=p[c],y=u[d],m=n[d];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,v,h,f=new(Wa(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));f[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,S=d;S<g;S++){var x=this.getRawIndex(S),_=i[x];isNaN(_)||(m+=_)}m/=g-d;var b=p,A=Math.min(p+l,o),T=p-1,C=i[u];c=-1,h=b;for(var D=-1,M=0,S=b;S<A;S++){var x=this.getRawIndex(S),_=i[x];if(isNaN(_)){M++,D<0&&(D=x);continue}v=Math.abs((T-y)*(_-C)-(T-S)*(m-C)),v>c&&(c=v,h=x)}M>0&&M<A-b&&(f[s++]=Math.min(D,h),h=Math.max(D,h)),f[s++]=h,u=h}return f[s++]=this.getRawIndex(o-1),a._count=s,a._indices=f,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(Wa(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var v=c,h=o[this.getRawIndex(v)],f=c,p=o[this.getRawIndex(f)],d=i;c+i>s&&(d=s-c);for(var g=0;g<d;g++){var y=this.getRawIndex(c+g),m=o[y];m<h&&(h=m,v=c+g),m>p&&(p=m,f=c+g)}var S=this.getRawIndex(v),x=this.getRawIndex(f);v<f?(l[u++]=S,l[u++]=x):(l[u++]=x,l[u++]=S)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),v=i._rawExtent[t]=$a(),h=new(Wa(this._rawCount))(Math.ceil(c/l)),f=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,c-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),h[f++]=m}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=$a();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),v=e[c];v<s&&(s=v),v>l&&(l=v)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&ba(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?oC(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=j(this._extent),t._rawExtent=j(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Vr(e[i],this._dimensions[i])}Wl={arrayRows:t,objectRows:function(e,a,n,i){return Vr(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Vr(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),Nc=sC,NS=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(bo(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Tt(s)?Or:Bt,i=[];var v=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},f=pe(v.seriesLayoutBy,h.seriesLayoutBy)||null,p=pe(v.sourceHeader,h.sourceHeader),d=pe(v.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d;n=g?[kc(s,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var S=y.get("source",!0);n=[kc(S,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&Rp(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(n||0),v="";n!=null&&!c&&Rp(v),s.push(c),l.push(u._getVersionSign())}),a?o=rC(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[VT(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];bo(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Nc,s.initData(new TS(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(bo(t)){var e=oh(t);return e?[e.getSourceManager()]:[]}else return G(uT(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(bo(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function Pp(r){var t=r.option.transform;t&&ms(r.option.transform)}function bo(r){return r.mainType==="series"}function Rp(r){throw new Error(r)}var lC="line-height:1";function OS(r){var t=r.lineHeight;return t==null?lC:"line-height:"+st(t+"")+"px"}function VS(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+st(a+"")+"px;color:"+st(e)+";font-weight:"+st(n+""),valueStyle:"font-size:"+st(o+"")+"px;color:"+st(i)+";font-weight:"+st(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var uC=[0,10,20,30],cC=["",`
`,`

`,`


`];function je(r,t){return t.type=r,t}function Oc(r){return r.type==="section"}function BS(r){return Oc(r)?vC:hC}function zS(r){if(Oc(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return w(r.blocks,function(n){var i=zS(n);i>=t&&(t=i+ +(a&&(!i||Oc(n)&&!n.noHeader)))}),t}return 0}function vC(r,t,e,a){var n=t.noHeader,i=fC(zS(t)),o=[],s=t.blocks||[];bt(!s||B(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var c=new PS(u[l],null);s.sort(function(d,g){return c.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,g){var y=t.valueFormatter,m=BS(d)(y?z(z({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):Vc(a,o.join(""),n?e:i.html);if(n)return v;var h=Pc(t.header,"ordinal",r.useUTC),f=VS(a,r.renderMode).nameStyle,p=OS(a);return r.renderMode==="richText"?GS(r,h,f)+i.richText+v:Vc(a,'<div style="'+f+";"+p+';">'+st(h)+"</div>"+v,e)}function hC(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=B(x)?x:[x],G(x,function(_,b){return Pc(_,B(f)?f[b]:f,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),h=i?"":Pc(l,"ordinal",u),f=t.valueType,p=o?[]:c(t.value,t.dataIndex),d=!s||!i,g=!s&&i,y=VS(a,n),m=y.nameStyle,S=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":GS(r,h,m))+(o?"":gC(r,p,d,g,S)):Vc(a,(s?"":v)+(i?"":pC(h,!s,m))+(o?"":dC(p,d,g,S)),e)}}function Ep(r,t,e,a,n,i){if(!!r){var o=BS(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function fC(r){return{html:uC[r],richText:cC[r]}}function Vc(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=OS(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function pC(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+st(r)+"</span>"}function dC(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=B(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return st(o)}).join("&nbsp;&nbsp;")+"</span>"}function GS(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function gC(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(B(t)?t.join("  "):t,i)}function FS(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Ia(a)}function HS(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var $l=function(){function r(){this.richTextStyles={},this._nextStyleNameId=b0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=sS({color:e,type:t,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};B(e)?w(e,function(i){return z(a,i)}):z(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function WS(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=B(s),u=FS(t,e),c,v,h,f;if(o>1||l&&!o){var p=yC(s,t,e,i,u);c=p.inlineValues,v=p.inlineValueTypes,h=p.blocks,f=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);f=c=dn(n,e,i[0]),v=d.type}else f=c=l?s[0]:s;var g=Ov(t),y=g&&t.name||"",m=n.getName(e),S=a?y:m;return je("section",{header:y,noHeader:a||!g,sortParam:f,blocks:[je("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Qi(S),value:c,valueType:v,dataIndex:e})].concat(h||[])})}function yC(r,t,e,a,n){var i=t.getData(),o=ba(r,function(v,h,f){var p=i.getDimensionInfo(f);return v=v||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?w(a,function(v){c(dn(i,e,v),v)}):w(r,c);function c(v,h){var f=i.getDimensionInfo(h);!f||f.otherDims.tooltip===!1||(o?u.push(je("nameValue",{markerType:"subItem",markerColor:n,name:f.displayName,value:v,valueType:f.type})):(s.push(v),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var br=ve();function wo(r,t){return r.getName(t)||r.getId(t)}var us="__universalTransitionEnabled",gl=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ai({count:SC,reset:xC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=br(this).sourceManager=new NS(this);i.prepareSource();var o=this.getInitialData(e,n);Np(o,this),this.dataTask.context.data=o,br(this).dataBeforeProcessed=o,kp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Ni(this),i=n?Rn(e):{},o=this.subType;le.hasClass(o)&&(o+="Series"),ne(e,a.getTheme().get(this.subType)),ne(e,this.getDefaultOption()),Ta(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Fr(e,i,n)},t.prototype.mergeOption=function(e,a){e=ne(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Ni(this);n&&Fr(this.option,e,n);var i=br(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Np(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,br(this).dataBeforeProcessed=o,kp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Tt(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ta(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Bc(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return br(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Bc(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}br(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Z(e)},t.prototype.getSourceManager=function(){return br(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return br(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,n){return WS({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(ke.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=sh.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(!!n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=wo(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ue(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[wo(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[us])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var v=a[c],h=wo(e,v);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(v)}}else if(s==="single"||s===!0){var f=a[l-1],h=wo(e,f);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(f),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return le.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(le);Ze(gl,pl);Ze(gl,sh);P0(gl,le);function kp(r){var t=r.name;Ov(r)||(r.name=mC(r)||t)}function mC(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return w(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function SC(r){return r.model.getRawData().count()}function xC(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),_C}function _C(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Np(r,t){w(Mi(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ee(bC,t))})}function bC(r,t){var e=Bc(r);return e&&e.setOutputEnd((t||this).count()),t}function Bc(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var De=gl,hh=function(){function r(){this.group=new te,this.uid=Pn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Bv(hh);rl(hh);var Re=hh;function On(){var r=ve();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var $S=ve(),wC=On(),fh=function(){function r(){this.group=new te,this.uid=Pn("viewChart"),this.renderTask=Ai({plan:AC,reset:TC}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||Vp(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||Vp(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Zr(this.group,t)},r.markUpdateMethod=function(t,e){$S(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Op(r,t,e){r&&Ri(r)&&(t==="emphasis"?fr:pr)(r,e)}function Vp(r,t,e){var a=Ca(r,t),n=t&&t.highlightKey!=null?CA(t.highlightKey):null;a!=null?w(_e(a),function(i){Op(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){Op(i,e,n)})}Bv(fh);rl(fh);function AC(r){return wC(r.model)}function TC(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&$S(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),CC[l]}var CC={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},be=fh,Ms="\0__throttleOriginMethod",Bp="\0__throttleRate",zp="\0__throttleType";function yl(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];a=new Date().getTime(),l=this,u=f;var d=c||t,g=c||e;c=null,s=a-(g?n:i)-d,clearTimeout(o),g?o=setTimeout(v,d):s>=0?v():o=setTimeout(v,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(f){c=f},h}function Vn(r,t,e,a){var n=r[t];if(!!n){var i=n[Ms]||n,o=n[zp],s=n[Bp];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=yl(i,e,a==="debounce"),n[Ms]=i,n[zp]=a,n[Bp]=e}return n}}function Vi(r,t){var e=r[t];e&&e[Ms]&&(e.clear&&e.clear(),r[t]=e[Ms])}var Gp=ve(),Fp={itemStyle:Da(j0,!0),lineStyle:Da(q0,!0)},DC={lineStyle:"stroke",itemStyle:"fill"};function US(r,t){var e=r.visualStyleMapper||Fp[t];return e||(console.warn("Unknown style type '"+t+"'."),Fp.itemStyle)}function YS(r,t){var e=r.visualDrawType||DC[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var MC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=US(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=YS(r,a),u=o[l],c=K(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||v){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.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(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(f,p){var d=r.getDataParams(p),g=z({},o);g[l]=c(d),f.setItemVisual(p,"style",g)}}}},Yn=new xe,IC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=US(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Yn.option=l[a];var u=n(Yn),c=o.ensureUniqueItemVisual(s,"style");z(c,u),Yn.option.decal&&(o.setItemVisual(s,"decal",Yn.option.decal),Yn.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},LC={performRawSeries:!0,overallReset:function(r){var t=Z();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Gp(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Gp(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=YS(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],v=i.getItemVisual(c,"colorFromPalette");if(v){var h=i.ensureUniqueItemVisual(c,"style"),f=a.getName(u)||u+"",p=a.count();h[l]=e.getColorFromPalette(f,o,p)}})}})}},Ao=Math.PI;function PC(r,t){t=t||{},Q(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new te,a=new de({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ue({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new de({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Qs({shape:{startAngle:-Ao/2,endAngle:-Ao/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ao*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ao*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var RC=function(){function r(t,e,a,n){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=Z();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;w(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";bt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;w(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),v=c.seriesTaskMap,h=c.overallTask;if(h){var f,p=h.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),f=!0)}),f&&h.dirty(),o.updatePayload(h,a);var d=o.getPerformArgs(h,n.block);p.each(function(g){g.perform(d)}),h.perform(d)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Z(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(v){var h=v.uid,f=s.set(h,o&&o.get(h)||Ai({plan:VC,reset:BC,count:GC}));f.context={model:v,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(v,f)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Ai({reset:EC});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=t.seriesType,c=t.getTargetSeries,v=!0,h=!1,f="";bt(!t.createOnAllSeries,f),u?a.eachRawSeriesByType(u,p):c?c(a,n).each(p):(v=!1,w(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(h=!0,Ai({reset:kC,onDirty:OC})));y.context={model:d,overallProgress:v},y.agent=o,y.__block=v,i._pipe(d,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return K(t)&&(t={overallReset:t,seriesType:FC(t)}),t.uid=Pn("stageHandler"),e&&(t.visualType=e),t},r}();function EC(r){r.overallReset(r.ecModel,r.api,r.payload)}function kC(r){return r.overallProgress&&NC}function NC(){this.agent.dirty(),this.getDownstream().dirty()}function OC(){this.agent&&this.agent.dirty()}function VC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function BC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=_e(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?G(t,function(e,a){return ZS(a)}):zC}var zC=ZS(0);function ZS(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function GC(r){return r.data.count()}function FC(r){Is=null;try{r(Bi,XS)}catch(t){}return Is}var Bi={},XS={},Is;KS(Bi,SS);KS(XS,xS);Bi.eachSeriesByType=Bi.eachRawSeriesByType=function(r){Is=r};Bi.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Is=r.subType)};function KS(r,t){for(var e in t.prototype)r[e]=dt}var qS=RC,Hp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],HC={color:Hp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Hp]},it="#B9B8CE",Wp="#100C2A",To=function(){return{axisLine:{lineStyle:{color:it}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},$p=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],jS={darkMode:!0,color:$p,backgroundColor:Wp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:it},pageTextStyle:{color:it}},textStyle:{color:it},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:it}},dataZoom:{borderColor:"#71708A",textStyle:{color:it},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:it}},timeline:{lineStyle:{color:it},label:{color:it},controlStyle:{color:it,borderColor:it}},calendar:{itemStyle:{color:Wp},dayLabel:{color:it},monthLabel:{color:it},yearLabel:{color:it}},timeAxis:To(),logAxis:To(),valueAxis:To(),categoryAxis:To(),line:{symbol:"circle"},graph:{color:$p},gauge:{title:{color:it},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:it},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};jS.categoryAxis.splitLine.show=!1;var WC=jS,$C=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(U(t)){var i=Qt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var c=!1,v=0;v<o.length;v++){var h=o[v],f=u.lastIndexOf(h);if(f>0&&f===u.length-h.length){var p=u.slice(0,f);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(v,h,f,p){return v[f]==null||h[p||f]===v[f]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),zc=["symbol","symbolSize","symbolRotate","symbolOffset"],Up=zc.concat(["symbolKeepAspect"]),UC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<zc.length;o++){var s=zc[o],l=r.get(s);K(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(z({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ue(n);function c(v,h){for(var f=r.getRawValue(h),p=r.getDataParams(h),d=0;d<u.length;d++){var g=u[d];v.setItemVisual(h,g,n[g](f,p))}}return{dataEach:i?c:null}}},YC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<Up.length;s++){var l=Up[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function ph(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function so(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function JS(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function QS(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=z({},n),o.dispatchAction(z(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Ua(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var v=o.getData(),h=Ca(v,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:B(h)?v.getName(h[0]):v.getName(h),selected:U(l)?l:z({},l)})}})}function ZC(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Ua("map","selectchanged",t,n,a),Ua("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Ua("map","selected",t,n,a),Ua("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Ua("map","unselected",t,n,a),Ua("pie","unselected",t,n,a))})}function pa(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var XC=Ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),KC=Ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),qC=Ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,v=Math.sin(u),h=Math.cos(u),f=o*.6,p=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-v*f,l+s+h*f,e,a-p,e,a),r.bezierCurveTo(e,a-p,e-c+v*f,l+s+h*f,e-c,l+s),r.closePath()}}),jC=Ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),JC={line:Je,rect:de,roundRect:de,square:de,circle:Yr,diamond:KC,pin:qC,arrow:jC,triangle:XC},QC={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},Ls={};w(JC,function(r,t){Ls[t]=new r});var eD=Ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=gc(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=Ls[a];n||(a="rect",n=Ls[a]),QC[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function tD(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function ze(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Uv(r.slice(8),new we(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=no(r.slice(7),{},new we(t,e,a,n),o?"center":"cover"):l=new eD({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=tD,i&&l.setColor(i),l}function Bn(r){return B(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Va(r,t){if(r!=null)return B(r)||(r=[r,r]),[H(r[0],t[0])||0,H(pe(r[1],r[0]),t[1])||0]}var Ul=new Kb,Yp=new qb(100),Zp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gn(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Ul.delete(r);var i=Ul.get(r);if(i)return i;var o=Q(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Ul.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],v=!0,h=0;h<Zp.length;++h){var f=o[Zp[h]];if(f!=null&&!B(f)&&!U(f)&&!me(f)&&typeof f!="boolean"){v=!1;break}c.push(f)}var p;if(v){p=c.join(",")+(n?"-svg":"");var d=Yp.get(p);d&&(n?u.svgElement=d:u.image=d)}var g=tx(o.dashArrayX),y=rD(o.dashArrayY),m=ex(o.symbol),S=aD(g),x=rx(y),_=!n&&Ss.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},A=C(),T;_&&(_.width=A.width*e,_.height=A.height*e,T=_.getContext("2d")),D(),v&&Yp.put(p,_||b),u.image=_,u.svgElement=b,u.svgWidth=A.width,u.svgHeight=A.height;function C(){for(var M=1,I=0,L=S.length;I<L;++I)M=Hf(M,S[I]);for(var R=1,I=0,L=m.length;I<L;++I)R=Hf(R,m[I].length);M*=R;var P=x*S.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,_.width,_.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,_.width,_.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var L=-x,R=0,P=0,k=0;L<A.height;){if(R%2===0){for(var O=P/2%m.length,N=0,V=0,F=0;N<A.width*2;){for(var W=0,I=0;I<g[k].length;++I)W+=g[k][I];if(W<=0)break;if(V%2===0){var X=(1-o.symbolSize)*.5,re=N+g[k][V]*X,ae=L+y[R]*X,se=g[k][V]*o.symbolSize,Ve=y[R]*o.symbolSize,St=F/2%m[O].length;fe(re,ae,se,Ve,m[O][St])}N+=g[k][V],++F,++V,V===g[k].length&&(V=0)}++k,k===g.length&&(k=0)}L+=y[R],++P,++R,R===y.length&&(R=0)}function fe(oe,Le,Te,Ee,Xe){var Ke=n?1:e,Pe=ze(Xe,oe*Ke,Le*Ke,Te*Ke,Ee*Ke,o.color,o.symbolKeepAspect);if(n){var Ge=a.painter.renderOneToVNode(Pe);Ge&&b.children.push(Ge)}else u0(T,Pe)}}}}function ex(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!U(r[e])){t=!1;break}if(t)return ex([r]);for(var a=[],e=0;e<r.length;++e)U(r[e])?a.push([r[e]]):a.push(r[e]);return a}function tx(r){if(!r||r.length===0)return[[0,0]];if(me(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!me(r[a])){e=!1;break}if(e)return tx([r]);for(var n=[],a=0;a<r.length;++a)if(me(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=G(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function rD(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(me(r)){var t=Math.ceil(r);return[t,t]}var e=G(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function aD(r){return G(r,function(t){return rx(t)})}function rx(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function nD(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=gn(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=gn(n,t)}}})}var iD=new wn,Wt=iD,ax={};function oD(r,t){ax[r]=t}function nx(r){return ax[r]}var sD="5.6.0",lD={zrender:"5.6.1"},uD=1,cD=800,vD=900,hD=1e3,fD=2e3,pD=5e3,ix=1e3,dD=1100,dh=2e3,ox=3e3,gD=4e3,ml=4500,yD=4600,mD=5e3,SD=6e3,sx=7e3,lx={PROCESSOR:{FILTER:hD,SERIES_FILTER:cD,STATISTIC:pD},VISUAL:{LAYOUT:ix,PROGRESSIVE_LAYOUT:dD,GLOBAL:dh,CHART:ox,POST_CHART_LAYOUT:yD,COMPONENT:gD,BRUSH:mD,CHART_ITEM:ml,ARIA:SD,DECAL:sx}},nt="__flagInMainProcess",yt="__pendingUpdate",Yl="__needsUpdateStatus",Xp=/^[a-zA-Z0-9_]+$/,Zl="__connectUpdateStatus",Kp=0,xD=1,_D=2;function ux(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return vx(this,r,t)}}function cx(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vx(this,r,t)}}function vx(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),wn.prototype[t].apply(r,e)}var hx=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(wn),fx=hx.prototype;fx.on=cx("on");fx.off=cx("off");var Ya,Xl,Co,wr,Kl,ql,jl,Zn,Xn,qp,jp,Jl,Jp,Do,Qp,px,Mt,ed,Ps=function(r){E(t,r);function t(e,a,n){var i=r.call(this,new $C)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},U(a)&&(a=dx[a]),i._dom=e;var o="canvas",s="auto",l=!1;n.ssr&&jb(function(h){var f=q(h),p=f.dataIndex;if(p!=null){var d=Z();return d.set("series_index",f.seriesIndex),d.set("data_index",p),f.ssrType&&d.set("ssr_type",f.ssrType),d}});var u=i._zr=kf(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:pe(n.useDirtyRect,l),useCoarsePointer:pe(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=yl($(u.flush,u),17),a=j(a),a&&bS(a,!0),i._theme=a,i._locale=ZA(n.locale||J0),i._coordSysMgr=new Nn;var c=i._api=Qp(i);function v(h,f){return h.__prio-f.__prio}return Ll(Es,v),Ll(Gc,v),i._scheduler=new qS(i,c,Gc,Es),i._messageCenter=new hx,i._initEvents(),i.resize=$(i.resize,i),u.animation.on("frame",i._onframe,i),qp(u,i),jp(u,i),ms(i),i}return t.prototype._onframe=function(){if(!this._disposed){ed(this);var e=this._scheduler;if(this[yt]){var a=this[yt].silent;this[nt]=!0;try{Ya(this),wr.update.call(this,null,this[yt].updateParams)}catch(l){throw this[nt]=!1,this[yt]=null,l}this._zr.flush(),this[nt]=!1,this[yt]=null,Zn.call(this,a),Xn.call(this,a)}else if(e.unfinished){var n=uD,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),ql(this,i),e.performVisualTasks(i),Do(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[nt]){if(this._disposed){this.id;return}var i,o,s;if(J(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[nt]=!0,!this._model||a){var l=new DT(this._api),u=this._theme,c=this._model=new SS;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Fc);var v={seriesTransition:s,optionChanged:!0};if(n)this[yt]={silent:i,updateParams:v},this[nt]=!1,this.getZr().wakeUp();else{try{Ya(this),wr.update.call(this,null,v)}catch(h){throw this[yt]=null,this[nt]=!1,h}this._ssr||this._zr.flush(),this[yt]=null,this[nt]=!1,Zn.call(this,i),Xn.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ke.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!ke.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return w(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;w(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(ks[n]){var l=s,u=s,c=-s,v=-s,h=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();w(ma,function(S,x){if(S.group===n){var _=a?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(j(e)),b=S.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),c=o(b.right,c),v=o(b.bottom,v),h.push({dom:_,left:b.left,top:b.top})}}),l*=f,u*=f,c*=f,v*=f;var p=c-l,d=v-u,g=Ss.createCanvas(),y=kf(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return w(h,function(S){var x=S.left-l,_=S.top-u;m+='<g transform="translate('+x+","+_+')">'+S.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new de({shape:{x:0,y:0,width:p,height:d},style:{fill:e.connectedBackgroundColor}})),w(h,function(S){var x=new Dt({style:{x:S.left*f-l,y:S.top*f-u,image:S.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return Kl(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return Kl(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=xi(n,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=xi(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?ph(s,l,a):so(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(bD,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&pa(s,function(p){var d=q(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=z({},d.eventData),!0},!0),l){var c=l.componentType,v=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=l.seriesIndex);var h=c&&v!=null&&o.getComponent(c,v),f=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:f},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),w(Ti,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),w(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),ZC(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&M0(this.getDom(),yh,"");var a=this,n=a._api,i=a._model;w(a._componentsViews,function(o){o.dispose(i,n)}),w(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete ma[a.id]},t.prototype.resize=function(e){if(!this[nt]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[yt]&&(i==null&&(i=this[yt].silent),n=!0,this[yt]=null),this[nt]=!0;try{n&&Ya(this),wr.update.call(this,{type:"resize",animation:z({duration:0},e&&e.animation)})}catch(o){throw this[nt]=!1,o}this[nt]=!1,Zn.call(this,i),Xn.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(J(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!Hc[e]){var n=Hc[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=z({},e);return a.type=Ti[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(J(a)||(a={silent:!!a}),!!Rs[e.type]&&!!this._model){if(this[nt]){this._pendingActions.push(e);return}var n=a.silent;jl.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&ke.browser.weChat&&this._throttledZrFlush(),Zn.call(this,n),Xn.call(this,n)}},t.prototype.updateLabelLayout=function(){Wt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Ya=function(v){var h=v._scheduler;h.restorePipelines(v._model),h.prepareStageTasks(),Xl(v,!0),Xl(v,!1),h.plan()},Xl=function(v,h){for(var f=v._model,p=v._scheduler,d=h?v._componentsViews:v._chartsViews,g=h?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,S=0;S<d.length;S++)d[S].__alive=!1;h?f.eachComponent(function(b,A){b!=="series"&&x(A)}):f.eachSeries(x);function x(b){var A=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,C=!A&&g[T];if(!C){var D=Qt(b.type),M=h?Re.getClass(D.main,D.sub):be.getClass(D.sub);C=new M,C.init(f,m),g[T]=C,d.push(C),y.add(C.group)}b.__viewId=C.__id=T,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&p.prepareView(C,b,f,m)}for(var S=0;S<d.length;){var _=d[S];_.__alive?S++:(!h&&_.renderTask.dispose(),y.remove(_.group),_.dispose(f,m),d.splice(S,1),g[_.__id]===_&&delete g[_.__id],_.__id=_.group.__ecComponentInfo=null)}},Co=function(v,h,f,p,d){var g=v._model;if(g.setUpdatePayload(f),!p){w([].concat(v._componentsViews).concat(v._chartsViews),_);return}var y={};y[p+"Id"]=f[p+"Id"],y[p+"Index"]=f[p+"Index"],y[p+"Name"]=f[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var S=f.excludeSeriesId,x;S!=null&&(x=Z(),w(_e(S),function(b){var A=Ye(b,null);A!=null&&x.set(A,!0)})),g&&g.eachComponent(m,function(b){var A=x&&x.get(b.id)!=null;if(!A)if(Jf(f))if(b instanceof De)f.type===ga&&!f.notBlur&&!b.get(["emphasis","disabled"])&&mA(b,f,v._api);else{var T=Wv(b.mainType,b.componentIndex,f.name,v._api),C=T.focusSelf,D=T.dispatchers;f.type===ga&&C&&!f.notBlur&&Tc(b.mainType,b.componentIndex,v._api),D&&w(D,function(M){f.type===ga?fr(M):pr(M)})}else Dc(f)&&b instanceof De&&(_A(b,f,v._api),qf(b),Mt(v))},v),g&&g.eachComponent(m,function(b){var A=x&&x.get(b.id)!=null;A||_(v[p==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},v);function _(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,v._api,f)}},wr={prepareAndUpdate:function(v){Ya(this),wr.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,h){var f=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!f){f.setUpdatePayload(v),y.restoreData(f,v),y.performSeriesTasks(f),g.create(f,p),y.performDataProcessorTasks(f,v),ql(this,f),g.update(f,p),e(f),y.performVisualTasks(f,v),Jl(this,f,p,v,h);var m=f.get("backgroundColor")||"transparent",S=f.get("darkMode");d.setBackgroundColor(m),S!=null&&S!=="auto"&&d.setDarkMode(S),Wt.trigger("afterupdate",f,p)}},updateTransform:function(v){var h=this,f=this._model,p=this._api;if(!!f){f.setUpdatePayload(v);var d=[];f.eachComponent(function(y,m){if(y!=="series"){var S=h.getViewOfComponentModel(m);if(S&&S.__alive)if(S.updateTransform){var x=S.updateTransform(m,f,p,v);x&&x.update&&d.push(S)}else d.push(S)}});var g=Z();f.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var S=m.updateTransform(y,f,p,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(f),this._scheduler.performVisualTasks(f,v,{setDirty:!0,dirtyMap:g}),Do(this,f,p,v,{},g),Wt.trigger("afterupdate",f,p)}},updateView:function(v){var h=this._model;!h||(h.setUpdatePayload(v),be.markUpdateMethod(v,"updateView"),e(h),this._scheduler.performVisualTasks(h,v,{setDirty:!0}),Jl(this,h,this._api,v,{}),Wt.trigger("afterupdate",h,this._api))},updateVisual:function(v){var h=this,f=this._model;!f||(f.setUpdatePayload(v),f.eachSeries(function(p){p.getData().clearAllVisual()}),be.markUpdateMethod(v,"updateVisual"),e(f),this._scheduler.performVisualTasks(f,v,{visualType:"visual",setDirty:!0}),f.eachComponent(function(p,d){if(p!=="series"){var g=h.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,f,h._api,v)}}),f.eachSeries(function(p){var d=h._chartsMap[p.__viewId];d.updateVisual(p,f,h._api,v)}),Wt.trigger("afterupdate",f,this._api))},updateLayout:function(v){wr.update.call(this,v)}},Kl=function(v,h,f,p){if(v._disposed){v.id;return}for(var d=v._model,g=v._coordSysMgr.getCoordinateSystems(),y,m=xi(d,f),S=0;S<g.length;S++){var x=g[S];if(x[h]&&(y=x[h](d,m,p))!=null)return y}},ql=function(v,h){var f=v._chartsMap,p=v._scheduler;h.eachSeries(function(d){p.updateStreamModes(d,f[d.__viewId])})},jl=function(v,h){var f=this,p=this.getModel(),d=v.type,g=v.escapeConnect,y=Rs[d],m=y.actionInfo,S=(m.update||"update").split(":"),x=S.pop(),_=S[0]!=null&&Qt(S[0]);this[nt]=!0;var b=[v],A=!1;v.batch&&(A=!0,b=G(v.batch,function(R){return R=Q(z({},R),v),R.batch=null,R}));var T=[],C,D=Dc(v),M=Jf(v);if(M&&G0(this._api),w(b,function(R){if(C=y.action(R,f._model,f._api),C=C||z({},R),C.type=m.event||C.type,T.push(C),M){var P=Vv(v),k=P.queryOptionMap,O=P.mainTypeSpecified,N=O?k.keys()[0]:"series";Co(f,x,R,N),Mt(f)}else D?(Co(f,x,R,"series"),Mt(f)):_&&Co(f,x,R,_.main,_.sub)}),x!=="none"&&!M&&!D&&!_)try{this[yt]?(Ya(this),wr.update.call(this,v),this[yt]=null):wr[x].call(this,v)}catch(R){throw this[nt]=!1,R}if(A?C={type:m.event||d,escapeConnect:g,batch:T}:C=T[0],this[nt]=!1,!h){var I=this._messageCenter;if(I.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:g,selected:bA(p),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};I.trigger(L.type,L)}}},Zn=function(v){for(var h=this._pendingActions;h.length;){var f=h.shift();jl.call(this,f,v)}},Xn=function(v){!v&&this.trigger("updated")},qp=function(v,h){v.on("rendered",function(f){h.trigger("rendered",f),v.animation.isFinished()&&!h[yt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},jp=function(v,h){v.on("mouseover",function(f){var p=f.target,d=pa(p,Ri);d&&(SA(d,f,h._api),Mt(h))}).on("mouseout",function(f){var p=f.target,d=pa(p,Ri);d&&(xA(d,f,h._api),Mt(h))}).on("click",function(f){var p=f.target,d=pa(p,function(m){return q(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=q(d);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(v){v.clearColorPalette(),v.eachSeries(function(h){h.clearColorPalette()})}function a(v){var h=[],f=[],p=!1;if(v.eachComponent(function(m,S){var x=S.get("zlevel")||0,_=S.get("z")||0,b=S.getZLevelKey();p=p||!!b,(m==="series"?f:h).push({zlevel:x,z:_,idx:S.componentIndex,type:m,key:b})}),p){var d=h.concat(f),g,y;Ll(d,function(m,S){return m.zlevel===S.zlevel?m.z-S.z:m.zlevel-S.zlevel}),w(d,function(m){var S=v.getComponent(m.type,m.idx),x=m.zlevel,_=m.key;g!=null&&(x=Math.max(g,x)),_?(x===g&&_!==y&&x++,y=_):y&&(x===g&&x++,y=""),g=x,S.setZLevel(x)})}}Jl=function(v,h,f,p,d){a(h),Jp(v,h,f,p,d),w(v._chartsViews,function(g){g.__alive=!1}),Do(v,h,f,p,d),w(v._chartsViews,function(g){g.__alive||g.remove(h,f)})},Jp=function(v,h,f,p,d,g){w(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,f,p),s(m,y),c(m,y)})},Do=function(v,h,f,p,d,g){var y=v._scheduler;d=z(d||{},{updatedSeries:h.getSeries()}),Wt.trigger("series:beforeupdate",h,f,d);var m=!1;h.eachSeries(function(S){var x=v._chartsMap[S.__viewId];x.__alive=!0;var _=x.renderTask;y.updatePayload(_,p),u(S,x),g&&g.get(S.uid)&&_.dirty(),_.perform(y.getPerformArgs(_))&&(m=!0),x.group.silent=!!S.get("silent"),o(S,x),qf(S)}),y.unfinished=m||y.unfinished,Wt.trigger("series:layoutlabels",h,f,d),Wt.trigger("series:transition",h,f,d),h.eachSeries(function(S){var x=v._chartsMap[S.__viewId];s(S,x),c(S,x)}),i(v,h),Wt.trigger("series:afterupdate",h,f,d)},Mt=function(v){v[Yl]=!0,v.getZr().wakeUp()},ed=function(v){!v[Yl]||(v.getZr().storage.traverse(function(h){sn(h)||n(h)}),v[Yl]=!1)};function n(v){for(var h=[],f=v.currentStates,p=0;p<f.length;p++){var d=f[p];d==="emphasis"||d==="blur"||d==="select"||h.push(d)}v.selected&&v.states.select&&h.push("select"),v.hoverState===al&&v.states.emphasis?h.push("emphasis"):v.hoverState===ao&&v.states.blur&&h.push("blur"),v.useStates(h)}function i(v,h){var f=v._zr,p=f.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>h.get("hoverLayerThreshold")&&!ke.node&&!ke.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=v._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(v,h){var f=v.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=f)})}function s(v,h){if(!v.preventAutoZ){var f=v.get("z")||0,p=v.get("zlevel")||0;h.eachRendered(function(d){return l(d,f,p,-1/0),!0})}}function l(v,h,f,p){var d=v.getTextContent(),g=v.getTextGuideLine(),y=v.isGroup;if(y)for(var m=v.childrenRef(),S=0;S<m.length;S++)p=Math.max(l(m[S],h,f,p),p);else v.z=h,v.zlevel=f,p=Math.max(v.z2,p);if(d&&(d.z=h,d.zlevel=f,isFinite(p)&&(d.z2=p+2)),g){var x=v.textGuideLineConfig;g.z=h,g.zlevel=f,isFinite(p)&&(g.z2=p+(x&&x.showAbove?1:-1))}return p}function u(v,h){h.eachRendered(function(f){if(!sn(f)){var p=f.getTextContent(),d=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function c(v,h){var f=v.getModel("stateAnimation"),p=v.isAnimationEnabled(),d=f.get("duration"),g=d>0?{duration:d,delay:f.get("delay"),easing:f.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(sn(y))return;if(y instanceof Ie&&DA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var S=y.getTextContent(),x=y.getTextGuideLine();S&&(S.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&n(y)}})}Qp=function(v){return new(function(h){E(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return v._model.getComponent(d.mainType,d.index);p=p.parent}},f.prototype.enterEmphasis=function(p,d){fr(p,d),Mt(v)},f.prototype.leaveEmphasis=function(p,d){pr(p,d),Mt(v)},f.prototype.enterBlur=function(p){O0(p),Mt(v)},f.prototype.leaveBlur=function(p){Hv(p),Mt(v)},f.prototype.enterSelect=function(p){V0(p),Mt(v)},f.prototype.leaveSelect=function(p){B0(p),Mt(v)},f.prototype.getModel=function(){return v.getModel()},f.prototype.getViewOfComponentModel=function(p){return v.getViewOfComponentModel(p)},f.prototype.getViewOfSeriesModel=function(p){return v.getViewOfSeriesModel(p)},f}(xS))(v)},px=function(v){function h(f,p){for(var d=0;d<f.length;d++){var g=f[d];g[Zl]=p}}w(Ti,function(f,p){v._messageCenter.on(p,function(d){if(ks[v.group]&&v[Zl]!==Kp){if(d&&d.escapeConnect)return;var g=v.makeActionFromEvent(d),y=[];w(ma,function(m){m!==v&&m.group===v.group&&y.push(m)}),h(y,Kp),w(y,function(m){m[Zl]!==xD&&m.dispatchAction(g)}),h(y,_D)}})})}}(),t}(wn),gh=Ps.prototype;gh.on=ux("on");gh.off=ux("off");gh.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var bD=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Rs={},Ti={},Gc=[],Fc=[],Es=[],dx={},Hc={},ma={},ks={},wD=+new Date-0,AD=+new Date-0,yh="_echarts_instance_";function TD(r,t,e){var a=!(e&&e.ssr);if(a){var n=mh(r);if(n)return n}var i=new Ps(r,t,e);return i.id="ec_"+wD++,ma[i.id]=i,a&&M0(r,yh,i.id),px(i),Wt.trigger("afterinit",i),i}function CD(r){if(B(r)){var t=r;r=null,w(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+AD++,w(t,function(e){e.group=r})}return ks[r]=!0,r}function gx(r){ks[r]=!1}var DD=gx;function MD(r){U(r)?r=ma[r]:r instanceof Ps||(r=mh(r)),r instanceof Ps&&!r.isDisposed()&&r.dispose()}function mh(r){return ma[Jw(r,yh)]}function ID(r){return ma[r]}function Sh(r,t){dx[r]=t}function xh(r){ce(Fc,r)<0&&Fc.push(r)}function _h(r,t){bh(Gc,r,t,fD)}function yx(r){Sl("afterinit",r)}function mx(r){Sl("afterupdate",r)}function Sl(r,t){Wt.on(r,t)}function Kt(r,t,e){K(t)&&(e=t,t="");var a=J(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!Ti[t]&&(bt(Xp.test(a)&&Xp.test(t)),Rs[a]||(Rs[a]={action:e,actionInfo:r}),Ti[t]=a)}function Sx(r,t){Nn.register(r,t)}function LD(r){var t=Nn.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function xx(r,t){bh(Es,r,t,ix,"layout")}function Kr(r,t){bh(Es,r,t,ox,"visual")}var td=[];function bh(r,t,e,a,n){if((K(t)||J(t))&&(e=t,t=a),!(ce(td,e)>=0)){td.push(e);var i=qS.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function wh(r,t){Hc[r]=t}function PD(r){c0({createCanvas:r})}function _x(r,t,e){var a=nx("registerMap");a&&a(r,t,e)}function RD(r){var t=nx("getMap");return t&&t(r)}var bx=tC;Kr(dh,MC);Kr(ml,IC);Kr(ml,LC);Kr(dh,UC);Kr(ml,YC);Kr(sx,nD);xh(bS);_h(vD,NT);wh("default",PC);Kt({type:ga,event:ga,update:ga},dt);Kt({type:ns,event:ns,update:ns},dt);Kt({type:_i,event:_i,update:_i},dt);Kt({type:is,event:is,update:is},dt);Kt({type:bi,event:bi,update:bi},dt);Sh("light",HC);Sh("dark",WC);var ED={};function Kn(r){return r==null?0:r.length||1}function rd(r){return r}var kD=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||rd,this._newKeyGetter=n||rd,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Kn(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],v=Kn(u),h=Kn(c);if(v>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(v===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(v===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(v>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(v>1)for(var f=0;f<v;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Kn(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Kn(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),dr=kD,ND=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function OD(r,t){var e={},a=e.encode={},n=Z(),i=[],o=[],s={};w(r.dimensions,function(h){var f=r.getDimensionInfo(h),p=f.coordDim;if(p){var d=f.coordDimIndex;Ql(a,p)[d]=h,f.isExtraCoord||(n.set(p,1),VD(f.type)&&(i[0]=h),Ql(s,p)[d]=r.getDimensionIndex(f.name)),f.defaultTooltip&&o.push(h)}vS.each(function(g,y){var m=Ql(a,y),S=f.otherDims[y];S!=null&&S!==!1&&(m[S]=f.name)})});var l=[],u={};n.each(function(h,f){var p=a[f];u[f]=p[0],l=l.concat(p)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=G(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var v=a.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new ND(s,t),e}function Ql(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Ns(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function VD(r){return!(r==="ordinal"||r==="time")}var BD=function(){function r(t){this.otherDims={},t!=null&&z(this,t)}return r}(),cs=BD,zD=ve(),GD={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wx=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Cx(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return pe(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=AS(this.source),a=!Dx(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=e?v.name:null,u=v.type,c=v.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=GD[u]||"f",c&&(n+=c.uid),n+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,n].join("$$");return{dimensions:i,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Ax(r){return r instanceof wx}function Tx(r){for(var t=Z(),e=0;e<(r||[]).length;e++){var a=r[e],n=J(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Cx(r){var t=zD(r);return t.dimNameMap||(t.dimNameMap=Tx(r.dimensionsDefine))}function Dx(r){return r>30}var qn=J,Ar=G,FD=typeof Int32Array=="undefined"?Array:Int32Array,HD="e\0\0",ad=-1,WD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$D=["_approximateExtent"],nd,Mo,jn,Jn,eu,Qn,tu,UD=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;Ax(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var v=a[c],h=U(v)?new cs({name:v}):v instanceof cs?v:new cs(v),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(f),i[f]=h,u[f]!=null&&(l=!0),h.createInvertedIndices&&(s[f]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),n&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=Z();w(o,function(g){d.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(me(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Nc&&(i=t),!i){var o=this.dimensions,s=lh(t)||bn(t)?new TS(t,o.length):t;i=new Nc;var l=Ar(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=OD(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&tu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Or&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Bt;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var v=n.getItem(c,u);if(!this.hasItemOption&&zw(v)&&(this.hasItemOption=!0),v){var h=v.name;i[c]==null&&h!=null&&(i[c]=Ye(h,null));var f=v.id;o[c]==null&&f!=null&&(o[c]=Ye(f,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)tu(this,c);nd(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){qn(t)?z(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=jn(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return Mo(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return B(t)?n.getValues(Ar(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?ad:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){K(t)&&(a=e,e=t,t=[]);var n=a||this,i=Ar(Jn(t),this._getStoreDimIndex,this);this._store.each(i,n?$(e,n):e)},r.prototype.filterSelf=function(t,e,a){K(t)&&(a=e,e=t,t=[]);var n=a||this,i=Ar(Jn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?$(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ue(t);return w(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){K(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Ar(Jn(t),this._getStoreDimIndex,this),s=Qn(this);return s._store=this._store.map(o,i?$(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=Ar(Jn(t),this._getStoreDimIndex,this);this._store.modify(o,i?$(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Qn(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=Qn(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=Qn(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new xe(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new dr(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Mo(t,a)},function(a){return Mo(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},qn(t)?z(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n==null?this.getVisual(e):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),B(i)?i=i.slice():qn(i)&&(i=z({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,qn(e)?z(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){qn(t)?z(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?z(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;wc(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ar(this.dimensions,this._getDimInfo,this),this.hostModel)),eu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!K(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(Jb(arguments)))})},r.internalField=function(){nd=function(t){var e=t._invertedIndicesMap;w(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new FD(o.categories.length);for(var l=0;l<a.length;l++)a[l]=ad;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},jn=function(t,e,a){return Ye(t._getCategory(e,a),null)},Mo=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=jn(t,t._idDimIdx,e)),a==null&&(a=HD+e),a},Jn=function(t){return B(t)||(t=t!=null?[t]:[]),t},Qn=function(t){var e=new r(t._schema?t._schema:Ar(t.dimensions,t._getDimInfo,t),t.hostModel);return eu(e,t),e},eu=function(t,e){w(WD.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,w($D,function(a){t[a]=j(e[a])}),t._calculationInfo=z({},e._calculationInfo)},tu=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=jn(t,i,e)),l==null&&o!=null&&(n[e]=l=jn(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}}(),r}(),lt=UD;function YD(r,t){return zn(r,t).dimensions}function zn(r,t){lh(r)||(r=uh(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=Z(),i=[],o=XD(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Dx(o),l=a===r.dimensionsDefine,u=l?Cx(r):Tx(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var v=Z(c),h=new ES(o),f=0;f<h.length;f++)h[f]=-1;function p(C){var D=h[C];if(D<0){var M=a[C],I=J(M)?M:{name:M},L=new cs,R=I.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var P=i.length;return h[C]=P,L.storeDimIndex=C,i.push(L),L}return i[D]}if(!s)for(var f=0;f<o;f++)p(f);v.each(function(C,D){var M=_e(C).slice();if(M.length===1&&!U(M[0])&&M[0]<0){v.set(D,!1);return}var I=v.set(D,[]);w(M,function(L,R){var P=U(L)?u.get(L):L;P!=null&&P<o&&(I[R]=P,g(p(P),D,R))})});var d=0;w(e,function(C){var D,M,I,L;if(U(C))D=C,L={};else{L=C,D=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=z({},L),L.ordinalMeta=R,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var P=v.get(D);if(P!==!1){if(P=_e(P),!P.length)for(var k=0;k<(M&&M.length||1);k++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&P.push(d++)}w(P,function(O,N){var V=p(O);if(l&&L.type!=null&&(V.type=L.type),g(Q(V,L),D,N),V.name==null&&M){var F=M[N];!J(F)&&(F={name:F}),V.name=V.displayName=F.name,V.defaultTooltip=F.defaultTooltip}I&&Q(V.otherDims,I)})}});function g(C,D,M){vS.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,n.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,S=m!=null;m=y?m||1:0;var x=y||"value";function _(C){C.name==null&&(C.name=C.coordDim)}if(s)w(i,function(C){_(C)}),i.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var A=p(b),T=A.coordDim;T==null&&(A.coordDim=KD(x,n,S),A.coordDimIndex=0,(!y||m<=0)&&(A.isExtraCoord=!0),m--),_(A),A.type==null&&(dS(r,b)===et.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return ZD(i),new wx({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function ZD(r){for(var t=Z(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function XD(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return w(t,function(i){var o;J(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function KD(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var qD=function(){function r(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return r}();function jD(r){var t=r.get("coordinateSystem"),e=new qD(t),a=JD[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var JD={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",We).models[0],i=r.getReferringComponents("yAxis",We).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Za(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Za(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",We).models[0];t.coordSysDims=["single"],e.set("single",n),Za(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",We).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Za(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Za(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Za(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Za(r){return r.get("type")==="category"}function Mx(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;QD(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,v,h;if(w(i,function(m,S){U(m)&&(i[S]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(c=m))}),c&&!a&&!u&&(a=!0),c){v="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,p=c.type,d=0;w(i,function(m){m.coordDim===f&&d++});var g={name:v,coordDim:f,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,p),y.storeDimIndex=s.ensureCalculationDimension(v,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:v}}function QD(r){return!Ax(r.schema)}function gr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Ah(r,t){return gr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function eM(r,t){var e=r.get("coordinateSystem"),a=Nn.get(e),n;return t&&t.coordSysDims&&(n=G(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Ns(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function tM(r,t,e){var a,n;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function ir(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=uh(r)):(n=a.getSource(),i=n.sourceFormat===Bt);var o=jD(t),s=eM(t,o),l=e.useEncodeDefaulter,u=K(l)?l:l?ee(pS,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=zn(n,c),h=tM(v.dimensions,e.createInvertedIndices,o),f=i?null:a.getSharedDataStore(v),p=Mx(t,{schema:v,store:f}),d=new lt(v,t);d.setCalculationInfo(p);var g=h!=null&&rM(n)?function(y,m,S,x){return x===h?S:this.defaultDimValueGetter(y,m,S,x)}:null;return d.hasItemOption=!1,d.initData(i?n:f,null,g),d}function rM(r){if(r.sourceFormat===Bt){var t=aM(r.data||[]);return!B(Cn(t))}}function aM(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Ix=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();rl(Ix);var xr=Ix,nM=0,iM=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++nM}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&G(a,oM);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!U(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function oM(r){return J(r)&&r.value!=null?r.value:r+""}var Wc=iM;function $c(r){return r.type==="interval"||r.type==="log"}function sM(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=kv(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=Lx(o),l=n.niceTickExtent=[Oe(Math.ceil(r[0]/o)*o,s),Oe(Math.floor(r[1]/o)*o,s)];return lM(l,r),n}function ru(r){var t=Math.pow(10,tl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Oe(e*t)}function Lx(r){return Ut(r)+2}function id(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function lM(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),id(r,0,t),id(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function xl(r,t){return r>=t[0]&&r<=t[1]}function _l(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function bl(r,t){return r*(t[1]-t[0])+t[0]}var Px=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Wc({})),B(n)&&(n=new Wc({categories:G(n,function(i){return J(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:U(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),xl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_l(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bl(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xr);xr.registerClass(Px);var Th=Px,ea=Oe,Rx=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xl(e,this._extent)},t.prototype.normalize=function(e){return _l(e,this._extent)},t.prototype.scale=function(e){return bl(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Lx(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:ea(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=ea(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:ea(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],v=s.value-l.value,h=v/e;u<e-1;){var f=ea(l.value+(u+1)*h);f>i[0]&&f<i[1]&&c.push(f),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Ut(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=ea(e.value,n,!0);return th(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=sM(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=ea(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=ea(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(xr);xr.registerClass(Rx);var Hr=Rx,Ex=typeof Float32Array!="undefined",uM=Ex?Float32Array:Array;function er(r){return B(r)?Ex?new Float32Array(r):r:new uM(r)}var Uc="__ec_stack_";function Ch(r){return r.get("stack")||Uc+r.seriesIndex}function Dh(r){return r.dim+r.index}function cM(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(Q({bandWidth:n,axisKey:a,stackId:Uc+i},r));for(var o=Ox(t),s=[],i=0;i<r.count;i++){var l=o[a][Uc+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function kx(r,t){var e=[];return t.eachSeriesByType(r,function(a){zx(a)&&e.push(a)}),e}function vM(r){var t={};w(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var v=l.getData(),h=c.dim+"_"+c.index,f=v.getDimensionIndex(v.mapDimension(c.dim)),p=v.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(f,d);t[h]?t[h].push(y):t[h]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function Nx(r){var t=vM(r),e=[];return w(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),h=Math.abs(v[1]-v[0]);s=u?c/h*u:c}else{var f=a.getData();s=Math.abs(o[1]-o[0])/f.count()}var p=H(a.get("barWidth"),s),d=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(Gx(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Dh(i),stackId:Ch(a)})}),Ox(e)}function Ox(r){var t={};w(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var v=a.barMaxWidth;v&&(l[u].maxWidth=v);var h=a.barMinWidth;h&&(l[u].minWidth=h);var f=a.barGap;f!=null&&(s.gap=f);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return w(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Ue(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),c=H(a.gap,1),v=a.remainedWidth,h=a.autoWidthCount,f=(v-u)/(h+(h-1)*c);f=Math.max(f,0),w(i,function(y){var m=y.maxWidth,S=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),S&&(x=Math.max(x,S)),y.width=x,v-=x+c*x,h--}else{var x=f;m&&m<x&&(x=Math.min(m,v)),S&&S>x&&(x=S),x!==f&&(y.width=x,v-=x+c*x,h--)}}),f=(v-u)/(h+(h-1)*c),f=Math.max(f,0);var p=0,d;w(i,function(y,m){y.width||(y.width=f),d=y,p+=y.width*(1+c)}),d&&(p-=d.width*c);var g=-p/2;w(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function hM(r,t,e){if(r&&t){var a=r[Dh(t)];return a!=null&&e!=null?a[Ch(e)]:a}}function Vx(r,t){var e=kx(r,t),a=Nx(e);w(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Ch(n),u=a[Dh(s)][l],c=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:v})})}function Bx(r){return{seriesType:r,plan:On(),reset:function(t){if(!!zx(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),v=gr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=fM(n,i),p=Gx(t),d=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(S,x){for(var _=S.count,b=p&&er(_*3),A=p&&l&&er(_*3),T=p&&er(_),C=a.master.getRect(),D=h?C.width:C.height,M,I=x.getStore(),L=0;(M=S.next())!=null;){var R=I.get(v?g:o,M),P=I.get(s,M),k=f,O=void 0;v&&(O=+R-I.get(o,M));var N=void 0,V=void 0,F=void 0,W=void 0;if(h){var X=a.dataToPoint([R,P]);if(v){var re=a.dataToPoint([O,P]);k=re[0]}N=k,V=X[1]+m,F=X[0]-k,W=y,Math.abs(F)<d&&(F=(F<0?-1:1)*d)}else{var X=a.dataToPoint([P,R]);if(v){var re=a.dataToPoint([P,O]);k=re[1]}N=X[0]+m,V=k,F=y,W=X[1]-k,Math.abs(W)<d&&(W=(W<=0?-1:1)*d)}p?(b[L]=N,b[L+1]=V,b[L+2]=h?F:W,A&&(A[L]=h?C.x:N,A[L+1]=h?V:C.y,A[L+2]=D),T[M]=M):x.setItemLayout(M,{x:N,y:V,width:F,height:W}),L+=3}p&&x.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:A,valueAxisHorizontal:h})}}}}}}function zx(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Gx(r){return r.pipelineContext&&r.pipelineContext.large}function fM(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var pM=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},Fx=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return oo(e.value,sp[qA(un(this._minLevelUnit))]||sp.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return jA(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=_M(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=kt,a[1]+=kt),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-kt}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Io.length,l=Math.min(pM(Io,this._approxInterval,0,s),s-1);this._interval=Io[l][1],this._minLevelUnit=Io[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return me(e)?e:+Ct(e)},t.prototype.contain=function(e){return xl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _l(this.parse(e),this._extent)},t.prototype.scale=function(e){return bl(e,this._extent)},t.type="time",t}(Hr),Io=[["second",Jv],["minute",Qv],["hour",wi],["quarter-day",wi*6],["half-day",wi*12],["day",kt*1.2],["half-week",kt*3.5],["week",kt*7],["month",kt*31],["quarter",kt*95],["half-year",op/2],["year",op]];function dM(r,t,e,a){var n=Ct(t),i=Ct(e),o=function(p){return lp(n,p,a)===lp(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},v=function(){return c()&&o("minute")},h=function(){return v()&&o("second")},f=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return v();case"second":return h();case"millisecond":return f()}}function gM(r,t){return r/=kt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function yM(r){var t=30*kt;return r/=t,r>6?6:r>3?3:r>2?2:1}function mM(r){return r/=wi,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function od(r,t){return r/=t?Qv:Jv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function SM(r){return kv(r,!0)}function xM(r,t,e){var a=new Date(r);switch(un(t)){case"year":case"month":a[tS(e)](0);case"day":a[rS(e)](1);case"hour":a[aS(e)](0);case"minute":a[nS(e)](0);case"second":a[iS(e)](0),a[oS(e)](0)}return a.getTime()}function _M(r,t,e,a){var n=1e4,i=Q0,o=0;function s(D,M,I,L,R,P,k){for(var O=new Date(M),N=M,V=O[L]();N<I&&N<=a[1];)k.push({value:N}),V+=D,O[R](V),N=O.getTime();k.push({value:N,notAdd:!0})}function l(D,M,I){var L=[],R=!M.length;if(!dM(un(D),a[0],a[1],e)){R&&(M=[{value:xM(new Date(a[0]),D,e)},{value:a[1]}]);for(var P=0;P<M.length-1;P++){var k=M[P].value,O=M[P+1].value;if(k!==O){var N=void 0,V=void 0,F=void 0,W=!1;switch(D){case"year":N=Math.max(1,Math.round(t/kt/365)),V=eh(e),F=JA(e);break;case"half-year":case"quarter":case"month":N=yM(t),V=cn(e),F=tS(e);break;case"week":case"half-week":case"day":N=gM(t),V=ll(e),F=rS(e),W=!0;break;case"half-day":case"quarter-day":case"hour":N=mM(t),V=ki(e),F=aS(e);break;case"minute":N=od(t,!0),V=ul(e),F=nS(e);break;case"second":N=od(t,!1),V=cl(e),F=iS(e);break;case"millisecond":N=SM(t),V=vl(e),F=oS(e);break}s(N,k,O,V,F,W,L),D==="year"&&I.length>1&&P===0&&I.unshift({value:I[0].value-N})}}for(var P=0;P<L.length;P++)I.push(L[P]);return L}}for(var u=[],c=[],v=0,h=0,f=0;f<i.length&&o++<n;++f){var p=un(i[f]);if(!!KA(i[f])){l(i[f],u[u.length-1]||[],c);var d=i[f+1]?un(i[f+1]):null;if(p!==d){if(c.length){h=v,c.sort(function(D,M){return D.value-M.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=a[0]&&m<=a[1]&&v++)}var S=(a[1]-a[0])/t;if(v>S*1.5&&h>S/1.5||(u.push(g),v>S||r===i[f]))break}c=[]}}}for(var x=Se(G(u,function(D){return Se(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),_=[],b=x.length-1,f=0;f<x.length;++f)for(var A=x[f],T=0;T<A.length;++T)_.push({value:A[T].value,level:b-f});_.sort(function(D,M){return D.value-M.value});for(var C=[],f=0;f<_.length;++f)(f===0||_[f].value!==_[f-1].value)&&C.push(_[f]);return C}xr.registerClass(Fx);var Hx=Fx,sd=xr.prototype,Ci=Hr.prototype,bM=Oe,wM=Math.floor,AM=Math.ceil,Lo=Math.pow,Ht=Math.log,Mh=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Hr,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=Ci.getTicks.call(this,e);return G(o,function(s){var l=s.value,u=Oe(Lo(this.base,l));return u=l===n[0]&&this._fixMin?Po(u,i[0]):u,u=l===n[1]&&this._fixMax?Po(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=Ht(this.base);e=Ht(Math.max(0,e))/n,a=Ht(Math.max(0,a))/n,Ci.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=sd.getExtent.call(this);a[0]=Lo(e,a[0]),a[1]=Lo(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=Po(a[0],i[0])),this._fixMax&&(a[1]=Po(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=Ht(e[0])/Ht(a),e[1]=Ht(e[1])/Ht(a),sd.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=_0(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Oe(AM(a[0]/i)*i),Oe(wM(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ci.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ht(e)/Ht(this.base),xl(e,this._extent)},t.prototype.normalize=function(e){return e=Ht(e)/Ht(this.base),_l(e,this._extent)},t.prototype.scale=function(e){return e=bl(e,this._extent),Lo(this.base,e)},t.type="log",t}(xr),Wx=Mh.prototype;Wx.getMinorTicks=Ci.getMinorTicks;Wx.getLabel=Ci.getLabel;function Po(r,t){return bM(r,Ut(t))}xr.registerClass(Mh);var TM=Mh,CM=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;K(o)?this._modelMinNum=Ro(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Ro(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(K(s)?this._modelMaxNum=Ro(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Ro(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=B(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[hn(u[0],1),hn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var v=xs(s)||xs(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,f=this._determinedMax;return h!=null&&(s=h,u=!0),f!=null&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:v}},r.prototype.modifyDataMinMax=function(t,e){this[MM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=DM[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),DM={min:"_determinedMin",max:"_determinedMax"},MM={min:"_dataMin",max:"_dataMax"};function $x(r,t,e){var a=r.rawExtentInfo;return a||(a=new CM(r,t,e),r.rawExtentInfo=a,a)}function Ro(r,t){return t==null?null:xs(t)?NaN:r.parse(t)}function Ux(r,t){var e=r.type,a=$x(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=kx("bar",o),l=!1;if(w(s,function(v){l=l||v.getBaseAxis()===t.axis}),l){var u=Nx(s),c=IM(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function IM(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=hM(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(f){s=Math.min(f.offset,s)});var l=-1/0;w(o,function(f){l=Math.max(f.offset+f.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,v=1-(s+l)/i,h=c/v-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function La(r,t){var e=t,a=Ux(r,e),n=a.extent,i=e.get("splitNumber");r instanceof TM&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function lo(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Th({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Hx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(xr.getClass(t)||Hr)}}function LM(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Gn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):U(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):K(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Ih(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Ih(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function PM(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof Th?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Gn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var v=a?a[c]:{value:i[0]+c},h=s(v,c),f=o.getTextRect(h),p=RM(f,o.get("rotate")||0);l?l.union(p):l=p}return l}}function RM(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new we(r.x,r.y,i,o);return s}function Lh(r){var t=r.get("interval");return t==null?"auto":t}function Yx(r){return r.type==="category"&&Lh(r.getLabelModel())===0}function Os(r,t){var e={};return w(r.mapDimensionsAll(t),function(a){e[Ah(r,a)]=!0}),Ue(e)}function EM(r,t,e){t&&w(Os(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Fn=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function kM(r){return ir(null,r)}var NM={isDimensionStacked:gr,enableDataStack:Mx,getStackedDimension:Ah};function OM(r,t){var e=t;t instanceof xe||(e=new xe(t));var a=lo(e);return a.setExtent(r[0],r[1]),La(a,e),a}function VM(r){Ze(r,Fn)}function BM(r,t){return t=t||{},Ae(r,null,null,t.state!=="normal")}var zM=Object.freeze(Object.defineProperty({__proto__:null,createList:kM,getLayoutRect:$e,dataStack:NM,createScale:OM,mixinAxisModelCommonMethods:VM,getECData:q,createTextStyle:BM,createDimensions:YD,createSymbol:ze,enableHoverEmphasis:kr},Symbol.toStringTag,{value:"Module"})),ld=[],GM={registerPreprocessor:xh,registerProcessor:_h,registerPostInit:yx,registerPostUpdate:mx,registerUpdateLifecycle:Sl,registerAction:Kt,registerCoordinateSystem:Sx,registerLayout:xx,registerVisual:Kr,registerTransform:bx,registerLoading:wh,registerMap:_x,registerImpl:oD,PRIORITY:lx,ComponentModel:le,ComponentView:Re,SeriesModel:De,ChartView:be,registerComponentModel:function(r){le.registerClass(r)},registerComponentView:function(r){Re.registerClass(r)},registerSeriesModel:function(r){De.registerClass(r)},registerChartView:function(r){be.registerClass(r)},registerSubTypeDefaulter:function(r,t){le.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Qb(r,t)}};function ie(r){if(B(r)){w(r,function(t){ie(t)});return}ce(ld,r)>=0||(ld.push(r),K(r)&&(r={install:r}),r.install(GM))}var FM=[];function au(r,t){for(var e=0;e<r.length;e++)Ot(r[e],r[e],t)}function ud(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(v0(t,t,i),h0(e,e,i))}}function HM(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Zx=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),cd=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),vd=function(){function r(t){this.type="linestring",this.points=t}return r}(),Xx=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return HM(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?ud(s.exterior,n,i,e):w(s.points,function(l){ud(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new we(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(la(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(la(u[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new we(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,v=0;v<c.length;v++){var h=c[v];h.type==="polygon"?(au(h.exterior,u),w(h.interiors,function(f){au(f,u)})):w(h.points,function(f){au(f,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(Zx),WM=function(r){E(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Mv(FM),o=e;o&&!o.isGeoSVGGraphicRoot;)gs(i,o.getLocalTransform(),i),o=o.parent;return ji(i,i),Ot(n,n,i),n},t}(Zx);function $M(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return w(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=Kx(s,o,e);break;case"Polygon":nu(s,o,e);break;case"MultiLineString":nu(s,o,e);break;case"MultiPolygon":w(s,function(l,u){return nu(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function nu(r,t,e){for(var a=0;a<r.length;a++)r[a]=Kx(r[a],t[a],e)}function Kx(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function Yc(r,t){return r=$M(r),G(Se(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new cd(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&i.push(new cd(l[0],l.slice(1)))});break;case"LineString":i.push(new vd([n.coordinates]));break;case"MultiLineString":i.push(new vd(n.coordinates))}var s=new Xx(a[t||"name"],i,a.cp);return s.properties=a,s})}var UM=Object.freeze(Object.defineProperty({__proto__:null,linearMap:ge,round:Oe,asc:_t,getPrecision:Ut,getPrecisionSafe:S0,getPixelPrecision:Rv,getPercentWithPrecision:Ow,MAX_SAFE_INTEGER:xc,remRadian:Ev,isRadianAroundZero:fn,parseDate:Ct,quantity:_0,quantityExponent:tl,nice:kv,quantile:as,reformIntervals:_c,isNumeric:Nv,numericToNumber:ar},Symbol.toStringTag,{value:"Module"})),YM=Object.freeze(Object.defineProperty({__proto__:null,parse:Ct,format:oo},Symbol.toStringTag,{value:"Module"})),ZM=Object.freeze(Object.defineProperty({__proto__:null,extendShape:H0,extendPath:W0,makePath:no,makeImage:Uv,mergePath:xt,resizePath:Yv,createIcon:In,updateProps:he,initProps:Me,getTransform:Nr,clipPointsByRect:Zv,clipRectByRect:U0,registerShape:Vt,getShapeClass:il,Group:te,Image:Dt,Text:ue,Circle:Yr,Ellipse:Iv,Sector:wt,Ring:Ki,Polygon:At,Polyline:mt,Rect:de,Line:Je,BezierCurve:qi,Arc:Qs,IncrementalDisplayable:o0,CompoundPath:Lv,LinearGradient:Ji,RadialGradient:s0,BoundingRect:we},Symbol.toStringTag,{value:"Module"})),XM=Object.freeze(Object.defineProperty({__proto__:null,addCommas:th,toCamelCase:rh,normalizeCssArray:Oa,encodeHTML:st,formatTpl:ah,getTooltipMarker:sS,formatTime:tT,capitalFirst:rT,truncateText:ew,getTextRect:QA},Symbol.toStringTag,{value:"Module"})),KM=Object.freeze(Object.defineProperty({__proto__:null,map:G,each:w,indexOf:ce,inherits:i0,reduce:ba,filter:Se,bind:$,curry:ee,isArray:B,isString:U,isObject:J,isFunction:K,extend:z,defaults:Q,clone:j,merge:ne},Symbol.toStringTag,{value:"Module"})),zi=ve();function qx(r,t){var e=G(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function qM(r){var t=r.getLabelModel().get("customValues");if(t){var e=Gn(r),a=r.scale.getExtent(),n=qx(r,t),i=Se(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:G(i,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?JM(r):eI(r)}function jM(r,t){var e=r.getTickModel().get("customValues");if(e){var a=r.scale.getExtent(),n=qx(r,e);return{ticks:Se(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?QM(r,t):{ticks:G(r.scale.getTicks(),function(i){return i.value})}}function JM(r){var t=r.getLabelModel(),e=jx(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function jx(r,t){var e=Jx(r,"labels"),a=Lh(t),n=Qx(e,a);if(n)return n;var i,o;return K(a)?i=r_(r,a):(o=a==="auto"?tI(r):a,i=t_(r,o)),e_(e,a,{labels:i,labelCategoryInterval:o})}function QM(r,t){var e=Jx(r,"ticks"),a=Lh(t),n=Qx(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),K(a))i=r_(r,a,!0);else if(a==="auto"){var s=jx(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=t_(r,o,!0);return e_(e,a,{ticks:i,tickCategoryInterval:o})}function eI(r){var t=r.scale.getTicks(),e=Gn(r);return{labels:G(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function Jx(r,t){return zi(r)[t]||(zi(r)[t]=[])}function Qx(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function e_(r,t,e){return r.push({key:t,value:e}),e}function tI(r){var t=zi(r).autoInterval;return t!=null?t:zi(r).autoInterval=r.calculateCategoryInterval()}function rI(r){var t=aI(r),e=Gn(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),v=Math.abs(u*Math.sin(a)),h=0,f=0;l<=i[1];l+=s){var p=0,d=0,g=el(e({value:l}),t.font,"center","top");p=g.width*1.3,d=g.height*1.3,h=Math.max(h,p,7),f=Math.max(f,d,7)}var y=h/c,m=f/v;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var S=Math.max(0,Math.floor(Math.min(y,m))),x=zi(r.model),_=r.getExtent(),b=x.lastAutoInterval,A=x.lastTickCount;return b!=null&&A!=null&&Math.abs(b-S)<=1&&Math.abs(A-o)<=1&&b>S&&x.axisExtent0===_[0]&&x.axisExtent1===_[1]?S=b:(x.lastTickCount=o,x.lastAutoInterval=S,x.axisExtent0=_[0],x.axisExtent1=_[1]),S}function aI(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function t_(r,t,e){var a=Gn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var v=Yx(r),h=o.get("showMinLabel")||v,f=o.get("showMaxLabel")||v;h&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);f&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function r_(r,t,e){var a=r.scale,n=Gn(r),i=[];return w(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var hd=[0,1],nI=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Rv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),fd(a,n.count())),ge(t,hd,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),fd(a,n.count()));var i=ge(t,a,hd,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=jM(this,e),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return iI(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return qM(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return rI(this)},r}();function fd(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function iI(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;w(t,function(f){f.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var v=i[0]>i[1];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(f,p){return f=Oe(f),p=Oe(p),v?f>p:f<p}}var Gt=nI;function oI(r){var t=le.extend(r);return le.registerClass(t),t}function sI(r){var t=Re.extend(r);return Re.registerClass(t),t}function lI(r){var t=De.extend(r);return De.registerClass(t),t}function uI(r){var t=be.extend(r);return be.registerClass(t),t}var ei=Math.PI*2,ta=f0.CMD,cI=["top","right","bottom","left"];function vI(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function hI(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,v=s*e+t;if(Math.abs(a-n)%ei<1e-4)return l[0]=c,l[1]=v,u-e;if(i){var h=a;a=ur(n),n=ur(h)}else a=ur(a),n=ur(n);a>n&&(n+=ei);var f=Math.atan2(s,o);if(f<0&&(f+=ei),f>=a&&f<=n||f+ei>=a&&f+ei<=n)return l[0]=c,l[1]=v,u-e;var p=e*Math.cos(a)+r,d=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(p-o)*(p-o)+(d-s)*(d-s),S=(g-o)*(g-o)+(y-s)*(y-s);return m<S?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(S))}function Vs(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,v=a-t,h=Math.sqrt(c*c+v*v);c/=h,v/=h;var f=l*c+u*v,p=f/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var d=o[0]=r+p*c,g=o[1]=t+p*v;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function a_(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var $t=[];function fI(r,t,e){var a=a_(t.x,t.y,t.width,t.height,r.x,r.y,$t);return e.set($t[0],$t[1]),a}function pI(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,v=r.x,h=r.y,f=0;f<c.length;){var p=c[f++];f===1&&(a=c[f],n=c[f+1],i=a,o=n);var d=u;switch(p){case ta.M:i=c[f++],o=c[f++],a=i,n=o;break;case ta.L:d=Vs(a,n,c[f],c[f+1],v,h,$t,!0),a=c[f++],n=c[f++];break;case ta.C:d=rw(a,n,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],v,h,$t),a=c[f++],n=c[f++];break;case ta.Q:d=tw(a,n,c[f++],c[f++],c[f],c[f+1],v,h,$t),a=c[f++],n=c[f++];break;case ta.A:var g=c[f++],y=c[f++],m=c[f++],S=c[f++],x=c[f++],_=c[f++];f+=1;var b=!!(1-c[f++]);s=Math.cos(x)*m+g,l=Math.sin(x)*S+y,f<=1&&(i=s,o=l);var A=(v-g)*S/m+g;d=hI(g,y,S,x,x+_,b,A,h,$t),a=Math.cos(x+_)*m+g,n=Math.sin(x+_)*S+y;break;case ta.R:i=a=c[f++],o=n=c[f++];var T=c[f++],C=c[f++];d=a_(i,o,T,C,v,h,$t);break;case ta.Z:d=Vs(a,n,i,o,v,h,$t,!0),a=i,n=o;break}d<u&&(u=d,e.set($t[0],$t[1]))}return u}var Yt=new He,Ce=new He,Be=new He,tr=new He,Jt=new He;function pd(r,t){if(!!r){var e=r.getTextGuideLine(),a=r.getTextContent();if(!!(a&&e)){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||cI,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),v=c&&ji([],c),h=t.get("length2")||0;u&&Be.copy(u);for(var f=0;f<o.length;f++){var p=o[f];vI(p,0,s,Yt,tr),He.scaleAndAdd(Ce,Yt,tr,h),Ce.transform(v);var d=r.getBoundingRect(),g=u?u.distance(Ce):r instanceof Ie?pI(Ce,r.path,Be):fI(Ce,d,Be);g<l&&(l=g,Ce.transform(c),Be.transform(c),Be.toArray(i[0]),Ce.toArray(i[1]),Yt.toArray(i[2]))}n_(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Bs=[],pt=new He;function n_(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Yt.fromArray(r[0]),Ce.fromArray(r[1]),Be.fromArray(r[2]),He.sub(tr,Yt,Ce),He.sub(Jt,Be,Ce);var e=tr.len(),a=Jt.len();if(!(e<.001||a<.001)){tr.scale(1/e),Jt.scale(1/a);var n=tr.dot(Jt),i=Math.cos(t);if(i<n){var o=Vs(Ce.x,Ce.y,Be.x,Be.y,Yt.x,Yt.y,Bs,!1);pt.fromArray(Bs),pt.scaleAndAdd(Jt,o/Math.tan(Math.PI-t));var s=Be.x!==Ce.x?(pt.x-Ce.x)/(Be.x-Ce.x):(pt.y-Ce.y)/(Be.y-Ce.y);if(isNaN(s))return;s<0?He.copy(pt,Ce):s>1&&He.copy(pt,Be),pt.toArray(r[1])}}}}function dI(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Yt.fromArray(r[0]),Ce.fromArray(r[1]),Be.fromArray(r[2]),He.sub(tr,Ce,Yt),He.sub(Jt,Be,Ce);var a=tr.len(),n=Jt.len();if(!(a<.001||n<.001)){tr.scale(1/a),Jt.scale(1/n);var i=tr.dot(t),o=Math.cos(e);if(i<o){var s=Vs(Ce.x,Ce.y,Be.x,Be.y,Yt.x,Yt.y,Bs,!1);pt.fromArray(Bs);var l=Math.PI/2,u=Math.acos(Jt.dot(t)),c=l+u-e;if(c>=l)He.copy(pt,Be);else{pt.scaleAndAdd(Jt,s/Math.tan(Math.PI/2-c));var v=Be.x!==Ce.x?(pt.x-Ce.x)/(Be.x-Ce.x):(pt.y-Ce.y)/(Be.y-Ce.y);if(isNaN(v))return;v<0?He.copy(pt,Ce):v>1&&He.copy(pt,Be)}pt.toArray(r[1])}}}}function iu(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function gI(r,t){var e=t.smooth,a=t.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=va(a[0],a[1]),i=va(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=Pl([],a[1],a[0],o/n),l=Pl([],a[1],a[2],o/i),u=Pl([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function Ph(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<Pi.length;l++){var u=Pi[l],c=t[u],v=u==="normal";if(c){var h=c.get("show"),f=v?s:pe(n.states[u]&&n.states[u].ignore,s);if(f||!pe(h,o)){var p=v?a:a&&a.states[u];p&&(p.ignore=!0),a&&iu(a,!0,u,c);continue}a||(a=new mt,r.setTextGuideLine(a),!v&&(s||!o)&&iu(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),iu(a,!1,u,c)}}if(a){Q(a.style,e),a.style.fill=null;var d=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,a.buildPath=gI}}function Rh(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<gt.length;a++){var n=gt[a];e[n]=r.getModel([n,t])}return e}function i_(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new ys(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function o_(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=0,v=0;v<o;v++){var h=r[v],f=h.rect;l=f[t]-s,l<0&&(f[t]-=l,h.label[t]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=f[t]+f[e]}c>0&&i&&_(-c/o,0,o);var d=r[0],g=r[o-1],y,m;S(),y<0&&b(-y,.8),m<0&&b(m,.8),S(),x(y,m,1),x(m,y,-1),S(),y<0&&A(-y),m<0&&A(m);function S(){y=d.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function x(T,C,D){if(T<0){var M=Math.min(C,-T);if(M>0){_(M*D,0,o);var I=M+T;I<0&&b(-I*D,1)}else b(-T*D,1)}}function _(T,C,D){T!==0&&(u=!0);for(var M=C;M<D;M++){var I=r[M],L=I.rect;L[t]+=T,I.label[t]+=T}}function b(T,C){for(var D=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,R=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(R),M+=R}if(!!M){var P=Math.min(Math.abs(T)/M,C);if(T>0)for(var I=0;I<o-1;I++){var k=D[I]*P;_(k,0,I+1)}else for(var I=o-1;I>0;I--){var k=D[I-1]*P;_(-k,I,o)}}}function A(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(C>0?_(D,0,M+1):_(-D,o-M-1,o),T-=D,T<=0)return}return u}function yI(r,t,e,a){return o_(r,"x","width",t,e,a)}function s_(r,t,e,a){return o_(r,"y","height",t,e,a)}function l_(r){var t=[];r.sort(function(d,g){return g.priority-d.priority});var e=new we(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var v=i.obb,h=!1,f=0;f<t.length;f++){var p=t[f];if(!!e.intersect(p.rect)){if(o&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new ys(p.localRect,p.transform)),v||(v=new ys(s,l)),v.intersect(p.obb)){h=!0;break}}}h?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function mI(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function SI(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:mI(a&&a.shape.points)}}var dd=["align","verticalAlign","width","height","fontSize"],vt=new nn,ou=ve(),xI=ve();function Eo(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var ko=["x","y","rotation"],_I=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();we.applyTransform(c,c,u),u?vt.setLocalTransform(u):(vt.x=vt.y=vt.rotation=vt.originX=vt.originY=0,vt.scaleX=vt.scaleY=1),vt.rotation=ur(vt.rotation);var v=n.__hostTarget,h;if(v){h=v.getBoundingRect().plain();var f=v.getComputedTransform();we.applyTransform(h,h,f)}var p=h&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:vt.x,y:vt.y,scaleX:vt.scaleX,scaleY:vt.scaleY,rotation:vt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");!(K(n)||Ue(n).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=q(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(S,x){return function(){pd(S,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;K(o.layoutOption)?c=o.layoutOption(SI(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*v:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=H(c.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=H(c.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:c.labelLinePoints}),h=!1)}var p=ou(s);p.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<dd.length;d++){var g=dd[d];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=i_(this._labelList),i=Se(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Se(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});yI(i,0,e),s_(o,0,a);var s=Se(n,function(l){return l.layoutOption.hideOverlap});l_(s)},r.prototype.processLabelsOverall=function(){var t=this;w(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=ou(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=q(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var v=s.getModel("labelLine");Ph(t,Rh(s),l),pd(t,v)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!sn(t))){var i=ou(a),o=i.oldLayout,s=q(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(ce(h,"select")>=0&&a.attr(i.oldLayoutSelect),ce(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),he(a,u,e,l)}else if(a.attr(u),!Ln(a).valueAnimation){var v=pe(a.style.opacity,1);a.style.opacity=0,Me(a,{style:{opacity:v}},e,l)}if(i.oldLayout=u,a.states.select){var f=i.oldLayoutSelect={};Eo(f,u,ko),Eo(f,a.states.select,ko)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};Eo(p,u,ko),Eo(p,a.states.emphasis,ko)}K0(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=xI(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),he(n,{shape:d},e)):(n.setShape(d),n.style.strokePercent=0,Me(n,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),bI=_I,su=ve();function wI(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=su(e).labelManager;n||(n=su(e).labelManager=new bI),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=su(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var G3=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:jv,version:sD,dependencies:lD,PRIORITY:lx,init:TD,connect:CD,disconnect:gx,disConnect:DD,dispose:MD,getInstanceByDom:mh,getInstanceById:ID,registerTheme:Sh,registerPreprocessor:xh,registerProcessor:_h,registerPostInit:yx,registerPostUpdate:mx,registerUpdateLifecycle:Sl,registerAction:Kt,registerCoordinateSystem:Sx,getCoordinateSystemDimensions:LD,registerLayout:xx,registerVisual:Kr,registerLoading:wh,setCanvasCreator:PD,registerMap:_x,getMap:RD,registerTransform:bx,dataTool:ED,throttle:yl,use:ie,setPlatformAPI:c0,parseGeoJSON:Yc,parseGeoJson:Yc,env:ke,Model:xe,Axis:Gt,innerDrawElementOnCanvas:u0,zrender:aw,matrix:nw,vector:iw,zrUtil:ow,color:sw,helper:zM,number:UM,time:YM,graphic:ZM,format:XM,util:KM,List:lt,ComponentModel:le,ComponentView:Re,SeriesModel:De,ChartView:be,extendComponentModel:oI,extendComponentView:sI,extendSeriesModel:lI,extendChartView:uI},Symbol.toStringTag,{value:"Module"})),AI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return ir(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new te,n=ze("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=ze(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(De),TI=AI;function yn(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=dn(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(dn(r,t,e[o]));return i.join(" ")}}function u_(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!B(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var CI=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=ze(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=DI,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){fr(this.childAt(0))},t.prototype.downplay=function(){pr(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var v=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,v)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(f):he(h,f,s,a),Xt(h)}if(this._updateCommon(e,a,l,n,i),u){var h=this.childAt(0);if(!c){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Me(h,f,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,v,h,f,p,d,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,v=i.selectItemStyle,h=i.focus,f=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),S=m.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),h=S.get("focus"),f=S.get("blurScope"),p=S.get("disabled"),d=qe(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var _=Va(e.getItemVisual(a,"symbolOffset"),n);_&&(s.x=_[0],s.y=_[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),A=b.fill;if(s instanceof Dt){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(z({},b)):s.useStyle(b),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;at(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:b.opacity});function I(P){return M?e.getName(P):yn(e,P)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=c;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),Ne(this,h,f,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=q(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Gr(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Gr(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Bn(e.getItemVisual(a,"symbolSize"))},t}(te);function DI(r,t){this.parent.drift(r,t)}var uo=CI;function lu(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function gd(r){return r!=null&&!J(r)&&(r={isIgnore:r}),r||{}}function yd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:qe(t),cursorStyle:t.get("cursor")}}var MI=function(){function r(t){this.group=new te,this._SymbolCtor=t||uo}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=gd(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=yd(t),u={disableAnimation:s},c=e.getSymbolPoint||function(v){return t.getItemLayout(v)};i||a.removeAll(),t.diff(i).add(function(v){var h=c(v);if(lu(t,h,v,e)){var f=new o(t,v,l,u);f.setPosition(h),t.setItemGraphicEl(v,f),a.add(f)}}).update(function(v,h){var f=i.getItemGraphicEl(h),p=c(v);if(!lu(t,p,v,e)){a.remove(f);return}var d=t.getItemVisual(v,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==d)a.remove(f),f=new o(t,v,l,u),f.setPosition(p);else{f.updateData(t,v,l,u);var y={x:p[0],y:p[1]};s?f.attr(y):he(f,y,n)}a.add(f),t.setItemGraphicEl(v,f)}).remove(function(v){var h=i.getItemGraphicEl(v);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=gd(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(lu(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Zr(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}(),co=MI;function c_(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=II(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,v=G(r.dimensions,function(p){return t.mapDimension(p)}),h=!1,f=t.getCalculationInfo("stackResultDimension");return gr(t,v[0])&&(h=!0,v[0]=f),gr(t,v[1])&&(h=!0,v[1]=f),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function II(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:me(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function v_(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function LI(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function PI(r,t,e,a,n,i,o,s){for(var l=LI(r,t),u=[],c=[],v=[],h=[],f=[],p=[],d=[],g=c_(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],S=0;S<l.length;S++){var x=l[S],_=!0,b=void 0,A=void 0;switch(x.cmd){case"=":b=x.idx*2,A=x.idx1*2;var T=y[b],C=y[b+1],D=m[A],M=m[A+1];(isNaN(T)||isNaN(C))&&(T=D,C=M),u.push(T,C),c.push(D,M),v.push(e[b],e[b+1]),h.push(a[A],a[A+1]),d.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,R=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);A=I*2,u.push(R[0],R[1]),c.push(m[A],m[A+1]);var P=v_(g,n,t,I);v.push(P[0],P[1]),h.push(a[A],a[A+1]),d.push(t.getRawIndex(I));break;case"-":_=!1}_&&(f.push(x),p.push(p.length))}p.sort(function(se,Ve){return d[se]-d[Ve]});for(var k=u.length,O=er(k),N=er(k),V=er(k),F=er(k),W=[],S=0;S<p.length;S++){var X=p[S],re=S*2,ae=X*2;O[re]=u[ae],O[re+1]=u[ae+1],N[re]=c[ae],N[re+1]=c[ae+1],V[re]=v[ae],V[re+1]=v[ae+1],F[re]=h[ae],F[re+1]=h[ae+1],W[S]=f[X]}return{current:O,next:N,stackedOnCurrent:V,stackedOnNext:F,status:W}}var Tr=Math.min,Cr=Math.max;function Sa(r,t){return isNaN(r)||isNaN(t)}function Zc(r,t,e,a,n,i,o,s,l){for(var u,c,v,h,f,p,d=e,g=0;g<a;g++){var y=t[d*2],m=t[d*2+1];if(d>=n||d<0)break;if(Sa(y,m)){if(l){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](y,m),v=y,h=m;else{var S=y-u,x=m-c;if(S*S+x*x<.5){d+=i;continue}if(o>0){for(var _=d+i,b=t[_*2],A=t[_*2+1];b===y&&A===m&&g<a;)g++,_+=i,d+=i,b=t[_*2],A=t[_*2+1],y=t[d*2],m=t[d*2+1],S=y-u,x=m-c;var T=g+1;if(l)for(;Sa(b,A)&&T<a;)T++,_+=i,b=t[_*2],A=t[_*2+1];var C=.5,D=0,M=0,I=void 0,L=void 0;if(T>=a||Sa(b,A))f=y,p=m;else{D=b-u,M=A-c;var R=y-u,P=b-y,k=m-c,O=A-m,N=void 0,V=void 0;if(s==="x"){N=Math.abs(R),V=Math.abs(P);var F=D>0?1:-1;f=y-F*N*o,p=m,I=y+F*V*o,L=m}else if(s==="y"){N=Math.abs(k),V=Math.abs(O);var W=M>0?1:-1;f=y,p=m-W*N*o,I=y,L=m+W*V*o}else N=Math.sqrt(R*R+k*k),V=Math.sqrt(P*P+O*O),C=V/(V+N),f=y-D*o*(1-C),p=m-M*o*(1-C),I=y+D*o*C,L=m+M*o*C,I=Tr(I,Cr(b,y)),L=Tr(L,Cr(A,m)),I=Cr(I,Tr(b,y)),L=Cr(L,Tr(A,m)),D=I-y,M=L-m,f=y-D*N/V,p=m-M*N/V,f=Tr(f,Cr(u,y)),p=Tr(p,Cr(c,m)),f=Cr(f,Tr(u,y)),p=Cr(p,Tr(c,m)),D=y-f,M=m-p,I=y+D*V/N,L=m+M*V/N}r.bezierCurveTo(v,h,f,p,y,m),v=I,h=L}else r.lineTo(y,m)}u=y,c=m,d+=i}return g}var h_=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),RI=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new h_},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Sa(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Sa(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Zc(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=f0.CMD,s,l,u=a==="x",c=[],v=0;v<i.length;){var h=i[v++],f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,S=void 0;switch(h){case o.M:s=i[v++],l=i[v++];break;case o.L:if(f=i[v++],p=i[v++],S=u?(e-s)/(f-s):(e-l)/(p-l),S<=1&&S>=0){var x=u?(p-l)*S+l:(f-s)*S+s;return u?[e,x]:[x,e]}s=f,l=p;break;case o.C:f=i[v++],p=i[v++],d=i[v++],g=i[v++],y=i[v++],m=i[v++];var _=u?Nf(s,f,d,y,e,c):Nf(l,p,g,m,e,c);if(_>0)for(var b=0;b<_;b++){var A=c[b];if(A<=1&&A>=0){var x=u?Of(l,p,g,m,A):Of(s,f,d,y,A);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(Ie),EI=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(h_),f_=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new EI},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Sa(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Sa(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Zc(e,n,o,s,s,1,a.smooth,l,a.connectNulls);Zc(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Ie);function p_(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new de({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),f=h.isHorizontal(),p=h.inverse;f?(p&&(v.shape.x+=l),v.shape.width=0):(p||(v.shape.y+=u),v.shape.height=0);var d=K(n)?function(g){n(g,v)}:null;Me(v,{shape:{width:l,height:u,x:o,y:s}},e,null,a,d)}return v}function d_(r,t,e){var a=r.getArea(),n=Oe(a.r0,1),i=Oe(a.r,1),o=new wt({shape:{cx:Oe(r.cx,1),cy:Oe(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Me(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function vo(r,t,e,a,n){if(r){if(r.type==="polar")return d_(r,t,e);if(r.type==="cartesian2d")return p_(r,t,e,a,n)}else return null;return null}function Ba(r,t){return r.type===t}function md(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Sd(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function xd(r,t){var e=Sd(r),a=e[0],n=e[1],i=Sd(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function _d(r){return me(r)?r:r?.5:0}function kI(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=er(a*2),i=0;i<a;i++){var o=v_(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Dr(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],v=[],h=[];if(n){for(l=0;l<r.length;l+=2){var f=t||r;!isNaN(f[l])&&!isNaN(f[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=v[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var p=(c[o]+v[o])/2,d=[];u[o]=d[o]=p,u[1-o]=c[1-o],d[1-o]=v[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=c[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function NI(r,t){var e=[],a=r.length,n,i;function o(c,v,h){var f=c.coord,p=(h-f)/(v.coord-f),d=lw(p,[c.color,v.color]);return{coord:h,color:d}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function OI(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!!i){var l=t.getAxis(n),u=G(i.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,v=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),v.reverse());var h=NI(u,n==="x"?e.getWidth():e.getHeight()),f=h.length;if(!f&&c)return u[0].coord<0?v[1]?v[1]:u[c-1].color:v[0]?v[0]:u[0].color;var p=10,d=h[0].coord-p,g=h[f-1].coord+p,y=g-d;if(y<.001)return"transparent";w(h,function(S){S.offset=(S.coord-d)/y}),h.push({offset:f?h[f-1].offset:.5,color:v[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:v[0]||"transparent"});var m=new Ji(0,0,0,0,h,!0);return m[n]=d,m[n+"2"]=g,m}}}function VI(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&BI(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function BI(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(uo.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function zI(r,t){return isNaN(r)||isNaN(t)}function GI(r){for(var t=r.length/2;t>0&&zI(r[t*2-2],r[t*2-1]);t--);return t-1}function bd(r,t){return[r[t*2],r[t*2+1]]}function FI(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function g_(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<gt.length;t++)if(r.get([gt[t],"endLabel","show"]))return!0;return!1}function uu(r,t,e,a){if(Ba(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=g_(a)?function(f,p){r._endLabelOnDuring(f,p,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=p_(t,e,a,function(){var f=r._endLabel;f&&e&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var v=c.shape,h=Math.max(v.width,v.height);u?(v.y-=h,v.height+=h*2):(v.x-=h,v.width+=h*2)}return l&&l(1,c),c}else return d_(t,e,a)}function HI(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var WI=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new te,a=new co;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=$(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.getLayout("points")||[],v=i.type==="polar",h=this._coordSys,f=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!a.ssr&&e.get("animation"),m=!u.isEmpty(),S=u.get("origin"),x=c_(i,s,S),_=m&&kI(i,s,x),b=e.get("showSymbol"),A=e.get("connectNulls"),T=b&&!v&&VI(e,s,i),C=this._data;C&&C.eachItemGraphicEl(function(se,Ve){se.__temp&&(o.remove(se),C.setItemGraphicEl(Ve,null))}),b||f.remove(),o.add(g);var D=v?!1:e.get("step"),M;i&&i.getArea&&e.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=OI(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&h.type===i.type&&D===this._step))b&&f.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(se){return[c[se*2],c[se*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,M),D&&(_&&(_=Dr(_,c,i,D,A)),c=Dr(c,null,i,D,A)),p=this._newPolyline(c),m?d=this._newPolygon(c,_):d&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,Ia(I)),g.setClipPath(uu(this,i,!0,e));else{m&&!d?d=this._newPolygon(c,_):d&&!m&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,Ia(I));var L=g.getClipPath();if(L){var R=uu(this,i,!1,e);Me(L,{shape:R.shape},e)}else g.setClipPath(uu(this,i,!0,e));b&&f.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(se){return[c[se*2],c[se*2+1]]}}),(!md(this._stackedOnPoints,_)||!md(this._points,c))&&(y?this._doUpdateAnimation(s,_,i,n,D,S,A):(D&&(_&&(_=Dr(_,c,i,D,A)),c=Dr(c,null,i,D,A)),p.setShape({points:c}),d&&d.setShape({points:c,stackedOnPoints:_})))}var P=e.getModel("emphasis"),k=P.get("focus"),O=P.get("blurScope"),N=P.get("disabled");if(p.useStyle(Q(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),rt(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}q(p).seriesIndex=e.seriesIndex,Ne(p,k,O,N);var F=_d(e.get("smooth")),W=e.get("smoothMonotone");if(p.setShape({smooth:F,smoothMonotone:W,connectNulls:A}),d){var X=s.getCalculationInfo("stackedOnSeries"),re=0;d.useStyle(Q(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(re=_d(X.get("smooth"))),d.setShape({smooth:F,stackedOnSmooth:re,smoothMonotone:W,connectNulls:A}),rt(d,e,"areaStyle"),q(d).seriesIndex=e.seriesIndex,Ne(d,k,O,N)}var ae=this._changePolyState;s.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=s,this._coordSys=i,this._stackedOnPoints=_,this._points=c,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),d&&this.packEventData(e,d))},t.prototype.packEventData=function(e,a){q(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Ca(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],v=l[s*2+1];if(isNaN(c)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,v))return;var h=e.get("zlevel")||0,f=e.get("z")||0;u=new uo(o,s),u.x=c,u.y=v,u.setZ(h,f);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=f,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else be.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Ca(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 be.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;bs(this._polyline,e),a&&bs(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new RI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new f_({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");K(c)&&(c=c(null));var v=u.get("animationDelay")||0,h=K(v)?v(null):v;e.eachItemGraphicEl(function(f,p){var d=f;if(d){var g=[f.x,f.y],y=void 0,m=void 0,S=void 0;if(n)if(o){var x=n,_=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,S=-_[1]/180*Math.PI):(y=x.r0,m=x.r,S=_[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,S=f.x):(y=b.y+b.height,m=b.y,S=f.y)}var A=m===y?0:(S-y)/(m-y);l&&(A=1-A);var T=K(v)?v(p):c*A+h,C=d.getSymbolPath(),D=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(g_(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ue({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=GI(l);c>=0&&(at(s,qe(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(v,h,f){return f!=null?u_(o,f):yn(o,v)},enableTextSetter:!0},HI(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),h=n.hostModel,f=h.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,S=a.shape,x=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,_=(y?d:0)*(m?-1:1),b=(y?0:-d)*(m?-1:1),A=y?"x":"y",T=FI(v,x,A),C=T.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!f){var I=bd(v,C[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=h.getRawValue(C[0]))}else{var I=c.getPointOn(x,A);I&&u.attr({x:I[0]+_,y:I[1]+b});var L=h.getRawValue(C[0]),R=h.getRawValue(C[1]);o&&(M=I0(n,p,L,R,T.t))}i.lastFrameIndex=C[0]}else{var P=e===1||i.lastFrameIndex>0?C[0]:0,I=bd(v,P);o&&(M=h.getRawValue(P)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var k=Ln(u);typeof k.setLabelText=="function"&&k.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,v=e.hostModel,h=PI(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),f=h.current,p=h.stackedOnCurrent,d=h.next,g=h.stackedOnNext;if(o&&(p=Dr(h.stackedOnCurrent,h.current,n,o,l),f=Dr(h.current,null,n,o,l),g=Dr(h.stackedOnNext,h.next,n,o,l),d=Dr(h.next,null,n,o,l)),xd(f,d)>3e3||c&&xd(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),c&&(c.stopAnimation(),c.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=f;var y={shape:{points:d}};h.current!==f&&(y.shape.__points=h.next),u.stopAnimation(),he(u,y,v),c&&(c.setShape({points:f,stackedOnPoints:p}),c.stopAnimation(),he(c,{shape:{stackedOnPoints:g}},v),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=h.status,x=0;x<S.length;x++){var _=S[x].cmd;if(_==="="){var b=e.getItemGraphicEl(S[x].idx1);b&&m.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,D=m[T].ptIdx*2;C.x=A[D],C.y=A[D+1],C.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(be),$I=WI;function ho(r,t){return{seriesType:r,plan:On(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!n){var s=G(n.dimensions,function(f){return a.mapDimension(f)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");gr(a,s[0])&&(s[0]=u),gr(a,s[1])&&(s[1]=u);var c=a.getStore(),v=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(f,p){for(var d=f.end-f.start,g=o&&er(d*l),y=[],m=[],S=f.start,x=0;S<f.end;S++){var _=void 0;if(l===1){var b=c.get(v,S);_=n.dataToPoint(b,null,m)}else y[0]=c.get(v,S),y[1]=c.get(h,S),_=n.dataToPoint(y,null,m);o?(g[x++]=_[0],g[x++]=_[1]):p.setItemLayout(S,_.slice())}o&&p.setLayout("points",g)}}}}}}var UI={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},YI=function(r){return Math.round(r.length/2)};function y_(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),v=a.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(v||1),f=Math.round(s/h);if(isFinite(f)&&f>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/f)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/f));var p=void 0;U(i)?p=UI[i]:K(i)&&(p=i),p&&t.setData(n.downSample(n.mapDimension(u.dim),1/f,p,YI))}}}}}function ZI(r){r.registerChartView($I),r.registerSeriesModel(TI),r.registerLayout(ho("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,y_("line"))}var m_=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return ir(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)w(i.getAxes(),function(h,f){if(h.type==="category"&&a!=null){var p=h.getTicksCoords(),d=h.getTickModel().get("alignWithLabel"),g=o[f],y=a[f]==="x1"||a[f]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[f]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,S=void 0,x=1,_=0;_<p.length;_++){var b=p[_].coord,A=_===p.length-1?p[_-1].tickValue+x:p[_].tickValue;if(A===g){S=b;break}else if(A<g)m=b;else if(m!=null&&A>g){S=(b+m)/2;break}_===1&&(x=A-p[0].tickValue)}S==null&&(m?m&&(S=p[p.length-1].coord):S=p[0].coord),s[f]=h.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(De);De.registerClass(m_);var zs=m_,XI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ir(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Xr(zs.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(zs),KI=XI,qI=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}(),jI=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new qI},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,v=a.endAngle,h=a.clockwise,f=Math.PI*2,p=h?v-c<f:c-v<f;p||(c=v-(h?f:-f));var d=Math.cos(c),g=Math.sin(c),y=Math.cos(v),m=Math.sin(v);p?(e.moveTo(d*o+n,g*o+i),e.arc(d*u+n,g*u+i,l,-Math.PI+c,c,!h)):e.moveTo(d*s+n,g*s+i),e.arc(n,i,s,c,v,!h),e.arc(y*u+n,m*u+i,l,v-Math.PI*2,v-Math.PI,!h),o!==0&&e.arc(n,i,o,v,c,h)},t}(Ie),Gs=jI;function JI(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return gc(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,v=u.cy,h=u.r,f=u.r0,p=(h+f)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=e?Math.abs(h-f)/2:0,S=Math.cos,x=Math.sin,_=c+h*S(d),b=v+h*x(d),A="left",T="top";switch(s){case"startArc":_=c+(f-l)*S(y),b=v+(f-l)*x(y),A="center",T="top";break;case"insideStartArc":_=c+(f+l)*S(y),b=v+(f+l)*x(y),A="center",T="bottom";break;case"startAngle":_=c+p*S(d)+No(d,l+m,!1),b=v+p*x(d)+Oo(d,l+m,!1),A="right",T="middle";break;case"insideStartAngle":_=c+p*S(d)+No(d,-l+m,!1),b=v+p*x(d)+Oo(d,-l+m,!1),A="left",T="middle";break;case"middle":_=c+p*S(y),b=v+p*x(y),A="center",T="middle";break;case"endArc":_=c+(h+l)*S(y),b=v+(h+l)*x(y),A="center",T="bottom";break;case"insideEndArc":_=c+(h-l)*S(y),b=v+(h-l)*x(y),A="center",T="top";break;case"endAngle":_=c+p*S(g)+No(g,l+m,!0),b=v+p*x(g)+Oo(g,l+m,!0),A="left",T="middle";break;case"insideEndAngle":_=c+p*S(g)+No(g,-l+m,!0),b=v+p*x(g)+Oo(g,-l+m,!0),A="right",T="middle";break;default:return gc(a,n,i)}return a=a||{},a.x=_,a.y=b,a.align=A,a.verticalAlign=T,a}}function QI(r,t,e,a){if(me(a)){r.setTextConfig({rotation:a});return}else if(B(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function No(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Oo(r,t,e){return t*Math.cos(r)*(e?1:-1)}function da(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;B(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(a,function(i){return hn(i,n)})}}var cu=Math.max,vu=Math.min;function eL(r,t){var e=r.getArea&&r.getArea();if(Ba(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var tL=function(r){E(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){Zr(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),v;u.type==="cartesian2d"?v=c.isHorizontal():u.type==="polar"&&(v=c.dim==="angle");var h=e.isAnimationEnabled()?e:null,f=rL(e,u);f&&this._enableRealtimeSort(f,s,n);var p=e.get("clip",!0)||f,d=eL(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),S=m.get("borderRadius")||0,x=[],_=this._backgroundEls,b=i&&i.isInitSort,A=i&&i.type==="changeAxisOrder";function T(M){var I=Vo[u.type](s,M),L=uL(u,v,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",S):L.setShape("cornerRadius",S),x[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=Vo[u.type](s,M,I);if(y&&T(M),!(!s.hasValue(M)||!Dd[u.type](L))){var R=!1;p&&(R=wd[u.type](d,L));var P=Ad[u.type](e,s,M,L,v,h,c.model,!1,g);f&&(P.forceLabelAnimation=!0),Md(P,s,M,I,L,e,v,u.type==="polar"),b?P.attr({shape:L}):f?Td(f,h,P,L,M,v,!1,!1):Me(P,{shape:L},e,M),s.setItemGraphicEl(M,P),o.add(P),P.ignore=R}}).update(function(M,I){var L=s.getItemModel(M),R=Vo[u.type](s,M,L);if(y){var P=void 0;_.length===0?P=T(I):(P=_[I],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",S):P.setShape("cornerRadius",S),x[M]=P);var k=Vo[u.type](s,M),O=x_(v,k,u);he(P,{shape:O},h,M)}var N=l.getItemGraphicEl(I);if(!s.hasValue(M)||!Dd[u.type](R)){o.remove(N);return}var V=!1;if(p&&(V=wd[u.type](d,R),V&&o.remove(N)),N?Xt(N):N=Ad[u.type](e,s,M,R,v,h,c.model,!!N,g),f&&(N.forceLabelAnimation=!0),A){var F=N.getTextContent();if(F){var W=Ln(F);W.prevValue!=null&&(W.prevValue=W.value)}}else Md(N,s,M,L,R,e,v,u.type==="polar");b?N.attr({shape:R}):f?Td(f,h,N,R,M,v,!0,A):he(N,{shape:R},e,M,null),s.setItemGraphicEl(M,N),N.ignore=V,o.add(N)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Ei(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new te);C.removeAll();for(var D=0;D<x.length;++D)C.add(x[D]);o.add(C),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),Ld(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),Ld(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&vo(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(!!a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(v>s)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(!!this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Ei(i,e,q(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(be),wd={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=cu(t.x,r.x),s=vu(t.x+t.width,n),l=cu(t.y,r.y),u=vu(t.y+t.height,i),c=s<o,v=u<l;return t.x=c&&o>n?s:o,t.y=v&&l>i?u:l,t.width=c?0:s-o,t.height=v?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||v},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=vu(t.r,r.r),i=cu(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},Ad={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new de({shape:z({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,v=n?"height":"width";c[v]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Gs:wt,c=new u({shape:a,z2:1});c.name="item";var v=S_(n);if(c.calculateTextPosition=JI(v,{isRoundCap:u===Gs}),i){var h=c.shape,f=n?"r":"endAngle",p={};h[f]=n?a.r0:a.startAngle,p[f]=a[f],(s?he:Me)(c,{shape:p},i)}return c}};function rL(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function Td(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?he:Me)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?he:Me)(e,{shape:u},c,n)}function Cd(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var aL=["x","y","width","height"],nL=["cx","cy","r","startAngle","endAngle"],Dd={cartesian2d:function(r){return!Cd(r,aL)},polar:function(r){return!Cd(r,nL)}},Vo={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?oL(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function iL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function S_(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function Md(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,v=da(a.getModel("itemStyle"),c,!0);z(c,v),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var f=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=qe(a);at(r,p,{labelFetcher:i,labelDataIndex:e,defaultText:yn(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,QI(r,g==="outside"?f:g,S_(o),a.get(["label","rotate"]))}X0(d,p,i.getRawValue(e),function(m){return u_(t,m)});var y=a.getModel(["emphasis"]);Ne(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),rt(r,a),iL(n)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function oL(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var sL=function(){function r(){}return r}(),Id=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new sL},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(Ie);function Ld(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new Id({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var v=new Id({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(n.getVisual("style")),v.style.stroke=null,q(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",Pd),v.on("mousemove",Pd)),e&&e.push(v)}var Pd=yl(function(r){var t=this,e=lL(t,r.offsetX,r.offsetY);q(t).dataIndex=e>=0?e:null},30,!1);function lL(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,v=i.length/3;c<v;c++){var h=c*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function x_(r,t,e){if(Ba(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function uL(r,t,e){var a=r.type==="polar"?wt:de;return new a({shape:x_(t,e,r),silent:!0,z2:0})}var cL=tL;function vL(r){r.registerChartView(cL),r.registerSeriesModel(KI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ee(Vx,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Bx("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,y_("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var Rd=Math.PI*2,Bo=Math.PI/180;function __(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function b_(r,t){var e=__(r,t),a=r.get("center"),n=r.get("radius");B(n)||(n=[0,n]);var i=H(e.width,t.getWidth()),o=H(e.height,t.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),c,v,h=r.coordinateSystem;if(h){var f=h.dataToPoint(a);c=f[0]||0,v=f[1]||0}else B(a)||(a=[a,a]),c=H(a[0],i)+e.x,v=H(a[1],o)+e.y;return{cx:c,cy:v,r0:l,r:u}}function hL(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=__(a,e),s=b_(a,e),l=s.cx,u=s.cy,c=s.r,v=s.r0,h=-a.get("startAngle")*Bo,f=a.get("endAngle"),p=a.get("padAngle")*Bo;f=f==="auto"?h-Rd:-f*Bo;var d=a.get("minAngle")*Bo,g=d+p,y=0;n.each(i,function(O){!isNaN(O)&&y++});var m=n.getSum(i),S=Math.PI/(m||y)*2,x=a.get("clockwise"),_=a.get("roseType"),b=a.get("stillShowZeroSum"),A=n.getDataExtent(i);A[0]=0;var T=x?1:-1,C=[h,f],D=T*p/2;p0(C,!x),h=C[0],f=C[1];var M=w_(a);M.startAngle=h,M.endAngle=f,M.clockwise=x;var I=Math.abs(f-h),L=I,R=0,P=h;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(O,N){var V;if(isNaN(O)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:v,r:_?NaN:c});return}_!=="area"?V=m===0&&b?S:O*S:V=I/y,V<g?(V=g,L-=g):R+=O;var F=P+T*V,W=0,X=0;p>V?(W=P+T*V/2,X=W):(W=P+D,X=F-D),n.setItemLayout(N,{angle:V,startAngle:W,endAngle:X,clockwise:x,cx:l,cy:u,r0:v,r:_?ge(O,A,[v,c]):c}),P=F}),L<Rd&&y)if(L<=.001){var k=I/y;n.each(i,function(O,N){if(!isNaN(O)){var V=n.getItemLayout(N);V.angle=k;var F=0,W=0;k<p?(F=h+T*(N+1/2)*k,W=F):(F=h+T*N*k+D,W=h+T*(N+1)*k-D),V.startAngle=F,V.endAngle=W}})}else S=L/R,P=h,n.each(i,function(O,N){if(!isNaN(O)){var V=n.getItemLayout(N),F=V.angle===g?g:O*S,W=0,X=0;F<p?(W=P+T*F/2,X=W):(W=P+D,X=P+T*F-D),V.startAngle=W,V.endAngle=X,P+=T*F}})})}var w_=ve();function fo(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var fL=Math.PI/180;function Ed(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var S=d.list[m],x=Math.abs(S.label.y-e),_=a+S.len,b=_*_,A=Math.sqrt(Math.abs((1-x*x/y)*b)),T=t+(A+S.len2)*n,C=T-S.label.x,D=S.targetTextWidth-C*n;A_(S,D,!0),S.label.x=T}}function v(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var S=d[m],x=S.label.y>e?y:g,_=Math.abs(S.label.y-e);if(_>=x.maxY){var b=S.label.x-t-S.len2*n,A=a+S.len,T=Math.abs(b)<A?Math.sqrt(_*_/(1-b*b/A/A)):A;x.rB=T,x.maxY=_}x.list.push(S)}c(g),c(y)}for(var h=r.length,f=0;f<h;f++)if(r[f].position==="outer"&&r[f].labelAlignTo==="labelLine"){var p=r[f].label.x-u;r[f].linePoints[1][0]+=p,r[f].label.x=u}s_(r,l,l+o)&&v(r)}function pL(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,v=-Number.MAX_VALUE,h=0;h<r.length;h++){var f=r[h].label;hu(r[h])||(f.x<t?(c=Math.min(c,f.x),l.push(r[h])):(v=Math.max(v,f.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var p=r[h];if(!hu(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var f=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?f.x<t?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+n-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?f.x<t?g=c-o-p.bleedMargin:g=o+n-v-p.bleedMargin:f.x<t?g=f.x-o-p.bleedMargin:g=o+n-f.x-p.bleedMargin,p.targetTextWidth=g,A_(p,g)}}Ed(u,t,e,a,1,n,i,o,s,v),Ed(l,t,e,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var p=r[h];if(!hu(p)&&p.linePoints){var f=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=f.style.padding,S=m?m[1]+m[3]:0,x=f.style.backgroundColor?0:S,_=p.rect.width+x,b=d[1][0]-d[2][0];y?f.x<t?d[2][0]=o+p.edgeDistance+_+p.labelDistance:d[2][0]=o+n-p.edgeDistance-_-p.labelDistance:(f.x<t?d[2][0]=f.x+p.labelDistance:d[2][0]=f.x-p.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=f.y}}}function A_(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){var v=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var h=a.getBoundingRect();a.setStyle("width",Math.ceil(h.width)),a.setStyle("backgroundColor",o)}else{var f=t-l,p=t<c?f:e?f>r.unconstrainedWidth?null:f:null;a.setStyle("width",p)}var d=a.getBoundingRect();i.width=d.width;var g=(a.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-v)/2}}}function hu(r){return r.position==="center"}function dL(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*fL,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,v=s.y,h=s.height;function f(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var A in b.states)if(b.states[A].ignore===!1)return!0;return!1}t.each(function(b){var A=t.getItemGraphicEl(b),T=A.shape,C=A.getTextContent(),D=A.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),R=I.get("distanceToLabelLine"),P=I.get("alignTo"),k=H(I.get("edgeDistance"),u),O=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=H(V,u);var F=N.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)<o){w(C.states,f),C.ignore=!0,D&&(w(D.states,f),D.ignore=!0);return}if(!!p(C)){var W=(T.startAngle+T.endAngle)/2,X=Math.cos(W),re=Math.sin(W),ae,se,Ve,St;a=T.cx,n=T.cy;var fe=L==="inside"||L==="inner";if(L==="center")ae=T.cx,se=T.cy,St="center";else{var oe=(fe?(T.r+T.r0)/2*X:T.r*X)+a,Le=(fe?(T.r+T.r0)/2*re:T.r*re)+n;if(ae=oe+X*3,se=Le+re*3,!fe){var Te=oe+X*(V+l-T.r),Ee=Le+re*(V+l-T.r),Xe=Te+(X<0?-1:1)*F,Ke=Ee;P==="edge"?ae=X<0?c+k:c+u-k:ae=Xe+(X<0?-R:R),se=Ke,Ve=[[oe,Le],[Te,Ee],[Xe,Ke]]}St=fe?"center":P==="edge"?X>0?"right":"left":X>0?"left":"right"}var Pe=Math.PI,Ge=0,ct=I.get("rotate");if(me(ct))Ge=ct*(Pe/180);else if(L==="center")Ge=0;else if(ct==="radial"||ct===!0){var _r=X<0?-W+Pe:-W;Ge=_r}else if(ct==="tangential"&&L!=="outside"&&L!=="outer"){var or=Math.atan2(X,re);or<0&&(or=Pe*2+or);var So=re>0;So&&(or=Pe+or),Ge=or-Pe}if(i=!!Ge,C.x=ae,C.y=se,C.rotation=Ge,C.setStyle({verticalAlign:"middle"}),fe){C.setStyle({align:St});var Il=C.states.select;Il&&(Il.x+=C.x,Il.y+=C.y)}else{var Wn=C.getBoundingRect().clone();Wn.applyTransform(C.getComputedTransform());var Rf=(C.style.margin||0)+2.1;Wn.y-=Rf/2,Wn.height+=Rf,e.push({label:C,labelLine:D,position:L,len:V,len2:F,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new He(X,re),linePoints:Ve,textAlign:St,labelDistance:R,labelAlignTo:P,edgeDistance:k,bleedMargin:O,rect:Wn,unconstrainedWidth:Wn.width,labelStyleWidth:C.style.width})}A.setTextConfig({inside:fe})}}),!i&&r.get("avoidLabelOverlap")&&pL(e,a,n,l,u,h,c,v);for(var d=0;d<e.length;d++){var g=e[d],y=g.label,m=g.labelLine,S=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),S&&(w(y.states,f),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var _=g.linePoints;S||!_?(w(m.states,f),m.ignore=!0):(n_(_,g.minTurnAngle),dI(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new He(_[0][0],_[0][1])})}}}var gL=function(r){E(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new ue;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),v=z(da(l.getModel("itemStyle"),c,!0),c);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var h=s.getShallow("animationType");s.ecModel.ssr?(Me(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):h==="scale"?(o.shape.r=c.r0,Me(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Me(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,he(o,{shape:{endAngle:c.endAngle}},s,a))}else Xt(o),he(o,{shape:v},s,a);o.useStyle(e.getItemVisual(a,"style")),rt(o,l);var f=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(f)*p,g=Math.sin(f)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=z({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},da(u.getModel("itemStyle"),c)),z(o.ensureState("select"),{x:d,y:g,shape:da(l.getModel(["select","itemStyle"]),c)}),z(o.ensureState("blur"),{shape:da(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),S=o.getTextContent();m&&z(m.ensureState("select"),{x:d,y:g}),z(S.ensureState("select"),{x:d,y:g}),Ne(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;at(i,qe(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new mt,this.setTextGuideLine(f)),Ph(this,Rh(o),{stroke:u,opacity:An(s.get(["lineStyle","opacity"]),c,1)})}},t}(wt),yL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),v=1;isNaN(c&&c.startAngle)&&v<o.count();++v)c=o.getItemLayout(v);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=w_(e),f=new wt({shape:z(b_(e,n),h)});f.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}o.diff(s).add(function(p){var d=new gL(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Ei(d,e,p)}).execute(),dL(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(be),mL=yL;function Hn(r,t,e){t=B(t)&&{coordDimensions:t}||z({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=zn(a,t).dimensions,i=new lt(n,r);return i.initData(a,e),i}var SL=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}(),po=SL,xL=ve(),_L=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new po($(this.getData,this),$(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Hn(this,{coordDimensions:["value"],encodeDefaulter:ee(ih,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=xL(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=x0(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ta(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(De),bL=_L;function wL(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(me(o)&&!isNaN(o)&&o<0)})}}}function AL(r){r.registerChartView(mL),r.registerSeriesModel(bL),QS("pie",r.registerAction),r.registerLayout(ee(hL,"pie")),r.registerProcessor(fo("pie")),r.registerProcessor(wL("pie"))}var TL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return ir(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(De),CL=TL,T_=4,DL=function(){function r(){}return r}(),ML=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new DL},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<T_,c=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<n.length;){var h=n[v++],f=n[v++];isNaN(h)||isNaN(f)||c&&!c.contain(h,f)||(s.x=h-i[0]/2,s.y=f-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(!!i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,v=i[c]-s/2,h=i[c+1]-l/2;if(e>=v&&a>=h&&e<=v+s&&a<=h+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,v=-1/0,h=0;h<n.length;){var f=n[h++],p=n[h++];l=Math.min(f,l),c=Math.max(f,c),u=Math.min(p,u),v=Math.max(p,v)}e=this._rect=new we(l-o/2,u-s/2,c-l+o,v-u+s)}return e},t}(Ie),IL=function(){function r(){this.group=new te}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ML({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=ze(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<T_;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=q(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var v=t.hoverDataIdx;v>=0&&(u.dataIndex=v+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),LL=IL,PL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=ho("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(!!e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new LL:new co,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(be),RL=PL,EL=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(le),kL=EL,Xc=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",We).models[0]},t.type="cartesian2dAxis",t}(le);Ze(Xc,Fn);var C_={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},NL=ne({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},C_),Eh=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:"#F4F7FD",width:1}}},C_),OL=ne({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Eh),VL=Q({logBase:10},Eh),D_={category:NL,value:Eh,time:OL,log:VL},BL={value:1,category:1,time:1,log:1};function mn(r,t,e,a){w(BL,function(n,i){var o=ne(ne({},D_[i],!0),a,!0),s=function(l){E(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,v){var h=Ni(this),f=h?Rn(c):{},p=v.getTheme();ne(c,p.get(i+"Axis")),ne(c,this.getDefaultOption()),c.type=kd(c),h&&Fr(c,f,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Wc.createByAxisModel(this))},u.prototype.getCategories=function(c){var v=this.option;if(v.type==="category")return c?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",kd)}function kd(r){return r.type||(r.data?"category":"value")}var zL=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return G(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Se(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),GL=zL,Kc=["x","y"];function Nd(r){return r.type==="interval"||r.type==="time"}var FL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Kc,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!Nd(e)||!Nd(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,v=(s[1]-o[1])/u,h=o[0]-n[0]*c,f=o[1]-i[0]*v,p=this._transform=[c,0,0,v,h,f];this._invTransform=ji([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new we(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ot(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return Ot(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new we(i,o,s,l)},t}(GL),HL=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Gt),WL=HL;function qc(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),v=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p=u==="x"?[v[2]-f,v[3]+f]:[v[0]-f,v[1]+f];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[h[l]]:v[0],u==="x"?p[h[l]]:v[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Qe(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function Od(r){return r.get("coordinateSystem")==="cartesian2d"}function Vd(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,We).models[0];t[a]=i}),t}var fu=Math.log;function M_(r,t,e){var a=Hr.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=Ux(r,t),u=l.extent,c=l.fixMin,v=l.fixMax;if(r.type==="log"){var h=fu(r.base);u=[fu(u[0])/h,fu(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:v});var f=a.getExtent.call(r);c&&(u[0]=f[0]),v&&(u[1]=f[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(c&&v)p=(g-d)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=ru(p),g=u[0]+p*o;else if(v)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=ru(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=ru(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Oe(g-m),d<0&&u[0]>=0?(d=0,g=Oe(m)):g>0&&u[1]<=0&&(g=0,d=-Oe(m))}var S=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*S,g+p*x),a.setInterval.call(r,p),(S||x)&&a.setNiceExtent.call(r,d+p,g-p)}var $L=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Kc,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Ue(o),u=l.length;if(!!u){for(var c=[],v=u-1;v>=0;v--){var h=+l[v],f=o[h],p=f.model,d=f.scale;$c(d)&&p.get("alignTicks")&&p.get("interval")==null?c.push(f):(La(d,p),$c(d)&&(s=f))}c.length&&(s||(s=c.pop(),La(s.scale,s.model)),w(c,function(g){M_(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};w(a.x,function(o){Bd(a,"y",o,i)}),w(a.y,function(o){Bd(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=$e(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=PM(u);if(c){var v=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[v]-=c[v]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),v=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(v[h],v[1-h]),UL(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}J(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",We).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",We).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ce(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(c,v){w(s.y,function(h,f){var p="x"+v+"y"+f,d=new FL(p);d.master=n,d.model=t,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(c),d.addAxis(h)})});function u(c){return function(v,h){if(!!pu(v,t)){var f=v.get("position");c==="x"?f!=="top"&&f!=="bottom"&&(f=o.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=o.left?"right":"left"),o[f]=!0;var p=new WL(c,lo(v),[0,0],v.get("type"),f),d=p.type==="category";p.onBand=d&&v.get("boundaryGap"),p.inverse=v.get("inverse"),v.axis=p,p.model=v,p.grid=i,p.index=h,i._axesList.push(p),s[c][h]=p,l[c]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(Od(n)){var i=Vd(n),o=i.xAxisModel,s=i.yAxisModel;if(!pu(o,e)||!pu(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),v=l.getAxis("y");a(u,c),a(u,v)}},this);function a(n,i){w(Os(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return w(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ce(e,i)<0&&e.push(i),ce(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(!!Od(n)){var i=Vd(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=Kc,r}();function pu(r,t){return r.getCoordSysModel()===t}function Bd(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)zd(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&zd(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(v){return v.dim+"_"+v.index}}function zd(r){return r&&r.type!=="category"&&r.type!=="time"&&LM(r)}function UL(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}var YL=$L,Lr=Math.PI,xa=function(){function r(t,e){this.group=new te,this.opt=e,this.axisModel=t,Q(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new te({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!Gd[t]},r.prototype.add=function(t){Gd[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=Ev(e-t),i,o;return fn(n)?(o=a>0?"top":"bottom",i="center"):fn(n-Lr)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Lr?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Gd={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Ot(s,s,o),Ot(l,l,o));var c=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new Je({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});pn(v.shape,v.style.lineWidth),v.anid="line",e.add(v);var h=t.get(["axisLine","symbol"]);if(h!=null){var f=t.get(["axisLine","symbolSize"]);U(h)&&(h=[h,h]),(U(f)||me(f))&&(f=[f,f]);var p=Va(t.get(["axisLine","symbolOffset"])||0,f),d=f[0],g=f[1];w([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var S=ze(h[m],-d/2,-g/2,d,g,c.stroke,!0),x=y.r+y.offset,_=u?l:s;S.attr({rotation:y.rotate,x:_[0]+x*Math.cos(r.rotation),y:_[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(S)}})}}},axisTickLabel:function(r,t,e,a){var n=KL(e,a,t,r),i=jL(e,a,t,r);if(XL(t,i,n),qL(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=i_(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));l_(o)}},axisName:function(r,t,e,a){var n=Qe(r.axisName,t.get("name"));if(!!n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,v=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Hd(i)?r.labelOffset+o*l:0],h,f=t.get("nameRotate");f!=null&&(f=f*Lr/180);var p;Hd(i)?h=xa.innerTextLayout(r.rotation,f!=null?f:r.rotation,o):(h=ZL(r.rotation,i,f||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Qe(r.nameTruncateMaxWidth,g.maxWidth,p),S=new ue({x:v[0],y:v[1],rotation:h.rotation,silent:xa.isLabelSilent(t),style:Ae(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ea({el:S,componentModel:t,itemName:n}),S.__fullText=n,S.anid="name",t.get("triggerEvent")){var x=xa.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,q(S).eventData=x}a.add(S),S.updateTransform(),e.add(S),S.decomposeTransform()}}};function ZL(r,t,e,a){var n=Ev(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return fn(n-Lr/2)?(o=l?"bottom":"top",i="center"):fn(n-Lr*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Lr*1.5&&n>Lr/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function XL(r,t,e){if(!Yx(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],v=e[e.length-1],h=e[e.length-2];a===!1?(It(i),It(u)):Fd(i,o)&&(a?(It(o),It(c)):(It(i),It(u))),n===!1?(It(s),It(v)):Fd(l,s)&&(n?(It(l),It(h)):(It(s),It(v)))}}function It(r){r&&(r.ignore=!0)}function Fd(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=Mv([]);return eo(n,n,-r.rotation),e.applyTransform(gs([],n,r.getLocalTransform())),a.applyTransform(gs([],n,t.getLocalTransform())),e.intersect(a)}}function Hd(r){return r==="middle"||r==="center"}function I_(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Ot(o,o,t),Ot(s,s,t));var c=new Je({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});pn(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function KL(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=I_(u,t.transform,l,Q(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<c.length;v++)r.add(c[v]);return c}}function qL(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=Q(s.getLineStyle(),Q(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var v=I_(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<v.length;h++)r.add(v[h])}}function jL(r,t,e,a){var n=e.axis,i=Qe(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Qe(a.labelRotate,o.get("rotate"))||0)*Lr/180,c=xa.innerTextLayout(a.rotation,u,a.labelDirection),v=e.getCategories&&e.getCategories(!0),h=[],f=xa.isLabelSilent(e),p=e.get("triggerEvent");return w(l,function(d,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,S=d.rawLabel,x=o;if(v&&v[y]){var _=v[y];J(_)&&_.textStyle&&(x=new xe(_.textStyle,o,e.ecModel))}var b=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),A=n.dataToCoord(y),T=x.getShallow("align",!0)||c.textAlign,C=pe(x.getShallow("alignMinLabel",!0),T),D=pe(x.getShallow("alignMaxLabel",!0),T),M=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,I=pe(x.getShallow("verticalAlignMinLabel",!0),M),L=pe(x.getShallow("verticalAlignMaxLabel",!0),M),R=new ue({x:A,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(d.level||0),style:Ae(x,{text:m,align:g===0?C:g===l.length-1?D:T,verticalAlign:g===0?I:g===l.length-1?L:M,fill:K(b)?b(n.type==="category"?S:n.type==="value"?y+"":y,g):b})});if(R.anid="label_"+y,Ea({el:R,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return R.isTruncated},value:S,tickIndex:g}}),p){var P=xa.makeAxisEventDataBase(e);P.targetType="axisLabel",P.value=S,P.tickIndex=g,n.type==="category"&&(P.dataIndex=y),q(R).eventData=P}t.add(R),R.updateTransform(),h.push(R),r.add(R),R.decomposeTransform()}),h}}var yr=xa;function JL(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return QL(e,r,t),e.seriesInvolved&&tP(e,r),e}function QL(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Gi(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,v=c.getModel("tooltip",a);if(w(s.getAxes(),ee(d,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var h=v.get("trigger")==="axis",f=v.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(v.get(["axisPointer","axis"]));(h||f)&&w(p.baseAxes,ee(d,f?"cross":!0,h)),f&&w(p.otherAxes,ee(d,"cross",!1))}function d(g,y,m){var S=m.model.getModel("axisPointer",n),x=S.get("show");if(!(!x||x==="auto"&&!g&&!jc(S))){y==null&&(y=S.get("triggerTooltip")),S=g?eP(m,v,n,t,g,y):S;var _=S.get("snap"),b=S.get("triggerEmphasis"),A=Gi(m.model),T=y||_||m.type==="category",C=r.axesInfo[A]={key:A,axis:m,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:_,useHandle:jc(S),seriesModels:[],linkGroup:null};u[A]=C,r.seriesInvolved=r.seriesInvolved||T;var D=rP(i,m);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[A]=C,M.mapper=i[D].mapper,C.linkGroup=M}}}})}function eP(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(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),n==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&Q(u,v.textStyle)}}return r.model.getModel("axisPointer",new xe(l,e,a))}function tP(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[Gi(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function rP(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(du(i[a+"AxisId"],e.id)||du(i[a+"AxisIndex"],e.componentIndex)||du(i[a+"AxisName"],e.name))return n}}function du(r,t){return r==="all"||B(r)&&ce(r,t)>=0||r===t}function aP(r){var t=kh(r);if(!!t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=jc(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function kh(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Gi(r)]}function nP(r){var t=kh(r);return t&&t.axisPointerModel}function jc(r){return!!r.get(["handle","show"])}function Gi(r){return r.type+"||"+r.id}var Wd={},iP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&aP(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=nP(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){Wd[e]=a},t.getAxisPointerClass=function(e){return e&&Wd[e]},t.type="axis",t}(Re),za=iP,Jc=ve();function L_(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var c=s.length,v=Jc(r).splitAreaColors,h=Z(),f=0;if(v)for(var p=0;p<u.length;p++){var d=v.get(u[p].tickValue);if(d!=null){f=(d+(c-1)*p)%c;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=B(s)?s:[s];for(var p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),S=void 0,x=void 0,_=void 0,b=void 0;n.isHorizontal()?(S=g,x=l.y,_=m-S,b=l.height,g=S+_):(S=l.x,x=g,_=l.width,b=m-x,g=x+b);var A=u[p-1].tickValue;A!=null&&h.set(A,f),t.add(new de({anid:A!=null?"area_"+A:null,shape:{x:S,y:x,width:_,height:b},style:Q({fill:s[f]},y),autoBatch:!0,silent:!0})),f=(f+1)%c}Jc(r).splitAreaColors=h}}}function P_(r){Jc(r).splitAreaColors=null}var oP=["axisLine","axisTickLabel","axisName"],sP=["splitArea","splitLine","minorSplitLine"],R_=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new te,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=qc(s,e),u=new yr(e,z({handleAutoShown:function(v){for(var h=s.coordinateSystem.getCartesians(),f=0;f<h.length;f++)if($c(h[f].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(oP,u.add,u),this._axisGroup.add(u.getGroup()),w(sP,function(v){e.get([v,"show"])&&lP[v](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||io(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){P_(this)},t.type="cartesianAxis",t}(za),lP={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=B(s)?s:[s];for(var c=a.coordinateSystem.getRect(),v=n.isHorizontal(),h=0,f=n.getTicksCoords({tickModel:i}),p=[],d=[],g=o.getLineStyle(),y=0;y<f.length;y++){var m=n.toGlobalCoord(f[y].coord);if(!(y===0&&!l||y===f.length-1&&!u)){var S=f[y].tickValue;v?(p[0]=m,p[1]=c.y,d[0]=m,d[1]=c.y+c.height):(p[0]=c.x,p[1]=m,d[0]=c.x+c.width,d[1]=m);var x=h++%s.length,_=new Je({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:Q({stroke:s[x]},g),silent:!0});pn(_.shape,g.lineWidth),t.add(_)}}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(!!u.length)for(var c=[],v=[],h=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var d=n.toGlobalCoord(u[f][p].coord);l?(c[0]=d,c[1]=s.y,v[0]=d,v[1]=s.y+s.height):(c[0]=s.x,c[1]=d,v[0]=s.x+s.width,v[1]=d);var g=new Je({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});pn(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,a){L_(r,t,e,a)}},E_=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(R_),uP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=E_.type,e}return t.type="yAxis",t}(R_),cP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new de({shape:e.coordinateSystem.getRect(),style:Q({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Re),$d={offset:0};function k_(r){r.registerComponentView(cP),r.registerComponentModel(kL),r.registerCoordinateSystem("cartesian2d",YL),mn(r,"x",Xc,$d),mn(r,"y",Xc,$d),r.registerComponentView(E_),r.registerComponentView(uP),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function vP(r){ie(k_),r.registerSeriesModel(CL),r.registerChartView(RL),r.registerLayout(ho("scatter"))}function hP(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(!!n){var i=n.getIndicatorAxes();w(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=Ud(c)?c:Yd(n)})}),e.each(function(o){var s=uw(a[o],function(l){return Ud(l)})||Yd(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function Ud(r){return!isNaN(r[0])&&!isNaN(r[1])}function Yd(r){return[r.cx,r.cy]}function fP(r){var t=r.polar;if(t){B(t)||(t=[t]);var e=[];w(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],B(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}w(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var pP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,f){var p=h.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var d=Bn(h.getItemVisual(f,"symbolSize")),g=ze(p,-1,-1,2,2),y=h.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function c(h,f,p,d,g,y){p.removeAll();for(var m=0;m<f.length-1;m++){var S=u(d,g);S&&(S.__dimIdx=m,h[m]?(S.setPosition(h[m]),ka[y?"initProps":"updateProps"](S,{x:f[m][0],y:f[m][1]},e,g)):S.setPosition(f[m]),p.add(S))}}function v(h){return G(h,function(f){return[i.cx,i.cy]})}s.diff(l).add(function(h){var f=s.getItemLayout(h);if(!!f){var p=new At,d=new mt,g={shape:{points:f}};p.shape.points=v(f),d.shape.points=v(f),Me(p,g,e,h),Me(d,g,e,h);var y=new te,m=new te;y.add(d),y.add(p),y.add(m),c(d.shape.points,f,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,f){var p=l.getItemGraphicEl(f),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};!m.shape.points||(c(d.shape.points,m.shape.points,y,s,h,!1),Xt(g),Xt(d),he(d,m,e),he(g,m,e),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,f){var p=s.getItemModel(f),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(f,"style"),S=m.fill;o.add(h),d.useStyle(Q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),rt(d,p,"lineStyle"),rt(g,p,"areaStyle");var x=p.getModel("areaStyle"),_=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=_,w(["emphasis","select","blur"],function(T){var C=p.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=D&&_}),g.useStyle(Q(x.getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis"),A=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Dt){var C=T.style;T.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(S),T.style.strokeNoScale=!0;var D=T.ensureState("emphasis");D.style=j(A);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),f);(M==null||isNaN(M))&&(M=""),at(T,qe(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:S,defaultOpacity:m.opacity})}),Ne(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(be),dP=pP,gP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new po($(this.getData,this),$(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Hn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=FS(this,e);return je("section",{header:u,sortBlocks:!0,blocks:G(s,function(v){var h=i.get(i.mapDimension(v.dim),e);return je("nameValue",{markerType:"subItem",markerColor:c,name:v.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(G(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(De),yP=gP,ti=D_.value;function zo(r,t){return Q({show:t},r)}var mP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),f=G(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=Q({color:p.color},l));var g=ne(j(p),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:d,triggerEvent:h},!1);if(U(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else K(c)&&(g.name=c(g.name,g));var m=new xe(g,null,this.ecModel);return Ze(m,Fn.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ne({lineStyle:{color:"#bbb"}},ti.axisLine),axisLabel:zo(ti.axisLabel,!1),axisTick:zo(ti.axisTick,!1),splitLine:zo(ti.splitLine,!0),splitArea:zo(ti.splitArea,!0),indicator:[]},t}(le),SP=mP,xP=["axisLine","axisTickLabel","axisName"],_P=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new yr(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(i,function(o){w(xP,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),v=s.get("show"),h=l.get("color"),f=u.get("color"),p=B(h)?h:[h],d=B(f)?f:[f],g=[],y=[];function m(P,k,O){var N=O%k.length;return P[N]=P[N]||[],N}if(i==="circle")for(var S=n[0].getTicksCoords(),x=a.cx,_=a.cy,b=0;b<S.length;b++){if(c){var A=m(g,p,b);g[A].push(new Yr({shape:{cx:x,cy:_,r:S[b].coord}}))}if(v&&b<S.length-1){var A=m(y,d,b);y[A].push(new Ki({shape:{cx:x,cy:_,r0:S[b].coord,r:S[b+1].coord}}))}}else for(var T,C=G(n,function(P,k){var O=P.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),G(O,function(N){return a.coordToPoint(N.coord,k)})}),D=[],b=0;b<=T;b++){for(var M=[],I=0;I<n.length;I++)M.push(C[I][b]);if(M[0]&&M.push(M[0].slice()),c){var A=m(g,p,b);g[A].push(new mt({shape:{points:M}}))}if(v&&D){var A=m(y,d,b-1);y[A].push(new At({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var L=l.getLineStyle(),R=u.getAreaStyle();w(y,function(P,k){this.group.add(xt(P,{style:Q({stroke:"none",fill:d[k%d.length]},R),silent:!0}))},this),w(g,function(P,k){this.group.add(xt(P,{style:Q({fill:"none",stroke:p[k%p.length]},L),silent:!0}))},this)},t.type="radar",t}(Re),bP=_P,wP=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(Gt),AP=wP,TP=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=G(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new AP(o,new Hr);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],v=Math.abs(i-c.angle);v<o&&(s=c,l=u,o=v)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=H(a[0],n),this.cy=H(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(U(s)||me(s))&&(s=[0,s]),this.r0=H(s[0],o),this.r=H(s[1],o),w(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;w(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();w(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new Hr;o.setExtent(0,i),o.setInterval(1),w(a,function(s,l){M_(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}(),CP=TP;function DP(r){r.registerCoordinateSystem("radar",CP),r.registerComponentModel(SP),r.registerComponentView(bP),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function MP(r){ie(DP),r.registerChartView(dP),r.registerSeriesModel(yP),r.registerLayout(hP),r.registerProcessor(fo("radar")),r.registerPreprocessor(fP)}var Zd="\0_ec_interaction_mutex";function IP(r,t,e){var a=Nh(r);a[t]=e}function LP(r,t,e){var a=Nh(r),n=a[t];n===e&&(a[t]=null)}function Xd(r,t){return!!Nh(r)[t]}function Nh(r){return r[Zd]||(r[Zd]={})}Kt({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},dt);var PP=function(r){E(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=$(a._mousedownHandler,a),i=$(a._mousemoveHandler,a),o=$(a._mouseupHandler,a),s=$(a._mousewheelHandler,a),l=$(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=Q(j(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Vf(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!vs("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Xd(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&zr(e.event),N_(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Vf(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=vs("zoomOnMouseWheel",e,this._opt),n=vs("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;gu(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),h=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);gu(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Xd(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;gu(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(wn);function gu(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(zr(a.event),N_(r,t,e,a,n))}function N_(r,t,e,a,n){n.isAvailableBehavior=$(vs,null,e,a),r.trigger(t,n)}function vs(r,t,e){var a=e[r];return!r||a&&(!U(a)||t.event[a+"Key"])}var go=PP;function Oh(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function Vh(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var RP={axisPointer:1,tooltip:1,brush:1};function wl(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!RP.hasOwnProperty(a.mainType)&&n&&n.model!==e}var EP=Z(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),kP=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=Z(),this._freedGraphics=[],this._mapName=t,this._parsedXML=cw(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=OP(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&vw(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,bt(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var n=new te;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,v=void 0,h=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var f=a.getBoundingRect();u==null&&(u=f.x,v=f.width),c==null&&(c=f.y,h=f.height)}l=this._boundingRect=new we(u,c,v,h)}if(s){var p=hw(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new de({shape:l.plain()}));var d=[];return w(e.named,function(g){EP.get(g.svgNodeTagLower)!=null&&(d.push(g),NP(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function NP(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function OP(r){var t=[],e=Z();return w(r,function(a){if(a.namedFrom==null){var n=new WM(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var Qc=[126,25],Kd="\u5357\u6D77\u8BF8\u5C9B",aa=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var ra=0;ra<aa.length;ra++)for(var Xa=0;Xa<aa[ra].length;Xa++)aa[ra][Xa][0]/=10.5,aa[ra][Xa][1]/=-10.5/.75,aa[ra][Xa][0]+=Qc[0],aa[ra][Xa][1]+=Qc[1];function VP(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Kd)return;t.push(new Xx(Kd,G(aa,function(a){return{type:"polygon",exterior:a}}),Qc))}}var BP={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function zP(r,t){if(r==="china"){var e=BP[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var GP=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function FP(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:GP[0]})}var HP="name",WP=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=Z(),this._mapName=t,this._specialAreas=a,this._geoJSON=UP(e)}return r.prototype.load=function(t,e){e=e||HP;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:$P(n)})}var i=Z(),o=[];return w(a.regions,function(s){var l=s.name;t&&Y(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new we(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?Yc(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return VP(e,n),w(n,function(i){var o=i.name;zP(e,i),FP(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function $P(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function UP(r){return U(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ri=Z(),mr={registerMap:function(r,t,e){if(t.svg){var a=new kP(r,t.svg);ri.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new WP(r,n,e);ri.set(r,a)}},getGeoResource:function(r){return ri.get(r)},getMapForUser:function(r){var t=ri.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=ri.get(r);if(!!a)return a.load(t,e)}},Bh=["rect","circle","line","ellipse","polygon","polyline","path"],YP=Z(Bh),ZP=Z(Bh.concat(["g"])),XP=Z(Bh.concat(["g"])),O_=ve();function Go(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function qd(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var KP=function(){function r(t){var e=new te;this.uid=Pn("ec_map_draw"),this._controller=new go(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new te),e.add(this._svgGroup=new te)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,v=l.getTransformInfo(),h=v.raw,f=v.roam,p=!u.childAt(0)||i;p?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):he(c,f,t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Z(),a=Z(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(f,p){return p&&(f=p(f)),f&&[f[0]*i.scaleX+i.x,f[1]*i.scaleY+i.y]}function v(f){for(var p=[],d=!u&&l&&l.project,g=0;g<f.length;++g){var y=c(f[g],d);y&&p.push(y)}return p}function h(f){return{shape:{points:v(f)}}}n.removeAll(),w(t.geo.regions,function(f){var p=f.name,d=e.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=e.set(p,new te),n.add(d),y=s?s.indexOfName(p):null,m=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var S=m.get("silent",!0);S!=null&&(d.silent=S),a.set(p,{dataIdx:y,regionModel:m})}var x=[],_=[];w(f.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=rg(C,u)),w(C,function(M){x.push(new At(h(M)))})}else{var D=T.points;u&&(D=rg(D,u,!0)),w(D,function(M){_.push(new mt(h(M)))})}});var b=c(f.getCenter(),l&&l.project);function A(T,C){if(!!T.length){var D=new Lv({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(D),jd(t,D,y,m),Jd(t,D,p,m,o,y,b),C&&(qd(D),w(D.states,qd))}}A(x),A(_,!0)}),e.each(function(f,p){var d=a.get(p),g=d.dataIdx,y=d.regionModel;Qd(t,f,p,y,o,g),eg(t,f,p,y,o),tg(t,f,p,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=Z(),i=!1;w(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,v=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);YP.get(c)!=null&&v instanceof wa&&jd(t,v,h,f),v instanceof wa&&(v.culling=!0);var p=f.get("silent",!0);if(p!=null&&(v.silent=p),v.z2EmphasisLift=0,!o.namedFrom&&(XP.get(c)!=null&&Jd(t,v,s,f,l,h,null),Qd(t,v,s,f,l,h),eg(t,v,s,f,l),ZP.get(c)!=null)){var d=tg(t,v,s,f,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(v)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Ma(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=mr.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=mr.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Oh(o,u.dx,u.dy),a.dispatchAction(z(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Vh(o,u.scale,u.originX,u.originY),a.dispatchAction(z(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,v){return n.containPoint([c,v])&&!wl(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=O_(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},r}();function jd(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Go(n),u=Go(i),c=Go(s),v=Go(o),h=r.data;if(h){var f=h.getItemVisual(e,"style"),p=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=gn(p,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=v,Ma(t)}function Jd(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var v=l?e:i,h=void 0;(!s||i>=0)&&(h=n);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;at(t,qe(a),{labelFetcher:h,labelDataIndex:v,defaultText:e},f);var p=t.getTextContent();if(p&&(O_(p).ignore=p.ignore,t.textConfig&&o)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Qd(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):q(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function eg(r,t,e,a,n){r.data||Ea({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function tg(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ne(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&TA(t,n,e),o}function rg(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}var V_=KP,qP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new V_(n);o.add(s.group),s.draw(e,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,v=u.offset,h=new Yr({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+v*9,cy:c[1],r:3},silent:!0,z2:8+(v?0:Dn+1)});if(!v){var f=e.mainSeries.getData(),p=i.getName(l),d=f.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=f.getItemGraphicEl(d);at(h,qe(g),{labelFetcher:{getFormattedLabel:function(S,x){return e.getFormattedLabel(d,x)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){bs(h,S)}}o.add(h)}}})},t.type="map",t}(be),jP=qP,JP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=Hn(this,{coordDimensions:["value"],encodeDefaulter:ee(ih,this)}),n=Z(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=mr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w(u.regions,function(c){var v=c.name,h=n.get(v),f=c.properties&&c.properties.echartsStyle,p;h==null?(p={name:v},i.push(p)):p=a.getRawDataItem(h),f&&ne(p,f)}),a.appendData(i),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var v=l[c].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[c].originalData.get(h,v))||u.push(l[c].name)}return je("section",{header:u.join(", "),noHeader:!u.length,blocks:[je("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=ze(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(De),QP=JP;function e2(r,t){var e={};return w(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,c=0;c<u;c++)s=Math.min(s,e[i][c]),l=Math.max(l,e[i][c]),o+=e[i][c];var v;return t==="min"?v=s:t==="max"?v=l:t==="average"?v=o/u:v=o,u===0?NaN:v})}function t2(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),w(t,function(e,a){for(var n=e2(G(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function r2(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};w(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var v=l.getName(c),h=s.getRegion(v);if(!(!h||isNaN(u))){var f=n[v]||0,p=s.dataToPoint(h.getCenter());n[v]=f+1,l.setItemLayout(c,{point:p,offset:f})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var ag=Ot,a2=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new nn,a._rawTransformable=new nn,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new we(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new we(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new we(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){!e||(this._center=[H(e[0],a.getWidth()),H(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Ot([],i,e),n=Ot([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),fw(this.transform||(this.transform=[]),a.transform||Tn()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],ji(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new nn;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?ag(n,e,i):ht(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?ag([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=ng(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=ng(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(nn);function ng(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var yo=a2,n2={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},B_=["lng","lat"],z_=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=B_,i.type="geo",i._nameCoordMap=Z(),i.map=a;var o=n.projection,s=mr.load(a,n.nameMap,n.nameProperty),l=mr.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=n2[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var h=0;h<u.length;h++){var f=u[h].getBoundingRect(o);v=v||f.clone(),v.union(f)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:pe(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new we(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(U(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=ig(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=ig(a);return i===this?i.pointToData(n):null},t}(yo);Ze(z_,yo);function ig(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",We).models[0]||{}).coordinateSystem:null}var og=z_;function sg(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(b,A,T,C){for(var D=T-b,M=C-A,I=0;I<=100;I++){var L=I/100,R=i.project([b+D*L,A+M*L]);v0(a,a,R),h0(n,n,R)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var v=this.getBoundingRect(),h=r.get("layoutCenter"),f=r.get("layoutSize"),p=t.getWidth(),d=t.getHeight(),g=v.width/v.height*this.aspectScale,y=!1,m,S;h&&f&&(m=[H(h[0],p),H(h[1],d)],S=H(f,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(S)&&(y=!0));var x;if(y)x={},g>1?(x.width=S,x.height=S/g):(x.height=S,x.width=S*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var _=r.getBoxLayoutParams();_.aspect=g,x=$e(_,{width:p,height:d})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function i2(r,t){w(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var o2=function(){function r(){this.dimensions=B_}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new og(l+s,l,z({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=sg,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),w(i,function(o,s){var l=G(o,function(c){return c.get("nameMap")}),u=new og(s,s,z({nameMap:Pv(l)},n(o[0])));u.zoomLimit=Qe.apply(null,G(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=sg,u.resize(o[0],e),w(o,function(c){c.coordinateSystem=u,i2(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=Z(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=mr.load(e,a,n);return w(l.regions,function(u){var c=u.name,v=o.get(c),h=u.properties&&u.properties.echartsStyle;v||(v={name:c},i.push(v)),h&&ne(v,h)}),i},r}(),s2=new o2,G_=s2,l2=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=mr.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Ta(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=G_.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=ba(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new xe(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},Z()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new xe(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(K(i))return o.status=a,i(o);if(U(i))return i.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(!!n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(le),u2=l2;function lg(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function zh(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(lg(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),v=(t.originY-r.y)*(o-1);r.x-=c,r.y-=v,r.updateTransform(),r.setCenter(lg(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var c2=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new V_(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;pa(e.target,function(n){return(a=q(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=q(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Re),v2=c2;function h2(r,t,e){mr.registerMap(r,t,e)}function F_(r){r.registerCoordinateSystem("geo",G_),r.registerComponentModel(u2),r.registerComponentView(v2),r.registerImpl("registerMap",h2),r.registerImpl("getMap",function(e){return mr.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;w(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var c=[];w(o,function(v,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=zh(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&w(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function f2(r){ie(F_),r.registerChartView(jP),r.registerSeriesModel(QP),r.registerLayout(r2),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,t2),QS("map",r.registerAction)}function p2(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function d2(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){m2(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=S2(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function g2(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function ug(r){return arguments.length?r:b2}function pi(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function y2(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function m2(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function S2(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,v=s.hierNode.modifier;s=yu(s),i=mu(i),s&&i;){n=yu(n),o=mu(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);h>0&&(_2(x2(s,r,e),r,h),u+=h,l+=h),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!yu(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!mu(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function yu(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function mu(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function x2(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function _2(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function b2(r,t){return r.parentNode===t.parentNode?1:2}var w2=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),A2=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new w2},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,v=1-c,h=H(a.forkPosition,1),f=[];f[c]=o[c],f[v]=o[v]+(l[v]-o[v])*h,e.moveTo(o[0],o[1]),e.lineTo(f[0],f[1]),e.moveTo(s[0],s[1]),f[c]=s[c],e.lineTo(f[0],f[1]),f[c]=l[c],e.lineTo(f[0],f[1]),e.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];e.moveTo(d[0],d[1]),f[c]=d[c],e.lineTo(f[0],f[1])}},t}(Ie),T2=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new te,e}return t.prototype.init=function(e,a){this._controller=new go(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,a,n);var u=this._data;i.diff(u).add(function(c){cg(i,c)&&vg(i,c,null,s,e)}).update(function(c,v){var h=u.getItemGraphicEl(v);if(!cg(i,c)){h&&fg(u,v,h,s,e);return}vg(i,c,h,s,e)}).remove(function(c){var v=u.getItemGraphicEl(c);v&&fg(u,c,v,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,v){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:v})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,a){var n=e.getData(),i=[];n.each(function(v){var h=n.getItemLayout(v);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];d0(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=new yo;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center"),a),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,v){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,v)&&!wl(u,n,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Oh(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Vh(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(be);function cg(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function vg(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,v=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(v.dataIndex),f=v.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,d=o.getLayout();i?(e=new uo(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=p.x,e.y=p.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=d.rawX,e.__radialRawY=d.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,he(e,{x:d.x,y:d.y},n);var g=e.getSymbolPath();if(n.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),S=y.children.length,x=void 0,_=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};x=Math.atan2(b.y-m.y,b.x-m.x),x<0&&(x=Math.PI*2+x),_=b.x<m.x,_&&(x=x-Math.PI)}else x=Math.atan2(d.y-m.y,d.x-m.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(_=d.x<m.x,_&&(x=x-Math.PI)):(_=d.x>m.x,_||(x=x-Math.PI));var A=_?"left":"right",T=s.getModel("label"),C=T.get("rotate"),D=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||A,rotation:C==null?-x:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Mi(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(q(e).focus=L),C2(n,o,c,e,p,f,d,a),e.__edge&&(e.onHoverStateChange=function(R){if(R!=="blur"){var P=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===ao||bs(e.__edge,R)}})}function C2(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),v=r.getOrient(),h=r.get(["lineStyle","curveness"]),f=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=a.__edge=new qi({shape:ev(c,v,h,n,n)})),he(d,{shape:ev(c,v,h,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}d||(d=a.__edge=new A2({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:f}})),he(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&!(u==="polyline"&&!t.isExpand)&&(d.useStyle(Q({strokeNoScale:!0,fill:null},p)),rt(d,l,"lineStyle"),Ma(d),s.add(d))}function hg(r,t,e,a,n){var i=t.tree.root,o=H_(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(!!u){var c=t.getItemGraphicEl(s.dataIndex),v=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),f=a.get("edgeShape"),p=a.get("layout"),d=a.get("orient"),g=a.get(["lineStyle","curveness"]);h&&(f==="curve"?Gr(h,{shape:ev(p,d,g,l,l),style:{opacity:0}},a,{cb:function(){e.remove(h)},removeOpt:n}):f==="polyline"&&a.get("layout")==="orthogonal"&&Gr(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(h)},removeOpt:n}))}}function H_(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function fg(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=H_(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Gr(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){hg(u,r,a,n,l)}),hg(i,r,a,n,l)}function ev(r,t,e,a,n){var i,o,s,l,u,c,v,h;if(r==="radial"){u=a.rawX,v=a.rawY,c=n.rawX,h=n.rawY;var f=pi(u,v),p=pi(u,v+(h-v)*e),d=pi(c,h+(v-h)*e),g=pi(c,h);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=a.x,v=a.y,c=n.x,h=n.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*e,o=v,s=c+(u-c)*e,l=h),(t==="TB"||t==="BT")&&(i=u,o=v+(h-v)*e,s=c,l=h+(v-h)*e);return{x1:u,y1:v,x2:c,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var D2=T2,Nt=ve();function W_(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,$_(t,e,r),w(e,function(a){w(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,ee(M2,r))})}),t.wrapMethod("cloneShallow",ee(L2,r)),w(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,ee(I2,r))}),bt(e[t.dataType]===t)}function M2(r,t){if(E2(this)){var e=z({},Nt(this).datas);e[this.dataType]=t,$_(t,e,r)}else Gh(t,this.dataType,Nt(this).mainData,r);return t}function I2(r,t){return r.struct&&r.struct.update(),t}function L2(r,t){return w(Nt(t).datas,function(e,a){e!==t&&Gh(e.cloneShallow(),a,t,r)}),t}function P2(r){var t=Nt(this).mainData;return r==null||t==null?t:Nt(t).datas[r]}function R2(){var r=Nt(this).mainData;return r==null?[{data:r}]:G(Ue(Nt(r).datas),function(t){return{type:t,data:Nt(r).datas[t]}})}function E2(r){return Nt(r).mainData===r}function $_(r,t,e){Nt(r).datas={},w(t,function(a,n){Gh(a,n,r,e)})}function Gh(r,t,e,a){Nt(e).datas[t]=r,Nt(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=P2,r.getLinkedDataAll=R2}var k2=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){K(t)&&(a=e,e=t,t=null),t=t||{},U(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),N2=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(c,v){var h=c.value;o=Math.max(o,B(h)?h.length:1),i.push(c);var f=new k2(Ye(c.name,""),n);v?O2(f,v):n.root=f,n._nodes.push(f);var p=c.children;if(p)for(var d=0;d<p.length;d++)s(p[d],f)}n.root.updateDepthAndHeight(0);var l=zn(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new lt(l,e);return u.initData(i),a&&a(u),W_({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function O2(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}var Fh=N2;function Fi(r,t,e){if(r&&ce(t,r.type)>=0){var a=e.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function U_(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function Hh(r,t){var e=U_(r);return ce(e,t)>=0}function Al(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var V2=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new xe(n,this,this.ecModel),o=Fh.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(h,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var h=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=h&&h.collapsed!=null?!h.collapsed:v.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return je("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Al(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(De),B2=V2;function z2(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)t(i,e)}function ai(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function G2(r,t){r.eachSeriesByType("tree",function(e){F2(e,t)})}function F2(r,t){var e=y2(r,t);r.layoutInfo=e;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(e.height,e.width)/2,o=ug(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(n=e.width,i=e.height,o=ug());var s=r.getData().tree.root,l=s.children[0];if(l){p2(s),z2(l,d2,o),s.hierNode.modifier=-l.hierNode.prelim,ai(l,g2);var u=l,c=l,v=l;ai(l,function(S){var x=S.getLayout().x;x<u.getLayout().x&&(u=S),x>c.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=u===c?1:o(u,c)/2,f=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=n/(c.getLayout().x+h+f),d=i/(v.depth-1||1),ai(l,function(S){g=(S.getLayout().x+f)*p,y=(S.depth-1)*d;var x=pi(g,y);S.setLayout({x:x.x,y:x.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(c.getLayout().x+h+f),p=n/(v.depth-1||1),ai(l,function(S){y=(S.getLayout().x+f)*d,g=m==="LR"?(S.depth-1)*p:n-(S.depth-1)*p,S.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(c.getLayout().x+h+f),d=i/(v.depth-1||1),ai(l,function(S){g=(S.getLayout().x+f)*p,y=m==="TB"?(S.depth-1)*d:i-(S.depth-1)*d,S.setLayout({x:g,y},!0)}))}}}function H2(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");z(s,o)})})}function W2(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=zh(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function $2(r){r.registerChartView(D2),r.registerSeriesModel(B2),r.registerLayout(G2),r.registerVisual(H2),W2(r)}var pg=["treemapZoomToNode","treemapRender","treemapMove"];function U2(r){for(var t=0;t<pg.length;t++)r.registerAction({type:pg[t],update:"updateView"},dt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Fi(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=Hh(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Y_(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Ec(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var Y2=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Z_(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new xe({itemStyle:o},this,a);i=e.levels=Z2(i,a);var l=G(i||[],function(v){return new xe(v,s,a)},this),u=Fh.createTree(n,this,c);function c(v){v.wrapMethod("getItemModel",function(h,f){var p=u.getNodeByDataIndex(f),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return je("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Al(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},z(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=Z(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){Y_(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(De);function Z_(r){var t=0;w(r.children,function(a){Z_(a);var n=a.value;B(n)&&(n=n[0]),t+=n});var e=r.value;B(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),B(r.value)?r.value[0]=e:r.value=e}function Z2(r,t){var e=_e(t.get("color")),a=_e(t.get(["aria","decal","decals"]));if(!!e){r=r||[];var n,i;w(r,function(s){var l=new xe(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var X2=Y2,K2=8,dg=8,Su=5,q2=function(){function r(t){this.group=new te,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),v={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,v,u),this._renderContent(t,v,s,l,u,c,n),hl(o,v.pos,v.box)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=Ye(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+K2*2,e.emptyItemWidth);e.totalWidth+=s+dg,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=aT(e.pos,e.box),h=e.totalWidth,f=e.renderList,p=n.getModel("itemStyle").getItemStyle(),d=f.length-1;d>=0;d--){var g=f[d],y=g.node,m=g.width,S=g.text;h>v.width&&(h-=m-u,m=u,S=null);var x=new At({shape:{points:j2(l,0,m,c,d===f.length-1,d===0)},style:Q(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new ue({style:Ae(i,{text:S})}),textConfig:{position:"inside"},z2:Dn*1e4,onclick:ee(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Ae(o,{text:S}),x.ensureState("emphasis").style=p,Ne(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),J2(x,t,y),l+=m+dg}},r.prototype.remove=function(){this.group.removeAll()},r}();function j2(r,t,e,a,n,i){var o=[[n?r:r-Su,t],[r+e,t],[r+e,t+a],[n?r:r-Su,t+a]];return!i&&o.splice(2,0,[r+e+Su,t+a/2]),!n&&o.push([r,t+a/2]),o}function J2(r,t,e){q(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Al(e,t)}}var Q2=q2,eR=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}();function tR(){return new eR}var tv=te,gg=de,yg=3,mg="label",Sg="upperLabel",rR=Dn*10,aR=Dn*2,nR=Dn*3,na=Da([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),xg=function(r){var t=na(r);return t.stroke=t.fill=t.lineWidth=null,t},Fs=ve(),iR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=ni(),e}return t.prototype.render=function(e,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(ce(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Fi(i,s,e),u=i&&i.type,c=e.layoutInfo,v=!this._oldTree,h=this._storage,f=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),d=e.get("animation"),g=this._doRender(p,e,f);d&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,e,f):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new tv,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,n){var i=a.getData().tree,o=this._oldTree,s=ni(),l=ni(),u=this._storage,c=[];function v(m,S,x,_){return oR(a,l,u,n,s,c,m,S,x,_)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var f=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===f.width&&p.height===f.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function d(m,S,x,_,b){_?(S=m,w(m,function(C,D){!C.isRemoved()&&T(D,D)})):new dr(S,m,A,A).add(T).update(T).remove(ee(T,null)).execute();function A(C){return C.getId()}function T(C,D){var M=C!=null?m[C]:null,I=D!=null?S[D]:null,L=v(M,I,x,b);L&&d(M&&M.viewChildren||[],I&&I.viewChildren||[],L,_,b+1)}}function g(m){var S=ni();return m&&w(m,function(x,_){var b=S[_];w(x,function(A){A&&(b.push(A),Fs(A).willDelete=!0)})}),S}function y(){w(h,function(m){w(m,function(S){S.parent&&S.parent.remove(S)})}),w(c,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(K(o)?0:o)||0,u=(K(s)?null:s)||"cubicOut",c=tR();w(a.willDeleteEls,function(v,h){w(v,function(f,p){if(!f.invisible){var d=f.parent,g,y=Fs(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&c.add(f,g,l,0,u)}})}),w(this._storage,function(v,h){w(v,function(f,p){var d=a.lastsForAnimation[h][p],g={};!d||(f instanceof te?d.oldX!=null&&(g.x=f.x,g.y=f.y,f.x=d.oldX,f.y=d.oldY):(d.oldShape&&(g.shape=z({},f.shape),f.setShape(d.oldShape)),d.fadein?(f.setStyle("opacity",0),g.style={opacity:1}):f.style.opacity!==1&&(g.style={opacity:1})),c.add(f,g,l,0,u))})},this),this._state="animating",c.finished($(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),a||(a=this._controller=new go(e.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",$(this._onPan,this)),a.on("zoom",$(this._onZoom,this)));var i=new we(0,0,e.getWidth(),e.getHeight());a.setPointerChecker(function(o,s,l){return i.contain(s,l)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>yg||Math.abs(e.dy)>yg)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new we(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var v=c.zoom=c.zoom||1;if(v*=i,u){var h=u.min||0,f=u.max||1/0;v=Math.max(Math.min(f,v),h)}var p=v/c.zoom;c.zoom=v;var d=this.seriesModel.layoutInfo;a-=d.x,n-=d.y;var g=Tn();Aa(g,g,[-a,-n]),pw(g,g,[p,p]),Aa(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(!!i){var o=a.findTarget(n.offsetX,n.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Ds(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Q2(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(Hh(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ni(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(be);function ni(){return{nodeGroup:[],background:[],content:[]}}function oR(r,t,e,a,n,i,o,s,l,u){if(!o)return;var c=o.getLayout(),v=r.getData(),h=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var f=c.width,p=c.height,d=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,x=c.upperHeight,_=S&&S.length,b=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),D=b.get("borderRadius")||0,M=se("nodeGroup",tv);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),Fs(M).nodeWidth=f,Fs(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=se("background",gg,u,aR);I&&F(M,I,_&&c.upperLabelHeight);var L=h.getModel("emphasis"),R=L.get("focus"),P=L.get("blurScope"),k=L.get("disabled"),O=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(_)Ri(M)&&ha(M,!1),I&&(ha(I,!k),v.setItemGraphicEl(o.dataIndex,I),Cc(I,O,P));else{var N=se("content",gg,u,nR);N&&W(M,N),I.disableMorphing=!0,I&&Ri(I)&&ha(I,!1),ha(M,!k),v.setItemGraphicEl(o.dataIndex,M);var V=h.getShallow("cursor");V&&N.attr("cursor",V),Cc(M,O,P)}return M;function F(fe,oe,Le){var Te=q(oe);if(Te.dataIndex=o.dataIndex,Te.seriesIndex=r.seriesIndex,oe.setShape({x:0,y:0,width:f,height:p,r:D}),g)X(oe);else{oe.invisible=!1;var Ee=o.getVisual("style"),Xe=Ee.stroke,Ke=xg(b);Ke.fill=Xe;var Pe=na(A);Pe.fill=A.get("borderColor");var Ge=na(T);Ge.fill=T.get("borderColor");var ct=na(C);if(ct.fill=C.get("borderColor"),Le){var _r=f-2*d;re(oe,Xe,Ee.opacity,{x:d,y:0,width:_r,height:x})}else oe.removeTextContent();oe.setStyle(Ke),oe.ensureState("emphasis").style=Pe,oe.ensureState("blur").style=Ge,oe.ensureState("select").style=ct,Ma(oe)}fe.add(oe)}function W(fe,oe){var Le=q(oe);Le.dataIndex=o.dataIndex,Le.seriesIndex=r.seriesIndex;var Te=Math.max(f-2*d,0),Ee=Math.max(p-2*d,0);if(oe.culling=!0,oe.setShape({x:d,y:d,width:Te,height:Ee,r:D}),g)X(oe);else{oe.invisible=!1;var Xe=o.getVisual("style"),Ke=Xe.fill,Pe=xg(b);Pe.fill=Ke,Pe.decal=Xe.decal;var Ge=na(A),ct=na(T),_r=na(C);re(oe,Ke,Xe.opacity,null),oe.setStyle(Pe),oe.ensureState("emphasis").style=Ge,oe.ensureState("blur").style=ct,oe.ensureState("select").style=_r,Ma(oe)}fe.add(oe)}function X(fe){!fe.invisible&&i.push(fe)}function re(fe,oe,Le,Te){var Ee=h.getModel(Te?Sg:mg),Xe=Ye(h.get("name"),null),Ke=Ee.getShallow("show");at(fe,qe(h,Te?Sg:mg),{defaultText:Ke?Xe:null,inheritColor:oe,defaultOpacity:Le,labelFetcher:r,labelDataIndex:o.dataIndex});var Pe=fe.getTextContent();if(!!Pe){var Ge=Pe.style,ct=l0(Ge.padding||0);Te&&(fe.setTextConfig({layoutRect:Te}),Pe.disableLabelLayout=!0),Pe.beforeUpdate=function(){var or=Math.max((Te?Te.width:fe.shape.width)-ct[1]-ct[3],0),So=Math.max((Te?Te.height:fe.shape.height)-ct[0]-ct[2],0);(Ge.width!==or||Ge.height!==So)&&Pe.setStyle({width:or,height:So})},Ge.truncateMinChar=2,Ge.lineOverflow="truncate",ae(Ge,Te,c);var _r=Pe.getState("emphasis");ae(_r?_r.style:null,Te,c)}}function ae(fe,oe,Le){var Te=fe?fe.text:null;if(!oe&&Le.isLeafRoot&&Te!=null){var Ee=r.get("drillDownIcon",!0);fe.text=Ee?Ee+" "+Te:Te}}function se(fe,oe,Le,Te){var Ee=m!=null&&e[fe][m],Xe=n[fe];return Ee?(e[fe][m]=null,Ve(Xe,Ee)):g||(Ee=new oe,Ee instanceof wa&&(Ee.z2=sR(Le,Te)),St(Xe,Ee)),t[fe][y]=Ee}function Ve(fe,oe){var Le=fe[y]={};oe instanceof tv?(Le.oldX=oe.x,Le.oldY=oe.y):Le.oldShape=z({},oe.shape)}function St(fe,oe){var Le=fe[y]={},Te=o.parentNode,Ee=oe instanceof te;if(Te&&(!a||a.direction==="drillDown")){var Xe=0,Ke=0,Pe=n.background[Te.getRawIndex()];!a&&Pe&&Pe.oldShape&&(Xe=Pe.oldShape.width,Ke=Pe.oldShape.height),Ee?(Le.oldX=0,Le.oldY=Ke):Le.oldShape={x:Xe,y:Ke,width:0,height:0}}Le.fadein=!Ee}}function sR(r,t){return r*rR+t}var lR=iR,Hi=w,uR=J,Hs=-1,Wh=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=j(t);this.type=a,this.mappingMethod=e,this._normalizeData=hR[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(xu(n),cR(n)):e==="category"?n.categories?vR(n):xu(n,!0):(bt(e!=="linear"||n.dataExtent),xu(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return $(this._normalizeData,this)},r.listVisualTypes=function(){return Ue(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){J(t)?w(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=B(t)?[]:J(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Hi(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(B(t))t=t.slice();else if(uR(t)){var e=[];Hi(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||U(l)&&l===t+"")return o;a&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,v=u.close;if(c){if(c[0]===-1/0){if(Ho(v[1],t,c[1]))return o}else if(c[1]===1/0){if(Ho(v[0],c[0],t))return o}else if(Ho(v[0],c[0],t)&&Ho(v[1],t,c[1]))return o;a&&h(c[0],o),a&&h(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function h(f,p){var d=Math.abs(f-t);d<i&&(i=d,n=p)}},r.visualHandlers={color:{applyVisual:ii("color"),getColorMapper:function(){var t=this.option;return $(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),di.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Rl(e,t.parsedVisual,n),i?n:rs(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return rs(Rl(t,this.option.parsedVisual),"rgba")},category:di,piecewise:function(t,e){var a=av.call(this,e);return a==null&&(a=rs(Rl(t,this.option.parsedVisual),"rgba")),a},fixed:ia}},colorHue:Fo(function(t,e){return mi(t,e)}),colorSaturation:Fo(function(t,e){return mi(t,null,e)}),colorLightness:Fo(function(t,e){return mi(t,null,null,e)}),colorAlpha:Fo(function(t,e){return _s(t,e)}),decal:{applyVisual:ii("decal"),_normalizedToVisual:{linear:null,category:di,piecewise:null,fixed:null}},opacity:{applyVisual:ii("opacity"),_normalizedToVisual:rv([0,1])},liftZ:{applyVisual:ii("liftZ"),_normalizedToVisual:{linear:ia,category:ia,piecewise:ia,fixed:ia}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:_g,category:di,piecewise:function(t,e){var a=av.call(this,e);return a==null&&(a=_g.call(this,t)),a},fixed:ia}},symbolSize:{applyVisual:ii("symbolSize"),_normalizedToVisual:rv([0,1])}},r}();function cR(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function vR(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Hi(t,function(o,s){e[o]=s}),!B(a)){var n=[];J(a)?Hi(a,function(o,s){var l=e[s];n[l!=null?l:Hs]=o}):n[Hs]=a,a=X_(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function xu(r,t){var e=r.visual,a=[];J(e)?Hi(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),X_(r,a)}function Fo(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:rv([0,1])}}function _g(r){var t=this.option.visual;return t[Math.round(ge(r,[0,1],[0,t.length-1],!0))]||{}}function ii(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function di(r){var t=this.option.visual;return t[this.option.loop&&r!==Hs?r%t.length:r]}function ia(){return this.option.visual[0]}function rv(r){return{linear:function(t){return ge(t,r,this.option.visual,!0)},category:di,piecewise:function(t,e){var a=av.call(this,e);return a==null&&(a=ge(t,r,this.option.visual,!0)),a},fixed:ia}}function av(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Wh.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function X_(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=G(t,function(e){var a=g0(e);return a||[0,0,0,1]})),t}var hR={linear:function(r){return ge(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Wh.findPieceIndex(r,t,!0);if(e!=null)return ge(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?Hs:t},fixed:dt};function Ho(r,t,e){return r?t<=e:t<e}var tt=Wh,fR="itemStyle",K_=ve(),pR={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||q_(e,{},r.getViewRoot().getAncestors(),r)}};function q_(r,t,e,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(fR),l=dR(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),v=s.get("borderColorSaturation"),h;v!=null&&(h=bg(l),c=gR(v,h)),u.stroke=c;var f=r.viewChildren;if(!f||!f.length)h=bg(l),u.fill=h;else{var p=yR(r,n,i,s,l,f);w(f,function(d,g){if(d.depth>=e.length||d===e[d.depth]){var y=mR(n,l,d,g,p,a);q_(d,y,e,a)}})}}}function dR(r,t,e){var a=z({},t),n=e.designatedVisualItemStyle;return w(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function bg(r){var t=_u(r,"color");if(t){var e=_u(r,"colorAlpha"),a=_u(r,"colorSaturation");return a&&(t=mi(t,null,null,a)),e&&(t=_s(t,e)),t}}function gR(r,t){return t!=null?mi(t,null,null,r):null}function _u(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function yR(r,t,e,a,n,i){if(!(!i||!i.length)){var o=bu(t,"color")||n.color!=null&&n.color!=="none"&&(bu(t,"colorAlpha")||bu(t,"colorSaturation"));if(!!o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(c==="index"||c==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var h=new tt(v);return K_(h).drColorMappingBy=c,h}}}function bu(r,t){var e=r.get(t);return B(e)&&e.length?{name:t,range:e}:null}function mR(r,t,e,a,n,i){var o=z({},t);if(n){var s=n.type,l=s==="color"&&K_(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Wi=Math.max,Ws=Math.min,wg=Qe,$h=w,j_=["itemStyle","borderWidth"],SR=["itemStyle","gapWidth"],xR=["upperLabel","show"],_R=["upperLabel","height"],bR={seriesType:"treemap",reset:function(r,t,e,a){var n=e.getWidth(),i=e.getHeight(),o=r.option,s=$e(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=H(wg(s.width,l[0]),n),c=H(wg(s.height,l[1]),i),v=a&&a.type,h=["treemapZoomToNode","treemapRootToNode"],f=Fi(a,h,r),p=v==="treemapRender"||v==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=U_(d);if(v!=="treemapMove"){var y=v==="treemapZoomToNode"?MR(r,f,d,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(x),J_(d,S,!1,0),x=d.getLayout(),$h(g,function(b,A){var T=(g[A+1]||d).getValue();b.setLayout(z({dataExtent:[T,T],borderWidth:0,upperHeight:0},x))})}var _=r.getData().tree.root;_.setLayout(IR(s,p,f),!0),r.setLayoutInfo(s),Q_(_,new we(-s.x,-s.y,n,i),g,d,0)}};function J_(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(j_),u=s.get(SR)/2,c=e1(s),v=Math.max(l,c),h=l-u,f=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:c},!0),n=Wi(n-2*h,0),i=Wi(i-h-f,0);var p=n*i,d=wR(r,s,p,t,e,a);if(!!d.length){var g={x:h,y:f,width:n,height:i},y=Ws(n,i),m=1/0,S=[];S.area=0;for(var x=0,_=d.length;x<_;){var b=d[x];S.push(b),S.area+=b.getLayout().area;var A=DR(S,y,t.squareRatio);A<=m?(x++,m=A):(S.area-=S.pop().getLayout().area,Ag(S,y,g,u,!1),y=Ws(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&Ag(S,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(e=!0)}for(var x=0,_=d.length;x<_;x++)J_(d[x],t,e,a+1)}}}function wR(r,t,e,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=Se(o,function(f){return!f.isRemoved()}),TR(o,s);var u=CR(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=AR(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,v=o.length;c<v;c++){var h=o[c].getValue()/u.sum*e;o[c].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function AR(r,t,e,a,n){if(!a)return e;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),e}function TR(r,t){return t&&r.sort(function(e,a){var n=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return n===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}),r}function CR(r,t,e){for(var a=0,n=0,i=t.length;n<i;n++)a+=t[n].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],$h(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function DR(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Wi(u*a/l,l/(u*n)):1/0}function Ag(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],c=t?r.area/t:0;(n||c>e[l[o]])&&(c=e[l[o]]);for(var v=0,h=r.length;v<h;v++){var f=r[v],p={},d=c?f.getLayout().area/c:0,g=p[l[o]]=Wi(c-2*a,0),y=e[s[i]]+e[l[i]]-u,m=v===h-1||y<d?y:d,S=p[l[i]]=Wi(m-2*a,0);p[s[o]]=e[s[o]]+Ws(a,g/2),p[s[i]]=u+Ws(a,S/2),u+=m,f.setLayout(p,!0)}e[s[o]]+=c,e[l[o]]-=c}function MR(r,t,e,a,n){var i=(t||{}).node,o=[a,n];if(!i||i===e)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,v=s.children,h=0,f=v.length;h<f;h++)c+=v[h].getValue();var p=i.getValue();if(p===0)return o;u*=c/p;var d=s.getModel(),g=d.get(j_),y=Math.max(g,e1(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>xc&&(u=xc),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,n*m]}function IR(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var n=e.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function Q_(r,t,e,a,n){var i=r.getLayout(),o=e[n],s=o&&o===r;if(!(o&&!s||n===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new we(t.x-i.x,t.y-i.y,t.width,t.height);$h(r.viewChildren||[],function(u){Q_(u,l,e,a,n+1)})}}function e1(r){return r.get(xR)?r.get(_R):0}function LR(r){r.registerSeriesModel(X2),r.registerChartView(lR),r.registerVisual(pR),r.registerLayout(bR),U2(r)}function PR(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){me(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function RR(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],v=0;v<c.length;v++){var h=l.getShallow(c[v],!0);h!=null&&a.setItemVisual(o,c[v],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){U(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");z(c,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],h=0;h<v.length;h++)n.setItemVisual(o,v[h],a.getItemVisual(l,v[h]))}})})}function Wo(r){return r instanceof Array||(r=[r,r]),r}function ER(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Wo(t.get("edgeSymbol")),i=Wo(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Wo(s.getShallow("symbol",!0)),c=Wo(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(z(h,v),h.stroke){case"source":{var f=l.node1.getVisual("style");h.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");h.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var nv="-->",Tl=function(r){return r.get("autoCurveness")||null},t1=function(r,t){var e=Tl(r),a=20,n=[];if(me(e))a=e;else if(B(e)){r.__curvenessList=e;return}t>a&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},$i=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(nv)},r1=function(r){var t=r.split(nv);return[t[0],t[2],t[1]].join(nv)},kR=function(r,t){var e=$i(r.node1,r.node2,t);return t.__edgeMap[e]},NR=function(r,t){var e=iv($i(r.node1,r.node2,t),t),a=iv($i(r.node2,r.node1,t),t);return e+a},iv=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function OR(r){!Tl(r)||(r.__curvenessList=[],r.__edgeMap={},t1(r))}function VR(r,t,e,a){if(!!Tl(e)){var n=$i(r,t,e),i=e.__edgeMap,o=i[r1(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function Uh(r,t,e,a){var n=Tl(t),i=B(n);if(!n)return null;var o=kR(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=NR(r,t);t1(t,u),r.lineStyle=r.lineStyle||{};var c=$i(r.node1,r.node2,t),v=t.__curvenessList,h=i||u%2?0:1;if(o.isForward)return v[h+s];var f=r1(c),p=iv(f,t),d=v[s+p+h];return a?i?n&&n[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:v[s+p+h]}function a1(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),Yh(e,r)}}function Yh(r,t){r.eachEdge(function(e,a){var n=An(e.getModel().get(["lineStyle","curveness"]),-Uh(e,t,a,!0),0),i=Er(e.node1.getLayout()),o=Er(e.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),e.setLayout(s)})}function BR(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.getData(),o=[];w(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var v=i.get(o[c],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}Yh(i.graph,e)}else(!a||a==="none")&&a1(e)})}function gi(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,n=t.getZoom(),i=(n-1)*e+1;return i/a}function yi(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Tg=Math.PI,wu=[];function Zh(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(e){var h=n.pointToData(a),f=h[0],p=h[1],d=[f-l,p-u];to(d,d),dw(d,d,c),e.setLayout([l+d[0],u+d[1]],!0);var g=r.get(["circular","rotateLabel"]);n1(e,g,l,u)}zR[t](r,s,o,c,l,u,v),s.eachEdge(function(y,m){var S=An(y.getModel().get(["lineStyle","curveness"]),Uh(y,r,m),0),x=Er(y.node1.getLayout()),_=Er(y.node2.getLayout()),b,A=(x[0]+_[0])/2,T=(x[1]+_[1])/2;+S&&(S*=3,b=[l*S+A*(1-S),u*S+T*(1-S)]),y.setLayout([x,_,b])})}}}var zR={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var v=c.getValue("value"),h=u*(l?v:1)/2;s+=h,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,t,e,a,n,i,o){var s=0;wu.length=o;var l=gi(r);t.eachNode(function(v){var h=yi(v);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var f=Math.asin(h/2/a);isNaN(f)&&(f=Tg/2),wu[v.dataIndex]=f,s+=f*2});var u=(2*Tg-s)/o/2,c=0;t.eachNode(function(v){var h=u+wu[v.dataIndex];c+=h,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=h})}};function n1(r,t,e,a){var n=r.getGraphicEl();if(!!n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var c=l[0]<e;c&&(u=u-Math.PI);var v=c?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var h=s.ensureState("emphasis");z(h.textConfig||(h.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function GR(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Zh(t,"symbolSize")})}var Ka=yc;function FR(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,c=0;c<a.length;c++){var v=a[c];v.p||(v.p=gw(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=Er(v.p),v.edges=null}var h=e.friction==null?.6:e.friction,f=h,p,d;return{warmUp:function(){f=h*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(a,n);for(var y=[],m=a.length,S=0;S<n.length;S++){var x=n[S];if(!x.ignoreForceLayout){var _=x.n1,b=x.n2;on(y,b.p,_.p);var A=Bf(y)-x.d,T=b.w/(_.w+b.w);isNaN(T)&&(T=0),to(y,y),!_.fixed&&Ka(_.p,_.p,y,T*A*f),!b.fixed&&Ka(b.p,b.p,y,-(1-T)*A*f)}}for(var S=0;S<m;S++){var C=a[S];C.fixed||(on(y,l,C.p),Ka(C.p,C.p,y,u*f))}for(var S=0;S<m;S++)for(var _=a[S],D=S+1;D<m;D++){var b=a[D];on(y,b.p,_.p);var A=Bf(y);A===0&&(yw(y,Math.random()-.5,Math.random()-.5),A=1);var M=(_.rep+b.rep)/A/A;!_.fixed&&Ka(_.pp,_.pp,y,M),!b.fixed&&Ka(b.pp,b.pp,y,-M)}for(var I=[],S=0;S<m;S++){var C=a[S];C.fixed||(on(I,C.p,C.pp),Ka(C.p,C.p,I,f),ht(C.pp,C.p))}f=f*.992;var L=f<.01;d&&d(a,n,L),g&&g(L)}}}function HR(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(S){var x=i.getId(S);i.setItemLayout(S,a[x]||[NaN,NaN])}):!l||l==="none"?a1(t):l==="circular"&&Zh(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),v=s.get("repulsion"),h=s.get("edgeLength"),f=B(v)?v:[v,v],p=B(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(S,x){var _=i.getItemLayout(x),b=ge(S,u,f);return isNaN(b)&&(b=(f[0]+f[1])/2),{w:b,rep:b,fixed:i.getItemModel(x).get("fixed"),p:!_||isNaN(_[0])||isNaN(_[1])?null:_}}),g=o.mapArray("value",function(S,x){var _=n.getEdgeByIndex(x),b=ge(S,c,p);isNaN(b)&&(b=(p[0]+p[1])/2);var A=_.getModel(),T=An(_.getModel().get(["lineStyle","curveness"]),-Uh(_,t,x,!0),0);return{n1:d[_.node1.dataIndex],n2:d[_.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:A.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=FR(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,x){for(var _=0,b=S.length;_<b;_++)S[_].fixed&&ht(S[_].p,n.getNodeByIndex(_).getLayout())}),m.afterStep(function(S,x,_){for(var b=0,A=S.length;b<A;b++)S[b].fixed||n.getNodeByIndex(b).setLayout(S[b].p),a[i.getId(b)]=S[b].p;for(var b=0,A=x.length;b<A;b++){var T=x[b],C=n.getEdgeByIndex(b),D=T.n1.p,M=T.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],ht(I[0],D),ht(I[1],M),+T.curveness&&(I[2]=[(D[0]+M[0])/2-(D[1]-M[1])*T.curveness,(D[1]+M[1])/2-(M[0]-D[0])*T.curveness]),C.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=a,m.step()}else t.forceLayout=null})}function WR(r,t,e){var a=z(r.getBoxLayoutParams(),{aspect:e});return $e(a,{width:t.getWidth(),height:t.getHeight()})}function $R(r,t){var e=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];d0(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=WR(a,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var v=l[0]-s[0],h=l[1]-s[1],f=c.width,p=c.height,d=a.coordinateSystem=new yo;d.zoomLimit=a.get("scaleLimit"),d.setBoundingRect(s[0],s[1],v,h),d.setViewRect(c.x,c.y,f,p),d.setCenter(a.get("center"),t),d.setZoom(a.get("zoom")),e.push(d)}}),e}var Cg=Je.prototype,Au=qi.prototype,i1=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(i1);function Tu(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var UR=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new i1},t.prototype.buildPath=function(e,a){Tu(a)?Cg.buildPath.call(this,e,a):Au.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return Tu(this.shape)?Cg.pointAt.call(this,e):Au.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=Tu(a)?[a.x2-a.x1,a.y2-a.y1]:Au.tangentAt.call(this,e);return to(n,n)},t}(Ie),YR=UR,Cu=["fromSymbol","toSymbol"];function Dg(r){return"_"+r+"Type"}function Mg(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Bn(n),u=Va(o||0,l);return a+l+u+(i||"")+(s||"")}function Ig(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Bn(n),u=Va(o||0,l),c=ze(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function ZR(r){var t=new YR({name:"line",subPixelOptimize:!0});return ov(t.shape,r),t}function ov(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var XR=function(r){E(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=ZR(o);s.shape.percent=0,Me(s,{shape:{percent:1}},i,a),this.add(s),w(Cu,function(l){var u=Ig(l,e,a);this.add(u),this[Dg(l)]=Mg(l,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};ov(l.shape,s),he(o,l,i,a),w(Cu,function(u){var c=Mg(u,e,a),v=Dg(u);if(this[v]!==c){this.remove(this.childOfName(u));var h=Ig(u,e,a);this.add(h)}this[v]=c},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,v=n&&n.emphasisDisabled,h=n&&n.focus,f=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(a),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),v=d.get("disabled"),h=d.get("focus"),f=d.get("blurScope"),c=qe(p)}var g=e.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,w(Cu,function(b){var A=this.childOfName(b);if(A){A.setColor(y),A.style.opacity=g.opacity;for(var T=0;T<gt.length;T++){var C=gt[T],D=o.getState(C);if(D){var M=D.style||{},I=A.ensureState(C),L=I.style||(I.style={});M.stroke!=null&&(L[A.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}A.markRedraw()}},this);var m=i.getRawValue(a);at(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,A){return i.getFormattedLabel(b,A,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(a):isFinite(m)?Oe(m):m)+""});var S=this.getTextContent();if(S){var x=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=x.get("position")||"middle";var _=x.get("distance");B(_)||(_=[_,_]),S.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Ne(this,h,f,v)},t.prototype.highlight=function(){fr(this)},t.prototype.downplay=function(){pr(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");ov(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),v=l.pointAt(u),h=on([],v,c);to(h,h);function f(D,M){var I=D.__specifiedRotation;if(I==null){var L=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else D.attr("rotation",I)}if(a&&(a.setPosition(c),f(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(v),f(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,x=l.tangentAt(S),_=[x[1],-x[0]],b=l.pointAt(S);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var A=x[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(x[1],x[0]);v[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+v[0],i.y=h[1]*m+v[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+c[0],i.y=-h[1]*m+c[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*A+c[0],i.y=c[1]+C,p=x[0]<0?"right":"left",i.originX=-y*A,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*A+v[0],i.y=v[1]+C,p=x[0]>=0?"right":"left",i.originX=y*A,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},t}(te),Xh=XR,KR=function(){function r(t){this.group=new te,this._LineCtor=t||Xh}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Lg(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;!t||t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Lg(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!qR(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(Du(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Zr(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(!!Du(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!Du(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function qR(r){return r.animators&&r.animators.length>0}function Lg(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:qe(t)}}function Pg(r){return isNaN(r[0])||isNaN(r[1])}function Du(r){return r&&!Pg(r[0])&&!Pg(r[1])}var Kh=KR,Mu=[],Iu=[],Lu=[],qa=y0,Pu=Sw,Rg=Math.abs;function Eg(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,c=.1;c<=.9;c+=.1){Mu[0]=qa(a[0],n[0],i[0],c),Mu[1]=qa(a[1],n[1],i[1],c);var v=Rg(Pu(Mu,t)-l);v<o&&(o=v,s=c)}for(var h=0;h<32;h++){var f=s+u;Iu[0]=qa(a[0],n[0],i[0],s),Iu[1]=qa(a[1],n[1],i[1],s),Lu[0]=qa(a[0],n[0],i[0],f),Lu[1]=qa(a[1],n[1],i[1],f);var v=Pu(Iu,t)-l;if(Rg(v)<.01)break;var p=Pu(Lu,t)-l;u/=2,v<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Ru(r,t){var e=[],a=mw,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[Er(u[0]),Er(u[1])],u[2]&&u.__original.push(Er(u[2])));var h=u.__original;if(u[2]!=null){if(ht(n[0],h[0]),ht(n[1],h[2]),ht(n[2],h[1]),c&&c!=="none"){var f=yi(s.node1),p=Eg(n,h[0],f*t);a(n[0][0],n[1][0],n[2][0],p,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],p,e),n[0][1]=e[3],n[1][1]=e[4]}if(v&&v!=="none"){var f=yi(s.node2),p=Eg(n,h[1],f*t);a(n[0][0],n[1][0],n[2][0],p,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],p,e),n[1][1]=e[1],n[2][1]=e[2]}ht(u[0],n[0]),ht(u[1],n[2]),ht(u[2],n[1])}else{if(ht(i[0],h[0]),ht(i[1],h[1]),on(o,i[1],i[0]),to(o,o),c&&c!=="none"){var f=yi(s.node1);yc(i[0],i[0],o,f*t)}if(v&&v!=="none"){var f=yi(s.node2);yc(i[1],i[1],o,-f*t)}ht(u[0],i[0]),ht(u[1],i[1])}})}function kg(r){return r.type==="view"}var jR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new co,i=new Kh,o=this.group;this._controller=new go(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(kg(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):he(u,c,e)}Ru(e.getGraph(),gi(e));var v=e.getData();s.updateData(v);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,a,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var d=e.get("layout");v.graph.eachNode(function(S){var x=S.dataIndex,_=S.getGraphicEl(),b=S.getModel();if(!!_){_.off("drag").off("dragend");var A=b.get("draggable");A&&_.on("drag",function(C){switch(d){case"force":f.warmUp(),!i._layouting&&i._startForceLayoutIteration(f,p),f.setFixed(x),v.setItemLayout(x,[_.x,_.y]);break;case"circular":v.setItemLayout(x,[_.x,_.y]),S.setLayout({fixed:!0},!0),Zh(e,"symbolSize",S,[C.offsetX,C.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(x,[_.x,_.y]),Yh(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){f&&f.setUnfixed(x)}),_.setDraggable(A,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(q(_).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var x=S.getGraphicEl(),_=S.getModel().get(["emphasis","focus"]);!x||_==="adjacency"&&(q(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=v.getLayout("cx"),m=v.getLayout("cy");v.graph.eachNode(function(S){n1(S,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a){var n=this;(function i(){e.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,v){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,v)&&!wl(u,n,e)}),!kg(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Oh(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Vh(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Ru(e.getGraph(),gi(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=gi(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){Ru(e.getGraph(),gi(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(be),JR=jR;function ja(r){return"_EC_"+r}var QR=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[ja(t)]){var n=new oa(t,e);return n.hostGraph=this,this.nodes.push(n),a[ja(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[ja(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(me(t)&&(t=this.nodes[t]),me(e)&&(e=this.nodes[e]),t instanceof oa||(t=n[ja(t)]),e instanceof oa||(e=n[ja(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new o1(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof oa&&(t=t.id),e instanceof oa&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof oa||(e=this._nodesMap[ja(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],v=c.node1===l?c.node2:c.node1;if(!v.__visited){if(t.call(n,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),oa=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=e==null?-1:e}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=Z(),e=Z(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){t.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,e.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),o1=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a==null?-1:a}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=Z(),e=Z();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function s1(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ze(oa,s1("hostGraph","data"));Ze(o1,s1("hostGraph","edgeData"));var eE=QR;function l1(r,t,e,a,n){for(var i=new eE(a),o=0;o<r.length;o++)i.addNode(Qe(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],v=c.source,h=c.target;i.addEdge(v,h,u)&&(l.push(c),s.push(Qe(Ye(c.id,null),v+" > "+h)),u++)}var f=e.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=ir(r,e);else{var d=Nn.get(f),g=d?d.dimensions||[]:[];ce(g,"value")<0&&g.concat(["value"]);var y=zn(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new lt(y,e),p.initData(r)}var m=new lt(["value"],e);return m.initData(l,s),n&&n(p,m),W_({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var tE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new po(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ta(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){OR(this);var s=l1(i,n,this,!0,l);return w(s.edges,function(u){VR(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var v=xe.prototype.getModel;function h(p,d){var g=v.call(this,p,d);return g.resolveParentPath=f,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=h,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),je("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var v=WS({series:this,dataIndex:e,multipleSeries:a});return v},t.prototype._updateCategoriesData=function(){var e=G(this.option.categories||[],function(n){return n.value!=null?n:z({value:0},n)}),a=new lt(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(De),rE=tE,aE={type:"graphRoam",event:"graphRoam",update:"none"};function nE(r){r.registerChartView(JR),r.registerSeriesModel(rE),r.registerProcessor(PR),r.registerVisual(RR),r.registerVisual(ER),r.registerLayout(BR),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,GR),r.registerLayout(HR),r.registerCoordinateSystem("graphView",{dimensions:yo.dimensions,create:$R}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},dt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},dt),r.registerAction(aE,function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=n.coordinateSystem,o=zh(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var iE=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),oE=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new iE},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t}(Ie),sE=oE;function lE(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=H(e[0],t.getWidth()),s=H(e[1],t.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function $o(r,t){var e=r==null?"":r+"";return t&&(U(t)?e=t.replace("{value}",e):K(t)&&(e=t(r))),e}var uE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=lE(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,v=e.getModel("axisLine"),h=v.get("roundCap"),f=h?Gs:wt,p=v.get("show"),d=v.getModel("lineStyle"),g=d.get("width"),y=[u,c];p0(y,!l),u=y[0],c=y[1];for(var m=c-u,S=u,x=[],_=0;p&&_<i.length;_++){var b=Math.min(Math.max(i[_][0],0),1);c=u+m*b;var A=new f({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});A.setStyle({fill:i[_][1]}),A.setStyle(d.getLineStyle(["color","width"])),x.push(A),S=c}x.reverse(),w(x,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=C&&(D===0?0:i[D-1][0])<C)return i[D][1];return i[D-1][1]};this._renderTicks(e,a,n,T,o,u,c,l,g),this._renderTitleAndDetail(e,a,n,T,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,T,o,u,c,l,g)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,c){for(var v=this.group,h=o.cx,f=o.cy,p=o.r,d=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),S=e.getModel("axisLabel"),x=e.get("splitNumber"),_=m.get("splitNumber"),b=H(y.get("length"),p),A=H(m.get("length"),p),T=s,C=(l-s)/x,D=C/_,M=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),R,P,k=0;k<=x;k++){if(R=Math.cos(T),P=Math.sin(T),y.get("show")){var O=L?L+c:c,N=new Je({shape:{x1:R*(p-O)+h,y1:P*(p-O)+f,x2:R*(p-b-O)+h,y2:P*(p-b-O)+f},style:M,silent:!0});M.stroke==="auto"&&N.setStyle({stroke:i(k/x)}),v.add(N)}if(S.get("show")){var O=S.get("distance")+L,V=$o(Oe(k/x*(g-d)+d),S.get("formatter")),F=i(k/x),W=R*(p-b-O)+h,X=P*(p-b-O)+f,re=S.get("rotate"),ae=0;re==="radial"?(ae=-T+2*Math.PI,ae>Math.PI/2&&(ae+=Math.PI)):re==="tangential"?ae=-T-Math.PI/2:me(re)&&(ae=re*Math.PI/180),ae===0?v.add(new ue({style:Ae(S,{text:V,x:W,y:X,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:F}),silent:!0})):v.add(new ue({style:Ae(S,{text:V,x:W,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:X,rotation:ae}))}if(m.get("show")&&k!==x){var O=m.get("distance");O=O?O+c:c;for(var se=0;se<=_;se++){R=Math.cos(T),P=Math.sin(T);var Ve=new Je({shape:{x1:R*(p-O)+h,y1:P*(p-O)+f,x2:R*(p-A-O)+h,y2:P*(p-A-O)+f},silent:!0,style:I});I.stroke==="auto"&&Ve.setStyle({stroke:i((k+se/_)/x)}),v.add(Ve),T+=D}T-=D}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var v=this.group,h=this._data,f=this._progressEls,p=[],d=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),S=m.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),b=[x,_],A=[s,l];function T(D,M){var I=m.getItemModel(D),L=I.getModel("pointer"),R=H(L.get("width"),o.r),P=H(L.get("length"),o.r),k=e.get(["pointer","icon"]),O=L.get("offsetCenter"),N=H(O[0],o.r),V=H(O[1],o.r),F=L.get("keepAspect"),W;return k?W=ze(k,N-R/2,V-P,R,P,null,F):W=new sE({shape:{angle:-Math.PI/2,width:R,r:P,x:N,y:V}}),W.rotation=-(M+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(D,M){var I=g.get("roundCap"),L=I?Gs:wt,R=g.get("overlap"),P=R?g.get("width"):c/m.count(),k=R?o.r-P:o.r-(D+1)*P,O=R?o.r:o.r-D*P,N=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:O}});return R&&(N.z2=ge(m.get(S,D),[x,_],[100,0],!0)),N}(y||d)&&(m.diff(h).add(function(D){var M=m.get(S,D);if(d){var I=T(D,s);Me(I,{rotation:-((isNaN(+M)?A[0]:ge(M,b,A,!0))+Math.PI/2)},e),v.add(I),m.setItemGraphicEl(D,I)}if(y){var L=C(D,s),R=g.get("clip");Me(L,{shape:{endAngle:ge(M,b,A,R)}},e),v.add(L),wc(e.seriesIndex,m.dataType,D,L),p[D]=L}}).update(function(D,M){var I=m.get(S,D);if(d){var L=h.getItemGraphicEl(M),R=L?L.rotation:s,P=T(D,R);P.rotation=R,he(P,{rotation:-((isNaN(+I)?A[0]:ge(I,b,A,!0))+Math.PI/2)},e),v.add(P),m.setItemGraphicEl(D,P)}if(y){var k=f[M],O=k?k.shape.endAngle:s,N=C(D,O),V=g.get("clip");he(N,{shape:{endAngle:ge(I,b,A,V)}},e),v.add(N),wc(e.seriesIndex,m.dataType,D,N),p[D]=N}}).execute(),m.each(function(D){var M=m.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),R=I.get("blurScope"),P=I.get("disabled");if(d){var k=m.getItemGraphicEl(D),O=m.getItemVisual(D,"style"),N=O.fill;if(k instanceof Dt){var V=k.style;k.useStyle(z({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},O))}else k.useStyle(O),k.type!=="pointer"&&k.setColor(N);k.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i(ge(m.get(S,D),b,[0,1],!0))),k.z2EmphasisLift=0,rt(k,M),Ne(k,L,R,P)}if(y){var F=p[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,rt(F,M),Ne(F,L,R,P)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=ze(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),v=+e.get("max"),h=new te,f=[],p=[],d=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){f[y]=new ue({silent:!0}),p[y]=new ue({silent:!0})}).update(function(y,m){f[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),x=new te,_=i(ge(S,[c,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var A=b.get("offsetCenter"),T=o.cx+H(A[0],o.r),C=o.cy+H(A[1],o.r),D=f[y];D.attr({z2:g?0:2,style:Ae(b,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:_})}),x.add(D)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+H(I[0],o.r),R=o.cy+H(I[1],o.r),P=H(M.get("width"),o.r),k=H(M.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:_,D=p[y],N=M.get("formatter");D.attr({z2:g?0:2,style:Ae(M,{x:L,y:R,text:$o(S,N),width:isNaN(P)?null:P,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),X0(D,{normal:M},S,function(F){return $o(F,N)}),d&&K0(D,y,l,e,{getFormattedLabel:function(F,W,X,re,ae,se){return $o(se?se.interpolatedValue:S,N)}}),x.add(D)}h.add(x)}),this.group.add(h),this._titleEls=f,this._detailEls=p},t.type="gauge",t}(be),cE=uE,vE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Hn(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(De),hE=vE;function fE(r){r.registerChartView(cE),r.registerSeriesModel(hE)}var pE=["itemStyle","opacity"],dE=function(r){E(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new mt,s=new ue;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(pE);c=c==null?1:c,n||Xt(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Me(i,{style:{opacity:c}},o,a)):he(i,{style:{opacity:c},shape:{points:l.points}},o,a),rt(i,s),this._updateLabel(e,a),Ne(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),c=u.label,v=e.getItemVisual(a,"style"),h=v.fill;at(o,qe(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:e.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var f=c.linePoints;i.setShape({points:f}),n.textGuideLineConfig={anchor:f?new He(f[0][0],f[0][1]):null},he(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Ph(n,Rh(l),{stroke:h})},t}(At),gE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new dE(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Ei(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(be),yE=gE,mE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new po($(this.getData,this),$(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Hn(this,{coordDimensions:["value"],encodeDefaulter:ee(ih,this)})},t.prototype._defaultLabelLine=function(e){Ta(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(De),SE=mE;function xE(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _E(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return K(t)?n.sort(t):t!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function bE(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,h,f,p;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,v="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),p=[[h,f],[h,f]];else{var d=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-S,h=y-5,v="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+S,h=y+5,v="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,f=m-5,v="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,f=m+5,v="center"):o==="rightTop"?(d=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=g-S,f=m-5,v="center"):(y=d+S,h=y+5,v="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],e==="horizontal"?(m=g+S,f=m+5,v="center"):(y=d+S,h=y+5,v="bottom")):o==="leftTop"?(d=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-S,f=m-5,v="center"):(y=d-S,h=y-5,v="right")):o==="leftBottom"?(d=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=g+S,f=m+5,v="center"):(y=d-S,h=y-5,v="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=g+S,f=m+5,v="center"):(y=d+S,h=y+5,v="left")),e==="horizontal"?(y=d,h=y):(m=g,f=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:f,verticalAlign:"middle",textAlign:v,inside:c}})}function wE(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),o=xE(e,t),s=e.get("orient"),l=o.width,u=o.height,c=_E(a,i),v=o.x,h=o.y,f=s==="horizontal"?[H(e.get("minSize"),u),H(e.get("maxSize"),u)]:[H(e.get("minSize"),l),H(e.get("maxSize"),l)],p=a.getDataExtent(n),d=e.get("min"),g=e.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=e.get("funnelAlign"),m=e.get("gap"),S=s==="horizontal"?l:u,x=(S-m*(a.count()-1))/a.count(),_=function(R,P){if(s==="horizontal"){var k=a.get(n,R)||0,O=ge(k,[d,g],f,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(u-O)/2;break;case"bottom":N=h+(u-O);break}return[[P,N],[P,N+O]]}var V=a.get(n,R)||0,F=ge(V,[d,g],f,!0),W;switch(y){case"left":W=v;break;case"center":W=v+(l-F)/2;break;case"right":W=v+l-F;break}return[[W,P],[W+F,P]]};i==="ascending"&&(x=-x,m=-m,s==="horizontal"?v+=l:h+=u,c=c.reverse());for(var b=0;b<c.length;b++){var A=c[b],T=c[b+1],C=a.getItemModel(A);if(s==="horizontal"){var D=C.get(["itemStyle","width"]);D==null?D=x:(D=H(D,l),i==="ascending"&&(D=-D));var M=_(A,v),I=_(T,v+D);v+=D+m,a.setItemLayout(A,{points:M.concat(I.slice().reverse())})}else{var L=C.get(["itemStyle","height"]);L==null?L=x:(L=H(L,u),i==="ascending"&&(L=-L));var M=_(A,h),I=_(T,h+L);h+=L+m,a.setItemLayout(A,{points:M.concat(I.slice().reverse())})}}bE(a)})}function AE(r){r.registerChartView(yE),r.registerSeriesModel(SE),r.registerLayout(wE),r.registerProcessor(fo("funnel"))}var TE=.3,CE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new te,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,v=Og(e);s.diff(l).add(h).update(f).remove(p).execute();function h(g){var y=Ng(s,o,g,c,u);Eu(y,s,g,v)}function f(g,y){var m=l.getItemGraphicEl(y),S=u1(s,g,c,u);s.setItemGraphicEl(g,m),he(m,{shape:{points:S}},e,g),Xt(m),Eu(m,s,g,v)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=DE(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=Og(a),u=this._progressiveEls=[],c=e.start;c<e.end;c++){var v=Ng(i,this._dataGroup,c,s,o);v.incremental=!0,Eu(v,i,c,l),u.push(v)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(be);function DE(r,t,e){var a=r.model,n=r.getRect(),i=new de({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Me(i,{shape:{width:n.width,height:n.height}},t,e),i}function u1(r,t,e,a){for(var n=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);ME(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function Ng(r,t,e,a,n){var i=u1(r,e,a,n),o=new mt({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function Og(r){var t=r.get("smooth",!0);return t===!0&&(t=TE),t=ar(t),xs(t)&&(t=0),{smooth:t}}function Eu(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=t.getItemModel(e),i=n.getModel("emphasis");rt(r,n,"lineStyle"),Ne(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function ME(r,t){return t==="category"?r==null:r==null||isNaN(r)}var IE=CE,LE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return ir(null,this,{useEncodeDefaulter:$(PE,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){e===o&&i.push(n.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(De);function PE(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!!t){var e={};return w(t.dimensions,function(a){var n=RE(a);e[a]=n}),e}}function RE(r){return+r.replace("dim","")}var EE=LE,kE=["lineStyle","opacity"],NE={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){e.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(kE,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}},OE=NE;function VE(r){BE(r),zE(r)}function BE(r){if(!r.parallel){var t=!1;w(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function zE(r){var t=_e(r.parallelAxis);w(t,function(e){if(!!J(e)){var a=e.parallelIndex||0,n=_e(r.parallel)[a];n&&n.parallelAxisDefault&&ne(e,n.parallelAxisDefault,!1)}})}var GE=5,FE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},w(HE,function(i,o){n.getZr().on(o,this._handlers[o]=$(i,this))},this)),Vn(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){Vi(this,"_throttledDispatchExpand"),w(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(z({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Re),HE={mousedown:function(r){ku(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(ku(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>GE)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!ku(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function ku(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var WE=FE,$E=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&ne(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Se(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);w(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(le),UE=$E,YE=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Gt),ZE=YE;function Ga(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Ja(n,[0,o])),i!=null&&(i=Math.max(i,n!=null?n:0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Ja(s,[0,o]),n=i=Ja(s,[n,i]),a=0}t[0]=Ja(t[0],e),t[1]=Ja(t[1],e);var l=Nu(t,a);t[a]+=r;var u=n||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[a]=Ja(t[a],c);var v;return v=Nu(t,a),n!=null&&(v.sign!==l.sign||v.span<n)&&(t[1-a]=t[a]+l.sign*n),v=Nu(t,a),i!=null&&v.span>i&&(t[1-a]=t[a]+v.sign*i),t}function Nu(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Ja(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Ou=w,c1=Math.min,v1=Math.max,Vg=Math.floor,XE=Math.ceil,Bg=Oe,KE=Math.PI,qE=function(){function r(t,e,a){this.type="parallel",this._axesMap=Z(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;Ou(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new ZE(o,lo(u),[0,0],u.get("type"),l)),v=c.type==="category";c.onBand=v&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(!!t.contains(a,e)){var n=a.getData();Ou(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),La(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=$e(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,c=Uo(t.get("axisExpandWidth"),l),v=Uo(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>v&&v>1&&c>0&&s>0,f=t.get("axisExpandWindow"),p;if(f)p=Uo(f[1]-f[0],l),f[1]=f[0]+p;else{p=Uo(c*(v-1),l);var d=t.get("axisExpandCenter")||Vg(u/2);f=[c*d-p/2],f[1]=f[0]+p}var g=(s-p)/(u-v);g<3&&(g=0);var y=[Vg(Bg(f[0]/c,1))+1,XE(Bg(f[1]/c,1))-1],m=g/c*f[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Ou(a,function(o,s){var l=(n.axisExpandable?JE:jE)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:KE/2,vertical:0},v=[u[i].x+t.x,u[i].y+t.y],h=c[i],f=Tn();eo(f,f,h),Aa(f,f,v),this._axesLayout[o]={position:v,rotation:h,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var v=void 0;if(!u)v="normal";else{v="active";for(var h=t.getValues(s,c),f=0,p=o.length;f<p;f++){var d=l[f].getActiveState(h[f]);if(d==="inactive"){v="inactive";break}}}e(v,c)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return Zt([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return j(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),h=v[0]!=null;if(c)h&&c&&s<i*v[0]?(u="jump",l=s-i*v[2]):h&&c&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?Ga(l,n,o,"all"):u="none";else{var f=n[1]-n[0],p=o[1]*s/f;n=[v1(0,p-f/2)],n[1]=c1(o[1],n[0]+f),n[0]=n[1]-f}return{axisExpandWindow:n,behavior:u}},r}();function Uo(r,t){return c1(v1(r,t[0]),t[1])}function jE(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function JE(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}var QE=qE;function ek(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new QE(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",We).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var tk={create:ek},rk=tk,h1=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Da([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=j(e);if(a)for(var n=a.length-1;n>=0;n--)_t(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t}(le);Ze(h1,Fn);var zg=h1,Pa=!0,Ui=Math.min,Sn=Math.max,ak=Math.pow,nk=1e4,ik=6,ok=6,Gg="globalPan",sk={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},lk={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Fg={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uk=0,ck=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new te,a._uid="brushController_"+uk++,w(yk,function(n,i){this._handlers[i]=$(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||IP(a,Gg,this._uid),w(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=ne(j(Fg),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;LP(e,Gg,this._uid),w(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};w(e,function(n){a[n.panelId]=j(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=G(e,function(h){return ne(j(Fg),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new dr(n,e,u,l).add(c).update(c).remove(v).execute(),this;function l(h,f){return(h.id!=null?h.id:a+f)+"-"+h.brushType}function u(h,f){return l(h.__brushOption,f)}function c(h,f){var p=e[h];if(f!=null&&n[f]===s)i[h]=n[f];else{var d=i[h]=f!=null?(n[f].__brushOption=p,n[f]):p1(o,f1(o,p));qh(o,d)}}function v(h){n[h]!==s&&o.group.remove(n[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),sv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(wn);function f1(r,t){var e=Cl[t.brushType].createCover(r,t);return e.__brushOption=t,g1(e,t),r.group.add(e),e}function p1(r,t){var e=jh(t);return e.endCreating&&(e.endCreating(r,t),g1(t,t.__brushOption)),t}function d1(r,t){var e=t.__brushOption;jh(t).updateCoverShape(r,t,e.range,e)}function g1(r,t){var e=t.z;e==null&&(e=nk),r.traverse(function(a){a.z=e,a.z2=e})}function qh(r,t){jh(t).updateCommon(r,t),d1(r,t)}function jh(r){return Cl[r.__brushOption.brushType]}function Jh(r,t,e){var a=r._panels;if(!a)return Pa;var n,i=r._transform;return w(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function y1(r,t){var e=r._panels;if(!e)return Pa;var a=t.__brushOption.panelId;return a!=null?e[a]:Pa}function sv(r){var t=r._covers,e=t.length;return w(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function Ra(r,t){var e=G(r._covers,function(a){var n=a.__brushOption,i=j(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function vk(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=ak(n*n+i*i,.5);return o>ik}function m1(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function S1(r,t,e,a){var n=new te;return n.add(new de({name:"main",style:Qh(e),silent:!0,draggable:!0,cursor:"move",drift:ee(Hg,r,t,n,["n","s","w","e"]),ondragend:ee(Ra,t,{isEnd:!0})})),w(a,function(i){n.add(new de({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ee(Hg,r,t,n,i),ondragend:ee(Ra,t,{isEnd:!0})}))}),n}function x1(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Sn(n,ok),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],v=e[1][1],h=c-i+n/2,f=v-i+n/2,p=c-o,d=v-s,g=p+n,y=d+n;lr(r,t,"main",o,s,p,d),a.transformable&&(lr(r,t,"w",l,u,i,y),lr(r,t,"e",h,u,i,y),lr(r,t,"n",l,u,g,i),lr(r,t,"s",l,f,g,i),lr(r,t,"nw",l,u,i,i),lr(r,t,"ne",h,u,i,i),lr(r,t,"sw",l,f,i,i),lr(r,t,"se",h,f,i,i))}function lv(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Qh(e)),n.attr({silent:!a,cursor:a?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?uv(r,i[0]):fk(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?lk[s]+"-resize":null})})}function lr(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(dk(ef(r,t,[[a,n],[a+i,n+o]])))}function Qh(r){return Q({strokeNoScale:!0},r.brushStyle)}function _1(r,t,e,a){var n=[Ui(r,e),Ui(t,a)],i=[Sn(r,e),Sn(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function hk(r){return Nr(r.group)}function uv(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ol(e[t],hk(r));return a[n]}function fk(r,t){var e=[uv(r,t[0]),uv(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Hg(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=b1(t,n,i);w(a,function(u){var c=sk[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(_1(s[0][0],s[1][0],s[0][1],s[1][1])),qh(t,e),Ra(t,{isEnd:!1})}function pk(r,t,e,a){var n=t.__brushOption.range,i=b1(r,e,a);w(n,function(o){o[0]+=i[0],o[1]+=i[1]}),qh(r,t),Ra(r,{isEnd:!1})}function b1(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function ef(r,t,e){var a=y1(r,t);return a&&a!==Pa?a.clipPath(e,r._transform):j(e)}function dk(r){var t=Ui(r[0][0],r[1][0]),e=Ui(r[0][1],r[1][1]),a=Sn(r[0][0],r[1][0]),n=Sn(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function gk(r,t,e){if(!(!r._brushType||mk(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=Jh(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Pa||s.panelId===i.panelId)&&Cl[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function cv(r){var t=r.event;t.preventDefault&&t.preventDefault()}function vv(r,t,e){return r.childOfName("main").contain(t,e)}function w1(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),vk(r)||n){if(i&&!n){o.brushMode==="single"&&sv(r);var l=j(o);l.brushType=Wg(l.brushType,i),l.panelId=i===Pa?null:i.panelId,n=r._creatingCover=f1(r,l),r._covers.push(n)}if(n){var u=Cl[Wg(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(ef(r,n,r._track)),a&&(p1(r,n),u.updateCommon(r,n)),d1(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Jh(r,t,e)&&sv(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Wg(r,t){return r==="auto"?t.defaultBrushType:r}var yk={mousedown:function(r){if(this._dragging)$g(this,r);else if(!r.target||!r.target.draggable){cv(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Jh(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(gk(this,r,a),this._dragging){cv(r);var n=w1(this,r,a,!1);n&&Ra(this,n)}},mouseup:function(r){$g(this,r)}};function $g(r,t){if(r._dragging){cv(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=w1(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ra(r,i)}}function mk(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Cl={lineX:Ug(0),lineY:Ug(1),rect:{createCover:function(r,t){function e(a){return a}return S1({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=m1(r);return _1(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){x1(r,t,e,a)},updateCommon:lv,contain:vv},polygon:{createCover:function(r,t){var e=new te;return e.add(new mt({name:"main",style:Qh(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new At({name:"main",draggable:!0,drift:ee(pk,r,t),ondragend:ee(Ra,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:ef(r,t,e)})},updateCommon:lv,contain:vv}};function Ug(r){return{createCover:function(t,e){return S1({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=m1(t),a=Ui(e[0][r],e[1][r]),n=Sn(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=y1(t,e);if(o!==Pa&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),x1(t,e,l,n)},updateCommon:lv,contain:vv}}var tf=ck;function A1(r){return r=rf(r),function(t){return Zv(t,r)}}function T1(r,t){return r=rf(r),function(e){var a=t!=null?t:e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function C1(r,t,e){var a=rf(r);return function(n,i){return a.contain(i[0],i[1])&&!wl(n,t,e)}}function rf(r){return we.create(r)}var Sk=["axisLine","axisTickLabel","axisName"],xk=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new tf(a.getZr())).on("brush",$(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!_k(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new te,this.group.add(this._axisGroup),!!e.get("show")){var s=wk(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,v=e.axis.dim,h=l.getAxisLayout(v),f=z({strokeContainThreshold:c},h),p=new yr(e,f);w(Sk,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,e,s,c,n),io(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),v=we.create({x:l[0],y:-o/2,width:u,height:o});v.x-=c,v.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:A1(v),isTargetByCursor:C1(v,s,i),getLinearBrushOtherExtent:T1(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(bk(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Re);function _k(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function bk(r){var t=r.axis;return G(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function wk(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var Ak=xk,Tk={type:"axisAreaSelect",event:"axisAreaSelected"};function Ck(r){r.registerAction(Tk,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var Dk={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function D1(r){r.registerComponentView(WE),r.registerComponentModel(UE),r.registerCoordinateSystem("parallel",rk),r.registerPreprocessor(VE),r.registerComponentModel(zg),r.registerComponentView(Ak),mn(r,"parallel",zg,Dk),Ck(r)}function Mk(r){ie(D1),r.registerChartView(IE),r.registerSeriesModel(EE),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,OE)}var Ik=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),Lk=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ik},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){fr(this)},t.prototype.downplay=function(){pr(this)},t}(Ie),Pk=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,c=l.height,v=e.getData(),h=e.getData("edge"),f=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new Lk,g=q(d);g.dataIndex=p.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),x=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),A=_.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),D=C.get("localX"),M=C.get("localY"),I=p.getLayout(),L,R,P,k,O,N,V,F;d.shape.extent=Math.max(1,I.dy),d.shape.orient=f,f==="vertical"?(L=(b!=null?b*u:x.x)+I.sy,R=(A!=null?A*c:x.y)+x.dy,P=(D!=null?D*u:T.x)+I.ty,k=M!=null?M*c:T.y,O=L,N=R*(1-S)+k*S,V=P,F=R*S+k*(1-S)):(L=(b!=null?b*u:x.x)+x.dx,R=(A!=null?A*c:x.y)+I.sy,P=D!=null?D*u:T.x,k=(M!=null?M*c:T.y)+I.ty,O=L*(1-S)+P*S,N=R,V=L*S+P*(1-S),F=k),d.setShape({x1:L,y1:R,x2:P,y2:k,cpx1:O,cpy1:N,cpx2:V,cpy2:F}),d.useStyle(m.getItemStyle()),Yg(d.style,f,p);var W=""+y.get("value"),X=qe(y,"edgeLabel");at(d,X,{labelFetcher:{getFormattedLabel:function(se,Ve,St,fe,oe,Le){return e.getFormattedLabel(se,Ve,"edge",fe,An(oe,X.normal&&X.normal.get("formatter"),W),Le)}},labelDataIndex:p.dataIndex,defaultText:W}),d.setTextConfig({position:"inside"});var re=y.getModel("emphasis");rt(d,y,"lineStyle",function(se){var Ve=se.getItemStyle();return Yg(Ve,f,p),Ve}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var ae=re.get("focus");Ne(d,ae==="adjacency"?p.getAdjacentDataIndices():ae==="trajectory"?p.getTrajectoryDataIndices():ae,re.get("blurScope"),re.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,_=new de({shape:{x:y!=null?y*u:d.x,y:m!=null?m*c:d.y,width:d.dx,height:d.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});at(_,qe(g),{labelFetcher:{getFormattedLabel:function(A,T){return e.getFormattedLabel(A,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),rt(_,g),s.add(_),v.setItemGraphicEl(p.dataIndex,_),q(_).dataType="node";var b=S.get("focus");Ne(_,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,S.get("blurScope"),S.get("disabled"))}),v.eachItemGraphicEl(function(p,d){var g=v.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:v.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(Rk(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(be);function Yg(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");U(a)&&U(n)&&(r.fill=new Ji(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function Rk(r,t,e){var a=new de({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Me(a,{shape:{width:r.width+20}},t,e),a}var Ek=Pk,kk=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new xe(o[l],this,a));var u=l1(i,n,this,!0,c);return u.data;function c(v,h){v.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(f.parentModel=m)}return f}),h.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,S=d.levelModels[m];S&&(f.parentModel=S)}return f})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(f){return isNaN(f)||f==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return je("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(e),v=c.getLayout().value,h=this.getDataParams(e,n).data.name;return je("nameValue",{name:h!=null?h+"":null,value:v,noValue:i(v)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(De),Nk=kk;function Ok(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=Vk(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,c=l.edges;zk(u);var v=Se(u,function(d){return d.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),f=e.get("orient"),p=e.get("nodeAlign");Bk(u,c,a,n,o,s,h,f,p)})}function Vk(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Bk(r,t,e,a,n,i,o,s,l){Gk(r,t,e,n,i,s,l),$k(r,t,i,n,a,o,s),Qk(r,s)}function zk(r){w(r,function(t){var e=Br(t.outEdges,$s),a=Br(t.inEdges,$s),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function Gk(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],c=[],v=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>f&&(f=g.depth),d.setLayout({depth:y?g.depth:v},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var m=0;m<d.outEdges.length;m++){var S=d.outEdges[m],x=t.indexOf(S);s[x]=0;var _=S.node2,b=r.indexOf(_);--l[b]===0&&c.indexOf(_)<0&&c.push(_)}}++v,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var A=f>v-1?f:v-1;o&&o!=="left"&&Fk(r,o,i,A);var T=i==="vertical"?(n-e)/A:(a-e)/A;Wk(r,T,i)}function M1(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function Fk(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}w(r,function(v){M1(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else t==="justify"&&Hk(r,a)}function Hk(r,t){w(r,function(e){!M1(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function Wk(r,t,e){w(r,function(a){var n=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function $k(r,t,e,a,n,i,o){var s=Uk(r,o);Yk(s,t,e,a,n,o),Vu(s,n,e,a,o);for(var l=1;i>0;i--)l*=.99,Zk(s,l,o),Vu(s,n,e,a,o),Jk(s,l,o),Vu(s,n,e,a,o)}function Uk(r,t){var e=[],a=t==="vertical"?"y":"x",n=bc(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),w(n.keys,function(i){e.push(n.buckets.get(i))}),e}function Yk(r,t,e,a,n,i){var o=1/0;w(r,function(s){var l=s.length,u=0;w(s,function(v){u+=v.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;c<o&&(o=c)}),w(r,function(s){w(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),w(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Vu(r,t,e,a,n){var i=n==="vertical"?"x":"y";w(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,v=o.length,h=n==="vertical"?"dx":"dy",f=0;f<v;f++)l=o[f],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[h]+t;var p=n==="vertical"?a:e;if(u=c-t-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var f=v-2;f>=0;--f)l=o[f],u=l.getLayout()[i]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function Zk(r,t,e){w(r.slice().reverse(),function(a){w(a,function(n){if(n.outEdges.length){var i=Br(n.outEdges,Xk,e)/Br(n.outEdges,$s);if(isNaN(i)){var o=n.outEdges.length;i=o?Br(n.outEdges,Kk,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Wr(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Wr(n,e))*t;n.setLayout({y:l},!0)}}})})}function Xk(r,t){return Wr(r.node2,t)*r.getValue()}function Kk(r,t){return Wr(r.node2,t)}function qk(r,t){return Wr(r.node1,t)*r.getValue()}function jk(r,t){return Wr(r.node1,t)}function Wr(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function $s(r){return r.getValue()}function Br(r,t,e){for(var a=0,n=r.length,i=-1;++i<n;){var o=+t(r[i],e);isNaN(o)||(a+=o)}return a}function Jk(r,t,e){w(r,function(a){w(a,function(n){if(n.inEdges.length){var i=Br(n.inEdges,qk,e)/Br(n.inEdges,$s);if(isNaN(i)){var o=n.inEdges.length;i=o?Br(n.inEdges,jk,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Wr(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Wr(n,e))*t;n.setLayout({y:l},!0)}}})})}function Qk(r,t){var e=t==="vertical"?"x":"y";w(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[e]-i.node2.getLayout()[e]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[e]-i.node1.getLayout()[e]})}),w(r,function(a){var n=0,i=0;w(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),w(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function eN(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),a=e.nodes,n=e.edges;if(a.length){var i=1/0,o=-1/0;w(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),w(a,function(s){var l=new tt({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&w(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function tN(r){r.registerChartView(Ek),r.registerSeriesModel(Nk),r.registerLayout(Ok),r.registerVisual(eN),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var I1=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,v=this._baseAxisDim=u[c],h=u[1-c],f=[n,i],p=f[c].get("type"),d=f[1-c].get("type"),g=t.data;if(g&&l){var y=[];w(g,function(x,_){var b;B(x)?(b=x.slice(),x.unshift(_)):B(x.value)?(b=z({},x),b.value=b.value.slice(),x.value.unshift(_)):b=x,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,S=[{name:v,type:Ns(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ns(d),dimsDef:m.slice()}];return Hn(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:ee(pS,S,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),L1=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(De);Ze(L1,I1,!0);var rN=L1,aN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),v=Zg(c,i,u,l,!0);i.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,c){var v=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(v);return}var h=i.getItemLayout(u);v?(Xt(v),P1(h,v,i,u)):v=Zg(h,i,u,l),o.add(v),i.setItemGraphicEl(u,v)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(be),nN=function(){function r(){}return r}(),iN=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new nN},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Ie);function Zg(r,t,e,a,n){var i=r.ends,o=new iN({shape:{points:n?oN(i,a,r):i}});return P1(r,o,t,e,n),o}function P1(r,t,e,a,n){var i=e.hostModel,o=ka[n?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");rt(t,s),Ne(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function oN(r,t,e){return G(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var sN=aN,Di=w;function lN(r){var t=uN(r);Di(t,function(e){var a=e.seriesModels;!a.length||(cN(e),Di(a,function(n,i){vN(n,e.boxOffsetList[i],e.boxWidthList[i])}))})}function uN(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=ce(e,n);i<0&&(i=e.length,e[i]=n,t[i]={axis:n,seriesModels:[]}),t[i].seriesModels.push(a)}),t}function cN(r){var t=r.axis,e=r.seriesModels,a=e.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Di(e,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Di(e,function(p){var d=p.get("boxWidth");B(d)||(d=[d,d]),o.push([H(d[0],s)||0,H(d[1],s)||0])});var c=s*.8-2,v=c/a*.3,h=(c-v*(a-1))/a,f=h/2-c/2;Di(e,function(p,d){i.push(f),f+=v+h,n.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function vN(r,t,e){var a=r.coordinateSystem,n=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var v=0;v<n.count();v++){var h=n.get(u,v),f=S(h,c[2],v),p=S(h,c[0],v),d=S(h,c[1],v),g=S(h,c[3],v),y=S(h,c[4],v),m=[];x(m,d,!1),x(m,g,!0),m.push(p,d,y,g),_(m,p),_(m,y),_(m,f),n.setItemLayout(v,{initBaseline:f[s],ends:m})}function S(b,A,T){var C=n.get(A,T),D=[];D[o]=b,D[s]=C;var M;return isNaN(b)||isNaN(C)?M=[NaN,NaN]:(M=a.dataToPoint(D),M[o]+=t),M}function x(b,A,T){var C=A.slice(),D=A.slice();C[o]+=i,D[o]-=i,T?b.push(C,D):b.push(D,C)}function _(b,A){var T=A.slice(),C=A.slice();T[o]-=i,C[o]+=i,b.push(T,C)}}function hN(r,t){t=t||{};for(var e=[],a=[],n=t.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=_t(r[o].slice()),l=as(s,.25),u=as(s,.5),c=as(s,.75),v=s[0],h=s[s.length-1],f=(n==null?1.5:n)*(c-l),p=i?v:Math.max(v,l-f),d=i?h:Math.min(h,c+f),g=t.itemNameFormatter,y=K(g)?g({value:o}):U(g)?g.replace("{value}",o+""):o+"";e.push([y,p,l,u,c,d]);for(var m=0;m<s.length;m++){var S=s[m];if(S<p||S>d){var x=[y,S];a.push(x)}}}return{boxData:e,outliers:a}}var fN={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==ut){var a="";ye(a)}var n=hN(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function pN(r){r.registerSeriesModel(rN),r.registerChartView(sN),r.registerLayout(lN),r.registerTransform(fN)}var dN=["itemStyle","borderColor"],gN=["itemStyle","borderColor0"],yN=["itemStyle","borderColorDoji"],mN=["itemStyle","color"],SN=["itemStyle","color0"];function af(r,t){return t.get(r>0?mN:SN)}function nf(r,t){return t.get(r===0?yN:r>0?dN:gN)}var xN={seriesType:"candlestick",plan:On(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=af(s,o),l.stroke=nf(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");z(u,l)}}}}}},_N=xN,bN=["color","borderColor"],wN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Zr(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var v=a.getItemLayout(c);if(s&&Xg(u,v))return;var h=Bu(v,c,!0);Me(h,{shape:{points:v.ends}},e,c),zu(h,a,c,o),i.add(h),a.setItemGraphicEl(c,h)}}).update(function(c,v){var h=n.getItemGraphicEl(v);if(!a.hasValue(c)){i.remove(h);return}var f=a.getItemLayout(c);if(s&&Xg(u,f)){i.remove(h);return}h?(he(h,{shape:{points:f.ends}},e,c),Xt(h)):h=Bu(f),zu(h,a,c,o),i.add(h),a.setItemGraphicEl(c,h)}).remove(function(c){var v=n.getItemGraphicEl(c);v&&i.remove(v)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),Kg(e,this.group);var a=e.get("clip",!0)?vo(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=Bu(s);zu(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){Kg(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(be),AN=function(){function r(){}return r}(),TN=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new AN},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Ie);function Bu(r,t,e){var a=r.ends;return new TN({shape:{points:e?CN(a,r):a},z2:100})}function Xg(r,t){for(var e=!0,a=0;a<t.ends.length;a++)if(r.contain(t.ends[a][0],t.ends[a][1])){e=!1;break}return e}function zu(r,t,e,a){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,rt(r,n);var i=t.getItemLayout(e).sign;w(r.states,function(s,l){var u=n.getModel(l),c=af(i,u),v=nf(i,u)||c,h=s.style||(s.style={});c&&(h.fill=c),v&&(h.stroke=v)});var o=n.getModel("emphasis");Ne(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function CN(r,t){return G(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var DN=function(){function r(){}return r}(),Gu=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new DN},t.prototype.buildPath=function(e,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}(Ie);function Kg(r,t,e,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new Gu({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Gu({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Gu({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Fu(1,o,r),Fu(-1,s,r),Fu(0,l,r),a&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Fu(r,t,e,a){var n=nf(r,e)||af(r,e),i=e.getModel("itemStyle").getItemStyle(bN);t.useStyle(i),t.style.fill=null,t.style.stroke=n}var MN=wN,R1=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,n){var i=a.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(De);Ze(R1,I1,!0);var IN=R1;function LN(r){!r||!B(r.series)||w(r.series,function(t){J(t)&&t.type==="k"&&(t.type="candlestick")})}var PN={seriesType:"candlestick",plan:On(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=RN(r,e),n=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=G(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],v=l[2],h=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:f};function f(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var S=m.get(s,y),x=m.get(u,y),_=m.get(c,y),b=m.get(v,y),A=m.get(h,y),T=Math.min(x,_),C=Math.max(x,_),D=O(T,S),M=O(C,S),I=O(b,S),L=O(A,S),R=[];N(R,M,0),N(R,D,1),R.push(F(L),F(M),F(I),F(D));var P=g.getItemModel(y),k=!!P.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:qg(m,y,x,_,c,k),initBaseline:x>_?M[i]:D[i],ends:R,brushRect:V(b,A,S)})}function O(W,X){var re=[];return re[n]=X,re[i]=W,isNaN(X)||isNaN(W)?[NaN,NaN]:t.dataToPoint(re)}function N(W,X,re){var ae=X.slice(),se=X.slice();ae[n]=os(ae[n]+a/2,1,!1),se[n]=os(se[n]-a/2,1,!0),re?W.push(ae,se):W.push(se,ae)}function V(W,X,re){var ae=O(W,re),se=O(X,re);return ae[n]-=a/2,se[n]-=a/2,{x:ae[0],y:ae[1],width:a,height:se[1]-ae[1]}}function F(W){return W[n]=os(W[n],1),W}}function p(d,g){for(var y=er(d.count*4),m=0,S,x=[],_=[],b,A=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var C=A.get(s,b),D=A.get(u,b),M=A.get(c,b),I=A.get(v,b),L=A.get(h,b);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=qg(A,b,D,M,c,T),x[n]=C,x[i]=I,S=t.dataToPoint(x,null,_),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,x[i]=L,S=t.dataToPoint(x,null,_),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function qg(r,t,e,a,n,i){var o;return e>a?o=-1:e<a?o=1:o=i?0:t>0?r.get(n,t-1)<=a?1:-1:1,o}function RN(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=H(pe(r.get("barMaxWidth"),n),n),o=H(pe(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?H(s,n):Math.max(Math.min(n/2,i),o)}var EN=PN;function kN(r){r.registerChartView(MN),r.registerSeriesModel(IN),r.registerPreprocessor(LN),r.registerVisual(_N),r.registerLayout(EN)}function jg(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var NN=function(r){E(t,r);function t(e,a){var n=r.call(this)||this,i=new uo(e,a),o=new te;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=ze(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}jg(o,e)},t.prototype.updateEffectAnimation=function(e){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}jg(n,e)},t.prototype.highlight=function(){fr(this)},t.prototype.downplay=function(){pr(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var n=this,i=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=Bn(e.getItemVisual(a,"symbolSize")),c=e.getItemVisual(a,"style"),v=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var f=Va(e.getItemVisual(a,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=e.getItemVisual(a,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=a/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=v,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&n.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=d,Ne(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(te),ON=NN,VN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new co(ON)},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,a,n){var i=e.getData();this.group.dirty();var o=ho("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=xw(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(be),BN=VN,zN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return ir(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(De),GN=zN;function FN(r){r.registerChartView(BN),r.registerSeriesModel(GN),r.registerLayout(ho("effectScatter"))}var HN=function(r){E(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new Xh(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");B(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=ze(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(!!i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),v=Qe(a.get("delay"),function(f){return f/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;K(v)?h=v(n):h=v,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return va(e.__p1,e.__cp1)+va(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=y0,c=_w;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=e.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),h=e.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(h,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=va(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*va(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t}(te),E1=HN,WN=function(r){E(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new mt({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};he(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),c=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,Ne(this,l,u,c)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.setShape("points",e.getItemLayout(a))},t}(te),k1=WN,$N=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new k1(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=va(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(!!i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),v=n[l],h=n[l+1];e.x=v[0]*(1-c)+c*h[0],e.y=v[1]*(1-c)+c*h[1];var f=e.__t<1?h[0]-v[0]:v[0]-h[0],p=e.__t<1?h[1]-v[1]:v[1]-h[1];e.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(E1),UN=$N,YN=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),ZN=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YN},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],v=n[o++],h=n[o++];if(e.moveTo(u,c),i>0){var f=(u+v)/2-(c-h)*i,p=(c+h)/2-(v-u)*i;e.quadraticCurveTo(f,p,v,h)}else e.lineTo(v,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var v=i[u++],h=i[u++],f=1;f<c;f++){var p=i[u++],d=i[u++];if(zf(v,h,p,d,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(v+p)/2-(h-d)*o,y=(h+d)/2-(p-v)*o;if(bw(v,h,g,y,p,d,s,e,a))return l}else if(zf(v,h,p,d,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],v=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(v,o),l=Math.max(v,l)}e=this._rect=new we(i,o,s,l)}return e},t}(Ie),XN=function(){function r(){this.group=new te}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ZN({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=q(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),KN=XN,qN={seriesType:"lines",plan:On(),reset:function(r){var t=r.coordinateSystem;if(!!t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,h=[],c=n.start;c<n.end;c++){var f=r.getLineCoords(c,o);e&&(s[v++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(o[p],!1,h),s[v++]=h[0],s[v++]=h[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var d=i.getItemModel(c),f=r.getLineCoords(c,o),g=[];if(e)for(var y=0;y<f;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(c,g)}}}}}},N1=qN,jN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var v=e.get("clip",!0)&&vo(e.coordinateSystem,!1,e);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=N1.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new KN:new Kh(o?i?UN:k1:i?E1:Xh),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(be),JN=jN,QN=typeof Uint32Array=="undefined"?Array:Uint32Array,eO=typeof Float64Array=="undefined"?Array:Float64Array;function Jg(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=G(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Pv([n,e[0],e[1]])}))}var tO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Jg(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Jg(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Mi(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Mi(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),me(e[0])){for(var n=e.length,i=new QN(n),o=new eO(n),s=0,l=0,u=0,c=0;c<n;){u++;var v=e[c++];i[l++]=s+a,i[l++]=v;for(var h=0;h<v;h++){var f=e[c++],p=e[c++];o[s++]=f,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new lt(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),je("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(De),rO=tO;function Yo(r){return r instanceof Array||(r=[r,r]),r}var aO={seriesType:"lines",reset:function(r){var t=Yo(r.get("symbol")),e=Yo(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Yo(s.getShallow("symbol",!0)),u=Yo(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}},nO=aO;function iO(r){r.registerChartView(JN),r.registerSeriesModel(rO),r.registerLayout(N1),r.registerVisual(nO)}var oO=256,sO=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ss.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,v=this.canvas,h=v.getContext("2d"),f=t.length;v.width=e,v.height=a;for(var p=0;p<f;++p){var d=t[p],g=d[0],y=d[1],m=d[2],S=n(m);h.globalAlpha=S,h.drawImage(s,g-c,y-c)}if(!v.width||!v.height)return v;for(var x=h.getImageData(0,0,v.width,v.height),_=x.data,b=0,A=_.length,T=this.minOpacity,C=this.maxOpacity,D=C-T;b<A;){var S=_[b+3]/256,M=Math.floor(S*(oO-1))*4;if(S>0){var I=o(S)?l:u;S>0&&(S=S*D+T),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*S*256}else b+=4}return h.putImageData(x,0,0),v},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ss.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}(),lO=sO;function uO(r,t,e){var a=r[1]-r[0];t=G(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function cO(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function Qg(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var vO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Qg(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(Qg(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Zr(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,a,n,i,o){var s=e.coordinateSystem,l=Ba(s,"cartesian2d"),u,c,v,h;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,c=p.getBandWidth()+.5,v=f.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),_=qe(e),b=e.getModel("emphasis"),A=b.get("focus"),T=b.get("blurScope"),C=b.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;M<i;M++){var I=void 0,L=g.getItemVisual(M,"style");if(l){var R=g.get(D[0],M),P=g.get(D[1],M);if(isNaN(g.get(D[2],M))||isNaN(R)||isNaN(P)||R<v[0]||R>v[1]||P<h[0]||P>h[1])continue;var k=s.dataToPoint([R,P]);I=new de({shape:{x:k[0]-u/2,y:k[1]-c/2,width:u,height:c},style:L})}else{if(isNaN(g.get(D[1],M)))continue;I=new de({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:L})}if(g.hasItemOption){var O=g.getItemModel(M),N=O.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=O.getModel(["blur","itemStyle"]).getItemStyle(),S=O.getModel(["select","itemStyle"]).getItemStyle(),x=O.get(["itemStyle","borderRadius"]),A=N.get("focus"),T=N.get("blurScope"),C=N.get("disabled"),_=qe(O)}I.shape.r=x;var V=e.getRawValue(M),F="-";V&&V[2]!=null&&(F=V[2]+""),at(I,_,{labelFetcher:e,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:F}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=S,Ne(I,A,T,C),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new lO;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=e.getViewRect().clone(),v=e.getRoamTransform();c.applyTransform(v);var h=Math.max(c.x,0),f=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),d=Math.min(c.height+c.y,i.getHeight()),g=p-h,y=d-f,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(A,T,C){var D=e.dataToPoint([A,T]);return D[0]-=h,D[1]-=f,D.push(C),D}),x=n.getExtent(),_=n.type==="visualMap.continuous"?cO(x,n.option.range):uO(x,n.getPieceList(),n.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new Dt({style:{width:g,height:y,x:h,y:f,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(be),hO=vO,fO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return ir(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Nn.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(De),pO=fO;function dO(r){r.registerChartView(hO),r.registerSeriesModel(pO)}var gO=["itemStyle","borderWidth"],ey=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Hu=new Yr,yO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),v=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:c,valueDim:ey[+c],categoryDim:ey[1-+c]};o.diff(s).add(function(p){if(!!o.hasValue(p)){var d=ry(o,p),g=ty(o,p,d,h),y=ay(o,h,g);o.setItemGraphicEl(p,y),i.add(y),iy(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=ry(o,p),m=ty(o,p,y,h),S=F1(o,m);g&&S!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?AO(g,h,m):g=ay(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),iy(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&ny(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var f=e.get("clip",!0)?vo(e.coordinateSystem,!1,e):null;return f?i.setClipPath(f):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){ny(i,q(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(be);function ty(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),h={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:v?e:null,hoverScale:v&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};mO(e,i,n,a,h),SO(r,t,n,i,o,h.boundingLength,h.pxSign,c,a,h),xO(e,h.symbolScale,u,a,h);var f=h.symbolSize,p=Va(e.get("symbolOffset"),f);return _O(e,f,n,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function mO(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(B(o)){var v=[Wu(s,o[0])-l,Wu(s,o[1])-l];v[1]<v[0]&&v.reverse(),c=v[u]}else o!=null?c=Wu(s,o)-l:t?c=a.coordSysExtent[i.index][u]-l:c=e[i.wh];n.boundingLength=c,t&&(n.repeatCutLength=e[i.wh]);var h=i.xy==="x",f=s.inverse;n.pxSign=h&&!f||!h&&f?c>=0?1:-1:c>0?1:-1}function Wu(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function SO(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,v=l.categoryDim,h=Math.abs(e[v.wh]),f=r.getItemVisual(t,"symbolSize"),p;B(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[v.index]=H(p[v.index],h),p[c.index]=H(p[c.index],a?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[c.index]*=(l.isHorizontal?-1:1)*o}function xO(r,t,e,a,n){var i=r.get(gO)||0;i&&(Hu.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Hu.updateTransform(),i/=Hu.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function _O(r,t,e,a,n,i,o,s,l,u,c,v){var h=c.categoryDim,f=c.valueDim,p=v.pxSign,d=Math.max(t[f.index]+s,0),g=d;if(a){var y=Math.abs(l),m=Qe(r.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var x=H(m,t[f.index]),_=Math.max(d+x*2,0),b=S?0:x*2,A=Nv(a),T=A?a:oy((y+b)/_),C=y-T*d;x=C/2/(S?T:Math.max(T-1,1)),_=d+x*2,b=S?0:x*2,!A&&a!=="fixed"&&(T=u?oy((Math.abs(u)+b)/_):0),g=T*_-b,v.repeatTimes=T,v.symbolMargin=x}var D=p*(g/2),M=v.pathPosition=[];M[h.index]=e[h.wh]/2,M[f.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=v.bundlePosition=[];I[h.index]=e[h.xy],I[f.index]=e[f.xy];var L=v.barRectShape=z({},e);L[f.wh]=p*Math.max(Math.abs(e[f.wh]),Math.abs(M[f.index]+D)),L[h.wh]=e[h.wh];var R=v.clipShape={};R[h.xy]=-e[h.xy],R[h.wh]=c.ecSize[h.wh],R[f.xy]=0,R[f.wh]=e[f.wh]}function O1(r){var t=r.symbolPatternSize,e=ze(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function V1(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,v=i[t.valueDim.index]+o+e.symbolMargin*2;for(of(r,function(d){d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,c<u?vn(d,null,p(c),e,a):vn(d,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(d)}),c++});c<u;c++){var h=O1(e);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,n.add(h);var f=p(c);vn(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},e,a)}function p(d){var g=s.slice(),y=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function B1(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?vn(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=O1(e),n.add(i),vn(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function z1(r,t,e){var a=z({},t.barRectShape),n=r.__pictorialBarRect;n?vn(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new de({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function G1(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=z({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)he(n,{shape:i},s,l);else{i[o.wh]=0,n=new de({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],ka[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function ry(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=bO,e.isAnimationEnabled=wO,e}function bO(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function wO(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ay(r,t,e,a){var n=new te,i=new te;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?V1(n,t,e):B1(n,t,e),z1(n,e,a),G1(n,t,e,a),n.__pictorialShapeStr=F1(r,e),n.__pictorialSymbolMeta=e,n}function AO(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;he(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?V1(r,t,e,!0):B1(r,t,e,!0),z1(r,e,!0),G1(r,t,e,!0)}function ny(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];of(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),w(i,function(o){Gr(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function F1(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function of(r,t,e){w(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function vn(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&ka[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function iy(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),v=i.get("blurScope"),h=i.get("scale");of(r,function(d){if(d instanceof Dt){var g=d.style;d.useStyle(z({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var f=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,at(p,qe(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:yn(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:f}),Ne(r,c,v,i.get("disabled"))}function oy(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var TO=yO,CO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Xr(zs.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(zs),DO=CO;function MO(r){r.registerChartView(TO),r.registerSeriesModel(DO),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ee(Vx,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Bx("pictorialBar"))}var IO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,v=u.boundaryGap;s.x=0,s.y=c.y+v[0];function h(g){return g.name}var f=new dr(this._layersSeries||[],l,h,h),p=[];f.add($(d,this,"add")).update($(d,this,"update")).remove($(d,this,"remove")).execute();function d(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var x=[],_=[],b,A=l[y].indices,T=0;T<A.length;T++){var C=i.getItemLayout(A[T]),D=C.x,M=C.y0,I=C.y;x.push(D,M),_.push(D,M+I),b=i.getItemVisual(A[T],"style")}var L,R=i.getItemLayout(A[0]),P=e.getModel("label"),k=P.get("margin"),O=e.getModel("emphasis");if(g==="add"){var N=p[y]=new te;L=new f_({shape:{points:x,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(L),s.add(N),e.isAnimationEnabled()&&L.setClipPath(LO(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var N=S[m];L=N.childAt(0),s.add(N),p[y]=N,he(L,{shape:{points:x,stackedOnPoints:_}},e),Xt(L)}at(L,qe(e),{labelDataIndex:A[T-1],defaultText:i.getName(A[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var V=L.getTextContent();V&&(V.x=R.x-k,V.y=R.y0+R.y/2),L.useStyle(b),i.setItemGraphicEl(y,L),rt(L,e),Ne(L,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(be);function LO(r,t,e){var a=new de({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Me(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var PO=IO,$u=2,RO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new po($(this.getData,this),$(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,n={},i=bc(e,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,f){o.push({name:f,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var v=o[l].dataList[c][0]+"";n[v]=l}for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,e[a]=[v,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var n=this.getReferringComponents("singleAxis",We).models[0],i=n.get("type"),o=Se(e.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Z(),c=0,v=0;v<s.length;++v)l.push(s[v][$u]),u.get(s[v][$u])||(u.set(s[v][$u],c),c++);var h=zn(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ns(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new lt(h,this);return f.initData(s),f},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),n=[],i=0;i<a;++i)n[i]=i;var o=e.mapDimension("single"),s=bc(n,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(v,h){return e.get(o,v)-e.get(o,h)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,n){B(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var v=Number.MAX_VALUE,h=-1,f=o[c].indices.length,p=0;p<f;++p){var d=i.get(e[0],o[c].indices[p]),g=Math.abs(d-a);g<=v&&(u=d,v=g,h=o[c].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return je("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(De),EO=RO;function kO(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],o.height),s[1]=H(s[1],o.height);var u=o.height-s[0]-s[1];sy(a,e,u)}else{s[0]=H(s[0],o.width),s[1]=H(s[1],o.width);var c=o.width-s[0]-s[1];sy(a,e,c)}a.setLayout("layoutInfo",i)})}function sy(r,t,e){if(!!r.count())for(var a=t.coordinateSystem,n=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=G(n,function(g){return G(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=NO(s),u=l.y0,c=e/l.max,v=n.length,h=n[0].indices.length,f,p=0;p<h;++p){f=u[p]*c,r.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*c});for(var d=1;d<v;++d)f+=s[d-1][p][1]*c,r.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:f,y:s[d][p][1]*c})}}function NO(r){for(var t=r.length,e=r[0].length,a=[],n=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<e;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<e;++c){var v=a[c]+n[c];v>i&&(i=v)}return{y0:n,max:i}}function OO(r){r.registerChartView(PO),r.registerSeriesModel(EO),r.registerLayout(kO),r.registerProcessor(fo("themeRiver"))}var VO=2,BO=4,zO=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=VO,o.textConfig={inside:!0},q(o).seriesIndex=a.seriesIndex;var s=new ue({z2:BO,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;q(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),v=z({},c);v.label=null;var h=a.getVisual("style");h.lineJoin="bevel";var f=a.getVisual("decal");f&&(h.decal=gn(f,o));var p=da(l.getModel("itemStyle"),v,!0);z(v,p),w(gt,function(m){var S=s.ensureState(m),x=l.getModel([m,"itemStyle"]);S.style=x.getItemStyle();var _=da(x,v);_&&(S.shape=_)}),e?(s.setShape(v),s.shape.r=c.r0,Me(s,{shape:{r:c.r}},n,a.dataIndex)):(he(s,{shape:v},n),Xt(s)),s.useStyle(h),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Mi(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ne(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),v=this,h=v.getTextContent(),f=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,w(Pi,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),S=y==="normal",x=S?h:h.ensureState(y),_=e.getFormattedLabel(f,y);S&&(_=_||a.node.name),x.style=Ae(m,{},null,y!=="normal",!0),_&&(x.style.text=_);var b=m.get("show");b!=null&&!S&&(x.ignore=!b);var A=g(m,"position"),T=S?v:v.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:A!=="outside"};var D,M=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),R=Math.PI*.5,P=Math.PI*1.5,k=ur(L==="tangential"?Math.PI/2-l:l),O=k>R&&!fn(k-R)&&k<P;A==="outside"?(D=o.r+M,I=O?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+M,I=O?"right":"left"):I==="right"&&(D=o.r-M,I=O?"left":"right"),x.style.align=I,x.style.verticalAlign=g(m,"verticalAlign")||"middle",x.x=D*u+o.cx,x.y=D*c+o.cy;var N=0;L==="radial"?N=ur(-l)+(O?Math.PI:0):L==="tangential"?N=ur(Math.PI/2-l)+(O?Math.PI:0):me(L)&&(N=L*Math.PI/180),x.rotation=ur(N)});function g(y,m){var S=y.get(m);return S==null?i.get(m):S}h.dirtyStyle()},t}(wt),ly=zO,hv="sunburstRootToNode",uy="sunburstHighlight",GO="sunburstUnhighlight";function FO(r){r.registerAction({type:hv,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=Fi(t,[hv],n);if(o){var s=n.getViewRoot();s&&(t.direction=Hh(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:uy,update:"none"},function(t,e,a){t=z({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=Fi(t,[uy],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(z(t,{type:"highlight"}))}),r.registerAction({type:GO,update:"updateView"},function(t,e,a){t=z({},t),a.dispatchAction(z(t,{type:"downplay"}))})}var HO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,v=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var f=this._oldChildren||[];p(h,f),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,S){if(m.length===0&&S.length===0)return;new dr(S,m,x,x).add(_).update(_).remove(ee(_,null)).execute();function x(b){return b.getId()}function _(b,A){var T=b==null?null:m[b],C=A==null?null:S[A];d(T,C)}}function d(m,S){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,e,a,n),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var x=new ly(m,e,a,n);c.add(x),s.setItemGraphicEl(m.dataIndex,x)}}}function g(m){!m||m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new ly(m,e,a,n),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(S.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Ds(u,c)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:hv,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(be),WO=HO,$O=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};H1(n);var i=this._levelModels=G(e.levels||[],function(l){return new xe(l,this,a)},this),o=Fh.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var v=o.getNodeByDataIndex(c),h=i[v.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Al(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){Y_(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(De);function H1(r){var t=0;w(r.children,function(a){H1(a);var n=a.value;B(n)&&(n=n[0]),t+=n});var e=r.value;B(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),B(r.value)?r.value[0]=e:r.value=e}var UO=$O,cy=Math.PI/180;function YO(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");B(i)||(i=[0,i]),B(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=H(n[0],o),c=H(n[1],s),v=H(i[0],l/2),h=H(i[1],l/2),f=-a.get("startAngle")*cy,p=a.get("minAngle")*cy,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&W1(g,m);var S=0;w(g.children,function(k){!isNaN(k.getValue())&&S++});var x=g.getValue(),_=Math.PI/(x||S)*2,b=g.depth>0,A=g.height-(b?-1:1),T=(h-v)/(A||1),C=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=C?1:-1,I=function(k,O){if(!!k){var N=O;if(k!==d){var V=k.getValue(),F=x===0&&D?_:V*_;F<p&&(F=p),N=O+M*F;var W=k.depth-y-(b?-1:1),X=v+T*W,re=v+T*(W+1),ae=a.getLevelModel(k);if(ae){var se=ae.get("r0",!0),Ve=ae.get("r",!0),St=ae.get("radius",!0);St!=null&&(se=St[0],Ve=St[1]),se!=null&&(X=H(se,l/2)),Ve!=null&&(re=H(Ve,l/2))}k.setLayout({angle:F,startAngle:O,endAngle:N,clockwise:C,cx:u,cy:c,r0:X,r:re})}if(k.children&&k.children.length){var fe=0;w(k.children,function(oe){fe+=I(oe,O+fe)})}return N-O}};if(b){var L=v,R=v+T,P=Math.PI*2;d.setLayout({angle:P,startAngle:f,endAngle:f+P,clockwise:C,cx:u,cy:c,r0:L,r:R})}I(g,f)})}function W1(r,t){var e=r.children||[];r.children=ZO(e,t),e.length&&w(r.children,function(a){W1(a,t)})}function ZO(r,t){if(K(t)){var e=G(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(n,i){return t(n.params,i.params)}),G(e,function(n){return r[n.index]})}else{var a=t==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function XO(r){var t={};function e(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&U(s)&&(s=ww(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");z(u,l)})})}function KO(r){r.registerChartView(WO),r.registerSeriesModel(UO),r.registerLayout(ee(YO,"sunburst")),r.registerProcessor(ee(fo,"sunburst")),r.registerVisual(XO),FO(r)}var vy={color:"fill",borderColor:"stroke"},qO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},vr=ve(),jO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return ir(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=vr(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(De),JO=jO;function QO(r,t){return t=t||[0,0],G(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function eV(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:$(QO,r)}}}function tV(r,t){return t=t||[0,0],G([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function rV(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:$(tV,r)}}}function aV(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function nV(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:$(aV,r)}}}function iV(r,t){return t=t||[0,0],G(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function oV(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:$(iV,r)}}}function sV(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function $1(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Y(r,"text")))}function U1(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Y(a,"text")&&(o.text=a.text),Y(a,"rich")&&(o.rich=a.rich),Y(a,"textFill")&&(o.fill=a.textFill),Y(a,"textStroke")&&(o.stroke=a.textStroke),Y(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Y(a,"fontSize")&&(o.fontSize=a.fontSize),Y(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Y(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Y(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Y(a,"textPosition")&&(n.position=a.textPosition),Y(a,"textOffset")&&(n.offset=a.textOffset),Y(a,"textRotation")&&(n.rotation=a.textRotation),Y(a,"textDistance")&&(n.distance=a.textDistance)}return hy(o,r),w(o.rich,function(l){hy(l,l)}),{textConfig:n,textContent:i}}function hy(r,t){!t||(t.font=t.textFont||t.font,Y(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Y(t,"textAlign")&&(r.align=t.textAlign),Y(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Y(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Y(t,"textWidth")&&(r.width=t.textWidth),Y(t,"textHeight")&&(r.height=t.textHeight),Y(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Y(t,"textPadding")&&(r.padding=t.textPadding),Y(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Y(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Y(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Y(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Y(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Y(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Y(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function fy(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";py(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||"#fff",!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||"#000"),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,w(t.rich,function(s){py(s,s)}),a}function py(r,t){!t||(Y(t,"fill")&&(r.textFill=t.fill),Y(t,"stroke")&&(r.textStroke=t.fill),Y(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Y(t,"font")&&(r.font=t.font),Y(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Y(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Y(t,"fontSize")&&(r.fontSize=t.fontSize),Y(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Y(t,"align")&&(r.textAlign=t.align),Y(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Y(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Y(t,"width")&&(r.textWidth=t.width),Y(t,"height")&&(r.textHeight=t.height),Y(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Y(t,"padding")&&(r.textPadding=t.padding),Y(t,"borderColor")&&(r.textBorderColor=t.borderColor),Y(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Y(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Y(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Y(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Y(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Y(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Y(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Y(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Y(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Y(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Y1={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},dy=Ue(Y1);ba(Ii,function(r,t){return r[t]=1,r},{});Ii.join(", ");var Us=["","style","shape","extra"],xn=ve();function sf(r,t,e,a,n){var i=r+"Animation",o=Mn(r,a,n)||{},s=xn(t).userDuring;return o.duration>0&&(o.during=s?$(hV,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),z(o,e[i]),o}function hs(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=xn(r),u=t.style;l.userDuring=t.during;var c={},v={};if(pV(r,t,v),yy("shape",t,v),yy("extra",t,v),!i&&s&&(fV(r,t,c),gy("shape",r,t,c),gy("extra",r,t,c),dV(r,t,u,c)),v.style=u,lV(r,v,o),cV(r,t),s)if(i){var h={};w(Us,function(p){var d=p?t[p]:t;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),z(p?h[p]:h,d.enterFrom))});var f=sf("enter",r,t,e,n);f.duration>0&&r.animateFrom(h,f)}else uV(r,t,n||0,e,c);Z1(r,t),u?r.dirty():r.markRedraw()}function Z1(r,t){for(var e=xn(r).leaveToProps,a=0;a<Us.length;a++){var n=Us[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=xn(r).leaveToProps={}),n&&(e[n]=e[n]||{}),z(n?e[n]:e,i.leaveTo))}}function Dl(r,t,e,a){if(r){var n=r.parent,i=xn(r).leaveToProps;if(i){var o=sf("update",r,t,e,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function _a(r){return r==="all"}function lV(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function uV(r,t,e,a,n){if(n){var i=sf("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function cV(r,t){Y(t,"silent")&&(r.silent=t.silent),Y(t,"ignore")&&(r.ignore=t.ignore),r instanceof wa&&Y(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ie&&Y(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var qt={},vV={setTransform:function(r,t){return qt.el[r]=t,this},getTransform:function(r){return qt.el[r]},setShape:function(r,t){var e=qt.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=qt.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=qt.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=qt.el.style;if(t)return t[r]},setExtra:function(r,t){var e=qt.el.extra||(qt.el.extra={});return e[r]=t,this},getExtra:function(r){var t=qt.el.extra;if(t)return t[r]}};function hV(){var r=this,t=r.el;if(!!t){var e=xn(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}qt.el=t,a(vV)}}function gy(r,t,e,a){var n=e[r];if(!!n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),_a(l))z(o,i);else for(var u=_e(l),c=0;c<u.length;c++){var v=u[c],h=i[v];o[v]=h}else if(_a(s)||ce(s,r)>=0){!o&&(o=a[r]={});for(var f=Ue(i),c=0;c<f.length;c++){var v=f[c],h=i[v];gV(n[v],h)&&(o[v]=h)}}}}}function yy(r,t,e){var a=t[r];if(!!a)for(var n=e[r]={},i=Ue(a),o=0;o<i.length;o++){var s=i[o];n[s]=Aw(a[s])}}function fV(r,t,e){for(var a=t.transition,n=_a(a)?Ii:_e(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function pV(r,t,e){for(var a=0;a<dy.length;a++){var n=dy[a],i=Y1[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<Ii.length;a++){var s=Ii[a];t[s]!=null&&(e[s]=t[s])}}function dV(r,t,e,a){if(!!e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!_a(o)){var l=_e(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],v=n[c];i[c]=v}}else if(r.getAnimationStyleProps&&(_a(s)||_a(o)||ce(s,"style")>=0)){var h=r.getAnimationStyleProps(),f=h?h.style:null;if(f){!i&&(i=a.style={});for(var p=Ue(e),u=0;u<p.length;u++){var c=p[u];if(f[c]){var v=n[c];i[c]=v}}}}}}}function gV(r,t){return bn(r)?r!==t:r!=null&&isFinite(r)}var X1=ve(),yV=["percent","easing","shape","style","extra"];function K1(r){r.stopAnimation("keyframe"),r.attr(X1(r))}function Ys(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(B(t)){w(t,function(s){Ys(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=Mn("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=X1(r);w(Us,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),w(a,function(u){var c=r.animators,v=s?u[s]:u;if(!!v){var h=Ue(v);if(s||(h=Se(h,function(d){return ce(yV,d)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var f=0;f<c.length;f++)c[f]!==l&&c[f].targetName===l.targetName&&c[f].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;w(h,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(n*u.percent,v,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var hr="emphasis",Pr="normal",lf="blur",uf="select",$r=[Pr,hr,lf,uf],Uu={normal:["itemStyle"],emphasis:[hr,"itemStyle"],blur:[lf,"itemStyle"],select:[uf,"itemStyle"]},Yu={normal:["label"],emphasis:[hr,"label"],blur:[lf,"label"],select:[uf,"label"]},mV=["x","y"],SV="e\0\0",Lt={normal:{},emphasis:{},blur:{},select:{}},xV={cartesian2d:eV,geo:rV,single:nV,polar:oV,calendar:sV};function fv(r){return r instanceof Ie}function pv(r){return r instanceof wa}function _V(r,t){t.copyTransform(r),pv(t)&&pv(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,fv(t)&&fv(r)&&t.setShape(r.shape))}var bV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=my(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){Zu(n,null,v,u(v,i),e,l,s)}).remove(function(v){var h=o.getItemGraphicEl(v);h&&Dl(h,vr(h).option,e)}).update(function(v,h){var f=o.getItemGraphicEl(h);Zu(n,f,v,u(v,i),e,l,s)}).execute();var c=e.get("clip",!0)?vo(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=my(a,s,n,i),u=this._progressiveEls=[];function c(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var v=e.start;v<e.end;v++){var h=Zu(null,null,v,l(v,o),a,this.group,s);h&&(h.traverse(c),u.push(h))}},t.prototype.eachRendered=function(e){Zr(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(be),wV=bV;function cf(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=J1(a);e=no(i,null,n,a.layout||"center"),vr(e).customPathData=i}else if(t==="image")e=new Dt({}),vr(e).customImagePath=r.style.image;else if(t==="text")e=new ue({});else if(t==="group")e=new te;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=il(t);if(!o){var s="";ye(s)}e=new o}return vr(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function vf(r,t,e,a,n,i,o){K1(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=mV);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;Y(u,"textFill")&&(u.fill=u.textFill),Y(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,v=fv(t)?l.decal:null;r&&v&&(v.dirty=!0,c=gn(v,r)),l.__decalPattern=c}if(pv(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}hs(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Ys(t,a.keyframeAnimation,i)}function q1(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Ma(i)}}function AV(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<$r.length;s++)TV(a,t,$r[s])}}function TV(r,t,e){var a=e===Pr,n=a?t:Zs(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function my(r,t,e,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):xV[i.type](i));for(var s=Q({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:x,style:b,ordinalRawValue:_,styleEmphasis:A,visual:D,barLayout:M,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:CV(r.getData())},u,c,v={},h={},f={},p={},d=0;d<$r.length;d++){var g=$r[d];f[g]=r.getModel(Uu[g]),p[g]=r.getModel(Yu[g])}function y(R){return R===u?c||(c=t.getItemModel(R)):t.getItemModel(R)}function m(R,P){return t.hasItemOption?R===u?v[P]||(v[P]=y(R).getModel(Uu[P])):y(R).getModel(Uu[P]):f[P]}function S(R,P){return t.hasItemOption?R===u?h[P]||(h[P]=y(R).getModel(Yu[P])):y(R).getModel(Yu[P]):p[P]}return function(R,P){return u=R,c=null,v={},h={},n&&n(Q({dataIndexInside:R,dataIndex:t.getRawIndex(R),actionType:P?P.type:null},l),s)};function x(R,P){return P==null&&(P=u),t.getStore().get(t.getDimensionIndex(R||0),P)}function _(R,P){P==null&&(P=u),R=R||0;var k=t.getDimensionInfo(R);if(!k){var O=t.getDimensionIndex(R);return O>=0?t.getStore().get(O,P):void 0}var N=t.get(k.name,P),V=k&&k.ordinalMeta;return V?V.categories[N]:N}function b(R,P){P==null&&(P=u);var k=t.getItemVisual(P,"style"),O=k&&k.fill,N=k&&k.opacity,V=m(P,Pr).getItemStyle();O!=null&&(V.fill=O),N!=null&&(V.opacity=N);var F={inheritColor:U(O)?O:"#000"},W=S(P,Pr),X=Ae(W,null,F,!1,!0);X.text=W.getShallow("show")?pe(r.getFormattedLabel(P,Pr),yn(t,P)):null;var re=Ts(W,F,!1);return C(R,V),V=fy(V,X,re),R&&T(V,R),V.legacy=!0,V}function A(R,P){P==null&&(P=u);var k=m(P,hr).getItemStyle(),O=S(P,hr),N=Ae(O,null,null,!0,!0);N.text=O.getShallow("show")?An(r.getFormattedLabel(P,hr),r.getFormattedLabel(P,Pr),yn(t,P)):null;var V=Ts(O,null,!0);return C(R,k),k=fy(k,N,V),R&&T(k,R),k.legacy=!0,k}function T(R,P){for(var k in P)Y(P,k)&&(R[k]=P[k])}function C(R,P){R&&(R.textFill&&(P.textFill=R.textFill),R.textPosition&&(P.textPosition=R.textPosition))}function D(R,P){if(P==null&&(P=u),Y(vy,R)){var k=t.getItemVisual(P,"style");return k?k[vy[R]]:null}if(Y(qO,R))return t.getItemVisual(P,R)}function M(R){if(i.type==="cartesian2d"){var P=i.getBaseAxis();return cM(Q({axis:P},R))}}function I(){return e.getCurrentSeriesIndices()}function L(R){return Xv(R,e)}}function CV(r){var t={};return w(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Zu(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=hf(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Ne(s,a.focus,a.blurScope,a.emphasisDisabled),s}function hf(r,t,e,a,n,i){var o=-1,s=t;t&&j1(t,a,n)&&(o=ce(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=cf(a),s&&_V(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Lt.normal.cfg=Lt.normal.conOpt=Lt.emphasis.cfg=Lt.emphasis.conOpt=Lt.blur.cfg=Lt.blur.conOpt=Lt.select.cfg=Lt.select.conOpt=null,Lt.isLegacy=!1,MV(u,e,a,n,l,Lt),DV(u,e,a,n,l),vf(r,u,e,a,Lt,n,l),Y(a,"info")&&(vr(u).info=a.info);for(var c=0;c<$r.length;c++){var v=$r[c];if(v!==Pr){var h=Zs(a,v),f=ff(a,h,v);q1(v,u,h,f,Lt)}}return AV(u,a,n),a.type==="group"&&IV(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function j1(r,t,e){var a=vr(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&EV(i)&&J1(i)!==a.customPathData||n==="image"&&Y(o,"image")&&o.image!==a.customImagePath}function DV(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&j1(o,i,a)&&(o=null),o||(o=cf(i),r.setClipPath(o)),vf(null,o,t,i,null,a,n)}}function MV(r,t,e,a,n,i){if(!r.isGroup){Sy(e,null,i),Sy(e,hr,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=cf(o),r.setTextContent(c)),vf(null,c,t,o,null,a,n);for(var v=o&&o.style,h=0;h<$r.length;h++){var f=$r[h];if(f!==Pr){var p=i[f].conOpt;q1(f,c,p,ff(o,p,f),null)}}v?c.dirty():c.markRedraw()}}}}function Sy(r,t,e){var a=t?Zs(r,t):r,n=t?ff(r,a,hr):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?Zs(s,t):s:null;if(n&&(e.isLegacy||$1(n,i,!!o,!!l))){e.isLegacy=!0;var u=U1(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var v=t?e[t]:e.normal;v.cfg=o,v.conOpt=l}function Zs(r,t){return t?r?r[t]:null:r}function ff(r,t,e){var a=t&&t.style;return a==null&&e===hr&&r&&(a=r.styleEmphasis),a}function IV(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){PV({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var v=i[c],h=t.childAt(c);v?(v.ignore==null&&(v.ignore=!1),hf(r,h,e,v,n,t)):h.ignore=!0}for(var f=t.childCount()-1;f>=c;f--){var p=t.childAt(f);LV(t,p,n)}}}function LV(r,t,e){t&&Dl(t,vr(r).option,e)}function PV(r){new dr(r.oldChildren,r.newChildren,xy,xy,r).add(_y).update(_y).remove(RV).execute()}function xy(r,t){var e=r&&r.name;return e!=null?e:SV+t}function _y(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;hf(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function RV(r){var t=this.context,e=t.oldChildren[r];e&&Dl(e,vr(e).option,t.seriesModel)}function J1(r){return r&&(r.pathData||r.d)}function EV(r){return r&&(Y(r,"pathData")||Y(r,"d"))}function kV(r){r.registerChartView(wV),r.registerSeriesModel(JO)}var ua=ve(),by=j,Xu=$,NV=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var v=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new te,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=ee(wy,e,v);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}Ty(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=kh(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=ua(t).pointerEl=new ka[i.type](by(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=ua(t).labelEl=new ue(by(e.label));t.add(i),Ay(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=ua(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=ua(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),Ay(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=In(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){zr(u.event)},onmousedown:Xu(this._onHandleDragMove,this,0,0),drift:Xu(this._onHandleDragMove,this),ondragend:Xu(this._onHandleDragEnd,this)}),a.add(n)),Ty(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");B(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Vn(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){wy(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ku(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(!!a){this._dragging=!0;var n=this.updateHandleTransform(Ku(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ku(n)),ua(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Vi(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function wy(r,t,e,a){Q1(ua(e).lastProp,a)||(ua(e).lastProp=a,t?he(e,a,r):(e.stopAnimation(),e.attr(a)))}function Q1(r,t){if(J(r)&&J(t)){var e=!0;return w(t,function(a,n){e=e&&Q1(r[n],a)}),!!e}else return r===t}function Ay(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ku(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Ty(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}var pf=NV;function df(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function eb(r,t,e,a,n){var i=e.get("value"),o=tb(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Oa(s.get("padding")||0),u=s.getFont(),c=el(o,u),v=n.position,h=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=n.align;p==="right"&&(v[0]-=h),p==="center"&&(v[0]-=h/2);var d=n.verticalAlign;d==="bottom"&&(v[1]-=f),d==="middle"&&(v[1]-=f/2),OV(v,h,f,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:Ae(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function OV(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function tb(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ih(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,v=u&&u.getDataParams(c);v&&s.seriesData.push(v)}),U(o)?i=o.replace("{value}",i):K(o)&&(i=o(s))}return i}function gf(r,t,e){var a=Tn();return eo(a,a,e.rotation),Aa(a,a,e.position),Zt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function rb(r,t,e,a,n,i){var o=yr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),eb(t,a,n,i,{position:gf(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yf(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function ab(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function Cy(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var VV=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=Dy(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=df(i),f=BV[u](s,v,c);f.style=h,e.graphicKey=f.type,e.pointer=f}var p=qc(l.model,n);rb(a,e,p,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=qc(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=gf(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Dy(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,v=[e.x,e.y];v[c]+=a[c],v[c]=Math.min(l[1],v[c]),v[c]=Math.max(l[0],v[c]);var h=(u[1]+u[0])/2,f=[h,h];f[c]=v[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:f,tooltipOption:p[c]}},t}(pf);function Dy(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var BV={line:function(r,t,e){var a=yf([t,e[0]],[t,e[1]],My(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:ab([t-a/2,e[0]],[a,n],My(r))}}};function My(r){return r.dim==="x"?0:1}var zV=VV,GV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(le),FV=GV,cr=ve(),HV=w;function nb(r,t,e){if(!ke.node){var a=t.getZr();cr(a).records||(cr(a).records={}),WV(a,t);var n=cr(a).records[r]||(cr(a).records[r]={});n.handler=e}}function WV(r,t){if(cr(r).initialized)return;cr(r).initialized=!0,e("click",ee(Iy,"click")),e("mousemove",ee(Iy,"mousemove")),e("globalout",UV);function e(a,n){r.on(a,function(i){var o=YV(t);HV(cr(r).records,function(s){s&&n(s,i,o.dispatchAction)}),$V(o.pendings,t)})}}function $V(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function UV(r,t,e){r.handler("leave",null,e)}function Iy(r,t,e,a){t.handler(r,e,a)}function YV(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function dv(r,t){if(!ke.node){var e=t.getZr(),a=(cr(e).records||{})[r];a&&(cr(e).records[r]=null)}}var ZV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";nb("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){dv("axisPointer",a)},t.prototype.dispose=function(e,a){dv("axisPointer",a)},t.type="axisPointer",t}(Re),XV=ZV;function ib(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Ca(i,r);if(o==null||o<0||B(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),v=c.dim,h=u.dim,f=v==="x"||v==="radius"?1:0,p=i.mapDimension(h),d=[];d[f]=i.get(p,o),d[1-f]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}else e=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Ly=ve();function KV(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||$(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){fs(n)&&(n=ib({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=fs(n),u=i.axesInfo,c=s.axesInfo,v=a==="leave"||fs(n),h={},f={},p={list:[],map:{}},d={showPointer:ee(jV,f),showTooltip:ee(JV,p)};w(s.coordSysMap,function(y,m){var S=l||y.containPoint(n);w(s.coordSysAxesInfo[m],function(x,_){var b=x.axis,A=rB(u,x);if(!v&&S&&(!u||A)){var T=A&&A.value;T==null&&!l&&(T=b.pointToData(n)),T!=null&&Py(x,T,d,!1,h)}})});var g={};return w(c,function(y,m){var S=y.linkGroup;S&&!f[m]&&w(S.axesInfo,function(x,_){var b=f[_];if(x!==y&&b){var A=b.value;S.mapper&&(A=y.axis.scale.parse(S.mapper(A,Ry(x),Ry(y)))),g[y.key]=A}})}),w(g,function(y,m){Py(c[m],y,d,!0,h)}),QV(f,c,h),eB(p,n,r,o),tB(c,o,e),h}}function Py(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=qV(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&z(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function qV(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),v,h;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(c,r,e);h=f.dataIndices,v=f.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;v=l.getData().get(c[0],h[0])}if(!(v==null||!isFinite(v))){var p=r-v,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=v,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function jV(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function JV(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Gi(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function QV(r,t,e){var a=e.axesInfo=[];w(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function eB(r,t,e,a){if(fs(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function tB(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=Ly(a)[n]||{},o=Ly(a)[n]={};w(r,function(u,c){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&w(v.seriesDataIndices,function(h){var f=h.seriesIndex+" | "+h.dataIndex;o[f]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function rB(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function Ry(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function fs(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function mo(r){za.registerAxisPointerClass("CartesianAxisPointer",zV),r.registerComponentModel(FV),r.registerComponentView(XV),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!B(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=JL(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KV)}function aB(r){ie(k_),ie(mo)}var nB=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),v=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var f=df(i),p=oB[h](s,l,v,c);p.style=f,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=iB(a,n,i,l,d);eb(e,n,i,o,g)},t}(pf);function iB(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,v;if(i.dim==="radius"){var h=Tn();eo(h,h,s),Aa(h,h,[a.cx,a.cy]),u=Zt([o,-n],h);var f=t.getModel("axisLabel").get("rotate")||0,p=yr.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,v=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;c=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:v}}var oB={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:yf(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Cy(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:Cy(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},sB=nB,lB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(le),uB=lB,mf=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",We).models[0]},t.type="polarAxis",t}(le);Ze(mf,Fn);var cB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(mf),vB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(mf),Sf=function(r){E(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(Gt);Sf.prototype.dataToRadius=Gt.prototype.dataToCoord;Sf.prototype.radiusToData=Gt.prototype.coordToData;var hB=Sf,fB=ve(),xf=function(r){E(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=el(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(c.height,7),h=v/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=fB(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-f)<=1&&Math.abs(g-o)<=1&&d>f?f=d:(p.lastTickCount=o,p.lastAutoInterval=f),f},t}(Gt);xf.prototype.dataToAngle=Gt.prototype.dataToCoord;xf.prototype.angleToData=Gt.prototype.coordToData;var pB=xf,ob=["radius","angle"],dB=function(){function r(t){this.dimensions=ob,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new hB,this._angleAxis=new pB,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,v=u*u+c*c,h=this.r,f=this.r0;return h!==f&&v-o<=h*h&&v+o>=f*f}}},r.prototype.convertToPixel=function(t,e,a){var n=Ey(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Ey(e);return n===this?this.pointToData(a):null},r}();function Ey(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var gB=dB;function yB(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function mB(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();w(Os(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),w(Os(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),La(a.scale,a.model),La(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function SB(r){return r.mainType==="angleAxis"}function ky(r,t){var e;if(r.type=t.get("type"),r.scale=lo(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),SB(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var xB={dimensions:ob,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new gB(n+"");i.update=mB;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");ky(o,l),ky(s,u),yB(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",We).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},_B=xB,bB=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Zo(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Xo(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Ny(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var wB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(c){c=j(c);var v=n.scale,h=v.type==="ordinal"?v.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(h),c});Ny(u),Ny(s),w(bB,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&AB[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(za),AB={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Xo(e),v=c?0:1,h,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?h=new ka[f]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Ki({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Xo(e)],u=G(a,function(c){return new Je({shape:Zo(e,[l,l+s],c.coord)})});r.add(xt(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(!!n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Xo(e)],c=[],v=0;v<n.length;v++)for(var h=0;h<n[v].length;h++)c.push(new Je({shape:Zo(e,[u,u+l],n[v][h].coord)}));r.add(xt(c,{style:Q(s.getModel("lineStyle").getLineStyle(),Q(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");w(o,function(v,h){var f=l,p=v.tickValue,d=i[Xo(e)],g=e.coordToPoint([d+u,v.coord]),y=e.cx,m=e.cy,S=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var _=s[p];J(_)&&_.textStyle&&(f=new xe(_.textStyle,l,l.ecModel))}var b=new ue({silent:yr.isLabelSilent(t),style:Ae(f,{x:g[0],y:g[1],fill:f.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:S,verticalAlign:x})});if(r.add(b),c){var A=yr.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=v.rawLabel,q(b).eventData=A}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],v=0;v<a.length;v++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Je({shape:Zo(e,i,a[v].coord)}))}for(var v=0;v<c.length;v++)r.add(xt(c[v],{style:Q({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(!!n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new Je({shape:Zo(e,i,n[u][c].coord)}));r.add(xt(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(!!a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],v=Math.PI/180,h=-a[0].coord*v,f=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=t.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new wt({shape:{cx:e.cx,cy:e.cy,r0:f,r:p,startAngle:h,endAngle:-m*v,clockwise:d},silent:!0})),h=-m*v}for(var g=0;g<c.length;g++)r.add(xt(c[g],{style:Q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},TB=wB,CB=["axisLine","axisTickLabel","axisName"],DB=["splitLine","splitArea","minorSplitLine"],MB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new te;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),v=l.getExtent()[0],h=o.getExtent(),f=LB(s,e,v),p=new yr(e,f);w(CB,p.add,p),i.add(p.getGroup()),io(n,i,e),w(DB,function(d){e.get([d,"show"])&&!o.scale.isBlank()&&IB[d](this.group,e,s,v,h,u,c)},this)}},t.type="radiusAxis",t}(za),IB={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),v=Math.PI/180,h=c.getExtent(),f=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new ka[f]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[d].coord,0),startAngle:-h[0]*v,endAngle:-h[1]*v,clockwise:c.inverse}}))}for(var d=0;d<p.length;d++)r.add(xt(p[d],{style:Q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var v=0;v<o[c].length;v++)u.push(new Yr({shape:{cx:e.cx,cy:e.cy,r:o[c][v].coord}}));r.add(xt(u,{style:Q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(!!i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],v=i[0].coord,h=1;h<i.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new wt({shape:{cx:e.cx,cy:e.cy,r0:v,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[h].coord}for(var h=0;h<c.length;h++)r.add(xt(c[h],{style:Q({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function LB(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var PB=MB;function sb(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function lb(r,t){return t.dim+r.model.componentIndex}function RB(r,t,e){var a={},n=EB(Se(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=lb(s,l),c=sb(i),v=n[u][c],h=v.offset,f=v.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var S=o.mapDimension(p.dim),x=o.mapDimension(l.dim),_=gr(o,S),b=l.dim!=="radius"||!i.get("roundCap",!0),A=p.model,T=A.get("startValue"),C=p.dataToCoord(T||0),D=0,M=o.count();D<M;D++){var I=o.get(S,D),L=o.get(x,D),R=I>=0?"p":"n",P=C;_&&(a[c][L]||(a[c][L]={p:C,n:C}),P=a[c][L][R]);var k=void 0,O=void 0,N=void 0,V=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-C,W=l.dataToCoord(L);Math.abs(F)<y&&(F=(F<0?-1:1)*y),k=P,O=P+F,N=W-h,V=N-f,_&&(a[c][L][R]=O)}else{var X=p.dataToCoord(I,b)-C,re=l.dataToCoord(L);Math.abs(X)<m&&(X=(X<0?-1:1)*m),k=re+h,O=k+f,N=P,V=P+X,_&&(a[c][L][R]=V)}o.setItemLayout(D,{cx:d,cy:g,r0:k,r:O,startAngle:-N*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:N>=V})}}})}function EB(r){var t={};w(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=lb(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),v=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=v.stacks;t[l]=v;var f=sb(a);h[f]||v.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var p=H(a.get("barWidth"),c),d=H(a.get("barMaxWidth"),c),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!h[f].width&&(p=Math.min(v.remainedWidth,p),h[f].width=p,v.remainedWidth-=p),d&&(h[f].maxWidth=d),g!=null&&(v.gap=g),y!=null&&(v.categoryGap=y)});var e={};return w(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,v=(u-s)/(c+(c-1)*l);v=Math.max(v,0),w(i,function(d,g){var y=d.maxWidth;y&&y<v&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,c--)}),v=(u-s)/(c+(c-1)*l),v=Math.max(v,0);var h=0,f;w(i,function(d,g){d.width||(d.width=v),f=d,h+=d.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;w(i,function(d,g){e[n][g]=e[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),e}var kB={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},NB={splitNumber:5},OB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Re);function VB(r){ie(mo),za.registerAxisPointerClass("PolarAxisPointer",sB),r.registerCoordinateSystem("polar",_B),r.registerComponentModel(uB),r.registerComponentView(OB),mn(r,"angle",cB,kB),mn(r,"radius",vB,NB),r.registerComponentView(TB),r.registerComponentView(PB),r.registerLayout(ee(RB,"bar"))}function gv(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var v={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=v[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Qe(t.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=t.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-h:h,n.z2=1,n}var BB=["axisLine","axisTickLabel","axisName"],zB=["splitArea","splitLine"],GB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new te;var l=gv(e),u=new yr(e,l);w(BB,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),w(zB,function(c){e.get([c,"show"])&&FB[c](this,this.group,this._axisGroup,e)},this),io(s,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)},t.prototype.remove=function(){P_(this)},t.type="singleAxis",t}(za),FB={splitLine:function(r,t,e,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),c=n.isHorizontal(),v=[],h=0,f=n.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<f.length;++g){var y=n.toGlobalCoord(f[g].coord);c?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new Je({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});pn(m.shape,l);var S=h++%s.length;v[S]=v[S]||[],v[S].push(m)}for(var x=o.getLineStyle(["color"]),g=0;g<v.length;++g)t.add(xt(v[g],{style:Q({stroke:s[g%s.length]},x),silent:!0}))}},splitArea:function(r,t,e,a){L_(r,e,a,a)}},HB=GB,ub=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(le);Ze(ub,Fn.prototype);var qu=ub,WB=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t}(Gt),$B=WB,cb=["single"],UB=function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=cb,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=this.dimension,i=new $B(n,lo(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();w(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),La(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=$e({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return n-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return n-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),n=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[i]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(t,e,a){var n=Oy(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Oy(e);return n===this?this.pointToData(a):null},r}();function Oy(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function YB(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new UB(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",We).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var ZB={create:YB,dimensions:cb},XB=ZB,Vy=["x","y"],KB=["width","height"],qB=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=ju(l,1-Xs(s)),c=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var h=df(i),f=jB[v](s,c,u);f.style=h,e.graphicKey=f.type,e.pointer=f}var p=gv(n);rb(a,e,p,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=gv(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=gf(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Xs(o),u=ju(s,l),c=[e.x,e.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var v=ju(s,1-l),h=(v[1]+v[0])/2,f=[h,h];return f[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},t}(pf),jB={line:function(r,t,e){var a=yf([t,e[0]],[t,e[1]],Xs(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:ab([t-a/2,e[0]],[a,n],Xs(r))}}};function Xs(r){return r.isHorizontal()?0:1}function ju(r,t){var e=r.getRect();return[e[Vy[t]],e[Vy[t]]+e[KB[t]]]}var JB=qB,QB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Re);function ez(r){ie(mo),za.registerAxisPointerClass("SingleAxisPointer",JB),r.registerComponentView(QB),r.registerComponentView(HB),r.registerComponentModel(qu),mn(r,"single",qu,qu.defaultOption),r.registerCoordinateSystem("single",XB)}var tz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Rn(e);r.prototype.init.apply(this,arguments),By(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),By(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(le);function By(r,t){var e=r.cellSize,a;B(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return nT(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Fr(r,t,{type:"box",ignoreSize:n})}var rz=tz,az=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,v=new de({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,h=0;v.time<=a.end.time;h++){p(v.formatedDate),h===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var f=v.date;f.setMonth(f.getMonth()+1),v=s.getDateInfo(f)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new mt({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return U(e)&&e?eT(e,a):K(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,f={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],v],right:[u[h][0],v]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new ue({z2:30,style:Ae(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,f[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],c=e[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=Lc(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,f=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",d=o.get("silent"),g=0;g<v[h].length-1;g++){var y=v[h][g].slice(),m=this._firstDayOfMonth[g];if(p){var S=this._firstDayPoints[g];y[f]=(S[f]+v[0][g+1][f])/2}var x=o.get("formatter"),_=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},A=this._formatterLabel(x,b),T=new ue({z2:30,style:z(Ae(o,{text:A}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});i.add(T)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],c=e[1],v=n==="start";return a==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(c=c+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(!!s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),v=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||U(c)){c&&(a=Lc(c)||a);var f=a.get(["time","dayOfWeekShort"]);c=f||G(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];v=H(v,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),S=l.dataToRect([m.time],!1).center,x=y;x=Math.abs((y+h)%7);var _=new ue({z2:30,style:z(Ae(s,{text:c[x]}),this._weekTextPositionControl(S,i,u,v,d)),silent:g});o.add(_)}}},t.type="calendar",t}(Re),nz=az,Ju=864e5,iz=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Ct(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];w([0,1],function(v){c(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=$e(o,l);w([0,1],function(v){c(i,v)||(i[v]=u[n[v]]/s[v])});function c(v,h){return v[h]!=null&&v[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){B(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),n=this._rangeInfo,i=a.formatedDate;if(e&&!(a.time>=n.start.time&&a.time<n.end.time+Ju))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=zy(e);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=zy(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(B(t)&&t.length===1&&(t=t[0]),B(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Ju)-Math.floor(e[0].time/Ju)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+e[0].day+6)/7),v=a?-c+1:c-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:v,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function zy(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var oz=iz;function sz(r){r.registerComponentModel(rz),r.registerComponentView(nz),r.registerCoordinateSystem("calendar",oz)}function lz(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function Gy(r,t){var e;return w(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function uz(r,t,e){var a=z({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(ne(n,a,!0),Fr(n,a,{ignoreSize:!0}),uS(e,n),Ko(e,n),Ko(e,n,"shape"),Ko(e,n,"style"),Ko(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var vb=["transition","enterFrom","leaveTo"],cz=vb.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ko(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?vb:cz,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function vz(r,t){if(!!r&&(r.hv=t.hv=[Gy(t,["left","right"]),Gy(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var hz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=C0(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];w(l,function(c,v){var h=c.newOption;!h||(u.push(h),lz(c,h),uz(o,v,h),vz(o[v],h))},this),n.elements=Se(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,a,n){w(e,function(i){if(!!i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(le),Fy={path:null,compoundPath:null,group:te,image:Dt,text:ue},Rt=ve(),fz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=Z()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(!!a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");w(a,function(l){var u=Ye(l.id,null),c=u!=null?n.get(u):null,v=Ye(l.parentId,null),h=v!=null?n.get(v):i,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&$1(p,f,!!g,!!d)){var y=U1(p,f,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=pz(l),S=l.$action||"merge",x=S==="merge",_=S==="replace";if(x){var b=!c,A=c;b?A=Hy(u,h,l.type,n):(A&&(Rt(A).isNew=!1),K1(A)),A&&(hs(A,m,e,{isInit:b}),Wy(A,l,o,s))}else if(_){ps(c,l,n,e);var T=Hy(u,h,l.type,n);T&&(hs(T,m,e,{isInit:!0}),Wy(T,l,o,s))}else S==="remove"&&(Z1(c,l),ps(c,l,n,e));var C=n.get(u);if(C&&d)if(x){var D=C.getTextContent();D?D.attr(d):C.setTextContent(new ue(d))}else _&&C.setTextContent(new ue(d));if(C){var M=l.clipPath;if(M){var I=M.type,L=void 0,b=!1;if(x){var R=C.getClipPath();b=!R||Rt(R).type!==I,L=b?yv(I):R}else _&&(b=!0,L=yv(I));C.setClipPath(L),hs(L,M,e,{isInit:b}),Ys(L,M.keyframeAnimation,e)}var P=Rt(C);C.setTextConfig(g),P.option=l,dz(C,e,l),Ea({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),Ys(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var v=n[c],h=Ye(v.id,null),f=h!=null?o.get(h):null;if(!(!f||!f.isGroup)){var p=f.parent,d=p===i,g=Rt(f),y=Rt(p);g.width=H(g.option.width,d?s:y.width)||0,g.height=H(g.option.height,d?l:y.height)||0}}for(var c=n.length-1;c>=0;c--){var v=n[c],h=Ye(v.id,null),f=h!=null?o.get(h):null;if(!!f){var p=f.parent,y=Rt(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},S={},x=hl(f,v,m,null,{hv:v.hv,boundingMode:v.bounding},S);if(!Rt(f).isNew&&x){for(var _=v.transition,b={},A=0;A<u.length;A++){var T=u[A],C=S[T];_&&(_a(_)||ce(_,T)>=0)?b[T]=C:f[T]=C}he(f,b,e,0)}else f.attr(S)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){ps(n,Rt(n).option,a,e._lastGraphicModel)}),this._elMap=Z()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Re);function yv(r){var t=Y(Fy,r)?Fy[r]:il(r),e=new t({});return Rt(e).type=r,e}function Hy(r,t,e,a){var n=yv(e);return t.add(n),a.set(r,n),Rt(n).id=r,Rt(n).isNew=!0,n}function ps(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){ps(i,t,e,a)}),Dl(r,t,a),e.removeKey(Rt(r).id))}function Wy(r,t,e,a){r.isGroup||w([["cursor",wa.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];Y(t,i)?r[i]=pe(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),w(Ue(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=K(i)?i:null}}),Y(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function pz(r){return r=z({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(lS),function(t){delete r[t]}),r}function dz(r,t,e){var a=q(r).eventData;!r.silent&&!r.ignore&&!a&&(a=q(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function gz(r){r.registerComponentModel(hz),r.registerComponentView(fz),r.registerPreprocessor(function(t){var e=t.graphic;B(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var $y=["x","y","radius","angle","single"],yz=["cartesian2d","polar","singleAxis"];function mz(r){var t=r.get("coordinateSystem");return ce(yz,t)>=0}function Rr(r){return r+"Axis"}function Sz(r,t){var e=Z(),a=[],n=Z();r.eachComponent({mainType:"dataZoom",query:t},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var v=!1;return c.eachTargetAxis(function(h,f){var p=e.get(h);p&&p[f]&&(v=!0)}),v}function u(c){c.eachTargetAxis(function(v,h){(e.get(v)||e.set(v,[]))[h]=!0})}return a}function hb(r){var t=r.ecModel,e={infoList:[],infoMap:Z()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Rr(a),n);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Qu=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),xz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=Uy(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=Uy(e);ne(this.option,e,!0),ne(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=Z(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return w($y,function(n){var i=this.getReferringComponents(Rr(n),jw);if(!!i.specified){a=!0;var o=new Qu;w(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var v=u[0];if(!!v){var h=new Qu;if(h.add(v.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var f=v.getReferringComponents("grid",We).models[0];f&&w(u,function(p){v.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",We).models[0]&&h.add(p.componentIndex)})}}}i&&w($y,function(u){if(!!i){var c=n.findComponents({mainType:Rr(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var v=new Qu;v.add(c[0].componentIndex),e.set(u,v),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(Rr(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){w(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(Rr(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;w(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(le);function Uy(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Yi=xz,_z=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Yi),bz=_z,wz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(Re),_f=wz,Az=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(_f),Tz=Az,rn=w,Yy=_t,Cz=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(mz(e)){var a=Rr(this._dimName),n=e.getReferringComponents(a,We).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return j(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;rn(["start","end"],function(h,f){var p=t[h],d=t[h+"Value"];i[f]==="percent"?(p==null&&(p=o[f]),d=n.parse(ge(p,o,e))):(u=!0,d=d==null?e[f]:n.parse(d),p=ge(d,e,o)),l[f]=d==null||isNaN(d)?e[f]:d,s[f]=p==null||isNaN(p)?o[f]:p}),Yy(l),Yy(s);var c=this._minMaxSpan;u?v(l,s,e,o,!1):v(s,l,o,e,!0);function v(h,f,p,d,g){var y=g?"Span":"ValueSpan";Ga(0,h,p,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)f[m]=ge(h[m],p,d,!0),g&&(f[m]=n.parse(f[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Dz(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;rn(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(!!c.length){if(i==="weakFilter"){var v=u.getStore(),h=G(c,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,d,g,y=0;y<c.length;y++){var m=v.get(h[y],f),S=!isNaN(m),x=m<o[0],_=m>o[1];if(S&&!x&&!_)return!0;S&&(g=!0),x&&(p=!0),_&&(d=!0)}return g&&p&&d})}else rn(c,function(f){if(i==="empty")l.setData(u=u.map(f,function(d){return s(d)?d:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});rn(c,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;rn(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ge(a[0]+o,a,[0,100],!0):i!=null&&(o=ge(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(!!e){var n=Rv(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function Dz(r,t,e){var a=[1/0,-1/0];rn(e,function(o){EM(a,o.getData(),t)});var n=r.getAxisModel(),i=$x(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Mz=Cz,Iz={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Rr(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Mz(n,i,s,r),e.push(o.__dzAxisProxy))});var a=Z();return w(e,function(n){w(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},Lz=Iz;function Pz(r){r.registerAction("dataZoom",function(t,e){var a=Sz(e,t);w(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Zy=!1;function bf(r){Zy||(Zy=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Lz),Pz(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Rz(r){r.registerComponentModel(bz),r.registerComponentView(Tz),bf(r)}var Et=function(){function r(){}return r}(),fb={};function an(r,t){fb[r]=t}function pb(r){return fb[r]}var Ez=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(a,n){var i=pb(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),ne(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(le),kz=Ez;function Nz(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=$e(a,i,n);ya(t.get("orient"),r,t.get("itemGap"),o.width,o.height),hl(r,a,i,n)}function db(r,t){var e=Oa(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new de({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var Oz=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),v=[];w(u,function(p,d){v.push(d)}),new dr(this._featureNames||[],v).add(h).update(h).remove(ee(h,null)).execute(),this._featureNames=v;function h(p,d){var g=v[p],y=v[d],m=u[g],S=new xe(m,e,e.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(Vz(g))x={onclick:S.option.onclick,featureName:g};else{var _=pb(g);if(!_)return;x=new _}c[g]=x}else if(x=c[y],!x)return;x.uid=Pn("toolbox-feature"),x.model=S,x.ecModel=a,x.api=n;var b=x instanceof Et;if(!g&&y){b&&x.dispose&&x.dispose(a,n);return}if(!S.get("show")||b&&x.unusable){b&&x.remove&&x.remove(a,n);return}f(S,x,g),S.setIconStatus=function(A,T){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[A]=T,D[A]&&(T==="emphasis"?fr:pr)(D[A])},x instanceof Et&&x.render&&x.render(S,a,n,i)}function f(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),S=d instanceof Et&&d.getIcons?d.getIcons():p.get("icon"),x=p.get("title")||{},_,b;U(S)?(_={},_[g]=S):_=S,U(x)?(b={},b[g]=x):b=x;var A=p.iconPaths={};w(_,function(T,C){var D=In(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var I=new ue({style:{text:b[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:Xv({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),Ea({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:b[C]}}),D.__title=b[C],D.on("mouseover",function(){var L=m.getItemStyle(),R=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||R}),I.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",C])==="emphasis"?fr:pr)(D),o.add(D),D.on("click",$(d.onclick,d,a,n,C)),A[C]=D})}Nz(o,e,n),o.add(db(o.getBoundingRect(),e)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),S=m&&m.ensureState("emphasis");if(S&&!K(S)&&d){var x=S.style||(S.style={}),_=el(d,ue.makeFont(x)),b=p.x+o.x,A=p.y+o.y+s,T=!1;A+_.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-5-_.height:s+10;b+_.width/2>n.getWidth()?(y.position=["100%",C],x.align="right"):b-_.width/2<0&&(y.position=[0,C],x.align="left")}})},t.prototype.updateView=function(e,a,n,i){w(this._features,function(o){o instanceof Et&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){w(this._features,function(n){n instanceof Et&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){w(this._features,function(n){n instanceof Et&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(Re);function Vz(r){return r.indexOf("my")===0}var Bz=Oz,zz=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=ke.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),f=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(S)}}else{var b=n.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(A),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Et),Gz=zz,Xy="__ec_magicType_stack__",Fz=[["line","bar"],["stack"]],Hz=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return w(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(!!Ky[n]){var s={series:[]},l=function(v){var h=v.subType,f=v.id,p=Ky[n](h,f,v,i);p&&(Q(p,v.option),s.series.push(p));var d=v.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=v.getReferringComponents(m,We).models[0],x=S.componentIndex;s[m]=s[m]||[];for(var _=0;_<=x;_++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=n==="bar"}}};w(Fz,function(v){ce(v,n)>=0&&w(v,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=ne({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Et),Ky={line:function(r,t,e,a){if(r==="bar")return ne({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return ne({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===Xy;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ne({id:t,stack:n?"":Xy},a.get(["option","stack"])||{},!0)}};Kt({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Wz=Hz,Ml=new Array(60).join("-"),_n="	";function $z(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function Uz(r){var t=[];return w(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(G(e.series,function(f){return f.name})),l=[n.model.getCategories()];w(e.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(_n)],c=0;c<l[0].length;c++){for(var v=[],h=0;h<l.length;h++)v.push(l[h][c]);u.push(v.join(_n))}t.push(u.join(`
`))}),t.join(`

`+Ml+`

`)}function Yz(r){return G(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+_n:"")+n.join(_n))}),a.join(`
`)}).join(`

`+Ml+`

`)}function Zz(r){var t=$z(r);return{value:Se([Uz(t.seriesGroupByCategoryAxis),Yz(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+Ml+`

`),meta:t.meta}}function Ks(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xz(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(_n)>=0)return!0}var mv=new RegExp("["+_n+"]+","g");function Kz(r){for(var t=r.split(/\n+/g),e=Ks(t.shift()).split(mv),a=[],n=G(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Ks(t[i]).split(mv);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function qz(r){for(var t=r.split(/\n+/g),e=Ks(t.shift()),a=[],n=0;n<t.length;n++){var i=Ks(t[n]);if(!!i){var o=i.split(mv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function jz(r,t){var e=r.split(new RegExp(`
*`+Ml+`
*`,"g")),a={series:[]};return w(e,function(n,i){if(Xz(n)){var o=Kz(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=qz(n);a.series.push(o)}}),a}var Jz=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),h=i.get("contentToOption"),f=Zz(e);if(K(v)){var p=v(a.getOption());U(p)?u.innerHTML=p:mc(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var d=c.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),c.value=f.value,u.appendChild(c)}var g=f.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var _=this;function b(){n.removeChild(o),_._dom=null}Gf(S,"click",b),Gf(x,"click",function(){if(h==null&&v!=null||h!=null&&v==null){b();return}var A;try{K(h)?A=h(u,a.getOption()):A=jz(c.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}A&&a.dispatchAction({type:"changeDataView",newOption:A}),b()}),S.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=S.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(Et);function Qz(r,t){return G(r,function(e,a){var n=t&&t[a];if(J(n)&&!B(n)){var i=J(e)&&!B(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=Q(e,n),o&&delete e.name,e}else return e})}Kt({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];w(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(z({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:Qz(a.data,i)})}}),t.mergeOption(Q({series:e},r.newOption))});var eG=Jz,gb=w,yb=ve();function tG(r,t){var e=wf(r);gb(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function rG(r){var t=wf(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return gb(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function aG(r){yb(r).snapshots=null}function nG(r){return wf(r).length}function wf(r){var t=yb(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var iG=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){aG(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Et);Kt({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var oG=iG,sG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],lG=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=qy(e,t);w(uG,function(o,s){(!a||!a.include||ce(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=ec[a.brushType](0,i,n);a.__rangeOffset={offset:em[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){w(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=ec[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=ec[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?em[a.brushType](i.values,o.offset,cG(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:A1(n),isTargetByCursor:C1(n,t,a.coordSysModel),getLinearBrushOtherExtent:T1(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&ce(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=qy(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<jy.length;l++)if(jy[l](n,o))return o}return!0},r}();function Sv(r){return r[0]>r[1]&&r.reverse(),r}function qy(r,t){return xi(r,t,{includeMainTypes:sG})}var uG={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=Z(),o={},s={};!e&&!a&&!n||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(v,h){(ce(e,v.getAxis("x").model)>=0||ce(a,v.getAxis("y").model)>=0)&&c.push(v)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Jy.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:Jy.geo})})}},jy=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Jy={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Nr(r)),t}},ec={lineX:ee(Qy,0),lineY:ee(Qy,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Sv([n[0],i[0]]),Sv([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=G(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function Qy(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Sv(G([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var em={lineX:ee(tm,0),lineY:ee(tm,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return G(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function tm(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function cG(r,t){var e=rm(r),a=rm(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function rm(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Af=lG,xv=w,vG=Yw("toolbox-dataZoom_"),hG=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new tf(n.getZr()),this._brushController.on("brush",$(this._onBrush,this)).mount()),dG(e,a,this,i,n),pG(e,a)},t.prototype.onclick=function(e,a,n){fG[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Af(Tf(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,v){if(v.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",v,c[0]),s("y",v,c[1])):s({lineX:"x",lineY:"y"}[h],v,c)}}),tG(i,n),this._dispatchZoomAction(n);function s(u,c,v){var h=c.getAxis(u),f=h.model,p=l(u,f,i),d=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(v=Ga(0,v.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:v[0],endValue:v[1]})}function l(u,c,v){var h;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,c.componentIndex);p&&(h=f)}),h}},t.prototype._dispatchZoomAction=function(e){var a=[];xv(e,function(n,i){a.push(j(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t}(Et),fG={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(rG(this.ecModel))}};function Tf(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function pG(r,t){r.setIconStatus("back",nG(t)>1?"emphasis":"normal")}function dG(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Af(Tf(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}cT("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=Tf(a),o=xi(r,i);xv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),xv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var v=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:vG+u+v};h[c]=v,n.push(h)}return n});var gG=hG;function yG(r){r.registerComponentModel(kz),r.registerComponentView(Bz),an("saveAsImage",Gz),an("magicType",Wz),an("dataView",eG),an("dataZoom",gG),an("restore",oG),ie(Rz)}var mG=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(le),SG=mG;function mb(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Sb(r){if(!!ke.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var xb=Sb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xG=Sb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function _b(r,t){if(!r)return t;t=rh(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function _G(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var bG=_b(xG,"transition"),Cf=_b(xb,"transform"),wG="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ke.transform3dSupported?"will-change:transform;":"");function AG(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function TG(r,t,e){if(!U(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Ia(t);var i=AG(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Cf+":",u;ce(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,v=o+n,h=v*Math.abs(Math.cos(c))+v*Math.abs(Math.sin(c)),f=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-v)/2)*100)/100;s+=";"+i+":-"+f+"px";var p=t+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'<div style="'+d.join("")+'"></div>'}function CG(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=ke.transformSupported?","+Cf+a:",left"+a+",top"+a),bG+":"+n}function am(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!ke.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=ke.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Cf+":"+o+";":[["top",0],["left",0],[xb,o]]}function DG(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=pe(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),w(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function MG(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),v=HS(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),t&&n&&a.push(CG(n,e)),i&&a.push("background-color:"+i),w(["width","color","radius"],function(f){var p="border-"+f,d=rh(p),g=r.get(d);g!=null&&a.push(p+":"+g+(f==="color"?"":"px"))}),a.push(DG(c)),v!=null&&a.push("padding:"+Oa(v).join("px ")+"px"),a.join(";")+";"}function nm(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&Cw(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var IG=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ke.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(U(i)?document.querySelector(i):mc(i)?i:K(i)&&i(t.getDom()));nm(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();Tw(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=_G(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=wG+MG(t,!this._firstShow,this._longHide)+am(i[0],i[1],!0)+("border-color:"+Ia(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(U(i)&&a.get("trigger")==="item"&&!mb(a)&&(s=TG(a,n,i)),U(t))o.innerHTML=t+s;else if(t){o.innerHTML="",B(t)||(t=[t]);for(var l=0;l<t.length;l++)mc(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(!!this.el){var a=this._styleCoord;if(nm(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=am(a[0],a[1]);w(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",ke.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),LG=IG,PG=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),om(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;J(t)&&ye(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new ue({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:HS(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=im(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;om(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Mr(i.borderWidth||0),s=im(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Mr(r){return Math.max(0,r)}function im(r){var t=Mr(r.shadowBlur||0),e=Mr(r.shadowOffsetX||0),a=Mr(r.shadowOffsetY||0);return{left:Mr(t-e),right:Mr(t+e),top:Mr(t-a),bottom:Mr(t+a)}}function om(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var RG=PG,EG=new de({shape:{x:-1,y:-1,width:2,height:2}}),kG=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(ke.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=Qw(n.get("renderMode"));this._tooltipContent=i==="richText"?new RG(a):new LG(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(ke.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Vn(this,"_updatePosition",50,"fixRate"):Vi(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");nb("itemTooltip",this._api,$(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||ke.node||!n.getDom())){var o=sm(i,n);this._ticket="";var s=i.dataByCoordSys,l=BG(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=EG;c.x=i.x,c.y=i.y,c.update(),q(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var v=ib(i,a),h=v.point[0],f=v.point[1];h!=null&&f!=null&&this._tryShow({offsetX:h,offsetY:f,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(sm(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var c=u.getData(),v=oi([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=q(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;pa(n,function(c){if(q(c).dataIndex!=null)return l=c,!0;if(q(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=$(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=oi([a.tooltipOption],i),l=this._renderMode,u=[],c=je("section",{blocks:[],noHeader:!0}),v=[],h=new $l;w(e,function(m){w(m.dataByAxis,function(S){var x=n.getComponent(S.axisDim+"Axis",S.axisIndex),_=S.value;if(!(!x||_==null)){var b=tb(_,x.axis,n,S.seriesDataIndices,S.valueLabelOpt),A=je("section",{header:b,noHeader:!Qi(b),sortBlocks:!0,blocks:[]});c.blocks.push(A),w(S.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=S.axisDim,M.axisIndex=S.axisIndex,M.axisType=S.axisType,M.axisId=S.axisId,M.axisValue=Ih(x.axis,{value:_}),M.axisValueLabel=b,M.marker=h.makeTooltipMarker("item",Ia(M.color),l);var I=Dp(C.formatTooltip(D,!0,null)),L=I.frag;if(L){var R=oi([C],i).get("valueFormatter");A.blocks.push(R?z({valueFormatter:R},L):L)}I.text&&v.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),v.reverse();var f=a.position,p=s.get("order"),d=Ep(c,h,l,p,n.get("useUTC"),s.get("textStyle"));d&&v.unshift(d);var g=l==="richText"?`

`:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,f,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],f,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=q(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,v=o.dataType,h=u.getData(v),f=this._renderMode,p=e.positionDefault,d=oi([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,v),m=new $l;y.marker=m.makeTooltipMarker("item",Ia(y.color),f);var S=Dp(u.formatTooltip(c,!1,v)),x=d.get("order"),_=d.get("valueFormatter"),b=S.frag,A=b?Ep(_?z({valueFormatter:_},b):b,m,f,x,i.get("useUTC"),d.get("textStyle")):S.text,T="item_"+u.name+"_"+c;this._showOrMove(d,function(){this._showTooltipContent(d,A,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=q(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=j(l),l.content=st(l.content));var v=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&v.push(h),v.push({formatter:l.content});var f=e.positionDefault,p=oi(v,this._tooltipModel,f?{position:f}:null),d=p.get("content"),g=Math.random()+"",y=new $l;this._showOrMove(p,function(){var m=j(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var v=this._tooltipContent;v.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var f=a,p=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),d=p.color;if(h)if(U(h)){var g=e.ecModel.get("useUTC"),y=B(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=h,m&&(f=oo(y.axisValue,f,g)),f=ah(f,n,!0)}else if(K(h)){var S=$(function(x,_){x===this._ticket&&(v.setContent(_,c,e,d,l),this._updatePosition(e,l,o,s,v,n,u))},this);this._ticket=i,f=h(n,i,S)}else f=h;v.setContent(f,c,e,d,l),v.show(e,d),this._updatePosition(e,l,o,s,v,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||B(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!B(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var v=o.getSize(),h=e.get("align"),f=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),K(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,c],contentSize:v.slice()})),B(a))n=H(a[0],u),i=H(a[1],c);else if(J(a)){var d=a;d.width=v[0],d.height=v[1];var g=$e(d,{width:u,height:c});n=g.x,i=g.y,h=null,f=null}else if(U(a)&&l){var y=VG(a,p,v,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=NG(n,i,o,u,c,h?null:20,f?null:20);n=y[0],i=y[1]}if(h&&(n-=lm(h)?v[0]/2:h==="right"?v[0]:0),f&&(i-=lm(f)?v[1]/2:f==="bottom"?v[1]:0),mb(e)){var y=OG(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},v=c.dataByAxis||[];o=o&&u.length===v.length,o&&w(u,function(h,f){var p=v[f]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&w(d,function(y,m){var S=g[m];o=o&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),i&&w(h.seriesDataIndices,function(y){var m=y.seriesIndex,S=a[m],x=i[m];S&&x&&x.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){ke.node||!a.getDom()||(Vi(this,"_updatePosition"),this._tooltipContent.dispose(),dv("itemTooltip",a))},t.type="tooltip",t}(Re);function oi(r,t,e){var a=t.ecModel,n;e?(n=new xe(e,a,a),n=new xe(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof xe&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new xe(o,n,a)))}return n}function sm(r,t){return r.dispatchAction||$(t.dispatchAction,t)}function NG(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function OG(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function VG(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function lm(r){return r==="center"||r==="middle"}function BG(r,t,e){var a=Vv(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=ro(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=q(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var zG=kG;function GG(r){ie(mo),r.registerComponentModel(SG),r.registerComponentView(zG),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},dt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},dt)}var FG=["rect","polygon","keep","clear"];function HG(r,t){var e=_e(r?r.brush:[]);if(!!e.length){var a=[];w(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;B(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),WG(s),t&&!s.length&&s.push.apply(s,FG)}}function WG(r){var t={};w(r,function(e){t[e]=1}),r.length=0,w(t,function(e,a){r.push(a)})}var um=w;function cm(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function _v(r,t,e){var a={};return um(t,function(i){var o=a[i]=n();um(r[i],function(s,l){if(!!tt.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new tt(u),l==="opacity"&&(u=j(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new tt(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function bb(r,t,e){var a;w(e,function(n){t.hasOwnProperty(n)&&cm(t[n])&&(a=!0)}),a&&w(e,function(n){t.hasOwnProperty(n)&&cm(t[n])?r[n]=j(t[n]):delete r[n]})}function $G(r,t,e,a,n,i){var o={};w(r,function(v){var h=tt.prepareVisualTypes(t[v]);o[v]=h});var s;function l(v){return ph(e,s,v)}function u(v,h){JS(e,s,v,h)}i==null?e.each(c):e.each([i],c);function c(v,h){s=i==null?v:h;var f=e.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=a.call(n,v),d=t[p],g=o[p],y=0,m=g.length;y<m;y++){var S=g[y];d[S]&&d[S].applyVisual(v,l,u)}}}function UG(r,t,e,a){var n={};return w(r,function(i){var o=tt.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(_){return ph(s,v,_)}function c(_,b){JS(s,v,_,b)}for(var v,h=s.getStore();(v=o.next())!=null;){var f=s.getRawDataItem(v);if(!(f&&f.visualMap===!1))for(var p=a!=null?h.get(l,v):v,d=e(p),g=t[d],y=n[d],m=0,S=y.length;m<S;m++){var x=y[m];g[x]&&g[x].applyVisual(p,u,c)}}}}}function YG(r){var t=r.brushType,e={point:function(a){return vm[t].point(a,e,r)},rect:function(a){return vm[t].rect(a,e,r)}};return e}var vm={lineX:hm(0),lineY:hm(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&la(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(la(a,n,i)||la(a,n+o,i)||la(a,n,i+s)||la(a,n+o,i+s)||we.create(r).contain(l[0],l[1])||vi(n,i,n+o,i,a)||vi(n,i,n,i+s,a)||vi(n+o,i,n+o,i+s,a)||vi(n,i+s,n+o,i+s,a))return!0}}};function hm(r){var t=["x","y"],e=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return si(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),si(s[0],o)||si(s[1],o)||si(o[0],s)||si(o[1],s)}}}}function si(r,t){return t[0]<=r&&r<=t[1]}var fm=["inBrush","outOfBrush"],tc="__ecBrushSelect",bv="__ecInBrushSelectEvent";function wb(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new Af(t.option,r);e.setInputRanges(t.areas,r)})}function ZG(r,t,e){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),wb(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:j(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,v=[],h=[],f=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=G(o.areas,function(_){var b=jG[_.brushType],A=Q({boundingRect:b?b(_):void 0},_);return A.selectors=YG(A),A}),g=_v(o.option,fm,function(_){_.mappingMethod="fixed"});B(c)&&w(c,function(_){v[_]=1});function y(_){return c==="all"||!!v[_]}function m(_){return!!_.length}r.eachSeries(function(_,b){var A=f[b]=[];_.subType==="parallel"?S(_,b):x(_,b,A)});function S(_,b){var A=_.coordinateSystem;p=p||A.hasAxisBrushed(),y(b)&&A.eachActiveState(_.getData(),function(T,C){T==="active"&&(h[C]=1)})}function x(_,b,A){if(!(!_.brushSelector||qG(o,b))&&(w(d,function(C){o.brushTargetManager.controlSeries(C,_,r)&&A.push(C),p=p||m(A)}),y(b)&&m(A))){var T=_.getData();T.each(function(C){pm(_,A,T,C)&&(h[C]=1)})}}r.eachSeries(function(_,b){var A={seriesId:_.id,seriesIndex:b,seriesName:_.name,dataIndex:[]};l.selected.push(A);var T=f[b],C=_.getData(),D=y(b)?function(M){return h[M]?(A.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return pm(_,T,C,M)?(A.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(b)?p:m(T))&&$G(fm,g,C,D)})}),XG(t,n,i,a,e)}function XG(r,t,e,a,n){if(!!n){var i=r.getZr();if(!i[bv]){i[tc]||(i[tc]=KG);var o=Vn(i,tc,e,t);o(r,a)}}}function KG(r,t){if(!r.isDisposed()){var e=r.getZr();e[bv]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[bv]=!1}}function pm(r,t,e,a){for(var n=0,i=t.length;n<i;n++){var o=t[n];if(r.brushSelector(a,e,o.selectors,o))return!0}}function qG(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(B(e)?ce(e,t)<0:t!==e)}var jG={rect:function(r){return dm(r.range)},polygon:function(r){for(var t,e=r.range,a=0,n=e.length;a<n;a++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[a];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&dm(t)}};function dm(r){return new we(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var JG=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new tf(a.getZr())).on("brush",$(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){wb(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:j(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:j(n),$from:a})},t.type="brush",t}(Re),QG=JG,eF="#ddd",tF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&bb(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:eF},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){!e||(this.areas=G(e,function(a){return gm(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=gm(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(le);function gm(r,t){return ne({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new xe(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var rF=tF,aF=["rect","polygon","lineX","lineY","keep","clear"],nF=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,w(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return w(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:aF.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Et),iF=nF;function oF(r){r.registerComponentView(QG),r.registerComponentModel(rF),r.registerPreprocessor(HG),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,ZG),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},dt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},dt),an("brush",iF)}var sF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(le),lF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=pe(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ue({style:Ae(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=c.getBoundingRect(),h=e.get("subtext"),f=new ue({style:Ae(s,{text:h,fill:s.getTextColor(),y:v.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!p&&!g,f.silent=!d&&!g,p&&c.on("click",function(){Ds(p,"_"+e.get("target"))}),d&&f.on("click",function(){Ds(d,"_"+e.get("subtarget"))}),q(c).eventData=q(f).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(f);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var S=$e(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};c.setStyle(x),f.setStyle(x),y=i.getBoundingRect();var _=S.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var A=new de({shape:{x:y.x-_[3],y:y.y-_[0],width:y.width+_[1]+_[3],height:y.height+_[0]+_[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(A)}},t.type="title",t}(Re);function uF(r){r.registerComponentModel(sF),r.registerComponentView(lF)}var cF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],w(a,function(u,c){var v=Ye(Cn(u),""),h;J(u)?(h=j(u),h.value=c):h=c,o.push(h),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new lt([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(le),ym=cF,Ab=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=Xr(ym.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(ym);Ze(Ab,pl.prototype);var vF=Ab,hF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Re),fF=hF,pF=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Gt),dF=pF,rc=Math.PI,mm=ve(),gF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return je("nameValue",{noName:!0,value:c})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=mF(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":U(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:rc/2},v=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),f=h.get("show",!0),p=f?h.get("itemSize"):0,d=f?h.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*rc/180;var m,S,x,_=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),A=f&&h.get("showPrevBtn",!0),T=f&&h.get("showNextBtn",!0),C=0,D=v;_==="left"||_==="bottom"?(b&&(m=[0,0],C+=g),A&&(S=[C,0],C+=g),T&&(x=[D-p,0],D-=g)):(b&&(m=[D-p,0],D-=g),A&&(S=[0,0],C+=g),T&&(x=[D-p,0],D-=g));var M=[C,D];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:S,nextBtnPosition:x,axisExtent:M,controlSize:p,controlGap:d}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Tn(),l=o.x,u=o.y+o.height;Aa(s,s,[-l,-u]),eo(s,s,-rc/2),Aa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),v=m(n.getBoundingRect()),h=m(i.getBoundingRect()),f=[n.x,n.y],p=[i.x,i.y];p[0]=f[0]=c[0][0];var d=e.labelPosOpt;if(d==null||U(d)){var g=d==="+"?0:1;S(f,v,c,1,g),S(p,h,c,1,1-g)}else{var g=d>=0?0:1;S(f,v,c,1,g),p[1]=f[1]+d}n.setPosition(f),i.setPosition(p),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,_,b,A,T){x[A]+=b[A][T]-_[A][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=yF(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new dF("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new te;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(!!i.get(["lineStyle","show"])){var s=new Je({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:z({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new Je({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],w(l,function(u){var c=n.dataToCoord(u.value),v=s.getItemModel(u.value),h=v.getModel("itemStyle"),f=v.getModel(["emphasis","itemStyle"]),p=v.getModel(["progress","itemStyle"]),d={x:c,y:0,onclick:$(o._changeTimeline,o,u.value)},g=Sm(v,h,a,d);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),kr(g);var y=q(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],w(u,function(c){var v=c.tickValue,h=l.getItemModel(v),f=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),y=new ue({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:$(o._changeTimeline,o,v),silent:!1,style:Ae(f,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Ae(p),y.ensureState("progress").style=Ae(d),a.add(y),kr(y),mm(y).dataIndex=v,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),v=i.get("inverse",!0);h(e.nextBtnPosition,"next",$(this._changeTimeline,this,v?"-":"+")),h(e.prevBtnPosition,"prev",$(this._changeTimeline,this,v?"+":"-")),h(e.playPosition,c?"stop":"play",$(this._handlePlayClick,this,!c),!0);function h(f,p,d,g){if(!!f){var y=hn(pe(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=SF(i,p+"Icon",m,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});S.ensureState("emphasis").style=u,a.add(S),kr(S)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(v){v.draggable=!0,v.drift=$(u._handlePointerDrag,u),v.ondragend=$(u._handlePointerDragend,u),xm(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){xm(v,u._progressLine,s,n,i)}};this._currentPointer=Sm(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=_t(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return Zt(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<n&&(n=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",mm(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(fF);function yF(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Th({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Hx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Hr}}function mF(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function SF(r,t,e,a){var n=a.style,i=In(r.get(["controlStyle",t]),a||{},new we(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function Sm(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=ze(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=ne({rectHover:!0,z2:100},a,!0);var u=Bn(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=Va(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function xm(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var xF=gF;function _F(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Q({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function bF(r){var t=r&&r.timeline;B(t)||(t=t?[t]:[]),w(t,function(e){!e||wF(e)})}function wF(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),_m(r),ca(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});ca(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!ca(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}w(r.data||[],function(n){J(n)&&!B(n)&&(!ca(n,"value")&&ca(n,"name")&&(n.value=n.name),_m(n))})}function _m(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};w(a,function(o,s){!i[s]&&!ca(n,s)&&(n[s]=o)}),e.label&&!ca(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function ca(r,t){return r.hasOwnProperty(t)}function AF(r){r.registerComponentModel(vF),r.registerComponentView(xF),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),_F(r),r.registerPreprocessor(bF)}function Df(r,t){if(!r)return!1;for(var e=B(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function qo(r){Ta(r,"label",["show"])}var jo=ve(),Tb=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(ke.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=jo(s)[o];if(!l||!l.data){jo(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&qo(l),w(l.data,function(c){c instanceof Array?(qo(c[0]),qo(c[1])):qo(c)}),u=this.createMarkerModelFromSeries(l,this,a),z(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),jo(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return je("section",{header:this.name,blocks:[je("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var n=pl.prototype.getDataParams.call(this,e,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,a){return jo(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(le);Ze(Tb,pl.prototype);var Ur=Tb,TF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ur),CF=TF;function wv(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function DF(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Jo(r,t,e,a,n,i){var o=[],s=gr(t,a),l=s?t.getCalculationInfo("stackResultDimension"):a,u=Mf(t,l,r),c=t.indicesOfNearest(l,u)[0];o[n]=t.get(e,c),o[i]=t.get(l,c);var v=t.get(a,c),h=Ut(t.get(a,c));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,v]}var ac={min:ee(Jo,"min"),max:ee(Jo,"max"),average:ee(Jo,"average"),median:ee(Jo,"median")};function Zi(r,t){if(!!t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!DF(t)&&!B(t.coord)&&B(n)){var i=Cb(t,e,a,r);if(t=j(t),t.type&&ac[t.type]&&i.baseAxis&&i.valueAxis){var o=ce(n,i.baseAxis.dim),s=ce(n,i.valueAxis.dim),l=ac[t.type](e,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!B(n))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)ac[u[c]]&&(u[c]=Mf(e,e.mapDimension(n[c]),u[c]));return t}}function Cb(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(MF(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function MF(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Xi(r,t){return r&&r.containData&&t.coord&&!wv(t)?r.containData(t.coord):!0}function IF(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!wv(t)&&!wv(e)?r.containZone(t.coord,e.coord):!0}function Db(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Vr(o,t[i])}:function(e,a,n,i){return Vr(e.value,t[i])}}function Mf(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var nc=ve(),LF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=Z()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){nc(s).keep=!1}),a.eachSeries(function(s){var l=Ur.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!nc(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){nc(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;w(e,function(i){var o=Ur.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?O0(l):Hv(l))})}})},t.type="marker",t}(Re),If=LF;function bm(r,t,e){var a=t.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=H(i.get("x"),e.getWidth()),l=H(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),c=r.get(a.dimensions[1],n);o=a.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var PF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Ur.getMarkerModelFromSeries(i,"markPoint");o&&(bm(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new co),v=RF(o,e,a);a.setData(v),bm(a.getData(),e,i),v.each(function(h){var f=v.getItemModel(h),p=f.getShallow("symbol"),d=f.getShallow("symbolSize"),g=f.getShallow("symbolRotate"),y=f.getShallow("symbolOffset"),m=f.getShallow("symbolKeepAspect");if(K(p)||K(d)||K(g)||K(y)){var S=a.getRawValue(h),x=a.getDataParams(h);K(p)&&(p=p(S,x)),K(d)&&(d=d(S,x)),K(g)&&(g=g(S,x)),K(y)&&(y=y(S,x))}var _=f.getModel("itemStyle").getItemStyle(),b=so(l,"color");_.fill||(_.fill=b),v.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:_})}),c.updateData(v),this.group.add(c.group),v.eachItemGraphicEl(function(h){h.traverse(function(f){q(f).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(If);function RF(r,t,e){var a;r?a=G(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return z(z({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new lt(a,e),i=G(e.get("data"),ee(Zi,t));r&&(i=Se(i,ee(Xi,r)));var o=Db(!!r,a);return n.initData(i,null,o),n}var EF=PF;function kF(r){r.registerComponentModel(CF),r.registerComponentView(EF),r.registerPreprocessor(function(t){Df(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var NF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ur),OF=NF,Qo=ve(),VF=function(r,t,e,a){var n=r.getData(),i;if(B(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Qe(a.yAxis,a.xAxis);else{var u=Cb(a,n,t,r);s=u.valueAxis;var c=Ah(n,u.valueDataDim);l=Mf(n,c,o)}var v=s.dim==="x"?0:1,h=1-v,f=j(a),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var d=e.get("precision");d>=0&&me(l)&&(l=+l.toFixed(Math.min(d,20))),f.coord[v]=p.coord[v]=l,i=[f,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Zi(r,i[0]),Zi(r,i[1]),z({},i[2])];return g[2].type=g[2].type||null,ne(g[2],g[0]),ne(g[2],g[1]),g};function qs(r){return!isNaN(r)&&!isFinite(r)}function wm(r,t,e,a){var n=1-r,i=a.dimensions[r];return qs(t[n])&&qs(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function BF(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(wm(1,e,a,r)||wm(0,e,a,r)))return!0}return Xi(r,t[0])&&Xi(r,t[1])}function ic(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=i.dimensions,v=r.get(c[0],t),h=r.get(c[1],t);s=i.dataToPoint([v,h])}if(Ba(i,"cartesian2d")){var f=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;qs(r.get(c[0],t))?s[0]=f.toGlobalCoord(f.getExtent()[e?0:1]):qs(r.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var zF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Ur.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Qo(o).from,u=Qo(o).to;l.each(function(c){ic(l,c,!0,i,n),ic(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Kh);this.group.add(c.group);var v=GF(o,e,a),h=v.from,f=v.to,p=v.line;Qo(a).from=h,Qo(a).to=f,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),v.from.each(function(x){S(h,x,!0),S(f,x,!1)}),p.each(function(x){var _=p.getItemModel(x).getModel("lineStyle").getLineStyle();p.setItemLayout(x,[h.getItemLayout(x),f.getItemLayout(x)]),_.stroke==null&&(_.stroke=h.getItemVisual(x,"style").fill),p.setItemVisual(x,{fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(x,"symbolOffset"),toSymbolRotate:f.getItemVisual(x,"symbolRotate"),toSymbolSize:f.getItemVisual(x,"symbolSize"),toSymbol:f.getItemVisual(x,"symbol"),style:_})}),c.updateData(p),v.line.eachItemGraphicEl(function(x){q(x).dataModel=a,x.traverse(function(_){q(_).dataModel=a})});function S(x,_,b){var A=x.getItemModel(_);ic(x,_,b,e,i);var T=A.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=so(l,"color")),x.setItemVisual(_,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:pe(A.get("symbolOffset",!0),m[b?0:1]),symbolRotate:pe(A.get("symbolRotate",!0),y[b?0:1]),symbolSize:pe(A.get("symbolSize"),g[b?0:1]),symbol:pe(A.get("symbol",!0),d[b?0:1]),style:T})}this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(If);function GF(r,t,e){var a;r?a=G(r&&r.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return z(z({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new lt(a,e),i=new lt(a,e),o=new lt([],e),s=G(e.get("data"),ee(VF,t,r,e));r&&(s=Se(s,ee(BF,r)));var l=Db(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}var FF=zF;function HF(r){r.registerComponentModel(OF),r.registerComponentView(FF),r.registerPreprocessor(function(t){Df(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var WF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ur),$F=WF,es=ve(),UF=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Zi(r,n),s=Zi(r,i),l=o.coord,u=s.coord;l[0]=Qe(l[0],-1/0),l[1]=Qe(l[1],-1/0),u[0]=Qe(u[0],1/0),u[1]=Qe(u[1],1/0);var c=Pv([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function js(r){return!isNaN(r)&&!isFinite(r)}function Am(r,t,e,a){var n=1-r;return js(t[n])&&js(e[n])}function YF(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Ba(r,"cartesian2d")?e&&a&&(Am(1,e,a)||Am(0,e,a))?!0:IF(r,n,i):Xi(r,n)||Xi(r,i)}function Tm(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=H(o.get(e[0]),n.getWidth()),u=H(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],t),v=r.getValues(["x1","y1"],t),h=i.clampData(c),f=i.clampData(v),p=[];e[0]==="x0"?p[0]=h[0]>f[0]?v[0]:c[0]:p[0]=h[0]>f[0]?c[0]:v[0],e[1]==="y0"?p[1]=h[1]>f[1]?v[1]:c[1]:p[1]=h[1]>f[1]?c[1]:v[1],s=a.getMarkerPosition(p,e,!0)}else{var d=r.get(e[0],t),g=r.get(e[1],t),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Ba(i,"cartesian2d")){var m=i.getAxis("x"),S=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);js(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):js(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Cm=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ZF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Ur.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(Cm,function(v){return Tm(s,l,v,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new te});this.group.add(c.group),this.markKeep(c);var v=XF(o,e,a);a.setData(v),v.each(function(h){var f=G(Cm,function(T){return Tm(v,h,T,e,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(v.get("x0",h)),p.parse(v.get("x1",h))],S=[d.parse(v.get("y0",h)),d.parse(v.get("y1",h))];_t(m),_t(S);var x=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),_=!x;v.setItemLayout(h,{points:f,allClipped:_});var b=v.getItemModel(h).getModel("itemStyle").getItemStyle(),A=so(l,"color");b.fill||(b.fill=A,U(b.fill)&&(b.fill=_s(b.fill,.4))),b.stroke||(b.stroke=A),v.setItemVisual(h,"style",b)}),v.diff(es(c).data).add(function(h){var f=v.getItemLayout(h);if(!f.allClipped){var p=new At({shape:{points:f.points}});v.setItemGraphicEl(h,p),c.group.add(p)}}).update(function(h,f){var p=es(c).data.getItemGraphicEl(f),d=v.getItemLayout(h);d.allClipped?p&&c.group.remove(p):(p?he(p,{shape:{points:d.points}},a,h):p=new At({shape:{points:d.points}}),v.setItemGraphicEl(h,p),c.group.add(p))}).remove(function(h){var f=es(c).data.getItemGraphicEl(h);c.group.remove(f)}).execute(),v.eachItemGraphicEl(function(h,f){var p=v.getItemModel(f),d=v.getItemVisual(f,"style");h.useStyle(v.getItemVisual(f,"style")),at(h,qe(p),{labelFetcher:a,labelDataIndex:f,defaultText:v.getName(f)||"",inheritColor:U(d.fill)?_s(d.fill,1):"#000"}),rt(h,p),Ne(h,null,null,p.get(["emphasis","disabled"])),q(h).dataModel=a}),es(c).data=v,c.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(If);function XF(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var c=t.getData(),v=c.getDimensionInfo(c.mapDimension(u))||{};return z(z({},v),{name:u,ordinalMeta:null})});n=G(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new lt(n,e)}else n=[{name:"value",type:"float"}],a=new lt(n,e);var s=G(e.get("data"),ee(UF,t,r,e));r&&(s=Se(s,ee(YF,r)));var l=r?function(u,c,v,h){var f=u.coord[Math.floor(h/2)][h%2];return Vr(f,n[h])}:function(u,c,v,h){return Vr(u.value,n[h])};return a.initData(s,null,l),a.hasItemOption=!0,a}var KF=ZF;function qF(r){r.registerComponentModel($F),r.registerComponentView(KF),r.registerPreprocessor(function(t){Df(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var jF=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},JF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),B(a)&&w(a,function(i,o){U(i)&&(i={type:i}),a[o]=ne(i,jF(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var v=l.legendVisualProvider,h=v.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):c=!0}else c=!0;c&&Ov(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=Z(),s=G(i,function(l){return(U(l)||me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new xe(l,this,this.ecModel))},this);this._data=Se(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;w(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ce(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(le),Av=JF,Qa=ee,Tv=w,ts=te,QF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ts),this.group.add(this._selectorGroup=new ts),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),v={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),f=$e(c,v,h),p=this.layoutInner(e,o,f,i,l,u),d=$e(Q({width:p.width,height:p.height},c),v,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=db(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=Z(),v=a.get("selectedMode"),h=[];n.eachRawSeries(function(f){!f.get("legendHoverLink")&&h.push(f.id)}),Tv(a.getData(),function(f,p){var d=f.get("name");if(!this.newlineDisabled&&(d===""||d===`
`)){var g=new ts;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!c.get(d))if(y){var m=y.getData(),S=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),_=m.getVisual("style"),b=this._createItem(y,d,p,f,a,e,S,_,x,v,i);b.on("click",Qa(Dm,d,null,i,h)).on("mouseover",Qa(Cv,y.name,null,i,h)).on("mouseout",Qa(Dv,y.name,null,i,h)),n.ssr&&b.eachChild(function(A){var T=q(A);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),c.set(d,!0)}else n.eachRawSeries(function(A){if(!c.get(d)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),D=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=g0(D.fill);I&&I[3]===0&&(I[3]=.2,D=z(z({},D),{fill:rs(I,"rgba")}));var L=this._createItem(A,d,p,f,a,e,{},D,M,v,i);L.on("click",Qa(Dm,null,d,i,h)).on("mouseover",Qa(Cv,null,d,i,h)).on("mouseout",Qa(Dv,null,d,i,h)),n.ssr&&L.eachChild(function(R){var P=q(R);P.seriesIndex=A.seriesIndex,P.dataIndex=p,P.ssrType="legend"}),c.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();Tv(e,function(u){var c=u.type,v=new ue({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var h=a.getModel("selectorLabel"),f=a.getModel(["emphasis","selectorLabel"]);at(v,{normal:h,emphasis:f},{defaultText:u.title}),kr(v)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,v,h){var f=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),S=i.get("icon");c=S||c||"roundRect";var x=e5(c,i,l,u,f,g,h),_=new ts,b=i.getModel("textStyle");if(K(e.getLegendIcon)&&(!S||S==="inherit"))_.add(e.getLegendIcon({itemWidth:p,itemHeight:d,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var A=S==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;_.add(t5({itemWidth:p,itemHeight:d,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,D=o.get("formatter"),M=a;U(D)&&D?M=D.replace("{name}",a!=null?a:""):K(D)&&(M=D(a));var I=g?b.getTextColor():i.get("inactiveColor");_.add(new ue({style:Ae(b,{text:M,x:T,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new de({shape:_.getBoundingRect(),style:{fill:"transparent"}}),R=i.getModel("tooltip");return R.get("show")&&Ea({el:L,componentModel:o,itemName:a,itemTooltipOption:R.option}),_.add(L),_.eachChild(function(P){P.silent=!0}),L.silent=!v,this.getContentGroup().add(_),kr(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ya(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),v=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ya("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),f=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?f[d]+=c[g]+p:v[d]+=h[g]+p,f[1-d]+=c[y]/2-h[y]/2,u.x=f[0],u.y=f[1],l.x=v[0],l.y=v[1];var S={x:0,y:0};return S[g]=c[g]+p+h[g],S[y]=Math.max(c[y],h[y]),S[m]=Math.min(0,h[m]+f[1-d]),S}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Re);function e5(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Tv(g,function(m,S){g[S]==="inherit"&&(g[S]=y[S])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:gn(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),f.stroke==="auto"&&(f.stroke=a.fill),!i){var p=t.get("inactiveBorderWidth"),d=u[c];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function t5(r){var t=r.icon||"roundRect",e=ze(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Dm(r,t,e,a){Dv(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Cv(r,t,e,a)}function Mb(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function Cv(r,t,e,a){Mb(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Dv(r,t,e,a){Mb(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}var Ib=QF;function r5(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function li(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),Mm(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){w(n,function(l,u){s[l?"select":"unSelect"](u)}),Mm(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function Mm(r,t){var e=t||{};return w(r.getData(),function(a){var n=a.get("name");if(!(n===`
`||n==="")){var i=r.isSelected(n);Y(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function a5(r){r.registerAction("legendToggleSelect","legendselectchanged",ee(li,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ee(li,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ee(li,"inverseSelect")),r.registerAction("legendSelect","legendselected",ee(li,"select")),r.registerAction("legendUnSelect","legendunselected",ee(li,"unSelect"))}function Lb(r){r.registerComponentModel(Av),r.registerComponentView(Ib),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,r5),r.registerSubTypeDefaulter("legend",function(){return"plain"}),a5(r)}var n5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=Rn(e);r.prototype.init.call(this,e,a,n),Im(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Im(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Xr(Av.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Av);function Im(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Fr(t,e,{type:"box",ignoreSize:!!n})}var i5=n5,Lm=te,oc=["width","height"],sc=["x","y"],o5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Lm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Lm)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,v=a.get("pageIconSize",!0),h=B(v)?v:[v,v];p("pagePrev",0);var f=a.getModel("pageTextStyle");c.add(new ue({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=In(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:$(u._pageGo,u,y,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=d,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=oc[u],v=sc[u],h=oc[1-u],f=sc[1-u];o&&ya("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=j(n);o&&(y[c]=n[c]-d[c]-p);var m=this._layoutContentAndController(e,i,y,u,c,h,f,v);if(o){if(s==="end")g[u]+=m[c]+p;else{var S=d[c]+p;g[u]-=S,m[v]-=S}m[c]+=d[c]+p,g[1-u]+=m[f]+m[h]/2-d[h]/2,m[h]=Math.max(m[h],d[h]),m[f]=Math.min(m[f],d[f]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),v=this._containerGroup,h=this._controllerGroup;ya(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),ya("horizontal",h,e.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=f[o]>n[o],g=[-f.x,-f.y];a||(g[i]=c[u]);var y=[0,0],m=[-p.x,-p.y],S=pe(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var x=e.get("pageButtonPosition",!0);x==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+S}m[1-i]+=f[s]/2-p[s]/2,c.setPosition(g),v.setPosition(y),h.setPosition(m);var _={x:0,y:0};if(_[o]=d?n[o]:f[o],_[s]=Math.max(f[s],p[s]),_[l]=Math.min(0,p[l]+m[1-i]),v.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-S,0),b[s]=_[s],v.setClipPath(new de({shape:b})),v.__rectSize=b[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return A.pageIndex!=null&&he(c,{x:A.contentPosition[0],y:A.contentPosition[1]},d?e:null),this._updatePageInfoView(e,A),_},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var v=c+"DataIndex",h=a[v]!=null,f=n.childOfName(c);f&&(f.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),f.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=oc[o],l=sc[o],u=this._findTargetItemIndex(a),c=n.children(),v=c[u],h=c.length,f=h?1:0,p={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return p;var d=x(v);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,S=null;g<=h;++g)S=x(c[g]),(!S&&m.e>y.s+i||S&&!_(S,y.s))&&(m.i>y.i?y=m:y=S,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=S;for(var g=u-1,y=d,m=d,S=null;g>=-1;--g)S=x(c[g]),(!S||!_(m,S.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=S;return p;function x(b){if(b){var A=b.getBoundingRect(),T=A[l]+b[l];return{s:T,e:T+A[s],i:b.__legendDataIndex}}}function _(b,A){return b.e>=A&&b.s<=A+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a!=null?a:i},t.type="legend.scroll",t}(Ib),s5=o5;function l5(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function u5(r){ie(Lb),r.registerComponentModel(i5),r.registerComponentView(s5),l5(r)}function c5(r){ie(Lb),ie(u5)}var v5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Xr(Yi.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Yi),h5=v5,Lf=ve();function f5(r,t,e){Lf(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function p5(r,t){for(var e=Lf(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Pb(e,o))}}}function Pb(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function d5(r,t){var e={model:t,containsPoint:ee(y5,t),dispatchAction:ee(g5,r),dataZoomInfoMap:null,controller:null},a=e.controller=new go(r.getZr());return w(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(!!i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function g5(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function y5(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function m5(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function S5(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=Lf(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=Z());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=hb(i);w(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,d5(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Pb(n,i);return}var c=m5(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Vn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var x5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),f5(n,e,{pan:$(lc.pan,this),zoom:$(lc.zoom,this),scrollMove:$(lc.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){p5(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(_f),lc={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=uc[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ga(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Pm(function(r,t,e,a,n,i){var o=uc[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Pm(function(r,t,e,a,n,i){var o=uc[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Pm(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(!!s){var l=r(o,s,t,e,a,n);if(Ga(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var uc={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},_5=x5;function Rb(r){bf(r),r.registerComponentModel(h5),r.registerComponentView(_5),S5(r)}var b5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Xr(Yi.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Yi),w5=b5,ui=de,Rm=7,A5=1,cc=30,T5=7,ci="horizontal",Em="vertical",C5=5,D5=["line","bar","candlestick","scatter"],M5={easing:"cubicOut",duration:100,delay:0},I5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=$(this._onBrush,this),this._onBrushEnd=$(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Vn(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Vi(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new te;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?T5:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===ci?{right:s.width-o.x-o.width,top:s.height-cc-Rm-i,width:o.width,height:cc}:{right:Rm,top:o.y,width:cc,height:o.height},u=Rn(e.option);w(["right","top","width","height"],function(v){u[v]==="ph"&&(u[v]=l[v])});var c=$e(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Em&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===ci&&!o?{scaleY:l?1:-1,scaleX:1}:n===ci&&o?{scaleY:l?1:-1,scaleX:-1}:n===Em&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new ui({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new ui({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:$(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var f=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,S=Math.round(o.count()/a[0]),x;o.each([l],function(C,D){if(S>0&&D%S){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:ge(C,v,f,!0);M&&!x&&D?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&x&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,x=M}),u=this._shadowPolygonPts=d,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var _=this.dataZoomModel;function b(C){var D=_.getModel(C?"selectedDataBackground":"dataBackground"),M=new te,I=new At({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new mt({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var A=0;A<3;A++){var T=b(A===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!n&&!(a!==!0&&ce(D5,u.get("type"))<0)){var c=i.getComponent(Rr(o),s).axis,v=L5(o),h,f=u.coordinateSystem;v!=null&&f.getOtherAxis&&(h=f.getOtherAxis(c).inverse),v=u.getData().mapDimension(v),n={thisAxis:c,series:u,thisDim:o,otherDim:v,otherAxisInverse:h}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,v=l.get("brushSelect"),h=a.filler=new ui({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new ui({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:A5,fill:"rgba(0,0,0,0)"}})),w([0,1],function(S){var x=l.get("handleIcon");!Ls[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var _=ze(x,-1,0,2,2,null,!0);_.attr({cursor:km(this._orient),draggable:!0,drift:$(this._onDragMove,this,S),ondragend:$(this._onDragEnd,this),onmouseover:$(this._showDataInfo,this,!0),onmouseout:$(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),A=l.get("handleSize");this._handleHeight=H(A,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),kr(_);var T=l.get("handleColor");T!=null&&(_.style.fill=T),o.add(n[S]=_);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;e.add(i[S]=new ue({silent:!0,invisible:!M,style:Ae(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var f=h;if(v){var p=H(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new de({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=ze(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));f=a.moveZone=new de({invisible:!0,shape:{y:s[1]-m,height:p+m}}),f.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:km(this._orient),drift:$(this._onDragMove,this,"all"),ondragstart:$(this._showDataInfo,this,!0),ondragend:$(this._onDragEnd,this),onmouseover:$(this._showDataInfo,this,!0),onmouseout:$(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[ge(e[0],[0,100],a,!0),ge(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ga(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?ge(s.minSpan,l,o,!0):null,s.maxSpan!=null?ge(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=_t([ge(i[0],o,l,!0),ge(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=_t(n.slice()),o=this._size;w([0,1],function(f){var p=a.handles[f],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[f]+(f?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var v=l[c],h=v.getClipPath();h||(h=new de,v.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,v=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var h=_t(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var d=Nr(n.handles[p].parent,this.group),g=ol(p===0?"right":"left",d),y=this._handleWidth/2+C5,m=Zt([h[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===ci?"middle":g,align:o===ci?g:"center",text:s[p]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return K(i)?i(e,s):U(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,zr(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Zt([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new He(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=_t([ge(n.x,o,s,!0),ge(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(zr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ui({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),c=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:v[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?M5:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=hb(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(_f);function L5(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function km(r){return r==="vertical"?"ns-resize":"ew-resize"}var P5=I5;function Eb(r){r.registerComponentModel(w5),r.registerComponentView(P5),bf(r)}function R5(r){ie(Rb),ie(Eb)}var E5={get:function(r,t,e){var a=j((k5[r]||{})[t]);return e&&B(a)?a[a.length-1]:a}},k5={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},kb=E5,Nm=tt.mapVisual,N5=tt.eachVisual,O5=B,Om=w,V5=_t,B5=ge,z5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&bb(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=$(e,this),this.controllerVisuals=_v(this.option.controller,a,e),this.targetVisuals=_v(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=_e(e),a},t.prototype.eachTargetSeries=function(e,a){w(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],B(e)&&(e=e.slice(),u=!0);var c=a?e:u?[v(e[0]),v(e[1])]:v(e);if(U(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(K(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+c[1]:e[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function v(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=V5([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ne(i,n),ne(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(v){O5(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:e.get("gradientColor")}}function u(v,h,f){var p=v[h],d=v[f];p&&!d&&(d=v[f]={},Om(p,function(g,y){if(!!tt.isValidType(y)){var m=kb.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function c(v){var h=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,f=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";Om(this.stateList,function(y){var m=this.itemSize,S=v[y];S||(S=v[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=h&&j(h)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=f&&j(f)||(s?m[0]:[m[0],m[0]])),S.symbol=Nm(S.symbol,function(b){return b==="none"?g:b});var x=S.symbolSize;if(x!=null){var _=-1/0;N5(x,function(b){b>_&&(_=b)}),S.symbolSize=Nm(x,function(b){return B5(b,[0,_],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(le),Js=z5,Vm=[20,140],G5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=Vm[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=Vm[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):B(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=_t((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=e)&&(a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=Bm(this,"outOfRange",this.getExtent()),n=Bm(this,"inRange",this.option.range.slice()),i=[];function o(f,p){i.push({value:f,color:e(f,p)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Xr(Js.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Js);function Bm(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var F5=G5,H5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Oa(a.get("padding")||0),i=e.getBoundingRect();e.add(new de({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function c(f,p){s[f]=p}var v=o.controllerVisuals[i||o.getValueState(e)],h=tt.prepareVisualTypes(v);return w(h,function(f){var p=v[f];n.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=v.__alphaForOpacity),tt.dependsOn(f,a)&&p&&p.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api;hl(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Re),Nb=H5,zm=[["left","right","width"],["top","bottom","height"]];function Ob(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=zm[o],l=[0,null,10],u={},c=0;c<3;c++)u[zm[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var v=[["x","width",3],["y","height",0]][o],h=$e(u,i,a.padding);return s[(h.margin[v[2]]||0)+h[v[0]]+h[v[1]]*.5<i[v[1]]*.5?0:1]}function ds(r,t){return w(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var jt=ge,W5=w,Gm=Math.min,vc=Math.max,$5=12,U5=6,Y5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=$(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(!!a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new ue({style:Ae(f,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":v,align:h==="horizontal"?v:"center",text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=Ob(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new te;u.add(c),c.add(n.outOfRange=Fm()),c.add(n.inRange=Fm(null,s?Wm(this._orient):null,$(this._dragHandle,this,"all",!1),$(this._dragHandle,this,"all",!0))),c.setClipPath(new de({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("\u56FD"),h=vc(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=$(this._dragHandle,this,n,!1),u=$(this._dragHandle,this,n,!0),c=hn(e.get("handleSize"),i[0]),v=ze(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=Wm(this._orient);v.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){zr(y.event)}}),v.x=i[0]/2,v.useStyle(e.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),ha(v,!0),a.add(v);var f=this.visualMapModel.textStyleModel,p=new ue({cursor:h,draggable:!0,drift:l,onmousemove:function(y){zr(y.event)},ondragend:u,style:Ae(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[c,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},t.prototype._createIndicator=function(e,a,n,i,o){var s=hn(e.get("indicatorSize"),n[0]),l=ze(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Dt){var c=l.style;l.useStyle(z({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,h=new ue({silent:!0,invisible:!0,style:Ae(v,{x:0,y:0,text:""})});this.group.add(h);var f=[(o==="horizontal"?i/2:U5)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(!!this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Hm(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[jt(a[0],n,i,!0),jt(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];Ga(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[jt(i[0],o,s,!0),jt(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Ji(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new te(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(!!this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);W5([0,1],function(v){var h=o[v];h.setStyle("fill",a.handlesColor[v]),h.y=e[v];var f=jt(e[v],[0,l[1]],u,!0),p=this.getControllerVisual(f,"symbolSize");h.scaleX=h.scaleY=p/l[0],h.x=l[0]-p/2;var d=Zt(n.handleLabelPoints[v],Nr(h,this.group));if(this._orient==="horizontal"){var g=c==="left"||c==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[v].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,v=c.indicator;if(!!v){v.attr("invisible",!1);var h={convertOpacityToAlpha:!0},f=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),d=jt(e,s,u,!0),g=l[0]-p/2,y={x:v.x,y:v.y};v.y=d,v.x=g;var m=Zt(c.indicatorLabelPoint,Nr(v,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";S.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?x:"middle",align:b?"center":x});var A={x:g,y:d,style:{fill:f}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(A,C),S.animateTo(T,C)}else v.attr(A),S.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=Gm(vc(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(!!n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=Gm(vc(o[0],e),o[1]);var l=Z5(n,s,o),u=[e-l,e+l],c=jt(e,o,s,!0),v=[jt(u[0],o,s,!0),jt(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(c,v[1],"< ",l):v[1]===1/0?this._showIndicator(c,v[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var h=this._hoverLinkDataIndices,f=[];(a||Hm(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var p=Kw(h,f);this._dispatchHighDown("downplay",ds(p[0],n)),this._dispatchHighDown("highlight",ds(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(pa(e.target,function(l){var u=q(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(!!i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ds(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Nr(a,i?null:this.group);return B(e)?Zt(e,o,n):ol(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(Nb);function Fm(r,t,e,a){return new At({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){zr(n.event)},ondragend:a})}function Z5(r,t,e){var a=$5/2,n=r.get("hoverLinkDataSize");return n&&(a=jt(n,t,e,!0)/2),a}function Hm(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function Wm(r){return r==="vertical"?"ns-resize":"ew-resize"}var X5=Y5,K5={type:"selectDataRange",event:"dataRangeSelected",update:"update"},q5=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},j5=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(UG(a.stateList,a.targetVisuals,$(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta($(J5,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function J5(r,t,e,a){for(var n=t.targetVisuals[a],i=tt.prepareVisualTypes(n),o={color:so(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,v,h)}return o.color;function v(f){return o[f]}function h(f,p){o[f]=p}}var $m=w;function Q5(r){var t=r&&r.visualMap;B(t)||(t=t?[t]:[]),$m(t,function(e){if(!!e){en(e,"splitList")&&!en(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&B(a)&&$m(a,function(n){J(n)&&(en(n,"start")&&!en(n,"min")&&(n.min=n.start),en(n,"end")&&!en(n,"max")&&(n.max=n.end))})}})}function en(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var Um=!1;function Vb(r){Um||(Um=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(K5,q5),w(j5,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Q5))}function Bb(r){r.registerComponentModel(F5),r.registerComponentView(X5),Vb(r)}var e3=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],t3[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=j(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=j(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=tt.listVisualTypes(),i=this.isCategory();w(e.pieces,function(s){w(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),w(a,function(s,l){var u=!1;w(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&w(this.stateList,function(c){(e[c]||(e[c]={}))[l]=kb.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,w(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;w(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=j(e)},t.prototype.getValueState=function(e){var a=tt.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=tt.findPieceIndex(l,n);c===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,v){var h=i.getRepresentValue({interval:c});v||(v=i.getValueState(h));var f=e(h,v);c[0]===-1/0?n[0]=f:c[1]===1/0?n[1]=f:a.push({value:c[0],color:f},{value:c[1],color:f})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return w(s,function(c){var v=c.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=Xr(Js.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Js),t3={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),_c(r),w(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;w(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),Ym(t,r)},pieces:function(r){var t=this.option;w(t.pieces,function(e,a){J(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],v=0;v<2;v++){for(var h=[["gte","gt","min"],["lte","lt","max"]][v],f=0;f<3&&o[v]==null;f++)o[v]=e[h[f]],s[v]=l[f],c[v]=f===2;o[v]==null&&(o[v]=u[v])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=tt.retrieveVisuals(e),r.push(n)},this),Ym(t,r),_c(r),w(r,function(e){var a=e.close,n=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function Ym(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var r3=e3,a3=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),v=c.endsText,h=Qe(a.get("showLabel",!0),!v),f=!a.get("selectedMode");v&&this._renderEndsText(e,v[0],u,h,l),w(c.viewPieceList,function(p){var d=p.piece,g=new te;g.onclick=$(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=a.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],f),h){var m=this.visualMapModel.getValueState(y);g.add(new ue({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:f}))}e.add(g)},this),v&&this._renderEndsText(e,v[1],u,h,l),ya(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:ds(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return Ob(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(!!a){var s=new te,l=this.visualMapModel.textStyleModel;s.add(new ue({style:Ae(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=G(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=ze(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(!!i){var o=j(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(Nb),n3=a3;function zb(r){r.registerComponentModel(r3),r.registerComponentView(n3),Vb(r)}function i3(r){ie(Bb),ie(zb)}var o3={label:{enabled:!0},decal:{show:!1}},Zm=ve(),s3={};function l3(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=j(o3);ne(a.label,r.getLocaleModel().get("aria"),!1),ne(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var v=Z();r.eachSeries(function(h){if(!h.isColorBySeries()){var f=v.get(h.type);f||(f={},v.set(h.type,f)),Zm(h).scope=f}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(K(h.enableAriaDecal)){h.enableAriaDecal();return}var f=h.getData();if(h.isColorBySeries()){var m=Ec(h.ecModel,h.name,s3,r.getSeriesCount()),S=f.getVisual("decal");f.setVisual("decal",x(S,m))}else{var p=h.getRawData(),d={},g=Zm(h).scope;f.each(function(_){var b=f.getRawIndex(_);d[b]=_});var y=p.count();p.each(function(_){var b=d[_],A=p.getName(_)||_+"",T=Ec(h.ecModel,A,g,y),C=f.getItemVisual(b,"decal");f.setItemVisual(b,"decal",x(C,T))})}function x(_,b){var A=_?z(z({},b),_):b;return A.dirty=!0,A}})}}function i(){var u=t.getZr().dom;if(!!u){var c=r.getLocaleModel().get("aria"),v=e.getModel("label");if(v.option=Q(v.option,c),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var h=r.getSeriesCount(),f=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,d=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var S=[],x=h>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(x,{seriesCount:h}),r.eachSeries(function(T,C){if(C<d){var D=void 0,M=T.get("name"),I=M?"withName":"withoutName";D=h>1?v.get(["series","multiple",I]):v.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>f){var R=v.get(["data","partialData"]);D+=o(R,{displayCnt:f})}else D+=v.get(["data","allData"]);for(var P=v.get(["data","separator","middle"]),k=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),N=[],V=0;V<L.count();V++)if(V<f){var F=L.getName(V),W=O?Se(L.getValues(V),function(re,ae){return ce(O,ae)===-1}):L.getValues(V),X=v.get(["data",F?"withName":"withoutName"]);N.push(o(X,{name:F,value:W.join(P)}))}D+=N.join(P)+k,S.push(D)}});var _=v.getModel(["series","multiple","separator"]),b=_.get("middle"),A=_.get("end");g+=S.join(b)+A,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!U(u))return u;var v=u;return w(c,function(h,f){v=v.replace(new RegExp("\\{\\s*"+f+"\\s*\\}","g"),h)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function u3(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},w(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function c3(r){r.registerPreprocessor(u3),r.registerVisual(r.PRIORITY.VISUAL.ARIA,l3)}var Xm={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},v3=function(){function r(t){var e=this._condVal=U(t)?new RegExp(t):Dw(t)?t:null;if(e==null){var a="";ye(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return U(e)?this._condVal.test(t):me(e)?this._condVal.test(t+""):!1},r}(),h3=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),f3=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),p3=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),d3=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),g3=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r}();function Pf(r,t){if(r===!0||r===!1){var e=new h3;return e.value=r,e}var a="";return Gb(r)||ye(a),r.and?Km("and",r,t):r.or?Km("or",r,t):r.not?y3(r,t):m3(r,t)}function Km(r,t,e){var a=t[r],n="";B(a)||ye(n),a.length||ye(n);var i=r==="and"?new f3:new p3;return i.children=G(a,function(o){return Pf(o,e)}),i.children.length||ye(n),i}function y3(r,t){var e=r.not,a="";Gb(e)||ye(a);var n=new d3;return n.child=Pf(e,t),n.child||ye(a),n}function m3(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=Ue(r),o=r.parser,s=o?IS(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Y(Xm,u)?Xm[u]:u,v=r[u],h=s?s(v):v,f=XT(c,h)||c==="reg"&&new v3(h);f||ye(e),n.push(f)}}n.length||ye(e);var p=new g3;return p.valueGetterParam=a,p.valueParser=s,p.getValue=t.getValue,p.subCondList=n,p}function Gb(r){return J(r)&&!bn(r)}var S3=function(){function r(t,e){this._cond=Pf(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function x3(r,t){return new S3(r,t)}var _3={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=x3(r.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Y(s,"dimension")||ye(l);var c=t.getDimensionInfo(u);return c||ye(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},b3={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=_e(e);n.length||ye(a);var i=[];w(n,function(c){var v=c.dimension,h=c.order,f=c.parser,p=c.incomparable;if(v==null&&ye(a),h!=="asc"&&h!=="desc"&&ye(a),p&&p!=="min"&&p!=="max"){var d="";ye(d)}if(h!=="asc"&&h!=="desc"){var g="";ye(g)}var y=t.getDimensionInfo(v);y||ye(a);var m=f?IS(f):null;f&&!m&&ye(a),i.push({dimIdx:y.index,parser:m,comparator:new PS(h,p)})});var o=t.sourceFormat;o!==ut&&o!==zt&&ye(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,v){for(var h=0;h<i.length;h++){var f=i[h],p=t.retrieveValueFromItem(c,f.dimIdx),d=t.retrieveValueFromItem(v,f.dimIdx);f.parser&&(p=f.parser(p),d=f.parser(d));var g=f.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function w3(r){r.registerTransform(_3),r.registerTransform(b3)}var A3=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new NS(this),Pp(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Pp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:rr},t}(le),T3=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Re);function C3(r){r.registerComponentModel(A3),r.registerComponentView(T3)}function D3(r){r.registerPainter("svg",Mw)}function M3(r){r.registerPainter("canvas",Iw)}function qm(r){return B(r[0])}function jm(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var I3={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=kw(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function hc(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=Mn("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;qm(r)&&(u=r,c=t),qm(t)&&(u=t,c=r);function v(y,m,S,x,_){var b=y.many,A=y.one;if(b.length===1&&!_){var T=m?b[0]:A,C=m?A:b[0];if(Lw(T))v({many:[T],one:C},!0,S,x,!0);else{var D=s?Q({delay:s(S,x)},l):l;Pw(T,C,D),i(T,C,T,C,D)}}else for(var M=Q({dividePath:I3[e],individualDelay:s&&function(O,N,V,F){return s(O+S,x)}},l),I=m?Rw(b,A,M):Ew(A,b,M),L=I.fromIndividuals,R=I.toIndividuals,P=L.length,k=0;k<P;k++){var D=s?Q({delay:s(k,P)},l):l;i(L[k],R[k],m?b[k]:y.one,m?y.one:b[k],D)}}for(var h=u?u===r:r.length>t.length,f=u?jm(c,u):jm(h?t:r,[h?r:t]),p=0,d=0;d<f.length;d++)p+=f[d].many.length;for(var g=0,d=0;d<f.length;d++)v(f[d],h,g,p),g+=f[d].many.length}function sa(r){if(!r)return[];if(B(r)){for(var t=[],e=0;e<r.length;e++)t.push(sa(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof Ie&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var Fb=1e4,L3=0,Jm=1,Qm=2,P3=ve();function R3(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function E3(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function e0(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=R3(r,n);if(i){var o=E3(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function t0(r){var t=[];return w(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>Fb))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:e0(a,o,n,!1),childGroupId:e0(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function fc(r,t,e){r.traverse(function(a){a instanceof Ie&&Me(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function pc(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function tn(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function k3(r,t,e){var a=Mn("update",e,t);a&&r.traverse(function(n){if(n instanceof wa){var i=MA(n);i&&n.animateFrom({style:i},a)}})}function N3(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Hb(r,t,e){var a=t0(r),n=t0(t);function i(S,x,_,b,A){(_||S)&&x.animateFrom({style:_&&_!==S?z(z({},_.style),S.style):S.style},A)}var o=!1,s=L3,l=Z(),u=Z();a.forEach(function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var c=0;c<n.length;c++){var v=n[c].groupId;if(u.get(v)){s=Jm;break}var h=n[c].childGroupId;if(h&&l.get(h)){s=Qm;break}}function f(S,x){return function(_){var b=_.data,A=_.dataIndex;return x?b.getId(A):S?s===Jm?_.childGroupId:_.groupId:s===Qm?_.childGroupId:_.groupId}}var p=N3(a,n),d={};if(!p)for(var c=0;c<n.length;c++){var g=n[c],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(S,x){var _=a[x],b=n[S],A=b.data.hostModel,T=_.data.getItemGraphicEl(_.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(T===C){C&&k3(C,b.dataIndex,A);return}T&&d[T.id]||C&&(tn(C),T?(tn(T),pc(T),o=!0,hc(sa(T),sa(C),b.divide,A,S,i)):fc(C,A,S))}new dr(a,n,f(!0,p),f(!1,p),null,"multiple").update(m).updateManyToOne(function(S,x){var _=n[S],b=_.data,A=b.hostModel,T=b.getItemGraphicEl(_.dataIndex),C=Se(G(x,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==T&&!d[D.id]});T&&(tn(T),C.length?(w(C,function(D){tn(D),pc(D)}),o=!0,hc(sa(C),sa(T),_.divide,A,S,i)):fc(T,A,_.dataIndex))}).updateOneToMany(function(S,x){var _=a[x],b=_.data.getItemGraphicEl(_.dataIndex);if(!(b&&d[b.id])){var A=Se(G(S,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b}),T=n[S[0]].data.hostModel;A.length&&(w(A,function(C){return tn(C)}),b?(tn(b),pc(b),o=!0,hc(sa(b),sa(A),_.divide,T,S[0],i)):w(A,function(C){return fc(C,T,S[0])}))}}).updateManyToMany(function(S,x){new dr(x,S,function(_){return a[_].data.getId(a[_].dataIndex)},function(_){return n[_].data.getId(n[_].dataIndex)}).update(function(_,b){m(S[_],x[b])}).execute()}).execute(),o&&w(t,function(S){var x=S.data,_=x.hostModel,b=_&&e.getViewOfSeriesModel(_),A=Mn("update",_,0);b&&_.isAnimationEnabled()&&A&&A.duration>0&&b.group.traverse(function(T){T instanceof Ie&&!T.animators.length&&T.animateFrom({style:{opacity:0}},A)})})}function r0(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function a0(r){return B(r)?r.sort().join(","):r}function Ir(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function O3(r,t){var e=Z(),a=Z(),n=Z();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=r0(i),c=a0(u);a.set(c,{dataGroupId:s,data:l}),B(u)&&w(u,function(v){n.set(v,{key:c,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=r0(i),u=a0(l),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Ir(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Ir(s),data:s}]});else if(B(l)){var v=[];w(l,function(p){var d=a.get(p);d.data&&v.push({dataGroupId:d.dataGroupId,divide:Ir(d.data),data:d.data})}),v.length&&e.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:Ir(s)}]})}else{var h=n.get(l);if(h){var f=e.get(h.key);f||(f={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ir(h.data)}],newSeries:[]},e.set(h.key,f)),f.newSeries.push({dataGroupId:o,data:s,divide:Ir(s)})}}}}),e}function n0(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function V3(r,t,e,a){var n=[],i=[];w(_e(r.from),function(o){var s=n0(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ir(t.oldData[s]),groupIdDim:o.dimension})}),w(_e(r.to),function(o){var s=n0(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ir(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&Hb(n,i,a)}function B3(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){w(_e(a.seriesTransition),function(n){w(_e(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][us]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=P3(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)w(_e(i),function(f){V3(f,n,a,e)});else{var o=O3(n,a);w(o.keys(),function(f){var p=o.get(f);Hb(p.oldSeries,p.newSeries,e)})}w(a.updatedSeries,function(f){f[us]&&(f[us]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],v=0;v<s.length;v++){var h=s[v].getData();h.count()<Fb&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),c.push(h))}})}ie([M3]);ie([D3]);ie([ZI,vL,AL,vP,MP,f2,$2,LR,nE,fE,AE,Mk,tN,pN,kN,FN,iO,dO,MO,OO,KO,kV]);ie(aB);ie(VB);ie(F_);ie(ez);ie(D1);ie(sz);ie(gz);ie(yG);ie(GG);ie(mo);ie(oF);ie(uF);ie(AF);ie(kF);ie(HF);ie(qF);ie(c5);ie(R5);ie(Rb);ie(Eb);ie(i3);ie(Bb);ie(zb);ie(c3);ie(w3);ie(C3);ie(B3);ie(wI);export{uF as a,GG as b,aB as c,VB as d,G3 as e,c3 as f,D1 as g,vL as h,c5 as i,ZI as j,AL as k,f2 as l,MP as m,D3 as n,MO as o,DP as p,yG as q,R5 as r,i3 as s,AF as t,ie as u,sz as v,gz as w,TD as x,fE as y};
