1import{i as O,a as P,m as z,c as V,e as S,b as oe,d as qe,f as Q,g as N,h as ne,j as Fa,k as yv,l as R,n as U,L as qu,o as Or,p as be,P as me,q as mo,r as _v,s as J,t as xv,u as Sv,Z as kn,v as wv,w as bv,x as Tv,y as ju,z as Va,T as Qu,A as Si,B as At,C as q,D as je,E as Mv,F as wi,G as Ju,S as Br,R as el,H as tl,I as bi,J as pe,K as It,M as rl,N as Ti,O as Ye,Q as Cv,U as Qe,V as Dv,W as Av,X as Sn,Y as Ie,_ as Iv,$ as Ne,a0 as Nr,a1 as K,a2 as $,a3 as dt,a4 as De,a5 as Lv,a6 as we,a7 as Le,a8 as le,a9 as ee,aa as wn,ab as nl,ac as Pv,ad as vt,ae as za,af as Ev,ag as al,ah as kv,ai as Rn,aj as yo,ak as Qn,al as Rv,am as Ga,an as Ha,ao as Ov,ap as il,aq as Bv,ar as Nv,as as Fv,at as _o,au as Jn,av as Yr,aw as Vv,ax as Sr,ay as ol,az as zv,aA as Gv,aB as Hv,aC as Wv,aD as Uv,aE as Yv,aF as Xv,aG as $v,aH as Zv,aI as Kv,aJ as qv,aK as jv,aL as Qv}from"./zrender-e1259af5.js";/*! ***************************************************************************** 2Copyright (c) Microsoft Corporation. 3 4Permission to use, copy, modify, and/or distribute this software for any 5purpose with or without fee is hereby granted. 6 7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13PERFORMANCE OF THIS SOFTWARE. 14***************************************************************************** */var Wa=function(t,e){return Wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Wa(t,e)};function H(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wa(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var xo=1e-4,sl=20;function Jv(t){return t.replace(/^\s+|\s+$/g,"")}function So(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],u=i-a,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/u*l+o}function fe(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)?Jv(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function ie(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),sl),t=(+t).toFixed(e),r?t:+t}function Ze(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 eh(t)}function eh(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function th(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function rh(t,e){var r=Math.max(Ze(t),Ze(e)),n=t+e;return r>sl?n:ie(n,r)}function ul(t){var e=Math.PI*2;return(t%e+e)%e}function bn(t){return t>-xo&&t<xo}var nh=/^(?:(\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 Je(t){if(t instanceof Date)return t;if(O(t)){var e=nh.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 ah(t){return Math.pow(10,Mi(t))}function Mi(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ll(t,e){var r=Mi(t),n=Math.pow(10,r),a=t/n,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function ht(t){var e=parseFloat(t);return e==t&&(e!==0||!O(t)||t.indexOf("x")<=0)?e:NaN}function ih(t){return!isNaN(ht(t))}function fl(){return Math.round(Math.random()*9)}function cl(t,e){return e===0?t:cl(e,t%e)}function wo(t,e){return t==null?e:e==null?t:t*e/cl(t,e)}function W(t){throw new Error(t)}function bo(t,e,r){return(e-t)*r+t}var vl="series\0",oh="\0_ec_\0";function ae(t){return t instanceof Array?t:t==null?[]:[t]}function To(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var Mo=["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 Fr(t){return N(t)&&!P(t)&&!(t instanceof Date)?t.value:t}function sh(t){return N(t)&&!(t instanceof Array)}function uh(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=V();S(e,function(u,l){if(!N(u)){e[l]=null;return}});var s=lh(t,o,r);return(n||a)&&fh(s,t,o,e),n&&ch(s,e),n||a?vh(s,e,a):i&&hh(s,e),dh(s),s}function lh(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||wr(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function fh(t,e,r,n){S(n,function(a,i){if(!(!a||a.id==null)){var o=hr(a.id),s=r.get(o);if(s!=null){var u=t[s];qe(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=a,u.existing=e[s],n[i]=null}}})}function ch(t,e){S(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!wr(r)&&!wr(i)&&hl("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function vh(t,e,r){S(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||wr(a.existing)||a.existing&&n.id!=null&&!hl("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function hh(t,e){S(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function dh(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;qe(!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 a=r.existing,i=r.newOption,o=r.keyInfo;if(N(i)){if(o.name=i.name!=null?hr(i.name):a?a.name:vl+n,a)o.id=hr(a.id);else if(i.id!=null)o.id=hr(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function hl(t,e,r){var n=We(e[t],null),a=We(r[t],null);return n!=null&&a!=null&&n===a}function hr(t){return We(t,"")}function We(t,e){return t==null?e:O(t)?t:ne(t)||Fa(t)?t+"":e}function dl(t){var e=t.name;return!!(e&&e.indexOf(vl))}function wr(t){return t&&t.id!=null&&hr(t.id).indexOf(oh)===0}function ph(t,e,r){S(t,function(n){var a=n.newOption;N(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=gh(e,a,n.existing,r))})}function gh(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function Vr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return P(e.dataIndex)?z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return P(e.name)?z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}
14function j(){var t="__ec_inner_"+mh++;return function(e){return e[t]||(e[t]={})}}var mh=fl();function ea(t,e,r){var n=Ci(e,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!a&&u&&i.set(u,{}),i.each(function(l,f){var c=zr(t,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ci(t,e){var r;if(O(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=V(),i={},o=!1;return S(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){i[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&oe(e.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Be={useDefault:!0,enableAll:!1,enableNone:!1};function zr(t,e,r,n){n=n||Be;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}return a==="none"||a===!1?(qe(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(qe(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function pl(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function yh(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function _h(t){return t==="auto"?Q.domSupported?"html":"richText":t||"html"}function xh(t,e,r,n,a){var i=e==null||e==="auto";if(n==null)return n;if(ne(n)){var o=bo(r||0,n,a);return ie(o,i?Math.max(Ze(r||0),Ze(n)):e)}else{if(O(n))return a<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var h=t.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&u?u:l)[c];else{var v=u&&u[c]?u[c]:0,d=l[c],o=bo(v,d,a);s[c]=ie(o,i?Math.max(Ze(v),Ze(d)):e)}}return s}}var Sh=".",pt="___EC__COMPONENT__CONTAINER___",gl="___EC__EXTENDED_CLASS___";function He(t){var e={main:"",sub:""};if(t){var r=t.split(Sh);e.main=r[0]||"",e.sub=r[1]||""}return e}function wh(t){qe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function bh(t){return!!(t&&t[gl])}function Di(t,e){t.$constructor=t,t.extend=function(r){var n=this,a;return Th(n)?a=function(i){H(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},yv(a,this)),R(a.prototype,r),a[gl]=!0,a.extend=this.extend,a.superCall=Dh,a.superApply=Ah,a.superClass=n,a}}function Th(t){return U(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function ml(t,e){t.extend=e.extend}var Mh=Math.round(Math.random()*10);function Ch(t){var e=["__\0is_clz",Mh++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function Dh(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 Ah(t,e,r){return this.superClass.prototype[e].apply(t,r)}function On(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){wh(a),n.prototype.type=a;var i=He(a);if(!i.sub)e[i.main]=n;else if(i.sub!==pt){var o=r(i);o[i.sub]=n}}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[pt]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=He(n),i=[],o=e[a.main];return o&&o[pt]?S(o,function(s,u){u!==pt&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=He(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return S(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=He(n),i=e[a.main];return i&&i[pt]};function r(n){var a=e[n.main];return(!a||!a[pt])&&(a=e[n.main]={},a[pt]=!0),a}}function br(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,a,i){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(a&&oe(a,u)>=0||i&&oe(i,u)<0)){var l=n.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var Ih=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
14pacity"],["shadowColor"]],Lh=br(Ih),Ph=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Lh(this,e,r)},t}(),X=j(),Eh=function(t,e,r,n){if(n){var a=X(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,n.type==="group"&&n.traverse(function(i){var o=X(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e})}},Co=1,Do={},yl=j(),Ai=j(),_l=0,Ii=1,Li=2,Xe=["emphasis","blur","select"],Tn=["normal","emphasis","blur","select"],kh=10,Rh=9,Ct="highlight",hn="downplay",dr="select",dn="unselect",pr="toggleSelect";function kt(t){return t!=null&&t!=="none"}var Ao=new qu(100);function Io(t){if(O(t)){var e=Ao.get(t);return e||(e=mo(t,-.1),Ao.put(t,e)),e}else if(_v(t)){var r=R({},t);return r.colorStops=z(t.colorStops,function(n){return{offset:n.offset,color:mo(n.color,-.1)}}),r}return t}function Bn(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function xl(t){Bn(t,"emphasis",Li)}function Sl(t){t.hoverState===Li&&Bn(t,"normal",_l)}function Pi(t){Bn(t,"blur",Ii)}function wl(t){t.hoverState===Ii&&Bn(t,"normal",_l)}function Oh(t){t.selected=!0}function Bh(t){t.selected=!1}function Lo(t,e,r){e(t,r)}function tt(t,e,r){Lo(t,e,r),t.isGroup&&t.traverse(function(n){Lo(n,e,r)})}function Nh(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],u=a[s];i[s]=u??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(i,e)}return i}function Fh(t,e,r,n){var a=r&&oe(r,"select")>=0,i=!1;if(t instanceof me){var o=yl(t),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(kt(s)||kt(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=R({},n),l=R({},l),l.fill=s):!kt(l.fill)&&kt(s)?(i=!0,n=R({},n),l=R({},l),l.fill=Io(s)):!kt(l.stroke)&&kt(u)&&(i||(n=R({},n),l=R({},l)),l.stroke=Io(u)),n.style=l}}if(n&&n.z2==null){i||(n=R({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??kh)}return n}function Vh(t,e,r){if(r&&r.z2==null){r=R({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??Rh)}return r}function zh(t,e,r){var n=oe(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:Nh(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=R({},r),o=R({opacity:n?a:i.opacity*.1},o),r.style=o),r}function ta(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return Fh(this,t,e,r);if(t==="blur")return zh(this,t,r);if(t==="select")return Vh(this,t,r)}return r}function Gh(t){t.stateProxy=ta;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=ta),r&&(r.stateProxy=ta)}function Po(t,e){!Cl(t,e)&&!t.__highByOuter&&tt(t,xl)}function Eo(t,e){!Cl(t,e)&&!t.__highByOuter&&tt(t,Sl)}function Ua(t,e){t.__highByOuter|=1<<(e||0),tt(t,xl)}function Ya(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&tt(t,Sl)}function Hh(t){tt(t,Pi)}function bl(t){tt(t,wl)}function Tl(t){tt(t,Oh)}function Ml(t){tt(t,Bh)}function Cl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Dl(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=Ai(i),s=a==="series",u=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){wl(l)}),s&&r.push(i)),o.isBlured=!1}),S(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function Xa(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(l,f){for(var c=0;c<f.length;c++){var h=l.getItemGraphicEl(f[c]);h&&bl(h)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];a.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(g){Pi(g)}),Or(e))i(l.getData(),e);else if(N(e))for(var d=be(e),p=0;p<d.length;p++)i(l.getData(d[p]),e[d[p]]);u.push(l),Ai(l).isBlured=!0}}),a.eachComponent(function(l,f){if(l!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,a)}})}}function $a(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Ai(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Pi(i)})}}}function Wh(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=Vr(a,e);i=(P(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),u=0;!o&&u<s;)o=a.getItemGraphicEl(u++);if(o){var l=X(o);Xa(n,l.focus,l.blurScope,r)}
14else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Xa(n,f,c,r)}}}function Ei(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(X(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function Uh(t,e,r){var n=X(t),a=Ei(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&$a(n.componentMainType,n.componentIndex,r),S(i,function(s){return Po(s,e)})):(Xa(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&$a(n.componentMainType,n.componentIndex,r),Po(t,e))}function Yh(t,e,r){Dl(r);var n=X(t),a=Ei(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?S(a,function(i){return Eo(i,e)}):Eo(t,e)}function Xh(t,e,r){if(Ka(e)){var n=e.dataType,a=t.getData(n),i=Vr(a,e);P(i)||(i=[i]),t[e.type===pr?"toggleSelect":e.type===dr?"select":"unselect"](i,n)}}function ko(t){var e=t.getAllData();S(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Tl(i):Ml(i)})})}function $h(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();S(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Zh(t,e,r){Al(t,!0),tt(t,Gh),jh(t,e,r)}function Kh(t){Al(t,!1)}function qh(t,e,r,n){n?Kh(t):Zh(t,e,r)}function jh(t,e,r){var n=X(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Ro=["emphasis","blur","select"],Qh={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jh(t,e,r,n){r=r||"itemStyle";for(var a=0;a<Ro.length;a++){var i=Ro[a],o=e.getModel([i,r]),s=t.ensureState(i);s.style=n?n(o):o[Qh[r]]()}}function Al(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 Za(t){return!!(t&&t.__highDownDispatcher)}function ed(t){var e=Do[t];return e==null&&Co<=32&&(e=Do[t]=Co++),e}function Ka(t){var e=t.type;return e===dr||e===dn||e===pr}function Oo(t){var e=t.type;return e===Ct||e===hn}function td(t){var e=yl(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 Il=j();function Nn(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,f=void 0,c=void 0;n?(l=J(n.duration,200),f=J(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),U(c)&&(c=c(r,a)),U(l)&&(l=l(r));var h={duration:l||0,delay:c,easing:f};return h}else return null}function ki(t,e,r,n,a,i,o){var s=!1,u;U(a)?(o=i,i=a,a=null):N(a)&&(i=a.cb,o=a.during,s=a.isFrom,u=a.removeOpt,a=a.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var f=Nn(t,n,a,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Fe(t,e,r,n,a,i){ki("update",t,e,r,n,a,i)}function Ve(t,e,r,n,a,i){ki("enter",t,e,r,n,a,i)}function Gt(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 Ll(t,e,r,n,a,i){Gt(t)||ki("leave",t,e,r,n,a,i)}function Bo(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Ll(t,{style:{opacity:0}},e,r,n)}function qa(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||Bo(a,e,r,n)}):Bo(t,e,r,n)}function rd(t){Il(t).oldStyle=t.style}
14function nd(t){return Il(t).oldStyle}var Mn=Math.max,Cn=Math.min,ja={};function ad(t){return me.extend(t)}var id=Mv;function od(t,e){return id(t,e)}function ze(t,e){ja[t]=e}function sd(t){if(ja.hasOwnProperty(t))return ja[t]}function Ri(t,e,r,n){var a=Sv(t,e);return r&&(n==="center"&&(r=El(r,a.getBoundingRect())),kl(a,r)),a}function Pl(t,e,r){var n=new kn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(El(e,i))}}});return n}function El(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var ud=wv;function kl(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Tr(t,e){return xv(t,t,{lineWidth:e}),t}function ld(t){return bv(t.shape,t.shape,t.style),t}var fd=Tv;function cd(t,e){for(var r=ju([]);t&&t!==e;)Va(r,t.getLocalTransform(),r),t=t.parent;return r}function Oi(t,e,r){return e&&!Or(e)&&(e=Qu.getLocalTransform(e)),r&&(e=Si([],e)),At([],t,e)}function vd(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=Oi(i,e,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function No(t){return!t.isGroup}function hd(t){return t.shape!=null}function Rl(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(u){No(u)&&u.anid&&(s[u.anid]=u)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return hd(o)&&(s.shape=R({},o.shape)),s}var i=n(t);e.traverse(function(o){if(No(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),Fe(o,u,r,X(o).dataIndex)}}})}function dd(t,e){return z(t,function(r){var n=r[0];n=Mn(n,e.x),n=Cn(n,e.x+e.width);var a=r[1];return a=Mn(a,e.y),a=Cn(a,e.y+e.height),[n,a]})}function pd(t,e){var r=Mn(t.x,e.x),n=Cn(t.x+t.width,e.x+e.width),a=Mn(t.y,e.y),i=Cn(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Ol(t,e,r){var n=R({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),q(a,r),new kn(n)):Ri(t.replace("path://",""),n,r,"center")}function gd(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Bl(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Bl(t,e,r,n,a,i,o,s){var u=r-t,l=n-e,f=o-a,c=s-i,h=ra(f,c,u,l);if(md(h))return!1;var v=t-a,d=e-i,p=ra(v,d,u,l)/h;if(p<0||p>1)return!1;var g=ra(v,d,f,c)/h;return!(g<0||g>1)}function ra(t,e,r,n){return t*n-r*e}function md(t){return t<=1e-6&&t>=-1e-6}function Nl(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=O(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=t.formatterParamsExtra;u&&S(be(u),function(f){je(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=X(t.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:q({content:n,formatterParams:s},a)}}function Fo(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Bi(t,e){if(t)if(P(t))for(var r=0;r<t.length;r++)Fo(t[r],e);else Fo(t,e)}ze("circle",wi);ze("ellipse",Ju);ze("sector",Br);
14ze("ring",el);ze("polygon",tl);ze("polyline",bi);ze("rect",pe);ze("line",It);ze("bezierCurve",rl);ze("arc",Ti);const yd=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ti,BezierCurve:rl,BoundingRect:Ye,Circle:wi,CompoundPath:Cv,Ellipse:Ju,Group:Qe,Image:kn,IncrementalDisplayable:Dv,Line:It,LinearGradient:Av,OrientedBoundingRect:Sn,Path:me,Point:Ie,Polygon:tl,Polyline:bi,RadialGradient:Iv,Rect:pe,Ring:el,Sector:Br,Text:Ne,applyTransform:Oi,clipPointsByRect:dd,clipRectByRect:pd,createIcon:Ol,extendPath:od,extendShape:ad,getShapeClass:sd,getTransform:cd,groupTransition:Rl,initProps:Ve,isElementRemoved:Gt,lineLineIntersect:Bl,linePolygonIntersect:gd,makeImage:Pl,makePath:Ri,mergePath:ud,registerShape:ze,removeElement:Ll,removeElementWithFadeOut:qa,resizePath:kl,setTooltipConfig:Nl,subPixelOptimize:fd,subPixelOptimizeLine:Tr,subPixelOptimizeRect:ld,transformDirection:vd,traverseElements:Bi,updateProps:Fe},Symbol.toStringTag,{value:"Module"}));var Fn={};function Fl(t,e){for(var r=0;r<Xe.length;r++){var n=Xe[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Qa(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=U(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var u={normal:s},l=0;l<Xe.length;l++){var f=Xe[l],c=e[f];u[f]=J(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return u}function _d(t,e,r,n){r=r||Fn;for(var a=t instanceof Ne,i=!1,o=0;o<Tn.length;o++){var s=e[Tn[o]];if(s&&s.getShallow("show")){i=!0;break}}var u=a?t:t.getTextContent();if(i){a||(u||(u=new Ne,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=Qa(r,e),f=e.normal,c=!!f.getShallow("show"),h=Lt(f,n&&n.normal,r,!1,!a);h.text=l.normal,a||t.setTextConfig(Vo(f,r,!1));for(var o=0;o<Xe.length;o++){var v=Xe[o],s=e[v];if(s){var d=u.ensureState(v),p=!!J(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Lt(s,n&&n[v],r,!0,!a),d.style.text=l[v],!a){var g=t.ensureState(v);g.textConfig=Vo(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(h.x=u.style.x),u.style.y!=null&&(h.y=u.style.y),u.ignore=!c,u.useStyle(h),u.dirty(),r.enableTextSetter&&(Gr(u).setLabelText=function(m){var y=Qa(r,e,m);Fl(u,y)})}else u&&(u.ignore=!0);t.dirty()}function xd(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Xe.length;n++){var a=Xe[n];r[a]=t.getModel([a,e])}return r}function Lt(t,e,r,n,a){var i={};return Sd(i,t,r,n,a),e&&R(i,e),i}function Vo(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),o=J(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function Sd(t,e,r,n,a){r=r||Fn;var i=e.ecModel,o=i&&i.option.textStyle,s=wd(e),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=e.getModel(["rich",l]);Wo(u[l]={},f,o,r,n,a,!1,!0)}}u&&(t.rich=u);var c=e.get("overflow");c&&(t.overflow=c);var h=e.get("minMargin");h!=null&&(t.margin=h),Wo(t,e,o,r,n,a,!0,!1)}function wd(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Fn).rich;if(r){e=e||{};for(var n=be(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var zo=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Go=["align","lineHeight","width","height","tag","verticalAlign"],Ho=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Wo(t,e,r,n,a,i,o,s){r=!a&&r||Fn;var u=n&&n.inheritColor,l=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=J(e.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),i||(l=l||r.color,f=f||r.textBorderColor),l!=null&&(t.fill=l),f!=null&&(t.stroke=f);var h=J(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var v=J(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var d=J(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!a&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(t.opacity=c),!a&&!i&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<zo.length;p++){var g=zo[p],m=J(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<Go.length;p++){var g=Go[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<Ho.length;p++){var g=Ho[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var _=e.getShallow("borderType");_!=null&&(t.borderDash=_),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&u&&(t.backgroundColor=u),(t.borderColor==="auto"||t.borderColor==="inherit")&&u&&(t.borderColor=u)}}function bd(t,e){var r=e&&e.getModel("textStyle");return Nr([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 Gr=j();function Td(t,e,r,n){if(t){var a=Gr(t);a.prevValue=a.value,a.value=r;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function Md(t,e,r,n,a){var i=Gr(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=J(i.interpolatedValue,i.prevValue),u=i.value;
14function l(f){var c=xh(r,i.precision,s,u,f);i.interpolatedValue=f===1?null:c;var h=Qa({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);Fl(t,h)}t.percent=0,(i.prevValue==null?Ve:Fe)(t,{percent:1},n,e,null,l)}var Cd=["textStyle","color"],na=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],aa=new Ne,Dd=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(Cd):null)},t.prototype.getFont=function(){return bd({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<na.length;n++)r[na[n]]=this.getShallow(na[n]);return aa.useStyle(r),aa.update(),aa.getBoundingRect()},t}();const Ad=Dd;var Vl=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Id=br(Vl),Ld=function(){function t(){}return t.prototype.getLineStyle=function(e){return Id(this,e)},t}(),zl=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Pd=br(zl),Ed=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return Pd(this,e,r)},t}(),Pt=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){K(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,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,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($(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(!Q.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 a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Di(Pt);Ch(Pt);dt(Pt,Ld);dt(Pt,Ed);dt(Pt,Ph);dt(Pt,Ad);const de=Pt;var kd=Math.round(Math.random()*10);function Vn(t){return[t||"",kd++].join("_")}function Rd(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=He(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=He(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function Od(t,e){t.topologicalTravel=function(i,o,s,u){if(!i.length)return;var l=r(o),f=l.graph,c=l.noEntryList,h={};for(S(i,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(u,v,d.originalDeps.slice()),delete h[v]),S(d.successor,p?m:g)}S(h,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,g(y)}};function r(i){var o={},s=[];return S(i,function(u){var l=n(o,u),f=l.originalDeps=e(u),c=a(f,i);l.entryCount=c.length,l.entryCount===0&&s.push(u),S(c,function(h){oe(l.predecessor,h)<0&&l.predecessor.push(h);var v=n(o,h);oe(v.successor,h)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return S(i,function(u){oe(o,u)>=0&&s.push(u)}),s}}function Bd(t,e){return K(K({},t,!0),e,!0)}const Nd={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","Frid
14ay","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Fd={time:{month:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"],monthAbbr:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],dayOfWeek:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayOfWeekAbbr:["æ¥","ä¸","äº","ä¸","å","äº","å
"]},legend:{selector:{all:"å
¨é",inverse:"åé"}},toolbox:{brush:{title:{rect:"ç©å½¢éæ©",polygon:"åé",lineX:"横åéæ©",lineY:"纵åéæ©",keep:"ä¿æéæ©",clear:"æ¸
é¤éæ©"}},dataView:{title:"æ°æ®è§å¾",lang:["æ°æ®è§å¾","å
³é","å·æ°"]},dataZoom:{title:{zoom:"åºå缩æ¾",back:"åºå缩æ¾è¿å"}},magicType:{title:{line:"åæ¢ä¸ºæçº¿å¾",bar:"åæ¢ä¸ºæ±ç¶å¾",stack:"åæ¢ä¸ºå å ",tiled:"åæ¢ä¸ºå¹³éº"}},restore:{title:"è¿å"},saveAsImage:{title:"ä¿å为å¾ç",lang:["å³é®å¦å为å¾ç"]}},series:{typeNames:{pie:"饼å¾",bar:"æ±ç¶å¾",line:"æçº¿å¾",scatter:"æ£ç¹å¾",effectScatter:"æ¶æ¼ªæ£ç¹å¾",radar:"é·è¾¾å¾",tree:"æ å¾",treemap:"ç©å½¢æ å¾",boxplot:"ç®±åå¾",candlestick:"K线å¾",k:"K线å¾",heatmap:"çåå¾",map:"å°å¾",parallel:"å¹³è¡åæ å¾",lines:"线å¾",graph:"å
³ç³»å¾",sankey:"æ¡åºå¾",funnel:"æ¼æå¾",gauge:"仪表çå¾",pictorialBar:"象形æ±å¾",themeRiver:"䏻颿²³æµå¾",sunburst:"ææ¥å¾"}},aria:{general:{withTitle:"è¿æ¯ä¸ä¸ªå
³äºâ{title}âçå¾è¡¨ã",withoutTitle:"è¿æ¯ä¸ä¸ªå¾è¡¨ï¼"},series:{single:{prefix:"",withName:"å¾è¡¨ç±»åæ¯{seriesType}ï¼è¡¨ç¤º{seriesName}ã",withoutName:"å¾è¡¨ç±»åæ¯{seriesType}ã"},multiple:{prefix:"å®ç±{seriesCount}个å¾è¡¨ç³»åç»æã",withName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ªè¡¨ç¤º{seriesName}ç{seriesType}
14ï¼",withoutName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ª{seriesType}ï¼",separator:{middle:"ï¼",end:"ã"}}},data:{allData:"å
¶æ°æ®æ¯ââ",partialData:"å
¶ä¸ï¼å{displayCnt}项æ¯ââ",withName:"{name}çæ°æ®æ¯{value}",withoutName:"{value}",separator:{middle:"ï¼",end:""}}}};var Dn="ZH",Ni="EN",Mr=Ni,pn={},Fi={},Gl=Q.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Dn)>-1?Dn:Mr}():Mr;function Hl(t,e){t=t.toUpperCase(),Fi[t]=new de(e),pn[t]=e}function Vd(t){if(O(t)){var e=pn[t.toUpperCase()]||{};return t===Dn||t===Ni?$(e):K($(e),$(pn[Mr]),!1)}else return K($(t),$(pn[Mr]),!1)}function zd(t){return Fi[t]}function Gd(){return Fi[Mr]}Hl(Ni,Nd);Hl(Dn,Fd);var Vi=1e3,zi=Vi*60,gr=zi*60,Ae=gr*24,Uo=Ae*365,fr={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xr="{yyyy}-{MM}-{dd}",Yo={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xr,hour:Xr+" "+fr.hour,minute:Xr+" "+fr.minute,second:Xr+" "+fr.second,millisecond:fr.none},ia=["year","month","day","hour","minute","second","millisecond"],Wl=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gt(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ht(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Hd(t){return t===Ht(t)}function Wd(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zn(t,e,r,n){var a=Je(t),i=a[Gi(r)](),o=a[Wt(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[Gn(r)](),l=a["get"+(r?"UTC":"")+"Day"](),f=a[Cr(r)](),c=(f-1)%12+1,h=a[Hn(r)](),v=a[Wn(r)](),d=a[Un(r)](),p=n instanceof de?n:zd(n||Gl)||Gd(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,gt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,gt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+"").replace(/{HH}/g,gt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,gt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,gt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,gt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,gt(d,3)).replace(/{S}/g,d+"")}function Ud(t,e,r,n,a){var i=null;if(O(r))i=r;else if(U(r))i=r(t.value,e,{level:t.level});else{var o=R({},fr);if(t.level>0)for(var s=0;s<ia.length;++s)o[ia[s]]="{primary|"+o[ia[s]]+"}";var u=r?r.inherit===!1?r:q(r,o):o,l=Ul(t.value,a);if(u[l])i=u[l];else if(u.inherit){for(var f=Wl.indexOf(l),s=f-1;s>=0;--s)if(u[l]){i=u[l];break}i=i||o.none}if(P(i)){var c=t.level==null?0:t.level>=0?t.level:i.length+t.level;c=Math.min(c,i.length-1),i=i[c]}}return zn(new Date(t.value),i,a,n)}function Ul(t,e){var r=Je(t),n=r[Wt(e)]()+1,a=r[Gn(e)](),i=r[Cr(e)](),o=r[Hn(e)](),s=r[Wn(e)](),u=r[Un(e)](),l=u===0,f=l&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":l?"second":"millisecond"}function Xo(t,e,r){var n=ne(t)?Je(t):t;switch(e=e||Ul(t,r),e){case"year":return n[Gi(r)]();case"half-year":return n[Wt(r)]()>=6?1:0;case"quarter":return Math.floor((n[Wt(r)]()+1)/4);case"month":return n[Wt(r)]();case"day":return n[Gn(r)]();case"half-day":return n[Cr(r)]()/24;case"hour":return n[Cr(r)]();case"minute":return n[Hn(r)]();case"second":return n[Wn(r)]();case"millisecond":return n[Un(r)]()}}function Gi(t){return t?"getUTCFullYear":"getFullYear"}function Wt(t){return t?"getUTCMonth":"getMonth"}function Gn(t){return t?"getUTCDate":"getDate"}function Cr(t){return t?"getUTCHours":"getHours"}function Hn(t){return t?"getUTCMinutes":"getMinutes"}function Wn(t){return t?"getUTCSeconds":"getSeconds"}function Un(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Yd(t){return t?"setUTCFullYear":"setFullYear"}function Yl(t){return t?"setUTCMonth":"setMonth"}function Xl(t){return t?"setUTCDate":"setDate"}function $l(t){return t?"setUTCHours":"setHours"}function Zl(t){return t?"setUTCMinutes":"setMinutes"}function Kl(t){return t?"setUTCSeconds":"setSeconds"}function ql(t){return t?"setUTCMilliseconds":"setMilliseconds"}function jl(t){if(!ih(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 Ql(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 Hi=Lv;function Ja(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Nr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?Je(t):t;if(isNaN(+u)){if(s)return"-"}else return zn(u,n,r)}if(e==="ordinal")return Fa(t)?a(t):ne(t)&&i(t)?t+"":"-";var l=ht(t);return i(l)?jl(l):Fa(t)?a(t):typeof t=="boolean"?t+"":"-"}var $o=["a","b","c","d","e","f","g"],oa=function(t,e){return"{"+t+(e??"")+"}"};function Jl(t,e,r){P(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=$o[i];t=t.replace(oa(o),oa(o,0))}for(var s=0;s<n;s++)for(var u=0;u<a.length;u++){var l=e[s][a[u]];t=t.replace(oa($o[u],s),r?De(l):l)}return t}function Xd(t,e){var r=O(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+De(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+De(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Dr(t,e){return e=e||"transparent",O(t)?t:N(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Zo(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var gn=S,$d=["left","right","top","bottom","width","height"],$r=[["width","left","right"],["height","top","bottom"]];function ef(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;
14e.eachChild(function(u,l){var f=u.getBoundingRect(),c=e.childAt(l+1),h=c&&c.getBoundingRect(),v,d;if(t==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||u.newline?(i=0,v=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||u.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),t==="horizontal"?i=v+r:o=d+r)})}we(ef,"vertical");we(ef,"horizontal");function Wi(t,e,r){r=Hi(r||0);var n=e.width,a=e.height,i=fe(t.left,n),o=fe(t.top,a),s=fe(t.right,n),u=fe(t.bottom,a),l=fe(t.width,n),f=fe(t.height,a),c=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(l)&&(l=n-s-h-i),isNaN(f)&&(f=a-u-c-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/a?l=n*.8:f=a*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(i)&&(i=n-s-l-h),isNaN(o)&&(o=a-u-f-c),t.left||t.right){case"center":i=n/2-l/2-r[3];break;case"right":i=n-l-h;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(l)&&(l=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(u||0));var d=new Ye(i+r[3],o+r[0],l,f);return d.margin=r,d}function Ar(t){var e=t.layoutMode||t.constructor.layoutMode;return N(e)?e:e?{type:e}:null}function Ir(t,e,r){var n=r&&r.ignoreSize;!P(n)&&(n=[n,n]);var a=o($r[0],0),i=o($r[1],1);l($r[0],t,a),l($r[1],t,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(gn(f,function(_){d[_]=t[_]}),gn(f,function(_){s(e,_)&&(h[_]=d[_]=e[_]),u(h,_)&&v++,u(d,_)&&p++}),n[c])return u(e,f[1])?d[f[2]]=null:u(e,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m<f.length;m++){var y=f[m];if(!s(h,y)&&s(t,y)){h[y]=t[y];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function u(f,c){return f[c]!=null&&f[c]!=="auto"}function l(f,c,h){gn(f,function(v){c[v]=h[v]})}}function Ui(t){return Zd({},t)}function Zd(t,e){return e&&t&&gn($d,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Kd=j(),$t=function(t){H(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=Vn("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Ar(this),i=a?Ui(r):{},o=n.getTheme();K(r,o.get(this.mainType)),K(r,this.getDefaultOption()),a&&Ir(r,i,a)},e.prototype.mergeOption=function(r,n){K(this.option,r,!0);var a=Ar(this);a&&Ir(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!bh(r))return r.defaultOption;var n=Kd(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},u=a.length-1;u>=0;u--)s=K(s,a[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return zr(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!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}(de);ml($t,de);On($t);Rd($t);Od($t,qd);function qd(t){var e=[];return S($t.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.depen
14dencies||[])}),e=z(e,function(r){return He(r).main}),t!=="dataset"&&oe(e,"dataset")<=0&&e.unshift("dataset"),e}const Z=$t;var tf="";typeof navigator<"u"&&(tf=navigator.platform||"");var Rt="rgba(0, 0, 0, 0.2)";const jd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Rt,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Rt,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Rt,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Rt,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Rt,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Rt,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:tf.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var rf=V(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Pe="original",ge="arrayRows",Ge="objectRows",rt="keyedColumns",ct="typedArray",nf="unknown",Ue="column",Zt="row",xe={Must:1,Might:2,Not:3},af=j();function Qd(t){af(t).datasetMap=V()}function Jd(t,e,r){var n={},a=of(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,u=af(s).datasetMap,l=a.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),S(t,function(p,g){var m=N(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});S(t,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function of(t){var e=t.get("data",!0);if(!e)return zr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Be).models[0]}function ep(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:zr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Be).models}function sf(t,e){return tp(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function tp(t,e,r,n,a,i){var o,s=5;if(Le(t))return xe.Not;var u,l;if(n){var f=n[i];N(f)?(u=f.name,l=f.type):O(f)&&(u=f)}if(l!=null)return l==="ordinal"?xe.Must:xe.Not;if(e===ge){var c=t;if(r===Zt){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=x(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=x(d[i]))!=null)return o}}else if(e===Ge){var p=t;if(!u)return xe.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=x(g[u]))!=null)return o}}else if(e===rt){var m=t;if(!u)return xe.Not;var h=m[u];if(!h||Le(h))return xe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=x(h[v]))!=null)return o}else if(e===Pe)for(var y=t,v=0;v<y.length&&v<s;v++){var g=y[v],_=Fr(g);if(!P(_))return xe.Not;if((o=x(_[i]))!=null)return o}function x(b){var w=O(b);if(b!=null&&isFinite(b)&&b!=="")return w?xe.Might:xe.Not;if(w&&b!=="-")return xe.Must}return xe.Not}var rp=V();function np(t,e,r){var n=rp.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}var Ko=j();j();var Yi=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=ae(this.get("color",!0)),i=this.get("colorLayer",!0);return ip(this,Ko,a,i,e,r,n)},t.prototype.clearColorPalette=function(){op(this,Ko)},t}();function ap(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 ip(t,e,r,n,a,i,o){i=i||t;var s=e(i),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var f=o==null||!n?r:ap(n,o);if(f=f||r,!(!f||!f.length)){var c=f[u];return a&&(l[a]=c),s.paletteIdx=(u+1)%f.length,c}}function op(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Zr,jt,qo,jo="\0_ec_inner",sp=1,uf=function(t){H(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new de(i),this._locale=new de(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=es(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,es(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?qo(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}
14if(!r||r==="recreate"||r==="media"){var u=i.getMediaOption(this);u.length&&S(u,function(l){a=!0,this._mergeOption(l,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=V(),l=n&&n.replaceMergeMainTypeMap;Qd(this),S(r,function(c,h){c!=null&&(Z.hasClass(h)?h&&(s.push(h),u.set(h,!0)):a[h]=a[h]==null?$(c):K(a[h],c,!0))}),l&&l.each(function(c,h){Z.hasClass(h)&&!u.get(h)&&(s.push(h),u.set(h,!0))}),Z.topologicalTravel(s,Z.getAllClassMainTypes(),f,this);function f(c){var h=np(this,c,ae(r[c])),v=i.get(c),d=v?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=uh(v,h,d);ph(p,c,Z),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;S(p,function(x,b){var w=x.existing,T=x.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=Z.getClass(c,x.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=x.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var A=R({componentIndex:b},x.keyInfo);w=new D(T,this,this,A),R(w,A),x.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&Zr(this)}this._seriesIndices||Zr(this)},e.prototype.getOption=function(){var r=$(this.option);return S(r,function(n,a){if(Z.hasClass(a)){for(var i=ae(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!wr(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[jo],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 a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return a!=null?(u=[],S(ae(a),function(l){s[l]&&u.push(s[l])})):i!=null?u=Qo("id",i,s):o!=null?u=Qo("name",o,s):u=le(s,function(l){return!!l}),Jo(u,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):le(this._componentsMap.get(a),function(l){return!!l});return u(Jo(o,r));function s(l){var f=a+"Index",c=a+"Id",h=a+"Name";return l&&(l[f]!=null||l[c]!=null||l[h]!=null)?{mainType:a,index:l[f],id:l[c],name:l[h]}:null}function u(l){return r.filter?le(l,r.filter):l}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(U(r)){var o=n,s=r;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var u=O(r)?i.get(r):N(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=We(r,null);return le(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return le(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return le(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){jt(this),S(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){S(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){jt(this),S(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return S(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return jt(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){jt(this);var a=[];S(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=V(a)},e.prototype.restoreData=function(r){Zr(this);var n=this._componentsMap,a=[];
14n.each(function(i,o){Z.hasClass(o)&&a.push(o)}),Z.topologicalTravel(a,Z.getAllClassMainTypes(),function(i){S(n.get(i),function(o){o&&(i!=="series"||!up(o,r))&&o.restoreData()})})},e.internalField=function(){Zr=function(r){var n=r._seriesIndices=[];S(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=V(n)},jt=function(r){},qo=function(r,n){r.option={},r.option[jo]=sp,r._componentsMap=V({series:[]}),r._componentsCount=V();var a=n.aria;N(a)&&a.enabled==null&&(a.enabled=!0),lp(n,r._theme.option),K(n,jd,!1),r._mergeOption(n,null)}}(),e}(de);function up(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function lp(t,e){var r=t.color&&!t.colorLayer;S(e,function(n,a){a==="colorLayer"&&r||Z.hasClass(a)||(typeof n=="object"?t[a]=t[a]?K(t[a],n,!1):$(n):t[a]==null&&(t[a]=n))})}function Qo(t,e,r){if(P(e)){var n=V();return S(e,function(i){if(i!=null){var o=We(i,null);o!=null&&n.set(i,!0)}}),le(r,function(i){return i&&n.get(i[t])})}else{var a=We(e,null);return le(r,function(i){return i&&a!=null&&i[t]===a})}}function Jo(t,e){return e.hasOwnProperty("subType")?le(t,function(r){return r&&r.subType===e.subType}):t}function es(t){var e=V();return t&&S(ae(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}dt(uf,Yi);const lf=uf;var fp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cp=function(){function t(e){S(fp,function(r){this[r]=ee(e[r],e)},this)}return t}();const ff=cp;var sa={},vp=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];S(sa,function(a,i){var o=a.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){sa[e]=r},t.get=function(e){return sa[e]},t}();const Xi=vp;var hp=/^(min|max)?(.+)$/,dp=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(S(ae(e.series),function(o){o&&o.data&&Le(o.data)&&wn(o.data)}),S(ae(e.dataset),function(o){o&&o.source&&Le(o.source)&&wn(o.source)})),e=$(e);var a=this._optionBackup,i=pp(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],$(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=$(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var u=0,l=a.length;u<l;u++)gp(a[u].query,r,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!yp(o,this._currentMediaIndices)&&(s=z(o,function(f){return $(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},t}();function pp(t,e,r){var n=[],a,i,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(t.options=t.media=null),i=t),f&&P(l)&&S(l,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),S(u,function(v){return h(v)}),S(n,function(v){return h(v.option)});function h(v){S(e,function(d){d(v,r)})}return{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}function gp(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return S(t,function(i,o){var s=o.match(hp);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();mp(n[l],i,u)||(a=!1)}}),a}function mp(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function yp(t,e){return t.join(",")===e.join(",")}const _p=dp;var Ee=S,Lr=N,ts=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ua(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=ts.length;r<n;r++){var a=ts[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?K(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?K(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function ve(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,q(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function cr(t){ve(t,"itemStyle"),ve(t,"lineStyle"),ve(t,"areaStyle"),ve(t,"label"),ve(t,"labelLine"),ve(t,"upperLabel"),ve(t,"edgeLabel")}function re(t,e){var r=Lr(t)&&t[e],n=Lr(r)&&r.textStyle;if(n)for(var a=0,i=Mo.length;a<i;a++){var o=Mo[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Ce(t){t&&(cr(t),re(t,"label"),t.emphasis&&re(t.emphasis,"label"))}function xp(t){if(Lr(t)){ua(t),cr(t),re(t,"label"),re(t,"upperLabel"),re(t,"edgeLabel"),t.emphasis&&(re(t.emphasis,"label"),re(t.emphasis,"upperLabel"),re(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ua(e),Ce(e));var r=t.markLine;r&&(ua(r),Ce(r));var n=t.markArea;n&&Ce(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!Le(i))for(var o=0;o<i.length;o++)Ce(i[o]);S(t.categories,function(l){cr(l)})}if(a&&!Le(a))for(var o=0;o<a.length;o++)Ce(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ce(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)P(u[o])?(Ce(u[o][0]),Ce(u[o][1])):Ce(u[o]);t.type==="gauge"?(re(t,"axisLabel"),re(t,"title"),re(t,"detail")):t.type==="treemap"?(ve(t.breadcrumb,"itemStyle"),S(t.levels,function(l){cr(l)})):t.type==="tree"&&cr(t.leaves)}}function $e(t){return P(t)?t:t?[t]:[]}function rs(t){return(P(t)?t[0]:t)||{}}function Sp(t,e){Ee($e(t.series),function(n){Lr(n)&&xp(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ee(r,function(n){Ee($e(t[n]),function(a){a&&(re(a,"axisLabel"),re(a.axisPointer,"label"))})}),Ee($e(t.parallel),function(n){var a=n&&n.parallelAxisDefault;re(a,"axisLabel"),re(a&&a.axisPointer,"label")}),Ee($e(t.calendar),function(n){ve(n,"itemStyle"),re(n,"dayLabel"),re(n,"monthLabel"),re(n,"yearLabel")}),Ee($e(t.radar),function(n){re(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)}),Ee($e(t.geo),function(n){Lr(n)&&(Ce(n),Ee($e(n.regions),function(a){Ce(a)}))}),Ee($e(t.timeline),function(n){Ce(n),ve(n,"label"),ve(n,"itemStyle"),ve(n,"controlStyle",!0);var a=n.data;P(a)&&S(a,function(i){N(i)&&(ve(i,"label"),ve(i,"itemStyle"))})}),Ee($e(t.toolbox),function(n){ve(n,"iconStyle"),Ee(n.feature,function(a){ve(a,"iconStyle")}
14)}),re(rs(t.axisPointer),"label"),re(rs(t.tooltip).axisPointer,"label")}function wp(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function bp(t,e,r,n){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function ns(t){t&&S(Tp,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Tp=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Mp=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],la=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Qt(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<la.length;r++){var n=la[r][1],a=la[r][0];e[n]!=null&&(e[a]=e[n])}}function as(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function is(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Cp(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function cf(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&cf(t[r].children,e)}function vf(t,e){Sp(t,e),t.series=ae(t.series),S(t.series,function(r){if(N(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),as(r.label);var a=r.data;if(a&&!Le(a))for(var i=0;i<a.length;i++)as(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=wp(r,"pointer.color");o!=null&&bp(r,"itemStyle.color",o)}else if(n==="bar"){Qt(r),Qt(r.backgroundStyle),Qt(r.emphasis);var a=r.data;if(a&&!Le(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Qt(a[i]),Qt(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),is(r),cf(r.data,is)}else n==="graph"||n==="sankey"?Cp(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&q(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),ns(r)}}),t.dataRange&&(t.visualMap=t.dataRange),S(Mp,function(r){var n=t[r];n&&(P(n)||(n=[n]),S(n,function(a){ns(a)}))})}function Dp(t){var e=V();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(Ap)}function Ap(t){S(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&h>=0&&y>0||u==="samesign"&&h<=0&&y<0){h=rh(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var Yn=function(){function t(e){this.data=e.data||(e.sourceFormat===rt?{}:[]),this.sourceFormat=e.sourceFormat||nf,this.seriesLayoutBy=e.seriesLayoutBy||Ue,this.startIndex=e.startIndex||
140,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 a=r[n];a.type==null&&sf(this,n)===xe.Must&&(a.type="ordinal")}}return t}();function $i(t){return t instanceof Yn}function ei(t,e,r){r=r||hf(t);var n=e.seriesLayoutBy,a=Lp(t,r,n,e.sourceHeader,e.dimensions),i=new Yn({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:$(e)});return i}function Zi(t){return new Yn({data:t,sourceFormat:Le(t)?ct:Pe})}function Ip(t){return new Yn({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:$(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function hf(t){var e=nf;if(Le(t))e=ct;else if(P(t)){t.length===0&&(e=ge);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(P(a)){e=ge;break}else if(N(a)){e=Ge;break}}}}else if(N(t)){for(var i in t)if(je(t,i)&&Or(t[i])){e=rt;break}}return e}function Lp(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:os(a),startIndex:o,dimensionsDetectedCount:i};if(e===ge){var s=t;n==="auto"||n==null?ss(function(l){l!=null&&l!=="-"&&(O(l)?o==null&&(o=1):o=0)},r,s,10):o=ne(n)?n:n?1:0,!a&&o===1&&(a=[],ss(function(l,f){a[f]=l!=null?l+"":""},r,s,1/0)),i=a?a.length:r===Zt?s.length:s[0]?s[0].length:null}else if(e===Ge)a||(a=Pp(t));else if(e===rt)a||(a=[],S(t,function(l,f){a.push(f)}));else if(e===Pe){var u=Fr(t[0]);i=P(u)&&u.length||1}return{startIndex:o,dimensionsDefine:os(a),dimensionsDetectedCount:i}}function Pp(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return be(r)}function os(t){if(t){var e=V();return z(t,function(r,n){r=N(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function ss(t,e,r,n){if(e===Zt)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function df(t){var e=t.sourceFormat;return e===Ge||e===rt}var mt,yt,_t,us,ls,pf=function(){function t(e,r){var n=$i(e)?e:Zi(e);this._source=n;var a=this._data=n.data;n.sourceFormat===ct&&(this._offset=0,this._dimSize=r,this._data=a),ls(this,a,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;ls=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,h=u.dimensionsDefine,v=us[Ki(l,f)];if(R(o,v),l===ct)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=gf(l,f);o.getItem=ee(d,null,s,c,h);var p=mf(l,f);o.count=ee(p,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,c=0;c<l;c++)s[c]=u[f+c];return s},n=function(o,s,u,l){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=l[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=u[h],y=0;y<g;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};us=(e={},e[ge+"_"+Ue]={pure:!0,appendData:i},e[ge+"_"+Zt]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ge]={pure:!0,appendData:i},e[rt]={pure:!0,appendData:function(o){var s=this._data;S(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[Pe]={appendData:i},e[ct]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),fs=function(t,e,r,n){return t[n]},Ep=(mt={},mt[ge+"_"+Ue]=function(t,e,r,n){return t[n+e]},mt[ge+"_"+Zt]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var u=o[s];i[s]=u?u[n]:null}return i},mt[Ge]=fs,mt[rt]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,u=t[s];i[o]=u?u[n]:null}return i},mt[Pe]=fs,mt);function gf(t,e){var r=Ep[Ki(t,e)];return r}var cs=function(t,e,r){return t.length},kp=(yt={},yt[ge+"_"+Ue]=function(t,e,r){return Math.max(0,t.length-e)},yt[ge+"_"+Zt]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},yt[Ge]=cs,yt[rt]=function(t,e,r){var n=r[0].name,a=t[n];return a?a.length:0},yt[Pe]=cs,yt);function mf(t,e){var r=kp[Ki(t,e)];return r}var fa=function(t,e,r){return t[e]},Rp=(_t={},_t[ge]=fa,_t[Ge]=function(t,e,r){return t[r]},_t[rt]=fa,_t[Pe]=function(t,e,r){var n=Fr(t);return n instanceof Array?n[e]:n},_t[ct]=fa,_t);function yf(t){var e=Rp[t];return e}function Ki(t,e){return t===ge?t+"_"+e:t}function Yt(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return yf(i)(n,o,s)}else{var u=n;return i===Pe&&(u=Fr(n)),u}}}}var Op=/\{@(.+?)\}/g,Bp=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,
14seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);if(o&&(u.value=o.interpolatedValue),a!=null&&P(u.value)&&(u.value=u.value[a]),!i){var l=s.getItemModel(e);i=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(U(i))return u.status=r,u.dimensionIndex=a,i(u);if(O(i)){var f=Jl(i,u);return f.replace(Op,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Yt(s,e,d);if(o&&P(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Yt(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function vs(t){var e,r;return N(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function mr(t){return new Np(t)}var Np=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 a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(P(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,u,l);else this._doProgress(p,v,d,u,l)}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,a,i){hs.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:hs.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),P(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.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}(),hs=function(){var t,e,r,n,a,i={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var u=e%a*r+Math.ceil(e/a),l=e>=t?null:u<n?u:e;return e++,l}}();function mn(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ne(t)&&t!=null&&t!=="-"&&(t=+Je(t)),t==null||t===""?NaN:+t)}var Fp=V({number:function(t){return parseFloat(t)},time:function(t){return+Je(t)},trim:function(t){return O(t)?Nr(t):t}});function _f(t){return Fp.get(t)}var xf={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Vp=function(){function t(e,r){if(!ne(r)){var n="";W(n)}this._opFn=xf[e],this._rvalFloat=ht(r)}return t.prototype.evaluate=function(e){return ne(e)?this._opFn(e,this._rvalFloat):this._opFn(ht(e),this._rvalFloat)},t}(),Sf=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=ne(e)?e:ht(e),a=ne(r)?r:ht(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=O(e),u=O(r);
14s&&(n=u?e:0),u&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),zp=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=ht(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=ht(e)===this._rvalFloat)}return this._isEQ?r:!r},t}();function Gp(t,e){return t==="eq"||t==="ne"?new zp(t==="eq",e):je(xf,t)?new Vp(t,e):null}var Hp=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 mn(e,r)},t}();function Wp(t,e){var r=new Hp,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==Ue&&W(o);var s=[],u={},l=t.dimensionsDefine;if(l)S(l,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";je(u,m)&&W(_),u[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=gf(a,Ue);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,i,s,p)},r.getRawData=ee(Up,null,t)),r.cloneRawData=ee(Yp,null,t);var h=mf(a,Ue);r.count=ee(h,null,n,i,s);var v=yf(a);r.retrieveValue=function(p,g){var m=c(n,i,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return r.getDimensionInfo=ee(Xp,null,s,u),r.cloneAllDimensionInfo=ee($p,null,s),r}function Up(t){var e=t.sourceFormat;if(!qi(e)){var r="";W(r)}return t.data}function Yp(t){var e=t.sourceFormat,r=t.data;if(!qi(e)){var n="";W(n)}if(e===ge){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(e===Ge){for(var a=[],i=0,o=r.length;i<o;i++)a.push(R({},r[i]));return a}}function Xp(t,e,r){if(r!=null){if(ne(r)||!isNaN(r)&&!je(e,r))return t[r];if(je(e,r))return e[r]}}function $p(t){return $(t)}var wf=V();function Zp(t){t=$(t);var e=t.type,r="";e||W(r);var n=e.split(":");n.length!==2&&W(r);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,wf.set(e,t)}function Kp(t,e,r){var n=ae(t),a=n.length,i="";a||W(i);for(var o=0,s=a;o<s;o++){var u=n[o];e=qp(u,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function qp(t,e,r,n){var a="";e.length||W(a),N(t)||W(a);var i=t.type,o=wf.get(i);o||W(a);var s=z(e,function(l){return Wp(l,o)}),u=ae(o.transform({upstream:s[0],upstreamList:s,config:$(t.config)}));return z(u,function(l,f){var c="";N(l)||W(c),l.data||W(c);var h=hf(l.data);qi(h)||W(c);var v,d=e[0];if(d&&f===0&&!l.dimensions){var p=d.startIndex;p&&(l.data=d.data.slice(0,p).concat(l.data)),v={seriesLayoutBy:Ue,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Ue,sourceHeader:0,dimensions:l.dimensions};return ei(l.data,v,null)})}function qi(t){return t===ge||t===Ge}var Xn="undefined",jp=typeof Uint32Array===Xn?Array:Uint32Array,Qp=typeof Uint16Array===Xn?Array:Uint16Array,bf=typeof Int32Array===Xn?Array:Int32Array,ds=typeof Float64Array===Xn?Array:Float64Array,Tf={float:ds,int:bf,ordinal:Array,number:Array,time:ds},ca;function Jt(t){return t>65535?jp:Qp}function Ot(){return[1/0,-1/0]}function Jp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ps(t,e,r,n,a){var i=Tf[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new i(n)}var ti=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 a=e.getSource(),i=this.defaultDimValueGetter=ca[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],df(a),this._dimensions=z(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,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new Tf[r||"float"](this._rawCount),this._rawExtent[i]=Ot(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Ot());for(var u=i[e],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.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 a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<i;l++){var f=a[l];ps(n,l,f.type,u,!0)}for(var c=[],h=s;h<u;h++)for(var v=h-s,d=0;d<i;d++){var f=a[d],p=ca.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=z(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=Ot()),ps(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,u);else for(var h=[],v=e;v<r;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,l[d],v,d);p[v]=g;var m=u[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.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=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],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 a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},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 a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),v=r-i[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>
14=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=Jt(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Jt(n._rawCount),o=new i(a),s=[],u=e.length,l=0,f=e[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(u===0)v=r(h);else if(u===1){var p=c[f][d];v=r(p,h)}else{for(var g=0;g<u;g++)s[g]=c[e[g]][d];s[g]=h,v=r.apply(null,s)}v&&(o[l++]=d)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=be(e),i=a.length;if(!i)return this;var o=r.count(),s=Jt(r._rawCount),u=new s(o),l=0,f=a[0],c=e[f][0],h=e[f][1],v=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=v[a[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=h||isNaN(y))&&(u[l++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],x=e[a[1]][0],b=e[a[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=h||isNaN(y))&&(w>=x&&w<=b||isNaN(w))&&(u[l++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=v[a[0]][T];(y>=c&&y<=h||isNaN(y))&&(u[l++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),D=0;D<i;D++){var A=a[D],y=v[A][T];(y<e[A][0]||y>e[A][1])&&(C=!1)}C&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,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 a=e._chunks,i=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=Ot();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)u[v]=a[r[v]][h];u[o]=c;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=l[p],y=a[p];y&&(y[h]=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),a=n._chunks,i=a[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,c,h,v=new(Jt(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var p=Math.min(d+u,o-1),g=Math.min(d+u*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var x=this.getRawIndex(_),b=i[x];isNaN(b)||(y+=b)}y/=g-p;var w=d,T=Math.min(d+u,o),C=d-1,D=i[l];f=-1,h=w;for(var A=-1,M=0,_=w;_<T;_++){var x=this.getRawIndex(_),b=i[x];if(isNaN(b)){M++,A<0&&(A=x);continue}c=Math.abs((C-m)*(b-D)-(C-_)*(y-D)),c>f&&(f=c,h=x)}M>0&&M<T-w&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,l=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=i._rawExtent[e]=Ot(),h=new(Jt(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var p=0;p<u;p++){var g=this.getRawIndex(d+p);s[p]=l[g]}var m=n(s),y=this.getRawIndex(Math.min(d+a(s,m)||0,f-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var u=0,l=[];u<n;u++)l[u]=a[e[u]][s];l[u]=i,r.apply(null,l)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Ot();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<a;l++){var f=this.getRawIndex(l),c=r[f];c<s&&(s=c),c>u&&(u=c)}return o=[s,u],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=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&nl(e,function(s,u){return s[u]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?Jp(a[o]):a[o];else n._chunks=a;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=$(this._extent),e._rawExtent=$(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 a=0;a<n;a++)r[a]=this._indices[a]}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,a,i){return mn(r[i],this._dimensions[i])}ca={arrayRows:e,objectRows:function(r,n,a,i){return mn(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return mn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}(),Mf=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,a,i;if(Kr(e)){var o=e,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),u=Le(s)?ct:Pe,i=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},v=J(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=J(c.sourceHeader,h.sourceHeader),p=J(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[ei(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},u)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[ei(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&ms(i)}var o,s=[],u=[];return S(e,function(l){l.prepareSource();var f=l.getSource(a||0),c="";a!=null&&!f&&ms(c),s.push(f),u.push(l._getVersionSign())}),n?o=Kp(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Ip(s[0])]),{sourceList:o,upstreamSignList:u}},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 a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Kr(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new ti,s.initData(new pf(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Kr(e)){var r=of(e);return r?[r.getSourceManager()]:[]}else return z(ep(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(Kr(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function gs(t){var e=t.option.transform;e&&wn(t.option.transform)}function Kr(t){return t.mainType==="series"}function ms(t){throw new Error(t)}var Cf="line-height:1";function Df(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+De(n+"")+"px;color:"+De(r)+";font-weight:"+De(a+""),valueStyle:"font-size:"+De(o+"")+"px;color:"+De(i)+";font-weight:"+De(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var eg=[0,10,20,30],tg=["",` 15`,` 16 17`,` 18 19 20`];function Pr(t,e){return e.type=t,e}function ri(t){return t.type==="section"}function Af(t){return ri(t)?rg:ng}function If(t){if(ri(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return S(t.blocks,function(a){var i=If(a);i>=e&&(e=i+ +(n&&(!i||ri(a)&&!a.noHeader)))}),e}return 0}
20function rg(t,e,r,n){var a=e.noHeader,i=ag(If(e)),o=[],s=e.blocks||[];qe(!s||P(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(je(l,u)){var f=new Sf(l[u],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}S(s,function(d,p){var g=e.valueFormatter,m=Af(d)(g?R(R({},t),{valueFormatter:g}):t,d,p>0?i.html:0,n);m!=null&&o.push(m)});var c=t.renderMode==="richText"?o.join(i.richText):ni(o.join(""),a?r:i.html);if(a)return c;var h=Ja(e.header,"ordinal",t.useUTC),v=Df(n,t.renderMode).nameStyle;return t.renderMode==="richText"?Lf(t,h,v)+i.richText+c:ni('<div style="'+v+";"+Cf+';">'+De(h)+"</div>"+c,r)}function ng(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=P(x)?x:[x],z(x,function(b,w){return Ja(b,P(v)?v[w]:v,l)})};if(!(i&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),h=i?"":Ja(u,"ordinal",l),v=e.valueType,d=o?[]:f(e.value),p=!s||!i,g=!s&&i,m=Df(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":Lf(t,h,y))+(o?"":sg(t,d,p,g,_)):ni((s?"":c)+(i?"":ig(h,!s,y))+(o?"":og(d,p,g,_)),r)}}function ys(t,e,r,n,a,i){if(t){var o=Af(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function ag(t){return{html:eg[t],richText:tg[t]}}function ni(t,e){var r='<div style="clear:both"></div>',n="margin: "+e+"px 0 0";return'<div style="'+n+";"+Cf+';">'+t+r+"</div>"}function ig(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+De(t)+"</span>"}function og(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=P(t)?t:[t],'<span style="'+i+";"+n+'">'+z(t,function(o){return De(o)}).join(" ")+"</span>"}function Lf(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function sg(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(P(e)?e.join(" "):e,i)}function ug(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Dr(n)}function Pf(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var va=function(){function t(){this.richTextStyles={},this._nextStyleNameId=fl()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=Xd({color:r,type:e,renderMode:n,markerId:a});return O(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};P(r)?S(r,function(i){return R(n,i)}):R(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function lg(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),u=P(s),l=ug(e,r),f,c,h,v;if(o>1||u&&!o){var d=fg(s,e,r,i,l);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Yt(a,r,i[0]),c=p.type}else v=f=u?s[0]:s;var g=dl(e),m=g&&e.name||"",y=a.getName(r),_=n?m:y;return Pr("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Pr("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Nr(_),value:f,valueType:c})].concat(h||[])})}function fg(t,e,r,n,a){var i=e.getData(),o=nl(t,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?S(n,function(c){f(Yt(i,r,c),c)}):S(t,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?l.push(Pr("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var it=j();function qr(t,e){return t.getName(e)||t.getId(e)}var yn="__universalTransitionEnabled",$n=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=mr({count:vg,reset:hg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=it(this).sourceManager=new Mf(this);i.prepareSource();var o=this.getInitialData(r,a);xs(o,this),this.dataTask.context.data=o,it(this).dataBeforeProcessed=o,_s(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Ar(this),i=a?Ui(r):{},o=this.subType;Z.hasClass(o)&&(o+="Series"),K(r,n.getTheme().get(this.subType)),K(r,this.getDefaultOption()),To(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ir(r,i,a)},e.prototype.mergeOption=function(r,n){r=K(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Ar(this);a&&Ir(this.option,r,a);var i=it(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);xs(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,it(this).dataBeforeProcessed=o,_s(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Le(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&To(r[a],"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=ai(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}
20else return it(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=ai(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}it(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return V(r)},e.prototype.getSourceManager=function(){return it(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return it(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,a){return lg({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Q.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,a){var i=this.ecModel,o=Yi.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),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 a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=qr(o,u);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=be(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[qr(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yn])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){N(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f],h=qr(r,c);l[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[u-1],h=qr(r,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Z.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}(Z);dt($n,Bp);dt($n,Yi);ml($n,Z);function _s(t){var e=t.name;dl(t)||(t.name=cg(t)||e)}function cg(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return S(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function vg(t){return t.model.getRawData().count()}function hg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),dg}function dg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function xs(t,e){S(Pv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,we(pg,e))})}function pg(t,e){var r=ai(t);return r&&r.setOutputEnd((e||this).count()),e}function ai(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}const Xt=$n;var ji=function(){function t(){this.group=new Qe,this.uid=Vn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Di(ji);On(ji);const et=ji;function Ef(){var t=j();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRen
20der,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var kf=j(),gg=Ef(),Qi=function(){function t(){this.group=new Qe,this.uid=Vn("viewChart"),this.renderTask=mr({plan:mg,reset:yg}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&ws(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&ws(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){Bi(this.group,e)},t.markUpdateMethod=function(e,r){kf(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Ss(t,e,r){t&&Za(t)&&(e==="emphasis"?Ua:Ya)(t,r)}function ws(t,e,r){var n=Vr(t,e),a=e&&e.highlightKey!=null?ed(e.highlightKey):null;n!=null?S(ae(n),function(i){Ss(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){Ss(i,r,a)})}Di(Qi);On(Qi);function mg(t){return gg(t.model)}function yg(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&kf(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,n,a),_g[u]}var _g={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)}}};const Ut=Qi;var An="\0__throttleOriginMethod",bs="\0__throttleRate",Ts="\0__throttleType";function Ji(t,e,r){var n,a=0,i=0,o=null,s,u,l,f;e=e||0;function c(){i=new Date().getTime(),o=null,t.apply(u,l||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var p=f||e,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Rf(t,e,r,n){var a=t[e];if(a){var i=a[An]||a,o=a[Ts],s=a[bs];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=Ji(i,r,n==="debounce"),a[An]=i,a[Ts]=n,a[bs]=r}return a}}function ii(t,e){var r=t[e];r&&r[An]&&(r.clear&&r.clear(),t[e]=r[An])}var Ms=j(),Cs={itemStyle:br(zl,!0),lineStyle:br(Vl,!0)},xg={lineStyle:"stroke",itemStyle:"fill"};function Of(t,e){var r=t.visualStyleMapper||Cs[e];return r||(console.warn("Unknown style type '"+e+"'."),Cs.itemStyle)}function Bf(t,e){var r=t.visualDrawType||xg[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var Sg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=Of(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Bf(t,n),l=o[u],f=U(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||U(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||U(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=t.getDataParams(d),g=R({},o);g[u]=f(p),v.setItemVisual(d,"style",g)}}}},er=new de,wg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=Of(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){er.option=u[n];var l=a(er),f=o.ensureUniqueItemVisual(s,"style");R(f,l),er.option.decal&&(o.setItemVisual(s,"decal",er.option.decal),er.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},bg={performRawSeries:!0,overallReset:function(t){var e=V();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),Ms(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=Ms(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=Bf
20(r,s);i.each(function(l){var f=i.getRawIndex(l);a[f]=l}),n.each(function(l){var f=a[l],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();h[u]=r.getColorFromPalette(v,o,d)}})}})}},jr=Math.PI;function Tg(t,e){e=e||{},q(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 Qe,n=new pe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new Ne({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new pe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new Ti({shape:{startAngle:-jr/2,endAngle:-jr/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth}
20,zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:jr*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jr*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:f}),i.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Mg=function(){function t(e,r,n,a){this._stageTaskMap=V(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,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),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),u=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=V();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;S(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";qe(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},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,a){a=a||{};var i=!1,o=this;S(e,function(u,l){if(!(a.visualType&&a.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||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,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=V(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||mr({plan:Lg,reset:Pg,count:kg}));v.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,v)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||mr({reset:Cg});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=V(),l=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";qe(!e.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,a).each(d):(c=!1,S(n.get
20Series(),d));function d(p){var g=p.uid,m=u.set(g,s&&s.get(g)||(h=!0,mr({reset:Dg,onDirty:Ig})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return U(e)&&(e={overallReset:e,seriesType:Rg(e)}),e.uid=Vn("stageHandler"),r&&(e.visualType=r),e},t}();function Cg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Dg(t){return t.overallProgress&&Ag}function Ag(){this.agent.dirty(),this.getDownstream().dirty()}function Ig(){this.agent&&this.agent.dirty()}function Lg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Pg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ae(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?z(e,function(r,n){return Nf(n)}):Eg}var Eg=Nf(0);function Nf(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function kg(t){return t.data.count()}function Rg(t){In=null;try{t(Er,Ff)}catch{}return In}var Er={},Ff={},In;Vf(Er,lf);Vf(Ff,ff);Er.eachSeriesByType=Er.eachRawSeriesByType=function(t){In=t};Er.eachComponent=function(t){t.mainType==="series"&&t.subType&&(In=t.subType)};function Vf(t,e){for(var r in e.prototype)t[r]=vt}const zf=Mg;var Ds=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Og={color:Ds,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ds]};
20var he="#B9B8CE",As="#100C2A",Qr=function(){return{axisLine:{lineStyle:{color:he}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Is=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Gf={darkMode:!0,color:Is,backgroundColor:As,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:he}},textStyle:{color:he},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:he}},dataZoom:{borderColor:"#71708A",textStyle:{color:he},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:he}},timeline:{lineStyle:{color:he},label:{color:he},controlStyle:{color:he,borderColor:he}},calendar:{itemStyle:{color:As},dayLabel:{color:he},monthLabel:{color:he},yearLabel:{color:he}},timeAxis:Qr(),logAxis:Qr(),valueAxis:Qr(),categoryAxis:Qr(),line:{symbol:"circle"},graph:{color:Is},gauge:{title:{color:he},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:he},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Gf.categoryAxis.splitLine.show=!1;const Bg=Gf;var Ng=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(O(e)){var i=He(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};S(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=l.lastIndexOf(h);if(v>0&&v===l.length-h.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(a[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,i,"name")&&f(l,i,"dataIndex")&&f(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),oi=["symbol","symbolSize","symbolRotate","symbolOffset"],Ls=oi.concat(["symbolKeepAspect"]),Fg={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={},a={},i=!1,o=0;o<oi.length;o++){var s=oi[o],u=t.get(s);U(u)?(i=!0,a[s]=u):n[s]=u}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 l=be(a);function f(c,h){for(var v=t.getRawValue(h),d=t.getDataParams(h),p=0;p<l.length;p++){var g=l[p];c.setItemVisual(h,g,a[g](v,d))}}return{dataEach:i?f:null}}},Vg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Ls.length;s++){var u=Ls[s],l=o.getShallow(u,!0);l!=null&&a.setItemVisual(i,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function zg(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 Gg(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 Bt(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=a.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),h=Vr(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:P(h)?c.getName(h[0]):c.getName(h),selected:O(u)?u:R({},u)})}})}function Hg(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Bt("map","selectchanged",e,a,n),Bt("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Bt("map","selected",e,a,n),Bt("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Bt("map","unselected",e,a,n),Bt("pie","unselected",e,a,n))})}function vr(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Wg=me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),Ug=me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),Yg=me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),h=Math.cos(l),v=o*.6,d=o*.7;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+f-c*v,u+s+h*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*v,u+s+h*v,r-f,u+s),t.closePath()}}),Xg=me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),$g={line:It,rect:pe,roundRect:pe,square:pe,circle:wi,diamond:Ug,pin:Yg,arrow:Xg,triangle:Wg},Zg={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},si={};S($g,function(t,e){si[e]=new t});var Kg=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=za(t,e,r),a=this.shape;return a&&a.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 a=si[n];a||(n="rect",a=si[n]),Zg[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});
20function qg(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 Hf(t,e,r,n,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=Pl(t.slice(8),new Ye(e,r,n,a),o?"center":"cover"):t.indexOf("path://")===0?u=Ri(t.slice(7),{},new Ye(e,r,n,a),o?"center":"cover"):u=new Kg({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),u.__isEmptyBrush=s,u.setColor=qg,i&&u.setColor(i),u}function jg(t,e){if(t!=null)return P(t)||(t=[t,t]),[fe(t[0],e[0])||0,fe(J(t[1],t[0]),e[1])||0]}var ha=new Ev,Ps=new qu(100),Es=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ks(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&ha.delete(t);var i=ha.get(t);if(i)return i;var o=q(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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,ha.set(t,s),t.dirty=!1,s;function u(l){for(var f=[r],c=!0,h=0;h<Es.length;++h){var v=o[Es[h]];if(v!=null&&!P(v)&&!O(v)&&!ne(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=Ps.get(d);p&&(a?l.svgElement=p:l.image=p)}var g=Uf(o.dashArrayX),m=Qg(o.dashArrayY),y=Wf(o.symbol),_=Jg(g),x=Yf(m),b=!a&&al.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),C;b&&(b.width=T.width*r,b.height=T.height*r,C=b.getContext("2d")),A(),c&&Ps.put(d,b||w),l.image=b,l.svgElement=w,l.svgWidth=T.width,l.svgHeight=T.height;function D(){for(var M=1,L=0,I=_.length;L<I;++L)M=wo(M,_[L]);for(var E=1,L=0,I=y.length;L<I;++L)E=wo(E,y[L].length);M*=E;var k=x*_.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var M=0,L=0;L<m.length;++L)M+=m[L];if(M<=0)return;for(var I=-x,E=0,k=0,F=0;I<T.height;){if(E%2===0){for(var te=k/2%y.length,B=0,G=0,Y=0;B<T.width*2;){for(var ue=0,L=0;L<g[F].length;++L)ue+=g[F][L];if(ue<=0)break;if(G%2===0){var at=(1-o.symbolSize)*.5,qt=B+g[F][G]*at,uv=I+m[E]*at,lv=g[F][G]*o.symbolSize,fv=m[E]*o.symbolSize,cv=Y/2%y[te].length;vv(qt,uv,lv,fv,y[te][cv])}B+=g[F][G],++Y,++G,G===g[F].length&&(G=0)}++F,F===g.length&&(F=0)}I+=m[E],++k,++E,E===m.length&&(E=0)}function vv(hv,dv,pv,gv,mv){var Ur=a?1:r,po=Hf(mv,hv*Ur,dv*Ur,pv*Ur,gv*Ur,o.color,o.symbolKeepAspect);if(a){var go=n.painter.renderOneToVNode(po);go&&w.children.push(go)}else kv(C,po)}}}}function Wf(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 Wf([t]);for(var n=[],r=0;r<t.length;++r)O(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Uf(t){if(!t||t.length===0)return[[0,0]];if(ne(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ne(t[n])){r=!1;break}if(r)return Uf([t]);for(var a=[],n=0;n<t.length;++n)if(ne(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=z(t[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function Qg(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ne(t)){var e=Math.ceil(t);return[e,e]}var r=z(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function Jg(t){return z(t,function(e){return Yf(e)})}function Yf(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function em(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 u=n.ensureUniqueItemVisual(o,"style");u.decal=ks(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ks(a,e)}}})}var tm=new Rn;const Re=tm;var Xf={};function rm(t,e){Xf[t]=e}function nm(t){return Xf[t]}var am=1,im=800,om=900,sm=1e3,um=2e3,lm=5e3,$f=1e3,fm=1100,eo=2e3,Zf=3e3,cm=4e3,Zn=4500,vm=4600,hm=5e3,dm=6e3,Kf=7e3,pm={PROCESSOR:{FILTER:sm,SERIES_FILTER:im,STATISTIC:lm},VISUAL:{LAYOUT:$f,PROGRESSIVE_LAYOUT:fm,GLOBAL:eo,CHART:Zf,POST_CHART_LAYOUT:vm,COMPONENT:cm,BRUSH:hm,CHART_ITEM:Zn,ARIA:dm,DECAL:Kf}},ce="__flagInMainProcess",ye="__pendingUpdate",da="__needsUpdateStatus",Rs=/^[a-zA-Z0-9_]+$/,pa="__connectUpdateStatus",Os=0,gm=1,mm=2;function qf(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return Qf(this,t,e)}}function jf(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Qf(this,t,e)}}function Qf(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Rn.prototype[e].apply(t,r)}var Jf=function(t){H(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Rn),ec=Jf.prototype;ec.on=jf("on");ec.off=jf("off");
20var Nt,ga,Jr,ot,ma,ya,_a,tr,rr,Bs,Ns,xa,Fs,en,Vs,tc,Te,zs,rc=function(t){H(e,t);function e(r,n,a){var i=t.call(this,new Ng)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},O(n)&&(n=nc[n]),i._dom=r;var o="canvas",s="auto",u=!1,l=i._zr=yo(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:J(a.useDirtyRect,u),useCoarsePointer:J(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Ji(ee(l.flush,l),17),n=$(n),n&&vf(n,!0),i._theme=n,i._locale=Vd(a.locale||Gl),i._coordSysMgr=new Xi;var f=i._api=Vs(i);function c(h,v){return h.__prio-v.__prio}return Qn(Pn,c),Qn(ui,c),i._scheduler=new zf(i,f,ui,Pn),i._messageCenter=new Jf,i._initEvents(),i.resize=ee(i.resize,i),l.animation.on("frame",i._onframe,i),Bs(l,i),Ns(l,i),wn(i),i}return e.prototype._onframe=function(){if(!this._disposed){zs(this);var r=this._scheduler;if(this[ye]){var n=this[ye].silent;this[ce]=!0;try{Nt(this),ot.update.call(this,null,this[ye].updateParams)}catch(u){throw this[ce]=!1,this[ye]=null,u}this._zr.flush(),this[ce]=!1,this[ye]=null,tr.call(this,n),rr.call(this,n)}else if(r.unfinished){var a=am,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),ya(this,i),r.performVisualTasks(i),en(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>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,a){if(!this[ce]){if(this._disposed){this.id;return}var i,o,s;if(N(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ce]=!0,!this._model||n){var u=new _p(this._api),l=this._theme,f=this._model=new lf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},li);var c={seriesTransition:s,optionChanged:!0};if(a)this[ye]={silent:i,updateParams:c},this[ce]=!1,this.getZr().wakeUp();else{try{Nt(this),ot.update.call(this,null,c)}catch(h){throw this[ye]=null,this[ce]=!1,h}this._ssr||this._zr.flush(),this[ye]=null,this[ce]=!1,tr.call(this,i),rr.call(this,i)}}},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||Q.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(Q.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return S(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;S(n,function(u){a.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return S(i,function(u){u.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Gs[a]){var u=s,l=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();S(_r,function(_,x){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(r)),w=_.getDom().getBoundingClientRect();u=i(w.left,u),l=i(w.top,l),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:b,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,c*=v;var d=f-u,p=c-l,g=al.createCanvas(),m=yo(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return S(h,function(_){var x=_.left-u,b=_.top-l;y+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}
20),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new pe({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),S(h,function(_){var x=new kn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return ma(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return ma(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=ea(a,r);return S(o,function(s,u){u.indexOf("Models")>=0&&S(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,l))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=ea(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return u!=null?zg(s,u,n):Gg(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(ym,function(n){var a=function(i){var o=r.getModel(),s=i.target,u,l=n==="globalout";if(l?u={}:s&&vr(s,function(d){var p=X(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return u=R({},p.eventData),!0},!0),u){var f=u.componentType,c=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=u.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=i,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),S(yr,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),S(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),Hg(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&&pl(this.getDom(),ro,"");var n=this,a=n._api,i=n._model;S(n._componentsViews,function(o){o.dispose(i,a)}),S(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete _r[n.id]},e.prototype.resize=function(r){if(!this[ce]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[ye]&&(i==null&&(i=this[ye].silent),a=!0,this[ye]=null),this[ce]=!0;try{a&&Nt(this),ot.update.call(this,{type:"resize",animation:R({duration:0},r&&r.animation)})}catch(o){throw this[ce]=!1,o}this[ce]=!1,tr.call(this,i),rr.call(this,i)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(N(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!fi[r]){var a=fi[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=R({},r);return n.type=yr[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(N(n)||(n={silent:!!n}
20),!!Ln[r.type]&&this._model){if(this[ce]){this._pendingActions.push(r);return}var a=n.silent;_a.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Q.browser.weChat&&this._throttledZrFlush(),tr.call(this,a),rr.call(this,a)}},e.prototype.updateLabelLayout=function(){Re.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Nt=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),ga(c,!0),ga(c,!1),h.plan()},ga=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(w,T){w!=="series"&&x(T)}):v.eachSeries(x);function x(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!T&&g[C];if(!D){var A=He(w.type),M=h?et.getClass(A.main,A.sub):Ut.getClass(A.sub);D=new M,D.init(v,y),g[C]=D,p.push(D),m.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(D,w,v,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Jr=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){S([].concat(c._componentsViews).concat(c._chartsViews),b);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=v.excludeSeriesId,x;_!=null&&(x=V(),S(ae(_),function(w){var T=We(w,null);T!=null&&x.set(T,!0)})),g&&g.eachComponent(y,function(w){var T=x&&x.get(w.id)!=null;if(!T)if(Oo(v))if(w instanceof Xt)v.type===Ct&&!v.notBlur&&!w.get(["emphasis","disabled"])&&Wh(w,v,c._api);else{var C=Ei(w.mainType,w.componentIndex,v.name,c._api),D=C.focusSelf,A=C.dispatchers;v.type===Ct&&D&&!v.notBlur&&$a(w.mainType,w.componentIndex,c._api),A&&S(A,function(M){v.type===Ct?Ua(M):Ya(M)})}else Ka(v)&&w instanceof Xt&&(Xh(w,v,c._api),ko(w),Te(c))},c),g&&g.eachComponent(y,function(w){var T=x&&x.get(w.id)!=null;T||b(c[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function b(w){w&&w.__alive&&w[h]&&w[h](w.__model,g,c._api,v)}},ot={prepareAndUpdate:function(c){Nt(this),ot.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),g.create(v,d),m.performDataProcessorTasks(v,c),ya(this,v),g.update(v,d),r(v),m.performVisualTasks(v,c),xa(this,v,d,c,h);var y=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),Re.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,v,d,c);x&&x.update&&p.push(_)}else p.push(_)}});var g=V();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,v,d,c);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),en(this,v,d,c,{},g),Re.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Ut.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),xa(this,h,this._api,c,{}),Re.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Ut.markUpdateMethod(c,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}
20),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),Re.trigger("afterupdate",v,this._api))},updateLayout:function(c){ot.update.call(this,c)}},ma=function(c,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,y=ea(p,v),_=0;_<g.length;_++){var x=g[_];if(x[h]&&(m=x[h](p,y,d))!=null)return m}},ya=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},_a=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=Ln[p],y=m.actionInfo,_=(y.update||"update").split(":"),x=_.pop(),b=_[0]!=null&&He(_[0]);this[ce]=!0;var w=[c],T=!1;c.batch&&(T=!0,w=z(c.batch,function(E){return E=q(R({},E),c),E.batch=null,E}));var C=[],D,A=Ka(c),M=Oo(c);if(M&&Dl(this._api),S(w,function(E){if(D=m.action(E,v._model,v._api),D=D||R({},E),D.type=y.event||D.type,C.push(D),M){var k=Ci(c),F=k.queryOptionMap,te=k.mainTypeSpecified,B=te?F.keys()[0]:"series";Jr(v,x,E,B),Te(v)}else A?(Jr(v,x,E,"series"),Te(v)):b&&Jr(v,x,E,b.main,b.sub)}),x!=="none"&&!M&&!A&&!b)try{this[ye]?(Nt(this),ot.update.call(this,c),this[ye]=null):ot[x].call(this,c)}catch(E){throw this[ce]=!1,E}if(T?D={type:y.event||p,escapeConnect:g,batch:C}:D=C[0],this[ce]=!1,!h){var L=this._messageCenter;if(L.trigger(D.type,D),A){var I={type:"selectchanged",escapeConnect:g,selected:$h(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};L.trigger(I.type,I)}}},tr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();_a.call(this,v,c)}},rr=function(c){!c&&this.trigger("updated")},Bs=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[ye]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Ns=function(c,h){c.on("mouseover",function(v){var d=v.target,p=vr(d,Za);p&&(Uh(p,v,h._api),Te(h))}).on("mouseout",function(v){var d=v.target,p=vr(d,Za);p&&(Yh(p,v,h._api),Te(h))}).on("click",function(v){var d=v.target,p=vr(d,function(y){return X(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=X(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:h).push({zlevel:x,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=h.concat(v),g,m;Qn(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),S(p,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,b=y.key;g!=null&&(x=Math.max(g,x)),b?(x===g&&b!==m&&x++,m=b):m&&(x===g&&x++,m=""),g=x,_.setZLevel(x)})}}xa=function(c,h,v,d,p){n(h),Fs(c,h,v,d,p),S(c._chartsViews,function(g){g.__alive=!1}),en(c,h,v,d,p),S(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},Fs=function(c,h,v,d,p,g){S(g||c._componentsViews,function(m){var y=m.__model;l(y,m),m.render(y,h,v,d),s(y,m),f(y,m)})},en=function(c,h,v,d,p,g){var m=c._scheduler;p=R(p||{},{updatedSeries:h.getSeries()}),Re.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;m.updatePayload(b,d),l(_,x),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),x.group.silent=!!_.get("silent"),o(_,x),ko(_)}),m.unfinished=y||m.unfinished,Re.trigger("series:layoutlabels",h,v,p),Re.trigger("series:transition",h,v,p),h.eachSeries(function(_){var x=c._chartsMap[_.__viewId];s(_,x),f(_,x)}),i(c,h),Re.trigger("series:afterupdate",h,v,p)},Te=function(c){c[da]=!0,c.getZr().wakeUp()},zs=function(c){c[da]&&(c.getZr().storage.traverse(function(h){Gt(h)||a(h)}),c[da]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Li&&c.states.emphasis?h.push("emphasis"):c.hoverState===Ii&&c.states.blur&&h.push("blur"),c.useStates(h)}function i(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!Q.node&&!Q.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}
20function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return u(p,v,d,-1/0),!0})}}function u(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_<y.length;_++)d=Math.max(u(y[_],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var x=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function l(c,h){h.eachRendered(function(v){if(!Gt(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Gt(m))return;if(m instanceof me&&td(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&a(m)}})}Vs=function(c){return new(function(h){H(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ua(d,p),Te(c)},v.prototype.leaveEmphasis=function(d,p){Ya(d,p),Te(c)},v.prototype.enterBlur=function(d){Hh(d),Te(c)},v.prototype.leaveBlur=function(d){bl(d),Te(c)},v.prototype.enterSelect=function(d){Tl(d),Te(c)},v.prototype.leaveSelect=function(d){Ml(d),Te(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(ff))(c)},tc=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[pa]=d}}S(yr,function(v,d){c._messageCenter.on(d,function(p){if(Gs[c.group]&&c[pa]!==Os){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];S(_r,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,Os),S(m,function(y){y[pa]!==gm&&y.dispatchAction(g)}),h(m,mm)}})})}}(),e}(Rn),to=rc.prototype;to.on=qf("on");to.off=qf("off");to.one=function(t,e,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var ym=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ln={},yr={},ui=[],li=[],Pn=[],nc={},fi={},_r={},Gs={},_m=+new Date-0,ro="_echarts_instance_";function Gx(t,e,r){var n=!(r&&r.ssr);if(n){var a=xm(t);if(a)return a}var i=new rc(t,e,r);return i.id="ec_"+_m++,_r[i.id]=i,n&&pl(t,ro,i.id),tc(i),Re.trigger("afterinit",i),i}function xm(t){return _r[yh(t,ro)]}function ac(t,e){nc[t]=e}function ic(t){oe(li,t)<0&&li.push(t)}function oc(t,e){ao(ui,t,e,um)}function Sm(t){no("afterinit",t)}function wm(t){no("afterupdate",t)}function no(t,e){Re.on(t,e)}function Kt(t,e,r){U(e)&&(r=e,e="");var n=N(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!yr[e]&&(qe(Rs.test(n)&&Rs.test(e)),Ln[n]||(Ln[n]={action:r,actionInfo:t}),yr[e]=n)}function bm(t,e){Xi.register(t,e)}function Tm(t,e){ao(Pn,t,e,$f,"layout")}function Et(t,e){ao(Pn,t,e,Zf,"visual")}var Hs=[];function ao(t,e,r,n,a){if((U(e)||N(e))&&(r=e,e=n),!(oe(Hs,r)>=0)){Hs.push(r);var i=zf.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function sc(t,e){fi[t]=e}function Mm(t,e,r){var n=nm("registerMap");n&&n(t,e,r)}var Cm=Zp;Et(eo,Sg);Et(Zn,wg);Et(Zn,bg);Et(eo,Fg);Et(Zn,Vg);Et(Kf,em);ic(vf);oc(om,Dp);sc("default",Tg);Kt({type:Ct,event:Ct,update:Ct},vt);Kt({type:hn,event:hn,update:hn},vt);Kt({type:dr,event:dr,update:dr},vt);Kt({type:dn,event:dn,update:dn},vt);Kt({type:pr,event:pr,update:pr},vt);ac("light",Og);ac("dark",Bg);function nr(t){return t==null?0:t.length||1}function Ws(t){return t}var Dm=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ws,this._newKeyGetter=a||Ws,this.context=i,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={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],u=n[s],l=nr(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var u=i[s],l=n[u],f=a[u],c=nr(l),h=nr(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,l),a[u]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,l),a[u]=null;else if(c===1&&h===1)this._update&&this._update(f,l),a[u]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,l),a[u]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=nr(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!r){var u=r[s],l=nr(u);
20l===0?(r[s]=o,i&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},t}();const ci=Dm;var Am=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 Im(t,e){var r={},n=r.encode={},a=V(),i=[],o=[],s={};S(t.dimensions,function(h){var v=t.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Sa(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),Pm(v.type)&&(i[0]=h),Sa(s,d)[p]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}rf.each(function(g,m){var y=Sa(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};a.each(function(h,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=z(u,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new Am(s,e),r}function Sa(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Lm(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Pm(t){return!(t==="ordinal"||t==="time")}var Em=function(){function t(e){this.otherDims={},e!=null&&R(this,e)}return t}();const _n=Em;var km=j(),Rm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uc=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=cc(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return J(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=df(this.source),n=!vc(e),a="",i=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(u=r?h.name:null,l=h.type)}i.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=Rm[l]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function lc(t){return t instanceof uc}function fc(t){for(var e=V(),r=0;r<(t||[]).length;r++){var n=t[r],a=N(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function cc(t){var e=km(t);return e.dimNameMap||(e.dimNameMap=fc(t.dimensionsDefine))}function vc(t){return t>30}var ar=N,st=z,Om=typeof Int32Array>"u"?Array:Int32Array,Bm="e\0\0",Us=-1,Nm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fm=["_approximateExtent"],Ys,tn,ir,or,wa,rn,ba,Vm=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;lc(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],h=O(c)?new _n({name:c}
20):c instanceof _n?c:new _n(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,l[v]!=null&&(u=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=V();S(o,function(g){p.set(i[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 a=this._schema.getSourceDimension(r);if(a)return a.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(ne(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 a=n.encode[e];return a?a[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 a=this,i;if(e instanceof ti&&(i=e),!i){var o=this.dimensions,s=$i(e)||Or(e)?new pf(e,o.length):e;i=new ti;var u=st(o,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(s,u,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Im(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.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var u=s-a;this._nameList[s]=r[u],o&&ba(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ct&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,u=s===Pe;if(u&&!a.pure)for(var l=[],f=e;f<r;f++){var c=a.getItem(f,l);if(!this.hasItemOption&&sh(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=We(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=We(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)ba(this,f);Ys(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){ar(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=ir(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return tn(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.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,a=this._store;return P(e)?a.getValues(st(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;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],a=n[r];return a==null||isNaN(a)?Us:a},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){U(e)&&(n=r,r=e,e=[]);var a=n||this,i=st(or(e),this._getStoreDimIndex,this);this._store.each(i,a?ee(r,a):r)},t.prototype.filterSelf=function(e,r,n){U(e)&&(n=r,r=e,e=[]);var a=n||this,i=st(or(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ee(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=be(e);return S(a,function(i){var o=r._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){U(e)&&(n=r,r=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=st(or(e),this._getStoreDimIndex,this),s=rn(this);return s._store=this._store.map(o,i?ee(r,i):r),s},t.prototype.modify=function(e,r,n,a){var i=n||a||this,o=st(or(e),this._getStoreDimIndex,this);this._store.modify(o,i?ee(r,i):r)},t.prototype.downSample=function(e,r,n,a){var i=rn(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.lttbDownSample=function(e,r){var n=rn(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 de(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;
20return new ci(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return tn(e,n)},function(n){return tn(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||{},ar(e)?R(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],a=n&&n[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),P(i)?i=i.slice():ar(i)&&(i=R({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,ar(r)?R(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ar(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;Eh(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,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:st(this.dimensions,this._getDimInfo,this),this.hostModel)),wa(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(Rv(arguments)))})},t.internalField=function(){Ys=function(e){var r=e._invertedIndicesMap;S(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new Om(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Us;for(var u=0;u<s.count();u++)n[s.get(i.storeDimIndex,u)]=u}})},ir=function(e,r,n){return We(e._getCategory(r,n),null)},tn=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=ir(e,e._idDimIdx,r)),n==null&&(n=Bm+r),n},or=function(e){return P(e)||(e=e!=null?[e]:[]),e},rn=function(e){var r=new t(e._schema?e._schema:st(e.dimensions,e._getDimInfo,e),e.hostModel);return wa(r,e),r},wa=function(e,r){S(Nm.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,S(Fm,function(n){e[n]=$(r[n])}),e._calculationInfo=R({},r._calculationInfo)},ba=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=a[r];if(s==null&&i!=null&&(n[r]=s=ir(e,i,r)),u==null&&o!=null&&(a[r]=u=ir(e,o,r)),u==null&&s!=null){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),a[r]=u}}}(),t}();const zm=Vm;function Gm(t,e){$i(t)||(t=Zi(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=V(),i=[],o=Wm(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&vc(o),u=n===t.dimensionsDefine,l=u?cc(t):fc(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=V(f),h=new bf(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var A=h[D];if(A<0){var M=n[D],L=N(M)?M:{name:M},I=new _n,E=L.name;E!=null&&l.get(E)!=null&&(I.name=I.displayName=E),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var k=i.length;return h[D]=k,I.storeDimIndex=D,i.push(I),I}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,A){var M=ae(D).slice();if(M.length===1&&!O(M[0])&&M[0]<0){c.set(A,!1);return}var L=c.set(A,[]);S(M,function(I,E){var k=O(I)?l.get(I):I;k!=null&&k<o&&(L[E]=k,g(d(k),A,E))})});var p=0;S(r,function(D){var A,M,L,I;if(O(D))A=D,I={};else{I=D,A=I.name;var E=I.ordinalMeta;I.ordinalMeta=null,I=R({},I),I.ordinalMeta=E,M=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var k=c.get(A);if(k!==!1){if(k=ae(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(te,B){var G=d(te);if(u&&I.type!=null&&(G.type=I.type),g(q(G,I),A,B),G.name==null&&M){var Y=M[B];!N(Y)&&(Y={name:Y}),G.name=G.displayName=Y.name,G.defaultTooltip=Y.defaultTooltip}L&&q(G.otherDims,L)})}});function g(D,A,M){rf.get(A)!=null?D.otherDims[A]=M:(D.coordDim=A,D.coordDimIndex=M,a.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)S(i,function(D){b(D)}),i.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;
20C==null&&(T.coordDim=Um(x,a,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(sf(t,w)===xe.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Hm(i),new uc({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Hm(t){for(var e=V(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function Wm(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return S(e,function(i){var o;N(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Um(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}var Ym=function(){function t(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return t}();function Xm(t){var e=t.get("coordinateSystem"),r=new Ym(e),n=$m[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var $m={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",Be).models[0],i=t.getReferringComponents("yAxis",Be).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Ft(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Ft(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",Be).models[0];e.coordSysDims=["single"],r.set("single",a),Ft(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",Be).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Ft(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Ft(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();S(i.parallelAxisIndex,function(s,u){var l=a.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Ft(l)&&(n.set(f,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})}};function Ft(t){return t.get("type")==="category"}function Zm(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;Km(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var u=!!(t&&t.get("stack")),l,f,c,h;if(S(i,function(y,_){O(y)&&(i[_]=y={name:y}),u&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;S(i,function(y){y.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function Km(t){return!lc(t.schema)}function hc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function qm(t,e){return hc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function jm(t,e){var r=t.get("coordinateSystem"),n=Xi.get(r),a;return e&&e.coordSysDims&&(a=z(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var u=s.get("type");o.type=Lm(u)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Qm(t,e,r){var n,a;return r&&S(t,function(i,o){var s=i.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),i.ordinalMeta=u.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function dc(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;t?(i=!0,a=Zi(t)):(a=n.getSource(),i=a.sourceFormat===Pe);var o=Xm(e),s=jm(e,o),u=r.useEncodeDefaulter,l=U(u)?u:u?we(Jd,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},c=Gm(a,f),h=Qm(c.dimensions,r.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=Zm(e,{schema:c,store:v}),p=new zm(c,e);p.setCalculationInfo(d);var g=h!=null&&Jm(a)?function(m,y,_,x){return x===h?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function Jm(t){if(t.sourceFormat===Pe){var e=ey(t.data||[]);return!P(Fr(e))}}function ey(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var pc=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();On(pc);const nt=pc;var ty=0,ry=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ty}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&z(n,ny);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;
20if(!O(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},t}();function ny(t){return N(t)&&t.value!=null?t.value:t+""}const vi=ry;function hi(t){return t.type==="interval"||t.type==="log"}function ay(t,e,r,n){var a={},i=t[1]-t[0],o=a.interval=ll(i/e,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=gc(o),u=a.niceTickExtent=[ie(Math.ceil(t[0]/o)*o,s),ie(Math.floor(t[1]/o)*o,s)];return iy(u,t),a}function Ta(t){var e=Math.pow(10,Mi(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,ie(r*e)}function gc(t){return Ze(t)+2}function Xs(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function iy(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Xs(t,0,e),Xs(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Kn(t,e){return t>=e[0]&&t<=e[1]}function qn(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function jn(t,e){return t*(e[1]-e[0])+e[0]}var mc=function(t){H(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new vi({})),P(a)&&(a=new vi({categories:z(a,function(i){return N(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:O(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),Kn(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),qn(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(jn(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];a[o]=l,i[l]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(nt);nt.registerClass(mc);const yc=mc;var xt=ie,_c=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return Kn(r,this._extent)},e.prototype.normalize=function(r){return qn(r,this._extent)},e.prototype.scale=function(r){return jn(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=gc(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;a[0]<i[0]&&(r?s.push({value:xt(i[0]-n,o)}):s.push({value:a[0]}));for(var l=i[0];l<=i[1]&&(s.push({value:l}),l=xt(l+n,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(r?s.push({value:xt(f+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],u=n[o-1],l=0,f=[],c=s.value-u.value,h=c/r;l<r-1;){var v=xt(u.value+(l+1)*h);v>i[0]&&v<i[1]&&f.push(v),l++}a.push(f)}return a},e.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Ze(r.value)||0:a==="auto"&&(a=this._intervalPrecision);
20var i=xt(r.value,a,!0);return jl(i)},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=ay(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=xt(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=xt(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(nt);nt.registerClass(_c);const Hr=_c;var xc=typeof Float32Array<"u",oy=xc?Float32Array:Array;function Ma(t){return P(t)?xc?new Float32Array(t):t:new oy(t)}var sy="__ec_stack_";function io(t){return t.get("stack")||sy+t.seriesIndex}function oo(t){return t.dim+t.index}function Sc(t,e){var r=[];return e.eachSeriesByType(t,function(n){bc(n)&&r.push(n)}),r}function uy(t){var e={};S(t,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=u.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(v,p);e[h]?e[h].push(m):e[h]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(u,l){return u-l});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function wc(t){var e=uy(t),r=[];return S(t,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var u=i.dim+"_"+i.index,l=e[u],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=l?f/h*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=fe(n.get("barWidth"),s),p=fe(n.get("barMaxWidth"),s),g=fe(n.get("barMinWidth")||(Tc(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:oo(i),stackId:io(n)})}),ly(r)}function ly(t){var e={};S(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;e[i]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(u[l].maxWidth=c);var h=n.barMinWidth;h&&(u[l].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return S(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=be(i).length;s=Math.max(35-u*4,15)+"%"}var l=fe(s,o),f=fe(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-l)/(h+(h-1)*f);v=Math.max(v,0),S(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,c-=x+f*x,h--}else{var x=v;y&&y<x&&(x=Math.min(y,c)),_&&_>x&&(x=_),x!==v&&(m.width=x,c-=x+f*x,h--)}}),v=(c-l)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;S(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;S(i,function(m,y){r[a][y]=r[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function fy(t,e,r){if(t&&e){var n=t[oo(e)];return n!=null&&r!=null?n[io(r)]:n}}function cy(t,e){var r=Sc(t,e),n=wc(r);S(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),u=io(a),l=n[oo(s)][u],f=l.offset,c=l.width;i.setLayout({bandWidth:l.bandWidth,offset:f,size:c})})}function vy(t){return{seriesType:t,plan:Ef(),reset:function(e){if(bc(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),u=e.get("showBackground",!0),l=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),c=hc(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=hy(a,i),d=Tc(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var b=_.count,w=d&&Ma(b*3),T=d&&u&&Ma(b*3),C=d&&Ma(b),D=n.master.getRect(),A=h?D.width:D.height,M,L=x.getStore(),I=0;(M=_.next())!=null;){var E=L.get(c?g:o,M),k=L.get(s,M),F=v,te=void 0;c&&(te=+E-L.get(o,M));var B=void 0,G=void 0,Y=void 0,ue=void 0;if(h){var at=n.dataToPoint([E,k]);if(c){var qt=n.dataToPoint([te,k]);F=qt[0]}
20B=F,G=at[1]+y,Y=at[0]-F,ue=m,Math.abs(Y)<p&&(Y=(Y<0?-1:1)*p)}else{var at=n.dataToPoint([k,E]);if(c){var qt=n.dataToPoint([k,te]);F=qt[1]}B=at[0]+y,G=F,Y=m,ue=at[1]-F,Math.abs(ue)<p&&(ue=(ue<=0?-1:1)*p)}d?(w[I]=B,w[I+1]=G,w[I+2]=h?Y:ue,T&&(T[I]=h?D.x:B,T[I+1]=h?G:D.y,T[I+2]=A),C[M]=M):x.setItemLayout(M,{x:B,y:G,width:Y,height:ue}),I+=3}d&&x.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:h})}}}}}}function bc(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Tc(t){return t.pipelineContext&&t.pipelineContext.large}function hy(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var dy=function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r},Mc=function(t){H(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return zn(r.value,Yo[Wd(Ht(this._minLevelUnit))]||Yo.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Ud(r,n,a,o,i)},e.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=Sy(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ae,n[1]+=Ae),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Ae}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=nn.length,u=Math.min(dy(nn,this._approxInterval,0,s),s-1);this._interval=nn[u][1],this._minLevelUnit=nn[Math.max(u-1,0)][0]},e.prototype.parse=function(r){return ne(r)?r:+Je(r)},e.prototype.contain=function(r){return Kn(this.parse(r),this._extent)},e.prototype.normalize=function(r){return qn(this.parse(r),this._extent)},e.prototype.scale=function(r){return jn(r,this._extent)},e.type="time",e}(Hr),nn=[["second",Vi],["minute",zi],["hour",gr],["quarter-day",gr*6],["half-day",gr*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",Uo/2],["year",Uo]];function py(t,e,r,n){var a=Je(e),i=Je(r),o=function(d){return Xo(a,d,n)===Xo(i,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(t){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function gy(t,e){return t/=Ae,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function my(t){var e=30*Ae;return t/=e,t>6?6:t>3?3:t>2?2:1}function yy(t){return t/=gr,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function $s(t,e){return t/=e?zi:Vi,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function _y(t){return ll(t,!0)}function xy(t,e,r){var n=new Date(t);switch(Ht(e)){case"year":case"month":n[Yl(r)](0);case"day":n[Xl(r)](1);case"hour":n[$l(r)](0);case"minute":n[Zl(r)](0);case"second":n[Kl(r)](0),n[ql(r)](0)}return n.getTime()}function Sy(t,e,r,n){var a=1e4,i=Wl,o=0;function s(A,M,L,I,E,k,F){for(var te=new Date(M),B=M,G=te[I]();B<L&&B<=n[1];)F.push({value:B}),G+=A,te[E](G),B=te.getTime();F.push({value:B,notAdd:!0})}function u(A,M,L){var I=[],E=!M.length;if(!py(Ht(A),n[0],n[1],r)){E&&(M=[{value:xy(new Date(n[0]),A,r)},{value:n[1]}]);for(var k=0;k<M.length-1;k++){var F=M[k].value,te=M[k+1].value;if(F!==te){var B=void 0,G=void 0,Y=void 0,ue=!1;switch(A){case"year":B=Math.max(1,Math.round(e/Ae/365)),G=Gi(r),Y=Yd(r);break;case"half-year":case"quarter":case"month":B=my(e),G=Wt(r),Y=Yl(r);break;case"week":case"half-week":case"day":B=gy(e),G=Gn(r),Y=Xl(r),ue=!0;break;case"half-day":case"quarter-day":case"hour":B=yy(e),G=Cr(r),Y=$l(r);break;case"minute":B=$s(e,!0),G=Hn(r),Y=Zl(r);break;case"second":B=$s(e,!1),G=Wn(r),Y=Kl(r);break;case"millisecond":B=_y(e),G=Un(r),Y=ql(r);break}s(B,F,te,G,Y,ue,I),A==="year"&&L.length>1&&k===0&&L.unshift({value:L[0].value-B})}}for(var k=0;k<I.length;k++)L.push(I[k]);return I}}for(var l=[],f=[],c=0,h=0,v=0;v<i.length&&o++<a;++v){var d=Ht(i[v]);if(Hd(i[v])){u(i[v],l[l.length-1]||[],f);var p=i[v+1]?Ht(i[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(A,M){return A.value-M.value});for(var g=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(g.push(f[m]),y>=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/e;if(c>_*1.5&&h>_/1.5||(l.push(g),c>_||t===i[v]))break}f=[]}}}for(var x=le(z(l,function(A){return le(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],w=x.length-1,v=0;v<x.length;++v)for(var T=x[v],C=0;C<T.length;++C)b.push({value:T[C].value,level:w-v});b.sort(function(A,M){return A.value-M.value});for(var D=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&D.push(b[v]);return D}nt.registerClass(Mc);const wy=Mc;var Zs=nt.prototype,xr=Hr.prototype,by=ie,Ty=Math.floor,My=Math.ceil,an=Math.pow,ke=Math.log,so=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;
20return r.type="log",r.base=10,r._originalScale=new Hr,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=xr.getTicks.call(this,r);return z(o,function(s){var u=s.value,l=ie(an(this.base,u));return l=u===a[0]&&this._fixMin?on(l,i[0]):l,l=u===a[1]&&this._fixMax?on(l,i[1]):l,{value:l}},this)},e.prototype.setExtent=function(r,n){var a=ke(this.base);r=ke(Math.max(0,r))/a,n=ke(Math.max(0,n))/a,xr.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=Zs.getExtent.call(this);n[0]=an(r,n[0]),n[1]=an(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=on(n[0],i[0])),this._fixMax&&(n[1]=on(n[1],i[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=ke(r[0])/ke(n),r[1]=ke(r[1])/ke(n),Zs.unionExtent.call(this,r)},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=ah(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[ie(My(n[0]/i)*i),ie(Ty(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){xr.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=ke(r)/ke(this.base),Kn(r,this._extent)},e.prototype.normalize=function(r){return r=ke(r)/ke(this.base),qn(r,this._extent)},e.prototype.scale=function(r){return r=jn(r,this._extent),an(this.base,r)},e.type="log",e}(nt),Cc=so.prototype;Cc.getMinorTicks=xr.getMinorTicks;Cc.getLabel=xr.getLabel;function on(t,e){return by(t,Ze(e))}nt.registerClass(so);const Cy=so;var Dy=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);U(i)?this._modelMinNum=sn(e,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=sn(e,i));var o=this._modelMaxRaw=r.get("max",!0);if(U(o)?this._modelMaxNum=sn(e,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=sn(e,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),u=P(s)?s:[s||0,s||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ga(u[0],1),Ga(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=e?a?0:NaN:r-i[0]*o),u==null&&(u=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var c=Ha(s)||Ha(u)||e&&!a;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[Iy[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=Ay[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),Ay={min:"_determinedMin",max:"_determinedMax"},Iy={min:"_dataMin",max:"_dataMax"};function Ly(t,e,r){var n=t.rawExtentInfo;return n||(n=new Dy(t,e,r),t.rawExtentInfo=n,n)}function sn(t,e){return e==null?null:Ha(e)?NaN:t.parse(e)}function Dc(t,e){var r=t.type,n=Ly(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&r==="time"){var s=Sc("bar",o),u=!1;if(S(s,function(c){u=u||c.getBaseAxis()===e.axis}),u){var l=wc(s),f=Py(a,i,e,l);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function Py(t,e,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=fy(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;S(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;S(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=e-t,c=1-(s+u)/i,h=f/c-f;return e+=h*(u/l),t-=h*(s/l),{min:t,max:e}}function Ks(t,e){var r=e,n=Dc(t,r),a=n.extent,i=r.get("splitNumber");t instanceof Cy&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),u=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Ey(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new yc({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new wy({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(nt.getClass(e)||Hr)}}function ky(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Wr(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}(e):O(e)?function(n){return function(a){var i=t.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(e):U(e)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(uo(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function uo(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Ry(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof yc?a=r.count():(n=r.getTicks(),a=n.length);var o=t.getLabelModel(),s=Wr(t),u,l=1;a>40&&(l=Math.ceil(a/40));for(var f=0;f<a;f+=l){var c=n?n[f]:{value:i[0]+f}
20,h=s(c,f),v=o.getTextRect(h),d=Oy(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function Oy(t,e){var r=e*Math.PI/180,n=t.width,a=t.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new Ye(t.x,t.y,i,o);return s}function lo(t){var e=t.get("interval");return e??"auto"}function Ac(t){return t.type==="category"&&lo(t.getLabelModel())===0}function By(t,e){var r={};return S(t.mapDimensionsAll(e),function(n){r[qm(t,n)]=!0}),be(r)}var Ny=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),qs=[],Fy={registerPreprocessor:ic,registerProcessor:oc,registerPostInit:Sm,registerPostUpdate:wm,registerUpdateLifecycle:no,registerAction:Kt,registerCoordinateSystem:bm,registerLayout:Tm,registerVisual:Et,registerTransform:Cm,registerLoading:sc,registerMap:Mm,registerImpl:rm,PRIORITY:pm,ComponentModel:Z,ComponentView:et,SeriesModel:Xt,ChartView:Ut,registerComponentModel:function(t){Z.registerClass(t)},registerComponentView:function(t){et.registerClass(t)},registerSeriesModel:function(t){Xt.registerClass(t)},registerChartView:function(t){Ut.registerClass(t)},registerSubTypeDefaulter:function(t,e){Z.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ov(t,e)}};function En(t){if(P(t)){S(t,function(e){En(e)});return}oe(qs,t)>=0||(qs.push(t),U(t)&&(t={install:t}),t.install(Fy))}var kr=j();function Vy(t){return t.type==="category"?Gy(t):Wy(t)}function zy(t,e){return t.type==="category"?Hy(t,e):{ticks:z(t.scale.getTicks(),function(r){return r.value})}}function Gy(t){var e=t.getLabelModel(),r=Ic(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Ic(t,e){var r=Lc(t,"labels"),n=lo(e),a=Pc(r,n);if(a)return a;var i,o;return U(n)?i=Rc(t,n):(o=n==="auto"?Uy(t):n,i=kc(t,o)),Ec(r,n,{labels:i,labelCategoryInterval:o})}function Hy(t,e){var r=Lc(t,"ticks"),n=lo(e),a=Pc(r,n);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),U(n))i=Rc(t,n,!0);else if(n==="auto"){var s=Ic(t,t.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(u){return u.tickValue})}else o=n,i=kc(t,o,!0);return Ec(r,n,{ticks:i,tickCategoryInterval:o})}function Wy(t){var e=t.scale.getTicks(),r=Wr(t);return{labels:z(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function Lc(t,e){return kr(t)[e]||(kr(t)[e]=[])}function Pc(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function Ec(t,e,r){return t.push({key:e,value:r}),r}function Uy(t){var e=kr(t).autoInterval;return e??(kr(t).autoInterval=t.calculateCategoryInterval())}function Yy(t){var e=Xy(t),r=Wr(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var u=i[0],l=t.dataToCoord(u+1)-t.dataToCoord(u),f=Math.abs(l*Math.cos(n)),c=Math.abs(l*Math.sin(n)),h=0,v=0;u<=i[1];u+=s){var d=0,p=0,g=il(r({value:u}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/f,y=v/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=kr(t.model),b=t.getExtent(),w=x.lastAutoInterval,T=x.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function Xy(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function kc(t,e,r){var n=Wr(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],u=Math.max((e||0)+1,1),l=i[0],f=a.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var c=Ac(t),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&l!==i[0]&&p(i[0]);for(var d=l;d<=i[1];d+=u)p(d);v&&d-u!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function Rc(t,e,r){var n=t.scale,a=Wr(t),i=[];return S(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;e(o.value,s)&&i.push(r?u:{formattedLabel:a(o),rawLabel:s,tickValue:u})}),i}var js=[0,1],$y=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return th(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qs(n,a.count())),So(e,js,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qs(n,a.count()));var i=So(e,n,js,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=zy(this,r),a=n.ticks,i=z(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Zy(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=z(n,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return Vy(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return Yy(this)},t}();function Qs(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function Zy(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),o,s;
20if(a===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var u=e[a-1].tickValue-e[0].tickValue,l=(e[a-1].coord-e[0].coord)/u;S(e,function(v){v.coord-=l/2});var f=t.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+l*s},e.push(o)}var c=i[0]>i[1];h(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&h(i[0],e[0].coord)&&e.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&h(o.coord,i[1])&&e.push({coord:i[1]});function h(v,d){return v=ie(v),d=ie(d),c?v>d:v<d}}const Ky=$y;var sr=Math.PI*2,St=Bv.CMD,qy=["top","right","bottom","left"];function jy(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0);break}}function Qy(t,e,r,n,a,i,o,s,u){o-=t,s-=e;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*r+t,c=s*r+e;if(Math.abs(n-a)%sr<1e-4)return u[0]=f,u[1]=c,l-r;if(i){var h=n;n=Yr(a),a=Yr(h)}else n=Yr(n),a=Yr(a);n>a&&(a+=sr);var v=Math.atan2(s,o);if(v<0&&(v+=sr),v>=n&&v<=a||v+sr>=n&&v+sr<=a)return u[0]=f,u[1]=c,l-r;var d=r*Math.cos(n)+t,p=r*Math.sin(n)+e,g=r*Math.cos(a)+t,m=r*Math.sin(a)+e,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(u[0]=d,u[1]=p,Math.sqrt(y)):(u[0]=g,u[1]=m,Math.sqrt(_))}function di(t,e,r,n,a,i,o,s){var u=a-t,l=i-e,f=r-t,c=n-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=u*f+l*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=t+d*f,g=o[1]=e+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Oc(t,e,r,n,a,i,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,u=e+n,l=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(i,e),u);return Math.sqrt((l-a)*(l-a)+(f-i)*(f-i))}var Oe=[];function Jy(t,e,r){var n=Oc(e.x,e.y,e.width,e.height,t.x,t.y,Oe);return r.set(Oe[0],Oe[1]),n}function e_(t,e,r){for(var n=0,a=0,i=0,o=0,s,u,l=1/0,f=e.data,c=t.x,h=t.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var p=l;switch(d){case St.M:i=f[v++],o=f[v++],n=i,a=o;break;case St.L:p=di(n,a,f[v],f[v+1],c,h,Oe,!0),n=f[v++],a=f[v++];break;case St.C:p=Fv(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,Oe),n=f[v++],a=f[v++];break;case St.Q:p=Nv(n,a,f[v++],f[v++],f[v],f[v+1],c,h,Oe),n=f[v++],a=f[v++];break;case St.A:var g=f[v++],m=f[v++],y=f[v++],_=f[v++],x=f[v++],b=f[v++];v+=1;var w=!!(1-f[v++]);s=Math.cos(x)*y+g,u=Math.sin(x)*_+m,v<=1&&(i=s,o=u);var T=(c-g)*_/y+g;p=Qy(g,m,_,x,x+b,w,T,h,Oe),n=Math.cos(x+b)*y+g,a=Math.sin(x+b)*_+m;break;case St.R:i=n=f[v++],o=a=f[v++];var C=f[v++],D=f[v++];p=Oc(i,o,C,D,c,h,Oe);break;case St.Z:p=di(n,a,i,o,c,h,Oe,!0),n=i,a=o;break}p<l&&(l=p,r.set(Oe[0],Oe[1]))}return l}var Mt=new Ie,se=new Ie,Se=new Ie,zt=new Ie,ur=new Ie;function Js(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||qy,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=a.anchor,f=t.getComputedTransform(),c=f&&Si([],f),h=e.get("length2")||0;l&&Se.copy(l);for(var v=0;v<o.length;v++){var d=o[v];jy(d,0,s,Mt,zt),Ie.scaleAndAdd(se,Mt,zt,h),se.transform(c);var p=t.getBoundingRect(),g=l?l.distance(se):t instanceof me?e_(se,t.path,Se):Jy(se,p,Se);g<u&&(u=g,se.transform(f),Se.transform(f),Se.toArray(i[0]),se.toArray(i[1]),Mt.toArray(i[2]))}t_(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var eu=[],wt=new Ie;function t_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Mt.fromArray(t[0]),se.fromArray(t[1]),Se.fromArray(t[2]),Ie.sub(zt,Mt,se),Ie.sub(ur,Se,se);var r=zt.len(),n=ur.len();if(!(r<.001||n<.001)){zt.scale(1/r),ur.scale(1/n);var a=zt.dot(ur),i=Math.cos(e);if(i<a){var o=di(se.x,se.y,Se.x,Se.y,Mt.x,Mt.y,eu,!1);wt.fromArray(eu),wt.scaleAndAdd(ur,o/Math.tan(Math.PI-e));var s=Se.x!==se.x?(wt.x-se.x)/(Se.x-se.x):(wt.y-se.y)/(Se.y-se.y);if(isNaN(s))return;s<0?Ie.copy(wt,se):s>1&&Ie.copy(wt,Se),wt.toArray(t[1])}}}}function tu(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function r_(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 a=_o(n[0],n[1]),i=_o(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Jn([],n[1],n[0],o/a),u=Jn([],n[1],n[2],o/i),l=Jn([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function n_(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(!a){n&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,u=0;u<Tn.length;u++){var l=Tn[u],f=e[l],c=l==="normal";if(f){var h=f.get("show"),v=c?s:J(a.states[l]&&a.states[l].ignore,s);if(v||!J(h,o)){var d=c?n:n&&n.states[l];d&&(d.ignore=!0);continue}
20n||(n=new bi,t.setTextGuideLine(n),!c&&(s||!o)&&tu(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),tu(n,!1,l,f)}}if(n){q(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=r_}}function a_(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Xe.length;n++){var a=Xe[n];r[a]=t.getModel([a,e])}return r}function Bc(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,u=a.style.margin||0,l=o.clone();l.applyTransform(i),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new Sn(o,i):null;e.push({label:a,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return e}function Nc(t,e,r,n,a,i){var o=t.length;if(o<2)return;t.sort(function(C,D){return C.rect[e]-D.rect[e]});for(var s=0,u,l=!1,f=0,c=0;c<o;c++){var h=t[c],v=h.rect;u=v[e]-s,u<0&&(v[e]-=u,h.label[e]-=u,l=!0);var d=Math.max(-u,0);f+=d,s=v[e]+v[r]}f>0&&i&&b(-f/o,0,o);var p=t[0],g=t[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),x(m,y,1),x(y,m,-1),_(),m<0&&T(-m),y<0&&T(y);function _(){m=p.rect[e]-n,y=a-g.rect[e]-g.rect[r]}function x(C,D,A){if(C<0){var M=Math.min(D,-C);if(M>0){b(M*A,0,o);var L=M+C;L<0&&w(-L*A,1)}else w(-C*A,1)}}function b(C,D,A){C!==0&&(l=!0);for(var M=D;M<A;M++){var L=t[M],I=L.rect;I[e]+=C,L.label[e]+=C}}function w(C,D){for(var A=[],M=0,L=1;L<o;L++){var I=t[L-1].rect,E=Math.max(t[L].rect[e]-I[e]-I[r],0);A.push(E),M+=E}if(M){var k=Math.min(Math.abs(C)/M,D);if(C>0)for(var L=0;L<o-1;L++){var F=A[L]*k;b(F,0,L+1)}else for(var L=o-1;L>0;L--){var F=A[L-1]*k;b(-F,L,o)}}}function T(C){var D=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),M=0;M<o-1;M++)if(D>0?b(A,0,M+1):b(-A,o-M-1,o),C-=A,C<=0)return}return l}function i_(t,e,r,n){return Nc(t,"x","width",e,r,n)}function o_(t,e,r,n){return Nc(t,"y","height",e,r,n)}function Fc(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new Ye(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 a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,s=i.localRect,u=i.transform,l=i.label,f=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=i.obb,h=!1,v=0;v<e.length;v++){var d=e[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Sn(d.localRect,d.transform)),c||(c=new Sn(s,u)),c.intersect(d.obb)){h=!0;break}}}h?(n(l),f&&n(f)):(l.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function s_(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function u_(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:s_(n&&n.shape.points)}}var ru=["align","verticalAlign","width","height","fontSize"],_e=new Qu,Ca=j(),l_=j();function un(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];e[a]!=null&&(t[a]=e[a])}}var ln=["x","y","rotation"],f_=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,s=a.__hostTarget,u=s.textConfig||{},l=a.getComputedTransform(),f=a.getBoundingRect().plain();Ye.applyTransform(f,f,l),l?_e.setLocalTransform(l):(_e.x=_e.y=_e.rotation=_e.originX=_e.originY=0,_e.scaleX=_e.scaleY=1);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Ye.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:_e.x,y:_e.y,scaleX:_e.scaleX,scaleY:_e.scaleY,rotation:_e.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:u.position,attachedRot:u.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(U(a)||be(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=X(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(_,x){return function(){Js(_,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;U(o.layoutOption)?f=o.layoutOption(u_(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*c:l.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=fe(f.x,r),s.setStyle("x",0),h=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=fe(f.y,n),s.setStyle("y",0),h=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=Ca(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var p=0;p<ru.length;p++){var g=ru[p];s.setStyle(g,f[g]!=null?f[g]:l.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",a(u,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=Bc(this._labelList),i=le(a,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=le(a,function(u){return u.layoutOption.moveOverlap==="shiftY"});i_(i,0,r),o_(o,0,n);var s=le(a,function(u){return u.layoutOption.hideOverlap});Fc(s)},t.prototype.processLabelsOverall=function(){var e=this;S(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();
20r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,u=o.getTextContent();!s&&u&&(s=Ca(u).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=X(e),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),u={},l=o.getItemVisual(i,"style"),f=o.getVisual("drawType");u.stroke=l[f];var c=s.getModel("labelLine");n_(e,a_(s),u),Js(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Gt(e))){var i=Ca(n),o=i.oldLayout,s=X(e),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var h=e.prevStates;h&&(oe(h,"select")>=0&&n.attr(i.oldLayoutSelect),oe(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Fe(n,l,r,u)}else if(n.attr(l),!Gr(n).valueAnimation){var c=J(n.style.opacity,1);n.style.opacity=0,Ve(n,{style:{opacity:c}},r,u)}if(i.oldLayout=l,n.states.select){var v=i.oldLayoutSelect={};un(v,l,ln),un(v,n.states.select,ln)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};un(d,l,ln),un(d,n.states.emphasis,ln)}Md(n,u,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=l_(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Fe(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,Ve(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},t}();const c_=f_;var Da=j();function Hx(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=Da(r).labelManager;a||(a=Da(r).labelManager=new c_),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=Da(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}function Wx(t){t.registerPainter("canvas",Vv)}function v_(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Yt(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Yt(t,e,r[o]));return i.join(" ")}}function h_(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!P(e))return e+"";for(var n=[],a=0;a<r.length;a++){var i=t.getDimensionIndex(r[a]);i>=0&&n.push(e[i])}return n.join(" ")}function d_(t,e,r,n,a){var i=t.getArea(),o=i.x,s=i.y,u=i.width,l=i.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,u+=f,l+=f,o=Math.floor(o),u=Math.round(u);var c=new pe({shape:{x:o,y:s,width:u,height:l}});if(e){var h=t.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=u),c.shape.width=0):(d||(c.shape.y+=l),c.shape.height=0);var p=U(a)?function(g){a(g,c)}:null;Ve(c,{shape:{width:u,height:l,x:o,y:s}},r,null,n,p)}return c}function p_(t,e,r){var n=t.getArea(),a=ie(n.r0,1),i=ie(n.r,1),o=new Br({shape:{cx:ie(t.cx,1),cy:ie(t.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ve(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function g_(t,e,r,n,a){if(t){if(t.type==="polar")return p_(t,e,r);if(t.type==="cartesian2d")return d_(t,e,r,n,a)}else return null;return null}function Vc(t,e){return t.type===e}var m_={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},y_=function(t){return Math.round(t.length/2)};function __(t){return{seriesType:t,reset:function(e,r,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(l.dim),1/v));var d=void 0;O(i)?d=m_[i]:U(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(l.dim),1/v,d,y_))}}}}}var zc=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return dc(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)S(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,_=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+_:d[x].tickValue;if(w===p){y=b;break}else if(w<p)m=b;else if(m!=null&&w>p){y=(b+m)/2;break}x===1&&(_=w-d[0].tickValue)}y==null&&(m?m&&(y=d[d.length-1].coord):y=d[0].coord),s[v]=h.toGlobalCoord(y)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=l+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Xt);Xt.registerClass(zc);const nu=zc;var x_=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return dc(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Bd(nu.defaultOption,{clip:!0,roundCap:!1,showBackgroun
20d:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(nu);const S_=x_;var w_=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),b_=function(t){H(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new w_},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(p*o+a,g*o+i),r.arc(p*l+a,g*l+i,u,-Math.PI+f,f,!h)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,f,c,!h),r.arc(m*l+a,y*l+i,u,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(a,i,o,c,f,h)},e}(me);const au=b_;function T_(t,e){e=e||{};var r=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return za(n,a,i);var s=t(o),u=a.distance!=null?a.distance:5,l=this.shape,f=l.cx,c=l.cy,h=l.r,v=l.r0,d=(h+v)/2,p=l.startAngle,g=l.endAngle,m=(p+g)/2,y=r?Math.abs(h-v)/2:0,_=Math.cos,x=Math.sin,b=f+h*_(p),w=c+h*x(p),T="left",C="top";switch(s){case"startArc":b=f+(v-u)*_(m),w=c+(v-u)*x(m),T="center",C="top";break;case"insideStartArc":b=f+(v+u)*_(m),w=c+(v+u)*x(m),T="center",C="bottom";break;case"startAngle":b=f+d*_(p)+fn(p,u+y,!1),w=c+d*x(p)+cn(p,u+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+fn(p,-u+y,!1),w=c+d*x(p)+cn(p,-u+y,!1),T="left",C="middle";break;case"middle":b=f+d*_(m),w=c+d*x(m),T="center",C="middle";break;case"endArc":b=f+(h+u)*_(m),w=c+(h+u)*x(m),T="center",C="bottom";break;case"insideEndArc":b=f+(h-u)*_(m),w=c+(h-u)*x(m),T="center",C="top";break;case"endAngle":b=f+d*_(g)+fn(g,u+y,!0),w=c+d*x(g)+cn(g,u+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+fn(g,-u+y,!0),w=c+d*x(g)+cn(g,-u+y,!0),T="right",C="middle";break;default:return za(n,a,i)}return n=n||{},n.x=b,n.y=w,n.align=T,n.verticalAlign=C,n}}function M_(t,e,r,n){if(ne(n)){t.setTextConfig({rotation:n});return}else if(P(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,u,l=r(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=i;break;case"endAngle":case"insideEndAngle":u=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function fn(t,e,r){return e*Math.sin(t)*(r?-1:1)}function cn(t,e,r){return e*Math.cos(t)*(r?1:-1)}function C_(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;P(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:z(n,function(i){return Ga(i,a)})}}var Aa=Math.max,Ia=Math.min;function D_(t,e){var r=t.getArea&&t.getArea();if(Vc(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var A_=function(t){H(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Bi(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),c;l.type==="cartesian2d"?c=f.isHorizontal():l.type==="polar"&&(c=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,v=I_(r,l);v&&this._enableRealtimeSort(v,s,a);var d=r.get("clip",!0)||v,p=D_(l,s);o.removeClipPath();
20var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],b=this._backgroundEls,w=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function C(M){var L=vn[l.type](s,M),I=B_(l,c,L);return I.useStyle(y.getItemStyle()),l.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),x[M]=I,I}s.diff(u).add(function(M){var L=s.getItemModel(M),I=vn[l.type](s,M,L);if(m&&C(M),!(!s.hasValue(M)||!lu[l.type](I))){var E=!1;d&&(E=iu[l.type](p,I));var k=ou[l.type](r,s,M,I,c,h,f.model,!1,g);v&&(k.forceLabelAnimation=!0),fu(k,s,M,L,I,r,c,l.type==="polar"),w?k.attr({shape:I}):v?su(v,h,k,I,M,c,!1,!1):Ve(k,{shape:I},r,M),s.setItemGraphicEl(M,k),o.add(k),k.ignore=E}}).update(function(M,L){var I=s.getItemModel(M),E=vn[l.type](s,M,I);if(m){var k=void 0;b.length===0?k=C(L):(k=b[L],k.useStyle(y.getItemStyle()),l.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),x[M]=k);var F=vn[l.type](s,M),te=Hc(c,F,l);Fe(k,{shape:te},h,M)}var B=u.getItemGraphicEl(L);if(!s.hasValue(M)||!lu[l.type](E)){o.remove(B);return}var G=!1;if(d&&(G=iu[l.type](p,E),G&&o.remove(B)),B?rd(B):B=ou[l.type](r,s,M,E,c,h,f.model,!!B,g),v&&(B.forceLabelAnimation=!0),T){var Y=B.getTextContent();if(Y){var ue=Gr(Y);ue.prevValue!=null&&(ue.prevValue=ue.value)}}else fu(B,s,M,I,E,r,c,l.type==="polar");w?B.attr({shape:E}):v?su(v,h,B,E,M,c,!0,T):Fe(B,{shape:E},r,M,null),s.setItemGraphicEl(M,B),B.ignore=G,o.add(B)}).remove(function(M){var L=u.getItemGraphicEl(M);L&&qa(L,r,M)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Qe);D.removeAll();for(var A=0;A<x.length;++A)D.add(x[A]);o.add(D),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,n,a){this._clear(),vu(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),vu(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&g_(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(u){var l=n.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var u=a(s);u=u??NaN,i.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,u=0,l=i.getOrdinalMeta().categories.length;u<l;++u){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(u)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackgroun
20d(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){qa(i,r,X(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ut),iu={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=Aa(e.x,t.x),s=Ia(e.x+e.width,a),u=Aa(e.y,t.y),l=Ia(e.y+e.height,i),f=s<o,c=l<u;return e.x=f&&o>a?s:o,e.y=c&&u>i?l:u,e.width=f?0:s-o,e.height=c?0:l-u,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Ia(e.r,t.r),i=Aa(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},ou={cartesian2d:function(t,e,r,n,a,i,o,s,u){var l=new pe({shape:R({},n),z2:1});if(l.__dataIndex=r,l.name="item",i){var f=l.shape,c=a?"height":"width";f[c]=0}return l},polar:function(t,e,r,n,a,i,o,s,u){var l=!a&&u?au:Br,f=new l({shape:n,z2:1});f.name="item";var c=Gc(a);if(f.calculateTextPosition=T_(c,{isRoundCap:l===au}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?Fe:Ve)(f,{shape:d},i)}return f}};function I_(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function su(t,e,r,n,a,i,o,s){var u,l;i?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?Fe:Ve)(r,{shape:u},e,a,null);var f=e?t.baseAxis.model:null;(o?Fe:Ve)(r,{shape:l},f,a)}function uu(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var L_=["x","y","width","height"],P_=["cx","cy","r","startAngle","endAngle"],lu={cartesian2d:function(t){return!uu(t,L_)},polar:function(t){return!uu(t,P_)}},vn={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),a=r?k_(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function E_(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Gc(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function fu(t,e,r,n,a,i,o,s){var u=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var f=t.shape,c=C_(n.getModel("itemStyle"),f,!0);R(f,c),t.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",l)}t.useStyle(u);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=xd(n);_d(t,d,{labelFetcher:i,labelDataIndex:r,defaultText:v_(i.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,M_(t,g==="outside"?v:g,Gc(o),n.get(["label","rotate"]))}Td(p,d,i.getRawValue(r),function(y){return h_(e,y)});var m=n.getModel(["emphasis"]);qh(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Jh(t,n),E_(a)&&(t.style.fill="none",t.style.stroke="none",S(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function k_(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var R_=function(){function t(){}return t}(),cu=function(t){H(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new R_},e.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<a.length;f+=3)u[i]=l,u[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],u[0],u[1])},e}(me);function vu(t,e,r,n){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),u=t.getModel("backgroundStyle"),l=a.getLayout("largeBackgroun
20dPoints");if(l){var f=new cu({shape:{points:l},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),e.add(f),r&&r.push(f)}var c=new cu({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),X(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",hu),c.on("mousemove",hu)),r&&r.push(c)}var hu=Ji(function(t){var e=this,r=O_(e,t.offsetX,t.offsetY);X(e).dataIndex=r>=0?r:null},30,!1);function O_(t,e,r){for(var n=t.baseDimIdx,a=1-n,i=t.shape.points,o=t.largeDataIndices,s=[],u=[],l=t.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(u[n]=l,u[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],u[a]<0&&(s[a]+=u[a],u[a]=-u[a]),e>=s[0]&&e<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function Hc(t,e,r){if(Vc(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function B_(t,e,r){var n=t.type==="polar"?Br:pe;return new n({shape:Hc(e,r,t),silent:!0,z2:0})}const N_=A_;function Ux(t){t.registerChartView(N_),t.registerSeriesModel(S_),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,we(cy,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vy("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,__("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var F_=function(t){H(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Z);const V_=F_;var pi=function(t){H(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Be).models[0]},e.type="cartesian2dAxis",e}(Z);dt(pi,Ny);var Wc={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},z_=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Wc),fo=K({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Wc),G_=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fo),H_=q({logBase:10},fo);const W_={category:z_,value:fo,time:G_,log:H_};var U_={value:1,category:1,time:1,log:1};function du(t,e,r,n){S(U_,function(a,i){var o=K(K({},W_[i],!0),n,!0),s=function(u){H(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return l.prototype.mergeDefaultAndTheme=function(f,c){var h=Ar(this),v=h?Ui(f):{},d=c.getTheme();K(f,d.get(i+"Axis")),K(f,this.getDefaultOption()),f.type=pu(f),h&&Ir(f,v,h)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=vi.createByAxisModel(this))},l.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+i,l.defaultOption=o,l}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",pu)}function pu(t){return t.type||(t.data?"category":"value")}var Y_=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),le(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}();const X_=Y_;var gi=["x","y"];function gu(t){return t.type==="interval"||t.type==="time"}var $_=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=gi,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!gu(r)||!gu(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),u=a[1]-a[0],l=i[1]-i[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,c=(s[1]-o[1])/l,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Si([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");
20return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return At(a,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=u.toGlobalCoord(u.dataToCoord(o,n)),a},e.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),u=a.parse(r[0]),l=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return At(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new Ye(a,i,o,s)},e}(X_),Z_=function(t){H(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(Ky);const K_=Z_;function mi(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,u=o?"onZero":s,l=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=l==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[l==="y"?d[h[u]]:c[0],l==="x"?d[h[u]]:c[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Sr(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=u==="top"?-m:m,i.z2=1,i}function mu(t){return t.get("coordinateSystem")==="cartesian2d"}function yu(t){var e={xAxisModel:null,yAxisModel:null};return S(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,Be).models[0];e[n]=i}),e}var La=Math.log;function q_(t,e,r){var n=Hr.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),u=Dc(t,e),l=u.extent,f=u.fixMin,c=u.fixMax;if(t.type==="log"){var h=La(t.base);l=[La(l[0])/h,La(l[1])/h]}t.setExtent(l[0],l[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(t);f&&(l[0]=v[0]),c&&(l[1]=v[1]);var d=n.getInterval.call(t),p=l[0],g=l[1];if(f&&c)d=(g-p)/o;else if(f)for(g=l[0]+d*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)d=Ta(d),g=l[0]+d*o;else if(c)for(p=l[1]-d*o;p>l[0]&&isFinite(p)&&isFinite(l[0]);)d=Ta(d),p=l[1]-d*o;else{var m=t.getTicks().length-1;m>o&&(d=Ta(d));var y=d*o;g=Math.ceil(l[1]/d)*d,p=ie(g-y),p<0&&l[0]>=0?(p=0,g=ie(y)):g>0&&l[1]<=0&&(g=0,p=-ie(y))}var _=(a[0].value-i[0].value)/s,x=(a[o].value-i[o].value)/s;n.setExtent.call(t,p+d*_,g+d*x),n.setInterval.call(t,d),(_||x)&&n.setNiceExtent.call(t,p+d,g-
20d)}var j_=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gi,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,u=be(o),l=u.length;if(l){for(var f=[],c=l-1;c>=0;c--){var h=+u[c],v=o[h],d=v.model,p=v.scale;hi(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Ks(p,d),hi(p)&&(s=v))}f.length&&(s||(s=f.pop(),Ks(s.scale,s.model)),S(f,function(g){q_(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};S(n.x,function(o){_u(n,"y",o,i)}),S(n.y,function(o){_u(n,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Wi(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;u(),i&&(S(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=Ry(l);if(f){var c=l.isHorizontal()?"height":"width",h=l.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,l.position==="top"?o.y+=f.height+h:l.position==="left"&&(o.x+=f.width+h)}}}),u()),S(this._coordsList,function(l){l.calcAffineTransform()});function u(){S(s,function(l){var f=l.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=l.inverse?1:0;l.setExtent(c[h],c[1-h]),Q_(l,f?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}N(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===r)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Be).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",Be).models[0],i=e.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,oe(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(a)u=this.getAxis("y",a.componentIndex);else if(i){var l=i.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,S(s.x,function(f,c){S(s.y,function(h,v){var d="x"+c+"y"+v,p=new $_(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function l(f){return function(c,h){if(Pa(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new K_(f,Ey(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,u[f]++}}}},t.prototype._updateScale=function(e,r){S(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(mu(a)){var i=yu(a),o=i.xAxisModel,s=i.yAxisModel;if(!Pa(o,r)||!Pa(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=a.getData(),f=u.getAxis("x"),c=u.getAxis("y");n(l,f),n(l,c)}},this);function n(a,i){S(By(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return S(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);oe(r,i)<0&&r.push(i),oe(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}
20),e.eachSeries(function(a){if(mu(a)){var i=yu(a),o=i.xAxisModel,s=i.yAxisModel,u=o.getCoordSysModel(),l=u.coordinateSystem;a.coordinateSystem=l.getCartesian(o.componentIndex,s.componentIndex)}}),n},t.dimensions=gi,t}();function Pa(t,e){return t.getCoordSysModel()===e}function _u(t,e,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)xu(a[u])&&(i=a[u]);else for(var l in a)if(a.hasOwnProperty(l)&&xu(a[l])&&!n[f(a[l])]){i=a[l];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function xu(t){return t&&t.type!=="category"&&t.type!=="time"&&ky(t)}function Q_(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return n-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}const J_=j_;var ft=Math.PI,Dt=function(){function t(e,r){this.group=new Qe,this.opt=r,this.axisModel=e,q(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Qe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!Su[e]},t.prototype.add=function(e){Su[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var a=ul(r-e),i,o;return bn(a)?(o=n>0?"top":"bottom",i="center"):bn(a-ft)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ft?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,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}(),Su={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],u=[i[1],0],l=s[0]>u[0];o&&(At(s,s,o),At(u,u,o));var f=R({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new It({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Tr(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);O(h)&&(h=[h,h]),(O(v)||ne(v))&&(v=[v,v]);var d=jg(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];S([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0}
20,{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Hf(h[y],-p/2,-g/2,p,g,f.stroke,!0),x=m.r+m.offset,b=l?u:s;_.attr({rotation:m.rotate,x:b[0]+x*Math.cos(t.rotation),y:b[1]-x*Math.sin(t.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(t,e,r,n){var a=r0(r,n,e,t),i=a0(r,n,e,t);if(t0(e,i,a),n0(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Bc(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Fc(o)}},axisName:function(t,e,r,n){var a=Sr(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,l=e.axis.getExtent(),f=l[0]>l[1]?-1:1,c=[i==="start"?l[0]-f*u:i==="end"?l[1]+f*u:(l[0]+l[1])/2,bu(i)?t.labelOffset+o*u:0],h,v=e.get("nameRotate");v!=null&&(v=v*ft/180);var d;bu(i)?h=Dt.innerTextLayout(t.rotation,v??t.rotation,o):(h=e0(t.rotation,i,v||0,l),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.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 Ne({x:c[0],y:c[1],rotation:h.rotation,silent:Dt.isLabelSilent(e),style:Lt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Nl({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var x=Dt.makeAxisEventDataBase(e);x.targetType="axisName",x.name=a,X(_).eventData=x}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function e0(t,e,r,n){var a=ul(r-t),i,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return bn(a-ft/2)?(o=u?"bottom":"top",i="center"):bn(a-ft*1.5)?(o=u?"top":"bottom",i="center"):(o="middle",a<ft*1.5&&a>
20ft/2?i=u?"left":"right":i=u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function t0(t,e,r){if(!Ac(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var i=e[0],o=e[1],s=e[e.length-1],u=e[e.length-2],l=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(Me(i),Me(l)):wu(i,o)&&(n?(Me(o),Me(f)):(Me(i),Me(l))),a===!1?(Me(s),Me(c)):wu(u,s)&&(a?(Me(u),Me(h)):(Me(s),Me(c)))}}function Me(t){t&&(t.ignore=!0)}function wu(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=ju([]);return ol(a,a,-t.rotation),r.applyTransform(Va([],a,t.getLocalTransform())),n.applyTransform(Va([],a,e.getLocalTransform())),r.intersect(n)}}function bu(t){return t==="middle"||t==="center"}function Uc(t,e,r,n,a){for(var i=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(At(o,o,e),At(s,s,e));var f=new It({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Tr(f.shape,f.style.lineWidth),f.anid=a+"_"+t[u].tickValue,i.push(f)}return i}function r0(t,e,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),u=n.tickDirection*i.get("length"),l=a.getTicksCoords(),f=Uc(l,e.transform,u,q(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function n0(t,e,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),u=n*i.get("length"),l=q(s.getLineStyle(),q(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=Uc(o[f],e.transform,u,l,"minorticks_"+f),h=0;h<c.length;h++)t.add(c[h])}}function a0(t,e,r,n){var a=r.axis,i=Sr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),u=a.getViewLabels(),l=(Sr(n.labelRotate,o.get("rotate"))||0)*ft/180,f=Dt.innerTextLayout(n.rotation,l,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],v=Dt.isLabelSilent(r),d=r.get("triggerEvent");return S(u,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,x=o;if(c&&c[m]){var b=c[m];N(b)&&b.textStyle&&(x=new de(b.textStyle,o,r.ecModel))}var w=x.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(m),C=new Ne({x:T,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Lt(x,{text:y,align:x.getShallow("align",!0)||f.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,fill:U(w)?w(a.type==="category"?_:a.type==="value"?m+"":m,g):w})});if(C.anid="label_"+m,d){var D=Dt.makeAxisEventDataBase(r);D.targetType="axisLabel",D.value=_,D.tickIndex=g,a.type==="category"&&(D.dataIndex=m),X(C).eventData=D}e.add(C),C.updateTransform(),h.push(C),t.add(C),C.decomposeTransform()}),h}}const Yc=Dt;function i0(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return o0(r,t,e),r.seriesInvolved&&u0(r,t),r}function o0(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];S(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Rr(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var f=s.model,c=f.getModel("tooltip",n);if(S(s.getAxes(),we(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&S(d.baseAxes,we(p,v?"cross":!0,h)),v&&S(d.otherAxes,we(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",a),x=_.get("show");if(!(!x||x==="auto"&&!g&&!yi(_))){m==null&&(m=_.get("triggerTooltip")),_=g?s0(y,c,a,e,g,m):_;var b=_.get("snap"),w=Rr(y.model),T=m||b||y.type==="category",C=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:T,snap:b,useHandle:yi(_),seriesModels:[],linkGroup:null};l[w]=C,t.seriesInvolved=t.seriesInvolved||T;var D=l0(i,y);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[w]=C,A.mapper=i[D].mapper,C.linkGroup=A}}}})}function s0(t,e,r,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};S(s,function(h){u[h]=$(o.get(h))}),u.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),a==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!i){var c=u.lineStyle=o.get("crossStyle");c&&q(l,c.textStyle)}}return t.model.getModel("axisPointer",new de(u,r,n))}function u0(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||S(t.coordSysAxesInfo[Rr(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 l0(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Ea(i[n+"AxisId"],r.id)||Ea(i[n+"AxisIndex"],r.componentIndex)||Ea(i[n+"AxisName"],r.name))return a}}function Ea(t,e){return t==="all"||P(t)&&oe(t,e)>=0||t===e}function f0(t){var e=co(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=yi(r);i==null&&(a.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function co(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Rr(t)]}function c0(t){var e=co(t);return e&&e.axisPointerModel}function yi(t){return!!t.get(["handle","show"])}
20function Rr(t){return t.type+"||"+t.id}var Tu={},v0=function(t){H(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,a,i){this.axisPointerClass&&f0(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=c0(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Tu[r]=n},e.getAxisPointerClass=function(r){return r&&Tu[r]},e.type="axis",e}(et);const Xc=v0;var _i=j();function h0(t,e,r,n){var a=r.axis;
20if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var f=s.length,c=_i(t).splitAreaColors,h=V(),v=0;if(c)for(var d=0;d<l.length;d++){var p=c.get(l[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(l[0].coord),m=o.getAreaStyle();s=P(s)?s:[s];for(var d=1;d<l.length;d++){var y=a.toGlobalCoord(l[d].coord),_=void 0,x=void 0,b=void 0,w=void 0;a.isHorizontal()?(_=g,x=u.y,b=y-_,w=u.height,g=_+b):(_=u.x,x=g,b=u.width,w=y-x,g=x+w);var T=l[d-1].tickValue;T!=null&&h.set(T,v),e.add(new pe({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:b,height:w},style:q({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}_i(t).splitAreaColors=h}}}function d0(t){_i(t).splitAreaColors=null}var p0=["axisLine","axisTickLabel","axisName"],g0=["splitArea","splitLine","minorSplitLine"],$c=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Qe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),u=mi(s,r),l=new Yc(r,R({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(hi(h[v].getOtherAxis(r.axis).scale))return!0;return!1}},u));S(p0,l.add,l),this._axisGroup.add(l.getGroup()),S(g0,function(c){r.get([c,"show"])&&m0[c](this,this._axisGroup,r,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||Rl(o,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)}},e.prototype.remove=function(){d0(this)},e.type="cartesianAxis",e}(Xc),m0={splitLine:function(t,e,r,n){var a=r.axis;
20if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=P(s)?s:[s];for(var u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=0,c=a.getTicksCoords({tickModel:i}),h=[],v=[],d=o.getLineStyle(),p=0;p<c.length;p++){var g=a.toGlobalCoord(c[p].coord);l?(h[0]=g,h[1]=u.y,v[0]=g,v[1]=u.y+u.height):(h[0]=u.x,h[1]=g,v[0]=u.x+u.width,v[1]=g);var m=f++%s.length,y=c[p].tickValue,_=new It({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:q({stroke:s[m]},d),silent:!0});Tr(_.shape,d.lineWidth),e.add(_)}}},minorSplitLine:function(t,e,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),u=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<l.length;v++)for(var d=0;d<l[v].length;d++){var p=a.toGlobalCoord(l[v][d].coord);u?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new It({anid:"minor_line_"+l[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Tr(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,n){h0(t,e,r,n)}},Zc=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}($c),y0=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zc.type,r}return e.type="yAxis",e}($c),_0=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new pe({shape:r.coordinateSystem.getRect(),style:q({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(et),Mu={offset:0};function x0(t){t.registerComponentView(_0),t.registerComponentModel(V_),t.registerCoordinateSystem("cartesian2d",J_),du(t,"x",pi,Mu),du(t,"y",pi,Mu),t.registerComponentView(Zc),t.registerComponentView(y0),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Tt=j(),Cu=$,ka=ee,S0=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,i,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Qe,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);else{var h=we(Du,r,c);this.updatePointerEl(s,l,h),this.updateLabelEl(s,l,h,r)}Iu(s,r,!0),this._renderHandle(i)}},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"),a=e.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var u=co(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=Tt(e).pointerEl=new yd[i.type](Cu(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=Tt(e).labelEl=new Ne(Cu(r.label));e.add(i),Au(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=Tt(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=Tt(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),Au(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ol(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){zv(l.event)},onmousedown:ka(this._onHandleDragMove,this,0,0),drift:ka(this._onHandleDragMove,this),ondragend:ka(this._onHandleDragEnd,this)}),n.add(a)),Iu(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");P(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,Rf(this,"_doDispat
20chAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Du(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Ra(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Ra(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Ra(a)),Tt(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,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ii(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 Du(t,e,r,n){Kc(Tt(r).lastProp,n)||(Tt(r).lastProp=n,e?Fe(r,n,t):(r.stopAnimation(),r.attr(n)))}function Kc(t,e){if(N(t)&&N(e)){var r=!0;return S(e,function(n,a){r=r&&Kc(t[a],n)}),!!r}else return t===e}function Au(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Ra(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Iu(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const w0=S0;function b0(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 T0(t,e,r,n,a){var i=r.get("value"),o=qc(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Hi(s.get("padding")||0),l=s.getFont(),f=il(o,l),c=a.position,h=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),M0(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Lt(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function M0(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function qc(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:uo(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};S(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,c=l&&l.getDataParams(f);c&&s.seriesData.push(c)}),O(o)?i=o.replace("{value}",i):U(o)&&(i=o(s))}return i}function jc(t,e,r){var n=Hv();return ol(n,n,r.rotation),Gv(n,n,r.position),Oi([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function C0(t,e,r,n,a,i){var o=Yc.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),T0(e,n,a,i,{position:jc(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function D0(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function A0(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var I0=function(t){H(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,u=s.grid,l=i.get("type"),f=Lu(u,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var h=b0(i),v=L0[l](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=mi(u.model,a);C0(n,r,d,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=mi(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=jc(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Lu(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(u[1],c[f]),c[f]=Math.max(u[0],c[f]);var h=(l[1]+l[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e}(w0);function Lu(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var L0={line:function(t,e,r){var n=D0([e,r[0]],[e,r[1]],Pu(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:A0([e-n/2,r[0]],[n,a],Pu(t))}}};function Pu(t){return t.dim==="x"?0:1}const P0=I0;var E0=function(t){H(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,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}(Z);const k0=E0;var Ke=j(),R0=S;function Qc(t,e,r){if(!Q.node){var n=e.getZr();Ke(n).records||(Ke(n).records={}),O0(n,e);var a=Ke(n).records[t]||(Ke(n).records[t]={});a.handler=r}}function O0(t,e){if(Ke(t).initialized)return;Ke(t).initialized=!0,r("click",we(Eu,"click")),r("mousemove",we(Eu,"mousemove")),r("globalout",N0);function r(n,a){t.on(n,function(i){var o=F0(e);R0(Ke(t).records,function(s){s&&a(s,i,o.dispatchAction)}),B0(o.pendings,e)})}}function B0(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function N0(t,e,r){t.handler("leave",null,r)}function Eu(t,e,r,n){e.handler(t,r,n)}function F0(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function xi(t,e){if(!Q.node){var r=e.getZr(),n=(Ke(r).records||{})[t];
20n&&(Ke(r).records[t]=null)}}var V0=function(t){H(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,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Qc("axisPointer",a,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(r,n){xi("axisPointer",n)},e.prototype.dispose=function(r,n){xi("axisPointer",n)},e.type="axisPointer",e}(et);const z0=V0;function Jc(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Vr(i,t);if(o==null||o<0||P(o))return{point:[]};var s=i.getItemGraphicEl(o),u=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),c=f.dim,h=l.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(p)||[]}else r=u.dataToPoint(i.getValues(z(u.dimensions,function(m){return i.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 ku=j();function G0(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||ee(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){xn(a)&&(a=Jc({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var u=xn(a),l=i.axesInfo,f=s.axesInfo,c=n==="leave"||xn(a),h={},v={},d={list:[],map:{}},p={showPointer:we(W0,v),showTooltip:we(U0,d)};S(s.coordSysMap,function(m,y){var _=u||m.containPoint(a);S(s.coordSysAxesInfo[y],function(x,b){var w=x.axis,T=Z0(l,x);if(!c&&_&&(!l||T)){var C=T&&T.value;C==null&&!u&&(C=w.pointToData(a)),C!=null&&Ru(x,C,p,!1,h)}})});var g={};return S(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&S(_.axesInfo,function(x,b){var w=v[b];if(x!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Ou(x),Ou(m)))),g[m.key]=T}})}),S(g,function(m,y){Ru(f[y],m,p,!0,h)}),Y0(v,f,h),X0(d,a,t,o),$0(f,o,r),h}}function Ru(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=H0(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&a.seriesIndex==null&&R(a,s[0]),!n&&t.snap&&i.containData(u)&&u!=null&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function H0(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return S(e.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),c,h;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,t,r);h=v.dataIndices,c=v.nestestValue}else{if(h=u.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!h.length)return;c=u.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=t-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),S(h,function(g){i.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}
20))}}),{payloadBatch:i,snapToValue:a}}function W0(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function U0(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var u=e.coordSys.model,l=Rr(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Y0(t,e,r){var n=r.axesInfo=[];S(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function X0(t,e,r,n){if(xn(e)||!t.list.length){n({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function $0(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=ku(n)[a]||{},o=ku(n)[a]={};S(t,function(l,f){var c=l.axisPointerModel.option;c.status==="show"&&S(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],u=[];S(i,function(l,f){!o[f]&&u.push(l)}),S(o,function(l,f){!i[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Z0(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 Ou(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 xn(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function ev(t){Xc.registerAxisPointerClass("CartesianAxisPointer",P0),t.registerComponentModel(k0),t.registerComponentView(z0),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!P(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=i0(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},G0)}function Yx(t){En(x0),En(ev)}var K0=function(t){H(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}(Z);const q0=K0;function tv(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function rv(t){if(Q.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var nv=rv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),j0=rv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function av(t,e){if(!t)return e;e=Ql(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function Q0(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var J0=av(j0,"transition"),vo=av(nv,"transform"),ex="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Q.transform3dSupported?"will-change:transform;":"");
20function tx(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function rx(t,e,r){if(!O(r)||r==="inside")return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=Dr(e);var i=tx(r),o=Math.max(Math.round(a)*1.5,6),s="",u=vo+":",l;oe(["left","right"],i)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var f=l*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function nx(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=Q.transformSupported?","+vo+n:",left"+n+",top"+n),J0+":"+a}function Bu(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Q.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Q.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+vo+":"+o+";":[["top",0],["left",0],[nv,o]]}function ax(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),r&&e.push("line-height:"+Math.round(r*3/2)+"px");var a=t.get("textShadowColor"),i=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),S(["decoration","align"],function(u){var l=t.get(u);l&&e.push("text-"+u+":"+l)}),e.join(";")}function ix(t,e,r){var n=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),u=t.get("shadowOffsetX"),l=t.get("shadowOffsetY"),f=t.getModel("textStyle"),c=Pf(t,"html"),h=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&a&&n.push(nx(a,r)),i&&n.push("background-color:"+i),S(["width","color","radius"],function(v){var d="border-"+v,p=Ql(d),g=t.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(ax(f)),c!=null&&n.push("padding:"+Hi(c).join("px ")+"px"),n.join(";")+";"}function Nu(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&Yv(t,o,document.body,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var ox=function(){function t(e,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Q.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;Nu(this._styleCoord,i,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();Wv(f,u,!0),l.dispatch("mousemove",u)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var r=this._container,n=Q0(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=ex+ix(e,!this._firstShow,this._longHide)+Bu(i[0],i[1],!0)+("border-color:"+Dr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(O(i)&&n.get("trigger")==="item"&&!tv(n)&&(s=rx(n,a,i)),O(e))o.innerHTML=e+s;else if(e){o.innerHTML="",P(e)||(e=[e]);for(var u=0;u<e.length;u++)Uv(e[u])&&e[u].parentNode!==o&&o.appendChild(e[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,r){var n=this._styleCoord;if(Nu(n,this._zr,this._appendToBody,e,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=Bu(n[0],n[1]);S(i,function(o){a[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",Q.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(ee(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const sx=ox;var ux=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Vu(this._styleCoord,this._zr,e.getW
20idth()/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,a,i){var o=this;N(e)&&W(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ne({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Pf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),S(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),S(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=Fu(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 a=this._styleCoord;Vu(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=ut(i.borderWidth||0),s=Fu(i);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(ee(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function ut(t){return Math.max(0,t)}function Fu(t){var e=ut(t.shadowBlur||0),r=ut(t.shadowOffsetX||0),n=ut(t.shadowOffsetY||0);return{left:ut(e-r),right:ut(e+r),top:ut(e-n),bottom:ut(e+n)}}function Vu(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const lx=ux;var fx=new pe({shape:{x:-1,y:-1,width:2,height:2}}),cx=function(t){H(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(!(Q.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=_h(a.get("renderMode"));this._tooltipContent=i==="richText"?new lx(n):new sx(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(r,n,a){if(!(Q.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Rf(this,"_updatePosition",50,"fixRate"):ii(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Qc("itemTooltip",this._api,ee(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Q.node||!a.getDom())){var o=zu(i,a);this._ticket="";var s=i.dataByCoordSys,u=px(i,n,a);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=fx;
20f.x=i.x,f.y=i.y,f.update(),X(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=Jc(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(zu(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),c=lr([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){this._lastDataByCoordSys=null;var s,u;vr(a,function(l){if(X(l).dataIndex!=null)return s=l,!0;if(X(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(r,s,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=ee(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=lr([n.tooltipOption],i),u=this._renderMode,l=[],f=Pr("section",{blocks:[],noHeader:!0}),c=[],h=new va;S(r,function(y){S(y.dataByAxis,function(_){var x=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!x||b==null)){var w=qc(b,x.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=Pr("section",{header:w,noHeader:!Nr(w),sortBlocks:!0,blocks:[]});f.blocks.push(T),S(_.seriesDataIndices,function(C){var D=a.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=uo(x.axis,{value:b}),M.axisValueLabel=w,M.marker=h.makeTooltipMarker("item",Dr(M.color),u);var L=vs(D.formatTooltip(A,!0,null)),I=L.frag;if(I){var E=lr([D],i).get("valueFormatter");T.blocks.push(E?R({valueFormatter:E},I):I)}L.text&&c.push(L.text),l.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=ys(f,h,u,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=u==="richText"?` 21 22`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,m,l,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=X(n),s=o.seriesIndex,u=i.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,h=l.getData(c),v=this._renderMode,d=r.positionDefault,p=lr([h.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=l.getDataParams(f,c),y=new va;m.marker=y.makeTooltipMarker("item",Dr(m.color),v);var _=vs(l.formatTooltip(f,!1,c)),x=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?ys(b?R({valueFormatter:b},w):w,y,v,x,i.get("useUTC"),p.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=X(n),o=i.tooltipConfig,s=o.option||{};if(O(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&l.push(f),l.push({formatter:s.content});var c=r.positionDefault,h=lr(l,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",p=new va;this._showOrMove(h,function(){var g=$(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,r.offsetX,r.offsetY,r.position,n,p)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),p=d.color;if(h)if(O(h)){var g=r.ecModel.get("useUTC"),m=P(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=zn(m.axisValue,v,g)),v=Jl(v,a,!0)}else if(U(h)){var _=ee(function(x,b){x===this._ticket&&(c.setContent(b,f,r,p,u),this._updatePosition(r,u,o,s,c,a,l))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,r,p,u),c.show(r,p),this._updatePosition(r,u,o,s,c,a,l)}},e.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||P(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};
22if(!P(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),U(n)&&(n=n([a,i],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),P(n))a=fe(n[0],l),i=fe(n[1],f);else if(N(n)){var p=n;p.width=c[0],p.height=c[1];var g=Wi(p,{width:l,height:f});a=g.x,i=g.y,h=null,v=null}else if(O(n)&&u){var m=dx(n,d,c,r.get("borderWidth"));a=m[0],i=m[1]}else{var m=vx(a,i,o,l,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=Gu(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=Gu(v)?c[1]/2:v==="bottom"?c[1]:0),tv(r)){var m=hx(a,i,o,l,f);a=m[0],i=m[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&S(a,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},c=f.dataByAxis||[];o=o&&l.length===c.length,o&&S(l,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&S(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&S(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],x=i[y];_&&x&&x.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){Q.node||!n.getDom()||(ii(this,"_updatePosition"),this._tooltipContent.dispose(),xi("itemTooltip",n))},e.type="tooltip",e}(et);function lr(t,e,r){var n=e.ecModel,a;r?(a=new de(r,n,n),a=new de(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof de&&(o=o.get("tooltip",!0)),O(o)&&(o={formatter:o}),o&&(a=new de(o,a,n)))}return a}
22function zu(t,e){return t.dispatchAction||ee(e.dispatchAction,e)}function vx(t,e,r,n,a,i,o){var s=r.getSize(),u=s[0],l=s[1];return i!=null&&(t+u+i+2>n?t-=u+i:t+=i),o!=null&&(e+l+o>a?e-=l+o:e+=o),[t,e]}function hx(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function dx(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-a/2,u=e.y+f/2-i/2;break;case"top":s=e.x+l/2-a/2,u=e.y-i-o;break;case"bottom":s=e.x+l/2-a/2,u=e.y+f+o;break;case"left":s=e.x-a-o,u=e.y+f/2-i/2;break;case"right":s=e.x+l+o,u=e.y+f/2-i/2}return[s,u]}function Gu(t){return t==="center"||t==="middle"}function px(t,e,r){var n=Ci(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=zr(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=X(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u)return{componentMainType:a,componentIndex:o.componentIndex,el:u}}}}const gx=cx;function Xx(t){En(ev),t.registerComponentModel(q0),t.registerComponentView(gx),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},vt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},vt)}var mx=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Z),yx=function(t){H(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,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=J(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ne({style:Lt(
22o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new Ne({style:Lt(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Zo(d,"_"+r.get("target"))}),p&&v.on("click",function(){Zo(p,"_"+r.get("subtarget"))}),X(f).eventData=X(v).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Wi(y,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var x={align:u,verticalAlign:l};f.setStyle(x),v.setStyle(x),m=i.getBoundingRect();var b=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var T=new pe({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(et);function $x(t){t.registerComponentModel(mx),t.registerComponentView(yx)}var Hu={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},_x=function(){function t(e){var r=this._condVal=O(e)?new RegExp(e):Xv(e)?e:null;if(r==null){var n="";W(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return O(r)?this._condVal.test(e):ne(r)?this._condVal.test(e+""):!1},t}(),xx=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Sx=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},t}(),wx=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},t}(),bx=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Tx=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},t}();function ho(t,e){if(t===!0||t===!1){var r=new xx;return r.value=t,r}var n="";return iv(t)||W(n),t.and?Wu("and",t,e):t.or?Wu("or",t,e):t.not?Mx(t,e):Cx(t,e)}function Wu(t,e,r){var n=e[t],a="";P(n)||W(a),n.length||W(a);var i=t==="and"?new Sx:new wx;return i.children=z(n,function(o){return ho(o,r)}),i.children.length||W(a),i}function Mx(t,e){var r=t.not,n="";iv(r)||W(n);var a=new bx;return a.child=ho(r,e),a.child||W(n),a}function Cx(t,e){for(var r="",n=e.prepareGetValue(t),a=[],i=be(t),o=t.parser,s=o?_f(o):null,u=0;u<i.length;u++){var l=i[u];if(!(l==="parser"||e.valueGetterAttrMap.get(l))){var f=je(Hu,l)?Hu[l]:l,c=t[l],h=s?s(c):c,v=Gp(f,h)||f==="reg"&&new _x(h);v||W(r),a.push(v)}}a.length||W(r);var d=new Tx;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=a,d}function iv(t){return N(t)&&!Or(t)}var Dx=function(){function t(e,r){this._cond=ho(e,r)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function Ax(t,e){return new Dx(t,e)}var Ix={type:"echarts:filter",transform:function(t){for(var e=t.upstream,r,n=Ax(t.config,{valueGetterAttrMap:V({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;je(s,"dimension")||W(u);var f=e.getDimensionInfo(l);return f||W(u),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)r=e.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},Lx={type:"echarts:sort",transform:function(t){var e=t.upstream,r=t.config,n="",a=ae(r);a.length||W(n);var i=[];S(a,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&W(n),h!=="asc"&&h!=="desc"&&W(n),d&&d!=="min"&&d!=="max"){var p="";W(p)}if(h!=="asc"&&h!=="desc"){var g="";W(g)}var m=e.getDimensionInfo(c);m||W(n);var y=v?_f(v):null;v&&!y&&W(n),i.push({dimIdx:m.index,parser:y,comparator:new Sf(h,d)})});var o=e.sourceFormat;o!==ge&&o!==Ge&&W(n);for(var s=[],u=0,l=e.count();u<l;u++)s.push(e.getRawDataItem(u));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],d=e.retrieveValueFromItem(f,v.dimIdx),p=e.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Zx(t){t.registerTransform(Ix),t.registerTransform(Lx)}var Px=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new Mf(this),gs(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),gs(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ue},e}(Z),Ex=function(t){H(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(et);function Kx(t){t.registerComponentModel(Px),t.registerComponentView(Ex)}function Uu(t){return P(t[0])}function Yu(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var u=r[s].many;
22if(u.length<=1)if(s)s=0;else return r;var i=u.length,l=Math.ceil(i/2);r[a].many=u.slice(l,i),r[s].many=u.slice(0,l),s++}return r}var kx={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var a=jv(t.path);a.setStyle("opacity",r),e.push(a)}return e},split:null};function Oa(t,e,r,n,a,i){if(!t.length||!e.length)return;var o=Nn("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Uu(t)&&(l=t,f=e),Uu(e)&&(l=e,f=t);function c(m,y,_,x,b){var w=m.many,T=m.one;if(w.length===1&&!b){var C=y?w[0]:T,D=y?T:w[0];if($v(C))c({many:[C],one:D},!0,_,x,!0);else{var A=s?q({delay:s(_,x)},u):u;Zv(C,D,A),i(C,D,C,D,A)}}else for(var M=q({dividePath:kx[r],individualDelay:s&&function(te,B,G,Y){return s(te+_,x)}},u),L=y?Kv(w,T,M):qv(T,w,M),I=L.fromIndividuals,E=L.toIndividuals,k=I.length,F=0;F<k;F++){var A=s?q({delay:s(F,k)},u):u;i(I[F],E[F],y?w[F]:m.one,y?m.one:w[F],A)}}for(var h=l?l===t:t.length>e.length,v=l?Yu(f,l):Yu(h?e:t,[h?t:e]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function bt(t){if(!t)return[];if(P(t)){for(var e=[],r=0;r<t.length;r++)e.push(bt(t[r]));return e}var n=[];return t.traverse(function(a){a instanceof me&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var ov=1e4,Rx=j();function Ox(t){for(var e=t.dimensions,r=0;r<e.length;r++){var n=t.getDimensionInfo(e[r]);if(n&&n.otherDims.itemGroupId===0)return e[r]}}function Xu(t){var e=[];return S(t,function(r){var n=r.data;if(!(n.count()>ov))for(var a=n.getIndices(),i=Ox(n),o=0;o<a.length;o++)e.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||i,divide:r.divide,dataIndex:o})}),e}function Ba(t,e,r){t.traverse(function(n){n instanceof me&&Ve(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function Na(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Vt(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function Bx(t,e,r){var n=Nn("update",r,e);n&&t.traverse(function(a){if(a instanceof Qv){var i=nd(a);i&&a.animateFrom({style:i},n)}})}function Nx(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var a=t[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function sv(t,e,r){var n=Xu(t),a=Xu(e);function i(m,y,_,x,b){(_||m)&&y.animateFrom({style:_&&_!==m?R(R({},_.style),m.style):m.style},b)}function o(m){for(var y=0;y<m.length;y++)if(m[y].dim)return m[y].dim}var s=o(n),u=o(a),l=!1;function f(m,y){return function(_){var x=_.data,b=_.dataIndex;if(y)return x.getId(b);var w=_.dataGroupId,T=m?s||u:u||s,C=T&&x.getDimensionInfo(T),D=C&&C.ordinalMeta;if(C){var A=x.get(C.name,b);return D&&D.categories[A]||A+""}var M=x.getRawDataItem(b);return M&&M.groupId?M.groupId+"":w||x.getId(b)}}var c=Nx(n,a),h={};if(!c)for(var v=0;v<a.length;v++){var d=a[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(h[p.id]=!0)}function g(m,y){var _=n[y],x=a[m],b=x.data.hostModel,w=_.data.getItemGraphicEl(_.dataIndex),T=x.data.getItemGraphicEl(x.dataIndex);if(w===T){T&&Bx(T,x.dataIndex,b);return}w&&h[w.id]||T&&(Vt(T),w?(Vt(w),Na(w),l=!0,Oa(bt(w),bt(T),x.divide,b,m,i)):Ba(T,b,m))}new ci(n,a,f(!0,c),f(!1,c),null,"multiple").update(g).updateManyToOne(function(m,y){var _=a[m],x=_.data,b=x.hostModel,w=x.getItemGraphicEl(_.dataIndex),T=le(z(y,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==w&&!h[C.id]});w&&(Vt(w),T.length?(S(T,function(C){Vt(C),Na(C)}),l=!0,Oa(bt(T),bt(w),_.divide,b,m,i)):Ba(w,b,_.dataIndex))}).updateOneToMany(function(m,y){var _=n[y],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&h[x.id])){var b=le(z(m,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==x}),w=a[m[0]].data.hostModel;b.length&&(S(b,function(T){return Vt(T)}),x?(Vt(x),Na(x),l=!0,Oa(bt(x),bt(b),_.divide,w,m[0],i)):S(b,function(T){return Ba(T,w,m[0])}))}}).updateManyToMany(function(m,y){new ci(y,m,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}
22).update(function(_,x){g(m[_],y[x])}).execute()}).execute(),l&&S(e,function(m){var y=m.data,_=y.hostModel,x=_&&r.getViewOfSeriesModel(_),b=Nn("update",_,0);x&&_.isAnimationEnabled()&&b&&b.duration>0&&x.group.traverse(function(w){w instanceof me&&!w.animators.length&&w.animateFrom({style:{opacity:0}},b)})})}function $u(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Zu(t){return P(t)?t.sort().join(","):t}function lt(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Fx(t,e){var r=V(),n=V(),a=V();return S(t.oldSeries,function(i,o){var s=t.oldDataGroupIds[o],u=t.oldData[o],l=$u(i),f=Zu(l);n.set(f,{dataGroupId:s,data:u}),P(l)&&S(l,function(c){a.set(c,{key:f,dataGroupId:s,data:u})})}),S(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),u=$u(i),l=Zu(u),f=n.get(l);if(f)r.set(l,{oldSeries:[{dataGroupId:f.dataGroupId,divide:lt(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:lt(s),data:s}]});else if(P(u)){var c=[];S(u,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:lt(p.data),data:p.data})}),c.length&&r.set(l,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:lt(s)}]})}else{var h=a.get(u);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:lt(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:lt(s)})}}}}),r}function Ku(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function Vx(t,e,r,n){var a=[],i=[];S(ae(t.from),function(o){var s=Ku(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:lt(e.oldData[s]),dim:o.dimension})}),S(ae(t.to),function(o){var s=Ku(r.updatedSeries,o);if(s>=0){var u=r.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:u,divide:lt(u),dim:o.dimension})}}),a.length>0&&i.length>0&&sv(a,i,n)}function qx(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){S(ae(n.seriesTransition),function(a){S(ae(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][yn]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var a=Rx(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)S(ae(i),function(v){Vx(v,a,n,r)});else{var o=Fx(a,n);S(o.keys(),function(v){var d=o.get(v);sv(d.oldSeries,d.newSeries,r)})}S(n.updatedSeries,function(v){v[yn]&&(v[yn]=!1)})}for(var s=e.getSeries(),u=a.oldSeries=[],l=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<ov&&(u.push(s[c]),l.push(s[c].get("dataGroupId")),f.push(h))}})}export{$x as a,Xx as b,Yx as c,Kx as d,Zx as e,Ux as f,Hx as g,qx as h,Gx as i,Wx as j,Ji as t,En as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.