mirror of
https://github.com/kuaifan/dootask.git
synced 2026-11-02 07:50:33 +00:00
10 lines
230 KiB
JavaScript
Vendored
10 lines
230 KiB
JavaScript
Vendored
import{i as O,r as Wr,m as H,a as E,c as V,e as S,b as _e,d as Ye,f as Z,g as B,h as ue,j as Jn,k as pu,l as R,n as W,o as ln,p as at,P as We,q as na,s as G,t as gu,Z as un,u as mu,v as yu,w as _u,x as Su,y as qo,z as ei,T as wu,A as Tu,B as ar,C as pe,D as Pt,E as xu,F as Ci,G as jo,S as fn,R as Qo,H as Jo,I as cn,J as Ue,L as yr,K as es,M as Di,N as pt,O as Ee,Q as Cu,U as Du,V as bu,W as Mu,X as or,Y as $r,_ as ne,$ as _r,a0 as he,a1 as z,a2 as gt,a3 as me,a4 as Au,a5 as we,a6 as Te,a7 as ze,a8 as Y,a9 as ti,aa as Iu,ab as it,ac as Pu,ad as Lu,ae as Ru,af as ts,ag as Eu,ah as hn,ai as ia,aj as xn,ak as ku,al as Ou,am as aa,an as Cn,ao as Nu,ap as Bu,aq as Vu,ar as sr,as as rs,at as Fu,au as zu,av as Hu,aw as Uu,ax as Gu,ay as oa,az as Yu,aA as Wu}from"./zrender.6f9469d4.js";import{_ as fe}from"./tslib.891692d0.js";var sa=1e-4,ns=20;function $u(t){return t.replace(/^\s+|\s+$/g,"")}function Xu(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,f=s-o;if(l===0)return f===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*f+o}function te(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return O(t)?$u(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Ku(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),ns),t=(+t).toFixed(e),r?t:+t}function la(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return Zu(t)}function Zu(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function qu(t,e){var r=Wr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=H(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=H(i,function(h){return Math.floor(h)}),s=Wr(o,function(h,d){return h+d},0),l=H(i,function(h,d){return h-o[d]});s<a;){for(var f=Number.NEGATIVE_INFINITY,c=null,u=0,v=l.length;u<v;++u)l[u]>f&&(f=l[u],c=u);++o[c],l[c]=0,++s}return H(o,function(h){return h/n})}function ju(t,e){var r=Math.max(la(t),la(e)),n=t+e;return r>ns?n:Ku(n,r)}function is(t){var e=Math.PI*2;return(t%e+e)%e}function Xr(t){return t>-sa&&t<sa}var Qu=/^(?:(\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 vn(t){if(t instanceof Date)return t;if(O(t)){var e=Qu.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function Kr(t){var e=parseFloat(t);return e==t&&(e!==0||!O(t)||t.indexOf("x")<=0)?e:NaN}function Ju(t){return!isNaN(Kr(t))}function as(){return Math.round(Math.random()*9)}function os(t,e){return e===0?t:os(e,t%e)}function ua(t,e){return t==null?e:e==null?t:t*e/os(t,e)}function ye(t){throw new Error(t)}var ss="series\0",ef="\0_ec_\0";function de(t){return t instanceof Array?t:t==null?[]:[t]}function ri(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var fa=["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 dn(t){return B(t)&&!E(t)&&!(t instanceof Date)?t.value:t}function tf(t){return B(t)&&!(t instanceof Array)}function rf(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();S(e,function(l,f){if(!B(l)){e[f]=null;return}});var s=nf(t,o,r);return(n||i)&&af(s,t,o,e),n&&of(s,e),n||i?sf(s,e,i):a&&lf(s,e),uf(s),s}function nf(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||lr(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function af(t,e,r,n){S(n,function(i,a){if(!(!i||i.id==null)){var o=Qt(i.id),s=r.get(o);if(s!=null){var l=t[s];Ye(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function of(t,e){S(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!lr(r)&&!lr(a)&&ls("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function sf(t,e,r){S(e,function(n){if(!!n){for(var i,a=0;(i=t[a])&&(i.newOption||lr(i.existing)||i.existing&&n.id!=null&&!ls("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function lf(t,e){S(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function uf(t){var e=V();S(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),S(t,function(r){var n=r.newOption;Ye(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),S(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(!!B(a)){if(o.name=a.name!=null?Qt(a.name):i?i.name:ss+n,i)o.id=Qt(i.id);else if(a.id!=null)o.id=Qt(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function ls(t,e,r){var n=Re(e[t],null),i=Re(r[t],null);return n!=null&&i!=null&&n===i}function Qt(t){return Re(t,"")}function Re(t,e){return t==null?e:O(t)?t:ue(t)||Jn(t)?t+"":e}function us(t){var e=t.name;return!!(e&&e.indexOf(ss))}function lr(t){return t&&t.id!=null&&Qt(t.id).indexOf(ef)===0}function ff(t,e,r){S(t,function(n){var i=n.newOption;B(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=cf(e,i,n.existing,r))})}function cf(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Sr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return E(e.dataIndex)?H(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return E(e.name)?H(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function re(){var t="__ec_inner_"+hf++;return function(e){return e[t]||(e[t]={})}}var hf=as();function Dn(t,e,r){var n=bi(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(f,c){var u=wr(t,c,f,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=u.models,s[c+"Model"]=u.models[0]}),s}function bi(t,e){var r;if(O(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=V(),a={},o=!1;return S(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var f=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=f[1],u=(f[2]||"").toLowerCase();if(!(!c||!u||e&&e.includeMainTypes&&_e(e.includeMainTypes,c)<0)){o=o||!!c;var v=i.get(c)||i.set(c,{});v[u]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Mi={useDefault:!0,enableAll:!1,enableNone:!1};function wr(t,e,r,n){n=n||Mi;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Ye(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ye(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function fs(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function vf(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function df(t){return t==="auto"?Z.domSupported?"html":"richText":t||"html"}var pf=".",lt="___EC__COMPONENT__CONTAINER___",cs="___EC__EXTENDED_CLASS___";function Le(t){var e={main:"",sub:""};if(t){var r=t.split(pf);e.main=r[0]||"",e.sub=r[1]||""}return e}function gf(t){Ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function mf(t){return!!(t&&t[cs])}function Ai(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return yf(n)?i=function(a){fe(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},pu(i,this)),R(i.prototype,r),i[cs]=!0,i.extend=this.extend,i.superCall=wf,i.superApply=Tf,i.superClass=n,i}}function yf(t){return W(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function hs(t,e){t.extend=e.extend}var _f=Math.round(Math.random()*10);function Sf(t){var e=["__\0is_clz",_f++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function wf(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function Tf(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Ii(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){gf(i),n.prototype.type=i;var a=Le(i);if(!a.sub)e[a.main]=n;else if(a.sub!==lt){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[lt]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=Le(n),a=[],o=e[i.main];return o&&o[lt]?S(o,function(s,l){l!==lt&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=Le(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return S(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=Le(n),a=e[i.main];return a&&a[lt]};function r(n){var i=e[n.main];return(!i||!i[lt])&&(i=e[n.main]={},i[lt]=!0),i}}function ur(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&_e(i,l)>=0||a&&_e(a,l)<0)){var f=n.getShallow(l,e);f!=null&&(o[t[s][0]]=f)}}return o}}var xf=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Cf=ur(xf),Df=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Cf(this,e,r)},t}(),Q=re(),bf=function(t,e,r,n){if(n){var i=Q(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Q(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},ca=1,ha={},vs=re(),Pi=re(),ds=0,Li=1,Ri=2,ke=["emphasis","blur","select"],Zr=["normal","emphasis","blur","select"],Mf=10,Af=9,vt="highlight",Br="downplay",Jt="select",Vr="unselect",er="toggleSelect";function Tt(t){return t!=null&&t!=="none"}function pn(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function ps(t){pn(t,"emphasis",Ri)}function gs(t){t.hoverState===Ri&&pn(t,"normal",ds)}function Ei(t){pn(t,"blur",Li)}function ms(t){t.hoverState===Li&&pn(t,"normal",ds)}function If(t){t.selected=!0}function Pf(t){t.selected=!1}function va(t,e,r){e(t,r)}function $e(t,e,r){va(t,e,r),t.isGroup&&t.traverse(function(n){va(n,e,r)})}function Lf(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<t.animators.length;o++){var f=t.animators[o];f.__fromStateTransition&&f.__fromStateTransition.indexOf(r)<0&&f.targetName==="style"&&f.saveTo(a,e)}return a}function Rf(t,e,r,n){var i=r&&_e(r,"select")>=0,a=!1;if(t instanceof We){var o=vs(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Tt(s)||Tt(l)){n=n||{};var f=n.style||{};f.fill==="inherit"?(a=!0,n=R({},n),f=R({},f),f.fill=s):!Tt(f.fill)&&Tt(s)?(a=!0,n=R({},n),f=R({},f),f.fill=na(s)):!Tt(f.stroke)&&Tt(l)&&(a||(n=R({},n),f=R({},f)),f.stroke=na(l)),n.style=f}}if(n&&n.z2==null){a||(n=R({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c!=null?c:Mf)}return n}function Ef(t,e,r){if(r&&r.z2==null){r=R({},r);var n=t.z2SelectLift;r.z2=t.z2+(n!=null?n:Af)}return r}function kf(t,e,r){var n=_e(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:Lf(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=R({},r),o=R({opacity:n?i:a.opacity*.1},o),r.style=o),r}function bn(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return Rf(this,t,e,r);if(t==="blur")return kf(this,t,r);if(t==="select")return Ef(this,t,r)}return r}function Of(t){t.stateProxy=bn;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=bn),r&&(r.stateProxy=bn)}function da(t,e){!ws(t,e)&&!t.__highByOuter&&$e(t,ps)}function pa(t,e){!ws(t,e)&&!t.__highByOuter&&$e(t,gs)}function ni(t,e){t.__highByOuter|=1<<(e||0),$e(t,ps)}function ii(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&$e(t,gs)}function Nf(t){$e(t,Ei)}function ys(t){$e(t,ms)}function _s(t){$e(t,If)}function Ss(t){$e(t,Pf)}function ws(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ts(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Pi(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(f){ms(f)}),s&&r.push(a)),o.isBlured=!1}),S(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function ai(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(f,c){for(var u=0;u<c.length;u++){var v=f.getItemGraphicEl(c[u]);v&&ys(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(f){var c=o===f,u=f.coordinateSystem;u&&u.master&&(u=u.master);var v=u&&s?u===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!v||e==="series"&&c)){var h=n.getViewOfSeriesModel(f);if(h.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||Ei(g)}),ln(e))a(f.getData(),e);else if(B(e))for(var d=at(e),p=0;p<d.length;p++)a(f.getData(d[p]),e[d[p]]);l.push(f),Pi(f).isBlured=!0}}),i.eachComponent(function(f,c){if(f!=="series"){var u=n.getViewOfComponentModel(c);u&&u.toggleBlurSeries&&u.toggleBlurSeries(l,!0,i)}})}}function oi(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(!!n){Pi(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Ei(a)})}}}function Bf(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(!!i){var a=Sr(i,e);a=(E(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var f=Q(o);ai(n,f.focus,f.blurScope,r)}else{var c=t.get(["emphasis","focus"]),u=t.get(["emphasis","blurScope"]);c!=null&&ai(n,c,u,r)}}}function ki(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,f=0;f<s.length;f++)if(Q(s[f]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Vf(t,e,r){var n=Q(t),i=ki(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&oi(n.componentMainType,n.componentIndex,r),S(a,function(s){return da(s,e)})):(ai(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&oi(n.componentMainType,n.componentIndex,r),da(t,e))}function Ff(t,e,r){Ts(r);var n=Q(t),i=ki(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?S(i,function(a){return pa(a,e)}):pa(t,e)}function zf(t,e,r){if(!!li(e)){var n=e.dataType,i=t.getData(n),a=Sr(i,e);E(a)||(a=[a]),t[e.type===er?"toggleSelect":e.type===Jt?"select":"unselect"](a,n)}}function ga(t){var e=t.getAllData();S(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?_s(a):Ss(a)})})}function Hf(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();S(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Uf(t,e,r){xs(t,!0),$e(t,Of),Wf(t,e,r)}function Gf(t){xs(t,!1)}function Yf(t,e,r,n){n?Gf(t):Uf(t,e,r)}function Wf(t,e,r){var n=Q(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var ma=["emphasis","blur","select"],$f={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xf(t,e,r,n){r=r||"itemStyle";for(var i=0;i<ma.length;i++){var a=ma[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=n?n(o):o[$f[r]]()}}function xs(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function si(t){return!!(t&&t.__highDownDispatcher)}function Kf(t){var e=ha[t];return e==null&&ca<=32&&(e=ha[t]=ca++),e}function li(t){var e=t.type;return e===Jt||e===Vr||e===er}function ya(t){var e=t.type;return e===vt||e===Br}function Zf(t){var e=vs(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var qf=re();function jf(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var f=void 0,c=void 0,u=void 0;n?(f=G(n.duration,200),c=G(n.easing,"cubicOut"),u=0):(f=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),u=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(f=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(u=a.delay)),W(u)&&(u=u(r,i)),W(f)&&(f=f(r));var v={duration:f||0,delay:u,easing:c};return v}else return null}function Oi(t,e,r,n,i,a,o){var s=!1,l;W(i)?(o=a,a=i,i=null):B(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var f=t==="leave";f||e.stopAnimation("leave");var c=jf(t,n,i,f?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var u=c.duration,v=c.delay,h=c.easing,d={duration:u,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!f,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function fr(t,e,r,n,i,a){Oi("update",t,e,r,n,i,a)}function Fr(t,e,r,n,i,a){Oi("enter",t,e,r,n,i,a)}function tr(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Cs(t,e,r,n,i,a){tr(t)||Oi("leave",t,e,r,n,i,a)}function _a(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Cs(t,{style:{opacity:0}},e,r,n)}function Ds(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||_a(i,e,r,n)}):_a(t,e,r,n)}function Qf(t){qf(t).oldStyle=t.style}var qr=Math.max,jr=Math.min,ui={};function Jf(t){return We.extend(t)}var ec=xu;function tc(t,e){return ec(t,e)}function Ae(t,e){ui[t]=e}function rc(t){if(ui.hasOwnProperty(t))return ui[t]}function Ni(t,e,r,n){var i=gu(t,e);return r&&(n==="center"&&(r=Ms(r,i.getBoundingRect())),As(i,r)),i}function bs(t,e,r){var n=new un({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Ms(e,a))}}});return n}function Ms(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var nc=mu;function As(t,e){if(!!t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Bi(t,e){return yu(t,t,{lineWidth:e}),t}function ic(t){return _u(t.shape,t.shape,t.style),t}var ac=Su;function oc(t,e){for(var r=qo([]);t&&t!==e;)ei(r,t.getLocalTransform(),r),t=t.parent;return r}function Vi(t,e,r){return e&&!ln(e)&&(e=wu.getLocalTransform(e)),r&&(e=Tu([],e)),ar([],t,e)}function sc(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Vi(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Sa(t){return!t.isGroup}function lc(t){return t.shape!=null}function uc(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){Sa(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return lc(o)&&(s.shape=R({},o.shape)),s}var a=n(t);e.traverse(function(o){if(Sa(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),fr(o,l,r,Q(o).dataIndex)}}})}function fc(t,e){return H(t,function(r){var n=r[0];n=qr(n,e.x),n=jr(n,e.x+e.width);var i=r[1];return i=qr(i,e.y),i=jr(i,e.y+e.height),[n,i]})}function cc(t,e){var r=qr(t.x,e.x),n=jr(t.x+t.width,e.x+e.width),i=qr(t.y,e.y),a=jr(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Is(t,e,r){var n=R({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),pe(i,r),new un(n)):Ni(t.replace("path://",""),n,r,"center")}function hc(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Ps(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ps(t,e,r,n,i,a,o,s){var l=r-t,f=n-e,c=o-i,u=s-a,v=Mn(c,u,l,f);if(vc(v))return!1;var h=t-i,d=e-a,p=Mn(h,d,l,f)/v;if(p<0||p>1)return!1;var g=Mn(h,d,c,u)/v;return!(g<0||g>1)}function Mn(t,e,r,n){return t*n-r*e}function vc(t){return t<=1e-6&&t>=-1e-6}function Fi(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=O(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&S(at(l),function(c){Pt(s,c)||(s[c]=l[c],s.$vars.push(c))});var f=Q(t.el);f.componentMainType=a,f.componentIndex=o,f.tooltipConfig={name:n,option:pe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function wa(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ls(t,e){if(t)if(E(t))for(var r=0;r<t.length;r++)wa(t[r],e);else wa(t,e)}Ae("circle",Ci);Ae("ellipse",jo);Ae("sector",fn);Ae("ring",Qo);Ae("polygon",Jo);Ae("polyline",cn);Ae("rect",Ue);Ae("line",yr);Ae("bezierCurve",es);Ae("arc",Di);var dc=Object.freeze(Object.defineProperty({__proto__:null,updateProps:fr,initProps:Fr,removeElement:Cs,removeElementWithFadeOut:Ds,isElementRemoved:tr,extendShape:Jf,extendPath:tc,registerShape:Ae,getShapeClass:rc,makePath:Ni,makeImage:bs,mergePath:nc,resizePath:As,subPixelOptimizeLine:Bi,subPixelOptimizeRect:ic,subPixelOptimize:ac,getTransform:oc,applyTransform:Vi,transformDirection:sc,groupTransition:uc,clipPointsByRect:fc,clipRectByRect:cc,createIcon:Is,linePolygonIntersect:hc,lineLineIntersect:Ps,setTooltipConfig:Fi,traverseElements:Ls,Group:pt,Image:un,Text:Ee,Circle:Ci,Ellipse:jo,Sector:fn,Ring:Qo,Polygon:Jo,Polyline:cn,Rect:Ue,Line:yr,BezierCurve:es,Arc:Di,IncrementalDisplayable:Cu,CompoundPath:Du,LinearGradient:bu,RadialGradient:Mu,BoundingRect:or,OrientedBoundingRect:$r,Point:ne,Path:We},Symbol.toStringTag,{value:"Module"})),gn={};function pc(t,e){for(var r=0;r<ke.length;r++){var n=ke[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Ta(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=W(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},f=0;f<ke.length;f++){var c=ke[f],u=e[c];l[c]=G(n?n.getFormattedLabel(i,c,null,a,u&&u.get("formatter")):null,s)}return l}function gc(t,e,r,n){r=r||gn;for(var i=t instanceof Ee,a=!1,o=0;o<Zr.length;o++){var s=e[Zr[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Ee,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var f=Ta(r,e),c=e.normal,u=!!c.getShallow("show"),v=cr(c,n&&n.normal,r,!1,!i);v.text=f.normal,i||t.setTextConfig(xa(c,r,!1));for(var o=0;o<ke.length;o++){var h=ke[o],s=e[h];if(s){var d=l.ensureState(h),p=!!G(s.getShallow("show"),u);if(p!==u&&(d.ignore=!p),d.style=cr(s,n&&n[h],r,!0,!i),d.style.text=f[h],!i){var g=t.ensureState(h);g.textConfig=xa(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!u,l.useStyle(v),l.dirty(),r.enableTextSetter&&(wc(l).setLabelText=function(m){var y=Ta(r,e,m);pc(l,y)})}else l&&(l.ignore=!0);t.dirty()}function mc(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<ke.length;n++){var i=ke[n];r[i]=t.getModel([i,e])}return r}function cr(t,e,r,n,i){var a={};return yc(a,t,r,n,i),e&&R(a,e),a}function xa(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=G(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function yc(t,e,r,n,i){r=r||gn;var a=e.ecModel,o=a&&a.option.textStyle,s=_c(e),l;if(s){l={};for(var f in s)if(s.hasOwnProperty(f)){var c=e.getModel(["rich",f]);Ma(l[f]={},c,o,r,n,i,!1,!0)}}l&&(t.rich=l);var u=e.get("overflow");u&&(t.overflow=u);var v=e.get("minMargin");v!=null&&(t.margin=v),Ma(t,e,o,r,n,i,!0,!1)}function _c(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||gn).rich;if(r){e=e||{};for(var n=at(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Ca=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Da=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ba=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ma(t,e,r,n,i,a,o,s){r=!i&&r||gn;var l=n&&n.inheritColor,f=e.getShallow("color"),c=e.getShallow("textBorderColor"),u=G(e.getShallow("opacity"),r.opacity);(f==="inherit"||f==="auto")&&(l?f=l:f=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(f=f||r.color,c=c||r.textBorderColor),f!=null&&(t.fill=f),c!=null&&(t.stroke=c);var v=G(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var h=G(e.getShallow("textBorderType"),r.textBorderType);h!=null&&(t.lineDash=h);var d=G(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!i&&u==null&&!s&&(u=n&&n.defaultOpacity),u!=null&&(t.opacity=u),!i&&!a&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<Ca.length;p++){var g=Ca[p],m=G(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<Da.length;p++){var g=Da[p],m=e.getShallow(g);m!=null&&(t[g]=m)}if(t.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(t.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<ba.length;p++){var g=ba[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var _=e.getShallow("borderType");_!=null&&(t.borderDash=_),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function Sc(t,e){var r=e&&e.getModel("textStyle");return _r([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var wc=re(),Tc=["textStyle","color"],An=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],In=new Ee,xc=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(Tc):null)},t.prototype.getFont=function(){return Sc({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<An.length;n++)r[An[n]]=this.getShallow(An[n]);return In.useStyle(r),In.update(),In.getBoundingRect()},t}(),Cc=xc,Rs=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Dc=ur(Rs),bc=function(){function t(){}return t.prototype.getLineStyle=function(e){return Dc(this,e)},t}(),Es=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Mc=ur(Es),Ac=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return Mc(this,e,r)},t}(),mt=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){he(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(z(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Z.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(!!e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Ai(mt);Sf(mt);gt(mt,bc);gt(mt,Ac);gt(mt,Df);gt(mt,Cc);var ve=mt,Ic=Math.round(Math.random()*10);function mn(t){return[t||"",Ic++].join("_")}function Pc(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Le(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Le(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function Lc(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var f=r(o),c=f.graph,u=f.noEntryList,v={};for(S(a,function(y){v[y]=!0});u.length;){var h=u.pop(),d=c[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),S(d.successor,p?m:g)}S(v,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&u.push(y)}function m(y){v[y]=!0,g(y)}};function r(a){var o={},s=[];return S(a,function(l){var f=n(o,l),c=f.originalDeps=e(l),u=i(c,a);f.entryCount=u.length,f.entryCount===0&&s.push(l),S(u,function(v){_e(f.predecessor,v)<0&&f.predecessor.push(v);var h=n(o,v);_e(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return S(a,function(l){_e(o,l)>=0&&s.push(l)}),s}}var Rc={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:". "}}}},Ec={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:""}}}},Qr="ZH",zi="EN",At=zi,zr={},Hi={},ks=Z.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||At).toUpperCase();return t.indexOf(Qr)>-1?Qr:At}():At;function Os(t,e){t=t.toUpperCase(),Hi[t]=new ve(e),zr[t]=e}function kc(t){if(O(t)){var e=zr[t.toUpperCase()]||{};return t===Qr||t===zi?z(e):he(z(e),z(zr[At]),!1)}else return he(z(t),z(zr[At]),!1)}function Oc(t){return Hi[t]}function Nc(){return Hi[At]}Os(zi,Rc);Os(Qr,Ec);function Ze(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ns(t,e,r,n){var i=vn(t),a=i[Bc(r)](),o=i[Vc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Fc(r)](),f=i["get"+(r?"UTC":"")+"Day"](),c=i[zc(r)](),u=(c-1)%12+1,v=i[Hc(r)](),h=i[Uc(r)](),d=i[Gc(r)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof ve?n:Oc(n||ks)||Nc(),y=m.getModel("time"),_=y.get("month"),w=y.get("monthAbbr"),x=y.get("dayOfWeek"),T=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ze(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Ze(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ze(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[f]).replace(/{ee}/g,T[f]).replace(/{e}/g,f+"").replace(/{HH}/g,Ze(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ze(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Ze(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ze(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ze(d,3)).replace(/{S}/g,d+"")}function Bc(t){return t?"getUTCFullYear":"getFullYear"}function Vc(t){return t?"getUTCMonth":"getMonth"}function Fc(t){return t?"getUTCDate":"getDate"}function zc(t){return t?"getUTCHours":"getHours"}function Hc(t){return t?"getUTCMinutes":"getMinutes"}function Uc(t){return t?"getUTCSeconds":"getSeconds"}function Gc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Yc(t){if(!Ju(t))return O(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Bs(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ui=Au;function fi(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&_r(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?vn(t):t;if(isNaN(+l)){if(s)return"-"}else return Ns(l,n,r)}if(e==="ordinal")return Jn(t)?i(t):ue(t)&&a(t)?t+"":"-";var f=Kr(t);return a(f)?Yc(f):Jn(t)?i(t):typeof t=="boolean"?t+"":"-"}var Aa=["a","b","c","d","e","f","g"],Pn=function(t,e){return"{"+t+(e==null?"":e)+"}"};function Vs(t,e,r){E(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Aa[a];t=t.replace(Pn(o),Pn(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var f=e[s][i[l]];t=t.replace(Pn(Aa[l],s),r?me(f):f)}return t}function Wc(t,e){var r=O(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+me(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+me(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function hr(t,e){return e=e||"transparent",O(t)?t:B(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Hr=S,$c=["left","right","top","bottom","width","height"],br=[["width","left","right"],["height","top","bottom"]];function Fs(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,f){var c=l.getBoundingRect(),u=e.childAt(f+1),v=u&&u.getBoundingRect(),h,d;if(t==="horizontal"){var p=c.width+(v?-v.x+c.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}we(Fs,"vertical");we(Fs,"horizontal");function zs(t,e,r){r=Ui(r||0);var n=e.width,i=e.height,a=te(t.left,n),o=te(t.top,i),s=te(t.right,n),l=te(t.bottom,i),f=te(t.width,n),c=te(t.height,i),u=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(f)&&(f=n-s-v-a),isNaN(c)&&(c=i-l-u-o),h!=null&&(isNaN(f)&&isNaN(c)&&(h>n/i?f=n*.8:c=i*.8),isNaN(f)&&(f=h*c),isNaN(c)&&(c=f/h)),isNaN(a)&&(a=n-s-f-v),isNaN(o)&&(o=i-l-c-u),t.left||t.right){case"center":a=n/2-f/2-r[3];break;case"right":a=n-f-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-u;break}a=a||0,o=o||0,isNaN(f)&&(f=n-v-a-(s||0)),isNaN(c)&&(c=i-u-o-(l||0));var d=new or(a+r[3],o+r[0],f,c);return d.margin=r,d}function Jr(t){var e=t.layoutMode||t.constructor.layoutMode;return B(e)?e:e?{type:e}:null}function en(t,e,r){var n=r&&r.ignoreSize;!E(n)&&(n=[n,n]);var i=o(br[0],0),a=o(br[1],1);f(br[0],t,i),f(br[1],t,a);function o(c,u){var v={},h=0,d={},p=0,g=2;if(Hr(c,function(_){d[_]=t[_]}),Hr(c,function(_){s(e,_)&&(v[_]=d[_]=e[_]),l(v,_)&&h++,l(d,_)&&p++}),n[u])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(p===g||!h)return d;if(h>=g)return v;for(var m=0;m<c.length;m++){var y=c[m];if(!s(v,y)&&s(t,y)){v[y]=t[y];break}}return v}function s(c,u){return c.hasOwnProperty(u)}function l(c,u){return c[u]!=null&&c[u]!=="auto"}function f(c,u,v){Hr(c,function(h){u[h]=v[h]})}}function Hs(t){return Xc({},t)}function Xc(t,e){return e&&t&&Hr($c,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Kc=re(),Rt=function(t){fe(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=mn("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Jr(this),a=i?Hs(r):{},o=n.getTheme();he(r,o.get(this.mainType)),he(r,this.getDefaultOption()),i&&en(r,a,i)},e.prototype.mergeOption=function(r,n){he(this.option,r,!0);var i=Jr(this);i&&en(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!mf(r))return r.defaultOption;var n=Kc(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=he(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return wr(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(ve);hs(Rt,ve);Ii(Rt);Pc(Rt);Lc(Rt,Zc);function Zc(t){var e=[];return S(Rt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=H(e,function(r){return Le(r).main}),t!=="dataset"&&_e(e,"dataset")<=0&&e.unshift("dataset"),e}var ee=Rt,Us="";typeof navigator!="undefined"&&(Us=navigator.platform||"");var xt="rgba(0, 0, 0, 0.2)",qc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xt,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xt,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xt,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xt,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xt,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xt,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Us.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},Gs=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Oe="original",Se="arrayRows",Ie="objectRows",Ne="keyedColumns",nt="typedArray",Ys="unknown",Ge="column",Et="row",ie={Must:1,Might:2,Not:3},jc=re();function Qc(t){jc(t).datasetMap=V()}function Jc(t,e,r){var n={},i=Ws(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Ie||a===Ne)&&S(o,function(c,u){(B(c)?c.name:c)==="name"&&(s=u)});var l=function(){for(var c={},u={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=Xs(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(p);var g=p===ie.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&v[c.n]===ie.Not)&&(c.n=h),m(c)&&v[c.n]!==ie.Not)return c;g||(p===ie.Might&&u.v==null&&h!==s&&(u.v=h),(u.n==null||u.n===u.v)&&(u.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(u)?u:null}();if(l){n.value=[l.v];var f=s!=null?s:l.n;n.itemName=[f],n.seriesName=[f]}return n}function Ws(t){var e=t.get("data",!0);if(!e)return wr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Mi).models[0]}function eh(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:wr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Mi).models}function $s(t,e){return Xs(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Xs(t,e,r,n,i,a){var o,s=5;if(Te(t))return ie.Not;var l,f;if(n){var c=n[a];B(c)?(l=c.name,f=c.type):O(c)&&(l=c)}if(f!=null)return f==="ordinal"?ie.Must:ie.Not;if(e===Se){var u=t;if(r===Et){for(var v=u[a],h=0;h<(v||[]).length&&h<s;h++)if((o=w(v[i+h]))!=null)return o}else for(var h=0;h<u.length&&h<s;h++){var d=u[i+h];if(d&&(o=w(d[a]))!=null)return o}}else if(e===Ie){var p=t;if(!l)return ie.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=w(g[l]))!=null)return o}}else if(e===Ne){var m=t;if(!l)return ie.Not;var v=m[l];if(!v||Te(v))return ie.Not;for(var h=0;h<v.length&&h<s;h++)if((o=w(v[h]))!=null)return o}else if(e===Oe)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],_=dn(g);if(!E(_))return ie.Not;if((o=w(_[a]))!=null)return o}function w(x){var T=O(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return T?ie.Might:ie.Not;if(T&&x!=="-")return ie.Must}return ie.Not}var th=V();function rh(t,e,r){var n=th.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var Ia=re();re();var Gi=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=de(this.get("color",!0)),a=this.get("colorLayer",!0);return ih(this,Ia,i,a,e,r,n)},t.prototype.clearColorPalette=function(){ah(this,Ia)},t}();function nh(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function ih(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,f=s.paletteNameMap=s.paletteNameMap||{};if(f.hasOwnProperty(i))return f[i];var c=o==null||!n?r:nh(n,o);if(c=c||r,!(!c||!c.length)){var u=c[l];return i&&(f[i]=u),s.paletteIdx=(l+1)%c.length,u}}function ah(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Mr,Ft,Pa,La="\0_ec_inner",oh=1,Ks=function(t){fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ve(a),this._locale=new ve(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=ka(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,ka(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Pa(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&S(l,function(f){i=!0,this._mergeOption(f,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),f=n&&n.replaceMergeMainTypeMap;Qc(this),S(r,function(u,v){u!=null&&(ee.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?z(u):he(i[v],u,!0))}),f&&f.each(function(u,v){ee.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),c,this);function c(u){var v=rh(this,u,de(r[u])),h=a.get(u),d=h?f&&f.get(u)?"replaceMerge":"normalMerge":"replaceAll",p=rf(h,v,d);ff(p,u,ee),i[u]=null,a.set(u,null),o.set(u,0);var g=[],m=[],y=0,_;S(p,function(w,x){var T=w.existing,b=w.newOption;if(!b)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var D=u==="series",C=ee.getClass(u,w.keyInfo.subType,!D);if(!C)return;if(u==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===C)T.name=w.keyInfo.name,T.mergeOption(b,this),T.optionUpdated(b,!1);else{var A=R({componentIndex:x},w.keyInfo);T=new C(b,this,this,A),R(T,A),w.brandNew&&(T.__requireNewView=!0),T.init(b,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),m.push(T),y++):(g.push(void 0),m.push(void 0))},this),i[u]=g,a.set(u,m),o.set(u,y),u==="series"&&Mr(this)}this._seriesIndices||Mr(this)},e.prototype.getOption=function(){var r=z(this.option);return S(r,function(n,i){if(ee.hasClass(i)){for(var a=de(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!lr(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[La],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],S(de(i),function(f){s[f]&&l.push(s[f])})):a!=null?l=Ra("id",a,s):o!=null?l=Ra("name",o,s):l=ze(s,function(f){return!!f}),Ea(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):ze(this._componentsMap.get(i),function(f){return!!f});return l(Ea(o,r));function s(f){var c=i+"Index",u=i+"Id",v=i+"Name";return f&&(f[c]!=null||f[u]!=null||f[v]!=null)?{mainType:i,index:f[c],id:f[u],name:f[v]}:null}function l(f){return r.filter?ze(f,r.filter):f}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(W(r)){var o=n,s=r;a.each(function(u,v){for(var h=0;u&&h<u.length;h++){var d=u[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=O(r)?a.get(r):B(r)?this.findComponents(r):null,f=0;l&&f<l.length;f++){var c=l[f];c&&n.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Re(r,null);return ze(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return ze(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return ze(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Ft(this),S(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){S(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Ft(this),S(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return S(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Ft(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Ft(this);var i=[];S(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=V(i)},e.prototype.restoreData=function(r){Mr(this);var n=this._componentsMap,i=[];n.each(function(a,o){ee.hasClass(o)&&i.push(o)}),ee.topologicalTravel(i,ee.getAllClassMainTypes(),function(a){S(n.get(a),function(o){o&&(a!=="series"||!sh(o,r))&&o.restoreData()})})},e.internalField=function(){Mr=function(r){var n=r._seriesIndices=[];S(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=V(n)},Ft=function(r){},Pa=function(r,n){r.option={},r.option[La]=oh,r._componentsMap=V({series:[]}),r._componentsCount=V();var i=n.aria;B(i)&&i.enabled==null&&(i.enabled=!0),lh(n,r._theme.option),he(n,qc,!1),r._mergeOption(n,null)}}(),e}(ve);function sh(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function lh(t,e){var r=t.color&&!t.colorLayer;S(e,function(n,i){i==="colorLayer"&&r||ee.hasClass(i)||(typeof n=="object"?t[i]=t[i]?he(t[i],n,!1):z(n):t[i]==null&&(t[i]=n))})}function Ra(t,e,r){if(E(e)){var n=V();return S(e,function(a){if(a!=null){var o=Re(a,null);o!=null&&n.set(a,!0)}}),ze(r,function(a){return a&&n.get(a[t])})}else{var i=Re(e,null);return ze(r,function(a){return a&&i!=null&&a[t]===i})}}function Ea(t,e){return e.hasOwnProperty("subType")?ze(t,function(r){return r&&r.subType===e.subType}):t}function ka(t){var e=V();return t&&S(de(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}gt(Ks,Gi);var Zs=Ks,uh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],fh=function(){function t(e){S(uh,function(r){this[r]=Y(e[r],e)},this)}return t}(),qs=fh,Ln={},ch=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];S(Ln,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){S(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){Ln[e]=r},t.get=function(e){return Ln[e]},t}(),js=ch,hh=/^(min|max)?(.+)$/,vh=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(S(de(e.series),function(o){o&&o.data&&Te(o.data)&&ti(o.data)}),S(de(e.dataset),function(o){o&&o.source&&Te(o.source)&&ti(o.source)})),e=z(e);var i=this._optionBackup,a=dh(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],z(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=z(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,f=i.length;l<f;l++)ph(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!mh(o,this._currentMediaIndices)&&(s=H(o,function(c){return z(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},t}();function dh(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,f=t.media,c=!!t.media,u=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((u||c)&&(t.options=t.media=null),a=t),c&&E(f)&&S(f,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),S(l,function(h){return v(h)}),S(n,function(h){return v(h.option)});function v(h){S(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function ph(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return S(t,function(a,o){var s=o.match(hh);if(!(!s||!s[1]||!s[2])){var l=s[1],f=s[2].toLowerCase();gh(n[f],a,l)||(i=!1)}}),i}function gh(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function mh(t,e){return t.join(",")===e.join(",")}var yh=vh,be=S,vr=B,Oa=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Rn(t){var e=t&&t.itemStyle;if(!!e)for(var r=0,n=Oa.length;r<n;r++){var i=Oa[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?he(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?he(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function le(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,pe(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function qt(t){le(t,"itemStyle"),le(t,"lineStyle"),le(t,"areaStyle"),le(t,"label"),le(t,"labelLine"),le(t,"upperLabel"),le(t,"edgeLabel")}function j(t,e){var r=vr(t)&&t[e],n=vr(r)&&r.textStyle;if(n)for(var i=0,a=fa.length;i<a;i++){var o=fa[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function De(t){t&&(qt(t),j(t,"label"),t.emphasis&&j(t.emphasis,"label"))}function _h(t){if(!!vr(t)){Rn(t),qt(t),j(t,"label"),j(t,"upperLabel"),j(t,"edgeLabel"),t.emphasis&&(j(t.emphasis,"label"),j(t.emphasis,"upperLabel"),j(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Rn(e),De(e));var r=t.markLine;r&&(Rn(r),De(r));var n=t.markArea;n&&De(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!Te(a))for(var o=0;o<a.length;o++)De(a[o]);S(t.categories,function(f){qt(f)})}if(i&&!Te(i))for(var o=0;o<i.length;o++)De(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)De(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)E(l[o])?(De(l[o][0]),De(l[o][1])):De(l[o]);t.type==="gauge"?(j(t,"axisLabel"),j(t,"title"),j(t,"detail")):t.type==="treemap"?(le(t.breadcrumb,"itemStyle"),S(t.levels,function(f){qt(f)})):t.type==="tree"&&qt(t.leaves)}}function Fe(t){return E(t)?t:t?[t]:[]}function Na(t){return(E(t)?t[0]:t)||{}}function Sh(t,e){be(Fe(t.series),function(n){vr(n)&&_h(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),be(r,function(n){be(Fe(t[n]),function(i){i&&(j(i,"axisLabel"),j(i.axisPointer,"label"))})}),be(Fe(t.parallel),function(n){var i=n&&n.parallelAxisDefault;j(i,"axisLabel"),j(i&&i.axisPointer,"label")}),be(Fe(t.calendar),function(n){le(n,"itemStyle"),j(n,"dayLabel"),j(n,"monthLabel"),j(n,"yearLabel")}),be(Fe(t.radar),function(n){j(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),be(Fe(t.geo),function(n){vr(n)&&(De(n),be(Fe(n.regions),function(i){De(i)}))}),be(Fe(t.timeline),function(n){De(n),le(n,"label"),le(n,"itemStyle"),le(n,"controlStyle",!0);var i=n.data;E(i)&&S(i,function(a){B(a)&&(le(a,"label"),le(a,"itemStyle"))})}),be(Fe(t.toolbox),function(n){le(n,"iconStyle"),be(n.feature,function(i){le(i,"iconStyle")})}),j(Na(t.axisPointer),"label"),j(Na(t.tooltip).axisPointer,"label")}function wh(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Th(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function Ba(t){t&&S(xh,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var xh=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ch=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],En=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zt(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<En.length;r++){var n=En[r][1],i=En[r][0];e[n]!=null&&(e[i]=e[n])}}function Va(t){!t||t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Fa(t){!t||t.downplay&&!t.blur&&(t.blur=t.downplay)}function Dh(t){!t||t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Qs(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Qs(t[r].children,e)}function Js(t,e){Sh(t,e),t.series=de(t.series),S(t.series,function(r){if(!!B(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Va(r.label);var i=r.data;if(i&&!Te(i))for(var a=0;a<i.length;a++)Va(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=wh(r,"pointer.color");o!=null&&Th(r,"itemStyle.color",o)}else if(n==="bar"){zt(r),zt(r.backgroundStyle),zt(r.emphasis);var i=r.data;if(i&&!Te(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(zt(i[a]),zt(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Fa(r),Qs(r.data,Fa)}else n==="graph"||n==="sankey"?Dh(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Ba(r)}}),t.dataRange&&(t.visualMap=t.dataRange),S(Ch,function(r){var n=t[r];n&&(E(n)||(n=[n]),S(n,function(i){Ba(i)}))})}function bh(t){var e=V();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(Mh)}function Mh(t){S(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(f,c,u){var v=o.get(e.stackedDimension,u);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(u):h=o.get(e.stackedByDimension,u);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=ju(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var yn=function(){function t(e){this.data=e.data||(e.sourceFormat===Ne?{}:[]),this.sourceFormat=e.sourceFormat||Ys,this.seriesLayoutBy=e.seriesLayoutBy||Ge,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&$s(this,n)===ie.Must&&(i.type="ordinal")}}return t}();function Yi(t){return t instanceof yn}function ci(t,e,r){r=r||tl(t);var n=e.seriesLayoutBy,i=Ih(t,r,n,e.sourceHeader,e.dimensions),a=new yn({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:z(e)});return a}function el(t){return new yn({data:t,sourceFormat:Te(t)?nt:Oe})}function Ah(t){return new yn({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:z(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function tl(t){var e=Ys;if(Te(t))e=nt;else if(E(t)){t.length===0&&(e=Se);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(E(i)||Te(i)){e=Se;break}else if(B(i)){e=Ie;break}}}}else if(B(t)){for(var a in t)if(Pt(t,a)&&ln(t[a])){e=Ne;break}}return e}function Ih(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:za(i),startIndex:o,dimensionsDetectedCount:a};if(e===Se){var s=t;n==="auto"||n==null?Ha(function(f){f!=null&&f!=="-"&&(O(f)?o==null&&(o=1):o=0)},r,s,10):o=ue(n)?n:n?1:0,!i&&o===1&&(i=[],Ha(function(f,c){i[c]=f!=null?f+"":""},r,s,1/0)),a=i?i.length:r===Et?s.length:s[0]?s[0].length:null}else if(e===Ie)i||(i=Ph(t));else if(e===Ne)i||(i=[],S(t,function(f,c){i.push(c)}));else if(e===Oe){var l=dn(t[0]);a=E(l)&&l.length||1}return{startIndex:o,dimensionsDefine:za(i),dimensionsDetectedCount:a}}function Ph(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return at(r)}function za(t){if(!!t){var e=V();return H(t,function(r,n){r=B(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Ha(t,e,r,n){if(e===Et)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function rl(t){var e=t.sourceFormat;return e===Ie||e===Ne}var ut,ft,ct,Ua,Ga,nl=function(){function t(e,r){var n=Yi(e)?e:el(e);this._source=n;var i=this._data=n.data;n.sourceFormat===nt&&(this._offset=0,this._dimSize=r,this._data=i),Ga(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;Ga=function(o,s,l){var f=l.sourceFormat,c=l.seriesLayoutBy,u=l.startIndex,v=l.dimensionsDefine,h=Ua[Wi(f,c)];if(R(o,h),f===nt)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=il(f,c);o.getItem=Y(d,null,s,u,v);var p=al(f,c);o.count=Y(p,null,s,u,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,f=this._dimSize,c=f*o,u=0;u<f;u++)s[u]=l[c+u];return s},n=function(o,s,l,f){for(var c=this._data,u=this._dimSize,v=0;v<u;v++){for(var h=f[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[v],y=0;y<g;y++){var _=c[y*u+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Ua=(e={},e[Se+"_"+Ge]={pure:!0,appendData:a},e[Se+"_"+Et]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ie]={pure:!0,appendData:a},e[Ne]={pure:!0,appendData:function(o){var s=this._data;S(o,function(l,f){for(var c=s[f]||(s[f]=[]),u=0;u<(l||[]).length;u++)c.push(l[u])})}},e[Oe]={appendData:a},e[nt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),Ya=function(t,e,r,n){return t[n]},Lh=(ut={},ut[Se+"_"+Ge]=function(t,e,r,n){return t[n+e]},ut[Se+"_"+Et]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ut[Ie]=Ya,ut[Ne]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=t[s];a[o]=l?l[n]:null}return a},ut[Oe]=Ya,ut);function il(t,e){var r=Lh[Wi(t,e)];return r}var Wa=function(t,e,r){return t.length},Rh=(ft={},ft[Se+"_"+Ge]=function(t,e,r){return Math.max(0,t.length-e)},ft[Se+"_"+Et]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ft[Ie]=Wa,ft[Ne]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},ft[Oe]=Wa,ft);function al(t,e){var r=Rh[Wi(t,e)];return r}var kn=function(t,e,r){return t[e]},Eh=(ct={},ct[Se]=kn,ct[Ie]=function(t,e,r){return t[r]},ct[Ne]=kn,ct[Oe]=function(t,e,r){var n=dn(t);return n instanceof Array?n[e]:n},ct[nt]=kn,ct);function ol(t){var e=Eh[t];return e}function Wi(t,e){return t===Se?t+"_"+e:t}function tn(t,e,r){if(!!t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return ol(a)(n,o,s)}else{var l=n;return a===Oe&&(l=dn(n)),l}}}}var kh=/\{@(.+?)\}/g,Oh=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),f=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,u=this.mainType,v=u==="series",h=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:f,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&E(l.value)&&(l.value=l.value[i]),!a){var f=s.getItemModel(e);a=f.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(W(a))return l.status=r,l.dimensionIndex=i,a(l);if(O(a)){var c=Vs(a,l);return c.replace(kh,function(u,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=tn(s,e,d);if(o&&E(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return tn(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function $a(t){var e,r;return B(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function rr(t){return new Nh(t)}var Nh=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),f=e&&e.modDataCount||0;(o!==l||s!==f)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var u;(this._dirty||a==="reset")&&(this._dirty=!1,u=this._doReset(n)),this._modBy=l,this._modDataCount=f;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(u||h<d)){var p=this._progress;if(E(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,f);else this._doProgress(p,h,d,l,f)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Xa.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Xa.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),E(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Xa=function(){var t,e,r,n,i,a={reset:function(l,f,c,u){e=l,t=f,r=c,n=u,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),f=e>=t?null:l<n?l:e;return e++,f}}();function Ur(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ue(t)&&t!=null&&t!=="-"&&(t=+vn(t)),t==null||t===""?NaN:Number(t))}V({number:function(t){return parseFloat(t)},time:function(t){return+vn(t)},trim:function(t){return O(t)?_r(t):t}});var Bh=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=ue(e)?e:Kr(e),i=ue(r)?r:Kr(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=O(e),l=O(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Vh=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ur(e,r)},t}();function Fh(t,e){var r=new Vh,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Ge&&ye(o);var s=[],l={},f=t.dimensionsDefine;if(f)S(f,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Pt(l,m)&&ye(_),l[m]=y}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var u=il(i,Ge);e.__isBuiltIn&&(r.getRawDataItem=function(p){return u(n,a,s,p)},r.getRawData=Y(zh,null,t)),r.cloneRawData=Y(Hh,null,t);var v=al(i,Ge);r.count=Y(v,null,n,a,s);var h=ol(i);r.retrieveValue=function(p,g){var m=u(n,a,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=Y(Uh,null,s,l),r.cloneAllDimensionInfo=Y(Gh,null,s),r}function zh(t){var e=t.sourceFormat;if(!$i(e)){var r="";ye(r)}return t.data}function Hh(t){var e=t.sourceFormat,r=t.data;if(!$i(e)){var n="";ye(n)}if(e===Se){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Ie){for(var i=[],a=0,o=r.length;a<o;a++)i.push(R({},r[a]));return i}}function Uh(t,e,r){if(r!=null){if(ue(r)||!isNaN(r)&&!Pt(e,r))return t[r];if(Pt(e,r))return e[r]}}function Gh(t){return z(t)}var sl=V();function Yh(t){t=z(t);var e=t.type,r="";e||ye(r);var n=e.split(":");n.length!==2&&ye(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,sl.set(e,t)}function Wh(t,e,r){var n=de(t),i=n.length,a="";i||ye(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=$h(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function $h(t,e,r,n){var i="";e.length||ye(i),B(t)||ye(i);var a=t.type,o=sl.get(a);o||ye(i);var s=H(e,function(f){return Fh(f,o)}),l=de(o.transform({upstream:s[0],upstreamList:s,config:z(t.config)}));return H(l,function(f,c){var u="";B(f)||ye(u),f.data||ye(u);var v=tl(f.data);$i(v)||ye(u);var h,d=e[0];if(d&&c===0&&!f.dimensions){var p=d.startIndex;p&&(f.data=d.data.slice(0,p).concat(f.data)),h={seriesLayoutBy:Ge,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Ge,sourceHeader:0,dimensions:f.dimensions};return ci(f.data,h,null)})}function $i(t){return t===Se||t===Ie}var _n="undefined",Xh=typeof Uint32Array===_n?Array:Uint32Array,Kh=typeof Uint16Array===_n?Array:Uint16Array,ll=typeof Int32Array===_n?Array:Int32Array,Ka=typeof Float64Array===_n?Array:Float64Array,ul={float:Ka,int:ll,ordinal:Array,number:Array,time:Ka},On;function Ct(t){return t>65535?Xh:Kh}function Dt(){return[1/0,-1/0]}function Zh(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Za(t,e,r,n,i){var a=ul[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),f=0;f<s;f++)l[f]=o[f];t[e]=l}}else t[e]=new a(n)}var hi=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=On[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],rl(i),this._dimensions=H(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new ul[r||"float"](this._rawCount),this._rawExtent[a]=Dt(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Dt());for(var l=a[e],f=o;f<s;f++){var c=n[f]=r.parseAndCollect(n[f]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),f=0;f<a;f++){var c=i[f];Za(n,f,c.type,l,!0)}for(var u=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var c=i[d],p=On.arrayRows.call(this,e[h]||u,c.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,f=H(o,function(y){return y.property}),c=0;c<s;c++){var u=o[c];l[c]||(l[c]=Dt()),Za(a,c,u.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,f[d],h,d);p[h]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,f=0,c=0,u=this.count();c<u;c++){var v=this.getRawIndex(c),h=r-a[v],d=Math.abs(h);d<=n&&((d<s||d===s&&h>=0&&l<0)&&(s=d,l=h,f=0),h===l&&(o[f++]=c))}return o.length=f,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Ct(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ct(n._rawCount),o=new a(i),s=[],l=e.length,f=0,c=e[0],u=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=u[c][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=u[e[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[f++]=d)}return f<i&&(n._indices=o),n._count=f,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=at(e),a=i.length;if(!a)return this;var o=r.count(),s=Ct(r._rawCount),l=new s(o),f=0,c=i[0],u=e[c][0],v=e[c][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=u&&y<=v||isNaN(y))&&(l[f++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],w=e[i[1]][0],x=e[i[1]][1],m=0;m<n;m++){var y=g[m],T=_[m];(y>=u&&y<=v||isNaN(y))&&(T>=w&&T<=x||isNaN(T))&&(l[f++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var b=r.getRawIndex(m),y=h[i[0]][b];(y>=u&&y<=v||isNaN(y))&&(l[f++]=b)}else for(var m=0;m<o;m++){for(var D=!0,b=r.getRawIndex(m),C=0;C<a;C++){var A=i[C],y=h[A][b];(y<e[A][0]||y>e[A][1])&&(D=!1)}D&&(l[f++]=r.getRawIndex(m))}return f<o&&(r._indices=l),r._count=f,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],f=e._rawExtent,c=0;c<r.length;c++)f[r[c]]=Dt();for(var u=0;u<s;u++){for(var v=e.getRawIndex(u),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=u;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var c=0;c<d.length;c++){var p=r[c],g=d[c],m=f[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),f=this.getRawIndex(0),c,u,v,h=new(Ct(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=f;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var w=this.getRawIndex(_),x=a[w];isNaN(x)||(y+=x)}y/=g-p;var T=d,b=Math.min(d+l,o),D=d-1,C=a[f];c=-1,v=T;for(var A=-1,M=0,_=T;_<b;_++){var w=this.getRawIndex(_),x=a[w];if(isNaN(x)){M++,A<0&&(A=w);continue}u=Math.abs((D-m)*(x-C)-(D-_)*(y-C)),u>c&&(c=u,v=w)}M>0&&M<b-T&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,f=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Ct(this._rawCount))(Math.ceil(s/a)*2),f=0,c=0;c<s;c+=a){var u=c,v=o[this.getRawIndex(u)],h=c,d=o[this.getRawIndex(h)],p=a;c+a>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=o[m];y<v&&(v=y,u=c+g),y>d&&(d=y,h=c+g)}var _=this.getRawIndex(u),w=this.getRawIndex(h);u<h?(l[f++]=_,l[f++]=w):(l[f++]=w,l[f++]=_)}return n._count=f,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),f=o[e],c=this.count(),u=a._rawExtent[e]=Dt(),v=new(Ct(this._rawCount))(Math.ceil(c/l)),h=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=f[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,c-1));f[y]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(!!this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,f=[];l<n;l++)f[l]=i[e[l]][s];f[l]=a,r.apply(null,f)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Dt();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],f=0;f<i;f++){var c=this.getRawIndex(f),u=r[c];u<s&&(s=u),u>l&&(l=u)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Wr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Zh(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=z(this._extent),e._rawExtent=z(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Ur(r[a],this._dimensions[a])}On={arrayRows:e,objectRows:function(r,n,i,a){return Ur(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ur(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),qh=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ar(e)){var o=e,s=void 0,l=void 0,f=void 0;if(n){var c=r[0];c.prepareSource(),f=c.getSource(),s=f.data,l=f.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Te(s)?nt:Oe,a=[];var u=this._getSourceMetaRawOption()||{},v=f&&f.metaRawOption||{},h=G(u.seriesLayoutBy,v.seriesLayoutBy)||null,d=G(u.sourceHeader,v.sourceHeader),p=G(u.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[ci(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[ci(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&qa(a)}var o,s=[],l=[];return S(e,function(f){f.prepareSource();var c=f.getSource(i||0),u="";i!=null&&!c&&qa(u),s.push(c),l.push(f._getVersionSign())}),n?o=Wh(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Ah(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Ar(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new hi,s.initData(new nl(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ar(e)){var r=Ws(e);return r?[r.getSourceManager()]:[]}else return H(eh(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Ar(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function Ar(t){return t.mainType==="series"}function qa(t){throw new Error(t)}var jh="line-height:1";function fl(t){var e=t.lineHeight;return e==null?jh:"line-height:"+me(e+"")+"px"}function cl(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+me(n+"")+"px;color:"+me(r)+";font-weight:"+me(i+""),valueStyle:"font-size:"+me(o+"")+"px;color:"+me(a)+";font-weight:"+me(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Qh=[0,10,20,30],Jh=["",`
|
|
`,`
|
|
|
|
`,`
|
|
|
|
|
|
`];function dr(t,e){return e.type=t,e}function vi(t){return t.type==="section"}function hl(t){return vi(t)?ev:tv}function vl(t){if(vi(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return S(t.blocks,function(i){var a=vl(i);a>=e&&(e=a+ +(n&&(!a||vi(i)&&!i.noHeader)))}),e}return 0}function ev(t,e,r,n){var i=e.noHeader,a=rv(vl(e)),o=[],s=e.blocks||[];Ye(!s||E(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(Pt(f,l)){var c=new Bh(f[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(p,g){var m=e.valueFormatter,y=hl(p)(m?R(R({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);y!=null&&o.push(y)});var u=t.renderMode==="richText"?o.join(a.richText):di(n,o.join(""),i?r:a.html);if(i)return u;var v=fi(e.header,"ordinal",t.useUTC),h=cl(n,t.renderMode).nameStyle,d=fl(n);return t.renderMode==="richText"?dl(t,v,h)+a.richText+u:di(n,'<div style="'+h+";"+d+';">'+me(v)+"</div>"+u,r)}function tv(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,f=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(w){return w=E(w)?w:[w],H(w,function(x,T){return fi(x,E(h)?h[T]:h,f)})};if(!(a&&o)){var u=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),v=a?"":fi(l,"ordinal",f),h=e.valueType,d=o?[]:c(e.value,e.dataIndex),p=!s||!a,g=!s&&a,m=cl(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":u)+(a?"":dl(t,v,y))+(o?"":av(t,d,p,g,_)):di(n,(s?"":u)+(a?"":nv(v,!s,y))+(o?"":iv(d,p,g,_)),r)}}function ja(t,e,r,n,i,a){if(!!t){var o=hl(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function rv(t){return{html:Qh[t],richText:Jh[t]}}function di(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=fl(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function nv(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+me(t)+"</span>"}function iv(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=E(t)?t:[t],'<span style="'+a+";"+n+'">'+H(t,function(o){return me(o)}).join(" ")+"</span>"}function dl(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function av(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(E(e)?e.join(" "):e,a)}function ov(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return hr(n)}function pl(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var Nn=function(){function t(){this.richTextStyles={},this._nextStyleNameId=as()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=Wc({color:r,type:e,renderMode:n,markerId:i});return O(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};E(r)?S(r,function(a){return R(n,a)}):R(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();function sv(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=E(s),f=ov(e,r),c,u,v,h;if(o>1||l&&!o){var d=lv(s,e,r,a,f);c=d.inlineValues,u=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=tn(i,r,a[0]),u=p.type}else h=c=l?s[0]:s;var g=us(e),m=g&&e.name||"",y=i.getName(r),_=n?m:y;return dr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[dr("nameValue",{markerType:"item",markerColor:f,name:_,noName:!_r(_),value:c,valueType:u,dataIndex:r})].concat(v||[])})}function lv(t,e,r,n,i){var a=e.getData(),o=Wr(t,function(u,v,h){var d=a.getDimensionInfo(h);return u=u||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],f=[];n.length?S(n,function(u){c(tn(a,r,u),u)}):S(t,c);function c(u,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?f.push(dr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:u,valueType:h.type})):(s.push(u),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:f}}var qe=re();function Ir(t,e){return t.getName(e)||t.getId(e)}var uv="__universalTransitionEnabled",Sn=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=rr({count:cv,reset:hv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=qe(this).sourceManager=new qh(this);a.prepareSource();var o=this.getInitialData(r,i);Ja(o,this),this.dataTask.context.data=o,qe(this).dataBeforeProcessed=o,Qa(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Jr(this),a=i?Hs(r):{},o=this.subType;ee.hasClass(o)&&(o+="Series"),he(r,n.getTheme().get(this.subType)),he(r,this.getDefaultOption()),ri(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&en(r,a,i)},e.prototype.mergeOption=function(r,n){r=he(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Jr(this);i&&en(this.option,r,i);var a=qe(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Ja(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,qe(this).dataBeforeProcessed=o,Qa(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Te(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&ri(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=pi(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return qe(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=pi(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}qe(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return qe(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return qe(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,i){return sv({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Z.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Gi.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],f=Ir(o,l);i[f]=!1,this._selectedDataIndicesMap[f]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=at(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ir(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[uv])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){B(o.selectedMap)||(o.selectedMap={});for(var f=o.selectedMap,c=0;c<l;c++){var u=n[c],v=Ir(r,u);f[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(u)}}else if(s==="single"||s===!0){var h=n[l-1],v=Ir(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ee.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(ee);gt(Sn,Oh);gt(Sn,Gi);hs(Sn,ee);function Qa(t){var e=t.name;us(t)||(t.name=fv(t)||e)}function fv(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return S(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function cv(t){return t.model.getRawData().count()}function hv(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),vv}function vv(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ja(t,e){S(Iu(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,we(dv,e))})}function dv(t,e){var r=pi(t);return r&&r.setOutputEnd((e||this).count()),e}function pi(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var pr=Sn,Xi=function(){function t(){this.group=new pt,this.uid=mn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Ai(Xi);Ii(Xi);var Lt=Xi;function pv(){var t=re();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var gl=re(),gv=pv(),Ki=function(){function t(){this.group=new pt,this.uid=mn("viewChart"),this.renderTask=rr({plan:mv,reset:yv}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);!a||to(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);!a||to(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ls(this.group,e)},t.markUpdateMethod=function(e,r){gl(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function eo(t,e,r){t&&si(t)&&(e==="emphasis"?ni:ii)(t,r)}function to(t,e,r){var n=Sr(t,e),i=e&&e.highlightKey!=null?Kf(e.highlightKey):null;n!=null?S(de(n),function(a){eo(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){eo(a,r,i)})}Ai(Ki);Ii(Ki);function mv(t){return gv(t.model)}function yv(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&gl(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),_v[l]}var _v={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},It=Ki,rn="\0__throttleOriginMethod",ro="\0__throttleRate",no="\0__throttleType";function ml(t,e,r){var n,i=0,a=0,o=null,s,l,f,c;e=e||0;function u(){a=new Date().getTime(),o=null,t.apply(l,f||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,f=h;var p=c||e,g=c||r;c=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(u,p):s>=0?u():o=setTimeout(u,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){c=h},v}function yl(t,e,r,n){var i=t[e];if(!!i){var a=i[rn]||i,o=i[no],s=i[ro];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=ml(a,r,n==="debounce"),i[rn]=a,i[no]=n,i[ro]=r}return i}}function gi(t,e){var r=t[e];r&&r[rn]&&(r.clear&&r.clear(),t[e]=r[rn])}var io=re(),ao={itemStyle:ur(Es,!0),lineStyle:ur(Rs,!0)},Sv={lineStyle:"stroke",itemStyle:"fill"};function _l(t,e){var r=t.visualStyleMapper||ao[e];return r||(console.warn("Unknown style type '"+e+"'."),ao.itemStyle)}function Sl(t,e){var r=t.visualDrawType||Sv[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var wv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=_l(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Sl(t,n),f=o[l],c=W(f)?f:null,u=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||u){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||W(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||W(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=t.getDataParams(d),g=R({},o);g[l]=c(p),h.setItemVisual(d,"style",g)}}}},Ht=new ve,Tv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=_l(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ht.option=l[n];var f=i(Ht),c=o.ensureUniqueItemVisual(s,"style");R(c,f),Ht.option.decal&&(o.setItemVisual(s,"decal",Ht.option.decal),Ht.option.decal.dirty=!0),a in f&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},xv={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),io(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=io(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Sl(r,s);a.each(function(f){var c=a.getRawIndex(f);i[c]=f}),n.each(function(f){var c=i[f],u=a.getItemVisual(c,"colorFromPalette");if(u){var v=a.ensureUniqueItemVisual(c,"style"),h=n.getName(f)||f+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},Pr=Math.PI;function Cv(t,e){e=e||{},pe(e,{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 r=new pt,n=new Ue({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Ee({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ue({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Di({shape:{startAngle:-Pr/2,endAngle:-Pr/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Pr*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Pr*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,f=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:f,cy:c}),a.setShape({x:f-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Dv=function(){function t(e,r,n,i){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(!!e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=V();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;S(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ye(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;S(e,function(l,f){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),u=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else u&&u.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,f){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(f.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),l=e.seriesType,f=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):f&&f(n,i).each(c);function c(u){var v=u.uid,h=s.set(v,o&&o.get(v)||rr({plan:Pv,reset:Lv,count:Ev}));h.context={model:u,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(u,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||rr({reset:bv});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),f=e.seriesType,c=e.getTargetSeries,u=!0,v=!1,h="";Ye(!e.createOnAllSeries,h),f?n.eachRawSeriesByType(f,d):c?c(n,i).each(d):(u=!1,S(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,rr({reset:Mv,onDirty:Iv})));m.context={model:p,overallProgress:u},m.agent=o,m.__block=u,a._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return W(e)&&(e={overallReset:e,seriesType:kv(e)}),e.uid=mn("stageHandler"),r&&(e.visualType=r),e},t}();function bv(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mv(t){return t.overallProgress&&Av}function Av(){this.agent.dirty(),this.getDownstream().dirty()}function Iv(){this.agent&&this.agent.dirty()}function Pv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Lv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=de(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?H(e,function(r,n){return wl(n)}):Rv}var Rv=wl(0);function wl(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function Ev(t){return t.data.count()}function kv(t){nn=null;try{t(gr,Tl)}catch{}return nn}var gr={},Tl={},nn;xl(gr,Zs);xl(Tl,qs);gr.eachSeriesByType=gr.eachRawSeriesByType=function(t){nn=t};gr.eachComponent=function(t){t.mainType==="series"&&t.subType&&(nn=t.subType)};function xl(t,e){for(var r in e.prototype)t[r]=it}var Cl=Dv,oo=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Ov={color:oo,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],oo]},se="#B9B8CE",so="#100C2A",Lr=function(){return{axisLine:{lineStyle:{color:se}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lo=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Dl={darkMode:!0,color:lo,backgroundColor:so,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:se},pageTextStyle:{color:se}},textStyle:{color:se},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:se}},dataZoom:{borderColor:"#71708A",textStyle:{color:se},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:se}},timeline:{lineStyle:{color:se},label:{color:se},controlStyle:{color:se,borderColor:se}},calendar:{itemStyle:{color:so},dayLabel:{color:se},monthLabel:{color:se},yearLabel:{color:se}},timeAxis:Lr(),logAxis:Lr(),valueAxis:Lr(),categoryAxis:Lr(),line:{symbol:"circle"},graph:{color:lo},gauge:{title:{color:se},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:se},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Dl.categoryAxis.splitLine.show=!1;var Nv=Dl,Bv=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(O(e)){var a=Le(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};S(e,function(l,f){for(var c=!1,u=0;u<o.length;u++){var v=o[u],h=f.lastIndexOf(v);if(h>0&&h===f.length-v.length){var d=f.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(f)&&(n[f]=l,c=!0),c||(i[f]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,f=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(f,a,"name")&&c(f,a,"dataIndex")&&c(f,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(u,v,h,d){return u[h]==null||v[d||h]===u[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),mi=["symbol","symbolSize","symbolRotate","symbolOffset"],uo=mi.concat(["symbolKeepAspect"]),Vv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<mi.length;o++){var s=mi[o],l=t.get(s);W(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(R({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var f=at(i);function c(u,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),p=0;p<f.length;p++){var g=f[p];u.setItemVisual(v,g,i[g](h,d))}}return{dataEach:a?c:null}}},Fv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<uo.length;s++){var l=uo[s],f=o.getShallow(l,!0);f!=null&&i.setItemVisual(a,l,f)}}return{dataEach:r.hasItemOption?n:null}}};function zv(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function Hv(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Uv(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}S([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=R({},i),o.dispatchAction(R(i,{type:n[1],seriesIndex:r(a,i)}))})})}function bt(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,f=i.selected,c=0;c<f.length;c++)if(f[c].seriesIndex===s){var u=o.getData(),v=Sr(u,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:E(v)?u.getName(v[0]):u.getName(v),selected:O(l)?l:R({},l)})}})}function Gv(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(bt("map","selectchanged",e,i,n),bt("pie","selectchanged",e,i,n)):n.fromAction==="select"?(bt("map","selected",e,i,n),bt("pie","selected",e,i,n)):n.fromAction==="unselect"&&(bt("map","unselected",e,i,n),bt("pie","unselected",e,i,n))})}function jt(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Yv=We.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),Wv=We.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),$v=We.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,f=Math.asin(s/o),c=Math.cos(f)*o,u=Math.sin(f),v=Math.cos(f),h=o*.6,d=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-f,Math.PI*2+f),t.bezierCurveTo(r+c-u*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-c+u*h,l+s+v*h,r-c,l+s),t.closePath()}}),Xv=We.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),Kv={line:yr,rect:Ue,roundRect:Ue,square:Ue,circle:Ci,diamond:Wv,pin:$v,arrow:Xv,triangle:Yv},Zv={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},yi={};S(Kv,function(t,e){yi[e]=new t});var qv=We.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Pu(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=yi[n];i||(n="rect",i=yi[n]),Zv[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function jv(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function bl(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=bs(t.slice(8),new or(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Ni(t.slice(7),{},new or(e,r,n,i),o?"center":"cover"):l=new qv({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=jv,a&&l.setColor(a),l}function Qv(t,e){if(t!=null)return E(t)||(t=[t,t]),[te(t[0],e[0])||0,te(G(t[1],t[0]),e[1])||0]}var Bn=new Lu,fo=new Ru(100),co=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ho(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Bn.delete(t);var a=Bn.get(t);if(a)return a;var o=pe(t,{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=i?1:1/r,Bn.set(t,s),t.dirty=!1,s;function l(f){for(var c=[r],u=!0,v=0;v<co.length;++v){var h=o[co[v]];if(h!=null&&!E(h)&&!O(h)&&!ue(h)&&typeof h!="boolean"){u=!1;break}c.push(h)}var d;if(u){d=c.join(",")+(i?"-svg":"");var p=fo.get(d);p&&(i?f.svgElement=p:f.image=p)}var g=Al(o.dashArrayX),m=Jv(o.dashArrayY),y=Ml(o.symbol),_=ed(g),w=Il(m),x=!i&&ts.createCanvas(),T=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),D;x&&(x.width=b.width*r,x.height=b.height*r,D=x.getContext("2d")),A(),u&&fo.put(d,x||T),f.image=x,f.svgElement=T,f.svgWidth=b.width,f.svgHeight=b.height;function C(){for(var M=1,I=0,P=_.length;I<P;++I)M=ua(M,_[I]);for(var L=1,I=0,P=y.length;I<P;++I)L=ua(L,y[I].length);M*=L;var k=w*_.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){D&&(D.clearRect(0,0,x.width,x.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,x.width,x.height)));for(var M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var P=-w,L=0,k=0,F=0;P<b.height;){if(L%2===0){for(var J=k/2%y.length,$=0,N=0,U=0;$<b.width*2;){for(var q=0,I=0;I<g[F].length;++I)q+=g[F][I];if(q<=0)break;if(N%2===0){var X=(1-o.symbolSize)*.5,Be=$+g[F][N]*X,ot=P+m[L]*X,_t=g[F][N]*o.symbolSize,Tr=m[L]*o.symbolSize,St=U/2%y[J].length;Xe(Be,ot,_t,Tr,y[J][St])}$+=g[F][N],++U,++N,N===g[F].length&&(N=0)}++F,F===g.length&&(F=0)}P+=m[L],++k,++L,L===m.length&&(L=0)}function Xe(Ot,Nt,xr,Cr,Dr){var st=i?1:r,Ke=bl(Dr,Ot*st,Nt*st,xr*st,Cr*st,o.color,o.symbolKeepAspect);if(i){var Ve=n.painter.renderOneToVNode(Ke);Ve&&T.children.push(Ve)}else Eu(D,Ke)}}}}function Ml(t){if(!t||t.length===0)return[["rect"]];if(O(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!O(t[r])){e=!1;break}if(e)return Ml([t]);for(var n=[],r=0;r<t.length;++r)O(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Al(t){if(!t||t.length===0)return[[0,0]];if(ue(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ue(t[n])){r=!1;break}if(r)return Al([t]);for(var i=[],n=0;n<t.length;++n)if(ue(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=H(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function Jv(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ue(t)){var e=Math.ceil(t);return[e,e]}var r=H(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function ed(t){return H(t,function(e){return Il(e)})}function Il(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function td(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ho(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=ho(i,e)}}})}var rd=new hn,Me=rd,Pl={};function nd(t,e){Pl[t]=e}function id(t){return Pl[t]}var ad=1,od=800,sd=900,ld=1e3,ud=2e3,fd=5e3,Ll=1e3,cd=1100,Zi=2e3,Rl=3e3,hd=4e3,wn=4500,vd=4600,dd=5e3,pd=6e3,El=7e3,gd={PROCESSOR:{FILTER:ld,SERIES_FILTER:od,STATISTIC:fd},VISUAL:{LAYOUT:Ll,PROGRESSIVE_LAYOUT:cd,GLOBAL:Zi,CHART:Rl,POST_CHART_LAYOUT:vd,COMPONENT:hd,BRUSH:dd,CHART_ITEM:wn,ARIA:pd,DECAL:El}},oe="__flagInMainProcess",ge="__pendingUpdate",Vn="__needsUpdateStatus",vo=/^[a-zA-Z0-9_]+$/,Fn="__connectUpdateStatus",po=0,md=1,yd=2;function kl(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return Nl(this,t,e)}}function Ol(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Nl(this,t,e)}}function Nl(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),hn.prototype[e].apply(t,r)}var Bl=function(t){fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(hn),Vl=Bl.prototype;Vl.on=Ol("on");Vl.off=Ol("off");var Mt,zn,Rr,je,Hn,Un,Gn,Ut,Gt,go,mo,Yn,yo,Er,_o,Fl,xe,So,zl=function(t){fe(e,t);function e(r,n,i){var a=t.call(this,new Bv)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},O(n)&&(n=Hl[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr;var f=a._zr=ia(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:G(i.useDirtyRect,l),useCoarsePointer:G(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=ml(Y(f.flush,f),17),n=z(n),n&&Js(n,!0),a._theme=n,a._locale=kc(i.locale||ks),a._coordSysMgr=new js;var c=a._api=_o(a);function u(v,h){return v.__prio-h.__prio}return xn(on,u),xn(_i,u),a._scheduler=new Cl(a,c,_i,on),a._messageCenter=new Bl,a._initEvents(),a.resize=Y(a.resize,a),f.animation.on("frame",a._onframe,a),go(f,a),mo(f,a),ti(a),a}return e.prototype._onframe=function(){if(!this._disposed){So(this);var r=this._scheduler;if(this[ge]){var n=this[ge].silent;this[oe]=!0;try{Mt(this),je.update.call(this,null,this[ge].updateParams)}catch(l){throw this[oe]=!1,this[ge]=null,l}this._zr.flush(),this[oe]=!1,this[ge]=null,Ut.call(this,n),Gt.call(this,n)}else if(r.unfinished){var i=ad,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Un(this,a),r.performVisualTasks(a),Er(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[oe]){if(this._disposed){this.id;return}var a,o,s;if(B(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[oe]=!0,!this._model||n){var l=new yh(this._api),f=this._theme,c=this._model=new Zs;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,f,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Si);var u={seriesTransition:s,optionChanged:!0};if(i)this[ge]={silent:a,updateParams:u},this[oe]=!1,this.getZr().wakeUp();else{try{Mt(this),je.update.call(this,null,u)}catch(v){throw this[ge]=null,this[oe]=!1,v}this._ssr||this._zr.flush(),this[ge]=null,this[oe]=!1,Ut.call(this,a),Gt.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Z.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!Z.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return S(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;S(n,function(l){i.eachComponent({mainType:l},function(f){var c=o._componentsMap[f.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return S(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(wo[i]){var l=s,f=s,c=-s,u=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();S(ir,function(_,w){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(z(r)),T=_.getDom().getBoundingClientRect();l=a(T.left,l),f=a(T.top,f),c=o(T.right,c),u=o(T.bottom,u),v.push({dom:x,left:T.left,top:T.top})}}),l*=h,f*=h,c*=h,u*=h;var d=c-l,p=u-f,g=ts.createCanvas(),m=ia(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return S(v,function(_){var w=_.left-l,x=_.top-f;y+='<g transform="translate('+w+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Ue({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),S(v,function(_){var w=new un({style:{x:_.left*h-l,y:_.top*h-f,image:_.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Hn(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Hn(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Dn(i,r);return S(o,function(s,l){l.indexOf("Models")>=0&&S(s,function(f){var c=f.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var u=this._chartsMap[f.__viewId];u&&u.containPoint&&(a=a||u.containPoint(n,f))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Dn(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?zv(s,l,n):Hv(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;S(_d,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,f=n==="globalout";if(f?l={}:s&&jt(s,function(d){var p=Q(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=R({},p.eventData),!0},!0),l){var c=l.componentType,u=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",u=l.seriesIndex);var v=c&&u!=null&&o.getComponent(c,u),h=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),S(nr,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),S(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Gv(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&fs(this.getDom(),ji,"");var n=this,i=n._api,a=n._model;S(n._componentsViews,function(o){o.dispose(a,i)}),S(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ir[n.id]},e.prototype.resize=function(r){if(!this[oe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[ge]&&(a==null&&(a=this[ge].silent),i=!0,this[ge]=null),this[oe]=!0;try{i&&Mt(this),je.update.call(this,{type:"resize",animation:R({duration:0},r&&r.animation)})}catch(o){throw this[oe]=!1,o}this[oe]=!1,Ut.call(this,a),Gt.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(B(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!wi[r]){var i=wi[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=R({},r);return n.type=nr[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(B(n)||(n={silent:!!n}),!!an[r.type]&&!!this._model){if(this[oe]){this._pendingActions.push(r);return}var i=n.silent;Gn.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Z.browser.weChat&&this._throttledZrFlush(),Ut.call(this,i),Gt.call(this,i)}},e.prototype.updateLabelLayout=function(){Me.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Mt=function(u){var v=u._scheduler;v.restorePipelines(u._model),v.prepareStageTasks(),zn(u,!0),zn(u,!1),v.plan()},zn=function(u,v){for(var h=u._model,d=u._scheduler,p=v?u._componentsViews:u._chartsViews,g=v?u._componentsMap:u._chartsMap,m=u._zr,y=u._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(T,b){T!=="series"&&w(b)}):h.eachSeries(w);function w(T){var b=T.__requireNewView;T.__requireNewView=!1;var D="_ec_"+T.id+"_"+T.type,C=!b&&g[D];if(!C){var A=Le(T.type),M=v?Lt.getClass(A.main,A.sub):It.getClass(A.sub);C=new M,C.init(h,y),g[D]=C,p.push(C),m.add(C.group)}T.__viewId=C.__id=D,C.__alive=!0,C.__model=T,C.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!v&&d.prepareView(C,T,h,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!v&&x.renderTask.dispose(),m.remove(x.group),x.dispose(h,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Rr=function(u,v,h,d,p){var g=u._model;if(g.setUpdatePayload(h),!d){S([].concat(u._componentsViews).concat(u._chartsViews),x);return}var m={};m[d+"Id"]=h[d+"Id"],m[d+"Index"]=h[d+"Index"],m[d+"Name"]=h[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,w;_!=null&&(w=V(),S(de(_),function(T){var b=Re(T,null);b!=null&&w.set(b,!0)})),g&&g.eachComponent(y,function(T){var b=w&&w.get(T.id)!=null;if(!b)if(ya(h))if(T instanceof pr)h.type===vt&&!h.notBlur&&!T.get(["emphasis","disabled"])&&Bf(T,h,u._api);else{var D=ki(T.mainType,T.componentIndex,h.name,u._api),C=D.focusSelf,A=D.dispatchers;h.type===vt&&C&&!h.notBlur&&oi(T.mainType,T.componentIndex,u._api),A&&S(A,function(M){h.type===vt?ni(M):ii(M)})}else li(h)&&T instanceof pr&&(zf(T,h,u._api),ga(T),xe(u))},u),g&&g.eachComponent(y,function(T){var b=w&&w.get(T.id)!=null;b||x(u[d==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},u);function x(T){T&&T.__alive&&T[v]&&T[v](T.__model,g,u._api,h)}},je={prepareAndUpdate:function(u){Mt(this),je.update.call(this,u,{optionChanged:u.newOption!=null})},update:function(u,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(!!h){h.setUpdatePayload(u),m.restoreData(h,u),m.performSeriesTasks(h),g.create(h,d),m.performDataProcessorTasks(h,u),Un(this,h),g.update(h,d),r(h),m.performVisualTasks(h,u),Yn(this,h,d,u,v);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),Me.trigger("afterupdate",h,d)}},updateTransform:function(u){var v=this,h=this._model,d=this._api;if(!!h){h.setUpdatePayload(u);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(y,h,d,u);w&&w.update&&p.push(_)}else p.push(_)}});var g=V();h.eachSeries(function(m){var y=v._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,d,u);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,u,{setDirty:!0,dirtyMap:g}),Er(this,h,d,u,{},g),Me.trigger("afterupdate",h,d)}},updateView:function(u){var v=this._model;!v||(v.setUpdatePayload(u),It.markUpdateMethod(u,"updateView"),r(v),this._scheduler.performVisualTasks(v,u,{setDirty:!0}),Yn(this,v,this._api,u,{}),Me.trigger("afterupdate",v,this._api))},updateVisual:function(u){var v=this,h=this._model;!h||(h.setUpdatePayload(u),h.eachSeries(function(d){d.getData().clearAllVisual()}),It.markUpdateMethod(u,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,u,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,u)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,u)}),Me.trigger("afterupdate",h,this._api))},updateLayout:function(u){je.update.call(this,u)}},Hn=function(u,v,h,d){if(u._disposed){u.id;return}for(var p=u._model,g=u._coordSysMgr.getCoordinateSystems(),m,y=Dn(p,h),_=0;_<g.length;_++){var w=g[_];if(w[v]&&(m=w[v](p,y,d))!=null)return m}},Un=function(u,v){var h=u._chartsMap,d=u._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},Gn=function(u,v){var h=this,d=this.getModel(),p=u.type,g=u.escapeConnect,m=an[p],y=m.actionInfo,_=(y.update||"update").split(":"),w=_.pop(),x=_[0]!=null&&Le(_[0]);this[oe]=!0;var T=[u],b=!1;u.batch&&(b=!0,T=H(u.batch,function(L){return L=pe(R({},L),u),L.batch=null,L}));var D=[],C,A=li(u),M=ya(u);if(M&&Ts(this._api),S(T,function(L){if(C=m.action(L,h._model,h._api),C=C||R({},L),C.type=y.event||C.type,D.push(C),M){var k=bi(u),F=k.queryOptionMap,J=k.mainTypeSpecified,$=J?F.keys()[0]:"series";Rr(h,w,L,$),xe(h)}else A?(Rr(h,w,L,"series"),xe(h)):x&&Rr(h,w,L,x.main,x.sub)}),w!=="none"&&!M&&!A&&!x)try{this[ge]?(Mt(this),je.update.call(this,u),this[ge]=null):je[w].call(this,u)}catch(L){throw this[oe]=!1,L}if(b?C={type:y.event||p,escapeConnect:g,batch:D}:C=D[0],this[oe]=!1,!v){var I=this._messageCenter;if(I.trigger(C.type,C),A){var P={type:"selectchanged",escapeConnect:g,selected:Hf(d),isFromClick:u.isFromClick||!1,fromAction:u.type,fromActionPayload:u};I.trigger(P.type,P)}}},Ut=function(u){for(var v=this._pendingActions;v.length;){var h=v.shift();Gn.call(this,h,u)}},Gt=function(u){!u&&this.trigger("updated")},go=function(u,v){u.on("rendered",function(h){v.trigger("rendered",h),u.animation.isFinished()&&!v[ge]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},mo=function(u,v){u.on("mouseover",function(h){var d=h.target,p=jt(d,si);p&&(Vf(p,h,v._api),xe(v))}).on("mouseout",function(h){var d=h.target,p=jt(d,si);p&&(Ff(p,h,v._api),xe(v))}).on("click",function(h){var d=h.target,p=jt(d,function(y){return Q(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Q(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(u){u.clearColorPalette(),u.eachSeries(function(v){v.clearColorPalette()})}function n(u){var v=[],h=[],d=!1;if(u.eachComponent(function(y,_){var w=_.get("zlevel")||0,x=_.get("z")||0,T=_.getZLevelKey();d=d||!!T,(y==="series"?h:v).push({zlevel:w,z:x,idx:_.componentIndex,type:y,key:T})}),d){var p=v.concat(h),g,m;xn(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),S(p,function(y){var _=u.getComponent(y.type,y.idx),w=y.zlevel,x=y.key;g!=null&&(w=Math.max(g,w)),x?(w===g&&x!==m&&w++,m=x):m&&(w===g&&w++,m=""),g=w,_.setZLevel(w)})}}Yn=function(u,v,h,d,p){n(v),yo(u,v,h,d,p),S(u._chartsViews,function(g){g.__alive=!1}),Er(u,v,h,d,p),S(u._chartsViews,function(g){g.__alive||g.remove(v,h)})},yo=function(u,v,h,d,p,g){S(g||u._componentsViews,function(m){var y=m.__model;f(y,m),m.render(y,v,h,d),s(y,m),c(y,m)})},Er=function(u,v,h,d,p,g){var m=u._scheduler;p=R(p||{},{updatedSeries:v.getSeries()}),Me.trigger("series:beforeupdate",v,h,p);var y=!1;v.eachSeries(function(_){var w=u._chartsMap[_.__viewId];w.__alive=!0;var x=w.renderTask;m.updatePayload(x,d),f(_,w),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),w.group.silent=!!_.get("silent"),o(_,w),ga(_)}),m.unfinished=y||m.unfinished,Me.trigger("series:layoutlabels",v,h,p),Me.trigger("series:transition",v,h,p),v.eachSeries(function(_){var w=u._chartsMap[_.__viewId];s(_,w),c(_,w)}),a(u,v),Me.trigger("series:afterupdate",v,h,p)},xe=function(u){u[Vn]=!0,u.getZr().wakeUp()},So=function(u){!u[Vn]||(u.getZr().storage.traverse(function(v){tr(v)||i(v)}),u[Vn]=!1)};function i(u){for(var v=[],h=u.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}u.selected&&u.states.select&&v.push("select"),u.hoverState===Ri&&u.states.emphasis?v.push("emphasis"):u.hoverState===Li&&u.states.blur&&v.push("blur"),u.useStates(v)}function a(u,v){var h=u._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!Z.node&&!Z.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=u._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(u,v){var h=u.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(u,v){if(!u.preventAutoZ){var h=u.get("z")||0,d=u.get("zlevel")||0;v.eachRendered(function(p){return l(p,h,d,-1/0),!0})}}function l(u,v,h,d){var p=u.getTextContent(),g=u.getTextGuideLine(),m=u.isGroup;if(m)for(var y=u.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],v,h,d),d);else u.z=v,u.zlevel=h,d=Math.max(u.z2,d);if(p&&(p.z=v,p.zlevel=h,isFinite(d)&&(p.z2=d+2)),g){var w=u.textGuideLineConfig;g.z=v,g.zlevel=h,isFinite(d)&&(g.z2=d+(w&&w.showAbove?1:-1))}return d}function f(u,v){v.eachRendered(function(h){if(!tr(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(u,v){var h=u.getModel("stateAnimation"),d=u.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(tr(m))return;if(m instanceof We&&Zf(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&i(m)}})}_o=function(u){return new(function(v){fe(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return u._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){ni(d,p),xe(u)},h.prototype.leaveEmphasis=function(d,p){ii(d,p),xe(u)},h.prototype.enterBlur=function(d){Nf(d),xe(u)},h.prototype.leaveBlur=function(d){ys(d),xe(u)},h.prototype.enterSelect=function(d){_s(d),xe(u)},h.prototype.leaveSelect=function(d){Ss(d),xe(u)},h.prototype.getModel=function(){return u.getModel()},h.prototype.getViewOfComponentModel=function(d){return u.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return u.getViewOfSeriesModel(d)},h}(qs))(u)},Fl=function(u){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Fn]=d}}S(nr,function(h,d){u._messageCenter.on(d,function(p){if(wo[u.group]&&u[Fn]!==po){if(p&&p.escapeConnect)return;var g=u.makeActionFromEvent(p),m=[];S(ir,function(y){y!==u&&y.group===u.group&&m.push(y)}),v(m,po),S(m,function(y){y[Fn]!==md&&y.dispatchAction(g)}),v(m,yd)}})})}}(),e}(hn),qi=zl.prototype;qi.on=kl("on");qi.off=kl("off");qi.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var _d=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var an={},nr={},_i=[],Si=[],on=[],Hl={},wi={},ir={},wo={},Sd=+new Date-0,ji="_echarts_instance_";function kg(t,e,r){var n=!(r&&r.ssr);if(n){var i=wd(t);if(i)return i}var a=new zl(t,e,r);return a.id="ec_"+Sd++,ir[a.id]=a,n&&fs(t,ji,a.id),Fl(a),Me.trigger("afterinit",a),a}function wd(t){return ir[vf(t,ji)]}function Ul(t,e){Hl[t]=e}function Gl(t){_e(Si,t)<0&&Si.push(t)}function Yl(t,e){Ji(_i,t,e,ud)}function Td(t){Qi("afterinit",t)}function xd(t){Qi("afterupdate",t)}function Qi(t,e){Me.on(t,e)}function kt(t,e,r){W(e)&&(r=e,e="");var n=B(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!nr[e]&&(Ye(vo.test(n)&&vo.test(e)),an[n]||(an[n]={action:r,actionInfo:t}),nr[e]=n)}function Cd(t,e){js.register(t,e)}function Dd(t,e){Ji(on,t,e,Ll,"layout")}function yt(t,e){Ji(on,t,e,Rl,"visual")}var To=[];function Ji(t,e,r,n,i){if((W(e)||B(e))&&(r=e,e=n),!(_e(To,r)>=0)){To.push(r);var a=Cl.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function Wl(t,e){wi[t]=e}function bd(t,e,r){var n=id("registerMap");n&&n(t,e,r)}var Md=Yh;yt(Zi,wv);yt(wn,Tv);yt(wn,xv);yt(Zi,Vv);yt(wn,Fv);yt(El,td);Gl(Js);Yl(sd,bh);Wl("default",Cv);kt({type:vt,event:vt,update:vt},it);kt({type:Br,event:Br,update:Br},it);kt({type:Jt,event:Jt,update:Jt},it);kt({type:Vr,event:Vr,update:Vr},it);kt({type:er,event:er,update:er},it);Ul("light",Ov);Ul("dark",Nv);function Yt(t){return t==null?0:t.length||1}function xo(t){return t}var Ad=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||xo,this._newKeyGetter=i||xo,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],f=Yt(l);if(f>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else f===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],f=n[l],c=i[l],u=Yt(f),v=Yt(c);if(u>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,f),i[l]=null;else if(u===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,f),i[l]=null;else if(u===1&&v===1)this._update&&this._update(c,f),i[l]=null;else if(u>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,f),i[l]=null;else if(u>1)for(var h=0;h<u;h++)this._remove&&this._remove(f[h]);else this._remove&&this._remove(f)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Yt(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],f=Yt(l);f===0?(r[s]=o,a&&n.push(s)):f===1?r[s]=[l,o]:l.push(o)}}},t}(),Id=Ad,Pd=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Ld(t,e){var r={},n=r.encode={},i=V(),a=[],o=[],s={};S(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;Wn(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),Rd(h.type)&&(a[0]=v),Wn(s,d)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Gs.each(function(g,m){var y=Wn(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],f={};i.each(function(v,h){var d=n[h];f[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=H(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=f;var c=n.label;c&&c.length&&(a=c.slice());var u=n.tooltip;return u&&u.length?o=u.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new Pd(s,e),r}function Wn(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Rd(t){return!(t==="ordinal"||t==="time")}var Ed=function(){function t(e){this.otherDims={},e!=null&&R(this,e)}return t}(),Gr=Ed,kd=re(),Od={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},$l=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Kl(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=rl(this.source),n=!Zl(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,f=void 0,c=void 0,u=this.dimensions[s];if(u&&u.storeDimIndex===o)l=r?u.name:null,f=u.type,c=u.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,f=v.type)}a.push({property:l,type:f,ordinalMeta:c}),r&&l!=null&&(!u||!u.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Od[f]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Nd(t){return t instanceof $l}function Xl(t){for(var e=V(),r=0;r<(t||[]).length;r++){var n=t[r],i=B(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function Kl(t){var e=kd(t);return e.dimNameMap||(e.dimNameMap=Xl(t.dimensionsDefine))}function Zl(t){return t>30}var Wt=B,Qe=H,Bd=typeof Int32Array=="undefined"?Array:Int32Array,Vd="e\0\0",Co=-1,Fd=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],zd=["_approximateExtent"],Do,kr,$t,Xt,$n,Kt,Xn,Hd=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Nd(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,f={},c=0;c<n.length;c++){var u=n[c],v=O(u)?new Gr({name:u}):u instanceof Gr?u:new Gr(u),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,f[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),i&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=V();S(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ue(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof hi&&(a=e),!a){var o=this.dimensions,s=Yi(e)||ln(e)?new nl(e,o.length):e;a=new hi;var l=Qe(o,function(f){return{type:i._dimInfos[f].type,property:f}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Ld(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Xn(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==nt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Oe;if(l&&!i.pure)for(var f=[],c=e;c<r;c++){var u=i.getItem(c,f);if(!this.hasItemOption&&tf(u)&&(this.hasItemOption=!0),u){var v=u.name;a[c]==null&&v!=null&&(a[c]=Re(v,null));var h=u.id;o[c]==null&&h!=null&&(o[c]=Re(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)Xn(this,c);Do(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Wt(e)?R(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=$t(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return kr(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return E(e)?i.getValues(Qe(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?Co:i},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){W(e)&&(n=r,r=e,e=[]);var i=n||this,a=Qe(Xt(e),this._getStoreDimIndex,this);this._store.each(a,i?Y(r,i):r)},t.prototype.filterSelf=function(e,r,n){W(e)&&(n=r,r=e,e=[]);var i=n||this,a=Qe(Xt(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Y(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=at(e);return S(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){W(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Qe(Xt(e),this._getStoreDimIndex,this),s=Kt(this);return s._store=this._store.map(o,a?Y(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Qe(Xt(e),this._getStoreDimIndex,this);this._store.modify(o,a?Y(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=Kt(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Kt(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Kt(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new ve(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new Id(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return kr(e,n)},function(n){return kr(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Wt(e)?R(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i==null?this.getVisual(r):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),E(a)?a=a.slice():Wt(a)&&(a=R({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Wt(r)?R(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Wt(e)?R(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?R(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;bf(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){S(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Qe(this.dimensions,this._getDimInfo,this),this.hostModel)),$n(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];!W(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ku(arguments)))})},t.internalField=function(){Do=function(e){var r=e._invertedIndicesMap;S(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new Bd(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Co;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},$t=function(e,r,n){return Re(e._getCategory(r,n),null)},kr=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=$t(e,e._idDimIdx,r)),n==null&&(n=Vd+r),n},Xt=function(e){return E(e)||(e=e!=null?[e]:[]),e},Kt=function(e){var r=new t(e._schema?e._schema:Qe(e.dimensions,e._getDimInfo,e),e.hostModel);return $n(r,e),r},$n=function(e,r){S(Fd.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,S(zd,function(n){e[n]=z(r[n])}),e._calculationInfo=R({},r._calculationInfo)},Xn=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=$t(e,a,r)),l==null&&o!=null&&(i[r]=l=$t(e,o,r)),l==null&&s!=null){var f=e._nameRepeatCount,c=f[s]=(f[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),t}(),Ud=Hd;function Gd(t,e){Yi(t)||(t=el(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=V(),a=[],o=Wd(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Zl(o),l=n===t.dimensionsDefine,f=l?Kl(t):Xl(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var u=V(c),v=new ll(o),h=0;h<v.length;h++)v[h]=-1;function d(C){var A=v[C];if(A<0){var M=n[C],I=B(M)?M:{name:M},P=new Gr,L=I.name;L!=null&&f.get(L)!=null&&(P.name=P.displayName=L),I.type!=null&&(P.type=I.type),I.displayName!=null&&(P.displayName=I.displayName);var k=a.length;return v[C]=k,P.storeDimIndex=C,a.push(P),P}return a[A]}if(!s)for(var h=0;h<o;h++)d(h);u.each(function(C,A){var M=de(C).slice();if(M.length===1&&!O(M[0])&&M[0]<0){u.set(A,!1);return}var I=u.set(A,[]);S(M,function(P,L){var k=O(P)?f.get(P):P;k!=null&&k<o&&(I[L]=k,g(d(k),A,L))})});var p=0;S(r,function(C){var A,M,I,P;if(O(C))A=C,P={};else{P=C,A=P.name;var L=P.ordinalMeta;P.ordinalMeta=null,P=R({},P),P.ordinalMeta=L,M=P.dimsDef,I=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var k=u.get(A);if(k!==!1){if(k=de(k),!k.length)for(var F=0;F<(M&&M.length||1);F++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}S(k,function(J,$){var N=d(J);if(l&&P.type!=null&&(N.type=P.type),g(pe(N,P),A,$),N.name==null&&M){var U=M[$];!B(U)&&(U={name:U}),N.name=N.displayName=U.name,N.defaultTooltip=U.defaultTooltip}I&&pe(N.otherDims,I)})}});function g(C,A,M){Gs.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,i.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var w=m||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)S(a,function(C){x(C)}),a.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var T=0;T<o;T++){var b=d(T),D=b.coordDim;D==null&&(b.coordDim=$d(w,i,_),b.coordDimIndex=0,(!m||y<=0)&&(b.isExtraCoord=!0),y--),x(b),b.type==null&&($s(t,T)===ie.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Yd(a),new $l({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Yd(t){for(var e=V(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function Wd(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return S(e,function(a){var o;B(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function $d(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}function ql(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Xd(t){var e=t.get("interval");return e==null?"auto":e}function Kd(t){return t.type==="category"&&Xd(t.getLabelModel())===0}var bo=[],Zd={registerPreprocessor:Gl,registerProcessor:Yl,registerPostInit:Td,registerPostUpdate:xd,registerUpdateLifecycle:Qi,registerAction:kt,registerCoordinateSystem:Cd,registerLayout:Dd,registerVisual:yt,registerTransform:Md,registerLoading:Wl,registerMap:bd,registerImpl:nd,PRIORITY:gd,ComponentModel:ee,ComponentView:Lt,SeriesModel:pr,ChartView:It,registerComponentModel:function(t){ee.registerClass(t)},registerComponentView:function(t){Lt.registerClass(t)},registerSeriesModel:function(t){pr.registerClass(t)},registerChartView:function(t){It.registerClass(t)},registerSubTypeDefaulter:function(t,e){ee.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ou(t,e)}};function jl(t){if(E(t)){S(t,function(e){jl(e)});return}_e(bo,t)>=0||(bo.push(t),W(t)&&(t={install:t}),t.install(Zd))}function Ql(t,e,r,n,i,a,o,s){var l=i-t,f=a-e,c=r-t,u=n-e,v=Math.sqrt(c*c+u*u);c/=v,u/=v;var h=l*c+f*u,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=t+d*c,g=o[1]=e+d*u;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var et=new ne,K=new ne,ae=new ne,tt=new ne,Pe=new ne,sn=[],ce=new ne;function qd(t,e){if(e<=180&&e>0){e=e/180*Math.PI,et.fromArray(t[0]),K.fromArray(t[1]),ae.fromArray(t[2]),ne.sub(tt,et,K),ne.sub(Pe,ae,K);var r=tt.len(),n=Pe.len();if(!(r<.001||n<.001)){tt.scale(1/r),Pe.scale(1/n);var i=tt.dot(Pe),a=Math.cos(e);if(a<i){var o=Ql(K.x,K.y,ae.x,ae.y,et.x,et.y,sn,!1);ce.fromArray(sn),ce.scaleAndAdd(Pe,o/Math.tan(Math.PI-e));var s=ae.x!==K.x?(ce.x-K.x)/(ae.x-K.x):(ce.y-K.y)/(ae.y-K.y);if(isNaN(s))return;s<0?ne.copy(ce,K):s>1&&ne.copy(ce,ae),ce.toArray(t[1])}}}}function jd(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,et.fromArray(t[0]),K.fromArray(t[1]),ae.fromArray(t[2]),ne.sub(tt,K,et),ne.sub(Pe,ae,K);var n=tt.len(),i=Pe.len();if(!(n<.001||i<.001)){tt.scale(1/n),Pe.scale(1/i);var a=tt.dot(e),o=Math.cos(r);if(a<o){var s=Ql(K.x,K.y,ae.x,ae.y,et.x,et.y,sn,!1);ce.fromArray(sn);var l=Math.PI/2,f=Math.acos(Pe.dot(e)),c=l+f-r;if(c>=l)ne.copy(ce,ae);else{ce.scaleAndAdd(Pe,s/Math.tan(Math.PI/2-c));var u=ae.x!==K.x?(ce.x-K.x)/(ae.x-K.x):(ce.y-K.y)/(ae.y-K.y);if(isNaN(u))return;u<0?ne.copy(ce,K):u>1&&ne.copy(ce,ae)}ce.toArray(t[1])}}}}function Kn(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function Qd(t,e){var r=e.smooth,n=e.points;if(!!n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=aa(n[0],n[1]),a=aa(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Cn([],n[1],n[0],o/i),l=Cn([],n[1],n[2],o/a),f=Cn([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],f[0],f[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function Jd(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Zr.length;l++){var f=Zr[l],c=e[f],u=f==="normal";if(c){var v=c.get("show"),h=u?s:G(i.states[f]&&i.states[f].ignore,s);if(h||!G(v,o)){var d=u?n:n&&n.states[f];d&&(d.ignore=!0),n&&Kn(n,!0,f,c);continue}n||(n=new cn,t.setTextGuideLine(n),!u&&(s||!o)&&Kn(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Kn(n,!1,f,c)}}if(n){pe(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=Qd}}function ep(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<ke.length;n++){var i=ke[n];r[i]=t.getModel([i,e])}return r}function tp(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,f=o.clone();f.applyTransform(a),f.x-=l/2,f.y-=l/2,f.width+=l,f.height+=l;var c=s?new $r(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:f,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function rp(t,e,r,n,i,a){var o=t.length;if(o<2)return;t.sort(function(D,C){return D.rect[e]-C.rect[e]});for(var s=0,l,f=!1,c=0,u=0;u<o;u++){var v=t[u],h=v.rect;l=h[e]-s,l<0&&(h[e]-=l,v.label[e]-=l,f=!0);var d=Math.max(-l,0);c+=d,s=h[e]+h[r]}c>0&&a&&x(-c/o,0,o);var p=t[0],g=t[o-1],m,y;_(),m<0&&T(-m,.8),y<0&&T(y,.8),_(),w(m,y,1),w(y,m,-1),_(),m<0&&b(-m),y<0&&b(y);function _(){m=p.rect[e]-n,y=i-g.rect[e]-g.rect[r]}function w(D,C,A){if(D<0){var M=Math.min(C,-D);if(M>0){x(M*A,0,o);var I=M+D;I<0&&T(-I*A,1)}else T(-D*A,1)}}function x(D,C,A){D!==0&&(f=!0);for(var M=C;M<A;M++){var I=t[M],P=I.rect;P[e]+=D,I.label[e]+=D}}function T(D,C){for(var A=[],M=0,I=1;I<o;I++){var P=t[I-1].rect,L=Math.max(t[I].rect[e]-P[e]-P[r],0);A.push(L),M+=L}if(!!M){var k=Math.min(Math.abs(D)/M,C);if(D>0)for(var I=0;I<o-1;I++){var F=A[I]*k;x(F,0,I+1)}else for(var I=o-1;I>0;I--){var F=A[I-1]*k;x(-F,I,o)}}}function b(D){var C=D<0?-1:1;D=Math.abs(D);for(var A=Math.ceil(D/(o-1)),M=0;M<o-1;M++)if(C>0?x(A,0,M+1):x(-A,o-M-1,o),D-=A,D<=0)return}return f}function np(t,e,r,n){return rp(t,"y","height",e,r,n)}function ip(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new or(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],o=a.axisAligned,s=a.localRect,l=a.transform,f=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var u=a.obb,v=!1,h=0;h<e.length;h++){var d=e[h];if(!!r.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new $r(d.localRect,d.transform)),u||(u=new $r(s,l)),u.intersect(d.obb)){v=!0;break}}}v?(n(f),c&&n(c)):(f.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function Or(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;E(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:H(n,function(a){return Nu(a,i)})}}var Mo=Math.PI*2,Nr=Math.PI/180;function Jl(t,e){return zs(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function eu(t,e){var r=Jl(t,e),n=t.get("center"),i=t.get("radius");E(i)||(i=[0,i]);var a=te(r.width,e.getWidth()),o=te(r.height,e.getHeight()),s=Math.min(a,o),l=te(i[0],s/2),f=te(i[1],s/2),c,u,v=t.coordinateSystem;if(v){var h=v.dataToPoint(n);c=h[0]||0,u=h[1]||0}else E(n)||(n=[n,n]),c=te(n[0],a)+r.x,u=te(n[1],o)+r.y;return{cx:c,cy:u,r0:l,r:f}}function ap(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Jl(n,r),s=eu(n,r),l=s.cx,f=s.cy,c=s.r,u=s.r0,v=-n.get("startAngle")*Nr,h=n.get("endAngle"),d=n.get("padAngle")*Nr;h=h==="auto"?v-Mo:-h*Nr;var p=n.get("minAngle")*Nr,g=p+d,m=0;i.each(a,function(J){!isNaN(J)&&m++});var y=i.getSum(a),_=Math.PI/(y||m)*2,w=n.get("clockwise"),x=n.get("roseType"),T=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var D=w?1:-1,C=[v,h],A=D*d/2;Bu(C,!w),v=C[0],h=C[1];var M=tu(n);M.startAngle=v,M.endAngle=h,M.clockwise=w;var I=Math.abs(h-v),P=I,L=0,k=v;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(J,$){var N;if(isNaN(J)){i.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:f,r0:u,r:x?NaN:c});return}x!=="area"?N=y===0&&T?_:J*_:N=I/m,N<g?(N=g,P-=g):L+=J;var U=k+D*N,q=0,X=0;d>N?(q=k+D*N/2,X=q):(q=k+A,X=U-A),i.setItemLayout($,{angle:N,startAngle:q,endAngle:X,clockwise:w,cx:l,cy:f,r0:u,r:x?Xu(J,b,[u,c]):c}),k=U}),P<Mo&&m)if(P<=.001){var F=I/m;i.each(a,function(J,$){if(!isNaN(J)){var N=i.getItemLayout($);N.angle=F;var U=0,q=0;F<d?(U=v+D*($+1/2)*F,q=U):(U=v+D*$*F+A,q=v+D*($+1)*F-A),N.startAngle=U,N.endAngle=q}})}else _=P/L,k=v,i.each(a,function(J,$){if(!isNaN(J)){var N=i.getItemLayout($),U=N.angle===g?g:J*_,q=0,X=0;U<d?(q=k+D*U/2,X=q):(q=k+A,X=k+D*U-A),N.startAngle=q,N.endAngle=X,k+=D*U}})})}var tu=re();function op(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var sp=Math.PI/180;function Ao(t,e,r,n,i,a,o,s,l,f){if(t.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],w=Math.abs(_.label.y-r),x=n+_.len,T=x*x,b=Math.sqrt(Math.abs((1-w*w/m)*T)),D=e+(b+_.len2)*i,C=D-_.label.x,A=_.targetTextWidth-C*i;ru(_,A,!0),_.label.x=D}}function u(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],w=_.label.y>r?m:g,x=Math.abs(_.label.y-r);if(x>=w.maxY){var T=_.label.x-e-_.len2*i,b=n+_.len,D=Math.abs(T)<b?Math.sqrt(x*x/(1-T*T/b/b)):b;w.rB=D,w.maxY=x}w.list.push(_)}c(g),c(m)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-f;t[h].linePoints[1][0]+=d,t[h].label.x=f}np(t,l,l+o)&&u(t)}function lp(t,e,r,n,i,a,o,s){for(var l=[],f=[],c=Number.MAX_VALUE,u=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Zn(t[v])||(h.x<e?(c=Math.min(c,h.x),l.push(t[v])):(u=Math.max(u,h.x),f.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Zn(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=c-o-d.bleedMargin:g=o+i-u-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+i-h.x-d.bleedMargin,d.targetTextWidth=g,ru(d,g)}}Ao(f,e,r,n,1,i,a,o,s,u),Ao(l,e,r,n,-1,i,a,o,s,c);for(var v=0;v<t.length;v++){var d=t[v];if(!Zn(d)&&d.linePoints){var h=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,w=h.style.backgroundColor?0:_,x=d.rect.width+w,T=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+i-d.edgeDistance-x-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+T),p[1][1]=p[2][1]=h.y}}}function ru(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,f=i.overflow,c=a.width+(o?0:l);if(e<c||r){var u=a.height;if(f&&f.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var h=e-l,d=e<c?h:r?h>t.unconstrainedWidth?null:h:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-u)/2}}}function Zn(t){return t.position==="center"}function up(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*sp,s=e.getLayout("viewRect"),l=e.getLayout("r"),f=s.width,c=s.x,u=s.y,v=s.height;function h(T){T.ignore=!0}function d(T){if(!T.ignore)return!0;for(var b in T.states)if(T.states[b].ignore===!1)return!0;return!1}e.each(function(T){var b=e.getItemGraphicEl(T),D=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),M=e.getItemModel(T),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),k=I.get("alignTo"),F=te(I.get("edgeDistance"),f),J=I.get("bleedMargin"),$=M.getModel("labelLine"),N=$.get("length");N=te(N,f);var U=$.get("length2");if(U=te(U,f),Math.abs(D.endAngle-D.startAngle)<o){S(C.states,h),C.ignore=!0,A&&(S(A.states,h),A.ignore=!0);return}if(!!d(C)){var q=(D.startAngle+D.endAngle)/2,X=Math.cos(q),Be=Math.sin(q),ot,_t,Tr,St;n=D.cx,i=D.cy;var Xe=P==="inside"||P==="inner";if(P==="center")ot=D.cx,_t=D.cy,St="center";else{var Ot=(Xe?(D.r+D.r0)/2*X:D.r*X)+n,Nt=(Xe?(D.r+D.r0)/2*Be:D.r*Be)+i;if(ot=Ot+X*3,_t=Nt+Be*3,!Xe){var xr=Ot+X*(N+l-D.r),Cr=Nt+Be*(N+l-D.r),Dr=xr+(X<0?-1:1)*U,st=Cr;k==="edge"?ot=X<0?c+F:c+f-F:ot=Dr+(X<0?-L:L),_t=st,Tr=[[Ot,Nt],[xr,Cr],[Dr,st]]}St=Xe?"center":k==="edge"?X>0?"right":"left":X>0?"left":"right"}var Ke=Math.PI,Ve=0,Bt=I.get("rotate");if(ue(Bt))Ve=Bt*(Ke/180);else if(P==="center")Ve=0;else if(Bt==="radial"||Bt===!0){var vu=X<0?-q+Ke:-q;Ve=vu}else if(Bt==="tangential"&&P!=="outside"&&P!=="outer"){var wt=Math.atan2(X,Be);wt<0&&(wt=Ke*2+wt);var du=Be>0;du&&(wt=Ke+wt),Ve=wt-Ke}if(a=!!Ve,C.x=ot,C.y=_t,C.rotation=Ve,C.setStyle({verticalAlign:"middle"}),Xe){C.setStyle({align:St});var Tn=C.states.select;Tn&&(Tn.x+=C.x,Tn.y+=C.y)}else{var Vt=C.getBoundingRect().clone();Vt.applyTransform(C.getComputedTransform());var ra=(C.style.margin||0)+2.1;Vt.y-=ra/2,Vt.height+=ra,r.push({label:C,labelLine:A,position:P,len:N,len2:U,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new ne(X,Be),linePoints:Tr,textAlign:St,labelDistance:L,labelAlignTo:k,edgeDistance:F,bleedMargin:J,rect:Vt,unconstrainedWidth:Vt.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Xe})}}),!a&&t.get("avoidLabelOverlap")&&lp(r,n,i,l,f,v,c,u);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(S(m.states,h),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(y){var x=g.linePoints;_||!x?(S(y.states,h),y.ignore=!0):(qd(x,g.minTurnAngle),jd(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new ne(x[0][0],x[0][1])})}}}var fp=function(t){fe(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Ee;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),f=l.getModel("emphasis"),c=r.getItemLayout(n),u=R(Or(l.getModel("itemStyle"),c,!0),c);if(isNaN(u.startAngle)){o.setShape(u);return}if(a){o.setShape(u);var v=s.getShallow("animationType");s.ecModel.ssr?(Fr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=u.cx,o.originY=u.cy):v==="scale"?(o.shape.r=c.r0,Fr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Fr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,fr(o,{shape:{endAngle:c.endAngle}},s,n))}else Qf(o),fr(o,{shape:u},s,n);o.useStyle(r.getItemVisual(n,"style")),Xf(o,l);var h=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=R({r:c.r+(f.get("scale")&&f.get("scaleSize")||0)},Or(f.getModel("itemStyle"),c)),R(o.ensureState("select"),{x:p,y:g,shape:Or(l.getModel(["select","itemStyle"]),c)}),R(o.ensureState("blur"),{shape:Or(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&R(y.ensureState("select"),{x:p,y:g}),R(_.ensureState("select"),{x:p,y:g}),Yf(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),f=l&&l.fill,c=l&&l.opacity;gc(a,mc(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:f,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var u=a.getTextContent();a.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var v=r.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new cn,this.setTextGuideLine(h)),Jd(this,ep(o),{stroke:f,opacity:Vu(s.get(["lineStyle","opacity"]),c,1)})}},e}(fn),cp=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,f;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),u=1;isNaN(c&&c.startAngle)&&u<o.count();++u)c=o.getItemLayout(u);c&&(f=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=tu(r),h=new fn({shape:R(eu(r,i),v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new fp(o,d,f);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,f),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Ds(p,r,d)}).execute(),up(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(It),hp=cp;function vp(t,e,r){e=E(e)&&{coordDimensions:e}||R({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Gd(n,e).dimensions,a=new Ud(i,t);return a.initData(n,r),a}var dp=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),pp=dp,gp=re(),mp=function(t){fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new pp(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vp(this,{coordDimensions:["value"],encodeDefaulter:we(Jc,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=gp(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=qu(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){ri(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.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"},e}(pr),yp=mp;function _p(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ue(o)&&!isNaN(o)&&o<0)})}}}function Og(t){t.registerChartView(hp),t.registerSeriesModel(yp),Uv("pie",t.registerAction),t.registerLayout(we(ap,"pie")),t.registerProcessor(op("pie")),t.registerProcessor(_p("pie"))}function Io(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,f=i.dim,c=n.getRect(),u=[c.x,c.x+c.width,c.y,c.y+c.height],v={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d=f==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[f==="y"?d[v[l]]:u[0],f==="x"?d[v[l]]:u[3]],a.rotation=Math.PI/2*(f==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),sr(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}var rt=Math.PI,dt=function(){function t(e,r){this.group=new pt,this.opt=r,this.axisModel=e,pe(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new pt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!Po[e]},t.prototype.add=function(e){Po[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=is(r-e),a,o;return Xr(i)?(o=n>0?"top":"bottom",a="center"):Xr(i-rt)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<rt?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),Po={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],f=s[0]>l[0];o&&(ar(s,s,o),ar(l,l,o));var c=R({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new yr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Bi(u.shape,u.style.lineWidth),u.anid="line",r.add(u);var v=e.get(["axisLine","symbol"]);if(v!=null){var h=e.get(["axisLine","symbolSize"]);O(v)&&(v=[v,v]),(O(h)||ue(h))&&(h=[h,h]);var d=Qv(e.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];S([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(v[y]!=="none"&&v[y]!=null){var _=bl(v[y],-p/2,-g/2,p,g,c.stroke,!0),w=m.r+m.offset,x=f?l:s;_.attr({rotation:m.rotate,x:x[0]+w*Math.cos(t.rotation),y:x[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(t,e,r,n){var i=Tp(r,n,e,t),a=Cp(r,n,e,t);if(wp(e,a,i),xp(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=tp(H(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ip(o)}},axisName:function(t,e,r,n){var i=sr(t.axisName,e.get("name"));if(!!i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,f=e.axis.getExtent(),c=f[0]>f[1]?-1:1,u=[a==="start"?f[0]-c*l:a==="end"?f[1]+c*l:(f[0]+f[1])/2,Ro(a)?t.labelOffset+o*l:0],v,h=e.get("nameRotate");h!=null&&(h=h*rt/180);var d;Ro(a)?v=dt.innerTextLayout(t.rotation,h!=null?h:t.rotation,o):(v=Sp(t.rotation,a,h||0,f),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,y=sr(t.nameTruncateMaxWidth,g.maxWidth,d),_=new Ee({x:u[0],y:u[1],rotation:v.rotation,silent:dt.isLabelSilent(e),style:cr(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Fi({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var w=dt.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Q(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function Sp(t,e,r,n){var i=is(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Xr(i-rt/2)?(o=l?"bottom":"top",a="center"):Xr(i-rt*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<rt*1.5&&i>rt/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function wp(t,e,r){if(!Kd(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],f=r[0],c=r[1],u=r[r.length-1],v=r[r.length-2];n===!1?(Ce(a),Ce(f)):Lo(a,o)&&(n?(Ce(o),Ce(c)):(Ce(a),Ce(f))),i===!1?(Ce(s),Ce(u)):Lo(l,s)&&(i?(Ce(l),Ce(v)):(Ce(s),Ce(u)))}}function Ce(t){t&&(t.ignore=!0)}function Lo(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=qo([]);return rs(i,i,-t.rotation),r.applyTransform(ei([],i,t.getLocalTransform())),n.applyTransform(ei([],i,e.getLocalTransform())),r.intersect(n)}}function Ro(t){return t==="middle"||t==="center"}function nu(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var f=t[l].coord;o[0]=f,o[1]=0,s[0]=f,s[1]=r,e&&(ar(o,o,e),ar(s,s,e));var c=new yr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Bi(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c)}return a}function Tp(t,e,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),f=i.getTicksCoords(),c=nu(f,e.transform,l,pe(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<c.length;u++)t.add(c[u]);return c}}function xp(t,e,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),f=pe(s.getLineStyle(),pe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var u=nu(o[c],e.transform,l,f,"minorticks_"+c),v=0;v<u.length;v++)t.add(u[v])}}function Cp(t,e,r,n){var i=r.axis,a=sr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),f=(sr(n.labelRotate,o.get("rotate"))||0)*rt/180,c=dt.innerTextLayout(n.rotation,f,n.labelDirection),u=r.getCategories&&r.getCategories(!0),v=[],h=dt.isLabelSilent(r),d=r.get("triggerEvent");return S(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,w=o;if(u&&u[m]){var x=u[m];B(x)&&x.textStyle&&(w=new ve(x.textStyle,o,r.ecModel))}var T=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(m),D=w.getShallow("align",!0)||c.textAlign,C=G(w.getShallow("alignMinLabel",!0),D),A=G(w.getShallow("alignMaxLabel",!0),D),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,I=G(w.getShallow("verticalAlignMinLabel",!0),M),P=G(w.getShallow("verticalAlignMaxLabel",!0),M),L=new Ee({x:b,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:cr(w,{text:y,align:g===0?C:g===l.length-1?A:D,verticalAlign:g===0?I:g===l.length-1?P:M,fill:W(T)?T(i.type==="category"?_:i.type==="value"?m+"":m,g):T})});if(L.anid="label_"+m,Fi({el:L,componentModel:r,itemName:y,formatterParamsExtra:{isTruncated:function(){return L.isTruncated},value:_,tickIndex:g}}),d){var k=dt.makeAxisEventDataBase(r);k.targetType="axisLabel",k.value=_,k.tickIndex=g,i.type==="category"&&(k.dataIndex=m),Q(L).eventData=k}e.add(L),L.updateTransform(),v.push(L),t.add(L),L.decomposeTransform()}),v}}var Dp=dt;function bp(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Mp(r,t,e),r.seriesInvolved&&Ip(r,t),r}function Mp(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];S(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=mr(s.model),f=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,u=c.getModel("tooltip",n);if(S(s.getAxes(),we(p,!1,null)),s.getTooltipAxes&&n&&u.get("show")){var v=u.get("trigger")==="axis",h=u.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(u.get(["axisPointer","axis"]));(v||h)&&S(d.baseAxes,we(p,h?"cross":!0,v)),h&&S(d.otherAxes,we(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),w=_.get("show");if(!(!w||w==="auto"&&!g&&!Ti(_))){m==null&&(m=_.get("triggerTooltip")),_=g?Ap(y,u,i,e,g,m):_;var x=_.get("snap"),T=_.get("triggerEmphasis"),b=mr(y.model),D=m||x||y.type==="category",C=t.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:T,involveSeries:D,snap:x,useHandle:Ti(_),seriesModels:[],linkGroup:null};f[b]=C,t.seriesInvolved=t.seriesInvolved||D;var A=Pp(a,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[b]=C,M.mapper=a[A].mapper,C.linkGroup=M}}}})}function Ap(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};S(s,function(v){l[v]=z(o.get(v))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var f=l.label||(l.label={});if(f.show==null&&(f.show=!1),i==="cross"){var c=o.get(["label","show"]);if(f.show=c!=null?c:!0,!a){var u=l.lineStyle=o.get("crossStyle");u&&pe(f,u.textStyle)}}return t.model.getModel("axisPointer",new ve(l,r,n))}function Ip(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||S(t.coordSysAxesInfo[mr(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Pp(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(qn(a[n+"AxisId"],r.id)||qn(a[n+"AxisIndex"],r.componentIndex)||qn(a[n+"AxisName"],r.name))return i}}function qn(t,e){return t==="all"||E(t)&&_e(t,e)>=0||t===e}function Lp(t){var e=ea(t);if(!!e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Ti(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function ea(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mr(t)]}function Rp(t){var e=ea(t);return e&&e.axisPointerModel}function Ti(t){return!!t.get(["handle","show"])}function mr(t){return t.type+"||"+t.id}var Eo={},Ep=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&Lp(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(!!a){var o=Rp(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Eo[r]=n},e.getAxisPointerClass=function(r){return r&&Eo[r]},e.type="axis",e}(Lt),kp=Ep;function Ng(t){t.registerPainter("canvas",Fu)}var ht=re(),ko=z,jn=Y,Op=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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 f={};this.makeElOption(f,a,e,r,n);var c=f.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new pt,this.createPointerEl(s,f,e,r),this.createLabelEl(s,f,e,r),n.getZr().add(s);else{var v=we(Oo,r,u);this.updatePointerEl(s,f,v),this.updateLabelEl(s,f,v,r)}Bo(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=ea(e).seriesDataCount,f=i.getExtent();return Math.abs(f[0]-f[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=ht(e).pointerEl=new dc[a.type](ko(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=ht(e).labelEl=new Ee(ko(r.label));e.add(a),No(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=ht(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=ht(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),No(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Is(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(f){zu(f.event)},onmousedown:jn(this._onHandleDragMove,this,0,0),drift:jn(this._onHandleDragMove,this),ondragend:jn(this._onHandleDragEnd,this)}),n.add(i)),Bo(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");E(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,yl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Oo(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Qn(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Qn(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Qn(i)),ht(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),gi(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function Oo(t,e,r,n){iu(ht(r).lastProp,n)||(ht(r).lastProp=n,e?fr(r,n,t):(r.stopAnimation(),r.attr(n)))}function iu(t,e){if(B(t)&&B(e)){var r=!0;return S(e,function(n,i){r=r&&iu(t[i],n)}),!!r}else return t===e}function No(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Qn(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Bo(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var Np=Op;function Bp(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Vp(t,e,r,n,i){var a=r.get("value"),o=au(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ui(s.get("padding")||0),f=s.getFont(),c=Uu(o,f),u=i.position,v=c.width+l[1]+l[3],h=c.height+l[0]+l[2],d=i.align;d==="right"&&(u[0]-=v),d==="center"&&(u[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(u[1]-=h),p==="middle"&&(u[1]-=h/2),Fp(u,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:cr(s,{text:o,font:f,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Fp(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function au(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:ql(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};S(n,function(l){var f=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,u=f&&f.getDataParams(c);u&&s.seriesData.push(u)}),O(o)?a=o.replace("{value}",a):W(o)&&(a=o(s))}return a}function ou(t,e,r){var n=Gu();return rs(n,n,r.rotation),Hu(n,n,r.position),Vi([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function zp(t,e,r,n,i,a){var o=Dp.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Vp(e,n,i,a,{position:ou(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Hp(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function Up(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var Gp=function(t){fe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,f=a.get("type"),c=Vo(l,s).getOtherAxis(s).getGlobalExtent(),u=s.toGlobalCoord(s.dataToCoord(n,!0));if(f&&f!=="none"){var v=Bp(a),h=Yp[f](s,u,c);h.style=v,r.graphicKey=h.type,r.pointer=h}var d=Io(l.model,i);zp(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Io(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=ou(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),f=Vo(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,u=[r.x,r.y];u[c]+=n[c],u[c]=Math.min(l[1],u[c]),u[c]=Math.max(l[0],u[c]);var v=(f[1]+f[0])/2,h=[v,v];h[c]=u[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[c]}},e}(Np);function Vo(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var Yp={line:function(t,e,r){var n=Hp([e,r[0]],[e,r[1]],Fo(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Up([e-n/2,r[0]],[n,i],Fo(t))}}};function Fo(t){return t.dim==="x"?0:1}var Wp=Gp,$p=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}},e}(ee),Xp=$p,He=re(),Kp=S;function su(t,e,r){if(!Z.node){var n=e.getZr();He(n).records||(He(n).records={}),Zp(n,e);var i=He(n).records[t]||(He(n).records[t]={});i.handler=r}}function Zp(t,e){if(He(t).initialized)return;He(t).initialized=!0,r("click",we(zo,"click")),r("mousemove",we(zo,"mousemove")),r("globalout",jp);function r(n,i){t.on(n,function(a){var o=Qp(e);Kp(He(t).records,function(s){s&&i(s,a,o.dispatchAction)}),qp(o.pendings,e)})}}function qp(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function jp(t,e,r){t.handler("leave",null,r)}function zo(t,e,r,n){e.handler(t,r,n)}function Qp(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function xi(t,e){if(!Z.node){var r=e.getZr(),n=(He(r).records||{})[t];n&&(He(r).records[t]=null)}}var Jp=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";su("axisPointer",i,function(s,l,f){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&f({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){xi("axisPointer",n)},e.prototype.dispose=function(r,n){xi("axisPointer",n)},e.type="axisPointer",e}(Lt),eg=Jp;function lu(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Sr(a,t);if(o==null||o<0||E(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var f=l.getBaseAxis(),c=l.getOtherAxis(f),u=c.dim,v=f.dim,h=u==="x"||u==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(H(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Ho=re();function tg(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Y(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Yr(i)&&(i=lu({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Yr(i),f=a.axesInfo,c=s.axesInfo,u=n==="leave"||Yr(i),v={},h={},d={list:[],map:{}},p={showPointer:we(ng,h),showTooltip:we(ig,d)};S(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);S(s.coordSysAxesInfo[y],function(w,x){var T=w.axis,b=lg(f,w);if(!u&&_&&(!f||b)){var D=b&&b.value;D==null&&!l&&(D=T.pointToData(i)),D!=null&&Uo(w,D,p,!1,v)}})});var g={};return S(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&S(_.axesInfo,function(w,x){var T=h[x];if(w!==m&&T){var b=T.value;_.mapper&&(b=m.axis.scale.parse(_.mapper(b,Go(w),Go(m)))),g[m.key]=b}})}),S(g,function(m,y){Uo(c[y],m,p,!0,v)}),ag(h,c,v),og(d,i,t,o),sg(c,o,r),v}}function Uo(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=rg(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&R(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function rg(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return S(e.seriesModels,function(l,f){var c=l.getData().mapDimensionsAll(n),u,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,t,r);v=h.dataIndices,u=h.nestestValue}else{if(v=l.getData().indicesOfNearest(c[0],t,r.type==="category"?.5:null),!v.length)return;u=l.getData().get(c[0],v[0])}if(!(u==null||!isFinite(u))){var d=t-u,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=u,a.length=0),S(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function ng(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function ig(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,f=mr(l),c=t.map[f];c||(c=t.map[f]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ag(t,e,r){var n=r.axesInfo=[];S(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function og(t,e,r,n){if(Yr(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function sg(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Ho(n)[i]||{},o=Ho(n)[i]={};S(t,function(f,c){var u=f.axisPointerModel.option;u.status==="show"&&f.triggerEmphasis&&S(u.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];S(a,function(f,c){!o[c]&&l.push(f)}),S(o,function(f,c){!a[c]&&s.push(f)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function lg(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Go(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Yr(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function ug(t){kp.registerAxisPointerClass("CartesianAxisPointer",Wp),t.registerComponentModel(Xp),t.registerComponentView(eg),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!E(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=bp(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tg)}var fg=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(ee),cg=fg;function uu(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function fu(t){if(!!Z.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var cu=fu(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),hg=fu(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function hu(t,e){if(!t)return e;e=Bs(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function vg(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var dg=hu(hg,"transition"),ta=hu(cu,"transform"),pg="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Z.transform3dSupported?"will-change:transform;":"");function gg(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function mg(t,e,r){if(!O(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=hr(e);var a=gg(r),o=Math.max(Math.round(i)*1.5,6),s="",l=ta+":",f;_e(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(f=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(f=a==="top"?225:45)+"deg)");var c=f*Math.PI/180,u=o+i,v=u*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-u)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function yg(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=Z.transformSupported?","+ta+n:",left"+n+",top"+n),dg+":"+i}function Yo(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Z.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Z.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+ta+":"+o+";":[["top",0],["left",0],[cu,o]]}function _g(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=G(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),S(["decoration","align"],function(f){var c=t.get(f);c&&e.push("text-"+f+":"+c)}),e.join(";")}function Sg(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),u=pl(t,"html"),v=l+"px "+f+"px "+o+"px "+s;return n.push("box-shadow:"+v),e&&i&&n.push(yg(i,r)),a&&n.push("background-color:"+a),S(["width","color","radius"],function(h){var d="border-"+h,p=Bs(d),g=t.get(p);g!=null&&n.push(d+":"+g+(h==="color"?"":"px"))}),n.push(_g(c)),u!=null&&n.push("padding:"+Ui(u).join("px ")+"px"),n.join(";")+";"}function Wo(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&Wu(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wg=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Z.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(O(a)?document.querySelector(a):oa(a)?a:W(a)&&a(e.getDom()));Wo(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var f=i.handler,c=i.painter.getViewportRoot();Yu(c,l,!0),f.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=vg(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=pg+Sg(e,!this._firstShow,this._longHide)+Yo(a[0],a[1],!0)+("border-color:"+hr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(O(a)&&n.get("trigger")==="item"&&!uu(n)&&(s=mg(n,i,a)),O(e))o.innerHTML=e+s;else if(e){o.innerHTML="",E(e)||(e=[e]);for(var l=0;l<e.length;l++)oa(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var f=document.createElement("div");f.innerHTML=s,o.appendChild(f)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(!!this.el){var n=this._styleCoord;if(Wo(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Yo(n[0],n[1]);S(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Z.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),Tg=wg,xg=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Xo(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;B(e)&&ye(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ee({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:pl(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),S(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(f){o.el.style[f]=n.get(f)}),S(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(f){o.el.style[f]=s.get(f)||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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=$o(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Xo(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Je(a.borderWidth||0),s=$o(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Je(t){return Math.max(0,t)}function $o(t){var e=Je(t.shadowBlur||0),r=Je(t.shadowOffsetX||0),n=Je(t.shadowOffsetY||0);return{left:Je(e-r),right:Je(e+r),top:Je(e-n),bottom:Je(e+n)}}function Xo(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Cg=xg,Dg=new Ue({shape:{x:-1,y:-1,width:2,height:2}}),bg=function(t){fe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(Z.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=df(i.get("renderMode"));this._tooltipContent=a==="richText"?new Cg(n):new Tg(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(Z.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?yl(this,"_updatePosition",50,"fixRate"):gi(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");su("itemTooltip",this._api,Y(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Z.node||!i.getDom())){var o=Ko(a,i);this._ticket="";var s=a.dataByCoordSys,l=Pg(a,n,i);if(l){var f=l.el.getBoundingRect().clone();f.applyTransform(l.el.transform),this._tryShow({offsetX:f.x+f.width/2,offsetY:f.y+f.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=Dg;c.x=a.x,c.y=a.y,c.update(),Q(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var u=lu(a,n),v=u.point[0],h=u.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:u.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Ko(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var f=n.getSeriesByIndex(o);if(!!f){var c=f.getData(),u=Zt([c.getItemModel(s),f,(f.coordinateSystem||{}).model],this._tooltipModel);if(u.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(!!a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Q(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,f;jt(i,function(c){if(Q(c).dataIndex!=null)return l=c,!0;if(Q(c).tooltipConfig!=null)return f=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):f?this._showComponentItemTooltip(r,f,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Y(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Zt([n.tooltipOption],a),l=this._renderMode,f=[],c=dr("section",{blocks:[],noHeader:!0}),u=[],v=new Nn;S(r,function(y){S(y.dataByAxis,function(_){var w=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!w||x==null)){var T=au(x,w.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=dr("section",{header:T,noHeader:!_r(T),sortBlocks:!0,blocks:[]});c.blocks.push(b),S(_.seriesDataIndices,function(D){var C=i.getSeriesByIndex(D.seriesIndex),A=D.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=ql(w.axis,{value:x}),M.axisValueLabel=T,M.marker=v.makeTooltipMarker("item",hr(M.color),l);var I=$a(C.formatTooltip(A,!0,null)),P=I.frag;if(P){var L=Zt([C],a).get("valueFormatter");b.blocks.push(L?R({valueFormatter:L},P):P)}I.text&&u.push(I.text),f.push(M)}})}})}),c.blocks.reverse(),u.reverse();var h=n.position,d=s.get("order"),p=ja(c,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&u.unshift(p);var g=l==="richText"?`
|
|
|
|
`:"<br/>",m=u.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,f)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,f):this._showTooltipContent(s,m,f,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Q(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),f=o.dataModel||l,c=o.dataIndex,u=o.dataType,v=f.getData(u),h=this._renderMode,d=r.positionDefault,p=Zt([v.getItemModel(c),f,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=f.getDataParams(c,u),y=new Nn;m.marker=y.makeTooltipMarker("item",hr(m.color),h);var _=$a(f.formatTooltip(c,!1,u)),w=p.get("order"),x=p.get("valueFormatter"),T=_.frag,b=T?ja(x?R({valueFormatter:x},T):T,y,h,w,a.get("useUTC"),p.get("textStyle")):_.text,D="item_"+f.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,b,m,D,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Q(n),s=o.tooltipConfig,l=s.option||{},f=l.encodeHTMLContent;if(O(l)){var c=l;l={content:c,formatter:c},f=!0}f&&a&&l.content&&(l=z(l),l.content=me(l.content));var u=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&u.push(v),u.push({formatter:l.content});var h=r.positionDefault,d=Zt(u,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",m=new Nn;this._showOrMove(d,function(){var y=z(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,f,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var u=this._tooltipContent;u.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=d.color;if(v)if(O(v)){var g=r.ecModel.get("useUTC"),m=E(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=Ns(m.axisValue,h,g)),h=Vs(h,i,!0)}else if(W(v)){var _=Y(function(w,x){w===this._ticket&&(u.setContent(x,c,r,p,l),this._updatePosition(r,l,o,s,u,i,f))},this);this._ticket=a,h=v(i,a,_)}else h=v;u.setContent(h,c,r,p,l),u.show(r,p),this._updatePosition(r,l,o,s,u,i,f)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||E(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!E(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var f=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var u=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),W(n)&&(n=n([i,a],s,o.el,d,{viewSize:[f,c],contentSize:u.slice()})),E(n))i=te(n[0],f),a=te(n[1],c);else if(B(n)){var p=n;p.width=u[0],p.height=u[1];var g=zs(p,{width:f,height:c});i=g.x,a=g.y,v=null,h=null}else if(O(n)&&l){var m=Ig(n,d,u,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=Mg(i,a,o,f,c,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=Zo(v)?u[0]/2:v==="right"?u[0]:0),h&&(a-=Zo(h)?u[1]/2:h==="bottom"?u[1]:0),uu(r)){var m=Ag(i,a,o,f,c);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&S(i,function(s,l){var f=s.dataByAxis||[],c=r[l]||{},u=c.dataByAxis||[];o=o&&f.length===u.length,o&&S(f,function(v,h){var d=u[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&S(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&S(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],w=a[y];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){Z.node||!n.getDom()||(gi(this,"_updatePosition"),this._tooltipContent.dispose(),xi("itemTooltip",n))},e.type="tooltip",e}(Lt);function Zt(t,e,r){var n=e.ecModel,i;r?(i=new ve(r,n,n),i=new ve(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof ve&&(o=o.get("tooltip",!0)),O(o)&&(o={formatter:o}),o&&(i=new ve(o,i,n)))}return i}function Ko(t,e){return t.dispatchAction||Y(e.dispatchAction,e)}function Mg(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],f=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+f+o>i?e-=f+o:e+=o),[t,e]}function Ag(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Ig(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,f=e.width,c=e.height;switch(t){case"inside":s=e.x+f/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+f/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+f/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+f+o,l=e.y+c/2-a/2}return[s,l]}function Zo(t){return t==="center"||t==="middle"}function Pg(t,e,r){var n=bi(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=wr(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(f){var c=Q(f).tooltipConfig;if(c&&c.name===t.name)return l=f,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var Lg=bg;function Bg(t){jl(ug),t.registerComponentModel(cg),t.registerComponentView(Lg),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},it),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},it)}export{Ng as a,Bg as b,kg as c,Og as i,jl as u};
|