1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import{d as JO,ag as dM,Y as $O,K as ph,r as fM,L as QO,aw as eR,l as tR,a as An,ax as nR,ay as iR,o as rR,c as oR,Z as aR,au as sR,a0 as lR,az as gM,_ as uR,__tla as hR}from"./index-bd9277a1.js";let yM,ug,cR=Promise.all([(()=>{try{return hR}catch{}})()]).then(async()=>{var dh=function(n,t){return dh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},dh(n,t)};function V(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}dh(n,t),n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var vM=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Gi=new function(){this.browser=new vM,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gi.wxa=!0,Gi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Gi.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Gi.node=!0,Gi.svgSupported=!0):function(n,t){var e=t.browser,i=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(e.firefox=!0,e.version=i[1]),r&&(e.ie=!0,e.version=r[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,Gi);const we=Gi;var Hi="12px sans-serif",Fo,hg,mM=function(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e<n.length;e++){var i=String.fromCharCode(e+32),r=(n.charCodeAt(e)-20)/100;t[i]=r}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),jn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(n,t){if(!Fo){var e=jn.createCanvas();Fo=e&&e.getContext("2d")}if(Fo)return hg!==t&&(hg=Fo.font=t||Hi),Fo.measureText(n);n=n||"";var i=/(\d+)px/.exec(t=t||Hi),r=i&&+i[1]||12,o=0;if(t.indexOf("mono")>=0)o=r*n.length;else for(var a=0;a<n.length;a++){var s=mM[n[a]];o+=s==null?r:s*r}return{width:o}},loadImage:function(n,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=n,i}};function cg(n){for(var t in jn)n[t]&&(jn[t]=n[t])}var pg=gn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,t){return n["[object "+t+"]"]=!0,n},{}),dg=gn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,t){return n["[object "+t+"Array]"]=!0,n},{}),Fr=Object.prototype.toString,bs=Array.prototype,xM=bs.forEach,_M=bs.filter,fh=bs.slice,wM=bs.map,fg=(function(){}).constructor,Ss=fg?fg.prototype:null,gh="__proto__",bM=2311;function yh(){return bM++}function Wi(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];typeof console<"u"&&console.error.apply(console,n)}function oe(n){if(n==null||typeof n!="object")return n;var t=n,e=Fr.call(n);if(e==="[object Array]"){if(!Hr(n)){t=[];for(var i=0,r=n.length;i<r;i++)t[i]=oe(n[i])}}else if(dg[e]){if(!Hr(n)){var o=n.constructor;if(o.from)t=o.from(n);else for(t=new o(n.length),i=0,r=n.length;i<r;i++)t[i]=n[i]}}else if(!pg[e]&&!Hr(n)&&!vi(n))for(var a in t={},n)n.hasOwnProperty(a)&&a!==gh&&(t[a]=oe(n[a]));return t}function pe(n,t,e){if(!ee(t)||!ee(n))return e?oe(t):n;for(var i in t)if(t.hasOwnProperty(i)&&i!==gh){var r=n[i],o=t[i];!ee(o)||!ee(r)||Y(o)||Y(r)||vi(o)||vi(r)||mh(o)||mh(r)||Hr(o)||Hr(r)?!e&&i in n||(n[i]=oe(t[i])):pe(r,o,e)}return n}function gg(n,t){for(var e=n[0],i=1,r=n.length;i<r;i++)e=pe(e,n[i],t);return e}function G(n,t){if(Object.assign)Object.assign(n,t);else for(var e in t)t.hasOwnProperty(e)&&e!==gh&&(n[e]=t[e]);return n}function le(n,t,e){for(var i=Oe(t),r=0;r<i.length;r++){var o=i[r];(e?t[o]!=null:n[o]==null)&&(n[o]=t[o])}return n}var SM=jn.createCanvas;function Me(n,t){if(n){if(n.indexOf)return n.indexOf(t);for(var e=0,i=n.length;e<i;e++)if(n[e]===t)return e}return-1}function vh(n,t){var e=n.prototype;function i(){}for(var r in i.prototype=t.prototype,n.prototype=new i,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);n.prototype.constructor=n,n.superClass=t}function ct(n,t,e){if(n="prototype"in n?n.prototype:n,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];o!=="constructor"&&(e?t[o]!=null:n[o]==null)&&(n[o]=t[o])}else le(n,t,e)}function mt(n){return!!n&&typeof n!="string"&&typeof n.length=="number"}function A(n,t,e){if(n&&t)if(n.forEach&&n.forEach===xM)n.forEach(t,e);else if(n.length===+n.length)for(var i=0,r=n.length;i<r;i++)t.call(e,n[i],i,n);else for(var o in n)n.hasOwnProperty(o)&&t.call(e,n[o],o,n)}function X(n,t,e){if(!n)return[];if(!t)return Ms(n);if(n.map&&n.map===wM)return n.map(t,e);for(var i=[],r=0,o=n.length;r<o;r++)i.push(t.call(e,n[r],r,n));return i}function gn(n,t,e,i){if(n&&t){for(var r=0,o=n.length;r<o;r++)e=t.call(i,e,n[r],r,n);return e}}function We(n,t,e){if(!n)return[];if(!t)return Ms(n);if(n.filter&&n.filter===_M)return n.filter(t,e);for(var i=[],r=0,o=n.length;r<o;r++)t.call(e,n[r],r,n)&&i.push(n[r]);return i}function yg(n,t,e){if(n&&t){for(var i=0,r=n.length;i<r;i++)if(t.call(e,n[i],i,n))return n[i]}}function Oe(n){if(!n)return[];if(Object.keys)return Object.keys(n);var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t}var Q=Ss&&ae(Ss.bind)?Ss.call.bind(Ss.bind):function(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return n.apply(t,e.concat(fh.call(arguments)))}};function xe(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return n.apply(this,t.concat(fh.call(arguments)))}}function Y(n){return Array.isArray?Array.isArray(n):Fr.call(n)==="[object Array]"}function ae(n){return typeof n=="function"}function j(n){return typeof n=="string"}function Go(n){return Fr.call(n)==="[object String]"}function Re(n){return typeof n=="number"}function ee(n){var t=typeof n;return t==="function"||!!n&&t==="object"}function mh(n){return!!pg[Fr.call(n)]}function pt(n){return!!dg[Fr.call(n)]}function vi(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Ho(n){return n.colorStops!=null}function vg(n){return n.image!=null}function mg(n){return Fr.call(n)==="[object RegExp]"}function Gr(n){return n!=n}function Yt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var e=0,i=n.length;e<i;e++)if(n[e]!=null)return n[e]}function fe(n,t){return n??t}function mi(n,t,e){return n??t??e}function Ms(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return fh.apply(n,t)}function xh(n){if(typeof n=="number")return[n,n,n,n];var t=n.length;return t===2?[n[0],n[1],n[0],n[1]]:t===3?[n[0],n[1],n[2],n[1]]:n}function ue(n,t){if(!n)throw new Error(t)}function Xt(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var xg="__ec_primitive__";function Wo(n){n[xg]=!0}function Hr(n){return n[xg]}var MM=function(){function n(){this.data={}}return n.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},n.prototype.has=function(t){return this.data.hasOwnProperty(t)},n.prototype.get=function(t){return this.data[t]},n.prototype.set=function(t,e){return this.data[t]=e,this},n.prototype.keys=function(){return Oe(this.data)},n.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},n}(),_g=typeof Map=="function",wg=function(){function n(t){var e=Y(t);this.data=_g?new Map:new MM;var i=this;function r(o,a){e?i.set(o,a):i.set(a,o)}t instanceof n?t.each(r):t&&A(t,r)}return n.prototype.hasKey=function(t){return this.data.has(t)},n.prototype.get=function(t){return this.data.get(t)},n.prototype.set=function(t,e){return this.data.set(t,e),e},n.prototype.each=function(t,e){this.data.forEach(function(i,r){t.call(e,i,r)})},n.prototype.keys=function(){var t=this.data.keys();return _g?Array.from(t):t},n.prototype.removeKey=function(t){this.data.delete(t)},n}();function te(n){return new wg(n)}function _h(n,t){for(var e=new n.constructor(n.length+t.length),i=0;i<n.length;i++)e[i]=n[i];var r=n.length;for(i=0;i<t.length;i++)e[i+r]=t[i];return e}function Yo(n,t){var e;if(Object.create)e=Object.create(n);else{var i=function(){};i.prototype=n,e=new i}return t&&G(e,t),e}function wh(n){var t=n.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ut(n,t){return n.hasOwnProperty(t)}function st(){}var bg=180/Math.PI;const TM=Object.freeze(Object.defineProperty({__proto__:null,HashMap:wg,RADIAN_TO_DEGREE:bg,assert:ue,bind:Q,clone:oe,concatArray:_h,createCanvas:SM,createHashMap:te,createObject:Yo,curry:xe,defaults:le,disableUserSelect:wh,each:A,eqNaN:Gr,extend:G,filter:We,find:yg,guid:yh,hasOwn:Ut,indexOf:Me,inherits:vh,isArray:Y,isArrayLike:mt,isBuiltInObject:mh,isDom:vi,isFunction:ae,isGradientObject:Ho,isImagePatternObject:vg,isNumber:Re,isObject:ee,isPrimitive:Hr,isRegExp:mg,isString:j,isStringSafe:Go,isTypedArray:pt,keys:Oe,logError:Wi,map:X,merge:pe,mergeAll:gg,mixin:ct,noop:st,normalizeCssArray:xh,reduce:gn,retrieve:Yt,retrieve2:fe,retrieve3:mi,setAsPrimitive:Wo,slice:Ms,trim:Xt},Symbol.toStringTag,{value:"Module"}));function Yi(n,t){return n==null&&(n=0),t==null&&(t=0),[n,t]}function Sg(n,t){return n[0]=t[0],n[1]=t[1],n}function Mg(n){return[n[0],n[1]]}function bh(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function Tg(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function Sh(n){return Math.sqrt(Mh(n))}var IM=Sh;function Mh(n){return n[0]*n[0]+n[1]*n[1]}var CM=Mh;function Ts(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function Ig(n,t){var e=Sh(t);return e===0?(n[0]=0,n[1]=0):(n[0]=t[0]/e,n[1]=t[1]/e),n}function Is(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var Cs=Is;function Cg(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])}var Xi=Cg;function As(n,t,e,i){return n[0]=t[0]+i*(e[0]-t[0]),n[1]=t[1]+i*(e[1]-t[1]),n}function ot(n,t,e){var i=t[0],r=t[1];return n[0]=e[0]*i+e[2]*r+e[4],n[1]=e[1]*i+e[3]*r+e[5],n}function qn(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function Kn(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}const AM=Object.freeze(Object.defineProperty({__proto__:null,add:bh,applyTransform:ot,clone:Mg,copy:Sg,create:Yi,dist:Cs,distSquare:Xi,distance:Is,distanceSquare:Cg,div:function(n,t,e){return n[0]=t[0]/e[0],n[1]=t[1]/e[1],n},dot:function(n,t){return n[0]*t[0]+n[1]*t[1]},len:Sh,lenSquare:Mh,length:IM,lengthSquare:CM,lerp:As,max:Kn,min:qn,mul:function(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n},negate:function(n,t){return n[0]=-t[0],n[1]=-t[1],n},normalize:Ig,scale:Ts,scaleAndAdd:function(n,t,e,i){return n[0]=t[0]+e[0]*i,n[1]=t[1]+e[1]*i,n},set:function(n,t,e){return n[0]=t,n[1]=e,n},sub:Tg},Symbol.toStringTag,{value:"Module"}));var Wr=function(n,t){this.target=n,this.topTarget=t&&t.topTarget},DM=function(){function n(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Wr(e,t),"dragstart",t.event))},n.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,e.drift(o,a,t),this.handler.dispatchToElement(new Wr(e,t),"drag",t.event);var s=this.handler.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Wr(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Wr(s,t),"dragenter",t.event))}},n.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Wr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Wr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},n}();const kM=DM;var LM=function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,i,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof e=="function"&&(r=i,i=e,e=null),!i||!t)return this;var a=this._$eventProcessor;e!=null&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return this;var l={h:i,query:e,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},u=o[t].length-1,h=o[t][u];return h&&h.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},n.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},n.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var r=[],o=0,a=i[t].length;o<a;o++)i[t][o].h!==e&&r.push(i[t][o]);i[t]=r}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},n.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=r.length,l=0;l<s;l++){var u=r[l];if(!o||!o.filter||u.query==null||o.filter(t,u.query))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e)}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=e[a-1],l=r.length,u=0;u<l;u++){var h=r[u];if(!o||!o.filter||h.query==null||o.filter(t,h.query))switch(a){case 0:h.h.call(s);break;case 1:h.h.call(s,e[0]);break;case 2:h.h.call(s,e[0],e[1]);break;default:h.h.apply(s,e.slice(1,a-1))}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n}();const Zt=LM;var PM=Math.log(2);function Th(n,t,e,i,r,o){var a=i+"-"+r,s=n.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~r)/PM);return n[e][l]}for(var u=i|1<<e,h=e+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*n[e][p]*Th(n,t-1,h,u,r|f,o),d++)}return o[a]=c,c}function Ag(n,t){var e=[[n[0],n[1],1,0,0,0,-t[0]*n[0],-t[0]*n[1]],[0,0,0,n[0],n[1],1,-t[1]*n[0],-t[1]*n[1]],[n[2],n[3],1,0,0,0,-t[2]*n[2],-t[2]*n[3]],[0,0,0,n[2],n[3],1,-t[3]*n[2],-t[3]*n[3]],[n[4],n[5],1,0,0,0,-t[4]*n[4],-t[4]*n[5]],[0,0,0,n[4],n[5],1,-t[5]*n[4],-t[5]*n[5]],[n[6],n[7],1,0,0,0,-t[6]*n[6],-t[6]*n[7]],[0,0,0,n[6],n[7],1,-t[7]*n[6],-t[7]*n[7]]],i={},r=Th(e,8,0,0,0,i);if(r!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Th(e,7,a===0?1:0,1<<a,1<<s,i)/r*t[a];return function(l,u,h){var c=u*o[6]+h*o[7]+1;l[0]=(u*o[0]+h*o[1]+o[2])/c,l[1]=(u*o[3]+h*o[4]+o[5])/c}}}var Dg="___zrEVENTSAVED",Ih=[];function Ch(n,t,e,i,r){if(t.getBoundingClientRect&&we.domSupported&&!kg(t)){var o=t[Dg]||(t[Dg]={}),a=function(l,u){var h=u.markers;if(h)return h;h=u.markers=[];for(var c=["left","right"],p=["top","bottom"],d=0;d<4;d++){var f=document.createElement("div"),g=d%2,y=(d>>1)%2;f.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",c[g]+":0",p[y]+":0",c[1-g]+":auto",p[1-y]+":auto",""].join("!important;"),l.appendChild(f),h.push(f)}return h}(t,o),s=function(l,u,h){for(var c=h?"invTrans":"trans",p=u[c],d=u.srcCoords,f=[],g=[],y=!0,v=0;v<4;v++){var m=l[v].getBoundingClientRect(),x=2*v,_=m.left,b=m.top;f.push(_,b),y=y&&d&&_===d[x]&&b===d[x+1],g.push(l[v].offsetLeft,l[v].offsetTop)}return y&&p?p:(u.srcCoords=f,u[c]=h?Ag(g,f):Ag(f,g))}(a,o,r);if(s)return s(n,e,i),!0}return!1}function kg(n){return n.nodeName.toUpperCase()==="CANVAS"}var OM=/([&<>"'])/g,RM={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bt(n){return n==null?"":(n+"").replace(OM,function(t,e){return RM[e]})}var EM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ah=[],NM=we.browser.firefox&&+we.browser.version.split(".")[0]<39;function Dh(n,t,e,i){return e=e||{},i?Lg(n,t,e):NM&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Lg(n,t,e),e}function Lg(n,t,e){if(we.domSupported&&n.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(kg(n)){var o=n.getBoundingClientRect();return e.zrX=i-o.left,void(e.zrY=r-o.top)}if(Ch(Ah,n,i,r))return e.zrX=Ah[0],void(e.zrY=Ah[1])}e.zrX=e.zrY=0}function kh(n){return n||window.event}function jt(n,t,e){if((t=kh(t)).zrX!=null)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];r&&Dh(n,r,t,e)}else{Dh(n,t,t,e);var o=function(s){var l=s.wheelDelta;if(l)return l;var u=s.deltaX,h=s.deltaY;return u==null||h==null?l:3*Math.abs(h!==0?h:u)*(h>0?-1:h<0?1:u>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return t.which==null&&a!==void 0&&EM.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function Lh(n,t,e,i){n.addEventListener(t,e,i)}var Jn=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function Pg(n){return n.which===2||n.which===3}var zM=function(){function n(){this._track=[]}return n.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,e,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a<s;a++){var l=r[a],u=Dh(i,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},n.prototype._recognize=function(t){for(var e in Ph)if(Ph.hasOwnProperty(e)){var i=Ph[e](this._track,t);if(i)return i}},n}();function Og(n){var t=n[1][0]-n[0][0],e=n[1][1]-n[0][1];return Math.sqrt(t*t+e*e)}var Ph={pinch:function(n,t){var e=n.length;if(e){var i,r=(n[e-1]||{}).points,o=(n[e-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Og(r)/Og(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:n[0].target,event:t}}}}};function BM(){return[1,0,0,1,0,0]}function Xo(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Ds(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function Dn(n,t,e){var i=t[0]*e[0]+t[2]*e[1],r=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],a=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n}function Ui(n,t,e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+e[0],n[5]=t[5]+e[1],n}function Zi(n,t,e,i){i===void 0&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],h=Math.sin(e),c=Math.cos(e);return n[0]=r*c+s*h,n[1]=-r*h+s*c,n[2]=o*c+l*h,n[3]=-o*h+c*l,n[4]=c*(a-i[0])+h*(u-i[1])+i[0],n[5]=c*(u-i[1])-h*(a-i[0])+i[1],n}function Oh(n,t,e){var i=e[0],r=e[1];return n[0]=t[0]*i,n[1]=t[1]*r,n[2]=t[2]*i,n[3]=t[3]*r,n[4]=t[4]*i,n[5]=t[5]*r,n}function ji(n,t){var e=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=e*a-o*i;return l?(l=1/l,n[0]=a*l,n[1]=-o*l,n[2]=-i*l,n[3]=e*l,n[4]=(i*s-a*r)*l,n[5]=(o*r-e*s)*l,n):null}const VM=Object.freeze(Object.defineProperty({__proto__:null,clone:function(n){var t=[1,0,0,1,0,0];return Ds(t,n),t},copy:Ds,create:BM,identity:Xo,invert:ji,mul:Dn,rotate:Zi,scale:Oh,translate:Ui},Symbol.toStringTag,{value:"Module"}));var FM=function(){function n(t,e){this.x=t||0,this.y=e||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,e){return this.x=t,this.y=e,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},n.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,e,i){t.x=e,t.y=i},n.copy=function(t,e){t.x=e.x,t.y=e.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,e){return t.x*e.x+t.y*e.y},n.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},n.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},n.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},n.scaleAndAdd=function(t,e,i,r){t.x=e.x+i.x*r,t.y=e.y+i.y*r},n.lerp=function(t,e,i,r){var o=1-r;t.x=o*e.x+r*i.x,t.y=o*e.y+r*i.y},n}();const de=FM;var ks=Math.min,Ls=Math.max,qi=new de,Ki=new de,Ji=new de,$i=new de,Uo=new de,Zo=new de,GM=function(){function n(t,e,i,r){i<0&&(t+=i,i=-i),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=i,this.height=r}return n.prototype.union=function(t){var e=ks(t.x,this.x),i=ks(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ls(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ls(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,r=t.height/e.height,o=[1,0,0,1,0,0];return Ui(o,o,[-e.x,-e.y]),Oh(o,o,[i,r]),Ui(o,o,[t.x,t.y]),o},n.prototype.intersect=function(t,e){if(!t)return!1;t instanceof n||(t=n.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,h=t.y,c=t.y+t.height,p=!(o<l||u<r||s<h||c<a);if(e){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),x=Math.min(g,y),_=Math.min(v,m);o<l||u<r?x>f&&(f=x,g<y?de.set(Zo,-g,0):de.set(Zo,y,0)):x<d&&(d=x,g<y?de.set(Uo,g,0):de.set(Uo,-y,0)),s<h||c<a?_>f&&(f=_,v<m?de.set(Zo,0,-v):de.set(Zo,0,m)):x<d&&(d=x,v<m?de.set(Uo,0,v):de.set(Uo,0,-m))}return e&&de.copy(e,p?Uo:Zo),p},n.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=e.x*r+a,t.y=e.y*o+s,t.width=e.width*r,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}qi.x=Ji.x=e.x,qi.y=$i.y=e.y,Ki.x=$i.x=e.x+e.width,Ki.y=Ji.y=e.y+e.height,qi.transform(i),$i.transform(i),Ki.transform(i),Ji.transform(i),t.x=ks(qi.x,Ki.x,Ji.x,$i.x),t.y=ks(qi.y,Ki.y,Ji.y,$i.y);var l=Ls(qi.x,Ki.x,Ji.x,$i.x),u=Ls(qi.y,Ki.y,Ji.y,$i.y);t.width=l-t.x,t.height=u-t.y}else t!==e&&n.copy(t,e)},n}();const me=GM;var Rg="silent";function HM(){Jn(this.event)}var WM=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.handler=null,e}return V(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zt),jo=function(n,t){this.x=n,this.y=t},YM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rh=new me(0,0,0,0),Eg=function(n){function t(e,i,r,o,a){var s=n.call(this)||this;return s._hovered=new jo(0,0),s.storage=e,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new WM,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new kM(s),s}return V(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(YM,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,r=e.zrY,o=zg(this,i,r),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var l=this._hovered=o?new jo(i,r):this.findHover(i,r),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new jo(0,0)},t.prototype.dispatch=function(e,i){var r=this[e];r&&r.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,r){var o=(e=e||{}).target;if(!o||!o.silent){for(var a="on"+i,s=function(l,u,h){return{type:l,event:h,target:u.target,topTarget:u.topTarget,cancelBubble:!1,offsetX:h.zrX,offsetY:h.zrY,gestureEvent:h.gestureEvent,pinchX:h.pinchX,pinchY:h.pinchY,pinchScale:h.pinchScale,wheelDelta:h.zrDelta,zrByTouch:h.zrByTouch,which:h.which,stop:HM}}(i,e,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,r){var o=this.storage.getDisplayList(),a=new jo(e,i);if(Ng(o,a,e,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,h=new me(e-u,i-u,l,l),c=o.length-1;c>=0;c--){var p=o[c];p===r||p.ignore||p.ignoreCoarsePointer||p.parent&&p.parent.ignoreCoarsePointer||(Rh.copy(p.getBoundingRect()),p.transform&&Rh.applyTransform(p.transform),Rh.intersect(h)&&s.push(p))}if(s.length){for(var d=Math.PI/12,f=2*Math.PI,g=0;g<u;g+=4)for(var y=0;y<f;y+=d)if(Ng(s,a,e+g*Math.cos(y),i+g*Math.sin(y),r),a.target)return a}}return a},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new zM);var r=this._gestureMgr;i==="start"&&r.clear();var o=r.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),o){var a=o.type;e.gestureEvent=a;var s=new jo;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(Zt);function XM(n,t,e){if(n[n.rectHover?"rectContain":"contain"](t,e)){for(var i=n,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,e))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||Rg}return!1}function Ng(n,t,e,i,r){for(var o=n.length-1;o>=0;o--){var a=n[o],s=void 0;if(a!==r&&!a.ignore&&(s=XM(a,e,i))&&(!t.topTarget&&(t.topTarget=a),s!==Rg)){t.target=a;break}}}function zg(n,t,e){var i=n.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Eg.prototype[n]=function(t){var e,i,r=t.zrX,o=t.zrY,a=zg(this,r,o);if(n==="mouseup"&&a||(i=(e=this.findHover(r,o)).target),n==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(n==="mouseup")this._upEl=i;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cs(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(e,n,t)}});const UM=Eg;var Bg=32,qo=7;function Vg(n,t,e,i){var r=t+1;if(r===e)return 1;if(i(n[r++],n[t])<0){for(;r<e&&i(n[r],n[r-1])<0;)r++;(function(o,a,s){for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}})(n,t,r)}else for(;r<e&&i(n[r],n[r-1])>=0;)r++;return r-t}function Fg(n,t,e,i,r){for(i===t&&i++;i<e;i++){for(var o,a=n[i],s=t,l=i;s<l;)r(a,n[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:n[s+3]=n[s+2];case 2:n[s+2]=n[s+1];case 1:n[s+1]=n[s];break;default:for(;u>0;)n[s+u]=n[s+u-1],u--}n[s]=a}}function Eh(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])>0){for(s=i-r;l<s&&o(n,t[e+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(n,t[e+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(n,t[e+h])>0?a=h+1:l=h}return l}function Nh(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])<0){for(s=r+1;l<s&&o(n,t[e+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(n,t[e+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(n,t[e+h])<0?l=h:a=h+1}return l}function ZM(n,t){var e,i,r=qo,o=0,a=[];function s(l){var u=e[l],h=i[l],c=e[l+1],p=i[l+1];i[l]=h+p,l===o-3&&(e[l+1]=e[l+2],i[l+1]=i[l+2]),o--;var d=Nh(n[c],n,u,h,0,t);u+=d,(h-=d)!==0&&(p=Eh(n[u+h-1],n,c,p,p-1,t))!==0&&(h<=p?function(f,g,y,v){var m=0;for(m=0;m<g;m++)a[m]=n[f+m];var x=0,_=y,b=f;if(n[b++]=n[_++],--v==0){for(m=0;m<g;m++)n[b+m]=a[x+m];return}if(g===1){for(m=0;m<v;m++)n[b+m]=n[_+m];return void(n[b+v]=a[x])}for(var w,S,M,T=r;;){w=0,S=0,M=!1;do if(t(n[_],a[x])<0){if(n[b++]=n[_++],S++,w=0,--v==0){M=!0;break}}else if(n[b++]=a[x++],w++,S=0,--g==1){M=!0;break}while((w|S)<T);if(M)break;do{if((w=Nh(n[_],a,x,g,0,t))!==0){for(m=0;m<w;m++)n[b+m]=a[x+m];if(b+=w,x+=w,(g-=w)<=1){M=!0;break}}if(n[b++]=n[_++],--v==0){M=!0;break}if((S=Eh(a[x],n,_,v,0,t))!==0){for(m=0;m<S;m++)n[b+m]=n[_+m];if(b+=S,_+=S,(v-=S)===0){M=!0;break}}if(n[b++]=a[x++],--g==1){M=!0;break}T--}while(w>=qo||S>=qo);if(M)break;T<0&&(T=0),T+=2}if((r=T)<1&&(r=1),g===1){for(m=0;m<v;m++)n[b+m]=n[_+m];n[b+v]=a[x]}else{if(g===0)throw new Error;for(m=0;m<g;m++)n[b+m]=a[x+m]}}(u,h,c,p):function(f,g,y,v){var m=0;for(m=0;m<v;m++)a[m]=n[y+m];var x=f+g-1,_=v-1,b=y+v-1,w=0,S=0;if(n[b--]=n[x--],--g==0){for(w=b-(v-1),m=0;m<v;m++)n[w+m]=a[m];return}if(v===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];return void(n[b]=a[_])}for(var M=r;;){var T=0,I=0,C=!1;do if(t(a[_],n[x])<0){if(n[b--]=n[x--],T++,I=0,--g==0){C=!0;break}}else if(n[b--]=a[_--],I++,T=0,--v==1){C=!0;break}while((T|I)<M);if(C)break;do{if((T=g-Nh(a[_],n,f,g,g-1,t))!==0){for(g-=T,S=(b-=T)+1,w=(x-=T)+1,m=T-1;m>=0;m--)n[S+m]=n[w+m];if(g===0){C=!0;break}}if(n[b--]=a[_--],--v==1){C=!0;break}if((I=v-Eh(n[x],a,0,v,v-1,t))!==0){for(v-=I,S=(b-=I)+1,w=(_-=I)+1,m=0;m<I;m++)n[S+m]=a[w+m];if(v<=1){C=!0;break}}if(n[b--]=n[x--],--g==0){C=!0;break}M--}while(T>=qo||I>=qo);if(C)break;M<0&&(M=0),M+=2}if((r=M)<1&&(r=1),v===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];n[b]=a[_]}else{if(v===0)throw new Error;for(w=b-(v-1),m=0;m<v;m++)n[w+m]=a[m]}}(u,h,c,p))}return e=[],i=[],{mergeRuns:function(){for(;o>1;){var l=o-2;if(l>=1&&i[l-1]<=i[l]+i[l+1]||l>=2&&i[l-2]<=i[l]+i[l-1])i[l-1]<i[l+1]&&l--;else if(i[l]>i[l+1])break;s(l)}},forceMergeRuns:function(){for(;o>1;){var l=o-2;l>0&&i[l-1]<i[l+1]&&l--,s(l)}},pushRun:function(l,u){e[o]=l,i[o]=u,o+=1}}}function Ps(n,t,e,i){e||(e=0),i||(i=n.length);var r=i-e;if(!(r<2)){var o=0;if(r<Bg)Fg(n,e,i,e+(o=Vg(n,e,i,t)),t);else{var a=ZM(n,t),s=function(u){for(var h=0;u>=Bg;)h|=1&u,u>>=1;return u+h}(r);do{if((o=Vg(n,e,i,t))<s){var l=r;l>s&&(l=s),Fg(n,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),r-=o,e+=o}while(r!==0);a.forceMergeRuns()}}}var Vt=1,Yr=4,Gg=!1;function zh(){Gg||(Gg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hg(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var jM=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hg}return n.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},n.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},n.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,r=0,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);i.length=this._displayListLen,Ps(i,Hg)},n.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var o=r,a=t;o;)o.parent=a,o.updateTransform(),e.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Vt),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(zh(),h.z=0),isNaN(h.z2)&&(zh(),h.z2=0),isNaN(h.zlevel)&&(zh(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var r=Me(this._roots,t);r>=0&&this._roots.splice(r,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const qM=jM,Bh=we.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var Os={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(2-Math.pow(2,-10*(n-1)))},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/.4))},elasticOut:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=i*Math.asin(1/e)/(2*Math.PI),(n*=2)<1?e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?n*n*((t+1)*n-t)*.5:.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-Os.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?.5*Os.bounceIn(2*n):.5*Os.bounceOut(2*n-1)+.5}};const Wg=Os;var Rs=Math.pow,xi=Math.sqrt,Es=1e-8,Yg=1e-4,Xg=xi(3),Ns=1/3,kn=Yi(),qt=Yi(),Xr=Yi();function _i(n){return n>-Es&&n<Es}function Ug(n){return n>Es||n<-Es}function tt(n,t,e,i,r){var o=1-r;return o*o*(o*n+3*r*t)+r*r*(r*i+3*o*e)}function Zg(n,t,e,i,r){var o=1-r;return 3*(((t-n)*o+2*(e-t)*r)*o+(i-e)*r*r)}function zs(n,t,e,i,r,o){var a=i+3*(t-e)-n,s=3*(e-2*t+n),l=3*(t-n),u=n-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(_i(h)&&_i(c))_i(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(_i(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=xi(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Rs(-m,Ns):Rs(m,Ns))+(x=x<0?-Rs(-x,Ns):Rs(x,Ns))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*xi(h*h*h)),b=Math.acos(_)/3,w=xi(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),T=(y=(-s+w*(S+Xg*Math.sin(b)))/(3*a),(-s+w*(S-Xg*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),T>=0&&T<=1&&(o[d++]=T)}}return d}function jg(n,t,e,i,r){var o=6*e-12*t+6*n,a=9*t+3*i-3*n-9*e,s=3*t-3*n,l=0;if(_i(a))Ug(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(_i(u))r[0]=-o/(2*a);else if(u>0){var h,c=xi(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function Bs(n,t,e,i,r,o){var a=(t-n)*r+n,s=(e-t)*r+t,l=(i-e)*r+e,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=n,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function qg(n,t,e,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;kn[0]=l,kn[1]=u;for(var m=0;m<1;m+=.05)qt[0]=tt(n,e,r,a,m),qt[1]=tt(t,i,o,s,m),(f=Xi(kn,qt))<v&&(c=m,v=f);v=1/0;for(var x=0;x<32&&!(y<Yg);x++)p=c-y,d=c+y,qt[0]=tt(n,e,r,a,p),qt[1]=tt(t,i,o,s,p),f=Xi(qt,kn),p>=0&&f<v?(c=p,v=f):(Xr[0]=tt(n,e,r,a,d),Xr[1]=tt(t,i,o,s,d),g=Xi(Xr,kn),d<=1&&g<v?(c=d,v=g):y*=.5);return h&&(h[0]=tt(n,e,r,a,c),h[1]=tt(t,i,o,s,c)),xi(v)}function KM(n,t,e,i,r,o,a,s,l){for(var u=n,h=t,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=tt(n,e,r,a,f),y=tt(t,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function dt(n,t,e,i){var r=1-i;return r*(r*n+2*i*t)+i*i*e}function Kg(n,t,e,i){return 2*((1-i)*(t-n)+i*(e-t))}function Jg(n,t,e){var i=n+e-2*t;return i===0?.5:(n-t)/i}function Vs(n,t,e,i,r){var o=(t-n)*i+n,a=(e-t)*i+t,s=(a-o)*i+o;r[0]=n,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=e}function $g(n,t,e,i,r,o,a,s,l){var u,h=.005,c=1/0;kn[0]=a,kn[1]=s;for(var p=0;p<1;p+=.05)qt[0]=dt(n,e,r,p),qt[1]=dt(t,i,o,p),(y=Xi(kn,qt))<c&&(u=p,c=y);c=1/0;for(var d=0;d<32&&!(h<Yg);d++){var f=u-h,g=u+h;qt[0]=dt(n,e,r,f),qt[1]=dt(t,i,o,f);var y=Xi(qt,kn);if(f>=0&&y<c)u=f,c=y;else{Xr[0]=dt(n,e,r,g),Xr[1]=dt(t,i,o,g);var v=Xi(Xr,kn);g<=1&&v<c?(u=g,c=v):h*=.5}}return l&&(l[0]=dt(n,e,r,u),l[1]=dt(t,i,o,u)),xi(c)}function JM(n,t,e,i,r,o,a){for(var s=n,l=t,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=dt(n,e,r,p),f=dt(t,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var $M=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qg(n){var t=n&&$M.exec(n);if(t){var e=t[1].split(","),i=+Xt(e[0]),r=+Xt(e[1]),o=+Xt(e[2]),a=+Xt(e[3]);if(isNaN(i+r+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:zs(0,i,o,1,l,s)&&tt(0,r,a,1,s[0])}}}const QM=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||st,this.ondestroy=t.ondestroy||st,this.onrestart=t.onrestart||st,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1){if(!this.loop)return!0;var l=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ae(t)?t:Wg[t]||Qg(t)},n}();var ey=function(n){this.value=n},eT=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new ey(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),tT=function(){function n(t){this._list=new eT,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new ey(e),s.key=t,i.insertEntry(s),r[t]=s}return o},n.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const Ko=tT;var ty={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function yn(n){return(n=Math.round(n))<0?0:n>255?255:n}function Jo(n){return n<0?0:n>1?1:n}function Vh(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?yn(parseFloat(t)/100*255):yn(parseInt(t,10))}function Qi(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?Jo(parseFloat(t)/100):Jo(parseFloat(t))}function Fh(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function wi(n,t,e){return n+(t-n)*e}function Kt(n,t,e,i,r){return n[0]=t,n[1]=e,n[2]=i,n[3]=r,n}function Gh(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var ny=new Ko(20),Fs=null;function Ur(n,t){Fs&&Gh(Fs,t),Fs=ny.put(n,Fs||t.slice())}function At(n,t){if(n){t=t||[];var e=ny.get(n);if(e)return Gh(t,e);var i=(n+="").replace(/ /g,"").toLowerCase();if(i in ty)return Gh(t,ty[i]),Ur(n,t),t;var r,o=i.length;if(i.charAt(0)==="#")return o===4||o===5?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Kt(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,o===5?parseInt(i.slice(4),16)/15:1),Ur(n,t),t):void Kt(t,0,0,0,1):o===7||o===9?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Kt(t,(16711680&r)>>16,(65280&r)>>8,255&r,o===9?parseInt(i.slice(7),16)/255:1),Ur(n,t),t):void Kt(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Kt(t,+u[0],+u[1],+u[2],1):Kt(t,0,0,0,1);h=Qi(u.pop());case"rgb":return u.length>=3?(Kt(t,Vh(u[0]),Vh(u[1]),Vh(u[2]),u.length===3?h:Qi(u[3])),Ur(n,t),t):void Kt(t,0,0,0,1);case"hsla":return u.length!==4?void Kt(t,0,0,0,1):(u[3]=Qi(u[3]),Hh(u,t),Ur(n,t),t);case"hsl":return u.length!==3?void Kt(t,0,0,0,1):(Hh(u,t),Ur(n,t),t);default:return}}Kt(t,0,0,0,1)}}function Hh(n,t){var e=(parseFloat(n[0])%360+360)%360/360,i=Qi(n[1]),r=Qi(n[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Kt(t=t||[],yn(255*Fh(a,o,e+1/3)),yn(255*Fh(a,o,e)),yn(255*Fh(a,o,e-1/3)),1),n.length===4&&(t[3]=n[3]),t}function Wh(n,t){var e=At(n);if(e){for(var i=0;i<3;i++)e[i]=t<0?e[i]*(1-t)|0:(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return vn(e,e.length===4?"rgba":"rgb")}}function $o(n,t,e){if(t&&t.length&&n>=0&&n<=1){e=e||[];var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return e[0]=yn(wi(a[0],s[0],l)),e[1]=yn(wi(a[1],s[1],l)),e[2]=yn(wi(a[2],s[2],l)),e[3]=Jo(wi(a[3],s[3],l)),e}}var nT=$o;function Yh(n,t,e){if(t&&t.length&&n>=0&&n<=1){var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=At(t[r]),s=At(t[o]),l=i-r,u=vn([yn(wi(a[0],s[0],l)),yn(wi(a[1],s[1],l)),yn(wi(a[2],s[2],l)),Jo(wi(a[3],s[3],l))],"rgba");return e?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var iT=Yh;function Gs(n,t,e,i){var r=At(n);if(n)return r=function(o){if(o){var a,s,l=o[0]/255,u=o[1]/255,h=o[2]/255,c=Math.min(l,u,h),p=Math.max(l,u,h),d=p-c,f=(p+c)/2;if(d===0)a=0,s=0;else{s=f<.5?d/(p+c):d/(2-p-c);var g=((p-l)/6+d/2)/d,y=((p-u)/6+d/2)/d,v=((p-h)/6+d/2)/d;l===p?a=v-y:u===p?a=1/3+g-v:h===p&&(a=2/3+y-g),a<0&&(a+=1),a>1&&(a-=1)}var m=[360*a,s,f];return o[3]!=null&&m.push(o[3]),m}}(r),t!=null&&(r[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(t)),e!=null&&(r[1]=Qi(e)),i!=null&&(r[2]=Qi(i)),vn(Hh(r),"rgba")}function iy(n,t){var e=At(n);if(e&&t!=null)return e[3]=Jo(t),vn(e,"rgba")}function vn(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return t!=="rgba"&&t!=="hsva"&&t!=="hsla"||(e+=","+n[3]),t+"("+e+")"}}function Qo(n,t){var e=At(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var ry=new Ko(100);function Xh(n){if(j(n)){var t=ry.get(n);return t||(t=Wh(n,-.1),ry.put(n,t)),t}if(Ho(n)){var e=G({},n);return e.colorStops=X(n.colorStops,function(i){return{offset:i.offset,color:Wh(i.color,-.1)}}),e}return n}const rT=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:$o,fastMapToColor:nT,lerp:Yh,lift:Wh,liftColor:Xh,lum:Qo,mapToColor:iT,modifyAlpha:iy,modifyHSL:Gs,parse:At,random:function(){return vn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:vn,toHex:function(n){var t=At(n);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));we.hasGlobalWindow&&ae(window.btoa);var Uh=Array.prototype.slice;function $n(n,t,e){return(t-n)*e+n}function Zh(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=$n(t[o],e[o],i);return n}function Hs(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=t[o]+e[o]*i;return n}function oy(n,t,e,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=t[a][s]+e[a][s]*i}return n}function oT(n,t){for(var e=n.length,i=t.length,r=e>i?t:n,o=Math.min(e,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(e,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function aT(n,t,e){var i=n,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(e===1?r[s]:Uh.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(e===1)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Ws(n){if(mt(n)){var t=n.length;if(mt(n[0])){for(var e=[],i=0;i<t;i++)e.push(Uh.call(n[i]));return e}return Uh.call(n)}return n}function Ys(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function ay(n){return n===4||n===5}function Xs(n){return n===1||n===2}var ea=[0,0,0,0],sT=function(){function n(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=6,l=e;if(mt(e)){var u=function(d){return mt(d&&d[0])?2:1}(e);s=u,(u===1&&!Re(e[0])||u===2&&!Re(e[0][0]))&&(a=!0)}else if(Re(e)&&!Gr(e))s=0;else if(j(e))if(isNaN(+e)){var h=At(e);h&&(l=h,s=3)}else s=0;else if(Ho(e)){var c=G({},l);c.colorStops=X(e.colorStops,function(d){return{offset:d.offset,color:At(d.color)}}),e.type==="linear"?s=4:function(d){return d.type==="radial"}(e)&&(s=5),l=c}o===0?this.valType=s:s===this.valType&&s!==6||(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=ae(i)?i:Wg[i]||Qg(i)),r.push(p),p},n.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,y){return g.time-y.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Xs(r),u=ay(r),h=0;h<o;h++){var c=i[h],p=c.value,d=a.value;c.percent=c.time/t,s||(l&&h!==o-1?aT(p,d,r):u&&oT(p.colorStops,d.colorStops))}if(!s&&r!==5&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=i[0].value;for(h=0;h<o;h++)r===0?i[h].additiveValue=i[h].value-f:r===3?i[h].additiveValue=Hs([],i[h].value,f,-1):Xs(r)&&(i[h].additiveValue=r===1?Hs([],i[h].value,f,-1):oy([],i[h].value,f,-1))}},n.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,r,o,a=this._additiveTrack!=null,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=l===3,d=this._lastFr,f=Math.min;if(h===1)r=o=u[0];else{if(e<0)i=0;else if(e<this._lastFrP){for(i=f(d+1,h-1);i>=0&&!(u[i].percent<=e);i--);i=f(i,h-2)}else{for(i=d;i<h&&!(u[i].percent>e);i++);i=f(i-1,h-2)}o=u[i+1],r=u[i]}if(r&&o){this._lastFr=i,this._lastFrP=e;var g=o.percent-r.percent,y=g===0?1:f((e-r.percent)/g,1);o.easingFunc&&(y=o.easingFunc(y));var v=a?this._additiveValue:p?ea:t[c];if(!Xs(l)&&!p||v||(v=this._additiveValue=[]),this.discrete)t[c]=y<1?r.rawValue:o.rawValue;else if(Xs(l))l===1?Zh(v,r[s],o[s],y):function(w,S,M,T){for(var I=S.length,C=I&&S[0].length,D=0;D<I;D++){w[D]||(w[D]=[]);for(var L=0;L<C;L++)w[D][L]=$n(S[D][L],M[D][L],T)}}(v,r[s],o[s],y);else if(ay(l)){var m=r[s],x=o[s],_=l===4;t[c]={type:_?"linear":"radial",x:$n(m.x,x.x,y),y:$n(m.y,x.y,y),colorStops:X(m.colorStops,function(w,S){var M=x.colorStops[S];return{offset:$n(w.offset,M.offset,y),color:Ys(Zh([],w.color,M.color,y))}}),global:x.global},_?(t[c].x2=$n(m.x2,x.x2,y),t[c].y2=$n(m.y2,x.y2,y)):t[c].r=$n(m.r,x.r,y)}else if(p)Zh(v,r[s],o[s],y),a||(t[c]=Ys(v));else{var b=$n(r[s],o[s],y);a?this._additiveValue=b:t[c]=b}a&&this._addToTarget(t)}}},n.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,r=this._additiveValue;e===0?t[i]=t[i]+r:e===3?(At(t[i],ea),Hs(ea,ea,r,1),t[i]=Ys(ea)):e===1?Hs(t[i],t[i],r,1):e===2&&oy(t[i],t[i],r,1)},n}(),lT=function(){function n(t,e,i,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Wi("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=i)}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Oe(e),i)},n.prototype.whenWithKeys=function(t,e,i,r){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new sT(s);var u=void 0,h=this._getAdditiveTrack(s);if(h){var c=h.keyframes,p=c[c.length-1];u=p&&p.value,h.valType===3&&u&&(u=Ys(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ws(u),r),this._trackKeys.push(s)}l.addKeyframe(t,Ws(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},n.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},n.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var o=i[r].getTrack(t);o&&(e=o)}return e},n.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,h=u.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[h-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new QM({life:r,loop:this._loop,delay:this._delay||0,onframe:function(d){e._started=2;var f=e._additiveAnimators;if(f){for(var g=!1,y=0;y<f.length;y++)if(f[y]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(y=0;y<i.length;y++)i[y].step(e._target,d);var v=e._onframeCbs;if(v)for(y=0;y<v.length;y++)v[y](e._target,d)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},n.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},n.prototype.delay=function(t){return this._delay=t,this},n.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},n.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},n.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(t){return this._tracks[t]},n.prototype.getTracks=function(){var t=this;return X(this._trackKeys,function(e){return t._tracks[e]})},n.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,o=0;o<t.length;o++){var a=i[t[o]];a&&!a.isFinished()&&(e?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}var s=!0;for(o=0;o<r.length;o++)if(!i[r[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var o=e[r],a=this._tracks[o];if(a&&!a.isFinished()){var s=a.keyframes,l=s[i?0:s.length-1];l&&(t[o]=Ws(l.rawValue))}}}},n.prototype.__changeFinalValue=function(t,e){e=e||Oe(t);for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n}();const jh=lT;function Zr(){return new Date().getTime()}var uT=function(n){function t(e){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return V(t,n),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,r=e.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Zr()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next;o.step(i,r)&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Bh(function i(){e._running&&(Bh(i),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Zr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var r=new jh(e,i.loop);return this.addAnimator(r),r},t}(Zt);const hT=uT;var sy,ly,qh=we.domSupported,Kh=(ly={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:sy=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:X(sy,function(n){var t=n.replace("mouse","pointer");return ly.hasOwnProperty(t)?t:n})}),cT=["mousemove","mouseup"],pT=["pointermove","pointerup"],uy=!1;function Jh(n){var t=n.pointerType;return t==="pen"||t==="touch"}function $h(n){n&&(n.zrByTouch=!0)}function hy(n,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return i}var dT=function(n,t){this.stopPropagation=st,this.stopImmediatePropagation=st,this.preventDefault=st,this.type=t.type,this.target=this.currentTarget=n.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},mn={mousedown:function(n){n=jt(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=jt(this.dom,n);var t=this.__mayPointerCapture;!t||n.zrX===t[0]&&n.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=jt(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){hy(this,(n=jt(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){uy=!0,n=jt(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){uy||(n=jt(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){$h(n=jt(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),mn.mousemove.call(this,n),mn.mousedown.call(this,n)},touchmove:function(n){$h(n=jt(this.dom,n)),this.handler.processGesture(n,"change"),mn.mousemove.call(this,n)},touchend:function(n){$h(n=jt(this.dom,n)),this.handler.processGesture(n,"end"),mn.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&mn.click.call(this,n)},pointerdown:function(n){mn.mousedown.call(this,n)},pointermove:function(n){Jh(n)||mn.mousemove.call(this,n)},pointerup:function(n){mn.mouseup.call(this,n)},pointerout:function(n){Jh(n)||mn.mouseout.call(this,n)}};A(["click","dblclick","contextmenu"],function(n){mn[n]=function(t){t=jt(this.dom,t),this.trigger(n,t)}});var Qh={pointermove:function(n){Jh(n)||Qh.mousemove.call(this,n)},pointerup:function(n){Qh.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function fT(n,t){var e=t.domHandlers;we.pointerEventsSupported?A(Kh.pointer,function(i){Us(t,i,function(r){e[i].call(n,r)})}):(we.touchEventsSupported&&A(Kh.touch,function(i){Us(t,i,function(r){e[i].call(n,r),function(o){o.touching=!0,o.touchTimer!=null&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(t)})}),A(Kh.mouse,function(i){Us(t,i,function(r){r=kh(r),t.touching||e[i].call(n,r)})}))}function gT(n,t){function e(i){Us(t,i,function(r){r=kh(r),hy(n,r.target)||(r=function(o,a){return jt(o.dom,new dT(o,a),!0)}(n,r),t.domHandlers[i].call(n,r))},{capture:!0})}we.pointerEventsSupported?A(pT,e):we.touchEventsSupported||A(cT,e)}function Us(n,t,e,i){n.mounted[t]=e,n.listenerOpts[t]=i,Lh(n.domTarget,t,e,i)}function ec(n){var t,e,i,r,o=n.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=n.domTarget,e=a,i=o[a],r=n.listenerOpts[a],t.removeEventListener(e,i,r));n.mounted={}}var cy=function(n,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=n,this.domHandlers=t};const yT=function(n){function t(e,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=i,r._localHandlerScope=new cy(e,mn),qh&&(r._globalHandlerScope=new cy(document,Qh)),fT(r,r._localHandlerScope),r}return V(t,n),t.prototype.dispose=function(){ec(this._localHandlerScope),qh&&ec(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,qh&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?gT(this,i):ec(i)}},t}(Zt);var py=1;we.hasGlobalWindow&&(py=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Zs=py,tc="#333",nc="#ccc",dy=Xo,vT=5e-5;function er(n){return n>vT||n<-5e-5}var tr=[],jr=[],ic=[1,0,0,1,0,0],rc=Math.abs,mT=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return er(this.rotation)||er(this.x)||er(this.y)||er(this.scaleX-1)||er(this.scaleY-1)||er(this.skewX)||er(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||[1,0,0,1,0,0],e?this.getLocalTransform(i):dy(i),t&&(e?Dn(i,t,i):Ds(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(dy(i),this.invTransform=null)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(tr);var i=tr[0]<0?-1:1,r=tr[1]<0?-1:1,o=((tr[0]-i)*e+i)/tr[0]||0,a=((tr[1]-r)*e+r)/tr[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],ji(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),o=Math.PI/2+r-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Dn(jr,t.invTransform,e),e=jr);var i=this.originX,r=this.originY;(i||r)&&(ic[4]=i,ic[5]=r,Dn(jr,e,ic),jr[4]-=i,jr[5]-=r,e=jr),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&ot(i,i,r),i},n.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&ot(i,i,r),i},n.prototype.getLineScale=function(){var t=this.transform;return t&&rc(t[0]-1)>1e-10&&rc(t[3]-1)>1e-10?Math.sqrt(rc(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){(function(e,i){for(var r=0;r<ta.length;r++){var o=ta[r];e[o]=i[o]}})(this,t)},n.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||r||s||l){var f=i+s,g=r+l;e[4]=-f*o-p*g*a,e[5]=-g*a-d*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=p*a,u&&Zi(e,e,u),e[4]+=i+h,e[5]+=r+c,e},n.initDefaultProps=function(){var t=n.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),n}(),ta=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];const bi=mT;var fy={};function Ft(n,t){var e=fy[t=t||Hi];e||(e=fy[t]=new Ko(500));var i=e.get(n);return i==null&&(i=jn.measureText(n,t).width,e.put(n,i)),i}function gy(n,t,e,i){var r=Ft(n,t),o=oc(t),a=ia(0,r,e),s=qr(0,o,i);return new me(a,s,r,o)}function na(n,t,e,i){var r=((n||"")+"").split(`
- `);if(r.length===1)return gy(r[0],t,e,i);for(var o=new me(0,0,0,0),a=0;a<r.length;a++){var s=gy(r[a],t,e,i);a===0?o.copy(s):o.union(s)}return o}function ia(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function qr(n,t,e){return e==="middle"?n-=t/2:e==="bottom"&&(n-=t),n}function oc(n){return Ft("\u56FD",n)}function Ln(n,t){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*t:parseFloat(n):n}function js(n,t,e){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,u=e.y,h="left",c="top";if(i instanceof Array)l+=Ln(i[0],e.width),u+=Ln(i[1],e.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(n=n||{}).x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var ac="__zr_normal__",sc=ta.concat(["ignore"]),xT=gn(ta,function(n,t){return n[t]=!0,n},{ignore:!1}),Kr={},_T=new me(0,0,0,0),lc=function(){function n(t){this.id=yh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=e.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var u=!1;if(o.copyTransform(e),i.position!=null){var h=_T;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),r||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Kr,i,h):js(Kr,i,h),o.x=Kr.x,o.y=Kr.y,a=Kr.align,s=Kr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var p=void 0,d=void 0;c==="center"?(p=.5*h.width,d=.5*h.height):(p=Ln(c[0],h.width),d=Ln(c[1],h.height)),u=!0,o.originX=-o.x+p+(r?0:h.x),o.originY=-o.y+d+(r?0:h.y)}}i.rotation!=null&&(o.rotation=i.rotation);var f=i.offset;f&&(o.x+=f[0],o.y+=f[1],u||(o.originX=-f[0],o.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(v=i.insideFill,m=i.insideStroke,v!=null&&v!=="auto"||(v=this.getInsideTextFill()),m!=null&&m!=="auto"||(m=this.getInsideTextStroke(v),x=!0)):(v=i.outsideFill,m=i.outsideStroke,v!=null&&v!=="auto"||(v=this.getOutsideFill()),m!=null&&m!=="auto"||(m=this.getOutsideStroke(v),x=!0)),(v=v||"#000")===y.fill&&m===y.stroke&&x===y.autoStroke&&a===y.align&&s===y.verticalAlign||(l=!0,y.fill=v,y.stroke=m,y.autoStroke=x,y.align=a,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=Vt,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nc:tc},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&At(e);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,vn(i,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},G(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ee(t))for(var i=Oe(t),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==ac)){var a=r.targetName,s=a?e[a]:e;r.saveTo(s)}}},n.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,sc)},n.prototype._savePrimaryToNormal=function(t,e,i){for(var r=0;r<i.length;r++){var o=i[r];t[o]==null||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(ac,!1,t)},n.prototype.useState=function(t,e,i,r){var o=t===ac;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(Me(a,t)>=0)||!e&&a.length!==1){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||o){o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,u),c&&c.useState(t,e,i,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),l}Wi("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,i){if(t.length){var r=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(l=0;l<a;l++){var u=t[l],h=void 0;this.stateProxy&&(h=this.stateProxy(u,t)),h||(h=this.states[u]),h&&r.push(h)}var c=r[a-1],p=!!(c&&c.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,e,p),y&&y.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e=Me(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},n.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),o=Me(r,t),a=Me(r,e)>=0;o>=0?a?r.splice(o,1):r[o]=e:i&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,i={},r=0;r<t.length;r++){var o=t[r];G(i,o),o.textConfig&&G(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},n.prototype._applyStateObj=function(t,e,i,r,o,a){var s=!(e&&r);e&&e.textConfig?(this.textConfig=G({},r?this.textConfig:i.textConfig),G(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,h=0;h<sc.length;h++){var c=sc[h],p=o&&xT[c];e&&e[c]!=null?p?(u=!0,l[c]=e[c]):this[c]=e[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!o)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}u&&this._transitionState(t,l,a)},n.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new bi,this._attachComponent(t),this._textContent=t,this.markRedraw()}},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Vt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,i){var r=t?this[t]:this;if(r){var o=new jh(r,e,i);return t&&(o.targetName=t),this.addAnimator(o,t),o}Wi('Property "'+t+'" is not existed in element '+this.id)},n.prototype.addAnimator=function(t,e){var i=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var o=r.animators,a=Me(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,o=[],a=0;a<r;a++){var s=i[a];t&&t!==s.scope?o.push(s):s.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,i){uc(this,t,e,i)},n.prototype.animateFrom=function(t,e,i){uc(this,t,e,i,!0)},n.prototype._transitionState=function(t,e,i,r){for(var o=uc(this,e,i,r),a=0;a<o.length;a++)o[a].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var t=n.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Vt;var e={};function i(o,a,s){e[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),e[o+a+s]=!0)}function r(o,a,s,l){function u(h,c){Object.defineProperty(c,0,{get:function(){return h[s]},set:function(p){h[s]=p}}),Object.defineProperty(c,1,{get:function(){return h[l]},set:function(p){h[l]=p}})}Object.defineProperty(t,o,{get:function(){return i(o,s,l),this[a]||u(this,this[a]=[]),this[a]},set:function(h){i(o,s,l),this[s]=h[0],this[l]=h[1],this[a]=h,u(this,h)}})}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),n}();function uc(n,t,e,i,r){var o=[];yy(n,"",n,t,e=e||{},i,o,r);var a=o.length,s=!1,l=e.done,u=e.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&e.during&&o[0].during(function(f,g){e.during(g)});for(var p=0;p<o.length;p++){var d=o[p];h&&d.done(h),c&&d.aborted(c),e.force&&d.duration(e.duration),d.start(e.easing)}return o}function hc(n,t,e){for(var i=0;i<e;i++)n[i]=t[i]}function wT(n,t,e){if(mt(t[e]))if(mt(n[e])||(n[e]=[]),pt(t[e])){var i=t[e].length;n[e].length!==i&&(n[e]=new t[e].constructor(i),hc(n[e],t[e],i))}else{var r=t[e],o=n[e],a=r.length;if(mt(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?hc(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else hc(o,r,a);o.length=r.length}else n[e]=t[e]}function yy(n,t,e,i,r,o,a,s){for(var l=Oe(i),u=r.duration,h=r.delay,c=r.additive,p=r.setToFinal,d=!ee(o),f=n.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=i[v];if(m!=null&&e[v]!=null&&(d||o[v]))if(!ee(m)||mt(m)||Ho(m))g.push(v);else{if(t){s||(e[v]=m,n.updateDuringAnimation(t));continue}yy(n,v,e[v],m,r,o&&o[v],a,s)}else s||(e[v]=m,n.updateDuringAnimation(t),g.push(v))}var x=g.length;if(!c&&x){for(var _=0;_<f.length;_++)if((w=f[_]).targetName===t&&w.stopTracks(g)){var b=Me(f,w);f.splice(b,1)}}if(r.force||(g=We(g,function(I){return C=i[I],D=e[I],!(C===D||mt(C)&&mt(D)&&function(L,R){var P=L.length;if(P!==R.length)return!1;for(var E=0;E<P;E++)if(L[E]!==R[E])return!1;return!0}(C,D));var C,D}),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,T=void 0;if(s)for(M={},p&&(S={}),_=0;_<x;_++)M[v=g[_]]=e[v],p?S[v]=i[v]:e[v]=i[v];else if(p)for(T={},_=0;_<x;_++)T[v=g[_]]=Ws(e[v]),wT(e,i,v);(w=new jh(e,!1,!1,c?We(f,function(I){return I.targetName===t}):null)).targetName=t,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(u??500,s?M:i,g).delay(h||0),n.addAnimator(w,t),a.push(w)}}ct(lc,Zt),ct(lc,bi);const vy=lc;var my=function(n){function t(e){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return V(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,r=0;r<i.length;r++)if(i[r].name===e)return i[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var r=this._children,o=r.indexOf(i);o>=0&&(r.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var r=Me(this._children,e);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(e,i){var r=this._children,o=r[i];if(e&&e!==this&&e.parent!==this&&e!==o){r[i]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,r=this._children,o=Me(r,e);return o<0||(r.splice(o,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,r=0;r<e.length;r++){var o=e[r];i&&o.removeSelfFromZr(i),o.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var r=this._children,o=0;o<r.length;o++){var a=r[o];e.call(i,a,o)}return this},t.prototype.traverse=function(e,i){for(var r=0;r<this._children.length;r++){var o=this._children[r],a=e.call(i,o);o.isGroup&&!a&&o.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(e)},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(e)},t.prototype.getBoundingRect=function(e){for(var i=new me(0,0,0,0),r=e||this._children,o=[],a=null,s=0;s<r.length;s++){var l=r[s];if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),h=l.getLocalTransform(o);h?(me.applyTransform(i,u,h),(a=a||i.clone()).union(i)):(a=a||u.clone()).union(u)}}return a||i},t}(vy);my.prototype.type="group";const ge=my;var ra={},nr={},cc,bT=function(){function n(t,e,i){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new qM,a=i.renderer||"canvas";if(ra[a]||(a=Oe(ra)[0]),!ra[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect!=null&&i.useDirtyRect;var s=new ra[a](e,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,h=we.node||we.worker||l?null:new yT(s.getViewportRoot(),s.root),c=i.useCoarsePointer;(c==null||c==="auto"?we.touchEventsSupported:c)&&(u=fe(i.pointerSize,44)),this.handler=new UM(o,s,h,s.root,u),this.animation=new hT({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},n.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(e){if(!e)return!1;if(typeof e=="string")return Qo(e,1)<.4;if(e.colorStops){for(var i=e.colorStops,r=0,o=i.length,a=0;a<o;a++)r+=Qo(i[a].color,1);return(r/=o)<.4}return!1}(t))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(t){this._darkMode=t},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!1)},n.prototype._flush=function(t){var e,i=Zr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Zr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},n.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},n.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},n.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},n.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ge&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete nr[t])},n}();function pc(n,t){var e=new bT(yh(),n,t);return nr[e.id]=e,e}function xy(n,t){ra[n]=t}function _y(n){cc=n}const ST=Object.freeze(Object.defineProperty({__proto__:null,dispose:function(n){n.dispose()},disposeAll:function(){for(var n in nr)nr.hasOwnProperty(n)&&nr[n].dispose();nr={}},getElementSSRData:function(n){if(typeof cc=="function")return cc(n)},getInstance:function(n){return nr[n]},init:pc,registerPainter:xy,registerSSRDataGetter:_y,version:"5.5.0"},Symbol.toStringTag,{value:"Module"}));var wy=1e-4,by=20;function Ae(n,t,e,i){var r=t[0],o=t[1],a=e[0],s=e[1],l=o-r,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(n<=r)return a;if(n>=o)return s}else{if(n>=r)return a;if(n<=o)return s}else{if(n===r)return a;if(n===o)return s}return(n-r)/l*u+a}function ne(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return j(n)?(e=n,e.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):n==null?NaN:+n;var e}function Xe(n,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),by),n=(+n).toFixed(t),e?n:+n}function Qn(n){return n.sort(function(t,e){return t-e}),n}function Pn(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e}return qs(n)}function qs(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,r=e>0?e:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function dc(n,t){var e=Math.log,i=Math.LN10,r=Math.floor(e(n[1]-n[0])/i),o=Math.round(e(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Sy(n,t){var e=gn(n,function(d,f){return d+(isNaN(f)?0:f)},0);if(e===0)return[];for(var i=Math.pow(10,t),r=X(n,function(d){return(isNaN(d)?0:d)/e*i*100}),o=100*i,a=X(r,function(d){return Math.floor(d)}),s=gn(a,function(d,f){return d+f},0),l=X(r,function(d,f){return d-a[f]});s<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return X(a,function(d){return d/i})}function MT(n,t){var e=Math.max(Pn(n),Pn(t)),i=n+t;return e>by?i:Xe(i,e)}function fc(n){var t=2*Math.PI;return(n%t+t)%t}function oa(n){return n>-wy&&n<wy}var TT=/^(?:(\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 Jt(n){if(n instanceof Date)return n;if(j(n)){var t=TT.exec(n);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return n==null?new Date(NaN):new Date(Math.round(n))}function My(n){return Math.pow(10,aa(n))}function aa(n){if(n===0)return 0;var t=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,t)>=10&&t++,t}function gc(n,t){var e=aa(n),i=Math.pow(10,e),r=n/i;return n=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,e>=-20?+n.toFixed(e<0?-e:0):n}function yc(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<n.length;){for(var r=n[i].interval,o=n[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-e),t=r[a],e=o[a];r[0]===r[1]&&o[0]*o[1]!=1?n.splice(i,1):i++}return n;function s(l,u,h){return l.interval[h]<u.interval[h]||l.interval[h]===u.interval[h]&&(l.close[h]-u.close[h]==(h?-1:1)||!h&&s(l,u,1))}}function sa(n){var t=parseFloat(n);return t==n&&(t!==0||!j(n)||n.indexOf("x")<=0)?t:NaN}function Ks(n){return!isNaN(sa(n))}function Ty(){return Math.round(9*Math.random())}function Iy(n,t){return t===0?n:Iy(t,n%t)}function Cy(n,t){return n==null?t:t==null?n:n*t/Iy(n,t)}var IT="[ECharts] ",Ay={},CT=typeof console<"u"&&console.warn&&console.log;function Js(n,t,e){if(CT){if(e){if(Ay[t])return;Ay[t]=!0}console[n](IT+t)}}function Je(n,t){Js("warn",n,t)}function xt(n,t){Js("error",n,t)}function $t(n){Js("warn","DEPRECATED: "+n,!0)}function $e(n,t,e){$t((e?"["+e+"]":"")+n+" is deprecated, use "+t+" instead.")}function $s(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Gr(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":ae(i)?"function () { ... }":mg(i)?i+"":null};return X(n,function(i){if(j(i))return i;var r=e(i);if(r!=null)return r;if(typeof JSON>"u"||!JSON.stringify)return"?";try{return JSON.stringify(i,function(o,a){var s=e(a);return s??a})}catch{return"?"}}).join(" ")}function Dt(n){throw new Error(n)}function Dy(n,t,e){return(t-n)*e+n}var ky="series\0",Ly="\0_ec_\0";function Qe(n){return n instanceof Array?n:n==null?[]:[n]}function Qs(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var i=0,r=e.length;i<r;i++){var o=e[i];!n.emphasis[t].hasOwnProperty(o)&&n[t].hasOwnProperty(o)&&(n.emphasis[t][o]=n[t][o])}}}var Py=["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 la(n){return!ee(n)||Y(n)||n instanceof Date?n:n.value}function AT(n){return ee(n)&&!(n instanceof Array)}function DT(n,t,e){var i=e==="normalMerge",r=e==="replaceMerge",o=e==="replaceAll";n=n||[],t=(t||[]).slice();var a=te();A(t,function(h,c){ee(h)?(h.id==null||Ey(h.id)||Ry(h.id),h.name==null||Ey(h.name)||Ry(h.name)):t[c]=null});var s,l,u=function(h,c,p){var d=[];if(p==="replaceAll")return d;for(var f=0;f<h.length;f++){var g=h[f];g&&g.id!=null&&c.set(g.id,f),d.push({existing:p==="replaceMerge"||Jr(g)?null:g,newOption:null,keyInfo:null,brandNew:null})}return d}(n,a,e);return(i||r)&&function(h,c,p,d){A(d,function(f,g){if(f&&f.id!=null){var y=ua(f.id),v=p.get(y);if(v!=null){var m=h[v];ue(!m.newOption,'Duplicated option on id "'+y+'".'),m.newOption=f,m.existing=c[v],d[g]=null}}})}(u,n,a,t),i&&function(h,c){A(c,function(p,d){if(p&&p.name!=null)for(var f=0;f<h.length;f++){var g=h[f].existing;if(!h[f].newOption&&g&&(g.id==null||p.id==null)&&!Jr(p)&&!Jr(g)&&Oy("name",g,p))return h[f].newOption=p,void(c[d]=null)}})}(u,t),i||r?function(h,c,p){A(c,function(d){if(d){for(var f,g=0;(f=h[g])&&(f.newOption||Jr(f.existing)||f.existing&&d.id!=null&&!Oy("id",d,f.existing));)g++;f?(f.newOption=d,f.brandNew=p):h.push({newOption:d,brandNew:p,existing:null,keyInfo:null}),g++}})}(u,t,r):o&&function(h,c){A(c,function(p){h.push({newOption:p,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=te(),A(s,function(h){var c=h.existing;c&&l.set(c.id,h)}),A(s,function(h){var c=h.newOption;ue(!c||c.id==null||!l.get(c.id)||l.get(c.id)===h,"id duplicates: "+(c&&c.id)),c&&c.id!=null&&l.set(c.id,h),!h.keyInfo&&(h.keyInfo={})}),A(s,function(h,c){var p=h.existing,d=h.newOption,f=h.keyInfo;if(ee(d)){if(f.name=d.name!=null?ua(d.name):p?p.name:ky+c,p)f.id=ua(p.id);else if(d.id!=null)f.id=ua(d.id);else{var g=0;do f.id="\0"+f.name+"\0"+g++;while(l.get(f.id))}l.set(f.id,h)}}),u}function Oy(n,t,e){var i=Qt(t[n],null),r=Qt(e[n],null);return i!=null&&r!=null&&i===r}function ua(n){if(n==null)throw new Error;return Qt(n,"")}function Qt(n,t){return n==null?t:j(n)?n:Re(n)||Go(n)?n+"":t}function Ry(n){Je("`"+n+"` is invalid id or name. Must be a string or number.")}function Ey(n){return Go(n)||Ks(n)}function vc(n){var t=n.name;return!(!t||!t.indexOf(ky))}function Jr(n){return n&&n.id!=null&&ua(n.id).indexOf(Ly)===0}function ir(n,t){return t.dataIndexInside!=null?t.dataIndexInside:t.dataIndex!=null?Y(t.dataIndex)?X(t.dataIndex,function(e){return n.indexOfRawIndex(e)}):n.indexOfRawIndex(t.dataIndex):t.name!=null?Y(t.name)?X(t.name,function(e){return n.indexOfName(e)}):n.indexOfName(t.name):void 0}function Ne(){var n="__ec_inner_"+kT++;return function(t){return t[n]||(t[n]={})}}var kT=Ty();function ha(n,t,e){var i=mc(t,e),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=e?e.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(l,u){var h=ca(n,u,l,{useDefault:s===u,enableAll:!e||e.enableAll==null||e.enableAll,enableNone:!e||e.enableNone==null||e.enableNone});a[u+"Models"]=h.models,a[u+"Model"]=h.models[0]}),a}function mc(n,t){var e;if(j(n)){var i={};i[n+"Index"]=0,e=i}else e=n;var r=te(),o={},a=!1;return A(e,function(s,l){if(l!=="dataIndex"&&l!=="dataIndexInside"){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],h=u[1],c=(u[2]||"").toLowerCase();h&&c&&!(t&&t.includeMainTypes&&Me(t.includeMainTypes,h)<0)&&(a=a||!!h,(r.get(h)||r.set(h,{}))[c]=s)}else o[l]=s}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var nt={useDefault:!0,enableAll:!1,enableNone:!1},LT={useDefault:!1,enableAll:!0,enableNone:!0};function ca(n,t,e,i){i=i||nt;var r=e.index,o=e.id,a=e.name,s={models:null,specified:r!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(t))?[l]:[],s}return r==="none"||r===!1?(ue(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(r==="all"&&(ue(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=n.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function Ny(n,t,e){n.setAttribute?n.setAttribute(t,e):n[t]=e}function zy(n,t,e,i,r){var o=t==null||t==="auto";if(i==null)return i;if(Re(i))return Xe(f=Dy(e||0,i,r),o?Math.max(Pn(e||0),Pn(i)):t);if(j(i))return r<1?e:i;for(var a=[],s=e,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c=n.getDimensionInfo(h);if(c&&c.type==="ordinal")a[h]=(r<1&&s?s:l)[h];else{var p=s&&s[h]?s[h]:0,d=l[h],f=Dy(p,d,r);a[h]=Xe(f,o?Math.max(Pn(p),Pn(d)):t)}}return a}var PT=".",rr="___EC__COMPONENT__CONTAINER___",By="___EC__EXTENDED_CLASS___";function On(n){var t={main:"",sub:""};if(n){var e=n.split(PT);t.main=e[0]||"",t.sub=e[1]||""}return t}function xc(n,t){n.$constructor=n,n.extend=function(e){A(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var i,r,o=this;return ae(r=o)&&/^class\s/.test(Function.prototype.toString.call(r))?i=function(a){function s(){return a.apply(this,arguments)||this}return V(s,a),s}(o):(i=function(){(e.$constructor||o).apply(this,arguments)},vh(i,this)),G(i.prototype,e),i[By]=!0,i.extend=this.extend,i.superCall=RT,i.superApply=ET,i.superClass=o,i}}function Vy(n,t){n.extend=t.extend}var OT=Math.round(10*Math.random());function RT(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(n,e)}function ET(n,t,e){return this.superClass.prototype[t].apply(n,e)}function el(n){var t={};n.registerClass=function(e){var i,r=e.type||e.prototype.type;if(r){ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i=r),'componentType "'+i+'" illegal'),e.prototype.type=r;var o=On(r);if(o.sub){if(o.sub!==rr){var a=function(s){var l=t[s.main];return l&&l[rr]||((l=t[s.main]={})[rr]=!0),l}(o);a[o.sub]=e}}else t[o.main]&&console.warn(o.main+" exists."),t[o.main]=e}return e},n.getClass=function(e,i,r){var o=t[e];if(o&&o[rr]&&(o=i?o[i]:null),r&&!o)throw new Error(i?"Component "+e+"."+(i||"")+" is used but not imported.":e+".type should be specified.");return o},n.getClassesByMainType=function(e){var i=On(e),r=[],o=t[i.main];return o&&o[rr]?A(o,function(a,s){s!==rr&&r.push(a)}):r.push(o),r},n.hasClass=function(e){var i=On(e);return!!t[i.main]},n.getAllClassMainTypes=function(){var e=[];return A(t,function(i,r){e.push(r)}),e},n.hasSubTypes=function(e){var i=On(e),r=t[i.main];return r&&r[rr]}}function $r(n,t){for(var e=0;e<n.length;e++)n[e][1]||(n[e][1]=n[e][0]);return t=t||!1,function(i,r,o){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(r&&Me(r,l)>=0||o&&Me(o,l)<0)){var u=i.getShallow(l,t);u!=null&&(a[n[s][0]]=u)}}return a}}var NT=$r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zT=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return NT(this,t,e)},n}(),_c=new Ko(50);function BT(n){if(typeof n=="string"){var t=_c.get(n);return t&&t.image}return n}function Fy(n,t,e,i,r){if(n){if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!e)return t;var o=_c.get(n),a={hostEl:e,cb:i,cbPayload:r};return o?!tl(t=o.image)&&o.pending.push(a):((t=jn.loadImage(n,Gy,Gy)).__zrImageSrc=n,_c.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function Gy(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<n.pending.length;t++){var e=n.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}n.pending.length=0}function tl(n){return n&&n.width&&n.height}var wc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Hy(n,t,e,i,r){if(!t)return"";var o=(n+"").split(`
- `);r=Wy(t,e,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Yy(o[a],r);return o.join(`
- `)}function Wy(n,t,e,i){var r=G({},i=i||{});r.font=t,e=fe(e,"..."),r.maxIterations=fe(i.maxIterations,2);var o=r.minChar=fe(i.minChar,0);r.cnCharWidth=Ft("\u56FD",t);var a=r.ascCharWidth=Ft("a",t);r.placeholder=fe(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<o&&s>=a;l++)s-=a;var u=Ft(e,t);return u>s&&(e="",u=0),s=n-u,r.ellipsis=e,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=n,r}function Yy(n,t){var e=t.containerWidth,i=t.font,r=t.contentWidth;if(!e)return"";var o=Ft(n,i);if(o<=e)return n;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){n+=t.ellipsis;break}var s=a===0?VT(n,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(n.length*r/o):0;o=Ft(n=n.substr(0,s),i)}return n===""&&(n=t.placeholder),n}function VT(n,t,e,i){for(var r=0,o=0,a=n.length;o<a&&r<t;o++){var s=n.charCodeAt(o);r+=0<=s&&s<=127?e:i}return o}var FT=function(){},Xy=function(n){this.tokens=[],n&&(this.tokens=n)},GT=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function bc(n,t,e,i,r){var o,a,s=t==="",l=r&&e.rich[r]||{},u=n.lines,h=l.font||e.font,c=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(l.width!=null&&l.width!=="auto"){var f=Ln(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=t.split(`
- `),c=!0),i.accumWidth=f}else{var g=Uy(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=t.split(`
- `);for(var y=0;y<o.length;y++){var v=o[y],m=new FT;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,typeof l.width=="number"?m.width=l.width:m.width=a?a[y]:Ft(v,h),y||c)u.push(new Xy([m]));else{var x=(u[u.length-1]||(u[0]=new Xy)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=m:(v||!_||s)&&x.push(m)}}}var HT=gn(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});function WT(n){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(n)||!!HT[n]}function Uy(n,t,e,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<n.length;c++){var p=n.charAt(c);if(p!==`
- `){var d=Ft(p,t),f=!i&&!WT(p);(o.length?h+d>e:r+h+d>e)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=n,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),o.length===1&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Sc="__zr_style_"+Math.round(10*Math.random()),or={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};or[Sc]=!0;var Zy=["z","z2","invisible"],YT=["invisible"],XT=function(n){function t(i){return n.call(this,i)||this}var e;return V(t,n),t.prototype._init=function(i){for(var r=Oe(i),o=0;o<r.length;o++){var a=r[o];a==="style"?this.useStyle(i[a]):n.prototype.attrKV.call(this,a,i[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(i,r,o,a){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&function(h,c,p){return Mc.copy(h.getBoundingRect()),h.transform&&Mc.applyTransform(h.transform),Tc.width=c,Tc.height=p,!Mc.intersect(Tc)}(this,i,r)||s&&!s[0]&&!s[3])return!1;if(o&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(i,r){return this.rectContain(i,r)},t.prototype.traverse=function(i,r){i.call(r,this)},t.prototype.rectContain=function(i,r){var o=this.transformCoordToLocal(i,r);return this.getBoundingRect().contain(o[0],o[1])},t.prototype.getPaintRect=function(){var i=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,o=this.getBoundingRect(),a=this.style,s=a.shadowBlur||0,l=a.shadowOffsetX||0,u=a.shadowOffsetY||0;i=this._paintRect||(this._paintRect=new me(0,0,0,0)),r?me.applyTransform(i,o,r):i.copy(o),(s||l||u)&&(i.width+=2*s+Math.abs(l),i.height+=2*s+Math.abs(u),i.x=Math.min(i.x,i.x+l-s),i.y=Math.min(i.y,i.y+u-s));var h=this.dirtyRectTolerance;i.isZero()||(i.x=Math.floor(i.x-h),i.y=Math.floor(i.y-h),i.width=Math.ceil(i.width+1+2*h),i.height=Math.ceil(i.height+1+2*h))}return i},t.prototype.setPrevPaintRect=function(i){i?(this._prevPaintRect=this._prevPaintRect||new me(0,0,0,0),this._prevPaintRect.copy(i)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(i){return this.animate("style",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(i,r){i!=="style"?n.prototype.attrKV.call(this,i,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(i,r){return typeof i=="string"?this.style[i]=r:G(this.style,i),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(i){i||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(i){return Yo(or,i)},t.prototype.useStyle=function(i){i[Sc]||(i=this.createStyle(i)),this.__inHover?this.__hoverStyle=i:this.style=i,this.dirtyStyle()},t.prototype.isStyleObject=function(i){return i[Sc]},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(i,r,Zy)},t.prototype._applyStateObj=function(i,r,o,a,s,l){n.prototype._applyStateObj.call(this,i,r,o,a,s,l);var u,h=!(r&&a);if(r&&r.style?s?a?u=r.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:o.style),this._mergeStyle(u,r.style)):h&&(u=o.style),u)if(s){var c=this.style;if(this.style=this.createStyle(h?{}:c),h)for(var p=Oe(c),d=0;d<p.length;d++)(g=p[d])in u&&(u[g]=u[g],this.style[g]=c[g]);var f=Oe(u);for(d=0;d<f.length;d++){var g=f[d];this.style[g]=this.style[g]}this._transitionState(i,{style:u},l,this.getAnimationStyleProps())}else this.useStyle(u);var y=this.__inHover?YT:Zy;for(d=0;d<y.length;d++)g=y[d],r&&r[g]!=null?this[g]=r[g]:h&&o[g]!=null&&(this[g]=o[g])},t.prototype._mergeStates=function(i){for(var r,o=n.prototype._mergeStates.call(this,i),a=0;a<i.length;a++){var s=i[a];s.style&&(r=r||{},this._mergeStyle(r,s.style))}return r&&(o.style=r),o},t.prototype._mergeStyle=function(i,r){return G(i,r),i},t.prototype.getAnimationStyleProps=function(){return nl},t.initDefaultProps=((e=t.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=2|Vt)),t}(vy),Mc=new me(0,0,0,0),Tc=new me(0,0,0,0);const ar=XT;var kt=Math.min,Lt=Math.max,Ic=Math.sin,Cc=Math.cos,sr=2*Math.PI,il=Yi(),rl=Yi(),ol=Yi();function jy(n,t,e,i,r,o){r[0]=kt(n,e),r[1]=kt(t,i),o[0]=Lt(n,e),o[1]=Lt(t,i)}var qy=[],Ky=[];function UT(n,t,e,i,r,o,a,s,l,u){var h=jg,c=tt,p=h(n,e,r,a,qy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=c(n,e,r,a,qy[d]);l[0]=kt(f,l[0]),u[0]=Lt(f,u[0])}for(p=h(t,i,o,s,Ky),d=0;d<p;d++){var g=c(t,i,o,s,Ky[d]);l[1]=kt(g,l[1]),u[1]=Lt(g,u[1])}l[0]=kt(n,l[0]),u[0]=Lt(n,u[0]),l[0]=kt(a,l[0]),u[0]=Lt(a,u[0]),l[1]=kt(t,l[1]),u[1]=Lt(t,u[1]),l[1]=kt(s,l[1]),u[1]=Lt(s,u[1])}function ZT(n,t,e,i,r,o,a,s){var l=Jg,u=dt,h=Lt(kt(l(n,e,r),1),0),c=Lt(kt(l(t,i,o),1),0),p=u(n,e,r,h),d=u(t,i,o,c);a[0]=kt(n,r,p),a[1]=kt(t,o,d),s[0]=Lt(n,r,p),s[1]=Lt(t,o,d)}function jT(n,t,e,i,r,o,a,s,l){var u=qn,h=Kn,c=Math.abs(r-o);if(c%sr<1e-4&&c>1e-4)return s[0]=n-e,s[1]=t-i,l[0]=n+e,void(l[1]=t+i);if(il[0]=Cc(r)*e+n,il[1]=Ic(r)*i+t,rl[0]=Cc(o)*e+n,rl[1]=Ic(o)*i+t,u(s,il,rl),h(l,il,rl),(r%=sr)<0&&(r+=sr),(o%=sr)<0&&(o+=sr),r>o&&!a?o+=sr:r<o&&a&&(r+=sr),a){var p=o;o=r,r=p}for(var d=0;d<o;d+=Math.PI/2)d>r&&(ol[0]=Cc(d)*e+n,ol[1]=Ic(d)*i+t,u(s,ol,s),h(l,ol,l))}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},lr=[],ur=[],Rn=[],Si=[],En=[],Nn=[],Ac=Math.min,Dc=Math.max,hr=Math.cos,cr=Math.sin,ei=Math.abs,kc=Math.PI,Mi=2*kc,Lc=typeof Float32Array<"u",pa=[];function Pc(n){return Math.round(n/kc*1e8)/1e8%2*kc}function Oc(n,t){var e=Pc(n[0]);e<0&&(e+=Mi);var i=e-n[0],r=n[1];r+=i,!t&&r-e>=Mi?r=e+Mi:t&&e-r>=Mi?r=e-Mi:!t&&e>r?r=e+(Mi-Pc(e-r)):t&&e<r&&(r=e-(Mi-Pc(r-e))),n[0]=e,n[1]=r}var qT=function(){function n(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=ei(i/Zs/t)||0,this._uy=ei(i/Zs/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ee.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var i=ei(t-this._xi),r=ei(e-this._yi),o=i>this._ux||r>this._uy;if(this.addData(Ee.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=i*i+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,i,r,o,a){return this._drawPendingPt(),this.addData(Ee.C,t,e,i,r,o,a),this._ctx&&this._ctx.bezierCurveTo(t,e,i,r,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,i,r){return this._drawPendingPt(),this.addData(Ee.Q,t,e,i,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,r),this._xi=i,this._yi=r,this},n.prototype.arc=function(t,e,i,r,o,a){this._drawPendingPt(),pa[0]=r,pa[1]=o,Oc(pa,a),r=pa[0];var s=(o=pa[1])-r;return this.addData(Ee.A,t,e,i,i,r,s,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,r,o,a),this._xi=hr(o)*i+t,this._yi=cr(o)*i+e,this},n.prototype.arcTo=function(t,e,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,r,o),this},n.prototype.rect=function(t,e,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,r),this.addData(Ee.R,t,e,i,r),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},n.prototype.fill=function(t){t&&t.fill(),this.toStatic()},n.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Lc||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},n.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,r=this._len,o=0;o<e;o++)i+=t[o].len();for(Lc&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+i)),o=0;o<e;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[r++]=a[s];this._len=r},n.prototype.addData=function(t,e,i,r,o,a,s,l,u){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var c=0;c<arguments.length;c++)h[this._len++]=arguments[c]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Lc&&this._len>11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=En[0]=En[1]=Number.MAX_VALUE,Si[0]=Si[1]=Nn[0]=Nn[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,r=0,o=0,a=0;for(t=0;t<this._len;){var s=e[t++],l=t===1;switch(l&&(o=i=e[t],a=r=e[t+1]),s){case Ee.M:i=o=e[t++],r=a=e[t++],En[0]=o,En[1]=a,Nn[0]=o,Nn[1]=a;break;case Ee.L:jy(i,r,e[t],e[t+1],En,Nn),i=e[t++],r=e[t++];break;case Ee.C:UT(i,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],En,Nn),i=e[t++],r=e[t++];break;case Ee.Q:ZT(i,r,e[t++],e[t++],e[t],e[t+1],En,Nn),i=e[t++],r=e[t++];break;case Ee.A:var u=e[t++],h=e[t++],c=e[t++],p=e[t++],d=e[t++],f=e[t++]+d;t+=1;var g=!e[t++];l&&(o=hr(d)*c+u,a=cr(d)*p+h),jT(u,h,c,p,d,f,g,En,Nn),i=hr(f)*c+u,r=cr(f)*p+h;break;case Ee.R:jy(o=i=e[t++],a=r=e[t++],o+e[t++],a+e[t++],En,Nn);break;case Ee.Z:i=o,r=a}qn(Rn,Rn,En),Kn(Si,Si,Nn)}return t===0&&(Rn[0]=Rn[1]=Si[0]=Si[1]=0),new me(Rn[0],Rn[1],Si[0]-Rn[0],Si[1]-Rn[1])},n.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,r=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,h=0,c=0,p=0;p<e;){var d=t[p++],f=p===1;f&&(s=o=t[p],l=a=t[p+1]);var g=-1;switch(d){case Ee.M:o=s=t[p++],a=l=t[p++];break;case Ee.L:var y=t[p++],v=(_=t[p++])-a;(ei(R=y-o)>i||ei(v)>r||p===e-1)&&(g=Math.sqrt(R*R+v*v),o=y,a=_);break;case Ee.C:var m=t[p++],x=t[p++],_=(y=t[p++],t[p++]),b=t[p++],w=t[p++];g=KM(o,a,m,x,y,_,b,w,10),o=b,a=w;break;case Ee.Q:g=JM(o,a,m=t[p++],x=t[p++],y=t[p++],_=t[p++],10),o=y,a=_;break;case Ee.A:var S=t[p++],M=t[p++],T=t[p++],I=t[p++],C=t[p++],D=t[p++],L=D+C;p+=1,f&&(s=hr(C)*T+S,l=cr(C)*I+M),g=Dc(T,I)*Ac(Mi,Math.abs(D)),o=hr(L)*T+S,a=cr(L)*I+M;break;case Ee.R:s=o=t[p++],l=a=t[p++],g=2*t[p++]+2*t[p++];break;case Ee.Z:var R=s-o;v=l-a,g=Math.sqrt(R*R+v*v),o=s,a=l}g>=0&&(u[c++]=g,h+=g)}return this._pathLen=h,h},n.prototype.rebuildPath=function(t,e){var i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=e<1,m=0,x=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),u=this._pathSegLen,h=e*this._pathLen))e:for(var b=0;b<y;){var w=d[b++],S=b===1;switch(S&&(i=o=d[b],r=a=d[b+1]),w!==Ee.L&&_>0&&(t.lineTo(c,p),_=0),w){case Ee.M:i=o=d[b++],r=a=d[b++],t.moveTo(o,a);break;case Ee.L:s=d[b++],l=d[b++];var M=ei(s-o),T=ei(l-a);if(M>f||T>g){if(v){if(m+($=u[x++])>h){var I=(h-m)/$;t.lineTo(o*(1-I)+s*I,a*(1-I)+l*I);break e}m+=$}t.lineTo(s,l),o=s,a=l,_=0}else{var C=M*M+T*T;C>_&&(c=s,p=l,_=C)}break;case Ee.C:var D=d[b++],L=d[b++],R=d[b++],P=d[b++],E=d[b++],k=d[b++];if(v){if(m+($=u[x++])>h){Bs(o,D,R,E,I=(h-m)/$,lr),Bs(a,L,P,k,I,ur),t.bezierCurveTo(lr[1],ur[1],lr[2],ur[2],lr[3],ur[3]);break e}m+=$}t.bezierCurveTo(D,L,R,P,E,k),o=E,a=k;break;case Ee.Q:if(D=d[b++],L=d[b++],R=d[b++],P=d[b++],v){if(m+($=u[x++])>h){Vs(o,D,R,I=(h-m)/$,lr),Vs(a,L,P,I,ur),t.quadraticCurveTo(lr[1],ur[1],lr[2],ur[2]);break e}m+=$}t.quadraticCurveTo(D,L,R,P),o=R,a=P;break;case Ee.A:var O=d[b++],N=d[b++],B=d[b++],z=d[b++],U=d[b++],Z=d[b++],F=d[b++],W=!d[b++],K=B>z?B:z,se=ei(B-z)>.001,he=U+Z,ie=!1;if(v&&(m+($=u[x++])>h&&(he=U+Z*(h-m)/$,ie=!0),m+=$),se&&t.ellipse?t.ellipse(O,N,B,z,F,U,he,W):t.arc(O,N,K,U,he,W),ie)break e;S&&(i=hr(U)*B+O,r=cr(U)*z+N),o=hr(he)*B+O,a=cr(he)*z+N;break;case Ee.R:i=o=d[b],r=a=d[b+1],s=d[b++],l=d[b++];var q=d[b++],J=d[b++];if(v){if(m+($=u[x++])>h){var H=h-m;t.moveTo(s,l),t.lineTo(s+Ac(H,q),l),(H-=q)>0&&t.lineTo(s+q,l+Ac(H,J)),(H-=J)>0&&t.lineTo(s+Dc(q-H,0),l+J),(H-=q)>0&&t.lineTo(s,l+Dc(J-H,0));break e}m+=$}t.rect(s,l,q,J);break;case Ee.Z:if(v){var $;if(m+($=u[x++])>h){I=(h-m)/$,t.lineTo(o*(1-I)+i*I,a*(1-I)+r*I);break e}m+=$}t.closePath(),o=i,a=r}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=Ee,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const Ti=qT;function Qr(n,t,e,i,r,o,a){if(r===0)return!1;var s=r,l=0;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>n+s&&o>e+s||o<n-s&&o<e-s)return!1;if(n===e)return Math.abs(o-n)<=s/2;var u=(l=(t-i)/(n-e))*o-a+(n*i-e*t)/(n-e);return u*u/(l*l+1)<=s/2*s/2}function KT(n,t,e,i,r,o,a,s,l,u,h){if(l===0)return!1;var c=l;return!(h>t+c&&h>i+c&&h>o+c&&h>s+c||h<t-c&&h<i-c&&h<o-c&&h<s-c||u>n+c&&u>e+c&&u>r+c&&u>a+c||u<n-c&&u<e-c&&u<r-c&&u<a-c)&&qg(n,t,e,i,r,o,a,s,u,h,null)<=c/2}function JT(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var u=a;return!(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>n+u&&s>e+u&&s>r+u||s<n-u&&s<e-u&&s<r-u)&&$g(n,t,e,i,r,o,s,l,null)<=u/2}var Jy=2*Math.PI;function ti(n){return(n%=Jy)<0&&(n+=Jy),n}var da=2*Math.PI;function $T(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=t;var h=Math.sqrt(s*s+l*l);if(h-u>e||h+u<e)return!1;if(Math.abs(i-r)%da<1e-4)return!0;if(o){var c=i;i=ti(r),r=ti(c)}else i=ti(i),r=ti(r);i>r&&(r+=da);var p=Math.atan2(l,s);return p<0&&(p+=da),p>=i&&p<=r||p+da>=i&&p+da<=r}function ni(n,t,e,i,r,o){if(o>t&&o>i||o<t&&o<i||i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;a!==1&&a!==0||(s=i<t?.5:-.5);var l=a*(e-n)+n;return l===r?1/0:l>r?s:0}var Ii=Ti.CMD,pr=2*Math.PI,QT=1e-4,_t=[-1,-1,-1],en=[-1,-1];function eI(n,t,e,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var h,c=zs(t,i,o,s,u,_t);if(c===0)return 0;for(var p=0,d=-1,f=void 0,g=void 0,y=0;y<c;y++){var v=_t[y],m=v===0||v===1?.5:1;tt(n,e,r,a,v)<l||(d<0&&(d=jg(t,i,o,s,en),en[1]<en[0]&&d>1&&(h=void 0,h=en[0],en[0]=en[1],en[1]=h),f=tt(t,i,o,s,en[0]),d>1&&(g=tt(t,i,o,s,en[1]))),d===2?v<en[0]?p+=f<t?m:-m:v<en[1]?p+=g<f?m:-m:p+=s<g?m:-m:v<en[0]?p+=f<t?m:-m:p+=s<f?m:-m)}return p}function tI(n,t,e,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=function(f,g,y,v,m){var x=f-2*g+y,_=2*(g-f),b=f-v,w=0;if(_i(x))Ug(_)&&(M=-b/_)>=0&&M<=1&&(m[w++]=M);else{var S=_*_-4*x*b;if(_i(S))(M=-_/(2*x))>=0&&M<=1&&(m[w++]=M);else if(S>0){var M,T=xi(S),I=(-_-T)/(2*x);(M=(-_+T)/(2*x))>=0&&M<=1&&(m[w++]=M),I>=0&&I<=1&&(m[w++]=I)}}return w}(t,i,o,s,_t);if(l===0)return 0;var u=Jg(t,i,o);if(u>=0&&u<=1){for(var h=0,c=dt(t,i,o,u),p=0;p<l;p++){var d=_t[p]===0||_t[p]===1?.5:1;dt(n,e,r,_t[p])<a||(_t[p]<u?h+=c<t?d:-d:h+=o<c?d:-d)}return h}return d=_t[0]===0||_t[0]===1?.5:1,dt(n,e,r,_t[0])<a?0:o<t?d:-d}function nI(n,t,e,i,r,o,a,s){if((s-=t)>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);_t[0]=-l,_t[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=pr-1e-4){i=0,r=pr;var h=o?1:-1;return a>=_t[0]+n&&a<=_t[1]+n?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=pr,r+=pr);for(var p=0,d=0;d<2;d++){var f=_t[d];if(f+n>a){var g=Math.atan2(s,f);h=o?1:-1,g<0&&(g=pr+g),(g>=i&&g<=r||g+pr>=i&&g+pr<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function $y(n,t,e,i,r){for(var o,a,s,l,u=n.data,h=n.len(),c=0,p=0,d=0,f=0,g=0,y=0;y<h;){var v=u[y++],m=y===1;switch(v===Ii.M&&y>1&&(e||(c+=ni(p,d,f,g,i,r))),m&&(f=p=u[y],g=d=u[y+1]),v){case Ii.M:p=f=u[y++],d=g=u[y++];break;case Ii.L:if(e){if(Qr(p,d,u[y],u[y+1],t,i,r))return!0}else c+=ni(p,d,u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ii.C:if(e){if(KT(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],t,i,r))return!0}else c+=eI(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ii.Q:if(e){if(JT(p,d,u[y++],u[y++],u[y],u[y+1],t,i,r))return!0}else c+=tI(p,d,u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ii.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var T=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=ni(p,d,o,a,i,r);var I=(i-x)*w/b+x;if(e){if($T(x,_,w,S,S+M,T,t,I,r))return!0}else c+=nI(x,_,w,S,S+M,T,I,r);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case Ii.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],e){if(Qr(f,g,o,g,t,i,r)||Qr(o,g,o,a,t,i,r)||Qr(o,a,f,a,t,i,r)||Qr(f,a,f,g,t,i,r))return!0}else c+=ni(o,g,o,a,i,r),c+=ni(f,a,f,g,i,r);break;case Ii.Z:if(e){if(Qr(p,d,f,g,t,i,r))return!0}else c+=ni(p,d,f,g,i,r);p=f,d=g}}return e||(s=d,l=g,Math.abs(s-l)<QT)||(c+=ni(p,d,f,g,i,r)||0),c!==0}var Qy=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},or),iI={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nl.style)},Rc=ta.concat(["invisible","culling","z","z2","zlevel","parent"]),rI=function(n){function t(i){return n.call(this,i)||this}var e;return V(t,n),t.prototype.update=function(){var i=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(u){i.buildPath(u,i.shape)}),o.silent=!0;var a=o.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l<Rc.length;++l)o[Rc[l]]=this[Rc[l]];o.__dirty|=Vt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(i){var r=Oe(i);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var a=0;a<r.length;a++){var s=r[a],l=i[s];s==="style"?this.style?G(this.style,l):this.useStyle(l):s==="shape"?G(this.shape,l):n.prototype.attrKV.call(this,s,l)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var i=this.style.fill;if(i!=="none"){if(j(i)){var r=Qo(i,0);return r>.5?tc:r>.2?"#eee":nc}if(i)return nc}return tc},t.prototype.getInsideTextStroke=function(i){var r=this.style.fill;if(j(r)){var o=this.__zr;if(!(!o||!o.isDarkMode())==Qo(i,0)<.4)return r}},t.prototype.buildPath=function(i,r,o){},t.prototype.pathUpdated=function(){this.__dirty&=~Yr},t.prototype.getUpdatedPathProxy=function(i){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,i),this.path},t.prototype.createPathProxy=function(){this.path=new Ti(!1)},t.prototype.hasStroke=function(){var i=this.style,r=i.stroke;return!(r==null||r==="none"||!(i.lineWidth>0))},t.prototype.hasFill=function(){var i=this.style.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var i=this._rect,r=this.style,o=!i;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&Yr)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),i=s.getBoundingRect()}if(this._rect=i,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=i.clone());if(this.__dirty||o){l.copy(i);var u=r.strokeNoScale?this.getLineScale():1,h=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;h=Math.max(h,c??4)}u>1e-10&&(l.width+=h/u,l.height+=h/u,l.x-=h/u/2,l.y-=h/u/2)}return l}return i},t.prototype.contain=function(i,r){var o=this.transformCoordToLocal(i,r),a=this.getBoundingRect(),s=this.style;if(i=o[0],r=o[1],a.contain(i,r)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,h=s.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),function(c,p,d,f){return $y(c,p,!0,d,f)}(l,u/h,i,r)))return!0}if(this.hasFill())return function(c,p,d){return $y(c,0,!1,p,d)}(l,i,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(i){return this.animate("shape",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():i==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(i,r){i==="shape"?this.setShape(r):n.prototype.attrKV.call(this,i,r)},t.prototype.setShape=function(i,r){var o=this.shape;return o||(o=this.shape={}),typeof i=="string"?o[i]=r:G(o,i),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yr)},t.prototype.createStyle=function(i){return Yo(Qy,i)},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.shape&&!r.shape&&(r.shape=G({},this.shape))},t.prototype._applyStateObj=function(i,r,o,a,s,l){n.prototype._applyStateObj.call(this,i,r,o,a,s,l);var u,h=!(r&&a);if(r&&r.shape?s?a?u=r.shape:(u=G({},o.shape),G(u,r.shape)):(u=G({},a?this.shape:o.shape),G(u,r.shape)):h&&(u=o.shape),u)if(s){this.shape=G({},this.shape);for(var c={},p=Oe(u),d=0;d<p.length;d++){var f=p[d];typeof u[f]=="object"?this.shape[f]=u[f]:c[f]=u[f]}this._transitionState(i,{shape:c},l)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(i){for(var r,o=n.prototype._mergeStates.call(this,i),a=0;a<i.length;a++){var s=i[a];s.shape&&(r=r||{},this._mergeStyle(r,s.shape))}return r&&(o.shape=r),o},t.prototype.getAnimationStyleProps=function(){return iI},t.prototype.isZeroArea=function(){return!1},t.extend=function(i){var r=function(a){function s(l){var u=a.call(this,l)||this;return i.init&&i.init.call(u,l),u}return V(s,a),s.prototype.getDefaultStyle=function(){return oe(i.style)},s.prototype.getDefaultShape=function(){return oe(i.shape)},s}(t);for(var o in i)typeof i[o]=="function"&&(r.prototype[o]=i[o]);return r},t.initDefaultProps=((e=t.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=2|Vt|Yr)),t}(ar);const De=rI;var oI=le({strokeFirst:!0,font:Hi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qy),ev=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!=="none"},t.prototype.createStyle=function(e){return Yo(oI,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var r=na(i,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var o=e.lineWidth;r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o}this._rect=r}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(ar);ev.prototype.type="tspan";const al=ev;var aI=le({x:0,y:0},or),sI={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nl.style)},tv=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.createStyle=function(e){return Yo(aI,e)},t.prototype._getSize=function(e){var i=this.style,r=i[e];if(r!=null)return r;var o,a=(o=i.image)&&typeof o!="string"&&o.width&&o.height?i.image:this.__image;if(!a)return 0;var s=e==="width"?"height":"width",l=i[s];return l==null?a[e]:a[e]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return sI},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new me(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ar);tv.prototype.type="image";const Gt=tv;var eo=Math.round;function nv(n,t,e){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;n.x1=i,n.x2=r,n.y1=o,n.y2=a;var s=e&&e.lineWidth;return s&&(eo(2*i)===eo(2*r)&&(n.x1=n.x2=dr(i,s,!0)),eo(2*o)===eo(2*a)&&(n.y1=n.y2=dr(o,s,!0))),n}}function iv(n,t,e){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;n.x=i,n.y=r,n.width=o,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=dr(i,s,!0),n.y=dr(r,s,!0),n.width=Math.max(dr(i+o,s,!1)-n.x,o===0?0:1),n.height=Math.max(dr(r+a,s,!1)-n.y,a===0?0:1)),n}}function dr(n,t,e){if(!t)return n;var i=eo(2*n);return(i+eo(t))%2==0?i/2:(i+(e?1:-1))/2}var lI=function(){this.x=0,this.y=0,this.width=0,this.height=0},uI={},rv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new lI},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=iv(uI,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?function(u,h){var c,p,d,f,g,y=h.x,v=h.y,m=h.width,x=h.height,_=h.r;m<0&&(y+=m,m=-m),x<0&&(v+=x,x=-x),typeof _=="number"?c=p=d=f=_:_ instanceof Array?_.length===1?c=p=d=f=_[0]:_.length===2?(c=d=_[0],p=f=_[1]):_.length===3?(c=_[0],p=f=_[1],d=_[2]):(c=_[0],p=_[1],d=_[2],f=_[3]):c=p=d=f=0,c+p>m&&(c*=m/(g=c+p),p*=m/g),d+f>m&&(d*=m/(g=d+f),f*=m/g),p+d>x&&(p*=x/(g=p+d),d*=x/g),c+f>x&&(c*=x/(g=c+f),f*=x/g),u.moveTo(y+c,v),u.lineTo(y+m-p,v),p!==0&&u.arc(y+m-p,v+p,p,-Math.PI/2,0),u.lineTo(y+m,v+x-d),d!==0&&u.arc(y+m-d,v+x-d,d,0,Math.PI/2),u.lineTo(y+f,v+x),f!==0&&u.arc(y+f,v+x-f,f,Math.PI/2,Math.PI),u.lineTo(y,v+c),c!==0&&u.arc(y+c,v+c,c,Math.PI,1.5*Math.PI)}(e,i):e.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(De);rv.prototype.type="rect";const Ie=rv;var ov={fill:"#000"},hI={style:le({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},nl.style)},av=function(n){function t(e){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=ov,i.attr(e),i}return V(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):n.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):n.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,uv(e=this.style),A(e.rich,uv),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new me(0,0,0,0),i=this._children,r=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(e.copy(l),e.applyTransform(u),(o=o||e.clone()).union(e)):(o=o||l.clone()).union(l)}this._rect=o||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ov},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,i){if(!i)return e;var r=i.rich,o=e.rich||r&&{};return G(e,i),r&&o?(this._mergeRich(o,r),e.rich=o):o&&(e.rich=o),e},t.prototype._mergeRich=function(e,i){for(var r=Oe(i),o=0;o<r.length;o++){var a=r[o];e[a]=e[a]||{},G(e[a],i[a])}},t.prototype.getAnimationStyleProps=function(){return hI},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return i&&i instanceof e||(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Hi,r=e.padding,o=function(E,k){E!=null&&(E+="");var O,N=k.overflow,B=k.padding,z=k.font,U=N==="truncate",Z=oc(z),F=fe(k.lineHeight,Z),W=!!k.backgroundColor,K=k.lineOverflow==="truncate",se=k.width,he=(O=se==null||N!=="break"&&N!=="breakAll"?E?E.split(`
- `):[]:E?Uy(E,k.font,se,N==="breakAll",0).lines:[]).length*F,ie=fe(k.height,he);if(he>ie&&K){var q=Math.floor(ie/F);O=O.slice(0,q)}if(E&&U&&se!=null)for(var J=Wy(se,z,k.ellipsis,{minChar:k.truncateMinChar,placeholder:k.placeholder}),H=0;H<O.length;H++)O[H]=Yy(O[H],J);var $=ie,re=0;for(H=0;H<O.length;H++)re=Math.max(Ft(O[H],z),re);se==null&&(se=re);var Ce=re;return B&&($+=B[0]+B[2],Ce+=B[1]+B[3],se+=B[1]+B[3]),W&&(Ce=se),{lines:O,height:ie,outerWidth:Ce,outerHeight:$,lineHeight:F,calculatedLineHeight:Z,contentWidth:re,contentHeight:he,width:se}}(dv(e),e),a=Ec(e),s=!!e.backgroundColor,l=o.outerHeight,u=o.outerWidth,h=o.contentWidth,c=o.lines,p=o.lineHeight,d=this._defaultStyle,f=e.x||0,g=e.y||0,y=e.align||d.align||"left",v=e.verticalAlign||d.verticalAlign||"top",m=f,x=qr(g,o.contentHeight,v);if(a||r){var _=ia(f,u,y),b=qr(g,l,v);a&&this._renderBackground(e,e,_,b,u,l)}x+=p/2,r&&(m=pv(f,y,r),v==="top"?x+=r[0]:v==="bottom"&&(x-=r[2]));for(var w=0,S=!1,M=cv("fill"in e?e.fill:(S=!0,d.fill)),T=hv("stroke"in e?e.stroke:s||d.autoStroke&&!S?null:(w=2,d.stroke)),I=e.textShadowBlur>0,C=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),D=o.calculatedLineHeight,L=0;L<c.length;L++){var R=this._getOrCreateChild(al),P=R.createStyle();R.useStyle(P),P.text=c[L],P.x=m,P.y=x,y&&(P.textAlign=y),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,I&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=T,P.fill=M,T&&(P.lineWidth=e.lineWidth||w,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=i,lv(P,e),x+=p,C&&R.setBoundingRect(new me(ia(P.x,e.width,P.textAlign),qr(P.y,D,P.textBaseline),h,D))}},t.prototype._updateRichTexts=function(){var e=this.style,i=function(R,P){var E=new GT;if(R!=null&&(R+=""),!R)return E;for(var k,O=P.width,N=P.height,B=P.overflow,z=B!=="break"&&B!=="breakAll"||O==null?null:{width:O,accumWidth:0,breakAll:B==="breakAll"},U=wc.lastIndex=0;(k=wc.exec(R))!=null;){var Z=k.index;Z>U&&bc(E,R.substring(U,Z),P,z),bc(E,k[2],P,z,k[1]),U=wc.lastIndex}U<R.length&&bc(E,R.substring(U,R.length),P,z);var F=[],W=0,K=0,se=P.padding,he=B==="truncate",ie=P.lineOverflow==="truncate";function q(Ke,ht,Ye){Ke.width=ht,Ke.lineHeight=Ye,W+=Ye,K=Math.max(K,ht)}e:for(var J=0;J<E.lines.length;J++){for(var H=E.lines[J],$=0,re=0,Ce=0;Ce<H.tokens.length;Ce++){var ve=(ce=H.tokens[Ce]).styleName&&P.rich[ce.styleName]||{},_e=ce.textPadding=ve.padding,be=_e?_e[1]+_e[3]:0,Le=ce.font=ve.font||P.font;ce.contentHeight=oc(Le);var Se=fe(ve.height,ce.contentHeight);if(ce.innerHeight=Se,_e&&(Se+=_e[0]+_e[2]),ce.height=Se,ce.lineHeight=mi(ve.lineHeight,P.lineHeight,Se),ce.align=ve&&ve.align||P.align,ce.verticalAlign=ve&&ve.verticalAlign||"middle",ie&&N!=null&&W+ce.lineHeight>N){Ce>0?(H.tokens=H.tokens.slice(0,Ce),q(H,re,$),E.lines=E.lines.slice(0,J+1)):E.lines=E.lines.slice(0,J);break e}var Pe=ve.width,Ve=Pe==null||Pe==="auto";if(typeof Pe=="string"&&Pe.charAt(Pe.length-1)==="%")ce.percentWidth=Pe,F.push(ce),ce.contentWidth=Ft(ce.text,Le);else{if(Ve){var qe=ve.backgroundColor,Fe=qe&&qe.image;Fe&&tl(Fe=BT(Fe))&&(ce.width=Math.max(ce.width,Fe.width*Se/Fe.height))}var Ge=he&&O!=null?O-re:null;Ge!=null&&Ge<ce.width?!Ve||Ge<be?(ce.text="",ce.width=ce.contentWidth=0):(ce.text=Hy(ce.text,Ge-be,Le,P.ellipsis,{minChar:P.truncateMinChar}),ce.width=ce.contentWidth=Ft(ce.text,Le)):ce.contentWidth=Ft(ce.text,Le)}ce.width+=be,re+=ce.width,ve&&($=Math.max($,ce.lineHeight))}q(H,re,$)}for(E.outerWidth=E.width=fe(O,K),E.outerHeight=E.height=fe(N,W),E.contentHeight=W,E.contentWidth=K,se&&(E.outerWidth+=se[1]+se[3],E.outerHeight+=se[0]+se[2]),J=0;J<F.length;J++){var ce,vt=(ce=F[J]).percentWidth;ce.width=parseInt(vt,10)/100*E.width}return E}(dv(e),e),r=i.width,o=i.outerWidth,a=i.outerHeight,s=e.padding,l=e.x||0,u=e.y||0,h=this._defaultStyle,c=e.align||h.align,p=e.verticalAlign||h.verticalAlign,d=ia(l,o,c),f=qr(u,a,p),g=d,y=f;s&&(g+=s[3],y+=s[0]);var v=g+r;Ec(e)&&this._renderBackground(e,e,d,f,o,a);for(var m=!!e.backgroundColor,x=0;x<i.lines.length;x++){for(var _=i.lines[x],b=_.tokens,w=b.length,S=_.lineHeight,M=_.width,T=0,I=g,C=v,D=w-1,L=void 0;T<w&&(!(L=b[T]).align||L.align==="left");)this._placeToken(L,e,S,y,I,"left",m),M-=L.width,I+=L.width,T++;for(;D>=0&&(L=b[D]).align==="right";)this._placeToken(L,e,S,y,C,"right",m),M-=L.width,C-=L.width,D--;for(I+=(r-(I-g)-(v-C)-M)/2;T<=D;)L=b[T],this._placeToken(L,e,S,y,I+L.width/2,"center",m),I+=L.width,T++;y+=S}},t.prototype._placeToken=function(e,i,r,o,a,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,c=o+r/2;h==="top"?c=o+e.height/2:h==="bottom"&&(c=o+r-e.height/2),!e.isLineHolder&&Ec(u)&&this._renderBackground(u,i,s==="right"?a-e.width:s==="center"?a-e.width/2:a,c-e.height/2,e.width,e.height);var p=!!u.backgroundColor,d=e.textPadding;d&&(a=pv(a,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(al),g=f.createStyle();f.useStyle(g);var y=this._defaultStyle,v=!1,m=0,x=cv("fill"in u?u.fill:"fill"in i?i.fill:(v=!0,y.fill)),_=hv("stroke"in u?u.stroke:"stroke"in i?i.stroke:p||l||y.autoStroke&&!v?null:(m=2,y.stroke)),b=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=a,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Hi,g.opacity=mi(u.opacity,i.opacity,1),lv(g,u),_&&(g.lineWidth=mi(u.lineWidth,i.lineWidth,m),g.lineDash=fe(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new me(ia(g.x,w,g.textAlign),qr(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,i,r,o,a,s){var l,u,h,c=e.backgroundColor,p=e.borderWidth,d=e.borderColor,f=c&&c.image,g=c&&!f,y=e.borderRadius,v=this;if(g||e.lineHeight||p&&d){(l=this._getOrCreateChild(Ie)).useStyle(l.createStyle()),l.style.fill=null;var m=l.shape;m.x=r,m.y=o,m.width=a,m.height=s,m.r=y,l.dirtyShape()}if(g)(h=l.style).fill=c||null,h.fillOpacity=fe(e.fillOpacity,1);else if(f){(u=this._getOrCreateChild(Gt)).onload=function(){v.dirtyStyle()};var x=u.style;x.image=c.image,x.x=r,x.y=o,x.width=a,x.height=s}p&&d&&((h=l.style).lineWidth=p,h.stroke=d,h.strokeOpacity=fe(e.strokeOpacity,1),h.lineDash=e.borderDash,h.lineDashOffset=e.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var _=(l||u).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=mi(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return function(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}(e)&&(i=[e.fontStyle,e.fontWeight,dI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Xt(i)||e.textFont||e.font},t}(ar),cI={left:!0,right:1,center:1},pI={top:1,bottom:1,middle:1},sv=["fontStyle","fontWeight","fontSize","fontFamily"];function dI(n){return typeof n!="string"||n.indexOf("px")===-1&&n.indexOf("rem")===-1&&n.indexOf("em")===-1?isNaN(+n)?"12px":n+"px":n}function lv(n,t){for(var e=0;e<sv.length;e++){var i=sv[e],r=t[i];r!=null&&(n[i]=r)}}function uv(n){if(n){n.font=av.makeFont(n);var t=n.align;t==="middle"&&(t="center"),n.align=t==null||cI[t]?t:"left";var e=n.verticalAlign;e==="center"&&(e="middle"),n.verticalAlign=e==null||pI[e]?e:"top",n.padding&&(n.padding=xh(n.padding))}}function hv(n,t){return n==null||t<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function cv(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function pv(n,t,e){return t==="right"?n-e[1]:t==="center"?n+e[3]/2-e[1]/2:n+e[3]}function dv(n){var t=n.text;return t!=null&&(t+=""),t}function Ec(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const ke=av;var ye=Ne(),Nc=function(n,t,e,i){if(i){var r=ye(i);r.dataIndex=e,r.dataType=t,r.seriesIndex=n,r.ssrType="chart",i.type==="group"&&i.traverse(function(o){var a=ye(o);a.seriesIndex=n,a.dataIndex=e,a.dataType=t,a.ssrType="chart"})}},fv=1,gv={},yv=Ne(),zc=Ne(),Bc=0,fa=1,sl=2,tn=["emphasis","blur","select"],ll=["normal","emphasis","blur","select"],vv=10,fI=9,fr="highlight",ul="downplay",ga="select",hl="unselect",ya="toggleSelect";function to(n){return n!=null&&n!=="none"}function cl(n,t,e){n.onHoverStateChange&&(n.hoverState||0)!==e&&n.onHoverStateChange(t),n.hoverState=e}function mv(n){cl(n,"emphasis",sl)}function xv(n){n.hoverState===sl&&cl(n,"normal",Bc)}function Vc(n){cl(n,"blur",fa)}function _v(n){n.hoverState===fa&&cl(n,"normal",Bc)}function gI(n){n.selected=!0}function yI(n){n.selected=!1}function wv(n,t,e){t(n,e)}function ii(n,t,e){wv(n,t,e),n.isGroup&&n.traverse(function(i){wv(i,t,e)})}function pl(n,t){switch(t){case"emphasis":n.hoverState=sl;break;case"normal":n.hoverState=Bc;break;case"blur":n.hoverState=fa;break;case"select":n.selected=!0}}function Fc(n,t){var e=this.states[n];if(this.style){if(n==="emphasis")return function(i,r,o,a){var s=o&&Me(o,"select")>=0,l=!1;if(i instanceof De){var u=yv(i),h=s&&u.selectFill||u.normalFill,c=s&&u.selectStroke||u.normalStroke;if(to(h)||to(c)){var p=(a=a||{}).style||{};p.fill==="inherit"?(l=!0,a=G({},a),(p=G({},p)).fill=h):!to(p.fill)&&to(h)?(l=!0,a=G({},a),(p=G({},p)).fill=Xh(h)):!to(p.stroke)&&to(c)&&(l||(a=G({},a),p=G({},p)),p.stroke=Xh(c)),a.style=p}}if(a&&a.z2==null){l||(a=G({},a));var d=i.z2EmphasisLift;a.z2=i.z2+(d??vv)}return a}(this,0,t,e);if(n==="blur")return function(i,r,o){var a=Me(i.currentStates,r)>=0,s=i.style.opacity,l=a?null:function(h,c,p,d){for(var f=h.style,g={},y=0;y<c.length;y++){var v=c[y],m=f[v];g[v]=m??(d&&d[v])}for(y=0;y<h.animators.length;y++){var x=h.animators[y];x.__fromStateTransition&&x.__fromStateTransition.indexOf(p)<0&&x.targetName==="style"&&x.saveTo(g,c)}return g}(i,["opacity"],r,{opacity:1}),u=(o=o||{}).style||{};return u.opacity==null&&(o=G({},o),u=G({opacity:a?s:.1*l.opacity},u),o.style=u),o}(this,n,e);if(n==="select")return function(i,r,o){if(o&&o.z2==null){o=G({},o);var a=i.z2SelectLift;o.z2=i.z2+(a??fI)}return o}(this,0,e)}return e}function dl(n){n.stateProxy=Fc;var t=n.getTextContent(),e=n.getTextGuideLine();t&&(t.stateProxy=Fc),e&&(e.stateProxy=Fc)}function bv(n,t){!Cv(n,t)&&!n.__highByOuter&&ii(n,mv)}function Sv(n,t){!Cv(n,t)&&!n.__highByOuter&&ii(n,xv)}function no(n,t){n.__highByOuter|=1<<(t||0),ii(n,mv)}function io(n,t){!(n.__highByOuter&=~(1<<(t||0)))&&ii(n,xv)}function Mv(n){ii(n,_v)}function Tv(n){ii(n,gI)}function Iv(n){ii(n,yI)}function Cv(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function Av(n){var t=n.getModel(),e=[],i=[];t.eachComponent(function(r,o){var a=zc(o),s=r==="series",l=s?n.getViewOfSeriesModel(o):n.getViewOfComponentModel(o);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){_v(u)}),s&&e.push(o)),a.isBlured=!1}),A(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(e,!1,t)})}function Gc(n,t,e,i){var r=i.getModel();function o(u,h){for(var c=0;c<h.length;c++){var p=u.getItemGraphicEl(h[c]);p&&Mv(p)}}if(e=e||"coordinateSystem",n!=null&&t&&t!=="none"){var a=r.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(u){var h=a===u,c=u.coordinateSystem;if(c&&c.master&&(c=c.master),!(e==="series"&&!h||e==="coordinateSystem"&&!(c&&s?c===s:h)||t==="series"&&h)){if(i.getViewOfSeriesModel(u).group.traverse(function(f){f.__highByOuter&&h&&t==="self"||Vc(f)}),mt(t))o(u.getData(),t);else if(ee(t))for(var p=Oe(t),d=0;d<p.length;d++)o(u.getData(p[d]),t[p[d]]);l.push(u),zc(u).isBlured=!0}}),r.eachComponent(function(u,h){if(u!=="series"){var c=i.getViewOfComponentModel(h);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,r)}})}}function Hc(n,t,e){if(n!=null&&t!=null){var i=e.getModel().getComponent(n,t);if(i){zc(i).isBlured=!0;var r=e.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(o){Vc(o)})}}}function Wc(n,t,e,i){var r={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||t==null||e==null)return r;var o=i.getModel().getComponent(n,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(e),u=0;u<l.length;u++)if(oo(l[u])||xt("param should be highDownDispatcher"),ye(l[u]).focus==="self"){s=!0;break}return{focusSelf:s,dispatchers:l}}function Dv(n){A(n.getAllData(),function(t){var e=t.data,i=t.type;e.eachItemGraphicEl(function(r,o){n.isSelected(o,i)?Tv(r):Iv(r)})})}function vI(n){var t=[];return n.eachSeries(function(e){A(e.getAllData(),function(i){i.data;var r=i.type,o=e.getSelectedDataIndices();if(o.length>0){var a={dataIndex:o,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function ro(n,t,e){Yc(n,!0),ii(n,dl),function(i,r,o){var a=ye(i);r!=null?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}(n,t,e)}function zn(n,t,e,i){i?function(r){Yc(r,!1)}(n):ro(n,t,e)}var kv=["emphasis","blur","select"],mI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ri(n,t,e,i){e=e||"itemStyle";for(var r=0;r<kv.length;r++){var o=kv[r],a=t.getModel([o,e]);n.ensureState(o).style=i?i(a):a[mI[e]]()}}function Yc(n,t){var e=t===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),e&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function oo(n){return!(!n||!n.__highDownDispatcher)}function Xc(n){var t=n.type;return t===ga||t===hl||t===ya}function Lv(n){var t=n.type;return t===fr||t===ul}var ao=Ti.CMD,xI=[[],[],[]],Pv=Math.sqrt,_I=Math.atan2,Uc=Math.sqrt,fl=Math.sin,gl=Math.cos,va=Math.PI;function Ov(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Zc(n,t){return(n[0]*t[0]+n[1]*t[1])/(Ov(n)*Ov(t))}function Rv(n,t){return(n[0]*t[1]<n[1]*t[0]?-1:1)*Math.acos(Zc(n,t))}function Ev(n,t,e,i,r,o,a,s,l,u,h){var c=l*(va/180),p=gl(c)*(n-e)/2+fl(c)*(t-i)/2,d=-1*fl(c)*(n-e)/2+gl(c)*(t-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=Uc(f),s*=Uc(f));var g=(r===o?-1:1)*Uc((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(n+e)/2+gl(c)*y-fl(c)*v,x=(t+i)/2+fl(c)*y+gl(c)*v,_=Rv([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=Rv(b,w);if(Zc(b,w)<=-1&&(S=va),Zc(b,w)>=1&&(S=0),S<0){var M=Math.round(S/va*1e6)/1e6;S=2*va+M%2*va}h.addData(u,m,x,a,s,_,S,c,o)}var wI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,bI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Nv=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.applyTransform=function(e){},t}(De);function zv(n){return n.setData!=null}function Bv(n,t){var e=function(r){var o=new Ti;if(!r)return o;var a,s=0,l=0,u=s,h=l,c=Ti.CMD,p=r.match(wI);if(!p)return o;for(var d=0;d<p.length;d++){for(var f=p[d],g=f.charAt(0),y=void 0,v=f.match(bI)||[],m=v.length,x=0;x<m;x++)v[x]=parseFloat(v[x]);for(var _=0;_<m;){var b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,D=s,L=l,R=void 0,P=void 0;switch(g){case"l":s+=v[_++],l+=v[_++],y=c.L,o.addData(y,s,l);break;case"L":s=v[_++],l=v[_++],y=c.L,o.addData(y,s,l);break;case"m":s+=v[_++],l+=v[_++],y=c.M,o.addData(y,s,l),u=s,h=l,g="l";break;case"M":s=v[_++],l=v[_++],y=c.M,o.addData(y,s,l),u=s,h=l,g="L";break;case"h":s+=v[_++],y=c.L,o.addData(y,s,l);break;case"H":s=v[_++],y=c.L,o.addData(y,s,l);break;case"v":l+=v[_++],y=c.L,o.addData(y,s,l);break;case"V":l=v[_++],y=c.L,o.addData(y,s,l);break;case"C":y=c.C,o.addData(y,v[_++],v[_++],v[_++],v[_++],v[_++],v[_++]),s=v[_-2],l=v[_-1];break;case"c":y=c.C,o.addData(y,v[_++]+s,v[_++]+l,v[_++]+s,v[_++]+l,v[_++]+s,v[_++]+l),s+=v[_-2],l+=v[_-1];break;case"S":b=s,w=l,R=o.len(),P=o.data,a===c.C&&(b+=s-P[R-4],w+=l-P[R-3]),y=c.C,D=v[_++],L=v[_++],s=v[_++],l=v[_++],o.addData(y,b,w,D,L,s,l);break;case"s":b=s,w=l,R=o.len(),P=o.data,a===c.C&&(b+=s-P[R-4],w+=l-P[R-3]),y=c.C,D=s+v[_++],L=l+v[_++],s+=v[_++],l+=v[_++],o.addData(y,b,w,D,L,s,l);break;case"Q":D=v[_++],L=v[_++],s=v[_++],l=v[_++],y=c.Q,o.addData(y,D,L,s,l);break;case"q":D=v[_++]+s,L=v[_++]+l,s+=v[_++],l+=v[_++],y=c.Q,o.addData(y,D,L,s,l);break;case"T":b=s,w=l,R=o.len(),P=o.data,a===c.Q&&(b+=s-P[R-4],w+=l-P[R-3]),s=v[_++],l=v[_++],y=c.Q,o.addData(y,b,w,s,l);break;case"t":b=s,w=l,R=o.len(),P=o.data,a===c.Q&&(b+=s-P[R-4],w+=l-P[R-3]),s+=v[_++],l+=v[_++],y=c.Q,o.addData(y,b,w,s,l);break;case"A":S=v[_++],M=v[_++],T=v[_++],I=v[_++],C=v[_++],Ev(D=s,L=l,s=v[_++],l=v[_++],I,C,S,M,T,y=c.A,o);break;case"a":S=v[_++],M=v[_++],T=v[_++],I=v[_++],C=v[_++],Ev(D=s,L=l,s+=v[_++],l+=v[_++],I,C,S,M,T,y=c.A,o)}}g!=="z"&&g!=="Z"||(y=c.Z,o.addData(y),s=u,l=h),a=y}return o.toStatic(),o}(n),i=G({},t);return i.buildPath=function(r){if(zv(r))r.setData(e.data),(o=r.getContext())&&r.rebuildPath(o,1);else{var o=r;e.rebuildPath(o,1)}},i.applyTransform=function(r){(function(o,a){if(a){var s,l,u,h,c,p,d=o.data,f=o.len(),g=ao.M,y=ao.C,v=ao.L,m=ao.R,x=ao.A,_=ao.Q;for(u=0,h=0;u<f;){switch(s=d[u++],h=u,l=0,s){case g:case v:l=1;break;case y:l=3;break;case _:l=2;break;case x:var b=a[4],w=a[5],S=Pv(a[0]*a[0]+a[1]*a[1]),M=Pv(a[2]*a[2]+a[3]*a[3]),T=_I(-a[1]/M,a[0]/S);d[u]*=S,d[u++]+=b,d[u]*=M,d[u++]+=w,d[u++]*=S,d[u++]*=M,d[u++]+=T,d[u++]+=T,h=u+=2;break;case m:p[0]=d[u++],p[1]=d[u++],ot(p,p,a),d[h++]=p[0],d[h++]=p[1],p[0]+=d[u++],p[1]+=d[u++],ot(p,p,a),d[h++]=p[0],d[h++]=p[1]}for(c=0;c<l;c++){var I=xI[c];I[0]=d[u++],I[1]=d[u++],ot(I,I,a),d[h++]=I[0],d[h++]=I[1]}}o.increaseVersion()}})(e,r),this.dirtyShape()},i}function Vv(n,t){return new Nv(Bv(n,t))}var SI=function(){this.cx=0,this.cy=0,this.r=0},Fv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new SI},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,2*Math.PI)},t}(De);Fv.prototype.type="circle";const oi=Fv;var MI=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Gv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new MI},t.prototype.buildPath=function(e,i){var r=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*r,h=l*r;e.moveTo(o-s,a),e.bezierCurveTo(o-s,a-h,o-u,a-l,o,a-l),e.bezierCurveTo(o+u,a-l,o+s,a-h,o+s,a),e.bezierCurveTo(o+s,a+h,o+u,a+l,o,a+l),e.bezierCurveTo(o-u,a+l,o-s,a+h,o-s,a),e.closePath()},t}(De);Gv.prototype.type="ellipse";const yl=Gv;var Hv=Math.PI,jc=2*Hv,gr=Math.sin,so=Math.cos,TI=Math.acos,ft=Math.atan2,Wv=Math.abs,ma=Math.sqrt,xa=Math.max,Bn=Math.min,xn=1e-4;function vl(n,t,e,i,r,o,a){var s=n-e,l=t-i,u=(a?o:-o)/ma(s*s+l*l),h=u*l,c=-u*s,p=n+h,d=t+c,f=e+h,g=i+c,y=(p+f)/2,v=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=r-o,w=p*g-f*d,S=(x<0?-1:1)*ma(xa(0,b*b*_-w*w)),M=(w*x-m*S)/_,T=(-w*m-x*S)/_,I=(w*x+m*S)/_,C=(-w*m+x*S)/_,D=M-y,L=T-v,R=I-y,P=C-v;return D*D+L*L>R*R+P*P&&(M=I,T=C),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}function II(n,t){var e,i=xa(t.r,0),r=xa(t.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,h=t.cy,c=!!t.clockwise,p=Wv(l-s),d=p>jc&&p%jc;if(d>xn&&(p=d),i>xn)if(p>jc-xn)n.moveTo(u+i*so(s),h+i*gr(s)),n.arc(u,h,i,s,l,!c),r>xn&&(n.moveTo(u+r*so(l),h+r*gr(l)),n.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,D=void 0,L=void 0,R=i*so(s),P=i*gr(s),E=r*so(l),k=r*gr(l),O=p>xn;if(O){var N=t.cornerRadius;N&&(e=function(H){var $;if(Y(H)){var re=H.length;if(!re)return H;$=re===1?[H[0],H[0],0,0]:re===2?[H[0],H[0],H[1],H[1]]:re===3?H.concat(H[2]):H}else $=[H,H,H,H];return $}(N),f=e[0],g=e[1],y=e[2],v=e[3]);var B=Wv(i-r)/2;if(m=Bn(B,y),x=Bn(B,v),_=Bn(B,f),b=Bn(B,g),M=w=xa(m,x),T=S=xa(_,b),(w>xn||S>xn)&&(I=i*so(l),C=i*gr(l),D=r*so(s),L=r*gr(s),p<Hv)){var z=function(H,$,re,Ce,ve,_e,be,Le){var Se=re-H,Pe=Ce-$,Ve=be-ve,qe=Le-_e,Fe=qe*Se-Ve*Pe;if(!(Fe*Fe<xn))return[H+(Fe=(Ve*($-_e)-qe*(H-ve))/Fe)*Se,$+Fe*Pe]}(R,P,D,L,I,C,E,k);if(z){var U=R-z[0],Z=P-z[1],F=I-z[0],W=C-z[1],K=1/gr(TI((U*F+Z*W)/(ma(U*U+Z*Z)*ma(F*F+W*W)))/2),se=ma(z[0]*z[0]+z[1]*z[1]);M=Bn(w,(i-se)/(K+1)),T=Bn(S,(r-se)/(K-1))}}}if(O)if(M>xn){var he=Bn(y,M),ie=Bn(v,M),q=vl(D,L,R,P,i,he,c),J=vl(I,C,E,k,i,ie,c);n.moveTo(u+q.cx+q.x0,h+q.cy+q.y0),M<w&&he===ie?n.arc(u+q.cx,h+q.cy,M,ft(q.y0,q.x0),ft(J.y0,J.x0),!c):(he>0&&n.arc(u+q.cx,h+q.cy,he,ft(q.y0,q.x0),ft(q.y1,q.x1),!c),n.arc(u,h,i,ft(q.cy+q.y1,q.cx+q.x1),ft(J.cy+J.y1,J.cx+J.x1),!c),ie>0&&n.arc(u+J.cx,h+J.cy,ie,ft(J.y1,J.x1),ft(J.y0,J.x0),!c))}else n.moveTo(u+R,h+P),n.arc(u,h,i,s,l,!c);else n.moveTo(u+R,h+P);r>xn&&O?T>xn?(he=Bn(f,T),q=vl(E,k,I,C,r,-(ie=Bn(g,T)),c),J=vl(R,P,D,L,r,-he,c),n.lineTo(u+q.cx+q.x0,h+q.cy+q.y0),T<S&&he===ie?n.arc(u+q.cx,h+q.cy,T,ft(q.y0,q.x0),ft(J.y0,J.x0),!c):(ie>0&&n.arc(u+q.cx,h+q.cy,ie,ft(q.y0,q.x0),ft(q.y1,q.x1),!c),n.arc(u,h,r,ft(q.cy+q.y1,q.cx+q.x1),ft(J.cy+J.y1,J.cx+J.x1),c),he>0&&n.arc(u+J.cx,h+J.cy,he,ft(J.y1,J.x1),ft(J.y0,J.x0),!c))):(n.lineTo(u+E,h+k),n.arc(u,h,r,l,s,c)):n.lineTo(u+E,h+k)}else n.moveTo(u,h);n.closePath()}}}var CI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Yv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new CI},t.prototype.buildPath=function(e,i){II(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(De);Yv.prototype.type="sector";const nn=Yv;var AI=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Xv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new AI},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=2*Math.PI;e.moveTo(r+i.r,o),e.arc(r,o,i.r,0,a,!1),e.moveTo(r+i.r0,o),e.arc(r,o,i.r0,0,a,!0)},t}(De);Xv.prototype.type="ring";const _a=Xv;function Uv(n,t,e){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=function(p,d,f,g){var y,v,m,x,_=[],b=[],w=[],S=[];if(g){m=[1/0,1/0],x=[-1/0,-1/0];for(var M=0,T=p.length;M<T;M++)qn(m,m,p[M]),Kn(x,x,p[M]);qn(m,m,g[0]),Kn(x,x,g[1])}for(M=0,T=p.length;M<T;M++){var I=p[M];if(f)y=p[M?M-1:T-1],v=p[(M+1)%T];else{if(M===0||M===T-1){_.push(Mg(p[M]));continue}y=p[M-1],v=p[M+1]}Tg(b,v,y),Ts(b,b,d);var C=Is(I,y),D=Is(I,v),L=C+D;L!==0&&(C/=L,D/=L),Ts(w,b,-C),Ts(S,b,D);var R=bh([],I,w),P=bh([],I,S);g&&(Kn(R,R,m),qn(R,R,x),Kn(P,P,m),qn(P,P,x)),_.push(R),_.push(P)}return f&&_.push(_.shift()),_}(r,i,e,t.smoothConstraint);n.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(e?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{n.moveTo(r[0][0],r[0][1]),s=1;for(var c=r.length;s<c;s++)n.lineTo(r[s][0],r[s][1])}e&&n.closePath()}}var DI=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Zv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new DI},t.prototype.buildPath=function(e,i){Uv(e,i,!0)},t}(De);Zv.prototype.type="polygon";const Vn=Zv;var kI=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},jv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kI},t.prototype.buildPath=function(e,i){Uv(e,i,!1)},t}(De);jv.prototype.type="polyline";const _n=jv;var LI={},PI=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},qv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PI},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=nv(LI,i,this.style);r=l.x1,o=l.y1,a=l.x2,s=l.y2}else r=i.x1,o=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(r,o),u<1&&(a=r*(1-u)+a*u,s=o*(1-u)+s*u),e.lineTo(a,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(De);qv.prototype.type="line";const wt=qv;var Pt=[],OI=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Kv(n,t,e){var i=n.cpx2,r=n.cpy2;return i!=null||r!=null?[(e?Zg:tt)(n.x1,n.cpx1,n.cpx2,n.x2,t),(e?Zg:tt)(n.y1,n.cpy1,n.cpy2,n.y2,t)]:[(e?Kg:dt)(n.x1,n.cpx1,n.x2,t),(e?Kg:dt)(n.y1,n.cpy1,n.y2,t)]}var Jv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OI},t.prototype.buildPath=function(e,i){var r=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,h=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(e.moveTo(r,o),h==null||c==null?(p<1&&(Vs(r,l,a,p,Pt),l=Pt[1],a=Pt[2],Vs(o,u,s,p,Pt),u=Pt[1],s=Pt[2]),e.quadraticCurveTo(l,u,a,s)):(p<1&&(Bs(r,l,h,a,p,Pt),l=Pt[1],h=Pt[2],a=Pt[3],Bs(o,u,c,s,p,Pt),u=Pt[1],c=Pt[2],s=Pt[3]),e.bezierCurveTo(l,u,h,c,a,s)))},t.prototype.pointAt=function(e){return Kv(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Kv(this.shape,e,!0);return Ig(i,i)},t}(De);Jv.prototype.type="bezier-curve";const ml=Jv;var RI=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},$v=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RI},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,h=Math.cos(s),c=Math.sin(s);e.moveTo(h*a+r,c*a+o),e.arc(r,o,a,s,l,!u)},t}(De);$v.prototype.type="arc";const xl=$v;var EI=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="compound",e}return V(t,n),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),r=0;r<e.length;r++)i=i||e[r].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<e.length;r++)e[r].path||e[r].createPathProxy(),e[r].path.setScale(i[0],i[1],e[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var r=i.paths||[],o=0;o<r.length;o++)r[o].buildPath(e,r[o].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),De.prototype.getBoundingRect.call(this)},t}(De);const qc=EI;var NI=function(){function n(t){this.colorStops=t||[]}return n.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},n}();const Qv=NI,wa=function(n){function t(e,i,r,o,a,s){var l=n.call(this,a)||this;return l.x=e??0,l.y=i??0,l.x2=r??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return V(t,n),t}(Qv),Kc=function(n){function t(e,i,r,o,a){var s=n.call(this,o)||this;return s.x=e??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=a||!1,s}return V(t,n),t}(Qv);var yr=[0,0],vr=[0,0],_l=new de,wl=new de,zI=function(){function n(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new de;for(i=0;i<2;i++)this._axes[i]=new de;t&&this.fromBoundingRect(t,e)}return n.prototype.fromBoundingRect=function(t,e){var i=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),e)for(var u=0;u<4;u++)i[u].transform(e);for(de.sub(r[0],i[1],i[0]),de.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize(),u=0;u<2;u++)this._origin[u]=r[u].dot(i[0])},n.prototype.intersect=function(t,e){var i=!0,r=!e;return _l.set(1/0,1/0),wl.set(0,0),!this._intersectCheckOneSide(this,t,_l,wl,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,_l,wl,r,-1)&&(i=!1,r)||r||de.copy(e,i?_l:wl),i},n.prototype._intersectCheckOneSide=function(t,e,i,r,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,yr),this._getProjMinMaxOnAxis(l,e._corners,vr),yr[1]<vr[0]||yr[0]>vr[1]){if(s=!1,o)return s;var h=Math.abs(vr[0]-yr[1]),c=Math.abs(yr[0]-vr[1]);Math.min(h,c)>r.len()&&(h<c?de.scale(r,u,-h*a):de.scale(r,u,c*a))}else i&&(h=Math.abs(vr[0]-yr[1]),c=Math.abs(yr[0]-vr[1]),Math.min(h,c)<i.len()&&(h<c?de.scale(i,u,h*a):de.scale(i,u,-c*a)))}return s},n.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var r=this._axes[t],o=this._origin,a=e[0].dot(r)+o[t],s=a,l=a,u=1;u<e.length;u++){var h=e[u].dot(r)+o[t];s=Math.min(h,s),l=Math.max(h,l)}i[0]=s,i[1]=l},n}();const bl=zI;var BI=[],VI=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return V(t,n),t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var r=0;r<e.length;r++)this.addDisplayable(e[r],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(i=this._displayables[e]).parent=this,i.update(),i.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var i;(i=this._temporaryDisplayables[e]).parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new me(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(BI)),e.union(o)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i);if(this.getBoundingRect().contain(r[0],r[1])){for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(e,i))return!0}return!1},t}(ar);const em=VI;var FI=Ne();function Jc(n,t,e,i,r,o,a){var s,l=!1;ae(r)?(a=o,o=r,r=null):ee(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u=n==="leave";u||t.stopAnimation("leave");var h=function(p,d,f,g,y){var v;if(d&&d.ecModel){var m=d.ecModel.getUpdatePayload();v=m&&m.animation}var x=p==="update";if(d&&d.isAnimationEnabled()){var _=void 0,b=void 0,w=void 0;return g?(_=fe(g.duration,200),b=fe(g.easing,"cubicOut"),w=0):(_=d.getShallow(x?"animationDurationUpdate":"animationDuration"),b=d.getShallow(x?"animationEasingUpdate":"animationEasing"),w=d.getShallow(x?"animationDelayUpdate":"animationDelay")),v&&(v.duration!=null&&(_=v.duration),v.easing!=null&&(b=v.easing),v.delay!=null&&(w=v.delay)),ae(w)&&(w=w(f,y)),ae(_)&&(_=_(f)),{duration:_||0,delay:w,easing:b}}return null}(n,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:n,during:a};l?t.animateFrom(e,c):t.animateTo(e,c)}else t.stopAnimation(),!l&&t.attr(e),a&&a(1),o&&o()}function ze(n,t,e,i,r,o){Jc("update",n,t,e,i,r,o)}function et(n,t,e,i,r,o){Jc("enter",n,t,e,i,r,o)}function lo(n){if(!n.__zr)return!0;for(var t=0;t<n.animators.length;t++)if(n.animators[t].scope==="leave")return!0;return!1}function Ci(n,t,e,i,r,o){lo(n)||Jc("leave",n,t,e,i,r,o)}function tm(n,t,e,i){n.removeTextContent(),n.removeTextGuideLine(),Ci(n,{style:{opacity:0}},t,e,i)}function Sl(n,t,e){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(r){r.isGroup||tm(r,t,e,i)}):tm(n,t,e,i)}function ba(n){FI(n).oldStyle=n.style}var Ml=Math.max,Tl=Math.min,$c={};function nm(n){return De.extend(n)}var GI=function(n,t){var e=Bv(n,t);return function(i){function r(o){var a=i.call(this,o)||this;return a.applyTransform=e.applyTransform,a.buildPath=e.buildPath,a}return V(r,i),r}(Nv)};function im(n,t){return GI(n,t)}function rn(n,t){$c[n]=t}function rm(n){if($c.hasOwnProperty(n))return $c[n]}function Il(n,t,e,i){var r=Vv(n,t);return e&&(i==="center"&&(e=om(e,r.getBoundingRect())),ep(r,e)),r}function Qc(n,t,e){var i=new Gt({style:{image:n,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(e==="center"){var o={width:r.width,height:r.height};i.setStyle(om(t,o))}}});return i}function om(n,t){var e,i=t.width/t.height,r=n.height*i;return e=r<=n.width?n.height:(r=n.width)/i,{x:n.x+n.width/2-r/2,y:n.y+n.height/2-e/2,width:r,height:e}}var on=function(n,t){for(var e=[],i=n.length,r=0;r<i;r++){var o=n[r];e.push(o.getUpdatedPathProxy(!0))}var a=new De(t);return a.createPathProxy(),a.buildPath=function(s){if(zv(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},a};function ep(n,t){if(n.applyTransform){var e=n.getBoundingRect().calculateTransform(t);n.applyTransform(e)}}function Sa(n,t){return nv(n,n,{lineWidth:t}),n}var HI=dr;function Ai(n,t){for(var e=Xo([]);n&&n!==t;)Dn(e,n.getLocalTransform(),e),n=n.parent;return e}function Fn(n,t,e){return t&&!mt(t)&&(t=bi.getLocalTransform(t)),e&&(t=ji([],t)),ot([],n,t)}function Cl(n,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[n==="left"?-i:n==="right"?i:0,n==="top"?-r:n==="bottom"?r:0];return o=Fn(o,t,e),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function am(n){return!n.isGroup}function Al(n,t,e){if(n&&t){var i,r=(i={},n.traverse(function(a){am(a)&&a.anid&&(i[a.anid]=a)}),i);t.traverse(function(a){if(am(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),ze(a,l,e,ye(a).dataIndex)}}})}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function(l){return l.shape!=null}(a)&&(s.shape=G({},a.shape)),s}}function tp(n,t){return X(n,function(e){var i=e[0];i=Ml(i,t.x),i=Tl(i,t.x+t.width);var r=e[1];return r=Ml(r,t.y),[i,r=Tl(r,t.y+t.height)]})}function sm(n,t){var e=Ml(n.x,t.x),i=Tl(n.x+n.width,t.x+t.width),r=Ml(n.y,t.y),o=Tl(n.y+n.height,t.y+t.height);if(i>=e&&o>=r)return{x:e,y:r,width:i-e,height:o-r}}function Ma(n,t,e){var i=G({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(r.image=n.slice(8),le(r,e),new Gt(i)):Il(n.replace("path://",""),i,e,"center")}function lm(n,t,e,i,r,o,a,s){var l,u=e-n,h=i-t,c=a-r,p=s-o,d=np(c,p,u,h);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=n-r,g=t-o,y=np(f,g,u,h)/d;if(y<0||y>1)return!1;var v=np(f,g,c,p)/d;return!(v<0||v>1)}function np(n,t,e,i){return n*i-e*t}function Ta(n){var t=n.itemTooltipOption,e=n.componentModel,i=n.itemName,r=j(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&A(Oe(l),function(h){Ut(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=ye(n.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:le({content:i,formatterParams:s},r)}}function um(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function Dl(n,t){if(n)if(Y(n))for(var e=0;e<n.length;e++)um(n[e],t);else um(n,t)}rn("circle",oi),rn("ellipse",yl),rn("sector",nn),rn("ring",_a),rn("polygon",Vn),rn("polyline",_n),rn("rect",Ie),rn("line",wt),rn("bezierCurve",ml),rn("arc",xl);const uo=Object.freeze(Object.defineProperty({__proto__:null,Arc:xl,BezierCurve:ml,BoundingRect:me,Circle:oi,CompoundPath:qc,Ellipse:yl,Group:ge,Image:Gt,IncrementalDisplayable:em,Line:wt,LinearGradient:wa,OrientedBoundingRect:bl,Path:De,Point:de,Polygon:Vn,Polyline:_n,RadialGradient:Kc,Rect:Ie,Ring:_a,Sector:nn,Text:ke,applyTransform:Fn,clipPointsByRect:tp,clipRectByRect:sm,createIcon:Ma,extendPath:im,extendShape:nm,getShapeClass:rm,getTransform:Ai,groupTransition:Al,initProps:et,isElementRemoved:lo,lineLineIntersect:lm,linePolygonIntersect:function(n,t,e,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(lm(n,t,e,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Qc,makePath:Il,mergePath:on,registerShape:rn,removeElement:Ci,removeElementWithFadeOut:Sl,resizePath:ep,setTooltipConfig:Ta,subPixelOptimize:HI,subPixelOptimizeLine:Sa,subPixelOptimizeRect:function(n){return iv(n.shape,n.shape,n.style),n},transformDirection:Cl,traverseElements:Dl,updateProps:ze},Symbol.toStringTag,{value:"Module"}));var kl={};function hm(n,t){for(var e=0;e<tn.length;e++){var i=tn[e],r=t[i],o=n.ensureState(i);o.style=o.style||{},o.style.text=r}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:t.normal}),n.useStates(a,!0)}function ip(n,t,e){var i,r=n.labelFetcher,o=n.labelDataIndex,a=n.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),e!=null?{interpolatedValue:e}:null)),i==null&&(i=ae(n.defaultText)?n.defaultText(o,n,e):n.defaultText);for(var l={normal:i},u=0;u<tn.length;u++){var h=tn[u],c=t[h];l[h]=fe(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function ai(n,t,e,i){e=e||kl;for(var r=n instanceof ke,o=!1,a=0;a<ll.length;a++)if((p=t[ll[a]])&&p.getShallow("show")){o=!0;break}var s=r?n:n.getTextContent();if(o){r||(s||(s=new ke,n.setTextContent(s)),n.stateProxy&&(s.stateProxy=n.stateProxy));var l=ip(e,t),u=t.normal,h=!!u.getShallow("show"),c=it(u,i&&i.normal,e,!1,!r);for(c.text=l.normal,r||n.setTextConfig(cm(u,e,!1)),a=0;a<tn.length;a++){var p,d=tn[a];if(p=t[d]){var f=s.ensureState(d),g=!!fe(p.getShallow("show"),h);g!==h&&(f.ignore=!g),f.style=it(p,i&&i[d],e,!0,!r),f.style.text=l[d],!r&&(n.ensureState(d).textConfig=cm(p,e,!0))}}s.silent=!!u.getShallow("silent"),s.style.x!=null&&(c.x=s.style.x),s.style.y!=null&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),e.enableTextSetter&&(ho(s).setLabelText=function(y){var v=ip(e,t,y);hm(s,v)})}else s&&(s.ignore=!0);n.dirty()}function si(n,t){t=t||"label";for(var e={normal:n.getModel(t)},i=0;i<tn.length;i++){var r=tn[i];e[r]=n.getModel([r,t])}return e}function it(n,t,e,i,r){var o={};return function(a,s,l,u,h){l=l||kl;var c,p=s.ecModel,d=p&&p.option.textStyle,f=function(x){for(var _;x&&x!==x.ecModel;){var b=(x.option||kl).rich;if(b){_=_||{};for(var w=Oe(b),S=0;S<w.length;S++)_[w[S]]=1}x=x.parentModel}return _}(s);if(f){for(var g in c={},f)if(f.hasOwnProperty(g)){var y=s.getModel(["rich",g]);gm(c[g]={},y,d,l,u,h,!1,!0)}}c&&(a.rich=c);var v=s.get("overflow");v&&(a.overflow=v);var m=s.get("minMargin");m!=null&&(a.margin=m),gm(a,s,d,l,u,h,!0,!1)}(o,n,e,i,r),t&&G(o,t),o}function cm(n,t,e){t=t||{};var i,r={},o=n.getShallow("rotate"),a=fe(n.getShallow("distance"),e?null:5),s=n.getShallow("offset");return(i=n.getShallow("position")||(e?null:"inside"))==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=n.get("color")==="inherit"?t.inheritColor||null:"auto",r}var pm=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gm(n,t,e,i,r,o,a,s){e=!r&&e||kl;var l=i&&i.inheritColor,u=t.getShallow("color"),h=t.getShallow("textBorderColor"),c=fe(t.getShallow("opacity"),e.opacity);u!=="inherit"&&u!=="auto"||(u==="auto"&&$e("color: 'auto'","color: 'inherit'"),u=l||null),h!=="inherit"&&h!=="auto"||(h==="auto"&&$e("color: 'auto'","color: 'inherit'"),h=l||null),o||(u=u||e.color,h=h||e.textBorderColor),u!=null&&(n.fill=u),h!=null&&(n.stroke=h);var p=fe(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(n.lineWidth=p);var d=fe(t.getShallow("textBorderType"),e.textBorderType);d!=null&&(n.lineDash=d);var f=fe(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);f!=null&&(n.lineDashOffset=f),r||c!=null||s||(c=i&&i.defaultOpacity),c!=null&&(n.opacity=c),r||o||n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var g=0;g<pm.length;g++){var y=pm[g];(m=fe(t.getShallow(y),e[y]))!=null&&(n[y]=m)}for(g=0;g<dm.length;g++)y=dm[g],(m=t.getShallow(y))!=null&&(n[y]=m);if(n.verticalAlign==null){var v=t.getShallow("baseline");v!=null&&(n.verticalAlign=v)}if(!a||!i.disableBox){for(g=0;g<fm.length;g++){var m;y=fm[g],(m=t.getShallow(y))!=null&&(n[y]=m)}var x=t.getShallow("borderType");x!=null&&(n.borderDash=x),n.backgroundColor!=="auto"&&n.backgroundColor!=="inherit"||!l||(n.backgroundColor==="auto"&&$e("backgroundColor: 'auto'","backgroundColor: 'inherit'"),n.backgroundColor=l),n.borderColor!=="auto"&&n.borderColor!=="inherit"||!l||(n.borderColor==="auto"&&$e("borderColor: 'auto'","borderColor: 'inherit'"),n.borderColor=l)}}function ym(n,t){var e=t&&t.getModel("textStyle");return Xt([n.fontStyle||e&&e.getShallow("fontStyle")||"",n.fontWeight||e&&e.getShallow("fontWeight")||"",(n.fontSize||e&&e.getShallow("fontSize")||12)+"px",n.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var ho=Ne();function vm(n,t,e,i){if(n){var r=ho(n);r.prevValue=r.value,r.value=e;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function mm(n,t,e,i,r){var o=ho(n);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=fe(o.interpolatedValue,o.prevValue),l=o.value;n.percent=0,(o.prevValue==null?et:ze)(n,{percent:1},i,t,null,function(u){var h=zy(e,o.precision,s,l,u);o.interpolatedValue=u===1?null:h;var c=ip({labelDataIndex:t,labelFetcher:r,defaultText:a?a(h):h+""},o.statesModels,h);hm(n,c)})}}var WI=["textStyle","color"],rp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],op=new ke,YI=function(){function n(){}return n.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(WI):null)},n.prototype.getFont=function(){return ym({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<rp.length;i++)e[rp[i]]=this.getShallow(rp[i]);return op.useStyle(e),op.update(),op.getBoundingRect()},n}();const XI=YI;var Ll,ap,xm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UI=$r(xm),ZI=function(){function n(){}return n.prototype.getLineStyle=function(t){return UI(this,t)},n}(),_m=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],jI=$r(_m),qI=function(){function n(){}return n.prototype.getItemStyle=function(t,e){return jI(this,t,e)},n}(),mr=function(){function n(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return n.prototype.init=function(t,e,i){},n.prototype.mergeOption=function(t,e){pe(this.option,t,!0)},n.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},n.prototype.getShallow=function(t,e){var i=this.option,r=i==null?i:i[t];if(r==null&&!e){var o=this.parentModel;o&&(r=o.getShallow(t))}return r},n.prototype.getModel=function(t,e){var i=t!=null,r=i?this.parsePath(t):null;return new n(i?this._doGet(r):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){return new this.constructor(oe(this.option))},n.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},n.prototype.resolveParentPath=function(t){return t},n.prototype.isAnimationEnabled=function(){if(!we.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var r=0;r<t.length&&(!t[r]||(i=i&&typeof i=="object"?i[t[r]]:null)!=null);r++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},n}();xc(mr),Ll=mr,ap=["__\0is_clz",OT++].join("_"),Ll.prototype[ap]=!0,ue(!Ll.isInstance,'The method "is" can not be defined.'),Ll.isInstance=function(n){return!(!n||!n[ap])},ct(mr,ZI),ct(mr,qI),ct(mr,zT),ct(mr,XI);const He=mr;var KI=Math.round(10*Math.random());function co(n){return[n||"",KI++].join("_")}function xr(n,t){return pe(pe({},n,!0),t,!0)}var Pl="ZH",sp="EN",Ia=sp,Ol={},lp={},wm=we.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ia).toUpperCase().indexOf(Pl)>-1?Pl:Ia;function up(n,t){n=n.toUpperCase(),lp[n]=new He(t),Ol[n]=t}up(sp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),up(Pl,{time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}});var hp=1e3,cp=60*hp,Ca=60*cp,an=24*Ca,bm=365*an,Aa={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}"},Rl="{yyyy}-{MM}-{dd}",Sm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rl,hour:Rl+" "+Aa.hour,minute:Rl+" "+Aa.minute,second:Rl+" "+Aa.second,millisecond:Aa.none},pp=["year","month","day","hour","minute","second","millisecond"],Mm=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bt(n,t){return"0000".substr(0,t-(n+="").length)+n}function po(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function JI(n){return n===po(n)}function Da(n,t,e,i){var r=Jt(n),o=r[dp(e)](),a=r[fo(e)]()+1,s=Math.floor((a-1)/3)+1,l=r[El(e)](),u=r["get"+(e?"UTC":"")+"Day"](),h=r[ka(e)](),c=(h-1)%12+1,p=r[Nl(e)](),d=r[zl(e)](),f=r[Bl(e)](),g=i instanceof He?i:function(b){return lp[b]}(i||wm)||lp[Ia],y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),x=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,bt(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,bt(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,bt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bt(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,bt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,bt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,bt(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,bt(f,3)).replace(/{S}/g,f+"")}function Tm(n,t){var e=Jt(n),i=e[fo(t)]()+1,r=e[El(t)](),o=e[ka(t)](),a=e[Nl(t)](),s=e[zl(t)](),l=e[Bl(t)]()===0,u=l&&s===0,h=u&&a===0,c=h&&o===0,p=c&&r===1;return p&&i===1?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function Im(n,t,e){var i=Re(n)?Jt(n):n;switch(t=t||Tm(n,e)){case"year":return i[dp(e)]();case"half-year":return i[fo(e)]()>=6?1:0;case"quarter":return Math.floor((i[fo(e)]()+1)/4);case"month":return i[fo(e)]();case"day":return i[El(e)]();case"half-day":return i[ka(e)]()/24;case"hour":return i[ka(e)]();case"minute":return i[Nl(e)]();case"second":return i[zl(e)]();case"millisecond":return i[Bl(e)]()}}function dp(n){return n?"getUTCFullYear":"getFullYear"}function fo(n){return n?"getUTCMonth":"getMonth"}function El(n){return n?"getUTCDate":"getDate"}function ka(n){return n?"getUTCHours":"getHours"}function Nl(n){return n?"getUTCMinutes":"getMinutes"}function zl(n){return n?"getUTCSeconds":"getSeconds"}function Bl(n){return n?"getUTCMilliseconds":"getMilliseconds"}function $I(n){return n?"setUTCFullYear":"setFullYear"}function Cm(n){return n?"setUTCMonth":"setMonth"}function Am(n){return n?"setUTCDate":"setDate"}function Dm(n){return n?"setUTCHours":"setHours"}function km(n){return n?"setUTCMinutes":"setMinutes"}function Lm(n){return n?"setUTCSeconds":"setSeconds"}function Pm(n){return n?"setUTCMilliseconds":"setMilliseconds"}function fp(n){if(!Ks(n))return j(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function gp(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var go=xh;function yp(n,t,e){function i(u){return u&&Xt(u)?u:"-"}function r(u){return!(u==null||isNaN(u)||!isFinite(u))}var o=t==="time",a=n instanceof Date;if(o||a){var s=o?Jt(n):n;if(!isNaN(+s))return Da(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(a)return"-"}if(t==="ordinal")return Go(n)?i(n):Re(n)&&r(n)?n+"":"-";var l=sa(n);return r(l)?fp(l):Go(n)?i(n):typeof n=="boolean"?n+"":"-"}var Om=["a","b","c","d","e","f","g"],vp=function(n,t){return"{"+n+(t??"")+"}"};function mp(n,t,e){Y(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Om[o];n=n.replace(vp(a),vp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];n=n.replace(vp(Om[l],s),e?Bt(u):u)}return n}function Rm(n,t){var e=j(n)?{color:n,extraCssText:t}:n||{},i=e.color,r=e.type;t=e.extraCssText;var o=e.renderMode||"html";return i?o==="html"?r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bt(i)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(e.markerId||"markerX")+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Em(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function _r(n,t){return t=t||"transparent",j(n)?n:ee(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function Nm(n,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=n}else window.open(n,t)}var Vl=A,QI=["left","right","top","bottom","width","height"],Fl=[["width","left","right"],["height","top","bottom"]];function xp(n,t,e,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=t.childAt(u+1),f=d&&d.getBoundingRect();if(n==="horizontal"){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+e,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+e,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),n==="horizontal"?o=h+e:a=c+e)})}var wr=xp;function St(n,t,e){e=go(e||0);var i=t.width,r=t.height,o=ne(n.left,i),a=ne(n.top,r),s=ne(n.right,i),l=ne(n.bottom,r),u=ne(n.width,i),h=ne(n.height,r),c=e[2]+e[0],p=e[1]+e[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),d!=null&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),n.left||n.right){case"center":o=i/2-u/2-e[3];break;case"right":o=i-u-p}switch(n.top||n.bottom){case"middle":case"center":a=r/2-h/2-e[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new me(o+e[3],a+e[0],u,h);return f.margin=e,f}function zm(n,t,e,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||n).x=n.x,o.y=n.y,!s&&!l)return!1;if(u==="raw")a=n.type==="group"?new me(0,0,+t.width||0,+t.height||0):n.getBoundingRect();else if(a=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=St(le({width:a.width,height:a.height},t),e,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return u==="raw"?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===n&&n.markRedraw(),!0}function La(n){var t=n.layoutMode||n.constructor.layoutMode;return ee(t)?t:t?{type:t}:null}function yo(n,t,e){var i=e&&e.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(Fl[0],0),o=a(Fl[1],1);function a(h,c){var p={},d=0,f={},g=0;if(Vl(h,function(m){f[m]=n[m]}),Vl(h,function(m){s(t,m)&&(p[m]=f[m]=t[m]),l(p,m)&&d++,l(f,m)&&g++}),i[c])return l(t,h[1])?f[h[2]]=null:l(t,h[2])&&(f[h[1]]=null),f;if(g!==2&&d){if(d>=2)return p;for(var y=0;y<h.length;y++){var v=h[y];if(!s(p,v)&&s(n,v)){p[v]=n[v];break}}return p}return f}function s(h,c){return h.hasOwnProperty(c)}function l(h,c){return h[c]!=null&&h[c]!=="auto"}function u(h,c,p){Vl(h,function(d){c[d]=p[d]})}u(Fl[0],n,r),u(Fl[1],n,o)}function Pa(n){return function(t,e){return e&&t&&Vl(QI,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}({},n)}xe(xp,"vertical"),xe(xp,"horizontal");var eC=Ne(),vo=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.uid=co("ec_cpt_model"),o}return V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=La(this),o=r?Pa(e):{};pe(e,i.getTheme().get(this.mainType)),pe(e,this.getDefaultOption()),r&&yo(e,o,r)},t.prototype.mergeOption=function(e,i){pe(this.option,e,!0);var r=La(this);r&&yo(this.option,e,r)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(u){return!(!u||!u[By])}(e))return e.defaultOption;var i=eC(this);if(!i.defaultOption){for(var r=[],o=e;o;){var a=o.prototype.defaultOption;a&&r.push(a),o=o.superClass}for(var s={},l=r.length-1;l>=0;l--)s=pe(s,r[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var r=e+"Index",o=e+"Id";return ca(this.ecModel,e,{index:this.get(r,!0),id:this.get(o,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(He);Vy(vo,He),el(vo),function(n){var t={};n.registerSubTypeDefaulter=function(e,i){var r=On(e);t[r.main]=i},n.determineSubType=function(e,i){var r=i.type;if(!r){var o=On(e).main;n.hasSubTypes(e)&&t[o]&&(r=t[o](i))}return r}}(vo),function(n,t){function e(i,r){return i[r]||(i[r]={predecessor:[],successor:[]}),i[r]}n.topologicalTravel=function(i,r,o,a){if(i.length){var s=function(y){var v={},m=[];return A(y,function(x){var _=e(v,x),b=function(w,S){var M=[];return A(w,function(T){Me(S,T)>=0&&M.push(T)}),M}(_.originalDeps=t(x),y);_.entryCount=b.length,_.entryCount===0&&m.push(x),A(b,function(w){Me(_.predecessor,w)<0&&_.predecessor.push(w);var S=e(v,w);Me(S.successor,w)<0&&S.successor.push(x)})}),{graph:v,noEntryList:m}}(r),l=s.graph,u=s.noEntryList,h={};for(A(i,function(y){h[y]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(o.call(a,c,p.originalDeps.slice()),delete h[c]),A(p.successor,d?g:f)}A(h,function(){var y;throw y=$s("Circular dependency may exists: ",h,i,r),new Error(y)})}function f(y){l[y].entryCount--,l[y].entryCount===0&&u.push(y)}function g(y){h[y]=!0,f(y)}}}(vo,function(n){var t=[];return A(vo.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return On(e).main}),n!=="dataset"&&Me(t,"dataset")<=0&&t.unshift("dataset"),t});const Te=vo;var Bm="";typeof navigator<"u"&&(Bm=navigator.platform||"");var mo="rgba(0, 0, 0, 0.2)";const tC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Bm.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 _p=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sn="original",Ot="arrayRows",wn="objectRows",Gn="keyedColumns",li="typedArray",Vm="unknown",Hn="column",xo="row",lt={Must:1,Might:2,Not:3},Fm=Ne();function nC(n,t,e){var i={},r=wp(t);if(!r||!n)return i;var o,a,s=[],l=[],u=t.ecModel,h=Fm(u).datasetMap,c=r.uid+"_"+e.seriesLayoutBy;A(n=n.slice(),function(g,y){var v=ee(g)?g:n[y]={name:g};v.type==="ordinal"&&o==null&&(o=y,a=f(v)),i[v.name]=[]});var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function d(g,y,v){for(var m=0;m<v;m++)g.push(y+m)}function f(g){var y=g.dimsDef;return y?y.length:1}return A(n,function(g,y){var v=g.name,m=f(g);if(o==null){var x=p.valueWayDim;d(i[v],x,m),d(l,x,m),p.valueWayDim+=m}else o===y?(d(i[v],0,m),d(s,0,m)):(x=p.categoryWayDim,d(i[v],x,m),d(l,x,m),p.categoryWayDim+=m)}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Gm(n,t,e){var i={};if(!wp(n))return i;var r,o=t.sourceFormat,a=t.dimensionsDefine;o!==wn&&o!==Gn||A(a,function(u,h){(ee(u)?u.name:u)==="name"&&(r=h)});var s=function(){for(var u={},h={},c=[],p=0,d=Math.min(5,e);p<d;p++){var f=Wm(t.data,o,t.seriesLayoutBy,a,t.startIndex,p);c.push(f);var g=f===lt.Not;if(g&&u.v==null&&p!==r&&(u.v=p),(u.n==null||u.n===u.v||!g&&c[u.n]===lt.Not)&&(u.n=p),y(u)&&c[u.n]!==lt.Not)return u;g||(f===lt.Might&&h.v==null&&p!==r&&(h.v=p),h.n!=null&&h.n!==h.v||(h.n=p))}function y(v){return v.v!=null&&v.n!=null}return y(u)?u:y(h)?h:null}();if(s){i.value=[s.v];var l=r??s.n;i.itemName=[l],i.seriesName=[l]}return i}function wp(n){if(!n.get("data",!0))return ca(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},nt).models[0]}function Hm(n,t){return Wm(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,t)}function Wm(n,t,e,i,r,o){var a,s,l;if(pt(n))return lt.Not;if(i){var u=i[o];ee(u)?(s=u.name,l=u.type):j(u)&&(s=u)}if(l!=null)return l==="ordinal"?lt.Must:lt.Not;if(t===Ot){var h=n;if(e===xo){for(var c=h[o],p=0;p<(c||[]).length&&p<5;p++)if((a=x(c[r+p]))!=null)return a}else for(p=0;p<h.length&&p<5;p++){var d=h[r+p];if(d&&(a=x(d[o]))!=null)return a}}else if(t===wn){var f=n;if(!s)return lt.Not;for(p=0;p<f.length&&p<5;p++)if((v=f[p])&&(a=x(v[s]))!=null)return a}else if(t===Gn){var g=n;if(!s||!(c=g[s])||pt(c))return lt.Not;for(p=0;p<c.length&&p<5;p++)if((a=x(c[p]))!=null)return a}else if(t===sn){var y=n;for(p=0;p<y.length&&p<5;p++){var v,m=la(v=y[p]);if(!Y(m))return lt.Not;if((a=x(m[o]))!=null)return a}}function x(_){var b=j(_);return _!=null&&isFinite(_)&&_!==""?b?lt.Might:lt.Not:b&&_!=="-"?lt.Must:void 0}return lt.Not}var bp=te(),Gl,Oa,Ym,Xm=Ne(),iC=Ne(),Sp=function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,i){var r=Qe(this.get("color",!0)),o=this.get("colorLayer",!0);return Zm(this,Xm,r,o,t,e,i)},n.prototype.clearColorPalette=function(){(function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}})(this,Xm)},n}();function Um(n,t,e,i){var r=Qe(n.get(["aria","decal","decals"]));return Zm(n,iC,r,null,t,e,i)}function Zm(n,t,e,i,r,o,a){var s=t(o=o||n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=a!=null&&i?function(p,d){for(var f=p.length,g=0;g<f;g++)if(p[g].length>d)return p[g];return p[f-1]}(i,a):e;if((h=h||e)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var Mp="\0_ec_inner",rC={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},oC={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Hl={},jm=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(e,i,r,o,a,s){o=o||{},this.option=null,this._theme=new He(o),this._locale=new He(a),this._optionManager=s},t.prototype.setOption=function(e,i,r){ue(e!=null,"option is null/undefined"),ue(e[Mp]!==1,"please use chart.getOption()");var o=Jm(i);this._optionManager.setOption(e,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Jm(i))},t.prototype._resetOption=function(e,i){var r=!1,o=this._optionManager;if(!e||e==="recreate"){var a=o.mountOption(e==="recreate");A(a,function(u,h){if(!Te.hasClass(h)){var c=rC[h];c&&!Hl[c]&&(xt("Component "+h+` is used but not imported.
- import { `+c+` } from 'echarts/components';
- echarts.use([`+c+"]);"),Hl[c]=!0)}}),this.option&&e!=="recreate"?(this.restoreData(),this._mergeOption(a,i)):Ym(this,a),r=!0}if(e!=="timeline"&&e!=="media"||this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=o.getMediaOption(this);l.length&&A(l,function(u){r=!0,this._mergeOption(u,i)},this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=te(),u=i&&i.replaceMergeMainTypeMap;Fm(this).datasetMap=te(),A(e,function(h,c){h!=null&&(Te.hasClass(c)?c&&(s.push(c),l.set(c,!0)):r[c]=r[c]==null?oe(h):pe(r[c],h,!0))}),u&&u.each(function(h,c){Te.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Te.topologicalTravel(s,Te.getAllClassMainTypes(),function(h){var c=function(_,b,w){var S=bp.get(b);if(!S)return w;var M=S(_);if(!M)return w;for(var T=0;T<M.length;T++)ue(Jr(M[T]));return w.concat(M)}(this,h,Qe(e[h])),p=o.get(h),d=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",f=DT(p,c,d);(function(_,b,w){A(_,function(S){var M=S.newOption;ee(M)&&(S.keyInfo.mainType=b,S.keyInfo.subType=function(T,I,C,D){return I.type?I.type:C?C.subType:D.determineSubType(T,I)}(b,M,S.existing,w))})})(f,h,Te),r[h]=null,o.set(h,null),a.set(h,0);var g,y,v=[],m=[],x=0;A(f,function(_,b){var w=_.existing,S=_.newOption;if(S){var M=h==="series",T=Te.getClass(h,_.keyInfo.subType,!M);if(!T){var I=_.keyInfo.subType,C=oC[I];return void(Hl[I]||(Hl[I]=!0,xt(C?"Series "+I+` is used but not imported.
- import { `+C+` } from 'echarts/charts';
- echarts.use([`+C+"]);":"Unknown series "+I)))}if(h==="tooltip"){if(g)return void(y||(Je("Currently only one tooltip component is allowed."),y=!0));g=!0}if(w&&w.constructor===T)w.name=_.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var D=G({componentIndex:b},_.keyInfo);G(w=new T(S,this,this,D),D),_.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}else w&&(w.mergeOption({},this),w.optionUpdated({},!1));w?(v.push(w.option),m.push(w),x++):(v.push(void 0),m.push(void 0))},this),r[h]=v,o.set(h,m),a.set(h,x),h==="series"&&Gl(this)},this),this._seriesIndices||Gl(this)},t.prototype.getOption=function(){var e=oe(this.option);return A(e,function(i,r){if(Te.hasClass(r)){for(var o=Qe(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Jr(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[r]=o}}),delete e[Mp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var r=this._componentsMap.get(e);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a<r.length;a++)if(r[a])return r[a]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var r,o=e.index,a=e.id,s=e.name,l=this._componentsMap.get(i);return l&&l.length?(o!=null?(r=[],A(Qe(o),function(u){l[u]&&r.push(l[u])})):r=a!=null?qm("id",a,l):s!=null?qm("name",s,l):We(l,function(u){return!!u}),Km(r,e)):[]},t.prototype.findComponents=function(e){var i,r,o,a,s,l=e.query,u=e.mainType,h=(r=u+"Index",o=u+"Id",a=u+"Name",!(i=l)||i[r]==null&&i[o]==null&&i[a]==null?null:{mainType:u,index:i[r],id:i[o],name:i[a]}),c=h?this.queryComponents(h):We(this._componentsMap.get(u),function(p){return!!p});return s=Km(c,e),e.filter?We(s,e.filter):s},t.prototype.eachComponent=function(e,i,r){var o=this._componentsMap;if(ae(e)){var a=i,s=e;o.each(function(c,p){for(var d=0;c&&d<c.length;d++){var f=c[d];f&&s.call(a,p,f,f.componentIndex)}})}else for(var l=j(e)?o.get(e):ee(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var h=l[u];h&&i.call(r,h,h.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Qt(e,null);return We(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return We(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return We(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Oa(this),A(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];e.call(i,o,r)},this)},t.prototype.eachRawSeries=function(e,i){A(this._componentsMap.get("series"),function(r){r&&e.call(i,r,r.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,r){Oa(this),A(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===e&&i.call(r,a,o)},this)},t.prototype.eachRawSeriesByType=function(e,i,r){return A(this.getSeriesByType(e),i,r)},t.prototype.isSeriesFiltered=function(e){return Oa(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Oa(this);var r=[];A(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];e.call(i,a,o)&&r.push(o)},this),this._seriesIndices=r,this._seriesIndicesMap=te(r)},t.prototype.restoreData=function(e){Gl(this);var i=this._componentsMap,r=[];i.each(function(o,a){Te.hasClass(a)&&r.push(a)}),Te.topologicalTravel(r,Te.getAllClassMainTypes(),function(o){A(i.get(o),function(a){!a||o==="series"&&function(s,l){if(l){var u=l.seriesIndex,h=l.seriesId,c=l.seriesName;return u!=null&&s.componentIndex!==u||h!=null&&s.id!==h||c!=null&&s.name!==c}}(a,e)||a.restoreData()})})},t.internalField=(Gl=function(e){var i=e._seriesIndices=[];A(e._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),e._seriesIndicesMap=te(i)},Oa=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},void(Ym=function(e,i){e.option={},e.option[Mp]=1,e._componentsMap=te({series:[]}),e._componentsCount=te();var r=i.aria;ee(r)&&r.enabled==null&&(r.enabled=!0),function(o,a){var s=o.color&&!o.colorLayer;A(a,function(l,u){u==="colorLayer"&&s||Te.hasClass(u)||(typeof l=="object"?o[u]=o[u]?pe(o[u],l,!1):oe(l):o[u]==null&&(o[u]=l))})}(i,e._theme.option),pe(i,tC,!1),e._mergeOption(i,null)})),t}(He);function qm(n,t,e){if(Y(t)){var i=te();return A(t,function(o){o!=null&&Qt(o,null)!=null&&i.set(o,!0)}),We(e,function(o){return o&&i.get(o[n])})}var r=Qt(t,null);return We(e,function(o){return o&&r!=null&&o[n]===r})}function Km(n,t){return t.hasOwnProperty("subType")?We(n,function(e){return e&&e.subType===t.subType}):n}function Jm(n){var t=te();return n&&A(Qe(n.replaceMerge),function(e){ue(Te.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ct(jm,Sp);const $m=jm;var aC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const Qm=function(n){A(aC,function(t){this[t]=Q(n[t],n)},this)};var Tp={},sC=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var i=[];A(Tp,function(r,o){var a=r.create(t,e);i=i.concat(a||[])}),this._coordinateSystems=i},n.prototype.update=function(t,e){A(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){Tp[t]=e},n.get=function(t){return Tp[t]},n}();const Wl=sC;var lC=/^(min|max)?(.+)$/,uC=function(){function n(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return n.prototype.setOption=function(t,e,i){t&&(A(Qe(t.series),function(a){a&&a.data&&pt(a.data)&&Wo(a.data)}),A(Qe(t.dataset),function(a){a&&a.source&&pt(a.source)&&Wo(a.source)})),t=oe(t);var r=this._optionBackup,o=function(a,s,l){var u,h,c=[],p=a.baseOption,d=a.timeline,f=a.options,g=a.media,y=!!a.media,v=!!(f||d||p&&p.timeline);p?(h=p).timeline||(h.timeline=d):((v||y)&&(a.options=a.media=null),h=a),y&&(Y(g)?A(g,function(x){x&&!x.option&&ee(x.query)&&ee(x.query.option)&&xt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),x&&x.option&&(x.query?c.push(x):u||(u=x))}):xt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function m(x){A(s,function(_){_(x,l)})}return m(h),A(f,function(x){return m(x)}),A(c,function(x){return m(x.option)}),{baseOption:h,timelineOptions:f||[],mediaDefault:u,mediaList:c}}(t,e,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},n.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],oe(t?e.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var r=t.getComponent("timeline");r&&(e=oe(i[r.getCurrentIndex()]))}return e},n.prototype.getMediaOption=function(t){var e,i,r=this._api.getWidth(),o=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var h=0,c=a.length;h<c;h++)hC(a[h].query,r,o)&&l.push(h);return!l.length&&s&&(l=[-1]),l.length&&(e=l,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(u=X(l,function(p){return oe(p===-1?s.option:a[p].option)})),this._currentMediaIndices=l,u},n}();function hC(n,t,e){var i={width:t,height:e,aspectratio:t/e},r=!0;return A(n,function(o,a){var s=a.match(lC);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function(h,c,p){return p==="min"?h>=c:p==="max"?h<=c:h===c})(i[u],o,l)||(r=!1)}}),r}const cC=uC;var ln=A,Ra=ee,e0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ip(n){var t=n&&n.itemStyle;if(t)for(var e=0,i=e0.length;e<i;e++){var r=e0[e],o=t.normal,a=t.emphasis;o&&o[r]&&($e("itemStyle.normal."+r,r),n[r]=n[r]||{},n[r].normal?pe(n[r].normal,o[r]):n[r].normal=o[r],o[r]=null),a&&a[r]&&($e("itemStyle.emphasis."+r,"emphasis."+r),n[r]=n[r]||{},n[r].emphasis?pe(n[r].emphasis,a[r]):n[r].emphasis=a[r],a[r]=null)}}function gt(n,t,e){if(n&&n[t]&&(n[t].normal||n[t].emphasis)){var i=n[t].normal,r=n[t].emphasis;i&&($t("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(n[t].normal=n[t].emphasis=null,le(n[t],i)):n[t]=i),r&&($t(t+".emphasis has been changed to emphasis."+t+" since 4.0"),n.emphasis=n.emphasis||{},n.emphasis[t]=r,r.focus&&(n.emphasis.focus=r.focus),r.blurScope&&(n.emphasis.blurScope=r.blurScope))}}function Ea(n){gt(n,"itemStyle"),gt(n,"lineStyle"),gt(n,"areaStyle"),gt(n,"label"),gt(n,"labelLine"),gt(n,"upperLabel"),gt(n,"edgeLabel")}function Ze(n,t){var e=Ra(n)&&n[t],i=Ra(e)&&e.textStyle;if(i){$t("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var r=0,o=Py.length;r<o;r++){var a=Py[r];i.hasOwnProperty(a)&&(e[a]=i[a])}}}function un(n){n&&(Ea(n),Ze(n,"label"),n.emphasis&&Ze(n.emphasis,"label"))}function ui(n){return Y(n)?n:n?[n]:[]}function t0(n){return(Y(n)?n[0]:n)||{}}function pC(n,t){ln(ui(n.series),function(i){Ra(i)&&function(r){if(Ra(r)){Ip(r),Ea(r),Ze(r,"label"),Ze(r,"upperLabel"),Ze(r,"edgeLabel"),r.emphasis&&(Ze(r.emphasis,"label"),Ze(r.emphasis,"upperLabel"),Ze(r.emphasis,"edgeLabel"));var o=r.markPoint;o&&(Ip(o),un(o));var a=r.markLine;a&&(Ip(a),un(a));var s=r.markArea;s&&un(s);var l=r.data;if(r.type==="graph"){l=l||r.nodes;var u=r.links||r.edges;if(u&&!pt(u))for(var h=0;h<u.length;h++)un(u[h]);A(r.categories,function(d){Ea(d)})}if(l&&!pt(l))for(h=0;h<l.length;h++)un(l[h]);if((o=r.markPoint)&&o.data){var c=o.data;for(h=0;h<c.length;h++)un(c[h])}if((a=r.markLine)&&a.data){var p=a.data;for(h=0;h<p.length;h++)Y(p[h])?(un(p[h][0]),un(p[h][1])):un(p[h])}r.type==="gauge"?(Ze(r,"axisLabel"),Ze(r,"title"),Ze(r,"detail")):r.type==="treemap"?(gt(r.breadcrumb,"itemStyle"),A(r.levels,function(d){Ea(d)})):r.type==="tree"&&Ea(r.leaves)}}(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ln(e,function(i){ln(ui(n[i]),function(r){r&&(Ze(r,"axisLabel"),Ze(r.axisPointer,"label"))})}),ln(ui(n.parallel),function(i){var r=i&&i.parallelAxisDefault;Ze(r,"axisLabel"),Ze(r&&r.axisPointer,"label")}),ln(ui(n.calendar),function(i){gt(i,"itemStyle"),Ze(i,"dayLabel"),Ze(i,"monthLabel"),Ze(i,"yearLabel")}),ln(ui(n.radar),function(i){Ze(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name,$t("name property in radar component has been changed to axisName")),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap,$t("nameGap property in radar component has been changed to axisNameGap")),ln(i.indicator,function(r){r.text&&$e("text","name","radar.indicator")})}),ln(ui(n.geo),function(i){Ra(i)&&(un(i),ln(ui(i.regions),function(r){un(r)}))}),ln(ui(n.timeline),function(i){un(i),gt(i,"label"),gt(i,"itemStyle"),gt(i,"controlStyle",!0);var r=i.data;Y(r)&&A(r,function(o){ee(o)&&(gt(o,"label"),gt(o,"itemStyle"))})}),ln(ui(n.toolbox),function(i){gt(i,"iconStyle"),ln(i.feature,function(r){gt(r,"iconStyle")})}),Ze(t0(n.axisPointer),"label"),Ze(t0(n.tooltip).axisPointer,"label")}function n0(n){n&&A(dC,function(t){t[0]in n&&!(t[1]in n)&&(n[t[1]]=n[t[0]])})}var dC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Cp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Na(n){var t=n&&n.itemStyle;if(t)for(var e=0;e<Cp.length;e++){var i=Cp[e][1],r=Cp[e][0];t[i]!=null&&(t[r]=t[i],$e(i,r))}}function i0(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&($e("label.margin","label.edgeDistance","pie"),n.edgeDistance=n.margin)}function r0(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay,$e("downplay","blur","sunburst"))}function o0(n,t){if(n)for(var e=0;e<n.length;e++)t(n[e]),n[e]&&o0(n[e].children,t)}function a0(n,t){pC(n,t),n.series=Qe(n.series),A(n.series,function(e){if(ee(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,$e("clipOverflow","clip","line"));else if(i==="pie"||i==="gauge"){if(e.clockWise!=null&&(e.clockwise=e.clockWise,$e("clockWise","clockwise")),i0(e.label),(a=e.data)&&!pt(a))for(var r=0;r<a.length;r++)i0(a[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&($e("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=function(l,u){for(var h=u.split(","),c=l,p=0;p<h.length&&(c=c&&c[h[p]])!=null;p++);return c}(e,"pointer.color");o!=null&&function(l,u,h,c){for(var p,d=u.split(","),f=l,g=0;g<d.length-1;g++)f[p=d[g]]==null&&(f[p]={}),f=f[p];(c||f[d[g]]==null)&&(f[d[g]]=h)}(e,"itemStyle.color",o)}else if(i==="bar"){var a;if(Na(e),Na(e.backgroundStyle),Na(e.emphasis),(a=e.data)&&!pt(a))for(r=0;r<a.length;r++)typeof a[r]=="object"&&(Na(a[r]),Na(a[r]&&a[r].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,$e("highlightPolicy","emphasis.focus","sunburst"))),r0(e),o0(e.data,r0)}else i==="graph"||i==="sankey"?function(l){l&&l.focusNodeAdjacency!=null&&(l.emphasis=l.emphasis||{},l.emphasis.focus==null&&($e("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),l.emphasis.focus="adjacency"))}(e):i==="map"&&(e.mapType&&!e.map&&($e("mapType","map","map"),e.map=e.mapType),e.mapLocation&&($t("`mapLocation` is not used anymore."),le(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&($e("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),n0(e)}}),n.dataRange&&(n.visualMap=n.dataRange),A(fC,function(e){var i=n[e];i&&(Y(i)||(i=[i]),A(i,function(r){n0(r)}))})}function gC(n){A(n,function(t,e){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,h,c){var p,d,f=a.get(t.stackedDimension,c);if(isNaN(f))return r;s?d=a.getRawIndex(c):p=a.get(t.stackedByDimension,c);for(var g=NaN,y=e-1;y>=0;y--){var v=n[y];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,p)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=MT(f,m),g=m;break}}}return i[0]=f,i[1]=g,i})})}var _o,wo,bo,s0,l0,Yl=function(n){this.data=n.data||(n.sourceFormat===Gn?{}:[]),this.sourceFormat=n.sourceFormat||Vm,this.seriesLayoutBy=n.seriesLayoutBy||Hn,this.startIndex=n.startIndex||0,this.dimensionsDetectedCount=n.dimensionsDetectedCount,this.metaRawOption=n.metaRawOption;var t=this.dimensionsDefine=n.dimensionsDefine;if(t)for(var e=0;e<t.length;e++){var i=t[e];i.type==null&&Hm(this,e)===lt.Must&&(i.type="ordinal")}};function Ap(n){return n instanceof Yl}function Dp(n,t,e){e=e||u0(n);var i=t.seriesLayoutBy,r=function(o,a,s,l,u){var h,c;if(!o)return{dimensionsDefine:h0(u),startIndex:c,dimensionsDetectedCount:h};if(a===Ot){var p=o;l==="auto"||l==null?c0(function(f){f!=null&&f!=="-"&&(j(f)?c==null&&(c=1):c=0)},s,p,10):c=Re(l)?l:l?1:0,u||c!==1||(u=[],c0(function(f,g){u[g]=f!=null?f+"":""},s,p,1/0)),h=u?u.length:s===xo?p.length:p[0]?p[0].length:null}else if(a===wn)u||(u=function(f){for(var g,y=0;y<f.length&&!(g=f[y++]););if(g)return Oe(g)}(o));else if(a===Gn)u||(u=[],A(o,function(f,g){u.push(g)}));else if(a===sn){var d=la(o[0]);h=Y(d)&&d.length||1}else a===li&&ue(!!u,"dimensions must be given if data is TypedArray.");return{startIndex:c,dimensionsDefine:h0(u),dimensionsDetectedCount:h}}(n,e,i,t.sourceHeader,t.dimensions);return new Yl({data:n,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:oe(t)})}function kp(n){return new Yl({data:n,sourceFormat:pt(n)?li:sn})}function u0(n){var t=Vm;if(pt(n))t=li;else if(Y(n)){n.length===0&&(t=Ot);for(var e=0,i=n.length;e<i;e++){var r=n[e];if(r!=null){if(Y(r)||pt(r)){t=Ot;break}if(ee(r)){t=wn;break}}}}else if(ee(n)){for(var o in n)if(Ut(n,o)&&mt(n[o])){t=Gn;break}}return t}function h0(n){if(n){var t=te();return X(n,function(e,i){var r={name:(e=ee(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function c0(n,t,e,i){if(t===xo)for(var r=0;r<e.length&&r<i;r++)n(e[r]?e[r][0]:null,r);else{var o=e[0]||[];for(r=0;r<o.length&&r<i;r++)n(o[r],r)}}function p0(n){var t=n.sourceFormat;return t===wn||t===Gn}var d0=function(){function n(t,e){var i=Ap(t)?t:kp(t);this._source=i;var r=this._data=i.data;if(i.sourceFormat===li){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=r}l0(this,r,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(t,e){},n.prototype.appendData=function(t){},n.prototype.clean=function(){},n.protoInitialize=function(){var t=n.prototype;t.pure=!1,t.persistent=!0}(),n.internalField=function(){var t;l0=function(a,s,l){var u=l.sourceFormat,h=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,d=s0[Pp(u,h)];if(ue(d,"Invalide sourceFormat: "+u),G(a,d),u===li)a.getItem=e,a.count=r,a.fillStorage=i;else{var f=g0(u,h);a.getItem=Q(f,null,s,c,p);var g=v0(u,h);a.count=Q(g,null,s,c,p)}};var e=function(a,s){a-=this._offset,s=s||[];for(var l=this._data,u=this._dimSize,h=u*a,c=0;c<u;c++)s[c]=l[h+c];return s},i=function(a,s,l,u){for(var h=this._data,c=this._dimSize,p=0;p<c;p++){for(var d=u[p],f=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],y=s-a,v=l[p],m=0;m<y;m++){var x=h[m*c+p];v[a+m]=x,x<f&&(f=x),x>g&&(g=x)}d[0]=f,d[1]=g}},r=function(){return this._data?this._data.length/this._dimSize:0};function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}(t={})[Ot+"_"+Hn]={pure:!0,appendData:o},t[Ot+"_"+xo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wn]={pure:!0,appendData:o},t[Gn]={pure:!0,appendData:function(a){var s=this._data;A(a,function(l,u){for(var h=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)h.push(l[c])})}},t[sn]={appendData:o},t[li]={persistent:!1,pure:!0,appendData:function(a){ue(pt(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},s0=t}(),n}(),f0=function(n,t,e,i){return n[i]},yC=((_o={})[Ot+"_"+Hn]=function(n,t,e,i){return n[i+t]},_o[Ot+"_"+xo]=function(n,t,e,i,r){i+=t;for(var o=r||[],a=n,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},_o[wn]=f0,_o[Gn]=function(n,t,e,i,r){for(var o=r||[],a=0;a<e.length;a++){var s=e[a].name;if(s==null)throw new Error;var l=n[s];o[a]=l?l[i]:null}return o},_o[sn]=f0,_o);function g0(n,t){var e=yC[Pp(n,t)];return ue(e,'Do not support get item on "'+n+'", "'+t+'".'),e}var y0=function(n,t,e){return n.length},vC=((wo={})[Ot+"_"+Hn]=function(n,t,e){return Math.max(0,n.length-t)},wo[Ot+"_"+xo]=function(n,t,e){var i=n[0];return i?Math.max(0,i.length-t):0},wo[wn]=y0,wo[Gn]=function(n,t,e){var i=e[0].name;if(i==null)throw new Error;var r=n[i];return r?r.length:0},wo[sn]=y0,wo);function v0(n,t){var e=vC[Pp(n,t)];return ue(e,'Do not support count on "'+n+'", "'+t+'".'),e}var Lp=function(n,t,e){return n[t]},mC=((bo={})[Ot]=Lp,bo[wn]=function(n,t,e){return n[e]},bo[Gn]=Lp,bo[sn]=function(n,t,e){var i=la(n);return i instanceof Array?i[t]:i},bo[li]=Lp,bo);function m0(n){var t=mC[n];return ue(t,'Do not support get value on "'+n+'".'),t}function Pp(n,t){return n===Ot?n+"_"+t:n}function So(n,t,e){if(n){var i=n.getRawDataItem(t);if(i!=null){var r=n.getStore(),o=r.getSource().sourceFormat;if(e!=null){var a=n.getDimensionIndex(e),s=r.getDimensionProperty(a);return m0(o)(i,a,s)}var l=i;return o===sn&&(l=la(i)),l}}}var xC=/\{@(.+?)\}/g,_C=function(){function n(){}return n.prototype.getDataParams=function(t,e){var i=this.getData(e),r=this.getRawValue(t,e),o=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],h=l&&l.stroke,c=this.mainType,p=c==="series",d=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:e,value:r,color:u,borderColor:h,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,i,r,o,a){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);return a&&(l.value=a.interpolatedValue),r!=null&&Y(l.value)&&(l.value=l.value[r]),o||(o=s.getItemModel(t).get(e==="normal"?["label","formatter"]:[e,"label","formatter"])),ae(o)?(l.status=e,l.dimensionIndex=r,o(l)):j(o)?mp(o,l).replace(xC,function(u,h){var c=h.length,p=h;p.charAt(0)==="["&&p.charAt(c-1)==="]"&&(p=+p.slice(1,c-1),isNaN(p)&&xt("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var d=So(s,t,p);if(a&&Y(a.interpolatedValue)){var f=s.getDimensionIndex(p);f>=0&&(d=a.interpolatedValue[f])}return d!=null?d+"":""}):void 0},n.prototype.getRawValue=function(t,e){return So(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,i){},n}();function x0(n){var t,e;return ee(n)?n.type?e=n:console.warn("The return type of `formatTooltip` is not supported: "+$s(n)):t=n,{text:t,frag:e}}function za(n){return new wC(n)}var wC=function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var e,i=this._upstream,r=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=c(this._modBy),l=this._modDataCount||0,u=c(t&&t.modBy),h=t&&t.modDataCount||0;function c(m){return!(m>=1)&&(m=1),m}s===u&&l===h||(e="reset"),(this._dirty||e==="reset")&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=h;var p=t&&t.step;if(i?(ue(i._outputDueEnd!=null),this._dueEnd=i._outputDueEnd):(ue(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,f=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(a||d<f)){var g=this._progress;if(Y(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],d,f,u,h);else this._doProgress(g,d,f,u,h)}this._dueIndex=f;var v=this._settedOutputEnd!=null?this._settedOutputEnd:f;ue(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(t,e,i,r,o){_0.reset(e,i,r,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:_0.next},this.context)},n.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),Y(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(t){ue(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},n}(),_0=function(){var n,t,e,i,r,o={reset:function(l,u,h,c){t=l,n=u,e=h,i=c,r=Math.ceil(i/e),o.next=e>1&&i>0?s:a}};return o;function a(){return t<n?t++:null}function s(){var l=t%r*e+Math.ceil(t/r),u=t>=n?null:l<i?l:t;return t++,u}}();function Xl(n,t){var e=t&&t.type;return e==="ordinal"?n:(e!=="time"||Re(n)||n==null||n==="-"||(n=+Jt(n)),n==null||n===""?NaN:+n)}te({number:function(n){return parseFloat(n)},time:function(n){return+Jt(n)},trim:function(n){return j(n)?Xt(n):n}});var bC=function(){function n(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return n.prototype.evaluate=function(t,e){var i=Re(t)?t:sa(t),r=Re(e)?e:sa(e),o=isNaN(i),a=isNaN(r);if(o&&(i=this._incomparable),a&&(r=this._incomparable),o&&a){var s=j(t),l=j(e);s&&(i=l?t:0),l&&(r=s?e:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},n}(),SC=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,e){},n.prototype.retrieveValueFromItem=function(t,e){},n.prototype.convertValue=function(t,e){return Xl(t,e)},n}();function MC(n){var t=n.sourceFormat;return Op(t)||Dt("`getRawData` is not supported in source format "+t),n.data}function TC(n){var t=n.sourceFormat,e=n.data;if(Op(t)||Dt("`cloneRawData` is not supported in source format "+t),t===Ot){for(var i=[],r=0,o=e.length;r<o;r++)i.push(e[r].slice());return i}if(t===wn){for(i=[],r=0,o=e.length;r<o;r++)i.push(G({},e[r]));return i}}function IC(n,t,e){if(e!=null)return Re(e)||!isNaN(e)&&!Ut(t,e)?n[e]:Ut(t,e)?t[e]:void 0}function CC(n){return oe(n)}var w0=te();function AC(n,t,e,i){t.length||Dt("Must have at least one upstream dataset."),ee(n)||Dt("transform declaration must be an object rather than "+typeof n+".");var r=n.type,o=w0.get(r);o||Dt('Can not find transform on type "'+r+'".');var a,s=X(t,function(h){return function(c,p){var d=new SC,f=c.data,g=d.sourceFormat=c.sourceFormat,y=c.startIndex;c.seriesLayoutBy!==Hn&&Dt('`seriesLayoutBy` of upstream dataset can only be "column" in data transform.');var v=[],m={},x=c.dimensionsDefine;if(x)A(x,function(T,I){var C=T.name,D={index:I,name:C,displayName:T.displayName};v.push(D),C!=null&&(Ut(m,C)&&Dt('dimension name "'+C+'" duplicated.'),m[C]=D)});else for(var _=0;_<c.dimensionsDetectedCount;_++)v.push({index:_});var b=g0(g,Hn);p.__isBuiltIn&&(d.getRawDataItem=function(T){return b(f,y,v,T)},d.getRawData=Q(MC,null,c)),d.cloneRawData=Q(TC,null,c);var w=v0(g,Hn);d.count=Q(w,null,f,y,v);var S=m0(g);d.retrieveValue=function(T,I){var C=b(f,y,v,T);return M(C,I)};var M=d.retrieveValueFromItem=function(T,I){if(T!=null){var C=v[I];return C?S(T,I,C.name):void 0}};return d.getDimensionInfo=Q(IC,null,v,m),d.cloneAllDimensionInfo=Q(CC,null,v),d}(h,o)}),l=Qe(o.transform({upstream:s[0],upstreamList:s,config:oe(n.config)}));if(n.print){var u=X(l,function(h){var c=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+e.datasetIndex+c+" ===","- transform result data:",$s(h.data),"- transform result dimensions:",$s(h.dimensions)].join(`
- `)}).join(`
- `);Js("log",u,a)}return X(l,function(h,c){var p;ee(h)||Dt("A transform should not return some empty results."),h.data||Dt("Transform result data should be not be null or undefined"),Op(u0(h.data))||Dt("Transform result data should be array rows or object rows.");var d=t[0];if(d&&c===0&&!h.dimensions){var f=d.startIndex;f&&(h.data=d.data.slice(0,f).concat(h.data)),p={seriesLayoutBy:Hn,sourceHeader:f,dimensions:d.metaRawOption.dimensions}}else p={seriesLayoutBy:Hn,sourceHeader:0,dimensions:h.dimensions};return Dp(h.data,p,null)})}function Op(n){return n===Ot||n===wn}var Rp,Ul="undefined",DC=typeof Uint32Array===Ul?Array:Uint32Array,kC=typeof Uint16Array===Ul?Array:Uint16Array,b0=typeof Int32Array===Ul?Array:Int32Array,S0=typeof Float64Array===Ul?Array:Float64Array,M0={float:S0,int:b0,ordinal:Array,number:Array,time:S0};function Ba(n){return n>65535?DC:kC}function T0(n,t,e,i,r){var o=M0[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];n[t]=l}}else n[t]=new o(i)}var LC=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=te()}return n.prototype.initData=function(t,e,i){ue(ae(t.getItem)&&ae(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),o=this.defaultDimValueGetter=Rp[r.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[];var a=p0(r);this._dimensions=X(e,function(s){return a&&ue(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,r=this._dimensions,o=i.get(t);if(o!=null){if(r[o].type===e)return o}else o=r.length;return r[o]={type:e},i.set(t,o),this._chunks[o]=new M0[e||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},n.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],r=this._dimensions[t],o=this._rawExtent,a=r.ordinalOffset||0,s=i.length;a===0&&(o[t]=[1/0,-1/0]);for(var l=o[t],u=a;u<s;u++){var h=i[u]=e.parseAndCollect(i[u]);isNaN(h)||(l[0]=Math.min(h,l[0]),l[1]=Math.max(h,l[1]))}r.ordinalMeta=e,r.ordinalOffset=s,r.type="ordinal"},n.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},n.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},n.prototype.appendData=function(t){ue(!this._indices,"appendData can only be called on raw data.");var e=this._provider,i=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},n.prototype.appendValues=function(t,e){for(var i=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<o;u++)T0(i,u,(f=r[u]).type,l,!0);for(var h=[],c=s;c<l;c++)for(var p=c-s,d=0;d<o;d++){var f=r[d],g=Rp.arrayRows.call(this,t[p]||h,f.property,p,d);i[d][c]=g;var y=a[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=X(a,function(m){return m.property}),h=0;h<s;h++){var c=a[h];l[h]||(l[h]=[1/0,-1/0]),T0(o,h,c.type,e,i)}if(r.fillStorage)r.fillStorage(t,e,o,l);else for(var p=[],d=t;d<e;d++){p=r.getItem(d,p);for(var f=0;f<s;f++){var g=o[f],y=this._dimValueGetter(p,u[f],d,f);g[d]=y;var v=l[f];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},n.prototype.getValues=function(t,e){var i=[],r=[];if(e==null){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=t;o=0;for(var a=r.length;o<a;o++)i.push(this.get(r[o],e));return i},n.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},n.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},n.prototype.getMedian=function(t){var e=[];this.each([t],function(o){isNaN(o)||e.push(o)});var i=e.sort(function(o,a){return o-a}),r=this.count();return r===0?0:r%2==1?i[(r-1)/2]:(i[r/2]+i[r/2-1])/2},n.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var r=0,o=this._count-1;r<=o;){var a=(r+o)/2|0;if(e[a]<t)r=a+1;else{if(!(e[a]>t))return a;o=a-1}}return-1},n.prototype.indicesOfNearest=function(t,e,i){var r=this._chunks[t],o=[];if(!r)return o;i==null&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();u<h;u++){var c=e-r[this.getRawIndex(u)],p=Math.abs(c);p<=i&&((p<a||p===a&&c>=0&&s<0)&&(a=p,s=c,l=0),c===s&&(o[l++]=u))}return o.length=l,o},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o<r;o++)t[o]=e[o]}else t=new i(e.buffer,0,r)}else for(t=new(i=Ba(this._rawCount))(this.count()),o=0;o<t.length;o++)t[o]=o;return t},n.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),r=i.count(),o=new(Ba(i._rawCount))(r),a=[],s=t.length,l=0,u=t[0],h=i._chunks,c=0;c<r;c++){var p=void 0,d=i.getRawIndex(c);if(s===0)p=e(c);else if(s===1)p=e(h[u][d],c);else{for(var f=0;f<s;f++)a[f]=h[t[f]][d];a[f]=c,p=e.apply(null,a)}p&&(o[l++]=d)}return l<r&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var r=Oe(t),o=r.length;if(!o)return this;var a=e.count(),s=new(Ba(e._rawCount))(a),l=0,u=r[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var f=0;if(o===1){for(var g=p[r[0]],y=0;y<i;y++)((_=g[y])>=h&&_<=c||isNaN(_))&&(s[l++]=f),f++;d=!0}else if(o===2){g=p[r[0]];var v=p[r[1]],m=t[r[1]][0],x=t[r[1]][1];for(y=0;y<i;y++){var _=g[y],b=v[y];(_>=h&&_<=c||isNaN(_))&&(b>=m&&b<=x||isNaN(b))&&(s[l++]=f),f++}d=!0}}if(!d)if(o===1)for(y=0;y<a;y++){var w=e.getRawIndex(y);((_=p[r[0]][w])>=h&&_<=c||isNaN(_))&&(s[l++]=w)}else for(y=0;y<a;y++){for(var S=!0,M=(w=e.getRawIndex(y),0);M<o;M++){var T=r[M];((_=p[T][w])<t[T][0]||_>t[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(y))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},n.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},n.prototype.modify=function(t,e){this._updateDims(this,t,e)},n.prototype._updateDims=function(t,e,i){for(var r=t._chunks,o=[],a=e.length,s=t.count(),l=[],u=t._rawExtent,h=0;h<e.length;h++)u[e[h]]=[1/0,-1/0];for(var c=0;c<s;c++){for(var p=t.getRawIndex(c),d=0;d<a;d++)l[d]=r[e[d]][p];l[a]=c;var f=i&&i.apply(null,l);if(f!=null)for(typeof f!="object"&&(o[0]=f,f=o),h=0;h<f.length;h++){var g=e[h],y=f[h],v=u[g],m=r[g];m&&(m[p]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}},n.prototype.lttbDownSample=function(t,e){var i,r,o,a=this.clone([t],!0),s=a._chunks[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Ba(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;d<l-1;d+=h){for(var f=Math.min(d+h,l-1),g=Math.min(d+2*h,l),y=(g+f)/2,v=0,m=f;m<g;m++){var x=s[I=this.getRawIndex(m)];isNaN(x)||(v+=x)}v/=g-f;var _=d,b=Math.min(d+h,l),w=d-1,S=s[c];i=-1,o=_;var M=-1,T=0;for(m=_;m<b;m++){var I;x=s[I=this.getRawIndex(m)],isNaN(x)?(T++,M<0&&(M=I)):(r=Math.abs((w-y)*(x-S)-(w-m)*(v-S)))>i&&(i=r,o=I)}T>0&&T<b-_&&(p[u++]=Math.min(M,o),o=Math.max(M,o)),p[u++]=o,c=o}return p[u++]=this.getRawIndex(l-1),a._count=u,a._indices=p,a.getRawIndex=this._getRawIdx,a},n.prototype.downSample=function(t,e,i,r){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/e),u=a[t],h=this.count(),c=o._rawExtent[t]=[1/0,-1/0],p=new(Ba(this._rawCount))(Math.ceil(h/l)),d=0,f=0;f<h;f+=l){l>h-f&&(l=h-f,s.length=l);for(var g=0;g<l;g++){var y=this.getRawIndex(f+g);s[g]=u[y]}var v=i(s),m=this.getRawIndex(Math.min(f+r(s,v)||0,h-1));u[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),p[d++]=m}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},n.prototype.each=function(t,e){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(r[t[0]][s],o);break;case 2:e(r[t[0]][s],r[t[1]][s],o);break;default:for(var l=0,u=[];l<i;l++)u[l]=r[t[l]][s];u[l]=o,e.apply(null,u)}}},n.prototype.getDataExtent=function(t){var e=this._chunks[t],i=[1/0,-1/0];if(!e)return i;var r,o=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var a=(r=i)[0],s=r[1],l=0;l<o;l++){var u=e[this.getRawIndex(l)];u<a&&(a=u),u>s&&(s=u)}return r=[a,s],this._extent[t]=r,r},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],r=this._chunks,o=0;o<r.length;o++)i.push(r[o][e]);return i},n.prototype.clone=function(t,e){var i,r,o=new n,a=this._chunks,s=t&&gn(t,function(u,h){return u[h]=!0,u},{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},n.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=oe(this._extent),t._rawExtent=oe(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var r=0;r<i;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},n.prototype._getRawIdxIdentity=function(t){return t},n.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,i,r,o){return Xl(e[o],this._dimensions[o])}Rp={arrayRows:t,objectRows:function(e,i,r,o){return Xl(e[i],this._dimensions[o])},keyedColumns:t,original:function(e,i,r,o){var a=e&&(e.value==null?e:e.value);return Xl(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,i,r,o){return e[o]}}}(),n}();const Ep=LC;var I0=function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,r=this._getUpstreamSourceManagers(),o=!!r.length;if(Va(i)){var a=i,s=void 0,l=void 0,u=void 0;if(o){var h=r[0];h.prepareSource(),s=(u=h.getSource()).data,l=u.sourceFormat,e=[h._getVersionSign()]}else l=pt(s=a.get("data",!0))?li:sn,e=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=fe(c.seriesLayoutBy,p.seriesLayoutBy)||null,f=fe(c.sourceHeader,p.sourceHeader),g=fe(c.dimensions,p.dimensions);t=d!==p.seriesLayoutBy||!!f!=!!p.sourceHeader||g?[Dp(s,{seriesLayoutBy:d,sourceHeader:f,dimensions:g},l)]:[]}else{var y=i;if(o){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else t=[Dp(y.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}ue(t&&e),this._setLocalSource(t,e)},n.prototype._applyTransform=function(t){var e,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);ue(o!=null||r!=null),o!=null&&t.length!==1&&A0("When using `fromTransformResult`, there should be only one upstream dataset");var a,s=[],l=[];return A(t,function(u){u.prepareSource();var h=u.getSource(o||0);o==null||h||A0("Can not retrieve result by `fromTransformResult`: "+o),s.push(h),l.push(u._getVersionSign())}),r?e=function(u,h,c){var p=Qe(u),d=p.length;d||Dt("If `transform` declared, it should at least contain one transform.");for(var f=0,g=d;f<g;f++)h=AC(p[f],h,c,d===1?null:f),f!==g-1&&(h.length=Math.max(h.length,1));return h}(r,s,{datasetIndex:i.componentIndex}):o!=null&&(e=[(a=s[0],new Yl({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:oe(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},n.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},n.prototype.getSharedDataStore=function(t){ue(Va(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},n.prototype._innerGetDataStore=function(t,e,i){var r=this._storeList,o=r[0];o||(o=r[0]={});var a=o[i];if(!a){var s=this._getUpstreamSourceManagers()[0];Va(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,i):(a=new Ep).initData(new d0(e,t.length),t),o[i]=a}return a},n.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Va(t)){var e=wp(t);return e?[e.getSourceManager()]:[]}return X(function(i){return i.get("transform",!0)||i.get("fromTransformResult",!0)?ca(i.ecModel,"dataset",{index:i.get("fromDatasetIndex",!0),id:i.get("fromDatasetId",!0)},nt).models:[]}(t),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var t,e,i,r=this._sourceHost;if(Va(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;t=o.get("seriesLayoutBy",!0),e=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},n}();function C0(n){n.option.transform&&Wo(n.option.transform)}function Va(n){return n.mainType==="series"}function A0(n){throw new Error(n)}var D0="line-height:1";function k0(n,t){var e=n.color||"#6e7079",i=n.fontSize||12,r=n.fontWeight||"400",o=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Bt(i+"")+"px;color:"+Bt(e)+";font-weight:"+Bt(r+""),valueStyle:"font-size:"+Bt(a+"")+"px;color:"+Bt(o)+";font-weight:"+Bt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var PC=[0,10,20,30],OC=["",`
- `,`
- `,`
- `];function Wn(n,t){return t.type=n,t}function Np(n){return n.type==="section"}function L0(n){return Np(n)?RC:EC}function P0(n){if(Np(n)){var t=0,e=n.blocks.length,i=e>1||e>0&&!n.noHeader;return A(n.blocks,function(r){var o=P0(r);o>=t&&(t=o+ +(i&&(!o||Np(r)&&!r.noHeader)))}),t}return 0}function RC(n,t,e,i){var r,o=t.noHeader,a=(r=P0(t),{html:PC[r],richText:OC[r]}),s=[],l=t.blocks||[];ue(!l||Y(l)),l=l||[];var u=n.orderMode;if(t.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Ut(h,u)){var c=new bC(h[u],null);l.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else u==="seriesDesc"&&l.reverse()}A(l,function(g,y){var v=t.valueFormatter,m=L0(g)(v?G(G({},n),{valueFormatter:v}):n,g,y>0?a.html:0,i);m!=null&&s.push(m)});var p=n.renderMode==="richText"?s.join(a.richText):zp(s.join(""),o?e:a.html);if(o)return p;var d=yp(t.header,"ordinal",n.useUTC),f=k0(i,n.renderMode).nameStyle;return n.renderMode==="richText"?R0(n,d,f)+a.richText+p:zp('<div style="'+f+";"+D0+';">'+Bt(d)+"</div>"+p,e)}function EC(n,t,e,i){var r=n.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=n.useUTC,h=t.valueFormatter||n.valueFormatter||function(_){return X(_=Y(_)?_:[_],function(b,w){return yp(b,Y(d)?d[w]:d,u)})};if(!o||!a){var c=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),p=o?"":yp(l,"ordinal",u),d=t.valueType,f=a?[]:h(t.value,t.dataIndex),g=!s||!o,y=!s&&o,v=k0(i,r),m=v.nameStyle,x=v.valueStyle;return r==="richText"?(s?"":c)+(o?"":R0(n,p,m))+(a?"":function(_,b,w,S,M){var T=[M],I=S?10:20;return w&&T.push({padding:[0,0,0,I],align:"right"}),_.markupStyleCreator.wrapRichTextStyle(Y(b)?b.join(" "):b,T)}(n,f,g,y,x)):zp((s?"":c)+(o?"":function(_,b,w){return'<span style="'+w+";"+(b?"margin-left:2px":"")+'">'+Bt(_)+"</span>"}(p,!s,m))+(a?"":function(_,b,w,S){var M=w?"10px":"20px",T=b?"float:right;margin-left:"+M:"";return _=Y(_)?_:[_],'<span style="'+T+";"+S+'">'+X(_,function(I){return Bt(I)}).join(" ")+"</span>"}(f,g,y,x)),e)}}function O0(n,t,e,i,r,o){if(n)return L0(n)({useUTC:r,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,o)}function zp(n,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+D0+';">'+n+'<div style="clear:both"></div></div>'}function R0(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function E0(n,t){return _r(n.getData().getItemVisual(t,"style")[n.visualDrawType])}function N0(n,t){var e=n.get("padding");return e??(t==="richText"?[8,10]:10)}var Bp=function(){function n(){this.richTextStyles={},this._nextStyleNameId=Ty()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,i){var r=i==="richText"?this._generateStyleName():null,o=Rm({color:e,type:t,renderMode:i,markerId:r});return j(o)?o:(ue(r),this.richTextStyles[r]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(t,e){var i={};Y(e)?A(e,function(o){return G(i,o)}):G(i,e);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},n}();function NC(n){var t,e,i,r,o=n.series,a=n.dataIndex,s=n.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=Y(c),d=E0(o,a);if(h>1||p&&!h){var f=function(_,b,w,S,M){var T=b.getData(),I=gn(_,function(P,E,k){var O=T.getDimensionInfo(k);return P||O&&O.tooltip!==!1&&O.displayName!=null},!1),C=[],D=[],L=[];function R(P,E){var k=T.getDimensionInfo(E);k&&k.otherDims.tooltip!==!1&&(I?L.push(Wn("nameValue",{markerType:"subItem",markerColor:M,name:k.displayName,value:P,valueType:k.type})):(C.push(P),D.push(k.type)))}return S.length?A(S,function(P){R(So(T,w,P),P)}):A(_,R),{inlineValues:C,inlineValueTypes:D,blocks:L}}(c,o,a,u,d);t=f.inlineValues,e=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=t=So(l,a,u[0]),e=g.type}else r=t=p?c[0]:c;var y=vc(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return Wn("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Wn("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Xt(x),value:t,valueType:e,dataIndex:a})].concat(i||[])})}var Di=Ne();function Zl(n,t){return n.getName(t)||n.getId(t)}var jl=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return V(t,n),t.prototype.init=function(e,i,r){this.seriesIndex=this.componentIndex,this.dataTask=za({count:zC,reset:BC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r),(Di(this).sourceManager=new I0(this)).prepareSource();var o=this.getInitialData(e,r);B0(o,this),this.dataTask.context.data=o,ue(o,"getInitialData returned invalid data."),Di(this).dataBeforeProcessed=o,z0(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=La(this),o=r?Pa(e):{},a=this.subType;Te.hasClass(a)&&(a+="Series"),pe(e,i.getTheme().get(this.subType)),pe(e,this.getDefaultOption()),Qs(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&yo(e,o,r)},t.prototype.mergeOption=function(e,i){e=pe(this.option,e,!0),this.fillDataTextStyle(e.data);var r=La(this);r&&yo(this.option,e,r);var o=Di(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(e,i);B0(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Di(this).dataBeforeProcessed=a,z0(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!pt(e))for(var i=["show"],r=0;r<e.length;r++)e[r]&&e[r].label&&Qs(e[r],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var i=Vp(this);if(i){var r=i.context.data;return e==null?r:r.getLinkedData(e)}return Di(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Vp(this);if(i){var r=i.context;r.outputData=e,i!==this.dataTask&&(r.data=e)}Di(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return te(e)},t.prototype.getSourceManager=function(){return Di(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Di(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,r){return NC({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(we.node&&(!e||!e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,r){var o=this.ecModel,a=Sp.prototype.getColorFromPalette.call(this,e,i,r);return a||(a=o.getColorFromPalette(e,i,r)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var r=this.option.selectedMap;if(r){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||r==="all")return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<e.length;s++){var l=Zl(a,e[s]);r[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,i){for(var r=[],o=0;o<e.length;o++)r[0]=e[o],this.isSelected(e[o],i)?this.unselect(r,i):this.select(r,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=Oe(e),r=[],o=0;o<i.length;o++){var a=e[i[o]];a>=0&&r.push(a)}return r},t.prototype.isSelected=function(e,i){var r=this.option.selectedMap;if(!r)return!1;var o=this.getData(i);return(r==="all"||r[Zl(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(e===!0||e&&e.enabled)},t.prototype._innerSelect=function(e,i){var r,o,a=this.option,s=a.selectedMode,l=i.length;if(s&&l){if(s==="series")a.selectedMap="all";else if(s==="multiple"){ee(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,h=0;h<l;h++){var c=i[h];u[d=Zl(e,c)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var p=i[l-1],d=Zl(e,p);a.selectedMap=((r={})[d]=!0,r),this._selectedDataIndicesMap=((o={})[d]=e.getRawIndex(p),o)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(r){var o=e.getRawDataItem(r);o&&o.selected&&i.push(r)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return Te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Te);function z0(n){var t=n.name;vc(n)||(n.name=function(e){var i=e.getRawData(),r=i.mapDimensionsAll("seriesName"),o=[];return A(r,function(a){var s=i.getDimensionInfo(a);s.displayName&&o.push(s.displayName)}),o.join(" ")}(n)||t)}function zC(n){return n.model.getRawData().count()}function BC(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),VC}function VC(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function B0(n,t){A(_h(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(e){n.wrapMethod(e,xe(FC,t))})}function FC(n,t){var e=Vp(n);return e&&e.setOutputEnd((t||this).count()),t}function Vp(n){var t=(n.ecModel||{}).scheduler,e=t&&t.getPipeline(n.uid);if(e){var i=e.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}ct(jl,_C),ct(jl,Sp),Vy(jl,Te);const Mt=jl;var Fp=function(){function n(){this.group=new ge,this.uid=co("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){},n.prototype.updateLayout=function(t,e,i,r){},n.prototype.updateVisual=function(t,e,i,r){},n.prototype.toggleBlurSeries=function(t,e,i){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();xc(Fp),el(Fp);const je=Fp;function Gp(){var n=Ne();return function(t){var e=n(t),i=t.pipelineContext,r=!!e.large,o=!!e.progressiveRender,a=e.large=!(!i||!i.large),s=e.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var V0=Ne(),GC=Gp(),Hp=function(){function n(){this.group=new ge,this.uid=co("viewChart"),this.renderTask=za({plan:HC,reset:WC}),this.renderTask.context={view:this}}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){throw new Error("render method must been implemented")},n.prototype.highlight=function(t,e,i,r){var o=t.getData(r&&r.dataType);o?G0(o,r,"emphasis"):xt("Unknown dataType "+r.dataType)},n.prototype.downplay=function(t,e,i,r){var o=t.getData(r&&r.dataType);o?G0(o,r,"normal"):xt("Unknown dataType "+r.dataType)},n.prototype.remove=function(t,e){this.group.removeAll()},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateLayout=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateVisual=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.eachRendered=function(t){Dl(this.group,t)},n.markUpdateMethod=function(t,e){V0(t).updateMethod=e},n.protoInitialize=void(n.prototype.type="chart"),n}();function F0(n,t,e){n&&oo(n)&&(t==="emphasis"?no:io)(n,e)}function G0(n,t,e){var i=ir(n,t),r=t&&t.highlightKey!=null?function(o){var a=gv[o];return a==null&&fv<=32&&(a=gv[o]=fv++),a}(t.highlightKey):null;i!=null?A(Qe(i),function(o){F0(n.getItemGraphicEl(o),e,r)}):n.eachItemGraphicEl(function(o){F0(o,e,r)})}function HC(n){return GC(n.model)}function WC(n){var t=n.model,e=n.ecModel,i=n.api,r=n.payload,o=t.pipelineContext.progressiveRender,a=n.view,s=r&&V0(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,i,r),YC[l]}xc(Hp,["dispose"]),el(Hp);var YC={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const at=Hp;var ql="\0__throttleOriginMethod",H0="\0__throttleRate",W0="\0__throttleType";function Kl(n,t,e){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,n.apply(o,a||[])}t=t||0;var p=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];i=new Date().getTime(),o=this,a=d;var g=s||t,y=s||e;s=null,r=i-(y?l:u)-g,clearTimeout(h),y?h=setTimeout(c,g):r>=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(d){s=d},p}function Fa(n,t,e,i){var r=n[t];if(r){var o=r[ql]||r,a=r[W0];if(r[H0]!==e||a!==i){if(e==null||!i)return n[t]=o;(r=n[t]=Kl(o,e,i==="debounce"))[ql]=o,r[W0]=i,r[H0]=e}return r}}function Ga(n,t){var e=n[t];e&&e[ql]&&(e.clear&&e.clear(),n[t]=e[ql])}var Y0=Ne(),X0={itemStyle:$r(_m,!0),lineStyle:$r(xm,!0)},XC={lineStyle:"stroke",itemStyle:"fill"};function U0(n,t){var e=n.visualStyleMapper||X0[t];return e||(console.warn("Unknown style type '"+t+"'."),X0.itemStyle)}function Z0(n,t){var e=n.visualDrawType||XC[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var UC={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),o=U0(n,i)(r),a=r.getShallow("decal");a&&(e.setVisual("decal",a),a.dirty=!0);var s=Z0(n,i),l=o[s],u=ae(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[s]||u||h){var c=n.getColorFromPalette(n.name,null,t.getSeriesCount());o[s]||(o[s]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ae(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ae(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",s),!t.isSeriesFiltered(n)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(p,d){var f=n.getDataParams(d),g=G({},o);g[s]=u(f),p.setItemVisual(d,"style",g)}}}},Ha=new He,ZC={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=U0(n,i),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Ha.option=l[i];var u=r(Ha);G(a.ensureUniqueItemVisual(s,"style"),u),Ha.option.decal&&(a.setItemVisual(s,"decal",Ha.option.decal),Ha.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},jC={performRawSeries:!0,overallReset:function(n){var t=te();n.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+i,o=t.get(r);o||(o={},t.set(r,o)),Y0(e).scope=o}}),n.eachSeries(function(e){if(!e.isColorBySeries()&&!n.isSeriesFiltered(e)){var i=e.getRawData(),r={},o=e.getData(),a=Y0(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Z0(e,s);o.each(function(u){var h=o.getRawIndex(u);r[h]=u}),i.each(function(u){var h=r[u];if(o.getItemVisual(h,"colorFromPalette")){var c=o.ensureUniqueItemVisual(h,"style"),p=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(p,a,d)}})}})}},Jl=Math.PI,qC=function(){function n(t,e,i,r){this._stageTaskMap=te(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!e&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,a=r&&r.modDataCount;return{step:o,modBy:a!=null?Math.ceil(a/o):null,modDataCount:a}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),r=t.getData().count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},n.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=te();t.eachSeries(function(r){var o=r.getProgressive(),a=r.uid;i.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:o&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;A(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{});ue(!(r.reset&&r.overallReset),'"reset" and "overallReset" must not be both specified.'),r.reset&&this._createSeriesStageTask(r,o,e,i),r.overallReset&&this._createOverallStageTask(r,o,e,i)},this)},n.prototype.prepareView=function(t,e,i,r){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},n.prototype._performStageTasks=function(t,e,i,r){r=r||{};var o=!1,a=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}A(t,function(l,u){if(!r.visualType||r.visualType===l.visualType){var h=a._stageTaskMap.get(l.uid),c=h.seriesTaskMap,p=h.overallTask;if(p){var d,f=p.agentStubMap;f.each(function(y){s(r,y)&&(y.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,r.block);f.each(function(y){y.perform(g)}),p.perform(g)&&(o=!0)}else c&&c.each(function(y,v){s(r,y)&&y.dirty();var m=a.getPerformArgs(y,r.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),a.updatePayload(y,i),y.perform(m)&&(o=!0)})}}),this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,i,r){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=te(),l=t.seriesType,u=t.getTargetSeries;function h(c){var p=c.uid,d=s.set(p,a&&a.get(p)||za({plan:e2,reset:t2,count:i2}));d.context={model:c,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(c,d)}t.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,r).each(h)},n.prototype._createOverallStageTask=function(t,e,i,r){var o=this,a=e.overallTask=e.overallTask||za({reset:KC});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=te(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;function d(f){var g=f.uid,y=l.set(g,s&&s.get(g)||(p=!0,za({reset:JC,onDirty:QC})));y.context={model:f,overallProgress:c},y.agent=a,y.__block=c,o._pipe(f,y)}ue(!t.createOnAllSeries,'"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),u?i.eachRawSeriesByType(u,d):h?h(i,r).each(d):(c=!1,A(i.getSeries(),d)),p&&a.dirty()},n.prototype._pipe=function(t,e){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return ae(t)&&(t={overallReset:t,seriesType:r2(t)}),t.uid=co("stageHandler"),e&&(t.visualType=e),t},n}();function KC(n){n.overallReset(n.ecModel,n.api,n.payload)}function JC(n){return n.overallProgress&&$C}function $C(){this.agent.dirty(),this.getDownstream().dirty()}function QC(){this.agent&&this.agent.dirty()}function e2(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function t2(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=Qe(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?X(t,function(e,i){return j0(i)}):n2}var n2=j0(0);function j0(n){return function(t,e){var i=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function i2(n){return n.data.count()}function r2(n){$l=null;try{n(Wa,q0)}catch{}return $l}var $l,Wa={},q0={};function K0(n,t){for(var e in t.prototype)n[e]=st}K0(Wa,$m),K0(q0,Qm),Wa.eachSeriesByType=Wa.eachRawSeriesByType=function(n){$l=n},Wa.eachComponent=function(n){n.mainType==="series"&&n.subType&&($l=n.subType)};const J0=qC;var $0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const o2={color:$0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$0]};var Tt="#B9B8CE",Q0="#100C2A",Ql=function(){return{axisLine:{lineStyle:{color:Tt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ex=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],tx={darkMode:!0,color:ex,backgroundColor:Q0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Tt}},textStyle:{color:Tt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Tt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Tt},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:Tt}},timeline:{lineStyle:{color:Tt},label:{color:Tt},controlStyle:{color:Tt,borderColor:Tt}},calendar:{itemStyle:{color:Q0},dayLabel:{color:Tt},monthLabel:{color:Tt},yearLabel:{color:Tt}},timeAxis:Ql(),logAxis:Ql(),valueAxis:Ql(),categoryAxis:Ql(),line:{symbol:"circle"},graph:{color:ex},gauge:{title:{color:Tt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Tt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};tx.categoryAxis.splitLine.show=!1;const a2=tx;var s2=function(){function n(){}return n.prototype.normalizeQuery=function(t){var e={},i={},r={};if(j(t)){var o=On(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var h=!1,c=0;c<a.length;c++){var p=a[c],d=u.lastIndexOf(p);if(d>0&&d===u.length-p.length){var f=u.slice(0,d);f!=="data"&&(e.mainType=f,e[p.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(r[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:r}},n.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,o,"name")&&h(u,o,"dataIndex")&&h(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(c,p,d,f){return c[d]==null||p[f||d]===c[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Wp=["symbol","symbolSize","symbolRotate","symbolOffset"],nx=Wp.concat(["symbolKeepAspect"]),l2={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Wp.length;a++){var s=Wp[a],l=n.get(s);ae(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,e.setVisual(G({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(n)){var u=Oe(r);return{dataEach:o?function(h,c){for(var p=n.getRawValue(c),d=n.getDataParams(c),f=0;f<u.length;f++){var g=u[f];h.setItemVisual(c,g,r[g](p,d))}}:null}}}}},u2={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(n.hasSymbolVisual&&!t.isSeriesFiltered(n))return{dataEach:n.getData().hasItemOption?function(e,i){for(var r=e.getItemModel(i),o=0;o<nx.length;o++){var a=nx[o],s=r.getShallow(a,!0);s!=null&&e.setItemVisual(i,a,s)}}:null}}};function ix(n,t,e){switch(e){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e);default:console.warn("Unknown visual type "+e)}}function rx(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t);default:console.warn("Unknown visual type "+t)}}function ox(n,t){function e(i,r){var o=[];return i.eachComponent({mainType:"series",subType:n,query:r},function(a){o.push(a.seriesIndex)}),o}A([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){t(i[0],function(r,o,a){$e((r=G({},r)).type,i[1]),a.dispatchAction(G(r,{type:i[1],seriesIndex:e(o,r)}))})})}function Mo(n,t,e,i,r){var o=n+t;e.isSilent(o)||($t("event "+o+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=r.selected,h=0;h<u.length;h++)if(u[h].seriesIndex===s){var c=a.getData(),p=ir(c,r.fromActionPayload);e.trigger(o,{type:o,seriesId:a.id,name:Y(p)?c.getName(p[0]):c.getName(p),selected:j(l)?l:G({},l)})}}))}function br(n,t,e){for(var i;n&&(!t(n)||(i=n,!e));)n=n.__hostTarget||n.parent;return i}var h2=Math.round(9*Math.random()),c2=typeof Object.defineProperty=="function",p2=function(){function n(){this._id="__ec_inner_"+h2++}return n.prototype.get=function(t){return this._guard(t)[this._id]},n.prototype.set=function(t,e){var i=this._guard(t);return c2?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},n.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},n.prototype.has=function(t){return!!this._guard(t)[this._id]},n.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},n}();const d2=p2;var f2=De.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i+o),n.lineTo(e-r,i+o),n.closePath()}}),g2=De.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i),n.lineTo(e,i+o),n.lineTo(e-r,i),n.closePath()}}),y2=De.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;n.moveTo(e-h,l+s),n.arc(e,l,a,Math.PI-u,2*Math.PI+u),n.bezierCurveTo(e+h-c*d,l+s+p*d,e,i-f,e,i),n.bezierCurveTo(e,i-f,e-h+c*d,l+s+p*d,e-h,l+s),n.closePath()}}),v2=De.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;n.moveTo(r,o),n.lineTo(r+a,o+e),n.lineTo(r,o+e/4*3),n.lineTo(r-a,o+e),n.lineTo(r,o),n.closePath()}}),m2={line:function(n,t,e,i,r){r.x1=n,r.y1=t+i/2,r.x2=n+e,r.y2=t+i/2},rect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i},roundRect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i,r.r=Math.min(e,i)/4},square:function(n,t,e,i,r){var o=Math.min(e,i);r.x=n,r.y=t,r.width=o,r.height=o},circle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.r=Math.min(e,i)/2},diamond:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i},pin:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},arrow:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},triangle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i}},eu={};A({line:wt,rect:Ie,roundRect:Ie,square:Ie,circle:oi,diamond:g2,pin:y2,arrow:v2,triangle:f2},function(n,t){eu[t]=new n});var x2=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,t,e){var i=js(n,t,e),r=this.shape;return r&&r.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+.4*e.height),i},buildPath:function(n,t,e){var i=t.symbolType;if(i!=="none"){var r=eu[i];r||(r=eu[i="rect"]),m2[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(n,r.shape,e)}}});function _2(n,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=n,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=n:e.fill=n,this.markRedraw()}}function ut(n,t,e,i,r,o,a){var s,l=n.indexOf("empty")===0;return l&&(n=n.substr(5,1).toLowerCase()+n.substr(6)),(s=n.indexOf("image://")===0?Qc(n.slice(8),new me(t,e,i,r),a?"center":"cover"):n.indexOf("path://")===0?Il(n.slice(7),{},new me(t,e,i,r),a?"center":"cover"):new x2({shape:{symbolType:n,x:t,y:e,width:i,height:r}})).__isEmptyBrush=l,s.setColor=_2,o&&s.setColor(o),s}function ax(n){return Y(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Yp(n,t){if(n!=null)return Y(n)||(n=[n,n]),[ne(n[0],t[0])||0,ne(fe(n[1],n[0]),t[1])||0]}function Sr(n){return isFinite(n)}function Xp(n,t,e){for(var i=t.type==="radial"?function(a,s,l){var u=l.width,h=l.height,c=Math.min(u,h),p=s.x==null?.5:s.x,d=s.y==null?.5:s.y,f=s.r==null?.5:s.r;return s.global||(p=p*u+l.x,d=d*h+l.y,f*=c),p=Sr(p)?p:.5,d=Sr(d)?d:.5,f=f>=0&&Sr(f)?f:.5,a.createRadialGradient(p,d,0,p,d,f)}(n,t,e):function(a,s,l){var u=s.x==null?0:s.x,h=s.x2==null?1:s.x2,c=s.y==null?0:s.y,p=s.y2==null?0:s.y2;return s.global||(u=u*l.width+l.x,h=h*l.width+l.x,c=c*l.height+l.y,p=p*l.height+l.y),u=Sr(u)?u:0,h=Sr(h)?h:1,c=Sr(c)?c:0,p=Sr(p)?p:0,a.createLinearGradient(u,c,h,p)}(n,t,e),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function tu(n){return parseInt(n,10)}function nu(n,t,e){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(n);return(n[r]||tu(s[i])||tu(n.style[i]))-(tu(s[o])||0)-(tu(s[a])||0)|0}function sx(n){var t,e,i=n.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,e=i.lineWidth,t&&t!=="solid"&&e>0?t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Re(t)?[t]:Y(t)?t:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(r=X(r,function(s){return s/a}),o/=a)}return[r,o]}var w2=new Ti(!0);function iu(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function lx(n){return typeof n=="string"&&n!=="none"}function ru(n){var t=n.fill;return t!=null&&t!=="none"}function ux(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function hx(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function Up(n,t,e){var i=Fy(t.image,t.__image,e);if(tl(i)){var r=n.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*bg),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}var cx=["shadowBlur","shadowOffsetX","shadowOffsetY"],px=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dx(n,t,e,i,r){var o=!1;if(!i&&t===(e=e||{}))return!1;if(i||t.opacity!==e.opacity){Rt(n,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?or.opacity:a}(i||t.blend!==e.blend)&&(o||(Rt(n,r),o=!0),n.globalCompositeOperation=t.blend||or.blend);for(var s=0;s<cx.length;s++){var l=cx[s];(i||t[l]!==e[l])&&(o||(Rt(n,r),o=!0),n[l]=n.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(o||(Rt(n,r),o=!0),n.shadowColor=t.shadowColor||or.shadowColor),o}function fx(n,t,e,i,r){var o=Ya(t,r.inHover),a=i?null:e&&Ya(e,r.inHover)||{};if(o===a)return!1;var s=dx(n,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Rt(n,r),s=!0),lx(o.fill)&&(n.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Rt(n,r),s=!0),lx(o.stroke)&&(n.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Rt(n,r),s=!0),n.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);n.lineWidth!==l&&(s||(Rt(n,r),s=!0),n.lineWidth=l)}for(var u=0;u<px.length;u++){var h=px[u],c=h[0];(i||o[c]!==a[c])&&(s||(Rt(n,r),s=!0),n[c]=o[c]||h[1])}return s}function gx(n,t){var e=t.transform,i=n.dpr||1;e?n.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):n.setTransform(i,0,0,i,0,0)}var yx=1,vx=2,mx=3,xx=4;function Rt(n,t){t.batchFill&&n.fill(),t.batchStroke&&n.stroke(),t.batchFill="",t.batchStroke=""}function Ya(n,t){return t&&n.__hoverStyle||n.style}function Zp(n,t){Mr(n,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Mr(n,t,e,i){var r=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1))return t.__dirty&=~Vt,void(t.__isRendered=!1);var o=t.__clipPaths,a=e.prevElClipPaths,s=!1,l=!1;if(a&&!function(f,g){if(f===g||!f&&!g)return!1;if(!f||!g||f.length!==g.length)return!0;for(var y=0;y<f.length;y++)if(f[y]!==g[y])return!0;return!1}(o,a)||(a&&a.length&&(Rt(n,e),n.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),o&&o.length&&(Rt(n,e),n.save(),function(f,g,y){for(var v=!1,m=0;m<f.length;m++){var x=f[m];v=v||x.isZeroArea(),gx(g,x),g.beginPath(),x.buildPath(g,x.shape),g.clip()}y.allClipped=v}(o,n,e),s=!0),e.prevElClipPaths=o),e.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var h,c,p=t instanceof De&&t.autoBatch&&function(f){var g=ru(f),y=iu(f);return!(f.lineDash||!(+g^+y)||g&&typeof f.fill!="string"||y&&typeof f.stroke!="string"||f.strokePercent<1||f.strokeOpacity<1||f.fillOpacity<1)}(t.style);s||(h=r,c=u.transform,h&&c?h[0]!==c[0]||h[1]!==c[1]||h[2]!==c[2]||h[3]!==c[3]||h[4]!==c[4]||h[5]!==c[5]:h||c)?(Rt(n,e),gx(n,t)):p||Rt(n,e);var d=Ya(t,e.inHover);t instanceof De?(e.lastDrawType!==yx&&(l=!0,e.lastDrawType=yx),fx(n,t,u,l,e),p&&(e.batchFill||e.batchStroke)||n.beginPath(),function(f,g,y,v){var m,x=iu(y),_=ru(y),b=y.strokePercent,w=b<1,S=!g.path;g.silent&&!w||!S||g.createPathProxy();var M=g.path||w2,T=g.__dirty;if(!v){var I=y.fill,C=y.stroke,D=_&&!!I.colorStops,L=x&&!!C.colorStops,R=_&&!!I.image,P=x&&!!C.image,E=void 0,k=void 0,O=void 0,N=void 0,B=void 0;(D||L)&&(B=g.getBoundingRect()),D&&(E=T?Xp(f,I,B):g.__canvasFillGradient,g.__canvasFillGradient=E),L&&(k=T?Xp(f,C,B):g.__canvasStrokeGradient,g.__canvasStrokeGradient=k),R&&(O=T||!g.__canvasFillPattern?Up(f,I,g):g.__canvasFillPattern,g.__canvasFillPattern=O),P&&(N=T||!g.__canvasStrokePattern?Up(f,C,g):g.__canvasStrokePattern,g.__canvasStrokePattern=O),D?f.fillStyle=E:R&&(O?f.fillStyle=O:_=!1),L?f.strokeStyle=k:P&&(N?f.strokeStyle=N:x=!1)}var z,U,Z=g.getGlobalScale();M.setScale(Z[0],Z[1],g.segmentIgnoreThreshold),f.setLineDash&&y.lineDash&&(z=(m=sx(g))[0],U=m[1]);var F=!0;(S||T&Yr)&&(M.setDPR(f.dpr),w?M.setContext(null):(M.setContext(f),F=!1),M.reset(),g.buildPath(M,g.shape,v),M.toStatic(),g.pathUpdated()),F&&M.rebuildPath(f,w?b:1),z&&(f.setLineDash(z),f.lineDashOffset=U),v||(y.strokeFirst?(x&&hx(f,y),_&&ux(f,y)):(_&&ux(f,y),x&&hx(f,y))),z&&f.setLineDash([])}(n,t,d,p),p&&(e.batchFill=d.fill||"",e.batchStroke=d.stroke||"")):t instanceof al?(e.lastDrawType!==mx&&(l=!0,e.lastDrawType=mx),fx(n,t,u,l,e),function(f,g,y){var v,m=y.text;if(m!=null&&(m+=""),m){f.font=y.font||Hi,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline;var x=void 0,_=void 0;f.setLineDash&&y.lineDash&&(x=(v=sx(g))[0],_=v[1]),x&&(f.setLineDash(x),f.lineDashOffset=_),y.strokeFirst?(iu(y)&&f.strokeText(m,y.x,y.y),ru(y)&&f.fillText(m,y.x,y.y)):(ru(y)&&f.fillText(m,y.x,y.y),iu(y)&&f.strokeText(m,y.x,y.y)),x&&f.setLineDash([])}}(n,t,d)):t instanceof Gt?(e.lastDrawType!==vx&&(l=!0,e.lastDrawType=vx),function(f,g,y,v,m){dx(f,Ya(g,m.inHover),y&&Ya(y,m.inHover),v,m)}(n,t,u,l,e),function(f,g,y){var v=g.__image=Fy(y.image,g.__image,g,g.onload);if(v&&tl(v)){var m=y.x||0,x=y.y||0,_=g.getWidth(),b=g.getHeight(),w=v.width/v.height;if(_==null&&b!=null?_=b*w:b==null&&_!=null?b=_/w:_==null&&b==null&&(_=v.width,b=v.height),y.sWidth&&y.sHeight){var S=y.sx||0,M=y.sy||0;f.drawImage(v,S,M,y.sWidth,y.sHeight,m,x,_,b)}else if(y.sx&&y.sy){var T=_-(S=y.sx),I=b-(M=y.sy);f.drawImage(v,S,M,T,I,m,x,_,b)}else f.drawImage(v,m,x,_,b)}}(n,t,d)):t.getTemporalDisplayables&&(e.lastDrawType!==xx&&(l=!0,e.lastDrawType=xx),function(f,g,y){var v=g.getDisplayables(),m=g.getTemporalDisplayables();f.save();var x,_,b={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:y.viewWidth,viewHeight:y.viewHeight,inHover:y.inHover};for(x=g.getCursor(),_=v.length;x<_;x++)(M=v[x]).beforeBrush&&M.beforeBrush(),M.innerBeforeBrush(),Mr(f,M,b,x===_-1),M.innerAfterBrush(),M.afterBrush&&M.afterBrush(),b.prevEl=M;for(var w=0,S=m.length;w<S;w++){var M;(M=m[w]).beforeBrush&&M.beforeBrush(),M.innerBeforeBrush(),Mr(f,M,b,w===S-1),M.innerAfterBrush(),M.afterBrush&&M.afterBrush(),b.prevEl=M}g.clearTemporalDisplayables(),g.notClear=!0,f.restore()}(n,t,e)),p&&i&&Rt(n,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var jp=new d2,_x=new Ko(100),bx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ou(n,t){if(n==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),r=i.painter.type==="svg";n.dirty&&jp.delete(n);var o=jp.get(n);if(o)return o;var a=le(n,{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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(l){for(var u,h=[e],c=!0,p=0;p<bx.length;++p){var d=a[bx[p]];if(d!=null&&!Y(d)&&!j(d)&&!Re(d)&&typeof d!="boolean"){c=!1;break}h.push(d)}if(c){u=h.join(",")+(r?"-svg":"");var f=_x.get(u);f&&(r?l.svgElement=f:l.image=f)}var g,y=Mx(a.dashArrayX),v=function(T){if(!T||typeof T=="object"&&T.length===0)return[0,0];if(Re(T)){var I=Math.ceil(T);return[I,I]}var C=X(T,function(D){return Math.ceil(D)});return T.length%2?C.concat(C):C}(a.dashArrayY),m=Sx(a.symbol),x=(M=y,X(M,function(T){return Tx(T)})),_=Tx(v),b=!r&&jn.createCanvas(),w=r&&{tag:"g",attrs:{},key:"dcl",children:[]},S=function(){for(var T=1,I=0,C=x.length;I<C;++I)T=Cy(T,x[I]);var D=1;for(I=0,C=m.length;I<C;++I)D=Cy(D,m[I].length);T*=D;var L=_*x.length*m.length,R=function(P){console.warn("Calculated decal size is greater than "+P+" due to decal option settings so "+P+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+P+" to be larger to avoid incontinuity.")};return T>a.maxTileWidth&&R("maxTileWidth"),L>a.maxTileHeight&&R("maxTileHeight"),{width:Math.max(1,Math.min(T,a.maxTileWidth)),height:Math.max(1,Math.min(L,a.maxTileHeight))}}(),M;b&&(b.width=S.width*e,b.height=S.height*e,g=b.getContext("2d")),function(){g&&(g.clearRect(0,0,b.width,b.height),a.backgroundColor&&(g.fillStyle=a.backgroundColor,g.fillRect(0,0,b.width,b.height)));for(var T=0,I=0;I<v.length;++I)T+=v[I];if(T<=0)return;for(var C=-_,D=0,L=0,R=0;C<S.height;){if(D%2==0){for(var P=L/2%m.length,E=0,k=0,O=0;E<2*S.width;){var N=0;for(I=0;I<y[R].length;++I)N+=y[R][I];if(N<=0)break;if(k%2==0){var B=.5*(1-a.symbolSize),z=E+y[R][k]*B,U=C+v[D]*B,Z=y[R][k]*a.symbolSize,F=v[D]*a.symbolSize,W=O/2%m[P].length;K(z,U,Z,F,m[P][W])}E+=y[R][k],++O,++k===y[R].length&&(k=0)}++R===y.length&&(R=0)}C+=v[D],++L,++D===v.length&&(D=0)}function K(se,he,ie,q,J){var H=r?1:e,$=ut(J,se*H,he*H,ie*H,q*H,a.color,a.symbolKeepAspect);if(r){var re=i.painter.renderOneToVNode($);re&&w.children.push(re)}else Zp(g,$)}}(),c&&_x.put(u,b||w),l.image=b,l.svgElement=w,l.svgWidth=S.width,l.svgHeight=S.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/e,jp.set(n,s),n.dirty=!1,s}function Sx(n){if(!n||n.length===0)return[["rect"]];if(j(n))return[[n]];for(var t=!0,e=0;e<n.length;++e)if(!j(n[e])){t=!1;break}if(t)return Sx([n]);var i=[];for(e=0;e<n.length;++e)j(n[e])?i.push([n[e]]):i.push(n[e]);return i}function Mx(n){if(!n||n.length===0)return[[0,0]];if(Re(n))return[[r=Math.ceil(n),r]];for(var t=!0,e=0;e<n.length;++e)if(!Re(n[e])){t=!1;break}if(t)return Mx([n]);var i=[];for(e=0;e<n.length;++e)if(Re(n[e])){var r=Math.ceil(n[e]);i.push([r,r])}else(r=X(n[e],function(o){return Math.ceil(o)})).length%2==1?i.push(r.concat(r)):i.push(r);return i}function Tx(n){for(var t=0,e=0;e<n.length;++e)t+=n[e];return n.length%2==1?2*t:t}const bn=new Zt;var au={};function Ix(n){return au[n]||xt("Implementation of "+n+" doesn't exists."),au[n]}var qp=2e3,su=4500,Cx={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:qp,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:su,ARIA:6e3,DECAL:7e3}},yt="__flagInMainProcess",Et="__pendingUpdate",Kp="__needsUpdateStatus",Ax=/^[a-zA-Z0-9_]+$/,Jp="__connectUpdateStatus";function Dx(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return Lx(this,n,t);Ht(this.id)}}function kx(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Lx(this,n,t)}}function Lx(n,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Zt.prototype[t].apply(n,e)}var To,$p,lu,ki,Qp,ed,td,Xa,Ua,Px,Ox,nd,Rx,uu,Ex,Nx,hn,zx,Bx=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t}(Zt),Vx=Bx.prototype;Vx.on=kx("on"),Vx.off=kx("off");var hu=function(n){function t(e,i,r){var o=n.call(this,new s2)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},j(i)&&(i=Fx[i]),o._dom=e;var a="canvas",s="auto",l=!1,u=we.hasGlobalWindow?window:global;u&&(a=fe(u.__ECHARTS__DEFAULT__RENDERER__,a),s=fe(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=fe(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l)),r.ssr&&_y(function(d){var f=ye(d),g=f.dataIndex;if(g!=null){var y=te();return y.set("series_index",f.seriesIndex),y.set("data_index",g),f.ssrType&&y.set("ssr_type",f.ssrType),y}});var h=o._zr=pc(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:fe(r.useDirtyRect,l),useCoarsePointer:fe(r.useCoarsePointer,s),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=Kl(Q(h.flush,h),17),(i=oe(i))&&a0(i,!0),o._theme=i,o._locale=function(d){if(j(d)){var f=Ol[d.toUpperCase()]||{};return d===Pl||d===sp?oe(f):pe(oe(f),oe(Ol[Ia]),!1)}return pe(oe(d),oe(Ol[Ia]),!1)}(r.locale||wm),o._coordSysMgr=new Wl;var c=o._api=Ex(o);function p(d,f){return d.__prio-f.__prio}return Ps(pu,p),Ps(rd,p),o._scheduler=new J0(o,c,rd,pu),o._messageCenter=new Bx,o._initEvents(),o.resize=Q(o.resize,o),h.animation.on("frame",o._onframe,o),Px(h,o),Ox(h,o),Wo(o),o}return V(t,n),t.prototype._onframe=function(){if(!this._disposed){zx(this);var e=this._scheduler;if(this[Et]){var i=this[Et].silent;this[yt]=!0;try{To(this),ki.update.call(this,null,this[Et].updateParams)}catch(l){throw this[yt]=!1,this[Et]=null,l}this._zr.flush(),this[yt]=!1,this[Et]=null,Xa.call(this,i),Ua.call(this,i)}else if(e.unfinished){var r=1,o=this._model,a=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(o),e.performDataProcessorTasks(o),ed(this,o),e.performVisualTasks(o),uu(this,this._model,a,"remain",{}),r-=+new Date-s}while(r>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,r){if(this[yt])xt("`setOption` should not be called during main process.");else if(this._disposed)Ht(this.id);else{var o,a,s;if(ee(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[yt]=!0,!this._model||i){var l=new cC(this._api),u=this._theme,h=this._model=new $m;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:a},od);var c={seriesTransition:s,optionChanged:!0};if(r)this[Et]={silent:o,updateParams:c},this[yt]=!1,this.getZr().wakeUp();else{try{To(this),ki.update.call(this,null,c)}catch(p){throw this[Et]=null,this[yt]=!1,p}this._ssr||this._zr.flush(),this[Et]=null,this[yt]=!1,Xa.call(this,o),Ua.call(this,o)}}},t.prototype.setTheme=function(){$t("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||we.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return $e("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;if(i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;if(i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(we.svgSupported){var e=this._zr;return A(e.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var i=(e=e||{}).excludeComponents,r=this._model,o=[],a=this;A(i,function(l){r.eachComponent({mainType:l},function(u){var h=a._componentsMap[u.__viewId];h.group.ignore||(o.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(o,function(l){l.group.ignore=!1}),s}Ht(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var i=e.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(du[r]){var l=s,u=s,h=-1/0,c=-1/0,p=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();A(Tr,function(x,_){if(x.group===r){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(oe(e)),w=x.getDom().getBoundingClientRect();l=o(w.left,l),u=o(w.top,u),h=a(w.right,h),c=a(w.bottom,c),p.push({dom:b,left:w.left,top:w.top})}});var f=(h*=d)-(l*=d),g=(c*=d)-(u*=d),y=jn.createCanvas(),v=pc(y,{renderer:i?"svg":"canvas"});if(v.resize({width:f,height:g}),i){var m="";return A(p,function(x){var _=x.left-l,b=x.top-u;m+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new Ie({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),A(p,function(x){var _=new Gt({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});v.add(_)}),v.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Ht(this.id)},t.prototype.convertToPixel=function(e,i){return Qp(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Qp(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){var r;if(!this._disposed)return A(ha(this._model,e),function(o,a){a.indexOf("Models")>=0&&A(o,function(s){var l=s.coordinateSystem;if(l&&l.containPoint)r=r||!!l.containPoint(i);else if(a==="seriesModels"){var u=this._chartsMap[s.__viewId];u&&u.containPoint?r=r||u.containPoint(i,s):Je(a+": "+(u?"The found component do not support containPoint.":"No view mapping to the found component."))}else Je(a+": containPoint is not supported")},this)},this),!!r;Ht(this.id)},t.prototype.getVisual=function(e,i){var r=ha(this._model,e,{defaultMainType:"series"}),o=r.seriesModel;o||Je("There is no specified series model");var a=o.getData(),s=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return s!=null?ix(a,s,i):rx(a,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,i,r,o=this;A(b2,function(a){var s=function(l){var u,h=o.getModel(),c=l.target,p=a==="globalout";if(p?u={}:c&&br(c,function(v){var m=ye(v);if(m&&m.dataIndex!=null){var x=m.dataModel||h.getSeriesByIndex(m.seriesIndex);return u=x&&x.getDataParams(m.dataIndex,m.dataType,c)||{},!0}if(m.eventData)return u=G({},m.eventData),!0},!0),u){var d=u.componentType,f=u.componentIndex;d!=="markLine"&&d!=="markPoint"&&d!=="markArea"||(d="series",f=u.seriesIndex);var g=d&&f!=null&&h.getComponent(d,f),y=g&&o[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];p||g&&y||Je("model or view can not be found by params"),u.event=l,u.type=a,o._$eventProcessor.eventInfo={targetEl:c,packedEvent:u,model:g,view:y},o.trigger(a,u)}};s.zrEventfulCallAtLast=!0,o._zr.on(a,s,o)}),A(Za,function(a,s){o._messageCenter.on(s,function(l){this.trigger(s,l)},o)}),A(["selectchanged"],function(a){o._messageCenter.on(a,function(s){this.trigger(a,s)},o)}),e=this._messageCenter,i=this,r=this._api,e.on("selectchanged",function(a){var s=r.getModel();a.isFromClick?(Mo("map","selectchanged",i,s,a),Mo("pie","selectchanged",i,s,a)):a.fromAction==="select"?(Mo("map","selected",i,s,a),Mo("pie","selected",i,s,a)):a.fromAction==="unselect"&&(Mo("map","unselected",i,s,a),Mo("pie","unselected",i,s,a))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Ht(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Ht(this.id);else{this._disposed=!0,this.getDom()&&Ny(this.getDom(),sd,"");var e=this,i=e._api,r=e._model;A(e._componentsViews,function(o){o.dispose(r,i)}),A(e._chartsViews,function(o){o.dispose(r,i)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Tr[e.id]}},t.prototype.resize=function(e){if(this[yt])xt("`resize` should not be called during main process.");else if(this._disposed)Ht(this.id);else{this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),i){var r=i.resetOption("media"),o=e&&e.silent;this[Et]&&(o==null&&(o=this[Et].silent),r=!0,this[Et]=null),this[yt]=!0;try{r&&To(this),ki.update.call(this,{type:"resize",animation:G({duration:0},e&&e.animation)})}catch(a){throw this[yt]=!1,a}this[yt]=!1,Xa.call(this,o),Ua.call(this,o)}}},t.prototype.showLoading=function(e,i){if(this._disposed)Ht(this.id);else if(ee(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),ad[e]){var r=ad[e](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}else Je("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?Ht(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var i=G({},e);return i.type=Za[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed)Ht(this.id);else if(ee(i)||(i={silent:!!i}),cu[e.type]&&this._model)if(this[yt])this._pendingActions.push(e);else{var r=i.silent;td.call(this,e,r);var o=i.flush;o?this._zr.flush():o!==!1&&we.browser.weChat&&this._throttledZrFlush(),Xa.call(this,r),Ua.call(this,r)}},t.prototype.updateLabelLayout=function(){bn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Ht(this.id);else{var i=e.seriesIndex,r=this.getModel().getSeriesByIndex(i);ue(e.data&&r),r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(l){l.clearColorPalette(),l.eachSeries(function(u){u.clearColorPalette()})}function i(l){for(var u=[],h=l.currentStates,c=0;c<h.length;c++){var p=h[c];p!=="emphasis"&&p!=="blur"&&p!=="select"&&u.push(p)}l.selected&&l.states.select&&u.push("select"),l.hoverState===sl&&l.states.emphasis?u.push("emphasis"):l.hoverState===fa&&l.states.blur&&u.push("blur"),l.useStates(u)}function r(l,u){if(!l.preventAutoZ){var h=l.get("z")||0,c=l.get("zlevel")||0;u.eachRendered(function(p){return o(p,h,c,-1/0),!0})}}function o(l,u,h,c){var p=l.getTextContent(),d=l.getTextGuideLine();if(l.isGroup)for(var f=l.childrenRef(),g=0;g<f.length;g++)c=Math.max(o(f[g],u,h,c),c);else l.z=u,l.zlevel=h,c=Math.max(l.z2,c);if(p&&(p.z=u,p.zlevel=h,isFinite(c)&&(p.z2=c+2)),d){var y=l.textGuideLineConfig;d.z=u,d.zlevel=h,isFinite(c)&&(d.z2=c+(y&&y.showAbove?1:-1))}return c}function a(l,u){u.eachRendered(function(h){if(!lo(h)){var c=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),c&&c.stateTransition&&(c.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function s(l,u){var h=l.getModel("stateAnimation"),c=l.isAnimationEnabled(),p=h.get("duration"),d=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;u.eachRendered(function(f){if(f.states&&f.states.emphasis){if(lo(f))return;if(f instanceof De&&function(m){var x=yv(m);x.normalFill=m.style.fill,x.normalStroke=m.style.stroke;var _=m.states.select||{};x.selectFill=_.style&&_.style.fill||null,x.selectStroke=_.style&&_.style.stroke||null}(f),f.__dirty){var g=f.prevStates;g&&f.useStates(g)}if(c){f.stateTransition=d;var y=f.getTextContent(),v=f.getTextGuideLine();y&&(y.stateTransition=d),v&&(v.stateTransition=d)}f.__dirty&&i(f)}})}To=function(l){var u=l._scheduler;u.restorePipelines(l._model),u.prepareStageTasks(),$p(l,!0),$p(l,!1),u.plan()},$p=function(l,u){for(var h=l._model,c=l._scheduler,p=u?l._componentsViews:l._chartsViews,d=u?l._componentsMap:l._chartsMap,f=l._zr,g=l._api,y=0;y<p.length;y++)p[y].__alive=!1;function v(x){var _=x.__requireNewView;x.__requireNewView=!1;var b="_ec_"+x.id+"_"+x.type,w=!_&&d[b];if(!w){var S=On(x.type),M=u?je.getClass(S.main,S.sub):at.getClass(S.sub);ue(M,S.sub+" does not exist."),(w=new M).init(h,g),d[b]=w,p.push(w),f.add(w.group)}x.__viewId=w.__id=b,w.__alive=!0,w.__model=x,w.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!u&&c.prepareView(w,x,h,g)}for(u?h.eachComponent(function(x,_){x!=="series"&&v(_)}):h.eachSeries(v),y=0;y<p.length;){var m=p[y];m.__alive?y++:(!u&&m.renderTask.dispose(),f.remove(m.group),m.dispose(h,g),p.splice(y,1),d[m.__id]===m&&delete d[m.__id],m.__id=m.group.__ecComponentInfo=null)}},lu=function(l,u,h,c,p){var d=l._model;if(d.setUpdatePayload(h),c){var f={};f[c+"Id"]=h[c+"Id"],f[c+"Index"]=h[c+"Index"],f[c+"Name"]=h[c+"Name"];var g={mainType:c,query:f};p&&(g.subType=p);var y,v=h.excludeSeriesId;v!=null&&(y=te(),A(Qe(v),function(x){var _=Qt(x,null);_!=null&&y.set(_,!0)})),d&&d.eachComponent(g,function(x){if(!(y&&y.get(x.id)!=null))if(Lv(h))if(x instanceof Mt)h.type!==fr||h.notBlur||x.get(["emphasis","disabled"])||function(S,M,T){var I=S.seriesIndex,C=S.getData(M.dataType);if(C){var D=ir(C,M);D=(Y(D)?D[0]:D)||0;var L=C.getItemGraphicEl(D);if(!L)for(var R=C.count(),P=0;!L&&P<R;)L=C.getItemGraphicEl(P++);if(L){var E=ye(L);Gc(I,E.focus,E.blurScope,T)}else{var k=S.get(["emphasis","focus"]),O=S.get(["emphasis","blurScope"]);k!=null&&Gc(I,k,O,T)}}else xt("Unknown dataType "+M.dataType)}(x,h,l._api);else{var _=Wc(x.mainType,x.componentIndex,h.name,l._api),b=_.focusSelf,w=_.dispatchers;h.type===fr&&b&&!h.notBlur&&Hc(x.mainType,x.componentIndex,l._api),w&&A(w,function(S){h.type===fr?no(S):io(S)})}else Xc(h)&&x instanceof Mt&&(function(S,M,T){if(Xc(M)){var I=M.dataType,C=ir(S.getData(I),M);Y(C)||(C=[C]),S[M.type===ya?"toggleSelect":M.type===ga?"select":"unselect"](C,I)}}(x,h,l._api),Dv(x),hn(l))},l),d&&d.eachComponent(g,function(x){y&&y.get(x.id)!=null||m(l[c==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},l)}else A([].concat(l._componentsViews).concat(l._chartsViews),m);function m(x){x&&x.__alive&&x[u]&&x[u](x.__model,d,l._api,h)}},ki={prepareAndUpdate:function(l){To(this),ki.update.call(this,l,{optionChanged:l.newOption!=null})},update:function(l,u){var h=this._model,c=this._api,p=this._zr,d=this._coordSysMgr,f=this._scheduler;if(h){h.setUpdatePayload(l),f.restoreData(h,l),f.performSeriesTasks(h),d.create(h,c),f.performDataProcessorTasks(h,l),ed(this,h),d.update(h,c),e(h),f.performVisualTasks(h,l),nd(this,h,c,l,u);var g=h.get("backgroundColor")||"transparent",y=h.get("darkMode");p.setBackgroundColor(g),y!=null&&y!=="auto"&&p.setDarkMode(y),bn.trigger("afterupdate",h,c)}},updateTransform:function(l){var u=this,h=this._model,c=this._api;if(h){h.setUpdatePayload(l);var p=[];h.eachComponent(function(f,g){if(f!=="series"){var y=u.getViewOfComponentModel(g);if(y&&y.__alive)if(y.updateTransform){var v=y.updateTransform(g,h,c,l);v&&v.update&&p.push(y)}else p.push(y)}});var d=te();h.eachSeries(function(f){var g=u._chartsMap[f.__viewId];if(g.updateTransform){var y=g.updateTransform(f,h,c,l);y&&y.update&&d.set(f.uid,1)}else d.set(f.uid,1)}),e(h),this._scheduler.performVisualTasks(h,l,{setDirty:!0,dirtyMap:d}),uu(this,h,c,l,{},d),bn.trigger("afterupdate",h,c)}},updateView:function(l){var u=this._model;u&&(u.setUpdatePayload(l),at.markUpdateMethod(l,"updateView"),e(u),this._scheduler.performVisualTasks(u,l,{setDirty:!0}),nd(this,u,this._api,l,{}),bn.trigger("afterupdate",u,this._api))},updateVisual:function(l){var u=this,h=this._model;h&&(h.setUpdatePayload(l),h.eachSeries(function(c){c.getData().clearAllVisual()}),at.markUpdateMethod(l,"updateVisual"),e(h),this._scheduler.performVisualTasks(h,l,{visualType:"visual",setDirty:!0}),h.eachComponent(function(c,p){if(c!=="series"){var d=u.getViewOfComponentModel(p);d&&d.__alive&&d.updateVisual(p,h,u._api,l)}}),h.eachSeries(function(c){u._chartsMap[c.__viewId].updateVisual(c,h,u._api,l)}),bn.trigger("afterupdate",h,this._api))},updateLayout:function(l){ki.update.call(this,l)}},Qp=function(l,u,h,c){if(l._disposed)Ht(l.id);else{for(var p,d=l._model,f=l._coordSysMgr.getCoordinateSystems(),g=ha(d,h),y=0;y<f.length;y++){var v=f[y];if(v[u]&&(p=v[u](d,g,c))!=null)return p}Je("No coordinate system that supports "+u+" found by the given finder.")}},ed=function(l,u){var h=l._chartsMap,c=l._scheduler;u.eachSeries(function(p){c.updateStreamModes(p,h[p.__viewId])})},td=function(l,u){var h=this,c=this.getModel(),p=l.type,d=l.escapeConnect,f=cu[p],g=f.actionInfo,y=(g.update||"update").split(":"),v=y.pop(),m=y[0]!=null&&On(y[0]);this[yt]=!0;var x=[l],_=!1;l.batch&&(_=!0,x=X(l.batch,function(C){return(C=le(G({},C),l)).batch=null,C}));var b,w=[],S=Xc(l),M=Lv(l);if(M&&Av(this._api),A(x,function(C){if((b=(b=f.action(C,h._model,h._api))||G({},C)).type=g.event||b.type,w.push(b),M){var D=mc(l),L=D.queryOptionMap,R=D.mainTypeSpecified?L.keys()[0]:"series";lu(h,v,C,R),hn(h)}else S?(lu(h,v,C,"series"),hn(h)):m&&lu(h,v,C,m.main,m.sub)}),v!=="none"&&!M&&!S&&!m)try{this[Et]?(To(this),ki.update.call(this,l),this[Et]=null):ki[v].call(this,l)}catch(C){throw this[yt]=!1,C}if(b=_?{type:g.event||p,escapeConnect:d,batch:w}:w[0],this[yt]=!1,!u){var T=this._messageCenter;if(T.trigger(b.type,b),S){var I={type:"selectchanged",escapeConnect:d,selected:vI(c),isFromClick:l.isFromClick||!1,fromAction:l.type,fromActionPayload:l};T.trigger(I.type,I)}}},Xa=function(l){for(var u=this._pendingActions;u.length;){var h=u.shift();td.call(this,h,l)}},Ua=function(l){!l&&this.trigger("updated")},Px=function(l,u){l.on("rendered",function(h){u.trigger("rendered",h),!l.animation.isFinished()||u[Et]||u._scheduler.unfinished||u._pendingActions.length||u.trigger("finished")})},Ox=function(l,u){l.on("mouseover",function(h){var c=br(h.target,oo);c&&(function(p,d,f){oo(p)||xt("param should be highDownDispatcher");var g=ye(p),y=Wc(g.componentMainType,g.componentIndex,g.componentHighDownName,f),v=y.dispatchers,m=y.focusSelf;v?(m&&Hc(g.componentMainType,g.componentIndex,f),A(v,function(x){return bv(x,d)})):(Gc(g.seriesIndex,g.focus,g.blurScope,f),g.focus==="self"&&Hc(g.componentMainType,g.componentIndex,f),bv(p,d))}(c,h,u._api),hn(u))}).on("mouseout",function(h){var c=br(h.target,oo);c&&(function(p,d,f){oo(p)||xt("param should be highDownDispatcher"),Av(f);var g=ye(p),y=Wc(g.componentMainType,g.componentIndex,g.componentHighDownName,f).dispatchers;y?A(y,function(v){return Sv(v,d)}):Sv(p,d)}(c,h,u._api),hn(u))}).on("click",function(h){var c=br(h.target,function(f){return ye(f).dataIndex!=null},!0);if(c){var p=c.selected?"unselect":"select",d=ye(c);u._api.dispatchAction({type:p,dataType:d.dataType,dataIndexInside:d.dataIndex,seriesIndex:d.seriesIndex,isFromClick:!0})}})},nd=function(l,u,h,c,p){(function(d){var f=[],g=[],y=!1;if(d.eachComponent(function(_,b){var w=b.get("zlevel")||0,S=b.get("z")||0,M=b.getZLevelKey();y=y||!!M,(_==="series"?g:f).push({zlevel:w,z:S,idx:b.componentIndex,type:_,key:M})}),y){var v,m,x=f.concat(g);Ps(x,function(_,b){return _.zlevel===b.zlevel?_.z-b.z:_.zlevel-b.zlevel}),A(x,function(_){var b=d.getComponent(_.type,_.idx),w=_.zlevel,S=_.key;v!=null&&(w=Math.max(v,w)),S?(w===v&&S!==m&&w++,m=S):m&&(w===v&&w++,m=""),v=w,b.setZLevel(w)})}})(u),Rx(l,u,h,c,p),A(l._chartsViews,function(d){d.__alive=!1}),uu(l,u,h,c,p),A(l._chartsViews,function(d){d.__alive||d.remove(u,h)})},Rx=function(l,u,h,c,p,d){A(d||l._componentsViews,function(f){var g=f.__model;a(g,f),f.render(g,u,h,c),r(g,f),s(g,f)})},uu=function(l,u,h,c,p,d){var f=l._scheduler;p=G(p||{},{updatedSeries:u.getSeries()}),bn.trigger("series:beforeupdate",u,h,p);var g=!1;u.eachSeries(function(y){var v=l._chartsMap[y.__viewId];v.__alive=!0;var m=v.renderTask;f.updatePayload(m,c),a(y,v),d&&d.get(y.uid)&&m.dirty(),m.perform(f.getPerformArgs(m))&&(g=!0),v.group.silent=!!y.get("silent"),function(x,_){var b=x.get("blendMode")||null;_.eachRendered(function(w){w.isGroup||(w.style.blend=b)})}(y,v),Dv(y)}),f.unfinished=g||f.unfinished,bn.trigger("series:layoutlabels",u,h,p),bn.trigger("series:transition",u,h,p),u.eachSeries(function(y){var v=l._chartsMap[y.__viewId];r(y,v),s(y,v)}),function(y,v){var m=y._zr,x=m.storage,_=0;x.traverse(function(b){b.isGroup||_++}),_>v.get("hoverLayerThreshold")&&!we.node&&!we.worker&&v.eachSeries(function(b){if(!b.preventUsingHoverLayer){var w=y._chartsMap[b.__viewId];w.__alive&&w.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}(l,u),bn.trigger("series:afterupdate",u,h,p)},hn=function(l){l[Kp]=!0,l.getZr().wakeUp()},zx=function(l){l[Kp]&&(l.getZr().storage.traverse(function(u){lo(u)||i(u)}),l[Kp]=!1)},Ex=function(l){return new(function(u){function h(){return u!==null&&u.apply(this,arguments)||this}return V(h,u),h.prototype.getCoordinateSystems=function(){return l._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(c){for(;c;){var p=c.__ecComponentInfo;if(p!=null)return l._model.getComponent(p.mainType,p.index);c=c.parent}},h.prototype.enterEmphasis=function(c,p){no(c,p),hn(l)},h.prototype.leaveEmphasis=function(c,p){io(c,p),hn(l)},h.prototype.enterBlur=function(c){(function(p){ii(p,Vc)})(c),hn(l)},h.prototype.leaveBlur=function(c){Mv(c),hn(l)},h.prototype.enterSelect=function(c){Tv(c),hn(l)},h.prototype.leaveSelect=function(c){Iv(c),hn(l)},h.prototype.getModel=function(){return l.getModel()},h.prototype.getViewOfComponentModel=function(c){return l.getViewOfComponentModel(c)},h.prototype.getViewOfSeriesModel=function(c){return l.getViewOfSeriesModel(c)},h}(Qm))(l)},Nx=function(l){function u(h,c){for(var p=0;p<h.length;p++)h[p][Jp]=c}A(Za,function(h,c){l._messageCenter.on(c,function(p){if(du[l.group]&&l[Jp]!==0){if(p&&p.escapeConnect)return;var d=l.makeActionFromEvent(p),f=[];A(Tr,function(g){g!==l&&g.group===l.group&&f.push(g)}),u(f,0),A(f,function(g){g[Jp]!==1&&g.dispatchAction(d)}),u(f,2)}})})}}(),t}(Zt),id=hu.prototype;id.on=Dx("on"),id.off=Dx("off"),id.one=function(n,t,e){var i=this;$t("ECharts#one is deprecated."),this.on.call(this,n,function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),i.off(n,r)},e)};var b2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ht(n){Je("Instance "+n+" has been disposed")}var cu={},Za={},rd=[],od=[],pu=[],Fx={},ad={},Tr={},du={},S2=+new Date-0,M2=+new Date-0,sd="_echarts_instance_";function Gx(n){du[n]=!1}var T2=Gx;function ld(n){return Tr[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(n,sd)]}function ud(n,t){Fx[n]=t}function fu(n){Me(od,n)<0&&od.push(n)}function hd(n,t){pd(rd,n,t,2e3)}function Hx(n){gu("afterinit",n)}function Wx(n){gu("afterupdate",n)}function gu(n,t){bn.on(n,t)}function Sn(n,t,e){ae(t)&&(e=t,t="");var i=ee(n)?n.type:[n,n={event:t}][0];n.event=(n.event||i).toLowerCase(),t=n.event,Za[t]||(ue(Ax.test(i)&&Ax.test(t)),cu[i]||(cu[i]={action:e,actionInfo:n}),Za[t]=i)}function Yx(n,t){Wl.register(n,t)}function cd(n,t){pd(pu,n,t,1e3,"layout")}function Li(n,t){pd(pu,n,t,3e3,"visual")}var Xx=[];function pd(n,t,e,i,r){if((ae(t)||ee(t))&&(e=t,t=i),isNaN(t)||t==null)throw new Error("Illegal priority");if(A(n,function(a){ue(a.__raw!==e)}),!(Me(Xx,e)>=0)){Xx.push(e);var o=J0.wrapStageHandler(e,r);o.__prio=t,o.__raw=e,n.push(o)}}function dd(n,t){ad[n]=t}function Ux(n,t,e){var i=Ix("registerMap");i&&i(n,t,e)}var Zx=function(n){var t=(n=oe(n)).type;t||Dt("Must have a `type` when `registerTransform`.");var e=t.split(":");e.length!==2&&Dt('Name must include namespace like "ns:regression".');var i=!1;e[0]==="echarts"&&(t=e[1],i=!0),n.__isBuiltIn=i,w0.set(t,n)};Li(qp,UC),Li(su,ZC),Li(su,jC),Li(qp,l2),Li(su,u2),Li(7e3,function(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var a=i.getItemVisual(o,"decal");a&&(i.ensureUniqueItemVisual(o,"style").decal=ou(a,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=ou(r,t))}})}),fu(a0),hd(900,function(n){var t=te();n.eachSeries(function(e){var i=e.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=e.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(gC)}),dd("default",function(n,t){le(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ge,i=new Ie({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var r,o=new ke({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ie({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(a),t.showSpinner&&((r=new xl({shape:{startAngle:-Jl/2,endAngle:-Jl/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jl/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jl/2}).delay(300).start("circularInOut"),e.add(r)),e.resize=function(){var s=o.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(n.getWidth()-2*l-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),h=n.getHeight()/2;t.showSpinner&&r.setShape({cx:u,cy:h}),a.setShape({x:u-l,y:h-l,width:2*l,height:2*l}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),Sn({type:fr,event:fr,update:fr},st),Sn({type:ul,event:ul,update:ul},st),Sn({type:ga,event:ga,update:ga},st),Sn({type:hl,event:hl,update:hl},st),Sn({type:ya,event:ya,update:ya},st),ud("light",o2),ud("dark",a2);function ja(n){return n==null?0:n.length||1}function jx(n){return n}var I2=function(){function n(t,e,i,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=i||jx,this._newKeyGetter=r||jx,this.context=o,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=i[s],u=ja(l);if(u>1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},n.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=i[l],h=r[l],c=ja(u),p=ja(h);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(h,u),r[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(h,u),r[l]=null;else if(c===1&&p===1)this._update&&this._update(h,u),r[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(h,u),r[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,r)},n.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var r=t[i],o=e[r],a=ja(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);e[r]=null}},n.prototype._initIndexMap=function(t,e,i,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(i[a]=s),e){var l=e[s],u=ja(l);u===0?(e[s]=a,o&&i.push(s)):u===1?e[s]=[l,a]:l.push(a)}}},n}();const fd=I2;var C2=function(){function n(t,e){this._encode=t,this._schema=e}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function gd(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}const yu=function(n){this.otherDims={},n!=null&&G(this,n)};var A2=Ne(),D2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},qx=function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$x(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return fe(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=p0(this.source),i=!Qx(t),r="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,h=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===a)l=e?c.name:null,u=c.type,h=c.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=e?p.name:null,u=p.type)}o.push({property:l,type:u,ordinalMeta:h}),!e||l==null||c&&c.isCalculationCoord||(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=D2[u]||"f",h&&(r+=h.uid),r+="$"}var d=this.source;return{dimensions:o,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},n.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var r=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(r=o.name),i++;else{var a=this.getSourceDimension(e);a&&(r=a.name)}t.push(r)}return t},n.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function Kx(n){return n instanceof qx}function Jx(n){for(var t=te(),e=0;e<(n||[]).length;e++){var i=n[e],r=ee(i)?i.name:i;r!=null&&t.get(r)==null&&t.set(r,e)}return t}function $x(n){var t=A2(n);return t.dimNameMap||(t.dimNameMap=Jx(n.dimensionsDefine))}function Qx(n){return n>30}var e1,vu,qa,Io,yd,mu,vd,Ka=ee,Pi=X,k2=typeof Int32Array>"u"?Array:Int32Array,L2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],P2=["_approximateExtent"],O2=function(){function n(t,e){var i;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 r=!1;Kx(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,u={},h=0;h<i.length;h++){var c=i[h],p=j(c)?new yu({name:c}):c instanceof yu?c:new yu(c),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var f=p.otherDims=p.otherDims||{};a.push(d),o[d]=p,u[d]!=null&&(l=!0),p.createInvertedIndices&&(s[d]=[]),f.itemName===0&&(this._nameDimIdx=h),f.itemId===0&&(this._idDimIdx=h),ue(r||p.storeDimIndex>=0),r&&(p.storeDimIndex=h)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=te();A(a,function(y){g.set(o[y].storeDimIndex,y)})}}return n.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},n.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},n.prototype._recognizeDimIndex=function(t){if(Re(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},n.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unknown dimension "+t);return e},n.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},n.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[e]:null},n.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(t,e,i){var r,o=this;if(t instanceof Ep&&(r=t),!r){var a=this.dimensions,s=Ap(t)||mt(t)?new d0(t,a.length):t;r=new Ep;var l=Pi(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(u,h){var c={},p=c.encode={},d=te(),f=[],g=[],y={};A(u.dimensions,function(b){var w,S=u.getDimensionInfo(b),M=S.coordDim;if(M){ue(_p.get(M)==null);var T=S.coordDimIndex;gd(p,M)[T]=b,S.isExtraCoord||(d.set(M,1),(w=S.type)!=="ordinal"&&w!=="time"&&(f[0]=b),gd(y,M)[T]=u.getDimensionIndex(S.name)),S.defaultTooltip&&g.push(b)}_p.each(function(I,C){var D=gd(p,C),L=S.otherDims[C];L!=null&&L!==!1&&(D[L]=S.name)})});var v=[],m={};d.each(function(b,w){var S=p[w];m[w]=S[0],v=v.concat(S)}),c.dataDimsOnCoord=v,c.dataDimIndicesOnCoord=X(v,function(b){return u.getDimensionInfo(b).storeDimIndex}),c.encodeFirstDimNotExtra=m;var x=p.label;x&&x.length&&(f=x.slice());var _=p.tooltip;return _&&_.length?g=_.slice():g.length||(g=f.slice()),p.defaultedLabel=f,p.defaultedTooltip=g,c.userOutput=new C2(y,h),c}(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},n.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=r;s<o;s++){var l=s-r;this._nameList[s]=e[l],a&&vd(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var r=this._dimInfos[e[i]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==li&&!t.fillStorage},n.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===sn&&!i.pure)for(var a=[],s=t;s<e;s++){var l=i.getItem(s,a);if(!this.hasItemOption&&AT(l)&&(this.hasItemOption=!0),l){var u=l.name;r[s]==null&&u!=null&&(r[s]=Qt(u,null));var h=l.id;o[s]==null&&h!=null&&(o[s]=Qt(h,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)vd(this,s);e1(this)}},n.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},n.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},n.prototype.setCalculationInfo=function(t,e){Ka(t)?G(this._calculationInfo,t):this._calculationInfo[t]=e},n.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=qa(this,this._nameDimIdx,e)),i==null&&(i=""),i},n.prototype._getCategory=function(t,e){var i=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[i]:i},n.prototype.getId=function(t){return vu(this,this.getRawIndex(t))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.get(r.storeDimIndex,e)},n.prototype.getByRawIndex=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.getByRawIndex(r.storeDimIndex,e)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},n.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},n.prototype.getValues=function(t,e){var i=this,r=this._store;return Y(t)?r.getValues(Pi(t,function(o){return i._getStoreDimIndex(o)}),e):r.getValues(t)},n.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,r=e.length;i<r;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},n.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},n.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},n.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},n.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];if(!i)throw new Error("Do not supported yet");var r=i[e];return r==null||isNaN(r)?-1:r},n.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},n.prototype.each=function(t,e,i){ae(t)&&(i=e,e=t,t=[]);var r=i||this,o=Pi(Io(t),this._getStoreDimIndex,this);this._store.each(o,r?Q(e,r):e)},n.prototype.filterSelf=function(t,e,i){ae(t)&&(i=e,e=t,t=[]);var r=i||this,o=Pi(Io(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?Q(e,r):e),this},n.prototype.selectRange=function(t){var e=this,i={};return A(Oe(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(t,e,i){ae(t)&&(i=e,e=t,t=[]),i=i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},n.prototype.map=function(t,e,i,r){var o=i||r||this,a=Pi(Io(t),this._getStoreDimIndex,this),s=mu(this);return s._store=this._store.map(a,o?Q(e,o):e),s},n.prototype.modify=function(t,e,i,r){var o=this,a=i||r||this;A(Io(t),function(l){o.getDimensionInfo(l).isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Pi(Io(t),this._getStoreDimIndex,this);this._store.modify(s,a?Q(e,a):e)},n.prototype.downSample=function(t,e,i,r){var o=mu(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,r),o},n.prototype.lttbDownSample=function(t,e){var i=mu(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},n.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},n.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new He(i,e,e&&e.ecModel)},n.prototype.diff=function(t){var e=this;return new fd(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return vu(t,i)},function(i){return vu(e,i)})},n.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},n.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ka(t)?G(this._visual,t):this._visual[t]=e},n.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],r=i&&i[e];return r??this.getVisual(e)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[e];return o==null&&(Y(o=this.getVisual(e))?o=o.slice():Ka(o)&&(o=G({},o)),r[e]=o),o},n.prototype.setItemVisual=function(t,e,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Ka(e)?G(r,e):r[e]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){Ka(t)?G(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?G(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Nc(i,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(i,r){i&&t&&t.call(e,i,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:Pi(this.dimensions,this._getDimInfo,this),this.hostModel)),yd(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var i=this[t];ae(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return e.apply(this,[r].concat(Ms(arguments)))})},n.internalField=(e1=function(t){var e=t._invertedIndicesMap;A(e,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=e[r]=new k2(a.categories.length);for(var l=0;l<i.length;l++)i[l]=-1;for(l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},qa=function(t,e,i){return Qt(t._getCategory(e,i),null)},vu=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=qa(t,t._idDimIdx,e)),i==null&&(i="e\0\0"+e),i},Io=function(t){return Y(t)||(t=t!=null?[t]:[]),t},mu=function(t){var e=new n(t._schema?t._schema:Pi(t.dimensions,t._getDimInfo,t),t.hostModel);return yd(e,t),e},yd=function(t,e){A(L2.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,A(P2,function(i){t[i]=oe(e[i])}),t._calculationInfo=G({},e._calculationInfo)},void(vd=function(t,e){var i=t._nameList,r=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=i[e],l=r[e];if(s==null&&o!=null&&(i[e]=s=qa(t,o,e)),l==null&&a!=null&&(r[e]=l=qa(t,a,e)),l==null&&s!=null){var u=t._nameRepeatCount,h=u[s]=(u[s]||0)+1;l=s,h>1&&(l+="__ec__"+h),r[e]=l}})),n}();const Ja=O2;function t1(n,t){return xu(n,t).dimensions}function xu(n,t){Ap(n)||(n=kp(n));var e=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||n.dimensionsDefine||[],r=te(),o=[],a=function(M,T,I,C){var D=Math.max(M.dimensionsDetectedCount||1,T.length,I.length,C||0);return A(T,function(L){var R;ee(L)&&(R=L.dimsDef)&&(D=Math.max(D,R.length))}),D}(n,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Qx(a),l=i===n.dimensionsDefine,u=l?$x(n):Jx(i),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(n,a));for(var c=te(h),p=new b0(a),d=0;d<p.length;d++)p[d]=-1;function f(M){var T=p[M];if(T<0){var I=i[M],C=ee(I)?I:{name:I},D=new yu,L=C.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),C.type!=null&&(D.type=C.type),C.displayName!=null&&(D.displayName=C.displayName);var R=o.length;return p[M]=R,D.storeDimIndex=M,o.push(D),D}return o[T]}if(!s)for(d=0;d<a;d++)f(d);c.each(function(M,T){var I=Qe(M).slice();if(I.length===1&&!j(I[0])&&I[0]<0)c.set(T,!1);else{var C=c.set(T,[]);A(I,function(D,L){var R=j(D)?u.get(D):D;R!=null&&R<a&&(C[L]=R,y(f(R),T,L))})}});var g=0;function y(M,T,I){_p.get(T)!=null?M.otherDims[T]=I:(M.coordDim=T,M.coordDimIndex=I,r.set(T,!0))}A(e,function(M){var T,I,C,D;if(j(M))T=M,D={};else{T=(D=M).name;var L=D.ordinalMeta;D.ordinalMeta=null,(D=G({},D)).ordinalMeta=L,I=D.dimsDef,C=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var R=c.get(T);if(R!==!1){if(!(R=Qe(R)).length)for(var P=0;P<(I&&I.length||1);P++){for(;g<a&&f(g).coordDim!=null;)g++;g<a&&R.push(g++)}A(R,function(E,k){var O=f(E);if(l&&D.type!=null&&(O.type=D.type),y(le(O,D),T,k),O.name==null&&I){var N=I[k];!ee(N)&&(N={name:N}),O.name=O.displayName=N.name,O.defaultTooltip=N.defaultTooltip}C&&le(O.otherDims,C)})}});var v=t.generateCoord,m=t.generateCoordCount,x=m!=null;m=v?m||1:0;var _=v||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)A(o,function(M){b(M)}),o.sort(function(M,T){return M.storeDimIndex-T.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);S.coordDim==null&&(S.coordDim=R2(_,r,x),S.coordDimIndex=0,(!v||m<=0)&&(S.isExtraCoord=!0),m--),b(S),S.type!=null||Hm(n,w)!==lt.Must&&(!S.isExtraCoord||S.otherDims.itemName==null&&S.otherDims.seriesName==null)||(S.type="ordinal")}return function(M){for(var T=te(),I=0;I<M.length;I++){var C=M[I],D=C.name,L=T.get(D)||0;L>0&&(C.name=D+(L-1)),L++,T.set(D,L)}}(o),new qx({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function R2(n,t,e){if(e||t.hasKey(n)){for(var i=0;t.hasKey(n+i);)i++;n+=i}return t.set(n,!0),n}var E2=function(n){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=n},N2={cartesian2d:function(n,t,e,i){var r=n.getReferringComponents("xAxis",nt).models[0],o=n.getReferringComponents("yAxis",nt).models[0];if(!r)throw new Error('xAxis "'+Yt(n.get("xAxisIndex"),n.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Yt(n.get("xAxisIndex"),n.get("yAxisId"),0)+'" not found');t.coordSysDims=["x","y"],e.set("x",r),e.set("y",o),Co(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),Co(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,i){var r=n.getReferringComponents("singleAxis",nt).models[0];if(!r)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",r),Co(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,i){var r=n.getReferringComponents("polar",nt).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),Co(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),Co(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,i){var r=n.ecModel,o=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();A(o.parallelAxisIndex,function(s,l){var u=r.getComponent("parallelAxis",s),h=a[l];e.set(h,u),Co(u)&&(i.set(h,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Co(n){return n.get("type")==="category"}function n1(n,t,e){var i,r,o,a=(e=e||{}).byIndex,s=e.stackedCoordDimension;(function(m){return!Kx(m.schema)})(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,h,c,p=!(!n||!n.get("stack"));if(A(i,function(m,x){j(m)&&(i[x]=m={name:m}),p&&!m.isExtraCoord&&(a||l||!m.ordinalMeta||(l=m),u||m.type==="ordinal"||m.type==="time"||s&&s!==m.coordDim||(u=m))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+n.id,c="__\0ecstackedover_"+n.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;A(i,function(m){m.coordDim===d&&g++});var y={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Oi(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function i1(n,t){return Oi(n,t)?n.getCalculationInfo("stackResultDimension"):t}function _u(n,t,e){e=e||{};var i,r=t.getSourceManager(),o=!1;n?(o=!0,i=kp(n)):o=(i=r.getSource()).sourceFormat===sn;var a=function(y){var v=y.get("coordinateSystem"),m=new E2(v),x=N2[v];if(x)return x(y,m,m.axisMap,m.categoryAxisMap),m}(t),s=function(y,v){var m,x=y.get("coordinateSystem"),_=Wl.get(x);return v&&v.coordSysDims&&(m=X(v.coordSysDims,function(b){var w={name:b},S=v.axisMap.get(b);if(S){var M=S.get("type");w.type=function(T){return T==="category"?"ordinal":T==="time"?"time":"float"}(M)}return w})),m||(m=_&&(_.getDimensionsInfo?_.getDimensionsInfo():_.dimensions.slice())||["x","y"]),m}(t,a),l=e.useEncodeDefaulter,u=ae(l)?l:l?xe(nC,s,t):null,h=xu(i,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(y,v,m){var x,_;return m&&A(y,function(b,w){var S=b.coordDim,M=m.categoryAxisMap.get(S);M&&(x==null&&(x=w),b.ordinalMeta=M.getOrdinalMeta(),v&&(b.createInvertedIndices=!0)),b.otherDims.itemName!=null&&(_=!0)}),_||x==null||(y[x].otherDims.itemName=0),x}(h.dimensions,e.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),d=n1(t,{schema:h,store:p}),f=new Ja(h,t);f.setCalculationInfo(d);var g=c!=null&&function(y){if(y.sourceFormat===sn){var v=function(m){for(var x=0;x<m.length&&m[x]==null;)x++;return m[x]}(y.data||[]);return!Y(la(v))}}(i)?function(y,v,m,x){return x===c?m:this.defaultDimValueGetter(y,v,m,x)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var r1=function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();el(r1);const hi=r1;var z2=0,B2=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++z2}return n.createByAxisModel=function(t){var e=t.option,i=e.data,r=i&&X(i,V2);return new n({categories:r,needCollect:!r,deduplication:e.dedplication!==!1})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!j(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return(e=r.get(t))==null&&(i?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=te(this.categories))},n}();function V2(n){return ee(n)&&n.value!=null?n.value:n+""}const md=B2;function xd(n){return n.type==="interval"||n.type==="log"}function F2(n,t,e,i){var r={},o=n[1]-n[0],a=r.interval=gc(o/t,!0);e!=null&&a<e&&(a=r.interval=e),i!=null&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=o1(a);return function(l,u){!isFinite(l[0])&&(l[0]=u[0]),!isFinite(l[1])&&(l[1]=u[1]),a1(l,0,u),a1(l,1,u),l[0]>l[1]&&(l[0]=l[1])}(r.niceTickExtent=[Xe(Math.ceil(n[0]/a)*a,s),Xe(Math.floor(n[1]/a)*a,s)],n),r}function _d(n){var t=Math.pow(10,aa(n)),e=n/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Xe(e*t)}function o1(n){return Pn(n)+2}function a1(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function wu(n,t){return n>=t[0]&&n<=t[1]}function bu(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function Su(n,t){return n*(t[1]-t[0])+t[0]}var s1=function(n){function t(e){var i=n.call(this,e)||this;i.type="ordinal";var r=i.getSetting("ordinalMeta");return r||(r=new md({})),Y(r)&&(r=new md({categories:X(r,function(o){return ee(o)?o.value:o})})),i._ordinalMeta=r,i._extent=i.getSetting("extent")||[0,r.categories.length-1],i}return V(t,n),t.prototype.parse=function(e){return e==null?NaN:j(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return wu(e=this.parse(e),this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return bu(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Su(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,r=i[0];r<=i[1];)e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e!=null){for(var i=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var u=i[a];r[a]=u,o[u]=a}for(var h=0;a<s;++a){for(;o[h]!=null;)h++;r.push(h),o[h]=a}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hi);hi.registerClass(s1);const l1=s1;var Ir=Xe,u1=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return V(t,n),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wu(e,this._extent)},t.prototype.normalize=function(e){return bu(e,this._extent)},t.prototype.scale=function(e){return Su(e,this._extent)},t.prototype.setExtent=function(e,i){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(i)||(r[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=o1(e)},t.prototype.getTicks=function(e){var i=this._interval,r=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;r[0]<o[0]&&(e?s.push({value:Ir(o[0]-i,a)}):s.push({value:r[0]}));for(var l=o[0];l<=o[1]&&(s.push({value:l}),(l=Ir(l+i,a))!==s[s.length-1].value);)if(s.length>1e4)return[];var u=s.length?s[s.length-1].value:o[1];return r[1]>u&&(e?s.push({value:Ir(u+i,a)}):s.push({value:r[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),r=[],o=this.getExtent(),a=1;a<i.length;a++){for(var s=i[a],l=i[a-1],u=0,h=[],c=(s.value-l.value)/e;u<e-1;){var p=Ir(l.value+(u+1)*c);p>o[0]&&p<o[1]&&h.push(p),u++}r.push(h)}return r},t.prototype.getLabel=function(e,i){if(e==null)return"";var r=i&&i.precision;return r==null?r=Pn(e.value)||0:r==="auto"&&(r=this._intervalPrecision),fp(Ir(e.value,r,!0))},t.prototype.calcNiceTicks=function(e,i,r){e=e||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=F2(o,e,i,r);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var r=Math.abs(i[0]);e.fixMax||(i[1]+=r/2),i[0]-=r/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(i[0]=Ir(Math.floor(i[0]/a)*a)),e.fixMax||(i[1]=Ir(Math.ceil(i[1]/a)*a))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(hi);hi.registerClass(u1);const Cr=u1;var h1=typeof Float32Array<"u",G2=h1?Float32Array:Array;function ci(n){return Y(n)?h1?new Float32Array(n):n:new G2(n)}var H2="__ec_stack_";function wd(n){return n.get("stack")||H2+n.seriesIndex}function bd(n){return n.dim+n.index}function c1(n,t){var e=[];return t.eachSeriesByType(n,function(i){g1(i)&&e.push(i)}),e}function p1(n){var t=function(i){var r={};A(i,function(c){var p=c.coordinateSystem.getBaseAxis();if(p.type==="time"||p.type==="value")for(var d=c.getData(),f=p.dim+"_"+p.index,g=d.getDimensionIndex(d.mapDimension(p.dim)),y=d.getStore(),v=0,m=y.count();v<m;++v){var x=y.get(g,v);r[f]?r[f].push(x):r[f]=[x]}});var o={};for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];if(s){s.sort(function(c,p){return c-p});for(var l=null,u=1;u<s.length;++u){var h=s[u]-s[u-1];h>0&&(l=l===null?h:Math.min(l,h))}o[a]=l}}return o}(n),e=[];return A(n,function(i){var r,o=i.coordinateSystem.getBaseAxis(),a=o.getExtent();if(o.type==="category")r=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);r=l?u/c*l:u}else{var p=i.getData();r=Math.abs(a[1]-a[0])/p.count()}var d=ne(i.get("barWidth"),r),f=ne(i.get("barMaxWidth"),r),g=ne(i.get("barMinWidth")||(y1(i)?.5:1),r),y=i.get("barGap"),v=i.get("barCategoryGap");e.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:bd(o),stackId:wd(i)})}),function(i){var r={};A(i,function(a,s){var l=a.axisKey,u=a.bandWidth,h=r[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=h.stacks;r[l]=h;var p=a.stackId;c[p]||h.autoWidthCount++,c[p]=c[p]||{width:0,maxWidth:0};var d=a.barWidth;d&&!c[p].width&&(c[p].width=d,d=Math.min(h.remainedWidth,d),h.remainedWidth-=d);var f=a.barMaxWidth;f&&(c[p].maxWidth=f);var g=a.barMinWidth;g&&(c[p].minWidth=g);var y=a.barGap;y!=null&&(h.gap=y);var v=a.barCategoryGap;v!=null&&(h.categoryGap=v)});var o={};return A(r,function(a,s){o[s]={};var l=a.stacks,u=a.bandWidth,h=a.categoryGap;if(h==null){var c=Oe(l).length;h=Math.max(35-4*c,15)+"%"}var p=ne(h,u),d=ne(a.gap,1),f=a.remainedWidth,g=a.autoWidthCount,y=(f-p)/(g+(g-1)*d);y=Math.max(y,0),A(l,function(_){var b=_.maxWidth,w=_.minWidth;if(_.width)S=_.width,b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),_.width=S,f-=S+d*S,g--;else{var S=y;b&&b<S&&(S=Math.min(b,f)),w&&w>S&&(S=w),S!==y&&(_.width=S,f-=S+d*S,g--)}}),y=(f-p)/(g+(g-1)*d),y=Math.max(y,0);var v,m=0;A(l,function(_,b){_.width||(_.width=y),v=_,m+=_.width*(1+d)}),v&&(m-=v.width*d);var x=-m/2;A(l,function(_,b){o[s][b]=o[s][b]||{bandWidth:u,offset:x,width:_.width},x+=_.width*(1+d)})}),o}(e)}function d1(n,t){var e=c1(n,t),i=p1(e);A(e,function(r){var o=r.getData(),a=r.coordinateSystem.getBaseAxis(),s=wd(r),l=i[bd(a)][s],u=l.offset,h=l.width;o.setLayout({bandWidth:l.bandWidth,offset:u,size:h})})}function f1(n){return{seriesType:n,plan:Gp(),reset:function(t){if(g1(t)){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(o.dim)),s=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),u=e.mapDimension(o.dim),h=e.getCalculationInfo("stackResultDimension"),c=Oi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),d=function(x,_){return _.toGlobalCoord(_.dataToCoord(_.type==="log"?1:0))}(0,o),f=y1(t),g=t.get("barMinHeight")||0,y=h&&e.getDimensionIndex(h),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(x,_){for(var b,w=x.count,S=f&&ci(3*w),M=f&&l&&ci(3*w),T=f&&ci(w),I=i.master.getRect(),C=p?I.width:I.height,D=_.getStore(),L=0;(b=x.next())!=null;){var R=D.get(c?y:a,b),P=D.get(s,b),E=d,k=void 0;c&&(k=+R-D.get(a,b));var O=void 0,N=void 0,B=void 0,z=void 0;if(p){var U=i.dataToPoint([R,P]);c&&(E=i.dataToPoint([k,P])[0]),O=E,N=U[1]+m,B=U[0]-E,z=v,Math.abs(B)<g&&(B=(B<0?-1:1)*g)}else U=i.dataToPoint([P,R]),c&&(E=i.dataToPoint([P,k])[1]),O=U[0]+m,N=E,B=v,z=U[1]-E,Math.abs(z)<g&&(z=(z<=0?-1:1)*g);f?(S[L]=O,S[L+1]=N,S[L+2]=p?B:z,M&&(M[L]=p?I.x:O,M[L+1]=p?N:I.y,M[L+2]=C),T[b]=b):_.setItemLayout(b,{x:O,y:N,width:B,height:z}),L+=3}f&&_.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:M,valueAxisHorizontal:p})}}}}}}function g1(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function y1(n){return n.pipelineContext&&n.pipelineContext.large}var v1=function(n){function t(e){var i=n.call(this,e)||this;return i.type="time",i}return V(t,n),t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return Da(e.value,Sm[function(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(po(this._minLevelUnit))]||Sm.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,r){var o=this.getSetting("useUTC");return function(a,s,l,u,h){var c=null;if(j(l))c=l;else if(ae(l))c=l(a.value,s,{level:a.level});else{var p=G({},Aa);if(a.level>0)for(var d=0;d<pp.length;++d)p[pp[d]]="{primary|"+p[pp[d]]+"}";var f=l?l.inherit===!1?l:le(l,p):p,g=Tm(a.value,h);if(f[g])c=f[g];else if(f.inherit){for(d=Mm.indexOf(g)-1;d>=0;--d)if(f[g]){c=f[g];break}c=c||p.none}if(Y(c)){var y=a.level==null?0:a.level>=0?a.level:c.length+a.level;c=c[y=Math.min(y,c.length-1)]}}return Da(new Date(a.value),c,h,u)}(e,i,r,this.getSetting("locale"),o)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,r=[];if(!e)return r;r.push({value:i[0],level:0});var o=this.getSetting("useUTC"),a=function(s,l,u,h){var c=1e4,p=Mm,d=0;function f(E,k,O,N,B,z,U){for(var Z=new Date(k),F=k,W=Z[N]();F<O&&F<=h[1];)U.push({value:F}),W+=E,Z[B](W),F=Z.getTime();U.push({value:F,notAdd:!0})}function g(E,k,O){var N=[],B=!k.length;if(!function(he,ie,q,J){var H=Jt(ie),$=Jt(q),re=function(Ve){return Im(H,Ve,J)===Im($,Ve,J)},Ce=function(){return re("year")},ve=function(){return Ce()&&re("month")},_e=function(){return ve()&&re("day")},be=function(){return _e()&&re("hour")},Le=function(){return be()&&re("minute")},Se=function(){return Le()&&re("second")},Pe=function(){return Se()&&re("millisecond")};switch(he){case"year":return Ce();case"month":return ve();case"day":return _e();case"hour":return be();case"minute":return Le();case"second":return Se();case"millisecond":return Pe()}}(po(E),h[0],h[1],u)){B&&(k=[{value:Z2(new Date(h[0]),E,u)},{value:h[1]}]);for(var z=0;z<k.length-1;z++){var U=k[z].value,Z=k[z+1].value;if(U!==Z){var F=void 0,W=void 0,K=void 0,se=!1;switch(E){case"year":F=Math.max(1,Math.round(l/an/365)),W=dp(u),K=$I(u);break;case"half-year":case"quarter":case"month":F=Y2(l),W=fo(u),K=Cm(u);break;case"week":case"half-week":case"day":F=W2(l),W=El(u),K=Am(u),se=!0;break;case"half-day":case"quarter-day":case"hour":F=X2(l),W=ka(u),K=Dm(u);break;case"minute":F=m1(l,!0),W=Nl(u),K=km(u);break;case"second":F=m1(l,!1),W=zl(u),K=Lm(u);break;case"millisecond":F=U2(l),W=Bl(u),K=Pm(u)}f(F,U,Z,W,K,se,N),E==="year"&&O.length>1&&z===0&&O.unshift({value:O[0].value-F})}}for(z=0;z<N.length;z++)O.push(N[z]);return N}}for(var y=[],v=[],m=0,x=0,_=0;_<p.length&&d++<c;++_){var b=po(p[_]);if(JI(p[_])&&(g(p[_],y[y.length-1]||[],v),b!==(p[_+1]?po(p[_+1]):null))){if(v.length){x=m,v.sort(function(E,k){return E.value-k.value});for(var w=[],S=0;S<v.length;++S){var M=v[S].value;S!==0&&v[S-1].value===M||(w.push(v[S]),M>=h[0]&&M<=h[1]&&m++)}var T=(h[1]-h[0])/l;if(m>1.5*T&&x>T/1.5||(y.push(w),m>T||s===p[_]))break}v=[]}}d>=c&&Je("Exceed safe limit.");var I=We(X(y,function(E){return We(E,function(k){return k.value>=h[0]&&k.value<=h[1]&&!k.notAdd})}),function(E){return E.length>0}),C=[],D=I.length-1;for(_=0;_<I.length;++_)for(var L=I[_],R=0;R<L.length;++R)C.push({value:L[R].value,level:D-_});C.sort(function(E,k){return E.value-k.value});var P=[];for(_=0;_<C.length;++_)_!==0&&C[_].value===C[_-1].value||P.push(C[_]);return P}(this._minLevelUnit,this._approxInterval,o,i);return(r=r.concat(a)).push({value:i[1],level:0}),r},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=an,i[1]+=an),i[1]===-1/0&&i[0]===1/0){var r=new Date;i[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),i[0]=i[1]-an}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,r){e=e||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),r!=null&&this._approxInterval>r&&(this._approxInterval=r);var s=Mu.length,l=Math.min(function(u,h,c,p){for(;c<p;){var d=c+p>>>1;u[d][1]<h?c=d+1:p=d}return c}(Mu,this._approxInterval,0,s),s-1);this._interval=Mu[l][1],this._minLevelUnit=Mu[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Re(e)?e:+Jt(e)},t.prototype.contain=function(e){return wu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return bu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Su(e,this._extent)},t.type="time",t}(Cr),Mu=[["second",hp],["minute",cp],["hour",Ca],["quarter-day",6*Ca],["half-day",12*Ca],["day",1.2*an],["half-week",3.5*an],["week",7*an],["month",31*an],["quarter",95*an],["half-year",bm/2],["year",bm]];function W2(n,t){return(n/=an)>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function Y2(n){return(n/=30*an)>6?6:n>3?3:n>2?2:1}function X2(n){return(n/=Ca)>12?12:n>6?6:n>3.5?4:n>2?2:1}function m1(n,t){return(n/=t?cp:hp)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function U2(n){return gc(n,!0)}function Z2(n,t,e){var i=new Date(n);switch(po(t)){case"year":case"month":i[Cm(e)](0);case"day":i[Am(e)](1);case"hour":i[Dm(e)](0);case"minute":i[km(e)](0);case"second":i[Lm(e)](0),i[Pm(e)](0)}return i.getTime()}hi.registerClass(v1);const j2=v1;var x1=hi.prototype,$a=Cr.prototype,q2=Xe,K2=Math.floor,J2=Math.ceil,Tu=Math.pow,Mn=Math.log,Sd=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Cr,e._interval=0,e}return V(t,n),t.prototype.getTicks=function(e){var i=this._originalScale,r=this._extent,o=i.getExtent();return X($a.getTicks.call(this,e),function(a){var s=a.value,l=Xe(Tu(this.base,s));return l=s===r[0]&&this._fixMin?Iu(l,o[0]):l,{value:l=s===r[1]&&this._fixMax?Iu(l,o[1]):l}},this)},t.prototype.setExtent=function(e,i){var r=Mn(this.base);e=Mn(Math.max(0,e))/r,i=Mn(Math.max(0,i))/r,$a.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=x1.getExtent.call(this);i[0]=Tu(e,i[0]),i[1]=Tu(e,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=Iu(i[0],r[0])),this._fixMax&&(i[1]=Iu(i[1],r[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Mn(e[0])/Mn(i),e[1]=Mn(e[1])/Mn(i),x1.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,r=i[1]-i[0];if(!(r===1/0||r<=0)){var o=My(r);for(e/r*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var a=[Xe(J2(i[0]/o)*o),Xe(K2(i[1]/o)*o)];this._interval=o,this._niceExtent=a}},t.prototype.calcNiceExtent=function(e){$a.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wu(e=Mn(e)/Mn(this.base),this._extent)},t.prototype.normalize=function(e){return bu(e=Mn(e)/Mn(this.base),this._extent)},t.prototype.scale=function(e){return e=Su(e,this._extent),Tu(this.base,e)},t.type="log",t}(hi),_1=Sd.prototype;function Iu(n,t){return q2(n,Pn(t))}_1.getMinorTicks=$a.getMinorTicks,_1.getLabel=$a.getLabel,hi.registerClass(Sd);const $2=Sd;var Q2=function(){function n(t,e,i){this._prepareParams(t,e,i)}return n.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var r=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);ae(o)?this._modelMinNum=Cu(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Cu(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(ae(a)?this._modelMaxNum=Cu(t,a({min:i[0],max:i[1]})):a!=="dataMax"&&(this._modelMaxNum=Cu(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Y(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Ln(l[0],1),Ln(l[1],1)]}},n.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,h=l!=null;s==null&&(s=t?r?0:NaN:e-o[0]*a),l==null&&(l=t?r?r-1:NaN:i+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Gr(s)||Gr(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(t,e){ue(!this.frozen),this[tA[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){var i=eA[t];ue(!this.frozen&&this[i]==null),this[i]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),eA={min:"_determinedMin",max:"_determinedMax"},tA={min:"_dataMin",max:"_dataMax"};function w1(n,t,e){var i=n.rawExtentInfo;return i||(i=new Q2(n,t,e),n.rawExtentInfo=i,i)}function Cu(n,t){return t==null?null:Gr(t)?NaN:n.parse(t)}function b1(n,t){var e=n.type,i=w1(n,t,n.getExtent()).calculate();n.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&e==="time"){var s=c1("bar",a),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=p1(s),h=function(c,p,d,f){var g=d.axis.getExtent(),y=g[1]-g[0],v=function(S,M,T){if(S&&M){var I=S[bd(M)];return I!=null&&T!=null?I[wd(T)]:I}}(f,d.axis);if(v===void 0)return{min:c,max:p};var m=1/0;A(v,function(S){m=Math.min(S.offset,m)});var x=-1/0;A(v,function(S){x=Math.max(S.offset+S.width,x)}),m=Math.abs(m),x=Math.abs(x);var _=m+x,b=p-c,w=b/(1-(m+x)/y)-b;return p+=w*(x/_),c-=w*(m/_),{min:c,max:p}}(r,o,t,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Ao(n,t){var e=t,i=b1(n,e),r=i.extent,o=e.get("splitNumber");n instanceof $2&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),l=a==="interval"||a==="time";n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Au(n,t){if(t=t||n.get("type"))switch(t){case"category":return new l1({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new j2({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hi.getClass(t)||Cr)}}function Qa(n){var t,e,i=n.getLabelModel().get("formatter"),r=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?(e=i,function(o,a){return n.scale.getFormattedLabel(o,a,e)}):j(i)?function(o){return function(a){var s=n.scale.getLabel(a);return o.replace("{value}",s??"")}}(i):ae(i)?(t=i,function(o,a){return r!=null&&(a=o.value-r),t(Md(n,o),a,o.level!=null?{level:o.level}:null)}):function(o){return n.scale.getLabel(o)}}function Md(n,t){return n.type==="category"?n.scale.getLabel(t):t.value}function nA(n,t){var e=t*Math.PI/180,i=n.width,r=n.height,o=i*Math.abs(Math.cos(e))+Math.abs(r*Math.sin(e)),a=i*Math.abs(Math.sin(e))+Math.abs(r*Math.cos(e));return new me(n.x,n.y,o,a)}function Td(n){var t=n.get("interval");return t??"auto"}function S1(n){return n.type==="category"&&Td(n.getLabelModel())===0}function Du(n,t){var e={};return A(n.mapDimensionsAll(t),function(i){e[i1(n,i)]=!0}),Oe(e)}var es=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),iA={isDimensionStacked:Oi,enableDataStack:n1,getStackedDimension:i1};function ku(n,t){return it(n,null,null,(t=t||{}).state!=="normal")}const rA=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:t1,createList:function(n){return _u(null,n)},createScale:function(n,t){var e=t;t instanceof He||(e=new He(t));var i=Au(e);return i.setExtent(n[0],n[1]),Ao(i,e),i},createSymbol:ut,createTextStyle:ku,dataStack:iA,enableHoverEmphasis:ro,getECData:ye,getLayoutRect:St,mixinAxisModelCommonMethods:function(n){ct(n,es)}},Symbol.toStringTag,{value:"Module"}));var M1=[],oA={registerPreprocessor:fu,registerProcessor:hd,registerPostInit:Hx,registerPostUpdate:Wx,registerUpdateLifecycle:gu,registerAction:Sn,registerCoordinateSystem:Yx,registerLayout:cd,registerVisual:Li,registerTransform:Zx,registerLoading:dd,registerMap:Ux,registerImpl:function(n,t){au[n]&&xt("Already has an implementation of "+n+"."),au[n]=t},PRIORITY:Cx,ComponentModel:Te,ComponentView:je,SeriesModel:Mt,ChartView:at,registerComponentModel:function(n){Te.registerClass(n)},registerComponentView:function(n){je.registerClass(n)},registerSeriesModel:function(n){Mt.registerClass(n)},registerChartView:function(n){at.registerClass(n)},registerSubTypeDefaulter:function(n,t){Te.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){xy(n,t)}};function rt(n){Y(n)?A(n,function(t){rt(t)}):Me(M1,n)>=0||(M1.push(n),ae(n)&&(n={install:n}),n.install(oA))}var aA=1e-8;function T1(n,t){return Math.abs(n-t)<aA}function I1(n,t,e){var i=0,r=n[0];if(!r)return!1;for(var o=1;o<n.length;o++){var a=n[o];i+=ni(r[0],r[1],a[0],a[1],t,e),r=a}var s=n[0];return T1(r[0],s[0])&&T1(r[1],s[1])||(i+=ni(r[0],r[1],s[0],s[1],t,e)),i!==0}var sA=[];function Id(n,t){for(var e=0;e<n.length;e++)ot(n[e],n[e],t)}function C1(n,t,e,i){for(var r=0;r<n.length;r++){var o=n[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(qn(t,t,o),Kn(e,e,o))}}var A1=function(){function n(t){this.name=t}return n.prototype.setCenter=function(t){this._center=t},n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},n}(),D1=function(n,t){this.type="polygon",this.exterior=n,this.interiors=t},k1=function(n){this.type="linestring",this.points=n},L1=function(n){function t(e,i,r){var o=n.call(this,e)||this;return o.type="geoJSON",o.geometries=i,o._center=r&&[r[0],r[1]],o}return V(t,n),t.prototype.calcCenter=function(){for(var e,i=this.geometries,r=0,o=0;o<i.length;o++){var a=i[o],s=a.exterior,l=s&&s.length;l>r&&(e=a,r=l)}if(e)return function(h){for(var c=0,p=0,d=0,f=h.length,g=h[f-1][0],y=h[f-1][1],v=0;v<f;v++){var m=h[v][0],x=h[v][1],_=g*x-m*y;c+=_,p+=(g+m)*_,d+=(y+x)*_,g=m,y=x}return c?[p/c/3,d/c/3,c]:[h[0][0]||0,h[0][1]||0]}(e.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var r=[1/0,1/0],o=[-1/0,-1/0];return A(this.geometries,function(a){a.type==="polygon"?C1(a.exterior,r,o,e):A(a.points,function(s){C1(s,r,o,e)})}),isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])||(r[0]=r[1]=o[0]=o[1]=0),i=new me(r[0],r[1],o[0]-r[0],o[1]-r[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),r=this.geometries;if(!i.contain(e[0],e[1]))return!1;e:for(var o=0,a=r.length;o<a;o++){var s=r[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(I1(l,e[0],e[1])){for(var h=0;h<(u?u.length:0);h++)if(I1(u[h],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=a.width/a.height;r?o||(o=r/s):r=s*o;for(var l=new me(e,i,r,o),u=a.calculateTransform(l),h=this.geometries,c=0;c<h.length;c++){var p=h[c];p.type==="polygon"?(Id(p.exterior,u),A(p.interiors,function(d){Id(d,u)})):A(p.points,function(d){Id(d,u)})}(a=this._rect).copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t}(A1),lA=function(n){function t(e,i){var r=n.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=i,r}return V(t,n),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),r=[i.x+i.width/2,i.y+i.height/2],o=Xo(sA),a=e;a&&!a.isGeoSVGGraphicRoot;)Dn(o,a.getLocalTransform(),o),a=a.parent;return ji(o,o),ot(r,r,o),r},t}(A1);function P1(n,t,e){for(var i=0;i<n.length;i++)n[i]=O1(n[i],t[i],e)}function O1(n,t,e){for(var i=[],r=t[0],o=t[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/e,l/e])}return i}function Cd(n,t){return X(We((n=function(e){if(!e.UTF8Encoding)return e;var i=e,r=i.UTF8Scale;return r==null&&(r=1024),A(i.features,function(o){var a=o.geometry,s=a.encodeOffsets,l=a.coordinates;if(s)switch(a.type){case"LineString":a.coordinates=O1(l,s,r);break;case"Polygon":case"MultiLineString":P1(l,s,r);break;case"MultiPolygon":A(l,function(u,h){return P1(u,s[h],r)})}}),i.UTF8Encoding=!1,i}(n)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var a=r.coordinates;o.push(new D1(a[0],a.slice(1)));break;case"MultiPolygon":A(r.coordinates,function(l){l[0]&&o.push(new D1(l[0],l.slice(1)))});break;case"LineString":o.push(new k1([r.coordinates]));break;case"MultiLineString":o.push(new k1(r.coordinates))}var s=new L1(i[t||"name"],o,i.cp);return s.properties=i,s})}const uA=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:Qn,getPercentWithPrecision:function(n,t,e){return n[t]&&Sy(n,e)[t]||0},getPixelPrecision:dc,getPrecision:Pn,getPrecisionSafe:qs,isNumeric:Ks,isRadianAroundZero:oa,linearMap:Ae,nice:gc,numericToNumber:sa,parseDate:Jt,quantile:function(n,t){var e=(n.length-1)*t+1,i=Math.floor(e),r=+n[i-1],o=e-i;return o?r+o*(n[i]-r):r},quantity:My,quantityExponent:aa,reformIntervals:yc,remRadian:fc,round:Xe},Symbol.toStringTag,{value:"Module"})),hA=Object.freeze(Object.defineProperty({__proto__:null,format:Da,parse:Jt},Symbol.toStringTag,{value:"Module"})),cA=Object.freeze(Object.defineProperty({__proto__:null,Arc:xl,BezierCurve:ml,BoundingRect:me,Circle:oi,CompoundPath:qc,Ellipse:yl,Group:ge,Image:Gt,IncrementalDisplayable:em,Line:wt,LinearGradient:wa,Polygon:Vn,Polyline:_n,RadialGradient:Kc,Rect:Ie,Ring:_a,Sector:nn,Text:ke,clipPointsByRect:tp,clipRectByRect:sm,createIcon:Ma,extendPath:im,extendShape:nm,getShapeClass:rm,getTransform:Ai,initProps:et,makeImage:Qc,makePath:Il,mergePath:on,registerShape:rn,resizePath:ep,updateProps:ze},Symbol.toStringTag,{value:"Module"})),pA=Object.freeze(Object.defineProperty({__proto__:null,addCommas:fp,capitalFirst:Em,encodeHTML:Bt,formatTime:function(n,t,e){$e("echarts.format.formatTime","echarts.time.format"),n!=="week"&&n!=="month"&&n!=="quarter"&&n!=="half-year"&&n!=="year"||(n=`MM-dd
- yyyy`);var i=Jt(t),r=e?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return n=n.replace("MM",bt(a,2)).replace("M",a).replace("yyyy",o).replace("yy",bt(o%100+"",2)).replace("dd",bt(s,2)).replace("d",s).replace("hh",bt(l,2)).replace("h",l).replace("mm",bt(u,2)).replace("m",u).replace("ss",bt(h,2)).replace("s",h).replace("SSS",bt(c,3))},formatTpl:mp,getTextRect:function(n,t,e,i,r,o,a,s){return new ke({style:{text:n,font:t,align:e,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Rm,normalizeCssArray:go,toCamelCase:gp,truncateText:Hy},Symbol.toStringTag,{value:"Module"})),dA=Object.freeze(Object.defineProperty({__proto__:null,bind:Q,clone:oe,curry:xe,defaults:le,each:A,extend:G,filter:We,indexOf:Me,inherits:vh,isArray:Y,isFunction:ae,isObject:ee,isString:j,map:X,merge:pe,reduce:gn},Symbol.toStringTag,{value:"Module"}));var ts=Ne();function fA(n){return n.type==="category"?function(t){var e=t.getLabelModel(),i=R1(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(n):function(t){var e=t.scale.getTicks(),i=Qa(t);return{labels:X(e,function(r,o){return{level:r.level,formattedLabel:i(r,o),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}(n)}function gA(n,t){return n.type==="category"?function(e,i){var r,o,a=E1(e,"ticks"),s=Td(i),l=N1(a,s);if(l)return l;if(i.get("show")&&!e.scale.isBlank()||(r=[]),ae(s))r=V1(e,s,!0);else if(s==="auto"){var u=R1(e,e.getLabelModel());o=u.labelCategoryInterval,r=X(u.labels,function(h){return h.tickValue})}else r=B1(e,o=s,!0);return z1(a,s,{ticks:r,tickCategoryInterval:o})}(n,t):{ticks:X(n.scale.getTicks(),function(e){return e.value})}}function R1(n,t){var e,i,r=E1(n,"labels"),o=Td(t),a=N1(r,o);return a||(ae(o)?e=V1(n,o):(i=o==="auto"?function(s){var l=ts(s).autoInterval;return l??(ts(s).autoInterval=s.calculateCategoryInterval())}(n):o,e=B1(n,i)),z1(r,o,{labels:e,labelCategoryInterval:i}))}function E1(n,t){return ts(n)[t]||(ts(n)[t]=[])}function N1(n,t){for(var e=0;e<n.length;e++)if(n[e].key===t)return n[e].value}function z1(n,t,e){return n.push({key:t,value:e}),e}function B1(n,t,e){var i=Qa(n),r=n.scale,o=r.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],h=r.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=S1(n),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(y){var v={value:y};s.push(e?y:{formattedLabel:i(v),rawLabel:r.getLabel(v),tickValue:y})}return d&&f-l!==o[1]&&g(o[1]),s}function V1(n,t,e){var i=n.scale,r=Qa(n),o=[];return A(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;t(a.value,s)&&o.push(e?l:{formattedLabel:r(a),rawLabel:s,tickValue:l})}),o}var F1=[0,1],yA=function(){function n(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return n.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=i&&t<=r},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return dc(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},n.prototype.dataToCoord=function(t,e){var i=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&r.type==="ordinal"&&G1(i=i.slice(),r.count()),Ae(t,F1,i,e)},n.prototype.coordToData=function(t,e){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&G1(i=i.slice(),r.count());var o=Ae(t,i,F1,e);return this.scale.scale(o)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=X(gA(this,e).ticks,function(r){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(r):r),tickValue:r}},this);return function(r,o,a,s){var l=o.length;if(!r.onBand||a||!l)return;var u,h,c=r.getExtent();if(l===1)o[0].coord=c[0],u=o[1]={coord:c[1]};else{var p=o[l-1].tickValue-o[0].tickValue,d=(o[l-1].coord-o[0].coord)/p;A(o,function(y){y.coord-=d/2}),h=1+r.scale.getExtent()[1]-o[l-1].tickValue,u={coord:o[l-1].coord+d*h},o.push(u)}var f=c[0]>c[1];g(o[0].coord,c[0])&&(s?o[0].coord=c[0]:o.shift()),s&&g(c[0],o[0].coord)&&o.unshift({coord:c[0]}),g(c[1],u.coord)&&(s?u.coord=c[1]:o.pop()),s&&g(u.coord,c[1])&&o.push({coord:c[1]});function g(y,v){return y=Xe(y),v=Xe(v),f?y>v:y<v}}(this,i,e.get("alignWithLabel"),t.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),X(this.scale.getMinorTicks(t),function(e){return X(e,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this)},n.prototype.getViewLabels=function(){return fA(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/i},n.prototype.calculateCategoryInterval=function(){return function(t){var e=function(T){var I=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:I.get("rotate")||0,font:I.getFont()}}(t),i=Qa(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),s=o.count();if(a[1]-a[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var u=a[0],h=t.dataToCoord(u+1)-t.dataToCoord(u),c=Math.abs(h*Math.cos(r)),p=Math.abs(h*Math.sin(r)),d=0,f=0;u<=a[1];u+=l){var g,y,v=na(i({value:u}),e.font,"center","top");g=1.3*v.width,y=1.3*v.height,d=Math.max(d,g,7),f=Math.max(f,y,7)}var m=d/c,x=f/p;isNaN(m)&&(m=1/0),isNaN(x)&&(x=1/0);var _=Math.max(0,Math.floor(Math.min(m,x))),b=ts(t.model),w=t.getExtent(),S=b.lastAutoInterval,M=b.lastTickCount;return S!=null&&M!=null&&Math.abs(S-_)<=1&&Math.abs(M-s)<=1&&S>_&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?_=S:(b.lastTickCount=s,b.lastAutoInterval=_,b.axisExtent0=w[0],b.axisExtent1=w[1]),_}(this)},n}();function G1(n,t){var e=(n[1]-n[0])/t/2;n[0]+=e,n[1]-=e}const Yn=yA;function H1(n){var t=Mt.extend(n);return Mt.registerClass(t),t}function W1(n){var t=at.extend(n);return at.registerClass(t),t}var ns=2*Math.PI,Ar=Ti.CMD,vA=["top","right","bottom","left"];function mA(n,t,e,i,r){var o=e.width,a=e.height;switch(n){case"top":i.set(e.x+o/2,e.y-t),r.set(0,-1);break;case"bottom":i.set(e.x+o/2,e.y+a+t),r.set(0,1);break;case"left":i.set(e.x-t,e.y+a/2),r.set(-1,0);break;case"right":i.set(e.x+o+t,e.y+a/2),r.set(1,0)}}function xA(n,t,e,i,r,o,a,s,l){a-=n,s-=t;var u=Math.sqrt(a*a+s*s),h=(a/=u)*e+n,c=(s/=u)*e+t;if(Math.abs(i-r)%ns<1e-4)return l[0]=h,l[1]=c,u-e;if(o){var p=i;i=ti(r),r=ti(p)}else i=ti(i),r=ti(r);i>r&&(r+=ns);var d=Math.atan2(s,a);if(d<0&&(d+=ns),d>=i&&d<=r||d+ns>=i&&d+ns<=r)return l[0]=h,l[1]=c,u-e;var f=e*Math.cos(i)+n,g=e*Math.sin(i)+t,y=e*Math.cos(r)+n,v=e*Math.sin(r)+t,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function Lu(n,t,e,i,r,o,a,s){var l=r-n,u=o-t,h=e-n,c=i-t,p=Math.sqrt(h*h+c*c),d=(l*(h/=p)+u*(c/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=n+d*h,g=a[1]=t+d*c;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function Y1(n,t,e,i,r,o,a){e<0&&(n+=e,e=-e),i<0&&(t+=i,i=-i);var s=n+e,l=t+i,u=a[0]=Math.min(Math.max(r,n),s),h=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}var Tn=[];function _A(n,t,e){var i=Y1(t.x,t.y,t.width,t.height,n.x,n.y,Tn);return e.set(Tn[0],Tn[1]),i}function wA(n,t,e){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=t.data,c=n.x,p=n.y,d=0;d<h.length;){var f=h[d++];d===1&&(s=o=h[d],l=a=h[d+1]);var g=u;switch(f){case Ar.M:o=s=h[d++],a=l=h[d++];break;case Ar.L:g=Lu(o,a,h[d],h[d+1],c,p,Tn,!0),o=h[d++],a=h[d++];break;case Ar.C:g=qg(o,a,h[d++],h[d++],h[d++],h[d++],h[d],h[d+1],c,p,Tn),o=h[d++],a=h[d++];break;case Ar.Q:g=$g(o,a,h[d++],h[d++],h[d],h[d+1],c,p,Tn),o=h[d++],a=h[d++];break;case Ar.A:var y=h[d++],v=h[d++],m=h[d++],x=h[d++],_=h[d++],b=h[d++];d+=1;var w=!!(1-h[d++]);i=Math.cos(_)*m+y,r=Math.sin(_)*x+v,d<=1&&(s=i,l=r),g=xA(y,v,x,_,_+b,w,(c-y)*x/m+y,p,Tn),o=Math.cos(_+b)*m+y,a=Math.sin(_+b)*x+v;break;case Ar.R:g=Y1(s=o=h[d++],l=a=h[d++],h[d++],h[d++],c,p,Tn);break;case Ar.Z:g=Lu(o,a,s,l,c,p,Tn,!0),o=s,a=l}g<u&&(u=g,e.set(Tn[0],Tn[1]))}return u}var In=new de,Be=new de,Ue=new de,Xn=new de,Un=new de;function X1(n,t){if(n){var e=n.getTextGuideLine(),i=n.getTextContent();if(i&&e){var r=n.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||vA,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=n.getComputedTransform(),c=h&&ji([],h),p=t.get("length2")||0;u&&Ue.copy(u);for(var d=0;d<a.length;d++){mA(a[d],0,s,In,Xn),de.scaleAndAdd(Be,In,Xn,p),Be.transform(c);var f=n.getBoundingRect(),g=u?u.distance(Be):n instanceof De?wA(Be,n.path,Ue):_A(Be,f,Ue);g<l&&(l=g,Be.transform(h),Ue.transform(h),Ue.toArray(o[0]),Be.toArray(o[1]),In.toArray(o[2]))}U1(o,t.get("minTurnAngle")),e.setShape({points:o})}}}var Pu=[],It=new de;function U1(n,t){if(t<=180&&t>0){t=t/180*Math.PI,In.fromArray(n[0]),Be.fromArray(n[1]),Ue.fromArray(n[2]),de.sub(Xn,In,Be),de.sub(Un,Ue,Be);var e=Xn.len(),i=Un.len();if(!(e<.001||i<.001)){Xn.scale(1/e),Un.scale(1/i);var r=Xn.dot(Un);if(Math.cos(t)<r){var o=Lu(Be.x,Be.y,Ue.x,Ue.y,In.x,In.y,Pu,!1);It.fromArray(Pu),It.scaleAndAdd(Un,o/Math.tan(Math.PI-t));var a=Ue.x!==Be.x?(It.x-Be.x)/(Ue.x-Be.x):(It.y-Be.y)/(Ue.y-Be.y);if(isNaN(a))return;a<0?de.copy(It,Be):a>1&&de.copy(It,Ue),It.toArray(n[1])}}}}function bA(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,In.fromArray(n[0]),Be.fromArray(n[1]),Ue.fromArray(n[2]),de.sub(Xn,Be,In),de.sub(Un,Ue,Be);var i=Xn.len(),r=Un.len();if(!(i<.001||r<.001)&&(Xn.scale(1/i),Un.scale(1/r),Xn.dot(t)<Math.cos(e))){var o=Lu(Be.x,Be.y,Ue.x,Ue.y,In.x,In.y,Pu,!1);It.fromArray(Pu);var a=Math.PI/2,s=a+Math.acos(Un.dot(t))-e;if(s>=a)de.copy(It,Ue);else{It.scaleAndAdd(Un,o/Math.tan(Math.PI/2-s));var l=Ue.x!==Be.x?(It.x-Be.x)/(Ue.x-Be.x):(It.y-Be.y)/(Ue.y-Be.y);if(isNaN(l))return;l<0?de.copy(It,Be):l>1&&de.copy(It,Ue)}It.toArray(n[1])}}}function Ad(n,t,e,i){var r=e==="normal",o=r?n:n.ensureState(e);o.ignore=t;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):o.style=s}function SA(n,t){var e=t.smooth,i=t.points;if(i)if(n.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var r=Cs(i[0],i[1]),o=Cs(i[1],i[2]);if(!r||!o)return n.lineTo(i[1][0],i[1][1]),void n.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*e,s=As([],i[1],i[0],a/r),l=As([],i[1],i[2],a/o),u=As([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)n.lineTo(i[h][0],i[h][1])}function Z1(n,t,e){var i=n.getTextGuideLine(),r=n.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<ll.length;l++){var u=ll[l],h=t[u],c=u==="normal";if(h){var p=h.get("show");if((c?s:fe(r.states[u]&&r.states[u].ignore,s))||!fe(p,a)){var d=c?i:i&&i.states[u];d&&(d.ignore=!0),i&&Ad(i,!0,u,h);continue}i||(i=new _n,n.setTextGuideLine(i),c||!s&&a||Ad(i,!0,"normal",t.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),Ad(i,!1,u,h)}}if(i){le(i.style,e),i.style.fill=null;var f=o.get("showAbove");(n.textGuideLineConfig=n.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=SA}}else i&&n.removeTextGuideLine()}function j1(n,t){t=t||"labelLine";for(var e={normal:n.getModel(t)},i=0;i<tn.length;i++){var r=tn[i];e[r]=n.getModel([r,t])}return e}function q1(n){for(var t=[],e=0;e<n.length;e++){var i=n[e];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new bl(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function K1(n,t,e,i,r,o){var a=n.length;if(!(a<2)){n.sort(function(S,M){return S.rect[t]-M.rect[t]});for(var s,l=0,u=!1,h=0,c=0;c<a;c++){var p=n[c],d=p.rect;(s=d[t]-l)<0&&(d[t]-=s,p.label[t]-=s,u=!0),h+=Math.max(-s,0),l=d[t]+d[e]}h>0&&o&&_(-h/a,0,a);var f,g,y=n[0],v=n[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),x(f,g,1),x(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=y.rect[t]-i,g=r-v.rect[t]-v.rect[e]}function x(S,M,T){if(S<0){var I=Math.min(M,-S);if(I>0){_(I*T,0,a);var C=I+S;C<0&&b(-C*T,1)}else b(-S*T,1)}}function _(S,M,T){S!==0&&(u=!0);for(var I=M;I<T;I++){var C=n[I];C.rect[t]+=S,C.label[t]+=S}}function b(S,M){for(var T=[],I=0,C=1;C<a;C++){var D=n[C-1].rect,L=Math.max(n[C].rect[t]-D[t]-D[e],0);T.push(L),I+=L}if(I){var R=Math.min(Math.abs(S)/I,M);if(S>0)for(C=0;C<a-1;C++)_(T[C]*R,0,C+1);else for(C=a-1;C>0;C--)_(-(T[C-1]*R),C,a)}}function w(S){var M=S<0?-1:1;S=Math.abs(S);for(var T=Math.ceil(S/(a-1)),I=0;I<a-1;I++)if(M>0?_(T,0,I+1):_(-T,a-I-1,a),(S-=T)<=0)return}}function J1(n,t,e,i){return K1(n,"y","height",t,e,i)}function $1(n){var t=[];n.sort(function(g,y){return y.priority-g.priority});var e=new me(0,0,0,0);function i(g){if(!g.ignore){var y=g.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}g.ignore=!0}for(var r=0;r<n.length;r++){var o=n[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;e.copy(o.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=o.obb,p=!1,d=0;d<t.length;d++){var f=t[d];if(e.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new bl(f.localRect,f.transform)),c||(c=new bl(s,l)),c.intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function MA(n){if(n){for(var t=[],e=0;e<n.length;e++)t.push(n[e].slice());return t}}function TA(n,t){var e=n.label,i=t&&t.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:MA(i&&i.shape.points)}}var Q1=["align","verticalAlign","width","height","fontSize"],Ct=new bi,Dd=Ne(),IA=Ne();function Ou(n,t,e){for(var i=0;i<e.length;i++){var r=e[i];t[r]!=null&&(n[r]=t[r])}}var Ru=["x","y","rotation"],CA=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(t,e,i,r,o){var a=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();me.applyTransform(u,u,l),l?Ct.setLocalTransform(l):(Ct.x=Ct.y=Ct.rotation=Ct.originX=Ct.originY=0,Ct.scaleX=Ct.scaleY=1),Ct.rotation=ti(Ct.rotation);var h,c=r.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();me.applyTransform(h,h,p)}var d=h&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:Ct.x,y:Ct.y,scaleX:Ct.scaleX,scaleY:Ct.scaleY,rotation:Ct.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},n.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,r=i.get("labelLayout");(ae(r)||Oe(r).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=ye(o);a&&!a.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,i,a,r)})},n.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();function r(v,m){return function(){X1(v,m)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,h=void 0;h=(h=ae(a.layoutOption)?a.layoutOption(TA(a,l)):a.layoutOption)||{},a.computedLayoutOption=h;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:h.x!=null||h.y!=null?null:u.attachedPos,rotation:h.rotate!=null?h.rotate*c:u.attachedRot,offset:[h.dx||0,h.dy||0]});var p=!1;if(h.x!=null?(s.x=ne(h.x,e),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),h.y!=null?(s.y=ne(h.y,i),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),h.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:h.labelLinePoints}),p=!1)}Dd(s).needsUpdateLabelLine=p,s.rotation=h.rotate!=null?h.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var f=0;f<Q1.length;f++){var g=Q1[f];s.setStyle(g,h[g]!=null?h[g]:u.style[g])}if(h.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;a.dataIndex!=null&&(y=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),s.on("drag",r(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(t){var e,i=t.getWidth(),r=t.getHeight(),o=q1(this._labelList),a=We(o,function(l){return l.layoutOption.moveOverlap==="shiftX"}),s=We(o,function(l){return l.layoutOption.moveOverlap==="shiftY"});K1(a,"x","width",0,i,e),J1(s,0,r),$1(We(o,function(l){return l.layoutOption.hideOverlap}))},n.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var i=e.__model,r=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!r,l=a.getTextContent();!s&&l&&(s=Dd(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,i),o&&t._animateLabels(a,i)})})},n.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),r=ye(t),o=r.dataIndex;if(i&&o!=null){var a=e.getData(r.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var h=a.getVisual("drawType");l.stroke=u[h]}var c=s.getModel("labelLine");Z1(t,j1(s),l),X1(t,c)}},n.prototype._animateLabels=function(t,e){var i=t.getTextContent(),r=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!lo(t))){var o=(f=Dd(i)).oldLayout,a=ye(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var h=t.prevStates;h&&(Me(h,"select")>=0&&i.attr(f.oldLayoutSelect),Me(h,"emphasis")>=0&&i.attr(f.oldLayoutEmphasis)),ze(i,l,e,s)}else if(i.attr(l),!ho(i).valueAnimation){var c=fe(i.style.opacity,1);i.style.opacity=0,et(i,{style:{opacity:c}},e,s)}if(f.oldLayout=l,i.states.select){var p=f.oldLayoutSelect={};Ou(p,l,Ru),Ou(p,i.states.select,Ru)}if(i.states.emphasis){var d=f.oldLayoutEmphasis={};Ou(d,l,Ru),Ou(d,i.states.emphasis,Ru)}mm(i,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){o=(f=IA(r)).oldLayout;var f,g={points:r.shape.points};o?(r.attr({shape:o}),ze(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,et(r,{style:{strokePercent:1}},e)),f.oldLayout=g}},n}();const AA=CA;var kd=Ne();ug=Object.freeze(Object.defineProperty({__proto__:null,Axis:Yn,ChartView:at,ComponentModel:Te,ComponentView:je,List:Ja,Model:He,PRIORITY:Cx,SeriesModel:Mt,color:rT,connect:function(n){if(Y(n)){var t=n;n=null,A(t,function(e){e.group!=null&&(n=e.group)}),n=n||"g_"+M2++,A(t,function(e){e.group=n})}return du[n]=!0,n},dataTool:{},dependencies:{zrender:"5.5.0"},disConnect:T2,disconnect:Gx,dispose:function(n){j(n)?n=Tr[n]:n instanceof hu||(n=ld(n)),n instanceof hu&&!n.isDisposed()&&n.dispose()},env:we,extendChartView:W1,extendComponentModel:function(n){var t=Te.extend(n);return Te.registerClass(t),t},extendComponentView:function(n){var t=je.extend(n);return je.registerClass(t),t},extendSeriesModel:H1,format:pA,getCoordinateSystemDimensions:function(n){var t=Wl.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},getInstanceByDom:ld,getInstanceById:function(n){return Tr[n]},getMap:function(n){var t=Ix("getMap");return t&&t(n)},graphic:cA,helper:rA,init:function(n,t,e){var i=!(e&&e.ssr);if(i){if(!n)throw new Error("Initialize failed: invalid dom.");var r=ld(n);if(r)return Je("There is a chart instance already initialized on the dom."),r;!vi(n)||n.nodeName.toUpperCase()==="CANVAS"||(n.clientWidth||e&&e.width!=null)&&(n.clientHeight||e&&e.height!=null)||Je("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new hu(n,t,e);return o.id="ec_"+S2++,Tr[o.id]=o,i&&Ny(n,sd,o.id),Nx(o),bn.trigger("afterinit",o),o},innerDrawElementOnCanvas:Zp,matrix:VM,number:uA,parseGeoJSON:Cd,parseGeoJson:Cd,registerAction:Sn,registerCoordinateSystem:Yx,registerLayout:cd,registerLoading:dd,registerLocale:up,registerMap:Ux,registerPostInit:Hx,registerPostUpdate:Wx,registerPreprocessor:fu,registerProcessor:hd,registerTheme:ud,registerTransform:Zx,registerUpdateLifecycle:gu,registerVisual:Li,setCanvasCreator:function(n){$t("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),cg({createCanvas:n})},setPlatformAPI:cg,throttle:Kl,time:hA,use:rt,util:dA,vector:AM,version:"5.5.0",zrUtil:TM,zrender:ST},Symbol.toStringTag,{value:"Module"}));const DA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return V(t,n),t.prototype.getInitialData=function(e){var i=e.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar");return _u(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new ge,r=ut("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(r),r.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=.8*e.itemHeight,u=ut(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var h=e.iconRotate==="inherit"?a:e.iconRotate||0;return u.rotation=h*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Mt);function Eu(n,t){var e=n.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var r=So(n,t,e[0]);return r!=null?r+"":null}if(i){for(var o=[],a=0;a<e.length;a++)o.push(So(n,t,e[a]));return o.join(" ")}}function e_(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var i=[],r=0;r<e.length;r++){var o=n.getDimensionIndex(e[r]);o>=0&&i.push(t[o])}return i.join(" ")}var kA=function(n){function t(e,i,r,o){var a=n.call(this)||this;return a.updateData(e,i,r,o),a}return V(t,n),t.prototype._createSymbol=function(e,i,r,o,a){this.removeAll();var s=ut(e,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=LA,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){no(this.childAt(0))},t.prototype.downplay=function(){io(this.childAt(0))},t.prototype.setZ=function(e,i){var r=this.childAt(0);r.zlevel=e,r.z=i},t.prototype.setDraggable=function(e,i){var r=this.childAt(0);r.draggable=e,r.cursor=!i&&e?"move":r.cursor},t.prototype.updateData=function(e,i,r,o){this.silent=!1;var a=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=a!==this._symbolType,h=o&&o.disableAnimation;if(u){var c=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,e,i,l,c)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?d.attr(p):ze(d,p,s,i),ba(d)}if(this._updateCommon(e,i,l,r,o),u){var d=this.childAt(0);h||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,et(d,p,s,i))}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,r,o,a){var s,l,u,h,c,p,d,f,g,y=this.childAt(0),v=e.hostModel;if(o&&(s=o.emphasisItemStyle,l=o.blurItemStyle,u=o.selectItemStyle,h=o.focus,c=o.blurScope,d=o.labelStatesModels,f=o.hoverScale,g=o.cursorStyle,p=o.emphasisDisabled),!o||e.hasItemOption){var m=o&&o.itemModel?o.itemModel:e.getItemModel(i),x=m.getModel("emphasis");s=x.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),l=m.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),c=x.get("blurScope"),p=x.get("disabled"),d=si(m),f=x.getShallow("scale"),g=m.getShallow("cursor")}var _=e.getItemVisual(i,"symbolRotate");y.attr("rotation",(_||0)*Math.PI/180||0);var b=Yp(e.getItemVisual(i,"symbolOffset"),r);b&&(y.x=b[0],y.y=b[1]),g&&y.attr("cursor",g);var w=e.getItemVisual(i,"style"),S=w.fill;if(y instanceof Gt){var M=y.style;y.useStyle(G({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else y.__isEmptyBrush?y.useStyle(G({},w)):y.useStyle(w),y.style.decal=null,y.setColor(S,a&&a.symbolInnerColor),y.style.strokeNoScale=!0;var T=e.getItemVisual(i,"liftZ"),I=this._z2;T!=null?I==null&&(this._z2=y.z2,y.z2+=T):I!=null&&(y.z2=I,this._z2=null);var C=a&&a.useNameLabel;ai(y,d,{labelFetcher:v,labelDataIndex:i,defaultText:function(R){return C?e.getName(R):Eu(e,R)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=r[0]/2,this._sizeY=r[1]/2;var D=y.ensureState("emphasis");D.style=s,y.ensureState("select").style=u,y.ensureState("blur").style=l;var L=f==null||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),zn(this,h,c,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,r){var o=this.childAt(0),a=ye(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&Ci(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Ci(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return ax(e.getItemVisual(i,"symbolSize"))},t}(ge);function LA(n,t){this.parent.drift(n,t)}const Nu=kA;function Ld(n,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&n.getItemVisual(e,"symbol")!=="none"}function t_(n){return n==null||ee(n)||(n={isIgnore:n}),n||{}}function n_(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:si(t),cursorStyle:t.get("cursor")}}var PA=function(){function n(t){this.group=new ge,this._SymbolCtor=t||Nu}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=t_(e);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=n_(t),u={disableAnimation:s},h=e.getSymbolPoint||function(c){return t.getItemLayout(c)};o||i.removeAll(),t.diff(o).add(function(c){var p=h(c);if(Ld(t,p,c,e)){var d=new a(t,c,l,u);d.setPosition(p),t.setItemGraphicEl(c,d),i.add(d)}}).update(function(c,p){var d=o.getItemGraphicEl(p),f=h(c);if(Ld(t,f,c,e)){var g=t.getItemVisual(c,"symbol")||"circle",y=d&&d.getSymbolType&&d.getSymbolType();if(!d||y&&y!==g)i.remove(d),(d=new a(t,c,l,u)).setPosition(f);else{d.updateData(t,c,l,u);var v={x:f[0],y:f[1]};s?d.attr(v):ze(d,v,r)}i.add(d),t.setItemGraphicEl(c,d)}else i.remove(d)}).remove(function(c){var p=o.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},r)}).execute(),this._getSymbolPoint=h,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,r){var o=t._getSymbolPoint(r);i.setPosition(o),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=n_(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,i){function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=t_(i);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(Ld(e,a,o,i)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(t){Dl(this._progressiveEls||this.group,t)},n.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(r){r.fadeOut(function(){e.remove(r)},i.hostModel)}):e.removeAll()},n}();const OA=PA;function i_(n,t,e){var i=n.getBaseAxis(),r=n.getOtherAxis(i),o=function(f,g){var y=0,v=f.scale.getExtent();return g==="start"?y=v[0]:g==="end"?y=v[1]:Re(g)&&!isNaN(g)?y=g:v[0]>0?y=v[0]:v[1]<0&&(y=v[1]),y}(r,e),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),h=s==="x"||s==="radius"?1:0,c=X(n.dimensions,function(f){return t.mapDimension(f)}),p=!1,d=t.getCalculationInfo("stackResultDimension");return Oi(t,c[0])&&(p=!0,c[0]=d),Oi(t,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function r_(n,t,e,i){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=e.get(n.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var Ri=Math.min,Ei=Math.max;function Dr(n,t){return isNaN(n)||isNaN(t)}function Pd(n,t,e,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=e,y=0;y<i;y++){var v=t[2*g],m=t[2*g+1];if(g>=r||g<0)break;if(Dr(v,m)){if(l){g+=o;continue}break}if(g===e)n[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===v&&S===m&&y<i;)y++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],x=(v=t[2*g])-u,_=(m=t[2*g+1])-h;var M=y+1;if(l)for(;Dr(w,S)&&M<i;)M++,w=t[2*(b+=o)],S=t[2*b+1];var T=.5,I=0,C=0,D=void 0,L=void 0;if(M>=i||Dr(w,S))d=v,f=m;else{I=w-u,C=S-h;var R=v-u,P=w-v,E=m-h,k=S-m,O=void 0,N=void 0;if(s==="x"){var B=I>0?1:-1;d=v-B*(O=Math.abs(R))*a,f=m,D=v+B*(N=Math.abs(P))*a,L=m}else if(s==="y"){var z=C>0?1:-1;d=v,f=m-z*(O=Math.abs(E))*a,D=v,L=m+z*(N=Math.abs(k))*a}else O=Math.sqrt(R*R+E*E),d=v-I*a*(1-(T=(N=Math.sqrt(P*P+k*k))/(N+O))),f=m-C*a*(1-T),L=m+C*a*T,D=Ri(D=v+I*a*T,Ei(w,v)),L=Ri(L,Ei(S,m)),D=Ei(D,Ri(w,v)),f=m-(C=(L=Ei(L,Ri(S,m)))-m)*O/N,d=Ri(d=v-(I=D-v)*O/N,Ei(u,v)),f=Ri(f,Ei(h,m)),D=v+(I=v-(d=Ei(d,Ri(u,v))))*N/O,L=m+(C=m-(f=Ei(f,Ri(h,m))))*N/O}n.bezierCurveTo(c,p,d,f,v,m),c=D,p=L}else n.lineTo(v,m)}u=v,h=m,g+=o}return y}var o_=function(){this.smooth=0,this.smoothConstraint=!0},RA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polyline",i}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o_},t.prototype.buildPath=function(e,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&Dr(r[2*a-2],r[2*a-1]);a--);for(;o<a&&Dr(r[2*o],r[2*o+1]);o++);}for(;o<a;)o+=Pd(e,r,o,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var r,o,a=this.path.data,s=Ti.CMD,l=i==="x",u=[],h=0;h<a.length;){var c=void 0,p=void 0,d=void 0,f=void 0,g=void 0,y=void 0,v=void 0;switch(a[h++]){case s.M:r=a[h++],o=a[h++];break;case s.L:if(c=a[h++],p=a[h++],(v=l?(e-r)/(c-r):(e-o)/(p-o))<=1&&v>=0){var m=l?(p-o)*v+o:(c-r)*v+r;return l?[e,m]:[m,e]}r=c,o=p;break;case s.C:c=a[h++],p=a[h++],d=a[h++],f=a[h++],g=a[h++],y=a[h++];var x=l?zs(r,c,d,g,e,u):zs(o,p,f,y,e,u);if(x>0)for(var _=0;_<x;_++){var b=u[_];if(b<=1&&b>=0)return m=l?tt(o,p,f,y,b):tt(r,c,d,g,b),l?[e,m]:[m,e]}r=g,o=y}}},t}(De),EA=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t}(o_),NA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polygon",i}return V(t,n),t.prototype.getDefaultShape=function(){return new EA},t.prototype.buildPath=function(e,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Dr(r[2*s-2],r[2*s-1]);s--);for(;a<s&&Dr(r[2*a],r[2*a+1]);a++);}for(;a<s;){var u=Pd(e,r,a,s,s,1,i.smooth,l,i.connectNulls);Pd(e,o,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,e.closePath()}},t}(De);function a_(n,t,e,i,r){var o=n.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=e.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new Ie({shape:{x:a,y:s,width:l,height:u}});if(t){var p=n.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=ae(r)?function(y){r(y,c)}:null;et(c,{shape:{width:l,height:u,x:a,y:s}},e,null,i,g)}return c}function s_(n,t,e){var i=n.getArea(),r=Xe(i.r0,1),o=Xe(i.r,1),a=new nn({shape:{cx:Xe(n.cx,1),cy:Xe(n.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&(n.getBaseAxis().dim==="angle"?a.shape.endAngle=i.startAngle:a.shape.r=r,et(a,{shape:{endAngle:i.endAngle,r:o}},e)),a}function l_(n,t,e,i,r){return n?n.type==="polar"?s_(n,t,e):n.type==="cartesian2d"?a_(n,t,e,i,r):null:null}function Od(n,t){return n.type===t}function u_(n,t){if(n.length===t.length){for(var e=0;e<n.length;e++)if(n[e]!==t[e])return;return!0}}function h_(n){for(var t=1/0,e=1/0,i=-1/0,r=-1/0,o=0;o<n.length;){var a=n[o++],s=n[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(e=Math.min(s,e),r=Math.max(s,r))}return[[t,e],[i,r]]}function c_(n,t){var e=h_(n),i=e[0],r=e[1],o=h_(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function p_(n){return Re(n)?n:n?.5:0}function Ni(n,t,e,i){var r=t.getBaseAxis(),o=r.dim==="x"||r.dim==="radius"?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s<n.length;s+=2)isNaN(n[s])||isNaN(n[s+1])||c.push(n[s],n[s+1]);n=c}for(s=0;s<n.length-2;s+=2)switch(h[0]=n[s+2],h[1]=n[s+3],u[0]=n[s],u[1]=n[s+1],a.push(u[0],u[1]),e){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+h[o])/2,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=h[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(n[s++],n[s++]),a}function zA(n,t,e){var i=n.getVisual("visualMeta");if(i&&i.length&&n.count())if(t.type==="cartesian2d"){for(var r,o,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if((r=s&&s.coordDim)==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),u=X(o.stops,function(m){return{coord:l.toGlobalCoord(l.dataToCoord(m.value)),color:m.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(m,x){var _,b,w=[],S=m.length;function M(D,L,R){var P=D.coord;return{coord:R,color:Yh((R-P)/(L.coord-P),[D.color,L.color])}}for(var T=0;T<S;T++){var I=m[T],C=I.coord;if(C<0)_=I;else{if(C>x){b?w.push(M(b,I,x)):_&&w.push(M(_,I,0),M(_,I,x));break}_&&(w.push(M(_,I,0)),_=null),w.push(I),b=I}}return w}(u,r==="x"?e.getWidth():e.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";A(p,function(m){m.offset=(m.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new wa(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}console.warn("Visual map on line style only support x or y dimension.")}else console.warn("Visual map on line style is only supported on cartesian2d.")}function BA(n,t,e){var i=n.get("showAllSymbol"),r=i==="auto";if(!i||r){var o=e.getAxesByScale("ordinal")[0];if(o&&(!r||!function(l,u){var h=l.getExtent(),c=Math.abs(h[1]-h[0])/l.scale.count();isNaN(c)&&(c=0);for(var p=u.count(),d=Math.max(1,Math.round(p/5)),f=0;f<p;f+=d)if(1.5*Nu.getSymbolSize(u,f)[l.isHorizontal()?1:0]>c)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return A(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function d_(n,t){return[n[2*t],n[2*t+1]]}function f_(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t<tn.length;t++)if(n.get([tn[t],"endLabel","show"]))return!0;return!1}function Rd(n,t,e,i){if(Od(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=f_(i)?function(d,f){n._endLabelOnDuring(d,f,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),h=a_(t,e,i,function(){var d=n._endLabel;d&&e&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}return i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),s_(t,e,i)}var VA=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(){var e=new ge,i=new OA;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e},t.prototype.render=function(e,i,r){var o=this,a=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),h=e.getModel("areaStyle"),c=l.getLayout("points")||[],p=a.type==="polar",d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,v=this._lineGroup,m=!i.ssr&&e.get("animation"),x=!h.isEmpty(),_=h.get("origin"),b=i_(a,l,_),w=x&&function(F,W,K){if(!K.valueDim)return[];for(var se=W.count(),he=ci(2*se),ie=0;ie<se;ie++){var q=r_(K,F,W,ie);he[2*ie]=q[0],he[2*ie+1]=q[1]}return he}(a,l,b),S=e.get("showSymbol"),M=e.get("connectNulls"),T=S&&!p&&BA(e,l,a),I=this._data;I&&I.eachItemGraphicEl(function(F,W){F.__temp&&(s.remove(F),I.setItemGraphicEl(W,null))}),S||f.remove(),s.add(v);var C,D=!p&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&((C=a.getArea()).width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var L=zA(l,a,r)||l.getVisual("style")[l.getVisual("drawType")];if(g&&d.type===a.type&&D===this._step){x&&!y?y=this._newPolygon(c,w):y&&!x&&(v.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(e,a,_r(L));var R=v.getClipPath();R?et(R,{shape:Rd(this,a,!1,e).shape},e):v.setClipPath(Rd(this,a,!0,e)),S&&f.updateData(l,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(F){return[c[2*F],c[2*F+1]]}}),u_(this._stackedOnPoints,w)&&u_(this._points,c)||(m?this._doUpdateAnimation(l,w,a,r,D,_,M):(D&&(c=Ni(c,a,D,M),w&&(w=Ni(w,a,D,M))),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))}else S&&f.updateData(l,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(F){return[c[2*F],c[2*F+1]]}}),m&&this._initSymbolLabelAnimation(l,a,C),D&&(c=Ni(c,a,D,M),w&&(w=Ni(w,a,D,M))),g=this._newPolyline(c),x?y=this._newPolygon(c,w):y&&(v.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(e,a,_r(L)),v.setClipPath(Rd(this,a,!0,e));var P=e.getModel("emphasis"),E=P.get("focus"),k=P.get("blurScope"),O=P.get("disabled");g.useStyle(le(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),ri(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),ye(g).seriesIndex=e.seriesIndex,zn(g,E,k,O);var N=p_(e.get("smooth")),B=e.get("smoothMonotone");if(g.setShape({smooth:N,smoothMonotone:B,connectNulls:M}),y){var z=l.getCalculationInfo("stackedOnSeries"),U=0;y.useStyle(le(h.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(U=p_(z.get("smooth"))),y.setShape({smooth:N,stackedOnSmooth:U,smoothMonotone:B,connectNulls:M}),ri(y,e,"areaStyle"),ye(y).seriesIndex=e.seriesIndex,zn(y,E,k,O)}var Z=function(F){o._changePolyState(F)};l.eachItemGraphicEl(function(F){F&&(F.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=c,this._step=D,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,g),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,i){ye(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,r,o){var a=e.getData(),s=ir(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var h=l[2*s],c=l[2*s+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var p=e.get("zlevel")||0,d=e.get("z")||0;(u=new Nu(a,s)).x=h,u.y=c,u.setZ(p,d);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=p,f.z=d,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,e,i,r,o)},t.prototype.downplay=function(e,i,r,o){var a=e.getData(),s=ir(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,e,i,r,o)},t.prototype._changePolyState=function(e){var i=this._polygon;pl(this._polyline,e),i&&pl(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new RA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new NA({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var u=e.hostModel,h=u.get("animationDuration");ae(h)&&(h=h(null));var c=u.get("animationDelay")||0,p=ae(c)?c(null):c;e.eachItemGraphicEl(function(d,f){var g=d;if(g){var y=[d.x,d.y],v=void 0,m=void 0,x=void 0;if(r)if(a){var _=r,b=i.pointToCoord(y);o?(v=_.startAngle,m=_.endAngle,x=-b[1]/180*Math.PI):(v=_.r0,m=_.r,x=b[0])}else{var w=r;o?(v=w.x,m=w.x+w.width,x=d.x):(v=w.y+w.height,m=w.y,x=d.y)}var S=m===v?0:(x-v)/(m-v);l&&(S=1-S);var M=ae(c)?c(f):h*S+p,T=g.getSymbolPath(),I=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:M}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,r){var o=e.getModel("endLabel");if(f_(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new ke({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=function(c){for(var p,d,f=c.length/2;f>0&&(p=c[2*f-2],d=c[2*f-1],isNaN(p)||isNaN(d));f--);return f-1}(l);h>=0&&(ai(s,si(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:h,defaultText:function(c,p,d){return d!=null?e_(a,d):Eu(a,c)},enableTextSetter:!0},function(c,p){var d=p.getBaseAxis(),f=d.isHorizontal(),g=d.inverse,y=f?g?"right":"left":"center",v=f?"middle":g?"top":"bottom";return{normal:{align:c.get("align")||y,verticalAlign:c.get("verticalAlign")||v}}}(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,r,o,a,s,l){var u=this._endLabel,h=this._polyline;if(u){e<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var c=r.getLayout("points"),p=r.hostModel,d=p.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),v=y.isHorizontal(),m=y.inverse,x=i.shape,_=m?v?x.x:x.y+x.height:v?x.x+x.width:x.y,b=(v?g:0)*(m?-1:1),w=(v?0:-g)*(m?-1:1),S=v?"x":"y",M=function(k,O,N){for(var B,z,U=k.length/2,Z=N==="x"?0:1,F=0,W=-1,K=0;K<U;K++)if(z=k[2*K+Z],!isNaN(z)&&!isNaN(k[2*K+1-Z]))if(K!==0){if(B<=O&&z>=O||B>=O&&z<=O){W=K;break}F=K,B=z}else B=z;return{range:[F,W],t:(O-B)/(z-B)}}(c,_,S),T=M.range,I=T[1]-T[0],C=void 0;if(I>=1){if(I>1&&!d){var D=d_(c,T[0]);u.attr({x:D[0]+b,y:D[1]+w}),a&&(C=p.getRawValue(T[0]))}else{(D=h.getPointOn(_,S))&&u.attr({x:D[0]+b,y:D[1]+w});var L=p.getRawValue(T[0]),R=p.getRawValue(T[1]);a&&(C=zy(r,f,L,R,M.t))}o.lastFrameIndex=T[0]}else{var P=e===1||o.lastFrameIndex>0?T[0]:0;D=d_(c,P),a&&(C=p.getRawValue(P)),u.attr({x:D[0]+b,y:D[1]+w})}if(a){var E=ho(u);typeof E.setLabelText=="function"&&E.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,i,r,o,a,s,l){var u=this._polyline,h=this._polygon,c=e.hostModel,p=function(w,S,M,T,I,C,D,L){for(var R=function(vt,Ke){var ht=[];return Ke.diff(vt).add(function(Ye){ht.push({cmd:"+",idx:Ye})}).update(function(Ye,zt){ht.push({cmd:"=",idx:zt,idx1:Ye})}).remove(function(Ye){ht.push({cmd:"-",idx:Ye})}).execute(),ht}(w,S),P=[],E=[],k=[],O=[],N=[],B=[],z=[],U=i_(I,S,D),Z=w.getLayout("points")||[],F=S.getLayout("points")||[],W=0;W<R.length;W++){var K=R[W],se=!0,he=void 0,ie=void 0;switch(K.cmd){case"=":he=2*K.idx,ie=2*K.idx1;var q=Z[he],J=Z[he+1],H=F[ie],$=F[ie+1];(isNaN(q)||isNaN(J))&&(q=H,J=$),P.push(q,J),E.push(H,$),k.push(M[he],M[he+1]),O.push(T[ie],T[ie+1]),z.push(S.getRawIndex(K.idx1));break;case"+":var re=K.idx,Ce=U.dataDimsForPoint,ve=I.dataToPoint([S.get(Ce[0],re),S.get(Ce[1],re)]);ie=2*re,P.push(ve[0],ve[1]),E.push(F[ie],F[ie+1]);var _e=r_(U,I,S,re);k.push(_e[0],_e[1]),O.push(T[ie],T[ie+1]),z.push(S.getRawIndex(re));break;case"-":se=!1}se&&(N.push(K),B.push(B.length))}B.sort(function(vt,Ke){return z[vt]-z[Ke]});var be=P.length,Le=ci(be),Se=ci(be),Pe=ci(be),Ve=ci(be),qe=[];for(W=0;W<B.length;W++){var Fe=B[W],Ge=2*W,ce=2*Fe;Le[Ge]=P[ce],Le[Ge+1]=P[ce+1],Se[Ge]=E[ce],Se[Ge+1]=E[ce+1],Pe[Ge]=k[ce],Pe[Ge+1]=k[ce+1],Ve[Ge]=O[ce],Ve[Ge+1]=O[ce+1],qe[W]=N[Fe]}return{current:Le,next:Se,stackedOnCurrent:Pe,stackedOnNext:Ve,status:qe}}(this._data,e,this._stackedOnPoints,i,this._coordSys,0,this._valueOrigin),d=p.current,f=p.stackedOnCurrent,g=p.next,y=p.stackedOnNext;if(a&&(d=Ni(p.current,r,a,l),f=Ni(p.stackedOnCurrent,r,a,l),g=Ni(p.next,r,a,l),y=Ni(p.stackedOnNext,r,a,l)),c_(d,g)>3e3||h&&c_(f,y)>3e3)return u.stopAnimation(),u.setShape({points:g}),void(h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:y})));u.shape.__points=p.current,u.shape.points=d;var v={shape:{points:g}};p.current!==d&&(v.shape.__points=p.next),u.stopAnimation(),ze(u,v,c),h&&(h.setShape({points:d,stackedOnPoints:f}),h.stopAnimation(),ze(h,{shape:{stackedOnPoints:y}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var m=[],x=p.status,_=0;_<x.length;_++)if(x[_].cmd==="="){var b=e.getItemGraphicEl(x[_].idx1);b&&m.push({el:b,ptIdx:_})}u.animators&&u.animators.length&&u.animators[0].during(function(){h&&h.dirtyShape();for(var w=u.shape.__points,S=0;S<m.length;S++){var M=m[S].el,T=2*m[S].ptIdx;M.x=w[T],M.y=w[T+1],M.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(o,a){o.__temp&&(i.remove(o),r.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(at);const FA=VA;var GA={average:function(n){for(var t=0,e=0,i=0;i<n.length;i++)isNaN(n[i])||(t+=n[i],e++);return e===0?NaN:t/e},sum:function(n){for(var t=0,e=0;e<n.length;e++)t+=n[e]||0;return t},max:function(n){for(var t=-1/0,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e<n.length;e++)n[e]<t&&(t=n[e]);return isFinite(t)?t:NaN},minmax:function(n){for(var t=-1/0,e=-1/0,i=0;i<n.length;i++){var r=n[i],o=Math.abs(r);o>t&&(t=o,e=r)}return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},HA=function(n){return Math.round(n.length/2)};function g_(n){return{seriesType:n,reset:function(t,e,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),h=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(h[1]-h[0])*(c||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(r.lttbDownSample(r.mapDimension(u.dim),1/d));var f=void 0;j(o)?f=GA[o]:ae(o)&&(f=o),f&&t.setData(r.downSample(r.mapDimension(u.dim),1/d,f,HA))}}}}}var y_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.getInitialData=function(e,i){return _u(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(e),s=o.dataToPoint(a);if(r)A(o.getAxes(),function(p,d){if(p.type==="category"&&i!=null){var f=p.getTicksCoords(),g=p.getTickModel().get("alignWithLabel"),y=a[d],v=i[d]==="x1"||i[d]==="y1";if(v&&!g&&(y+=1),f.length<2)return;if(f.length===2)return void(s[d]=p.toGlobalCoord(p.getExtent()[v?1:0]));for(var m=void 0,x=void 0,_=1,b=0;b<f.length;b++){var w=f[b].coord,S=b===f.length-1?f[b-1].tickValue+_:f[b].tickValue;if(S===y){x=w;break}if(S<y)m=w;else if(m!=null&&S>y){x=(w+m)/2;break}b===1&&(_=S-f[0].tickValue)}x==null&&(m?m&&(x=f[f.length-1].coord):x=f[0].coord),s[d]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=o.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Mt);Mt.registerClass(y_);const zu=y_,WA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.getInitialData=function(){return _u(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,r){return r.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=xr(zu.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(zu);var YA=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},XA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="sausage",i}return V(t,n),t.prototype.getDefaultShape=function(){return new YA},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=.5*(s-a),u=a+l,h=i.startAngle,c=i.endAngle,p=i.clockwise,d=2*Math.PI,f=p?c-h<d:h-c<d;f||(h=c-(p?d:-d));var g=Math.cos(h),y=Math.sin(h),v=Math.cos(c),m=Math.sin(c);f?(e.moveTo(g*a+r,y*a+o),e.arc(g*u+r,y*u+o,l,-Math.PI+h,h,!p)):e.moveTo(g*s+r,y*s+o),e.arc(r,o,s,h,c,!p),e.arc(v*u+r,m*u+o,l,c-2*Math.PI,c-Math.PI,!p),a!==0&&e.arc(r,o,a,c,h,p)},t}(De);const Bu=XA;function Vu(n,t,e){return t*Math.sin(n)*(e?-1:1)}function Fu(n,t,e){return t*Math.cos(n)*(e?1:-1)}function is(n,t,e){var i=n.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;Y(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(i,function(o){return Ln(o,r)})}}var Ed=Math.max,Nd=Math.min,UA=function(n){function t(){var e=n.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return V(t,n),t.prototype.render=function(e,i,r,o){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var a=e.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,r):this._renderNormal(e,i,r,o)):Je("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){Dl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;this._isLargeDraw!=null&&i===this._isLargeDraw||(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,r,o){var a,s=this.group,l=e.getData(),u=this._data,h=e.coordinateSystem,c=h.getBaseAxis();h.type==="cartesian2d"?a=c.isHorizontal():h.type==="polar"&&(a=c.dim==="angle");var p=e.isAnimationEnabled()?e:null,d=function(C,D){var L=C.get("realtimeSort",!0),R=D.getBaseAxis();if(L&&(R.type!=="category"&&Je("`realtimeSort` will not work because this bar series is not based on a category axis."),D.type!=="cartesian2d"&&Je("`realtimeSort` will not work because this bar series is not on cartesian2d.")),L&&R.type==="category"&&D.type==="cartesian2d")return{baseAxis:R,otherAxis:D.getOtherAxis(R)}}(e,h);d&&this._enableRealtimeSort(d,l,r);var f=e.get("clip",!0)||d,g=function(C,D){var L=C.getArea&&C.getArea();if(Od(C,"cartesian2d")){var R=C.getBaseAxis();if(R.type!=="category"||!R.onBand){var P=D.getLayout("bandWidth");R.isHorizontal()?(L.x-=P,L.width+=2*P):(L.y-=P,L.height+=2*P)}}return L}(h,l);s.removeClipPath();var y=e.get("roundCap",!0),v=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),x=m.get("borderRadius")||0,_=[],b=this._backgroundEls,w=o&&o.isInitSort,S=o&&o.type==="changeAxisOrder";function M(C){var D=Gu[h.type](l,C),L=function(R,P,E){var k=R.type==="polar"?nn:Ie;return new k({shape:C_(P,E,R),silent:!0,z2:0})}(h,a,D);return L.useStyle(m.getItemStyle()),h.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[C]=L,L}l.diff(u).add(function(C){var D=l.getItemModel(C),L=Gu[h.type](l,C,D);if(v&&M(C),l.hasValue(C)&&w_[h.type](L)){var R=!1;f&&(R=v_[h.type](g,L));var P=m_[h.type](e,l,C,L,a,p,c.model,!1,y);d&&(P.forceLabelAnimation=!0),S_(P,l,C,D,L,e,a,h.type==="polar"),w?P.attr({shape:L}):d?x_(d,p,P,L,C,a,!1,!1):et(P,{shape:L},e,C),l.setItemGraphicEl(C,P),s.add(P),P.ignore=R}}).update(function(C,D){var L=l.getItemModel(C),R=Gu[h.type](l,C,L);if(v){var P=void 0;b.length===0?P=M(D):((P=b[D]).useStyle(m.getItemStyle()),h.type==="cartesian2d"?P.setShape("r",x):P.setShape("cornerRadius",x),_[C]=P);var E=Gu[h.type](l,C);ze(P,{shape:C_(a,E,h)},p,C)}var k=u.getItemGraphicEl(D);if(l.hasValue(C)&&w_[h.type](R)){var O=!1;if(f&&(O=v_[h.type](g,R))&&s.remove(k),k?ba(k):k=m_[h.type](e,l,C,R,a,p,c.model,!!k,y),d&&(k.forceLabelAnimation=!0),S){var N=k.getTextContent();if(N){var B=ho(N);B.prevValue!=null&&(B.prevValue=B.value)}}else S_(k,l,C,L,R,e,a,h.type==="polar");w?k.attr({shape:R}):d?x_(d,p,k,R,C,a,!0,S):ze(k,{shape:R},e,C,null),l.setItemGraphicEl(C,k),k.ignore=O,s.add(k)}else s.remove(k)}).remove(function(C){var D=u.getItemGraphicEl(C);D&&Sl(D,e,C)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new ge);T.removeAll();for(var I=0;I<_.length;++I)T.add(_[I]);s.add(T),this._backgroundEls=_,this._data=l},t.prototype._renderLarge=function(e,i,r){this._clear(),T_(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),T_(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&l_(e.coordinateSystem,!1,e),r=this.group;i?r.setClipPath(i):r.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,r){var o=this;if(i.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,r),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),h=u&&u.shape;return h&&Math.abs(a.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){o._updateSortWithinSameData(i,s,a,r)},r.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,r){var o=[];return e.each(e.mapDimension(i.dim),function(a,s){var l=r(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:X(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,r){for(var o=r.scale,a=e.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var h=e.rawIndexOf(a,o.getRawOrdinalNumber(l)),c=h<0?Number.MIN_VALUE:i(e.indexOfRawIndex(h));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,i,r,o){if(this._isOrderChangedWithinSameData(e,i,r)){var a=this._dataSort(e,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,i,r){var o=i.baseAxis,a=this._dataSort(e,o,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){Sl(o,e,ye(o).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(at),v_={cartesian2d:function(n,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=n.x+n.width,o=n.y+n.height,a=Ed(t.x,n.x),s=Nd(t.x+t.width,r),l=Ed(t.y,n.y),u=Nd(t.y+t.height,o),h=s<a,c=u<l;return t.x=h&&a>r?s:a,t.y=c&&l>o?u:l,t.width=h?0:s-a,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),h||c},polar:function(n,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var r=Nd(t.r,n.r),o=Ed(t.r0,n.r0);t.r=r,t.r0=o;var a=r-o<0;return e<0&&(i=t.r,t.r=t.r0,t.r0=i),a}},m_={cartesian2d:function(n,t,e,i,r,o,a,s,l){var u=new Ie({shape:G({},i),z2:1});return u.__dataIndex=e,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(n,t,e,i,r,o,a,s,l){var u=!r&&l?Bu:nn,h=new u({shape:i,z2:1});h.name="item";var c,p,d=b_(r);if(h.calculateTextPosition=(c=d,p=u===Bu,function(y,v,m){var x=v.position;if(!x||x instanceof Array)return js(y,v,m);var _=c(x),b=v.distance!=null?v.distance:5,w=this.shape,S=w.cx,M=w.cy,T=w.r,I=w.r0,C=(T+I)/2,D=w.startAngle,L=w.endAngle,R=(D+L)/2,P=p?Math.abs(T-I)/2:0,E=Math.cos,k=Math.sin,O=S+T*E(D),N=M+T*k(D),B="left",z="top";switch(_){case"startArc":O=S+(I-b)*E(R),N=M+(I-b)*k(R),B="center",z="top";break;case"insideStartArc":O=S+(I+b)*E(R),N=M+(I+b)*k(R),B="center",z="bottom";break;case"startAngle":O=S+C*E(D)+Vu(D,b+P,!1),N=M+C*k(D)+Fu(D,b+P,!1),B="right",z="middle";break;case"insideStartAngle":O=S+C*E(D)+Vu(D,-b+P,!1),N=M+C*k(D)+Fu(D,-b+P,!1),B="left",z="middle";break;case"middle":O=S+C*E(R),N=M+C*k(R),B="center",z="middle";break;case"endArc":O=S+(T+b)*E(R),N=M+(T+b)*k(R),B="center",z="bottom";break;case"insideEndArc":O=S+(T-b)*E(R),N=M+(T-b)*k(R),B="center",z="top";break;case"endAngle":O=S+C*E(L)+Vu(L,b+P,!0),N=M+C*k(L)+Fu(L,b+P,!0),B="left",z="middle";break;case"insideEndAngle":O=S+C*E(L)+Vu(L,-b+P,!0),N=M+C*k(L)+Fu(L,-b+P,!0),B="right",z="middle";break;default:return js(y,v,m)}return(y=y||{}).x=O,y.y=N,y.align=B,y.verticalAlign=z,y}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?ze:et)(h,{shape:g},o)}return h}};function x_(n,t,e,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?ze:et)(e,{shape:l},t,r,null),(a?ze:et)(e,{shape:u},t?n.baseAxis.model:null,r)}function __(n,t){for(var e=0;e<t.length;e++)if(!isFinite(n[t[e]]))return!0;return!1}var ZA=["x","y","width","height"],jA=["cx","cy","r","startAngle","endAngle"],w_={cartesian2d:function(n){return!__(n,ZA)},polar:function(n){return!__(n,jA)}},Gu={cartesian2d:function(n,t,e){var i=n.getItemLayout(t),r=e?function(s,l){var u=s.get(["itemStyle","borderColor"]);if(!u||u==="none")return 0;var h=s.get(["itemStyle","borderWidth"])||0,c=isNaN(l.width)?Number.MAX_VALUE:Math.abs(l.width),p=isNaN(l.height)?Number.MAX_VALUE:Math.abs(l.height);return Math.min(h,c,p)}(e,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(n,t,e){var i=n.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function b_(n){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(n)}function S_(n,t,e,i,r,o,a,s){var l=t.getItemVisual(e,"style");if(s){if(!o.get("roundCap")){var u=n.shape;G(u,is(i.getModel("itemStyle"),u,!0)),n.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var c=i.getShallow("cursor");c&&n.attr("cursor",c);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=si(i);ai(n,d,{labelFetcher:o,labelDataIndex:e,defaultText:Eu(o.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=n.getTextContent();if(s&&f){var g=i.get(["label","position"]);n.textConfig.inside=g==="middle"||null,function(v,m,x,_){if(Re(_))v.setTextConfig({rotation:_});else if(Y(m))v.setTextConfig({rotation:0});else{var b,w=v.shape,S=w.clockwise?w.startAngle:w.endAngle,M=w.clockwise?w.endAngle:w.startAngle,T=(S+M)/2,I=x(m);switch(I){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":b=T;break;case"startAngle":case"insideStartAngle":b=S;break;case"endAngle":case"insideEndAngle":b=M;break;default:return void v.setTextConfig({rotation:0})}var C=1.5*Math.PI-b;I==="middle"&&C>Math.PI/2&&C<1.5*Math.PI&&(C-=Math.PI),v.setTextConfig({rotation:C})}}(n,g==="outside"?p:g,b_(a),i.get(["label","rotate"]))}vm(f,d,o.getRawValue(e),function(v){return e_(t,v)});var y=i.getModel(["emphasis"]);zn(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),ri(n,i),function(v){return v.startAngle!=null&&v.endAngle!=null&&v.startAngle===v.endAngle}(r)&&(n.style.fill="none",n.style.stroke="none",A(n.states,function(v){v.style&&(v.style.fill=v.style.stroke="none")}))}var qA=function(){},M_=function(n){function t(e){var i=n.call(this,e)||this;return i.type="largeBar",i}return V(t,n),t.prototype.getDefaultShape=function(){return new qA},t.prototype.buildPath=function(e,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h<r.length;h+=3)l[o]=u,l[a]=r[h+2],s[o]=r[h+o],s[a]=r[h+a],e.rect(s[0],s[1],l[0],l[1])},t}(De);function T_(n,t,e,i){var r=n.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=n.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var h=new M_({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),t.add(h),e&&e.push(h)}var c=new M_({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,t.add(c),c.useStyle(r.getVisual("style")),ye(c).seriesIndex=n.seriesIndex,n.get("silent")||(c.on("mousedown",I_),c.on("mousemove",I_)),e&&e.push(c)}var I_=Kl(function(n){var t=function(e,i,r){for(var o=e.baseDimIdx,a=1-o,s=e.shape.points,l=e.largeDataIndices,u=[],h=[],c=e.barWidth,p=0,d=s.length/3;p<d;p++){var f=3*p;if(h[o]=c,h[a]=s[f+2],u[o]=s[f+o],u[a]=s[f+a],h[a]<0&&(u[a]+=h[a],h[a]=-h[a]),i>=u[0]&&i<=u[0]+h[0]&&r>=u[1]&&r<=u[1]+h[1])return l[p]}return-1}(this,n.offsetX,n.offsetY);ye(this).dataIndex=t>=0?t:null},30,!1);function C_(n,t,e){if(Od(e,"cartesian2d")){var i=t,r=e.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}var o=t;return{cx:(r=e.getArea()).cx,cy:r.cy,r0:n?r.r0:o.r0,r:n?r.r:o.r,startAngle:n?o.startAngle:0,endAngle:n?o.endAngle:2*Math.PI}}const KA=UA;var A_=2*Math.PI,Hu=Math.PI/180;function D_(n,t){return St(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k_(n,t){var e=D_(n,t),i=n.get("center"),r=n.get("radius");Y(r)||(r=[0,r]);var o,a,s=ne(e.width,t.getWidth()),l=ne(e.height,t.getHeight()),u=Math.min(s,l),h=ne(r[0],u/2),c=ne(r[1],u/2),p=n.coordinateSystem;if(p){var d=p.dataToPoint(i);o=d[0]||0,a=d[1]||0}else Y(i)||(i=[i,i]),o=ne(i[0],s)+e.x,a=ne(i[1],l)+e.y;return{cx:o,cy:a,r0:h,r:c}}function JA(n,t,e){t.eachSeriesByType(n,function(i){var r=i.getData(),o=r.mapDimension("value"),a=D_(i,e),s=k_(i,e),l=s.cx,u=s.cy,h=s.r,c=s.r0,p=-i.get("startAngle")*Hu,d=i.get("endAngle"),f=i.get("padAngle")*Hu;d=d==="auto"?p-A_:-d*Hu;var g=i.get("minAngle")*Hu+f,y=0;r.each(o,function(P){!isNaN(P)&&y++});var v=r.getSum(o),m=Math.PI/(v||y)*2,x=i.get("clockwise"),_=i.get("roseType"),b=i.get("stillShowZeroSum"),w=r.getDataExtent(o);w[0]=0;var S=x?1:-1,M=[p,d],T=S*f/2;Oc(M,!x),p=M[0],d=M[1];var I=Math.abs(d-p),C=I,D=0,L=p;if(r.setLayout({viewRect:a,r:h}),r.each(o,function(P,E){var k;if(isNaN(P))r.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:c,r:_?NaN:h});else{(k=_!=="area"?v===0&&b?m:P*m:I/y)<g?(k=g,C-=g):D+=P;var O=L+S*k,N=0,B=0;f>k?B=N=L+S*k/2:(N=L+T,B=O-T),r.setItemLayout(E,{angle:k,startAngle:N,endAngle:B,clockwise:x,cx:l,cy:u,r0:c,r:_?Ae(P,w,[c,h]):h}),L=O}}),C<A_&&y)if(C<=.001){var R=I/y;r.each(o,function(P,E){if(!isNaN(P)){var k=r.getItemLayout(E);k.angle=R;var O=0,N=0;R<f?N=O=p+S*(E+.5)*R:(O=p+S*E*R+T,N=p+S*(E+1)*R-T),k.startAngle=O,k.endAngle=N}})}else m=C/D,L=p,r.each(o,function(P,E){if(!isNaN(P)){var k=r.getItemLayout(E),O=k.angle===g?g:P*m,N=0,B=0;O<f?B=N=L+S*O/2:(N=L+T,B=L+S*O-T),k.startAngle=N,k.endAngle=B,L+=S*O}})})}function L_(n){return{seriesType:n,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var r=t.getData();r.filterSelf(function(o){for(var a=r.getName(o),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var $A=Math.PI/180;function P_(n,t,e,i,r,o,a,s,l,u){if(!(n.length<2)){for(var h=n.length,c=0;c<h;c++)if(n[c].position==="outer"&&n[c].labelAlignTo==="labelLine"){var p=n[c].label.x-u;n[c].linePoints[1][0]+=p,n[c].label.x=u}J1(n,l,l+a)&&function(f){for(var g={list:[],maxY:0},y={list:[],maxY:0},v=0;v<f.length;v++)if(f[v].labelAlignTo==="none"){var m=f[v],x=m.label.y>e?y:g,_=Math.abs(m.label.y-e);if(_>=x.maxY){var b=m.label.x-t-m.len2*r,w=i+m.len,S=Math.abs(b)<w?Math.sqrt(_*_/(1-b*b/w/w)):w;x.rB=S,x.maxY=_}x.list.push(m)}d(g),d(y)}(n)}function d(f){for(var g=f.rB,y=g*g,v=0;v<f.list.length;v++){var m=f.list[v],x=Math.abs(m.label.y-e),_=i+m.len,b=_*_,w=Math.sqrt((1-Math.abs(x*x/y))*b),S=t+(w+m.len2)*r,M=S-m.label.x;O_(m,m.targetTextWidth-M*r,!0),m.label.x=S}}}function O_(n,t,e){if(e===void 0&&(e=!1),n.labelStyleWidth==null){var i=n.label,r=i.style,o=n.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,h=o.width+(a?0:l);if(t<h||e){var c=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=t-l,f=t<h?d:e?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function zd(n){return n.position==="center"}function QA(n){var t,e,i=n.getData(),r=[],o=!1,a=(n.get("minShowLabelAngle")||0)*$A,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(b){b.ignore=!0}i.each(function(b){var w=i.getItemGraphicEl(b),S=w.shape,M=w.getTextContent(),T=w.getTextGuideLine(),I=i.getItemModel(b),C=I.getModel("label"),D=C.get("position")||I.get(["emphasis","label","position"]),L=C.get("distanceToLabelLine"),R=C.get("alignTo"),P=ne(C.get("edgeDistance"),u),E=C.get("bleedMargin"),k=I.getModel("labelLine"),O=k.get("length");O=ne(O,u);var N=k.get("length2");if(N=ne(N,u),Math.abs(S.endAngle-S.startAngle)<a)return A(M.states,d),M.ignore=!0,void(T&&(A(T.states,d),T.ignore=!0));if(function(Se){if(!Se.ignore)return!0;for(var Pe in Se.states)if(Se.states[Pe].ignore===!1)return!0;return!1}(M)){var B,z,U,Z,F=(S.startAngle+S.endAngle)/2,W=Math.cos(F),K=Math.sin(F);t=S.cx,e=S.cy;var se=D==="inside"||D==="inner";if(D==="center")B=S.cx,z=S.cy,Z="center";else{var he=(se?(S.r+S.r0)/2*W:S.r*W)+t,ie=(se?(S.r+S.r0)/2*K:S.r*K)+e;if(B=he+3*W,z=ie+3*K,!se){var q=he+W*(O+l-S.r),J=ie+K*(O+l-S.r),H=q+(W<0?-1:1)*N;B=R==="edge"?W<0?h+P:h+u-P:H+(W<0?-L:L),z=J,U=[[he,ie],[q,J],[H,J]]}Z=se?"center":R==="edge"?W>0?"right":"left":W>0?"left":"right"}var $=Math.PI,re=0,Ce=C.get("rotate");if(Re(Ce))re=Ce*($/180);else if(D==="center")re=0;else if(Ce==="radial"||Ce===!0)re=W<0?-F+$:-F;else if(Ce==="tangential"&&D!=="outside"&&D!=="outer"){var ve=Math.atan2(W,K);ve<0&&(ve=2*$+ve),K>0&&(ve=$+ve),re=ve-$}if(o=!!re,M.x=B,M.y=z,M.rotation=re,M.setStyle({verticalAlign:"middle"}),se){M.setStyle({align:Z});var _e=M.states.select;_e&&(_e.x+=M.x,_e.y+=M.y)}else{var be=M.getBoundingRect().clone();be.applyTransform(M.getComputedTransform());var Le=(M.style.margin||0)+2.1;be.y-=Le/2,be.height+=Le,r.push({label:M,labelLine:T,position:D,len:O,len2:N,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new de(W,K),linePoints:U,textAlign:Z,labelDistance:L,labelAlignTo:R,edgeDistance:P,bleedMargin:E,rect:be,unconstrainedWidth:be.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:se})}}),!o&&n.get("avoidLabelOverlap")&&function(b,w,S,M,T,I,C,D){for(var L=[],R=[],P=Number.MAX_VALUE,E=-Number.MAX_VALUE,k=0;k<b.length;k++){var O=b[k].label;zd(b[k])||(O.x<w?(P=Math.min(P,O.x),L.push(b[k])):(E=Math.max(E,O.x),R.push(b[k])))}for(k=0;k<b.length;k++)if(!zd(z=b[k])&&z.linePoints){if(z.labelStyleWidth!=null)continue;O=z.label;var N=z.linePoints,B=void 0;B=z.labelAlignTo==="edge"?O.x<w?N[2][0]-z.labelDistance-C-z.edgeDistance:C+T-z.edgeDistance-N[2][0]-z.labelDistance:z.labelAlignTo==="labelLine"?O.x<w?P-C-z.bleedMargin:C+T-E-z.bleedMargin:O.x<w?O.x-C-z.bleedMargin:C+T-O.x-z.bleedMargin,z.targetTextWidth=B,O_(z,B)}for(P_(R,w,S,M,1,0,I,0,D,E),P_(L,w,S,M,-1,0,I,0,D,P),k=0;k<b.length;k++){var z;if(!zd(z=b[k])&&z.linePoints){O=z.label,N=z.linePoints;var U=z.labelAlignTo==="edge",Z=O.style.padding,F=Z?Z[1]+Z[3]:0,W=O.style.backgroundColor?0:F,K=z.rect.width+W,se=N[1][0]-N[2][0];U?O.x<w?N[2][0]=C+z.edgeDistance+K+z.labelDistance:N[2][0]=C+T-z.edgeDistance-K-z.labelDistance:(O.x<w?N[2][0]=O.x+z.labelDistance:N[2][0]=O.x-z.labelDistance,N[1][0]=N[2][0]+se),N[1][1]=N[2][1]=O.y}}}(r,t,e,l,u,p,h,c);for(var f=0;f<r.length;f++){var g=r[f],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(A(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(v){var _=g.linePoints;m||!_?(A(v.states,d),v.ignore=!0):(U1(_,g.minTurnAngle),bA(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new de(_[0][0],_[0][1])})}}}var eD=function(n){function t(e,i,r){var o=n.call(this)||this;o.z2=2;var a=new ke;return o.setTextContent(a),o.updateData(e,i,r,!0),o}return V(t,n),t.prototype.updateData=function(e,i,r,o){var a=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),h=e.getItemLayout(i),c=G(is(l.getModel("itemStyle"),h,!0),h);if(isNaN(c.startAngle))a.setShape(c);else{if(o){a.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(et(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=c.cx,a.originY=c.cy):p==="scale"?(a.shape.r=h.r0,et(a,{shape:{r:h.r}},s,i)):r!=null?(a.setShape({startAngle:r,endAngle:r}),et(a,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},s,i)):(a.shape.endAngle=h.startAngle,ze(a,{shape:{endAngle:h.endAngle}},s,i))}else ba(a),ze(a,{shape:c},s,i);a.useStyle(e.getItemVisual(i,"style")),ri(a,l);var d=(h.startAngle+h.endAngle)/2,f=s.get("selectedOffset"),g=Math.cos(d)*f,y=Math.sin(d)*f,v=l.getShallow("cursor");v&&a.attr("cursor",v),this._updateLabel(s,e,i),a.ensureState("emphasis").shape=G({r:h.r+(u.get("scale")&&u.get("scaleSize")||0)},is(u.getModel("itemStyle"),h)),G(a.ensureState("select"),{x:g,y,shape:is(l.getModel(["select","itemStyle"]),h)}),G(a.ensureState("blur"),{shape:is(l.getModel(["blur","itemStyle"]),h)});var m=a.getTextGuideLine(),x=a.getTextContent();m&&G(m.ensureState("select"),{x:g,y}),G(x.ensureState("select"),{x:g,y}),zn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},t.prototype._updateLabel=function(e,i,r){var o=this,a=i.getItemModel(r),s=a.getModel("labelLine"),l=i.getItemVisual(r,"style"),u=l&&l.fill,h=l&&l.opacity;ai(o,si(a),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:u,defaultOpacity:h,defaultText:e.getFormattedLabel(r,"normal")||i.getName(r)});var c=o.getTextContent();o.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=e.get(["label","position"]);if(p!=="outside"&&p!=="outer")o.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new _n,this.setTextGuideLine(d)),Z1(this,j1(a),{stroke:u,opacity:mi(s.get(["lineStyle","opacity"]),h,1)})}},t}(nn);const tD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return V(t,n),t.prototype.render=function(e,i,r,o){var a,s=e.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var h=s.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c<s.count();++c)h=s.getItemLayout(c);h&&(a=h.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),s.count()===0&&e.get("showEmptyCircle")){var p=new nn({shape:k_(e,r)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,u.add(p)}s.diff(l).add(function(d){var f=new eD(s,d,a);s.setItemGraphicEl(d,f),u.add(f)}).update(function(d,f){var g=l.getItemGraphicEl(f);g.updateData(s,d,a),g.off("click"),u.add(g),s.setItemGraphicEl(d,g)}).remove(function(d){Sl(l.getItemGraphicEl(d),e,d)}).execute(),QA(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=s)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var r=i.getData().getItemLayout(0);if(r){var o=e[0]-r.cx,a=e[1]-r.cy,s=Math.sqrt(o*o+a*a);return s<=r.r&&s>=r.r0}},t.type="pie",t}(at);function Wu(n,t,e){t=Y(t)&&{coordDimensions:t}||G({encodeDefine:n.getEncode()},t);var i=n.getSource(),r=xu(i,t).dimensions,o=new Ja(r,n);return o.initData(i,e),o}var nD=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n}();const R_=nD;var iD=Ne();const rD=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new R_(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Wu(this,{coordDimensions:["value"],encodeDefaulter:xe(Gm,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),r=iD(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=Sy(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Qs(e,"labelLine",["show"]);var i=e.labelLine,r=e.emphasis.labelLine;i.show=i.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Mt),oD=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Te);var Bd=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",nt).models[0]},t.type="cartesian2dAxis",t}(Te);ct(Bd,es);var E_={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)"]}}},aD=pe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E_),Vd=pe({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}}},E_);const N_={category:aD,value:Vd,time:pe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vd),log:le({logBase:10},Vd)};var sD={value:1,category:1,time:1,log:1};function rs(n,t,e,i){A(sD,function(r,o){var a=pe(pe({},N_[o],!0),i,!0),s=function(l){function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=t+"Axis."+o,h}return V(u,l),u.prototype.mergeDefaultAndTheme=function(h,c){var p=La(this),d=p?Pa(h):{};pe(h,c.getTheme().get(o+"Axis")),pe(h,this.getDefaultOption()),h.type=z_(h),p&&yo(h,d,p)},u.prototype.optionUpdated=function(){this.option.type==="category"&&(this.__ordinalMeta=md.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",z_)}function z_(n){return n.type||(n.data?"category":"value")}var lD=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),We(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}(),Fd=["x","y"];function B_(n){return n.type==="interval"||n.type==="time"}var uD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Fd,e}return V(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(B_(e)&&B_(i)){var r=e.getExtent(),o=i.getExtent(),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],u=o[1]-o[0];if(l&&u){var h=(s[0]-a[0])/l,c=(s[1]-a[1])/u,p=a[0]-r[0]*h,d=a[1]-o[0]*c,f=this._transform=[h,0,0,c,p,d];this._invTransform=ji([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var r=this.dataToPoint(e),o=this.dataToPoint(i),a=this.getArea(),s=new me(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,i,r){r=r||[];var o=e[0],a=e[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return ot(r,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(e,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(e[0]),u=o.parse(e[1]);return(i=i||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var r=[];if(this._invTransform)return ot(r,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(e[0]),i),r[1]=a.coordToData(a.toLocalCoord(e[1]),i),r},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-e,a=Math.min(r[0],r[1])-e,s=Math.max(i[0],i[1])-o+e,l=Math.max(r[0],r[1])-a+e;return new me(o,a,s,l)},t}(lD),hD=function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return V(t,n),t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Yn);const cD=hD;function Gd(n,t,e){e=e||{};var i=n.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,f=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=[u==="y"?f[p[l]]:c[0],u==="x"?f[p[l]]:c[3]],o.rotation=Math.PI/2*(u==="x"?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Yt(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function V_(n){return n.get("coordinateSystem")==="cartesian2d"}function F_(n){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,i){var r=i.replace(/Model$/,""),o=n.getReferringComponents(r,nt).models[0];if(!o)throw new Error(r+' "'+mi(n.get(r+"Index"),n.get(r+"Id"),0)+'" not found');t[i]=o}),t}var Hd=Math.log;function G_(n,t,e){var i=Cr.prototype,r=i.getTicks.call(e),o=i.getTicks.call(e,!0),a=r.length-1,s=i.getInterval.call(e),l=b1(n,t),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var p=Hd(n.base);u=[Hd(u[0])/p,Hd(u[1])/p]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(n);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(n),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=_d(f),y=u[0]+f*a;else if(c)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=_d(f),g=u[1]-f*a;else{n.getTicks().length-1>a&&(f=_d(f));var v=f*a;(g=Xe((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Xe(v)):y>0&&u[1]<=0&&(y=0,g=-Xe(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(n,g+f*m,y+f*x),i.setInterval.call(n,f),(m||x)&&i.setNiceExtent.call(n,g+f,y-f);var _,b,w,S=i.getTicks.call(n);S[1]&&(_=f,b=Math.pow(10,aa(Math.abs(_))),(w=Math.abs(_/b))!==0&&w!==1&&w!==2&&w!==3&&w!==5||qs(S[1].value)>qs(f))&&Je("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}var pD=function(){function n(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fd,this._initCartesian(t,e,i),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var i=this._axesMap;function r(a){var s,l=Oe(a),u=l.length;if(u){for(var h=[],c=u-1;c>=0;c--){var p=a[+l[c]],d=p.model,f=p.scale;xd(f)&&d.get("alignTicks")&&d.get("interval")==null?h.push(p):(Ao(f,d),xd(f)&&(s=p))}h.length&&(s||Ao((s=h.pop()).scale,s.model),A(h,function(g){G_(g.scale,g.model,s.scale)}))}}this._updateScale(t,this.model),r(i.x),r(i.y);var o={};A(i.x,function(a){H_(i,"y",a,o)}),A(i.y,function(a){H_(i,"x",a,o)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,i){var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=St(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;function l(){A(s,function(u){var h=u.isHorizontal(),c=h?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(c[p],c[1-p]),function(d,f){var g=d.getExtent(),y=g[0]+g[1];d.toGlobalCoord=d.dim==="x"?function(v){return v+f}:function(v){return y-v+f},d.toLocalCoord=d.dim==="x"?function(v){return v-f}:function(v){return y-v+f}}(u,h?a.x:a.y)})}l(),o&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=function(d){var f=d.model,g=d.scale;if(f.get(["axisLabel","show"])&&!g.isBlank()){var y,v,m=g.getExtent();v=g instanceof l1?g.count():(y=g.getTicks()).length;var x,_=d.getLabelModel(),b=Qa(d),w=1;v>40&&(w=Math.ceil(v/40));for(var S=0;S<v;S+=w){var M=b(y?y[S]:{value:m[0]+S},S),T=nA(_.getTextRect(M),_.get("rotate")||0);x?x.union(T):x=T}return x}}(u);if(h){var c=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[c]-=h[c]+p,u.position==="top"?a.y+=h.height+p:u.position==="left"&&(a.x+=h.width+p)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()})},n.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}ee(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===e)return o[r]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(t){var e,i,r=t.seriesModel,o=t.xAxisModel||r&&r.getReferringComponents("xAxis",nt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",nt).models[0],s=t.gridModel,l=this._coordsList;return r?Me(l,e=r.coordinateSystem)<0&&(e=null):o&&a?e=this.getCartesian(o.componentIndex,a.componentIndex):o?i=this.getAxis("x",o.componentIndex):a?i=this.getAxis("y",a.componentIndex):s&&s.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},n.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},n.prototype._initCartesian=function(t,e,i){var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(h){return function(c,p){if(Wd(c,t)){var d=c.get("position");h==="x"?d!=="top"&&d!=="bottom"&&(d=a.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=a.left?"right":"left"),a[d]=!0;var f=new cD(h,Au(c),[0,0],c.get("type"),d),g=f.type==="category";f.onBand=g&&c.get("boundaryGap"),f.inverse=c.get("inverse"),c.axis=f,f.model=c,f.grid=o,f.index=p,o._axesList.push(f),s[h][p]=f,l[h]++}}}this._axesMap=s,A(s.x,function(h,c){A(s.y,function(p,d){var f="x"+c+"y"+d,g=new uD(f);g.master=r,g.model=t,r._coordsMap[f]=g,r._coordsList.push(g),g.addAxis(h),g.addAxis(p)})})},n.prototype._updateScale=function(t,e){function i(r,o){A(Du(r,o.dim),function(a){o.scale.unionExtentFromData(r,a)})}A(this._axesList,function(r){if(r.scale.setExtent(1/0,-1/0),r.type==="category"){var o=r.model.get("categorySortInfo");r.scale.setSortInfo(o)}}),t.eachSeries(function(r){if(V_(r)){var o=F_(r),a=o.xAxisModel,s=o.yAxisModel;if(!Wd(a,e)||!Wd(s,e))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=r.getData(),h=l.getAxis("x"),c=l.getAxis("y");i(u,h),i(u,c)}},this)},n.prototype.getTooltipAxes=function(t){var e=[],i=[];return A(this.getCartesians(),function(r){var o=t!=null&&t!=="auto"?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(o);Me(e,o)<0&&e.push(o),Me(i,a)<0&&i.push(a)}),{baseAxes:e,otherAxes:i}},n.create=function(t,e){var i=[];return t.eachComponent("grid",function(r,o){var a=new n(r,t,e);a.name="grid_"+o,a.resize(r,e,!0),r.coordinateSystem=a,i.push(a)}),t.eachSeries(function(r){if(V_(r)){var o=F_(r),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel();if(!l)throw new Error('Grid "'+mi(a.get("gridIndex"),a.get("gridId"),0)+'" not found');if(a.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid");var u=l.coordinateSystem;r.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),i},n.dimensions=Fd,n}();function Wd(n,t){return n.getCoordSysModel()===t}function H_(n,t,e,i){e.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=n[t],a=e.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(l!=null)W_(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&W_(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(c){return c.dim+"_"+c.index}}function W_(n){return n&&n.type!=="category"&&n.type!=="time"&&function(t){var e=t.scale.getExtent(),i=e[0],r=e[1];return!(i>0&&r>0||i<0&&r<0)}(n)}const dD=pD;var zi=Math.PI,kr=function(){function n(t,e){this.group=new ge,this.opt=e,this.axisModel=t,le(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new ge({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(t){return!!Y_[t]},n.prototype.add=function(t){Y_[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,i){var r,o,a=fc(e-t);return oa(a)?(o=i>0?"top":"bottom",r="center"):oa(a-zi)?(o=i>0?"bottom":"top",r="center"):(o="middle",r=a>0&&a<zi?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:o}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),Y_={axisLine:function(n,t,e,i){var r=t.get(["axisLine","show"]);if(r==="auto"&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ot(s,s,a),ot(l,l,a));var h=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new wt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Sa(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);j(p)&&(p=[p,p]),(j(d)||Re(d))&&(d=[d,d]);var f=Yp(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];A([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,m){if(p[m]!=="none"&&p[m]!=null){var x=ut(p[m],-g/2,-y/2,g,y,h.stroke,!0),_=v.r+v.offset,b=u?l:s;x.attr({rotation:v.rotate,x:b[0]+_*Math.cos(n.rotation),y:b[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),e.add(x)}})}}},axisTickLabel:function(n,t,e,i){var r=function(a,s,l,u){var h=l.axis,c=l.getModel("axisTick"),p=c.get("show");if(p==="auto"&&u.handleAutoShown&&(p=u.handleAutoShown("axisTick")),!(!p||h.scale.isBlank())){for(var d=c.getModel("lineStyle"),f=u.tickDirection*c.get("length"),g=Z_(h.getTicksCoords(),s.transform,f,le(d.getLineStyle(),{stroke:l.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;y<g.length;y++)a.add(g[y]);return g}}(e,i,t,n),o=function(a,s,l,u){var h=l.axis,c=Yt(u.axisLabelShow,l.get(["axisLabel","show"]));if(!(!c||h.scale.isBlank())){var p=l.getModel("axisLabel"),d=p.get("margin"),f=h.getViewLabels(),g=(Yt(u.labelRotate,p.get("rotate"))||0)*zi/180,y=kr.innerTextLayout(u.rotation,g,u.labelDirection),v=l.getCategories&&l.getCategories(!0),m=[],x=kr.isLabelSilent(l),_=l.get("triggerEvent");return A(f,function(b,w){var S=h.scale.type==="ordinal"?h.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,M=b.formattedLabel,T=b.rawLabel,I=p;if(v&&v[S]){var C=v[S];ee(C)&&C.textStyle&&(I=new He(C.textStyle,p,l.ecModel))}var D=I.getTextColor()||l.get(["axisLine","lineStyle","color"]),L=h.dataToCoord(S),R=I.getShallow("align",!0)||y.textAlign,P=fe(I.getShallow("alignMinLabel",!0),R),E=fe(I.getShallow("alignMaxLabel",!0),R),k=I.getShallow("verticalAlign",!0)||I.getShallow("baseline",!0)||y.textVerticalAlign,O=fe(I.getShallow("verticalAlignMinLabel",!0),k),N=fe(I.getShallow("verticalAlignMaxLabel",!0),k),B=new ke({x:L,y:u.labelOffset+u.labelDirection*d,rotation:y.rotation,silent:x,z2:10+(b.level||0),style:it(I,{text:M,align:w===0?P:w===f.length-1?E:R,verticalAlign:w===0?O:w===f.length-1?N:k,fill:ae(D)?D(h.type==="category"?T:h.type==="value"?S+"":S,w):D})});if(B.anid="label_"+S,_){var z=kr.makeAxisEventDataBase(l);z.targetType="axisLabel",z.value=T,z.tickIndex=w,h.type==="category"&&(z.dataIndex=S),ye(B).eventData=z}s.add(B),B.updateTransform(),m.push(B),a.add(B),B.decomposeTransform()}),m}}(e,i,t,n);(function(a,s,l){if(!S1(a.axis)){var u=a.get(["axisLabel","showMinLabel"]),h=a.get(["axisLabel","showMaxLabel"]);s=s||[],l=l||[];var c=s[0],p=s[1],d=s[s.length-1],f=s[s.length-2],g=l[0],y=l[1],v=l[l.length-1],m=l[l.length-2];u===!1?(cn(c),cn(g)):X_(c,p)&&(u?(cn(p),cn(y)):(cn(c),cn(g))),h===!1?(cn(d),cn(v)):X_(f,d)&&(h?(cn(f),cn(m)):(cn(d),cn(v)))}})(t,o,r),function(a,s,l,u){var h=l.axis,c=l.getModel("minorTick");if(!(!c.get("show")||h.scale.isBlank())){var p=h.getMinorTicksCoords();if(p.length)for(var d=c.getModel("lineStyle"),f=u*c.get("length"),g=le(d.getLineStyle(),le(l.getModel("axisTick").getLineStyle(),{stroke:l.get(["axisLine","lineStyle","color"])})),y=0;y<p.length;y++)for(var v=Z_(p[y],s.transform,f,g,"minorticks_"+y),m=0;m<v.length;m++)a.add(v[m])}}(e,i,t,n.tickDirection),t.get(["axisLabel","hideOverlap"])&&$1(q1(X(o,function(a){return{label:a,priority:a.z2,defaultAttr:{ignore:a.ignore}}})))},axisName:function(n,t,e,i){var r=Yt(n.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=n.nameDirection,u=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,c=t.axis.getExtent(),p=c[0]>c[1]?-1:1,d=[s==="start"?c[0]-p*h:s==="end"?c[1]+p*h:(c[0]+c[1])/2,U_(s)?n.labelOffset+l*h:0],f=t.get("nameRotate");f!=null&&(f=f*zi/180),U_(s)?o=kr.innerTextLayout(n.rotation,f??n.rotation,l):(o=function(b,w,S,M){var T,I,C=fc(S-b),D=M[0]>M[1],L=w==="start"&&!D||w!=="start"&&D;return oa(C-zi/2)?(I=L?"bottom":"top",T="center"):oa(C-1.5*zi)?(I=L?"top":"bottom",T="center"):(I="middle",T=C<1.5*zi&&C>zi/2?L?"left":"right":L?"right":"left"),{rotation:C,textAlign:T,textVerticalAlign:I}}(n.rotation,s,f||0,c),(a=n.axisNameAvailableWidth)!=null&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=t.get("nameTruncate",!0)||{},v=y.ellipsis,m=Yt(n.nameTruncateMaxWidth,y.maxWidth,a),x=new ke({x:d[0],y:d[1],rotation:o.rotation,silent:kr.isLabelSilent(t),style:it(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ta({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=kr.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,ye(x).eventData=_}i.add(x),x.updateTransform(),e.add(x),x.decomposeTransform()}}};function cn(n){n&&(n.ignore=!0)}function X_(n,t){var e=n&&n.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(e&&i){var r=Xo([]);return Zi(r,r,-n.rotation),e.applyTransform(Dn([],r,n.getLocalTransform())),i.applyTransform(Dn([],r,t.getLocalTransform())),e.intersect(i)}}function U_(n){return n==="middle"||n==="center"}function Z_(n,t,e,i,r){for(var o=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=e,t&&(ot(a,a,t),ot(s,s,t));var h=new wt({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Sa(h.shape,h.style.lineWidth),h.anid=r+"_"+n[l].tickValue,o.push(h)}return o}const Bi=kr;function fD(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(i,r,o){var a=r.getComponent("tooltip"),s=r.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];A(o.getCoordinateSystems(),function(h){if(h.axisPointerEnabled){var c=os(h.model),p=i.coordSysAxesInfo[c]={};i.coordSysMap[c]=h;var d=h.model.getModel("tooltip",a);if(A(h.getAxes(),xe(v,!1,null)),h.getTooltipAxes&&a&&d.get("show")){var f=d.get("trigger")==="axis",g=d.get(["axisPointer","type"])==="cross",y=h.getTooltipAxes(d.get(["axisPointer","axis"]));(f||g)&&A(y.baseAxes,xe(v,!g||"cross",f)),g&&A(y.otherAxes,xe(v,"cross",!1))}}function v(m,x,_){var b=_.model.getModel("axisPointer",s),w=b.get("show");if(w&&(w!=="auto"||m||Ud(b))){x==null&&(x=b.get("triggerTooltip")),b=m?function(R,P,E,k,O,N){var B=P.getModel("axisPointer"),z={};A(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(W){z[W]=oe(B.get(W))}),z.snap=R.type!=="category"&&!!N,B.get("type")==="cross"&&(z.type="line");var U=z.label||(z.label={});if(U.show==null&&(U.show=!1),O==="cross"){var Z=B.get(["label","show"]);if(U.show=Z==null||Z,!N){var F=z.lineStyle=B.get("crossStyle");F&&le(U,F.textStyle)}}return R.model.getModel("axisPointer",new He(z,E,k))}(_,d,s,r,m,x):b;var S=b.get("snap"),M=b.get("triggerEmphasis"),T=os(_.model),I=x||S||_.type==="category",C=i.axesInfo[T]={key:T,axis:_,coordSys:h,axisPointerModel:b,triggerTooltip:x,triggerEmphasis:M,involveSeries:I,snap:S,useHandle:Ud(b),seriesModels:[],linkGroup:null};p[T]=C,i.seriesInvolved=i.seriesInvolved||I;var D=function(R,P){for(var E=P.model,k=P.dim,O=0;O<R.length;O++){var N=R[O]||{};if(Yd(N[k+"AxisId"],E.id)||Yd(N[k+"AxisIndex"],E.componentIndex)||Yd(N[k+"AxisName"],E.name))return O}}(l,_);if(D!=null){var L=u[D]||(u[D]={axesInfo:{}});L.axesInfo[T]=C,L.mapper=l[D].mapper,C.linkGroup=L}}}})}(e,n,t),e.seriesInvolved&&function(i,r){r.eachSeries(function(o){var a=o.coordinateSystem,s=o.get(["tooltip","trigger"],!0),l=o.get(["tooltip","show"],!0);a&&s!=="none"&&s!==!1&&s!=="item"&&l!==!1&&o.get(["axisPointer","show"],!0)!==!1&&A(i.coordSysAxesInfo[os(a.model)],function(u){var h=u.axis;a.getAxis(h.dim)===h&&(u.seriesModels.push(o),u.seriesDataCount==null&&(u.seriesDataCount=0),u.seriesDataCount+=o.getData().count())})})}(e,n),e}function Yd(n,t){return n==="all"||Y(n)&&Me(n,t)>=0||n===t}function Xd(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[os(n)]}function Ud(n){return!!n.get(["handle","show"])}function os(n){return n.type+"||"+n.id}var Zd={},gD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){this.axisPointerClass&&function(a){var s=Xd(a);if(s){var l=s.axisPointerModel,u=s.axis.scale,h=l.option,c=l.get("status"),p=l.get("value");p!=null&&(p=u.parse(p));var d=Ud(l);c==null&&(h.status=d?"show":"hide");var f=u.getExtent().slice();f[0]>f[1]&&f.reverse(),(p==null||p>f[1])&&(p=f[1]),p<f[0]&&(p=f[0]),h.value=p,d&&(h.status=s.axis.scale.isBlank()?"hide":"show")}}(e),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},t.prototype.updateAxisPointer=function(e,i,r,o){this._doUpdateAxisPointerClass(e,r,!1)},t.prototype.remove=function(e,i){var r=this._axisPointer;r&&r.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=function(s){var l=Xd(s);return l&&l.axisPointerModel}(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,i,r):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){if(Zd[e])throw new Error("axisPointer "+e+" exists");Zd[e]=i},t.getAxisPointerClass=function(e){return e&&Zd[e]},t.type="axis",t}(je);const as=gD;var jd=Ne(),yD=["axisLine","axisTickLabel","axisName"],vD=["splitArea","splitLine","minorSplitLine"],j_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return V(t,n),t.prototype.render=function(e,i,r,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ge,this.group.add(this._axisGroup),e.get("show")){var s=e.getCoordSysModel(),l=Gd(s,e),u=new Bi(e,G({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),p=0;p<c.length;p++)if(xd(c[p].getOtherAxis(e.axis).scale))return!0;return!1}},l));A(yD,u.add,u),this._axisGroup.add(u.getGroup()),A(vD,function(h){e.get([h,"show"])&&mD[h](this,this._axisGroup,e,s)},this),o&&o.type==="changeAxisOrder"&&o.isInitSort||Al(a,this._axisGroup,e),n.prototype.render.call(this,e,i,r,o)}},t.prototype.remove=function(){jd(this).splitAreaColors=null},t.type="cartesianAxis",t}(as),mD={splitLine:function(n,t,e,i){var r=e.axis;if(!r.scale.isBlank()){var o=e.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Y(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord);u?(p[0]=y,p[1]=l.y,d[0]=y,d[1]=l.y+l.height):(p[0]=l.x,p[1]=y,d[0]=l.x+l.width,d[1]=y);var v=h++%s.length,m=c[g].tickValue,x=new wt({anid:m!=null?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:le({stroke:s[v]},f),silent:!0});Sa(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(n,t,e,i){var r=e.axis,o=e.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f);var g=new wt({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0});Sa(g.shape,c.lineWidth),t.add(g)}},splitArea:function(n,t,e,i){(function(r,o,a,s){var l=a.axis;if(!l.scale.isBlank()){var u=a.getModel("splitArea"),h=u.getModel("areaStyle"),c=h.get("color"),p=s.coordinateSystem.getRect(),d=l.getTicksCoords({tickModel:u,clamp:!0});if(d.length){var f=c.length,g=jd(r).splitAreaColors,y=te(),v=0;if(g)for(var m=0;m<d.length;m++){var x=g.get(d[m].tickValue);if(x!=null){v=(x+(f-1)*m)%f;break}}var _=l.toGlobalCoord(d[0].coord),b=h.getAreaStyle();for(c=Y(c)?c:[c],m=1;m<d.length;m++){var w=l.toGlobalCoord(d[m].coord),S=void 0,M=void 0,T=void 0,I=void 0;l.isHorizontal()?(S=_,M=p.y,T=w-S,I=p.height,_=S+T):(S=p.x,M=_,T=p.width,_=M+(I=w-M));var C=d[m-1].tickValue;C!=null&&y.set(C,v),o.add(new Ie({anid:C!=null?"area_"+C:null,shape:{x:S,y:M,width:T,height:I},style:le({fill:c[v]},b),autoBatch:!0,silent:!0})),v=(v+1)%f}jd(r).splitAreaColors=y}}})(n,t,e,i)}},q_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="xAxis",t}(j_),xD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=q_.type,e}return V(t,n),t.type="yAxis",t}(j_),_D=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="grid",e}return V(t,n),t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new Ie({shape:e.coordinateSystem.getRect(),style:le({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(je),K_={offset:0};function wD(n){n.registerComponentView(_D),n.registerComponentModel(oD),n.registerCoordinateSystem("cartesian2d",dD),rs(n,"x",Bd,K_),rs(n,"y",Bd,K_),n.registerComponentView(q_),n.registerComponentView(xD),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function bD(n){n.eachSeriesByType("radar",function(t){var e=t.getData(),i=[],r=t.coordinateSystem;if(r){var o=r.getIndicatorAxes();A(o,function(a,s){e.each(e.mapDimension(o[s].dim),function(l,u){i[u]=i[u]||[];var h=r.dataToPoint(l,s);i[u][s]=J_(h)?h:$_(r)})}),e.each(function(a){var s=yg(i[a],function(l){return J_(l)})||$_(r);i[a].push(s.slice()),e.setItemLayout(a,i[a])})}})}function J_(n){return!isNaN(n[0])&&!isNaN(n[1])}function $_(n){return[n.cx,n.cy]}function SD(n){var t=n.polar;if(t){Y(t)||(t=[t]);var e=[];A(t,function(i,r){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],Y(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):e.push(i)}),n.polar=e}A(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var MD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=e.coordinateSystem,a=this.group,s=e.getData(),l=this._data;function u(p,d){var f=p.getItemVisual(d,"symbol")||"circle";if(f!=="none"){var g=ax(p.getItemVisual(d,"symbolSize")),y=ut(f,-1,-1,2,2),v=p.getItemVisual(d,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:v*Math.PI/180||0}),y}}function h(p,d,f,g,y,v){f.removeAll();for(var m=0;m<d.length-1;m++){var x=u(g,y);x&&(x.__dimIdx=m,p[m]?(x.setPosition(p[m]),uo[v?"initProps":"updateProps"](x,{x:d[m][0],y:d[m][1]},e,y)):x.setPosition(d[m]),f.add(x))}}function c(p){return X(p,function(d){return[o.cx,o.cy]})}s.diff(l).add(function(p){var d=s.getItemLayout(p);if(d){var f=new Vn,g=new _n,y={shape:{points:d}};f.shape.points=c(d),g.shape.points=c(d),et(f,y,e,p),et(g,y,e,p);var v=new ge,m=new ge;v.add(g),v.add(f),v.add(m),h(g.shape.points,d,m,s,p,!0),s.setItemGraphicEl(p,v)}}).update(function(p,d){var f=l.getItemGraphicEl(d),g=f.childAt(0),y=f.childAt(1),v=f.childAt(2),m={shape:{points:s.getItemLayout(p)}};m.shape.points&&(h(g.shape.points,m.shape.points,v,s,p,!1),ba(y),ba(g),ze(g,m,e),ze(y,m,e),s.setItemGraphicEl(p,f))}).remove(function(p){a.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,d){var f=s.getItemModel(d),g=p.childAt(0),y=p.childAt(1),v=p.childAt(2),m=s.getItemVisual(d,"style"),x=m.fill;a.add(p),g.useStyle(le(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),ri(g,f,"lineStyle"),ri(y,f,"areaStyle");var _=f.getModel("areaStyle"),b=_.isEmpty()&&_.parentModel.isEmpty();y.ignore=b,A(["emphasis","select","blur"],function(M){var T=f.getModel([M,"areaStyle"]),I=T.isEmpty()&&T.parentModel.isEmpty();y.ensureState(M).ignore=I&&b}),y.useStyle(le(_.getAreaStyle(),{fill:x,opacity:.7,decal:m.decal}));var w=f.getModel("emphasis"),S=w.getModel("itemStyle").getItemStyle();v.eachChild(function(M){if(M instanceof Gt){var T=M.style;M.useStyle(G({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else M.useStyle(m),M.setColor(x),M.style.strokeNoScale=!0;M.ensureState("emphasis").style=oe(S);var I=s.getStore().get(s.getDimensionIndex(M.__dimIdx),d);(I==null||isNaN(I))&&(I=""),ai(M,si(f),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:M.__dimIdx,defaultText:I,inheritColor:x,defaultOpacity:m.opacity})}),zn(p,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(at);const TD=MD;var ID=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return V(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new R_(Q(this.getData,this),Q(this.getRawData,this))},t.prototype.getInitialData=function(e,i){return Wu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.coordinateSystem.getIndicatorAxes(),s=this.getData().getName(e),l=s===""?this.name:s,u=E0(this,e);return Wn("section",{header:l,sortBlocks:!0,blocks:X(a,function(h){var c=o.get(o.mapDimension(h.dim),e);return Wn("nameValue",{markerType:"subItem",markerColor:u,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var i=this.getData(),r=this.coordinateSystem,o=i.getValues(X(r.dimensions,function(u){return i.mapDimension(u)}),e),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=r.getIndicatorAxes();return r.coordToPoint(l[a].dataToCoord(o[a]),a)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Mt);const CD=ID;var ss=N_.value;function Yu(n,t){return le({show:t},n)}var AD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),p=this.get("triggerEvent"),d=X(this.get("indicator")||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=le({color:f.color},l));var y=pe(oe(f),{boundaryGap:e,splitNumber:i,scale:r,axisLine:o,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:p},!1);if(j(h)){var v=y.name;y.name=h.replace("{value}",v??"")}else ae(h)&&(y.name=h(y.name,y));var m=new He(y,null,this.ecModel);return ct(m,es.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:pe({lineStyle:{color:"#bbb"}},ss.axisLine),axisLabel:Yu(ss.axisLabel,!1),axisTick:Yu(ss.axisTick,!1),splitLine:Yu(ss.splitLine,!0),splitArea:Yu(ss.splitArea,!0),indicator:[]},t}(Te);const DD=AD;var kD=["axisLine","axisTickLabel","axisName"],LD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var i=e.coordinateSystem;A(X(i.getIndicatorAxes(),function(r){var o=r.model.get("showName")?r.name:"";return new Bi(r.model,{axisName:o,position:[i.cx,i.cy],rotation:r.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(r){A(kD,r.add,r),this.group.add(r.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var i=e.coordinateSystem,r=i.getIndicatorAxes();if(r.length){var o=e.get("shape"),a=e.getModel("splitLine"),s=e.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),p=l.get("color"),d=u.get("color"),f=Y(p)?p:[p],g=Y(d)?d:[d],y=[],v=[];if(o==="circle")for(var m=r[0].getTicksCoords(),x=i.cx,_=i.cy,b=0;b<m.length;b++)h&&y[L(y,f,b)].push(new oi({shape:{cx:x,cy:_,r:m[b].coord}})),c&&b<m.length-1&&v[L(v,g,b)].push(new _a({shape:{cx:x,cy:_,r0:m[b].coord,r:m[b+1].coord}}));else{var w,S=X(r,function(R,P){var E=R.getTicksCoords();return w=w==null?E.length-1:Math.min(E.length-1,w),X(E,function(k){return i.coordToPoint(k.coord,P)})}),M=[];for(b=0;b<=w;b++){for(var T=[],I=0;I<r.length;I++)T.push(S[I][b]);T[0]?T.push(T[0].slice()):console.error("Can't draw value axis "+b),h&&y[L(y,f,b)].push(new _n({shape:{points:T}})),c&&M&&v[L(v,g,b-1)].push(new Vn({shape:{points:T.concat(M)}})),M=T.slice().reverse()}}var C=l.getLineStyle(),D=u.getAreaStyle();A(v,function(R,P){this.group.add(on(R,{style:le({stroke:"none",fill:g[P%g.length]},D),silent:!0}))},this),A(y,function(R,P){this.group.add(on(R,{style:le({fill:"none",stroke:f[P%f.length]},C),silent:!0}))},this)}function L(R,P,E){var k=E%P.length;return R[k]=R[k]||[],k}},t.type="radar",t}(je);const PD=LD;var OD=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.type="value",o.angle=0,o.name="",o}return V(t,n),t}(Yn);const RD=OD;var ED=function(){function n(t,e,i){this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(r,o){var a="indicator_"+o,s=new RD(a,new Cr);return s.name=r.get("name"),s.model=r,r.axis=s,this.dimensions.push(a),s},this),this.resize(t,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=Math.sqrt(e*e+i*i);e/=r,i/=r;for(var o,a=Math.atan2(-i,e),s=1/0,l=-1,u=0;u<this._indicatorAxes.length;u++){var h=this._indicatorAxes[u],c=Math.abs(a-h.angle);c<s&&(o=h,l=u,s=c)}return[l,+(o&&o.coordToData(r))]},n.prototype.resize=function(t,e){var i=t.get("center"),r=e.getWidth(),o=e.getHeight(),a=Math.min(r,o)/2;this.cx=ne(i[0],r),this.cy=ne(i[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(j(s)||Re(s))&&(s=[0,s]),this.r0=ne(s[0],a),this.r=ne(s[1],a),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var h=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;h=Math.atan2(Math.sin(h),Math.cos(h)),l.angle=h},this)},n.prototype.update=function(t,e){var i=this._indicatorAxes,r=this._model;A(i,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(s.get("coordinateSystem")==="radar"&&t.getComponent("radar",s.get("radarIndex"))===r){var u=s.getData();A(i,function(h){h.scale.unionExtentFromData(u,u.mapDimension(h.dim))})}},this);var o=r.get("splitNumber"),a=new Cr;a.setExtent(0,o),a.setInterval(1),A(i,function(s,l){G_(s.scale,s.model,a)})},n.prototype.convertToPixel=function(t,e,i){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(t,e,i){return console.warn("Not implemented."),null},n.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},n.create=function(t,e){var i=[];return t.eachComponent("radar",function(r){var o=new n(r,t,e);i.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=i[r.get("radarIndex")||0])}),i},n.dimensions=[],n}();const ND=ED;function zD(n){n.registerCoordinateSystem("radar",ND),n.registerComponentModel(DD),n.registerComponentView(PD),n.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(i){e.setItemVisual(i,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var Q_="\0_ec_interaction_mutex";function ew(n,t){return!!qd(n)[t]}function qd(n){return n[Q_]||(n[Q_]={})}Sn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},st);var BD=function(n){function t(e){var i=n.call(this)||this;i._zr=e;var r=Q(i._mousedownHandler,i),o=Q(i._mousemoveHandler,i),a=Q(i._mouseupHandler,i),s=Q(i._mousewheelHandler,i),l=Q(i._pinchHandler,i);return i.enable=function(u,h){this.disable(),this._opt=le(oe(h)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),u!==!0&&u!=="move"&&u!=="pan"||(e.on("mousedown",r),e.on("mousemove",o),e.on("mouseup",a)),u!==!0&&u!=="scale"&&u!=="zoom"||(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",r),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",l)},i}return V(t,n),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Pg(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var r=e.offsetX,o=e.offsetY;this.pointerChecker&&this.pointerChecker(e,r,o)&&(this._x=r,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Xu("moveOnMouseMove",e,this._opt)&&e.gestureEvent!=="pinch"&&!ew(this._zr,"globalPan")){var i=e.offsetX,r=e.offsetY,o=this._x,a=this._y,s=i-o,l=r-a;this._x=i,this._y=r,this._opt.preventDefaultMouseMove&&Jn(e.event),tw(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:o,oldY:a,newX:i,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Pg(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=Xu("zoomOnMouseWheel",e,this._opt),r=Xu("moveOnMouseWheel",e,this._opt),o=e.wheelDelta,a=Math.abs(o),s=e.offsetX,l=e.offsetY;if(o!==0&&(i||r)){if(i){var u=a>3?1.4:a>1?1.2:1.1;Kd(this,"zoom","zoomOnMouseWheel",e,{scale:o>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(r){var h=Math.abs(o);Kd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(o>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){ew(this._zr,"globalPan")||Kd(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(Zt);function Kd(n,t,e,i,r){n.pointerChecker&&n.pointerChecker(i,r.originX,r.originY)&&(Jn(i.event),tw(n,t,e,i,r))}function tw(n,t,e,i,r){r.isAvailableBehavior=Q(Xu,null,e,i),n.trigger(t,r)}function Xu(n,t,e){var i=e[n];return!n||i&&(!j(i)||t.event[i+"Key"])}const Jd=BD;function nw(n,t,e){var i=n.target;i.x+=t,i.y+=e,i.dirty()}function iw(n,t,e,i){var r=n.target,o=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,r.x-=(e-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var $d,VD={axisPointer:1,tooltip:1,brush:1};function Qd(n,t,e){var i=t.getComponentByElement(n.topTarget),r=i&&i.coordinateSystem;return i&&i!==e&&!VD.hasOwnProperty(i.mainType)&&r&&r.model!==e}function rw(n){j(n)&&(n=new DOMParser().parseFromString(n,"text/xml"));var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Uu={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ow=Oe(Uu),Zu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},aw=Oe(Zu),FD=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(t,e){e=e||{};var i=rw(t);if(!i)throw new Error("Illegal svg");this._defsUsePending=[];var r=new ge;this._root=r;var o=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Wt(i,r,null,!0,!1);for(var u,h,c=i.firstChild;c;)this._parseNode(c,r,o,null,!1,!1),c=c.nextSibling;if(function(f,g){for(var y=0;y<g.length;y++){var v=g[y];v[0].style[v[1]]=f[v[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var p=ju(a);p.length>=4&&(u={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(u&&s!=null&&l!=null&&(h=fw(u,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var d=r;(r=new ge).add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return e.ignoreRootClip||s==null||l==null||r.setClipPath(new Ie({shape:{x:0,y:0,width:s,height:l}})),{root:r,width:s,height:l,viewBoxRect:u,viewBoxTransform:h,named:o}},n.prototype._parseNode=function(t,e,i,r,o,a){var s,l=t.nodeName.toLowerCase(),u=r;if(l==="defs"&&(o=!0),l==="text"&&(a=!0),l==="defs"||l==="switch")s=e;else{if(!o){var h=$d[l];if(h&&Ut($d,l)){s=h.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:l,el:s};i.push(p),l==="g"&&(u=p)}else r&&i.push({name:r.name,namedFrom:r,svgNodeTagLower:l,el:s});e.add(s)}}var d=sw[l];if(d&&Ut(sw,l)){var f=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(s&&s.isGroup)for(var y=t.firstChild;y;)y.nodeType===1?this._parseNode(y,s,i,u,o,a):y.nodeType===3&&a&&this._parseText(y,s),y=y.nextSibling},n.prototype._parseText=function(t,e){var i=new al({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),function(l,u){var h=u.__selfStyle;if(h){var c=h.textBaseline,p=c;c&&c!=="auto"?c==="baseline"?p="alphabetic":c==="before-edge"||c==="text-before-edge"?p="top":c==="after-edge"||c==="text-after-edge"?p="bottom":c!=="central"&&c!=="mathematical"||(p="middle"):p="alphabetic",l.style.textBaseline=p}var d=u.__inheritedStyle;if(d){var f=d.textAlign,g=f;f&&(f==="middle"&&(g="center"),l.style.textAlign=g)}}(i,e);var r=i.style,o=r.fontSize;o&&o<9&&(r.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var s=i.getBoundingRect();return this._textX+=s.width,e.add(i),i},n.internalField=void($d={g:function(t,e){var i=new ge;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new Ie;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new oi;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new wt;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new yl;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,r=t.getAttribute("points");r&&(i=hw(r));var o=new Vn({shape:{points:i||[]},silent:!0});return pn(e,o),Wt(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var i,r=t.getAttribute("points");r&&(i=hw(r));var o=new _n({shape:{points:i||[]},silent:!0});return pn(e,o),Wt(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var i=new Gt;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new ge;return pn(e,s),Wt(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),r!=null&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new ge;return pn(e,s),Wt(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var i=Vv(t.getAttribute("d")||"");return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),n}(),sw={lineargradient:function(n){var t=parseInt(n.getAttribute("x1")||"0",10),e=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),r=parseInt(n.getAttribute("y2")||"0",10),o=new wa(t,e,i,r);return lw(n,o),uw(n,o),o},radialgradient:function(n){var t=parseInt(n.getAttribute("cx")||"0",10),e=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),r=new Kc(t,e,i);return lw(n,r),uw(n,r),r}};function lw(n,t){n.getAttribute("gradientUnits")==="userSpaceOnUse"&&(t.global=!0)}function uw(n,t){for(var e=n.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};dw(e,o,o);var a=o.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}e=e.nextSibling}}function pn(n,t){n&&n.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),le(t.__inheritedStyle,n.__inheritedStyle))}function hw(n){for(var t=ju(n),e=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);e.push([r,o])}return e}function Wt(n,t,e,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};n.nodeType===1&&(function(l,u){var h=l.getAttribute("transform");if(h){h=h.replace(/,/g," ");var c=[],p=null;h.replace(WD,function(v,m,x){return c.push(m,x),""});for(var d=c.length-1;d>0;d-=2){var f=c[d],g=c[d-1],y=ju(f);switch(p=p||[1,0,0,1,0,0],g){case"translate":Ui(p,p,[parseFloat(y[0]),parseFloat(y[1]||"0")]);break;case"scale":Oh(p,p,[parseFloat(y[0]),parseFloat(y[1]||y[0])]);break;case"rotate":Zi(p,p,-parseFloat(y[0])*ef,[parseFloat(y[1]||"0"),parseFloat(y[2]||"0")]);break;case"skewX":Dn(p,[1,0,Math.tan(parseFloat(y[0])*ef),1,0,0],p);break;case"skewY":Dn(p,[1,Math.tan(parseFloat(y[0])*ef),0,1,0,0],p);break;case"matrix":p[0]=parseFloat(y[0]),p[1]=parseFloat(y[1]),p[2]=parseFloat(y[2]),p[3]=parseFloat(y[3]),p[4]=parseFloat(y[4]),p[5]=parseFloat(y[5])}}u.setLocalTransform(p)}}(n,t),dw(n,a,s),i||function(l,u,h){for(var c=0;c<ow.length;c++){var p=ow[c];(d=l.getAttribute(p))!=null&&(u[Uu[p]]=d)}for(c=0;c<aw.length;c++){var d;p=aw[c],(d=l.getAttribute(p))!=null&&(h[Zu[p]]=d)}}(n,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=cw(o,"fill",a.fill,e)),a.stroke!=null&&(o.style.stroke=cw(o,"stroke",a.stroke,e)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=X(ju(a.lineDash),function(l){return parseFloat(l)})),a.visibility!=="hidden"&&a.visibility!=="collapse"||(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}var GD=/^url\(\s*#(.*?)\)/;function cw(n,t,e,i){var r=e&&e.match(GD);if(!r)return e==="none"&&(e=null),e;var o=Xt(r[1]);i.push([n,t,o])}var HD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ju(n){return n.match(HD)||[]}var WD=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ef=Math.PI/180,pw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function dw(n,t,e){var i,r=n.getAttribute("style");if(r)for(pw.lastIndex=0;(i=pw.exec(r))!=null;){var o=i[1],a=Ut(Uu,o)?Uu[o]:null;a&&(t[a]=i[2]);var s=Ut(Zu,o)?Zu[o]:null;s&&(e[s]=i[2])}}function fw(n,t){var e=t.width/n.width,i=t.height/n.height,r=Math.min(e,i);return{scale:r,x:-(n.x+n.width/2)*r+(t.x+t.width/2),y:-(n.y+n.height/2)*r+(t.y+t.height/2)}}for(var YD=te(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),XD=function(){function n(t,e){this.type="geoSVG",this._usedGraphicMap=te(),this._freedGraphics=[],this._mapName=t,this._parsedXML=rw(e)}return n.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(o){var a=[],s=te();return A(o,function(l){if(l.namedFrom==null){var u=new lA(l.name,l.el);a.push(u),s.set(l.name,u)}}),{regions:a,regionsMap:s}}(t.named),i=e.regions,r=e.regionsMap;this._regions=i,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(t){var e,i,r,o;try{ue((i=(e=t&&(r=t,o={ignoreViewBox:!0,ignoreRootClip:!0},new FD().parse(r,o))||{}).root)!=null)}catch(m){throw new Error(`Invalid svg format
- `+m.message)}var a=new ge;a.add(i),a.isGeoSVGGraphicRoot=!0;var s=e.width,l=e.height,u=e.viewBoxRect,h=this._boundingRect;if(!h){var c=void 0,p=void 0,d=void 0,f=void 0;if(s!=null?(c=0,d=s):u&&(c=u.x,d=u.width),l!=null?(p=0,f=l):u&&(p=u.y,f=u.height),c==null||p==null){var g=i.getBoundingRect();c==null&&(c=g.x,d=g.width),p==null&&(p=g.y,f=g.height)}h=this._boundingRect=new me(c,p,d,f)}if(u){var y=fw(u,h);i.scaleX=i.scaleY=y.scale,i.x=y.x,i.y=y.y}a.setClipPath(new Ie({shape:h.plain()}));var v=[];return A(e.named,function(m){var x;YD.get(m.svgNodeTagLower)!=null&&(v.push(m),(x=m.el).silent=!1,x.isGroup&&x.traverse(function(_){_.silent=!1}))}),{root:a,boundingRect:h,named:v}},n.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},n.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},n}(),tf=[126,25],gw="\u5357\u6D77\u8BF8\u5C9B",Lr=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Pr=0;Pr<Lr.length;Pr++)for(var Do=0;Do<Lr[Pr].length;Do++)Lr[Pr][Do][0]/=10.5,Lr[Pr][Do][1]/=-14,Lr[Pr][Do][0]+=tf[0],Lr[Pr][Do][1]+=tf[1];var UD={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]},ZD=[[[123.45165252685548,25.73527164402261],[123.497314453125,25.73527164402261],[123.497314453125,25.750734064600884],[123.45165252685548,25.750734064600884],[123.45165252685548,25.73527164402261]]],jD=function(){function n(t,e,i){var r;this.type="geoJSON",this._parsedMap=te(),this._mapName=t,this._specialAreas=i,this._geoJSON=j(r=e)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return n.prototype.load=function(t,e){e=e||"name";var i=this._parsedMap.get(e);if(!i){var r=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:r,boundingRect:qD(r)})}var o=te(),a=[];return A(i.regions,function(s){var l=s.name;t&&Ut(t,l)&&(s=s.cloneShallow(l=t[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:i.boundingRect||new me(0,0,0,0),regionsMap:o}},n.prototype._parseToRegions=function(t){var e,i=this._mapName,r=this._geoJSON;try{e=r?Cd(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
- `+o.message)}return function(o,a){if(o==="china"){for(var s=0;s<a.length;s++)if(a[s].name===gw)return;a.push(new L1(gw,X(Lr,function(l){return{type:"polygon",exterior:l}}),tf))}}(i,e),A(e,function(o){var a=o.name;(function(l,u){if(l==="china"){var h=UD[u.name];if(h){var c=u.getCenter();c[0]+=h[0]/10.5,c[1]+=-h[1]/14,u.setCenter(c)}}})(i,o),function(l,u){l==="china"&&u.name==="\u53F0\u6E7E"&&u.geometries.push({type:"polygon",exterior:ZD[0]})}(i,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),e},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function qD(n){for(var t,e=0;e<n.length;e++){var i=n[e].getBoundingRect();(t=t||i.clone()).union(i)}return t}var ls=te();const pi={registerMap:function(n,t,e){if(t.svg){var i=new XD(n,t.svg);ls.set(n,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?e=t.specialAreas:r=t,i=new jD(n,r,e),ls.set(n,i)}},getGeoResource:function(n){return ls.get(n)},getMapForUser:function(n){var t=ls.get(n);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(n,t,e){var i=ls.get(n);if(i)return i.load(t,e);console.error("Map "+n+" not exists. The GeoJSON of the map must be provided.")}};var nf=["rect","circle","line","ellipse","polygon","polyline","path"],KD=te(nf),JD=te(nf.concat(["g"])),$D=te(nf.concat(["g"])),yw=Ne();function qu(n){var t=n.getItemStyle(),e=n.get("areaColor");return e!=null&&(t.fill=e),t}function vw(n){var t=n.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var QD=function(){function n(t){var e=new ge;this.uid=co("ec_map_draw"),this._controller=new Jd(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ge),e.add(this._svgGroup=new ge)}return n.prototype.draw=function(t,e,i,r,o){var a=t.mainType==="geo",s=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},function(y){s||y.getHostGeoModel()!==t||(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,h=this.group,c=l.getTransformInfo(),p=c.raw,d=c.roam;!u.childAt(0)||o?(h.x=d.x,h.y=d.y,h.scaleX=d.scaleX,h.scaleY=d.scaleY,h.dirty()):ze(h,d,t);var f=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:f,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,u,i,r)},n.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=te(),i=te(),r=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function h(d,f){return f&&(d=f(d)),d&&[d[0]*o.scaleX+o.x,d[1]*o.scaleY+o.y]}function c(d){for(var f=[],g=!u&&l&&l.project,y=0;y<d.length;++y){var v=h(d[y],g);v&&f.push(v)}return f}function p(d){return{shape:{points:c(d)}}}r.removeAll(),A(t.geo.regions,function(d){var f=d.name,g=e.get(f),y=i.get(f)||{},v=y.dataIdx,m=y.regionModel;g||(g=e.set(f,new ge),r.add(g),v=s?s.indexOfName(f):null,m=t.isGeo?a.getRegionModel(f):s?s.getItemModel(v):null,i.set(f,{dataIdx:v,regionModel:m}));var x=[],_=[];A(d.geometries,function(S){if(S.type==="polygon"){var M=[S.exterior].concat(S.interiors||[]);u&&(M=Sw(M,u)),A(M,function(I){x.push(new Vn(p(I)))})}else{var T=S.points;u&&(T=Sw(T,u,!0)),A(T,function(I){_.push(new _n(p(I)))})}});var b=h(d.getCenter(),l&&l.project);function w(S,M){if(S.length){var T=new qc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:S}});g.add(T),mw(t,T,v,m),xw(t,T,f,m,a,v,b),M&&(vw(T),A(T.states,vw))}}w(x),w(_,!0)}),e.each(function(d,f){var g=i.get(f),y=g.dataIdx,v=g.regionModel;_w(t,d,f,v,a,y),ww(t,d,f,v,a),bw(t,d,f,v,a)},this)},n.prototype._buildSVG=function(t){var e=t.geo.map,i=t.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=te(),o=!1;A(this._svgGraphicRecord.named,function(a){var s=a.name,l=t.mapOrGeoModel,u=t.data,h=a.svgNodeTagLower,c=a.el,p=u?u.indexOfName(s):null,d=l.getRegionModel(s);KD.get(h)!=null&&c instanceof ar&&mw(t,c,p,d),c instanceof ar&&(c.culling=!0),c.z2EmphasisLift=0,a.namedFrom||($D.get(h)!=null&&xw(t,c,s,d,l,p,null),_w(t,c,s,d,l,p),ww(t,c,s,d,l),JD.get(h)!=null&&(bw(t,c,s,d,l)==="self"&&(o=!0),(r.get(s)||r.set(s,[])).push(c)))},this),this._enableBlurEntireSVG(o,t)},n.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var i=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(r){if(!r.isGroup){dl(r);var o=r.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),r.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var i=e.coordinateSystem;if(i.resourceType==="geoJSON"){var r=this._regionsGroupByName;if(r){var o=r.get(t);return o?[o]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},n.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},n.prototype._useSVG=function(t){var e=pi.getGeoResource(t);if(e&&e.type==="geoSVG"){var i=e.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=t}},n.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=pi.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(t,e,i){var r=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,nw(a,u.dx,u.dy),i.dispatchAction(G(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,iw(a,u.scale,u.originX,u.originY),i.dispatchAction(G(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(u,h,c){return r.containPoint([h,c])&&!Qd(u,i,t)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=yw(e).ignore)})},n.prototype._updateMapSelectHandler=function(t,e,i,r){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},n}();function mw(n,t,e,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=qu(r),u=qu(o),h=qu(s),c=qu(a),p=n.data;if(p){var d=p.getItemVisual(e,"style"),f=p.getItemVisual(e,"decal");n.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=ou(f,n.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=h,t.ensureState("blur").style=c,dl(t)}function xw(n,t,e,i,r,o,a){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),h=s&&s.getItemLayout(o);if(l||u||h&&h.showLabel){var c=l?e:o,p=void 0;(!s||o>=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;ai(t,si(i),{labelFetcher:p,labelDataIndex:c,defaultText:e},d);var f=t.getTextContent();if(f&&(yw(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function _w(n,t,e,i,r,o){n.data?n.data.setItemGraphicEl(o,t):ye(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:e,region:i&&i.option||{}}}function ww(n,t,e,i,r){n.data||Ta({el:t,componentModel:r,itemName:e,itemTooltipOption:i.get("tooltip")})}function bw(n,t,e,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return zn(t,a,o.get("blurScope"),o.get("disabled")),n.isGeo&&function(s,l,u){var h=ye(s);h.componentMainType=l.mainType,h.componentIndex=l.componentIndex,h.componentHighDownName=u}(t,r,e),a}function Sw(n,t,e){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),r}const Mw=QD;var ek=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){if(!o||o.type!=="mapToggleSelect"||o.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===e.id)(s=this._mapDraw)&&a.add(s.group);else if(e.needsDrawMap){var s=this._mapDraw||new Mw(r);a.add(s.group),s.draw(e,i,r,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(e,i,r)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,i,r){var o=e.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=o.getItemLayout(l);if(u&&u.point){var h=u.point,c=u.offset,p=new oi({style:{fill:e.getData().getVisual("style").fill},shape:{cx:h[0]+9*c,cy:h[1],r:3},silent:!0,z2:8+(c?0:vv+1)});if(!c){var d=e.mainSeries.getData(),f=o.getName(l),g=d.indexOfName(f),y=o.getItemModel(l),v=y.getModel("label"),m=d.getItemGraphicEl(g);ai(p,si(y),{labelFetcher:{getFormattedLabel:function(x,_){return e.getFormattedLabel(g,_)}},defaultText:f}),p.disableLabelAnimation=!0,v.get("position")||p.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(x){pl(p,x)}}a.add(p)}}})},t.type="map",t}(at);const tk=ek;var nk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(i){if(i!=null){var r=this.getData().getName(i),o=this.coordinateSystem,a=o.getRegion(r);return a&&o.dataToPoint(a.getCenter())}},e}return V(t,n),t.prototype.getInitialData=function(e){for(var i=Wu(this,{coordDimensions:["value"],encodeDefaulter:xe(Gm,this)}),r=te(),o=[],a=0,s=i.count();a<s;a++){var l=i.getName(a);r.set(l,!0)}return A(pi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(u){var h=u.name;r.get(h)||o.push(h)}),i.appendValues([],o),i},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var i=this.getData();return i.get(i.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var i=this.getData();return i.getItemModel(i.indexOfName(e))},t.prototype.formatTooltip=function(e,i,r){for(var o=this.getData(),a=this.getRawValue(e),s=o.getName(e),l=this.seriesGroup,u=[],h=0;h<l.length;h++){var c=l[h].originalData.indexOfName(s),p=o.mapDimension("value");isNaN(l[h].originalData.get(p,c))||u.push(l[h].name)}return Wn("section",{header:u.join(", "),noHeader:!u.length,blocks:[Wn("nameValue",{name:s,value:a})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var i=e.icon||"roundRect",r=ut(i,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return r.setStyle(e.itemStyle),r.style.stroke="none",i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Mt);const ik=nk;function rk(n){var t={};n.eachSeriesByType("map",function(e){var i=e.getHostGeoModel(),r=i?"o"+i.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),A(t,function(e,i){for(var r,o,a,s=(r=X(e,function(u){return u.getData()}),o=e[0].get("mapValueCalculation"),a={},A(r,function(u){u.each(u.mapDimension("value"),function(h,c){var p="ec-"+u.getName(c);a[p]=a[p]||[],isNaN(h)||a[p].push(h)})}),r[0].map(r[0].mapDimension("value"),function(u,h){for(var c="ec-"+r[0].getName(h),p=0,d=1/0,f=-1/0,g=a[c].length,y=0;y<g;y++)d=Math.min(d,a[c][y]),f=Math.max(f,a[c][y]),p+=a[c][y];return g===0?NaN:o==="min"?d:o==="max"?f:o==="average"?p/g:p})),l=0;l<e.length;l++)e[l].originalData=e[l].getData();for(l=0;l<e.length;l++)e[l].seriesGroup=e,e[l].needsDrawMap=l===0&&!e[l].getHostGeoModel(),e[l].setData(s.cloneShallow()),e[l].mainSeries=e[0]})}function ok(n){var t={};n.eachSeriesByType("map",function(e){var i=e.getMapType();if(!e.getHostGeoModel()&&!t[i]){var r={};A(e.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,h){var c=l.getName(h),p=s.getRegion(c);if(p&&!isNaN(u)){var d=r[c]||0,f=s.dataToPoint(p.getCenter());r[c]=d+1,l.setItemLayout(h,{point:f,offset:d})}})});var o=e.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!r[s],o.setItemLayout(a,l)}),t[i]=!0}})}var Tw=ot,ak=function(n){function t(e){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new bi,i._rawTransformable=new bi,i.name=e,i}return V(t,n),t.prototype.setBoundingRect=function(e,i,r,o){return this._rect=new me(e,i,r,o),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,i,r,o){this._transformTo(e,i,r,o),this._viewRect=new me(e,i,r,o)},t.prototype._transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new me(e,i,r,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,i){e&&(this._center=[ne(e[0],i.getWidth()),ne(e[1],i.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var i=this.zoomLimit;i&&(i.max!=null&&(e=Math.min(i.max,e)),i.min!=null&&(e=Math.max(i.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,r=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=ot([],o,e),r=ot([],r,e),i.originX=o[0],i.originY=o[1],i.x=r[0]-o[0],i.y=r[1]-o[1],i.scaleX=i.scaleY=a,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),Ds(this.transform||(this.transform=[]),i.transform||[1,0,0,1,0,0]),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],ji(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,r=new bi;return r.transform=i.transform,r.decomposeTransform(),{roam:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,i,r){var o=i?this._rawTransform:this.transform;return r=r||[],o?Tw(r,e,o):Sg(r,e)},t.prototype.pointToData=function(e){var i=this.invTransform;return i?Tw([],e,i):[e[0],e[1]]},t.prototype.convertToPixel=function(e,i,r){var o=Iw(i);return o===this?o.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,i,r){var o=Iw(i);return o===this?o.pointToData(r):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(bi);function Iw(n){var t=n.seriesModel;return t?t.coordinateSystem:null}const rf=ak;var sk={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Cw=["lng","lat"],Aw=function(n){function t(e,i,r){var o=n.call(this,e)||this;o.dimensions=Cw,o.type="geo",o._nameCoordMap=te(),o.map=i;var a,s=r.projection,l=pi.load(i,r.nameMap,r.nameProperty),u=pi.getGeoResource(i),h=o.resourceType=u?u.type:null,c=o.regions=l.regions,p=sk[u.type];if(o._regionsMap=l.regionsMap,o.regions=l.regions,s&&(h==="geoSVG"&&(Je("Map "+i+" with SVG source can't use projection. Only GeoJSON source supports projection."),s=null),s.project&&s.unproject||(Je("project and unproject must be both provided in the projeciton."),s=null)),o.projection=s,s)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(s);(a=a||f.clone()).union(f)}else a=l.boundingRect;return o.setBoundingRect(a.x,a.y,a.width,a.height),o.aspectScale=s?1:fe(r.aspectScale,p.aspectScale),o._invertLongitute=!s&&p.invertLongitute,o}return V(t,n),t.prototype._transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new me(e,i,r,o));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var i=this.regions,r=0;r<i.length;r++){var o=i[r];if(o.type==="geoJSON"&&o.contain(e))return i[r]}},t.prototype.addGeoCoord=function(e,i){this._nameCoordMap.set(e,i)},t.prototype.getGeoCoord=function(e){var i=this._regionsMap.get(e);return this._nameCoordMap.get(e)||i&&i.getCenter()},t.prototype.dataToPoint=function(e,i,r){if(j(e)&&(e=this.getGeoCoord(e)),e){var o=this.projection;return o&&(e=o.project(e)),e&&this.projectedToPoint(e,i,r)}},t.prototype.pointToData=function(e){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return n.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,i,r){return n.prototype.dataToPoint.call(this,e,i,r)},t.prototype.convertToPixel=function(e,i,r){var o=Dw(i);return o===this?o.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,i,r){var o=Dw(i);return o===this?o.pointToData(r):null},t}(rf);function Dw(n){var t=n.geoModel,e=n.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",nt).models[0]||{}).coordinateSystem:null}ct(Aw,rf);const kw=Aw;function Lw(n,t){var e=n.get("boundingCoords");if(e!=null){var i=e[0],r=e[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var h=function(w,S,M,T){for(var I=M-w,C=T-S,D=0;D<=100;D++){var L=D/100,R=o.project([w+I*L,S+C*L]);qn(i,i,R),Kn(r,r,R)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else console.error("Invalid boundingCoords")}var c,p,d,f=this.getBoundingRect(),g=n.get("layoutCenter"),y=n.get("layoutSize"),v=t.getWidth(),m=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(c=[ne(g[0],v),ne(g[1],m)],p=ne(y,Math.min(v,m)),isNaN(c[0])||isNaN(c[1])||isNaN(p)?console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):_=!0),_)d={},x>1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=c[1]-d.height/2,d.x=c[0]-d.width/2;else{var b=n.getBoxLayoutParams();b.aspect=x,d=St(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(n.get("center"),t),this.setZoom(n.get("zoom"))}var lk=function(){function n(){this.dimensions=Cw}return n.prototype.create=function(t,e){var i=[];function r(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}t.eachComponent("geo",function(a,s){var l=a.get("map"),u=new kw(l+s,l,G({nameMap:a.get("nameMap")},r(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=Lw,u.resize(a,e)}),t.eachSeries(function(a){if(a.get("coordinateSystem")==="geo"){var s=a.get("geoIndex")||0;a.coordinateSystem=i[s]}});var o={};return t.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),A(o,function(a,s){var l=X(a,function(h){return h.get("nameMap")}),u=new kw(s,s,G({nameMap:gg(l)},r(a[0])));u.zoomLimit=Yt.apply(null,X(a,function(h){return h.get("scaleLimit")})),i.push(u),u.resize=Lw,u.resize(a[0],e),A(a,function(h){h.coordinateSystem=u,function(c,p){A(p.get("geoCoord"),function(d,f){c.addGeoCoord(f,d)})}(u,h)})}),i},n.prototype.getFilledRegions=function(t,e,i,r){for(var o=(t||[]).slice(),a=te(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);return A(pi.load(e,i,r).regions,function(l){var u=l.name;!a.get(u)&&o.push({name:u})}),o},n}();const Pw=new lk;var uk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(e,i,r){var o=pi.getGeoResource(e.map);if(o&&o.type==="geoJSON"){var a=e.itemStyle=e.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(e,r),Qs(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,i=this.option;i.regions=Pw.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var r={};this._optionModelMap=gn(i.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new He(a,e,e.ecModel)),a.selected&&(r[s]=!0)),o},te()),i.selectedMap||(i.selectedMap=r)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new He(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,i){var r=this.getRegionModel(e),o=i==="normal"?r.get(["label","formatter"]):r.get(["emphasis","label","formatter"]),a={name:e};return ae(o)?(a.status=i,o(a)):j(o)?o.replace("{a}",e??""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var i=this.option,r=i.selectedMode;r&&(r!=="multiple"&&(i.selectedMap=null),(i.selectedMap||(i.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var i=this.option.selectedMap;i&&(i[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var i=this.option.selectedMap;return!(!i||!i[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Te);const hk=uk;function Ow(n,t){return n.pointToProjected?n.pointToProjected(t):n.pointToData(t)}function Rw(n,t,e,i){var r=n.getZoom(),o=n.getCenter(),a=t.zoom,s=n.projectedToPoint?n.projectedToPoint(o):n.dataToPoint(o);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,n.setCenter(Ow(n,s),i)),a!=null){if(e){var l=e.min||0,u=e.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}n.scaleX*=a,n.scaleY*=a;var h=(t.originX-n.x)*(a-1),c=(t.originY-n.y)*(a-1);n.x-=h,n.y-=c,n.updateTransform(),n.setCenter(Ow(n,s),i),n.setZoom(a*r)}return{center:n.getCenter(),zoom:n.getZoom()}}var ck=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return V(t,n),t.prototype.init=function(e,i){this._api=i},t.prototype.render=function(e,i,r,o){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Mw(r));var a=this._mapDraw;a.draw(e,i,r,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=e.get("silent"),this.group.add(a.group),this.updateSelectStatus(e,i,r)},t.prototype._handleRegionClick=function(e){var i;br(e.target,function(r){return(i=ye(r).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},t.prototype.updateSelectStatus=function(e,i,r){var o=this;this._mapDraw.group.traverse(function(a){var s=ye(a).eventData;if(s)return o._model.isSelected(s.name)?r.enterSelect(a):r.leaveSelect(a),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(je);const pk=ck;function dk(n,t,e){pi.registerMap(n,t,e)}function fk(n){function t(e,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(r,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:r},function(l){l[e](r.name),A(l.coordinateSystem.regions,function(h){a[h.name]=l.isSelected(h.name)||!1});var u=[];A(a,function(h,c){a[c]&&u.push(c)}),s.push({geoIndex:l.componentIndex,name:u})}),{selected:a,allSelected:s,name:r.name}})}n.registerCoordinateSystem("geo",Pw),n.registerComponentModel(hk),n.registerComponentView(pk),n.registerImpl("registerMap",dk),n.registerImpl("getMap",function(e){return pi.getMapForUser(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,i,r){var o=e.componentType||"series";i.eachComponent({mainType:o,query:e},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=Rw(s,e,a.get("scaleLimit"),r);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&A(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function gk(n,t){var e=n.isExpand?n.children:[],i=n.parentNode.children,r=n.hierNode.i?i[n.hierNode.i-1]:null;if(e.length){(function(a){for(var s=a.children,l=s.length,u=0,h=0;--l>=0;){var c=s[l];c.hierNode.prelim+=u,c.hierNode.modifier+=u,h+=c.hierNode.change,u+=c.hierNode.shift+h}})(n);var o=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;r?(n.hierNode.prelim=r.hierNode.prelim+t(n,r),n.hierNode.modifier=n.hierNode.prelim-o):n.hierNode.prelim=o}else r&&(n.hierNode.prelim=r.hierNode.prelim+t(n,r));n.parentNode.hierNode.defaultAncestor=function(a,s,l,u){if(s){for(var h=a,c=a,p=c.parentNode.children[0],d=s,f=h.hierNode.modifier,g=c.hierNode.modifier,y=p.hierNode.modifier,v=d.hierNode.modifier;d=of(d),c=af(c),d&&c;){h=of(h),p=af(p),h.hierNode.ancestor=a;var m=d.hierNode.prelim+v-c.hierNode.prelim-g+u(d,c);m>0&&(mk(vk(d,a,l),a,m),g+=m,f+=m),v+=d.hierNode.modifier,g+=c.hierNode.modifier,f+=h.hierNode.modifier,y+=p.hierNode.modifier}d&&!of(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=v-f),c&&!af(p)&&(p.hierNode.thread=c,p.hierNode.modifier+=g-y,l=a)}return l}(n,r,n.parentNode.hierNode.defaultAncestor||i[0],t)}function yk(n){var t=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:t},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Ew(n){return arguments.length?n:xk}function us(n,t){return n-=Math.PI/2,{x:t*Math.cos(n),y:t*Math.sin(n)}}function of(n){var t=n.children;return t.length&&n.isExpand?t[t.length-1]:n.hierNode.thread}function af(n){var t=n.children;return t.length&&n.isExpand?t[0]:n.hierNode.thread}function vk(n,t,e){return n.hierNode.ancestor.parentNode===t.parentNode?n.hierNode.ancestor:e}function mk(n,t,e){var i=e/(t.hierNode.i-n.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,n.hierNode.change+=i}function xk(n,t){return n.parentNode===t.parentNode?1:2}var _k=function(){this.parentPoint=[],this.childPoints=[]},wk=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _k},t.prototype.buildPath=function(e,i){var r=i.childPoints,o=r.length,a=i.parentPoint,s=r[0],l=r[o-1];if(o===1)return e.moveTo(a[0],a[1]),void e.lineTo(s[0],s[1]);var u=i.orient,h=u==="TB"||u==="BT"?0:1,c=1-h,p=ne(i.forkPosition,1),d=[];d[h]=a[h],d[c]=a[c]+(l[c]-a[c])*p,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(s[0],s[1]),d[h]=s[h],e.lineTo(d[0],d[1]),d[h]=l[h],e.lineTo(d[0],d[1]),e.lineTo(l[0],l[1]);for(var f=1;f<o-1;f++){var g=r[f];e.moveTo(g[0],g[1]),d[h]=g[h],e.lineTo(d[0],d[1])}},t}(De),bk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new ge,e}return V(t,n),t.prototype.init=function(e,i){this._controller=new Jd(i.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,i,r){var o=e.getData(),a=e.layoutInfo,s=this._mainGroup;e.get("layout")==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(e,r),this._updateController(e,i,r);var l=this._data;o.diff(l).add(function(u){Nw(o,u)&&zw(o,u,null,s,e)}).update(function(u,h){var c=l.getItemGraphicEl(h);Nw(o,u)?zw(o,u,c,s,e):c&&Fw(l,h,c,s,e)}).remove(function(u){var h=l.getItemGraphicEl(u);h&&Fw(l,u,h,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(u,h){u.off("click").on("click",function(){r.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:h})})}),this._data=o},t.prototype._updateViewCoordSys=function(e,i){var r=e.getData(),o=[];r.each(function(c){var p=r.getItemLayout(c);!p||isNaN(p.x)||isNaN(p.y)||o.push([+p.x,+p.y])});var a=[],s=[];(function(c,p,d){if(c.length!==0){for(var f=c[0],g=f[0],y=f[0],v=f[1],m=f[1],x=1;x<c.length;x++)f=c[x],g=kt(g,f[0]),y=Lt(y,f[0]),v=kt(v,f[1]),m=Lt(m,f[1]);p[0]=g,p[1]=v,d[0]=y,d[1]=m}})(o,a,s);var l=this._min,u=this._max;s[0]-a[0]==0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]==0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var h=e.coordinateSystem=new rf;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),h.setCenter(e.get("center"),i),h.setZoom(e.get("zoom")),this.group.attr({x:h.x,y:h.y,scaleX:h.scaleX,scaleY:h.scaleY}),this._min=a,this._max=s},t.prototype._updateController=function(e,i,r){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,h,c){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(h,c)&&!Qd(u,r,e)}),a.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){nw(s,u.dx,u.dy),r.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){iw(s,u.scale,u.originX,u.originY),r.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(e),r.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var i=e.getData(),r=this._getNodeGlobalScale(e);i.eachItemGraphicEl(function(o,a){o.setSymbolScale(r)})},t.prototype._getNodeGlobalScale=function(e){var i=e.coordinateSystem;if(i.type!=="view")return 1;var r=this._nodeScaleRatio,o=i.scaleX||1;return((i.getZoom()-1)*r+1)/o},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(at);function Nw(n,t){var e=n.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function zw(n,t,e,i,r){var o=!e,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",h=n.tree.root,c=a.parentNode===h?a:a.parentNode||a,p=n.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?((e=new Nu(n,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,e.y=f.y):e.updateData(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=g.rawX,e.__radialRawY=g.rawY,i.add(e),n.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,ze(e,{x:g.x,y:g.y},r);var y=e.getSymbolPath();if(r.get("layout")==="radial"){var v=h.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(g.x===m.x&&a.isExpand===!0&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(_=Math.atan2(w.y-m.y,w.x-m.x))<0&&(_=2*Math.PI+_),(b=w.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-m.y,g.x-m.x))<0&&(_=2*Math.PI+_),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(b=g.x<m.x)&&(_-=Math.PI):(b=g.x>m.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),T=M.get("rotate"),I=T*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:T==null?-_:I,origin:"center"}),C.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),L=D==="relative"?_h(a.getAncestorsIndices(),a.getDescendantIndices()):D==="ancestor"?a.getAncestorsIndices():D==="descendant"?a.getDescendantIndices():null;L&&(ye(e).focus=L),function(R,P,E,k,O,N,B,z){var U=P.getModel(),Z=R.get("edgeShape"),F=R.get("layout"),W=R.getOrient(),K=R.get(["lineStyle","curveness"]),se=R.get("edgeForkPosition"),he=U.getModel("lineStyle").getLineStyle(),ie=k.__edge;if(Z==="curve")P.parentNode&&P.parentNode!==E&&(ie||(ie=k.__edge=new ml({shape:sf(F,W,K,O,O)})),ze(ie,{shape:sf(F,W,K,N,B)},R));else if(Z==="polyline"){if(F!=="orthogonal")throw new Error("The polyline edgeShape can only be used in orthogonal layout");if(P!==E&&P.children&&P.children.length!==0&&P.isExpand===!0){for(var q=P.children,J=[],H=0;H<q.length;H++){var $=q[H].getLayout();J.push([$.x,$.y])}ie||(ie=k.__edge=new wk({shape:{parentPoint:[B.x,B.y],childPoints:[[B.x,B.y]],orient:W,forkPosition:se}})),ze(ie,{shape:{parentPoint:[B.x,B.y],childPoints:J}},R)}}ie&&(Z!=="polyline"||P.isExpand)&&(ie.useStyle(le({strokeNoScale:!0,fill:null},he)),ri(ie,U,"lineStyle"),dl(ie),z.add(ie))}(r,a,h,e,f,d,g,i),e.__edge&&(e.onHoverStateChange=function(R){if(R!=="blur"){var P=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);P&&P.hoverState===fa||pl(e.__edge,R)}})}function Bw(n,t,e,i,r){var o=Vw(t.tree.root,n),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(n.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,h=l.__edge||(a.isExpand===!1||a.children.length===1?u:void 0),c=i.get("edgeShape"),p=i.get("layout"),d=i.get("orient"),f=i.get(["lineStyle","curveness"]);h&&(c==="curve"?Ci(h,{shape:sf(p,d,f,s,s),style:{opacity:0}},i,{cb:function(){e.remove(h)},removeOpt:r}):c==="polyline"&&i.get("layout")==="orthogonal"&&Ci(h,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){e.remove(h)},removeOpt:r}))}}function Vw(n,t){for(var e,i=t.parentNode===n?t:t.parentNode||t;(e=i.getLayout())==null;)i=i.parentNode===n?i:i.parentNode||i;return{source:i,sourceLayout:e}}function Fw(n,t,e,i,r){var o=n.tree.getNodeByDataIndex(t),a=Vw(n.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Ci(e,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(e),n.setItemGraphicEl(t,null)},removeOpt:s}),e.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach(function(l){Bw(l,n,i,r,s)}),Bw(o,n,i,r,s)}function sf(n,t,e,i,r){var o,a,s,l,u,h,c,p;if(n==="radial"){u=i.rawX,c=i.rawY,h=r.rawX,p=r.rawY;var d=us(u,c),f=us(u,c+(p-c)*e),g=us(h,p+(c-p)*e),y=us(h,p);return{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,c=i.y,h=r.x,p=r.y,t!=="LR"&&t!=="RL"||(o=u+(h-u)*e,a=c,s=h+(u-h)*e,l=p),t!=="TB"&&t!=="BT"||(o=u,a=c+(p-c)*e,s=h,l=p+(c-p)*e),{x1:u,y1:c,x2:h,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const Sk=bk;var dn=Ne();function Mk(n,t){if(dn(i=this).mainData===i){var e=G({},dn(this).datas);e[this.dataType]=t,Gw(t,e,n)}else lf(t,this.dataType,dn(this).mainData,n);var i;return t}function Tk(n,t){return n.struct&&n.struct.update(),t}function Ik(n,t){return A(dn(t).datas,function(e,i){e!==t&&lf(e.cloneShallow(),i,t,n)}),t}function Ck(n){var t=dn(this).mainData;return n==null||t==null?t:dn(t).datas[n]}function Ak(){var n=dn(this).mainData;return n==null?[{data:n}]:X(Oe(dn(n).datas),function(t){return{type:t,data:dn(n).datas[t]}})}function Gw(n,t,e){dn(n).datas={},A(t,function(i,r){lf(i,r,n,e)})}function lf(n,t,e,i){dn(e).datas[t]=n,dn(n).mainData=e,n.dataType=t,i.struct&&(n[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=n),n.getLinkedData=Ck,n.getLinkedDataAll=Ak}var Dk=function(){function n(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(t,e,i){ae(t)&&(i=e,e=t,t=null),j(t=t||{})&&(t={order:t});var r,o=t.order||"preorder",a=this[t.attr||"children"];o==="preorder"&&(r=e.call(i,this));for(var s=0;!r&&s<a.length;s++)a[s].eachNode(t,e,i);o==="postorder"&&e.call(i,this)},n.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var r=this.children[i];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},n.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,r=i.length;e<r;e++){var o=i[e].getNodeById(t);if(o)return o}},n.prototype.contains=function(t){if(t===this)return!0;for(var e=0,i=this.children,r=i.length;e<r;e++){var o=i[e].contains(t);if(o)return o}},n.prototype.getAncestors=function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},n.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},n.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},n.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},n.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},n.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},n.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},n.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},n}(),kk=function(){function n(t){this.type="tree",this._nodes=[],this.hostModel=t}return n.prototype.eachNode=function(t,e,i){this.root.eachNode(t,e,i)},n.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},n.prototype.getNodeById=function(t){return this.root.getNodeById(t)},n.prototype.update=function(){for(var t=this.data,e=this._nodes,i=0,r=e.length;i<r;i++)e[i].dataIndex=-1;for(i=0,r=t.count();i<r;i++)e[t.getRawIndex(i)].dataIndex=i},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(t,e,i){var r=new n(e),o=[],a=1;(function p(d,f){var g=d.value;a=Math.max(a,Y(g)?g.length:1),o.push(d);var y=new Dk(Qt(d.name,""),r);f?function(x,_){var b=_.children;x.parentNode!==_&&(b.push(x),x.parentNode=_)}(y,f):r.root=y,r._nodes.push(y);var v=d.children;if(v)for(var m=0;m<v.length;m++)p(v[m],y)})(t),r.root.updateDepthAndHeight(0);var s,l,u,h=xu(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,c=new Ja(h,e);return c.initData(o),i&&i(c),l=(s={mainData:c,struct:r,structAttr:"tree"}).mainData,(u=s.datas)||(u={main:l},s.datasAttr={main:"data"}),s.datas=s.mainData=null,Gw(l,u,s),A(u,function(p){A(l.TRANSFERABLE_METHODS,function(d){p.wrapMethod(d,xe(Mk,s))})}),l.wrapMethod("cloneShallow",xe(Ik,s)),A(l.CHANGABLE_METHODS,function(p){l.wrapMethod(p,xe(Tk,s))}),ue(u[l.dataType]===l),r.update(),r},n}();const Lk=kk;var Pk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return V(t,n),t.prototype.getInitialData=function(e){var i={name:e.name,children:e.data},r=e.leaves||{},o=new He(r,this,this.ecModel),a=Lk.createTree(i,this,function(u){u.wrapMethod("getItemModel",function(h,c){var p=a.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(h.parentModel=o),h})}),s=0;a.eachNode("preorder",function(u){u.depth>s&&(s=u.depth)});var l=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return a.root.eachNode("preorder",function(u){var h=u.hostTree.data.getRawDataItem(u.dataIndex);u.isExpand=h&&h.collapsed!=null?!h.collapsed:u.depth<=l}),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,i,r){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Wn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=function(o,a){for(var s=[];o;){var l=o.dataIndex;s.push({name:o.name,dataIndex:l,value:a.getRawValue(l)}),o=o.parentNode}return s.reverse(),s}(r,this),i.collapsed=!r.isExpand,i},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Mt);const Ok=Pk;function hs(n,t){for(var e,i=[n];e=i.pop();)if(t(e),e.isExpand){var r=e.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function Rk(n,t){n.eachSeriesByType("tree",function(e){(function(i,r){var o=function(w,S){return St(w.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()})}(i,r);i.layoutInfo=o;var a=i.get("layout"),s=0,l=0,u=null;a==="radial"?(s=2*Math.PI,l=Math.min(o.height,o.width)/2,u=Ew(function(w,S){return(w.parentNode===S.parentNode?1:2)/w.depth})):(s=o.width,l=o.height,u=Ew());var h=i.getData().tree.root,c=h.children[0];if(c){(function(w){var S=w;S.hierNode={defaultAncestor:null,ancestor:S,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var M,T,I=[S];M=I.pop();)if(T=M.children,M.isExpand&&T.length)for(var C=T.length-1;C>=0;C--){var D=T[C];D.hierNode={defaultAncestor:null,ancestor:D,prelim:0,modifier:0,change:0,shift:0,i:C,thread:null},I.push(D)}})(h),function(w,S,M){for(var T,I=[w],C=[];T=I.pop();)if(C.push(T),T.isExpand){var D=T.children;if(D.length)for(var L=0;L<D.length;L++)I.push(D[L])}for(;T=C.pop();)S(T,M)}(c,gk,u),h.hierNode.modifier=-c.hierNode.prelim,hs(c,yk);var p=c,d=c,f=c;hs(c,function(w){var S=w.getLayout().x;S<p.getLayout().x&&(p=w),S>d.getLayout().x&&(d=w),w.depth>f.depth&&(f=w)});var g=p===d?1:u(p,d)/2,y=g-p.getLayout().x,v=0,m=0,x=0,_=0;if(a==="radial")v=s/(d.getLayout().x+g+y),m=l/(f.depth-1||1),hs(c,function(w){x=(w.getLayout().x+y)*v,_=(w.depth-1)*m;var S=us(x,_);w.setLayout({x:S.x,y:S.y,rawX:x,rawY:_},!0)});else{var b=i.getOrient();b==="RL"||b==="LR"?(m=l/(d.getLayout().x+g+y),v=s/(f.depth-1||1),hs(c,function(w){_=(w.getLayout().x+y)*m,x=b==="LR"?(w.depth-1)*v:s-(w.depth-1)*v,w.setLayout({x,y:_},!0)})):b!=="TB"&&b!=="BT"||(v=s/(d.getLayout().x+g+y),m=l/(f.depth-1||1),hs(c,function(w){x=(w.getLayout().x+y)*v,_=b==="TB"?(w.depth-1)*m:l-(w.depth-1)*m,w.setLayout({x,y:_},!0)}))}}})(e,t)})}function Ek(n){n.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(i){var r=i.getModel().getModel("itemStyle").getItemStyle();G(e.ensureUniqueItemVisual(i.dataIndex,"style"),r)})})}var cs=A,Nk=ee,Ku=-1,uf=function(){function n(t){var e=t.mappingMethod,i=t.type,r=this.option=oe(t);this.type=i,this.mappingMethod=e,this._normalizeData=zk[e];var o=n.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],e==="piecewise"?(hf(r),function(a){var s=a.pieceList;a.hasSpecialVisual=!1,A(s,function(l,u){l.originIndex=u,l.visual!=null&&(a.hasSpecialVisual=!0)})}(r)):e==="category"?r.categories?function(a){var s=a.categories,l=a.categoryMap={},u=a.visual;if(cs(s,function(p,d){l[p]=d}),!Y(u)){var h=[];ee(u)?cs(u,function(p,d){var f=l[d];h[f??Ku]=p}):h[Ku]=u,u=Ww(a,h)}for(var c=s.length-1;c>=0;c--)u[c]==null&&(delete l[s[c]],s.pop())}(r):hf(r,!0):(ue(e!=="linear"||r.dataExtent),hf(r))}return n.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},n.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},n.listVisualTypes=function(){return Oe(n.visualHandlers)},n.isValidType=function(t){return n.visualHandlers.hasOwnProperty(t)},n.eachVisual=function(t,e,i){ee(t)?A(t,e,i):e.call(i,t)},n.mapVisual=function(t,e,i){var r,o=Y(t)?[]:ee(t)?{}:(r=!0,null);return n.eachVisual(t,function(a,s){var l=e.call(i,a,s);r?o=l:o[s]=l}),o},n.retrieveVisuals=function(t){var e,i={};return t&&cs(n.visualHandlers,function(r,o){t.hasOwnProperty(o)&&(i[o]=t[o],e=!0)}),e?i:null},n.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else{if(!Nk(t))return[];var e=[];cs(t,function(i,r){e.push(r)}),t=e}return t.sort(function(i,r){return r==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},n.dependsOn=function(t,e){return e==="color"?!(!t||t.indexOf(e)!==0):t===e},n.findPieceIndex=function(t,e,i){for(var r,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(l!=null){if(l===t||j(l)&&l===t+"")return a;i&&p(l,a)}}for(a=0,s=e.length;a<s;a++){var u=e[a],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if($u(c[1],t,h[1]))return a}else if(h[1]===1/0){if($u(c[0],h[0],t))return a}else if($u(c[0],h[0],t)&&$u(c[1],t,h[1]))return a;i&&p(h[0],a),i&&p(h[1],a)}}if(i)return t===1/0?e.length-1:t===-1/0?0:r;function p(d,f){var g=Math.abs(d-t);g<o&&(o=g,r=f)}},n.visualHandlers={color:{applyVisual:ps("color"),getColorMapper:function(){var t=this.option;return Q(t.mappingMethod==="category"?function(e,i){return!i&&(e=this._normalizeData(e)),ds.call(this,e)}:function(e,i,r){var o=!!r;return!i&&(e=this._normalizeData(e)),r=$o(e,t.parsedVisual,r),o?r:vn(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return vn($o(t,this.option.parsedVisual),"rgba")},category:ds,piecewise:function(t,e){var i=pf.call(this,e);return i==null&&(i=vn($o(t,this.option.parsedVisual),"rgba")),i},fixed:Or}},colorHue:Ju(function(t,e){return Gs(t,e)}),colorSaturation:Ju(function(t,e){return Gs(t,null,e)}),colorLightness:Ju(function(t,e){return Gs(t,null,null,e)}),colorAlpha:Ju(function(t,e){return iy(t,e)}),decal:{applyVisual:ps("decal"),_normalizedToVisual:{linear:null,category:ds,piecewise:null,fixed:null}},opacity:{applyVisual:ps("opacity"),_normalizedToVisual:cf([0,1])},liftZ:{applyVisual:ps("liftZ"),_normalizedToVisual:{linear:Or,category:Or,piecewise:Or,fixed:Or}},symbol:{applyVisual:function(t,e,i){i("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Hw,category:ds,piecewise:function(t,e){var i=pf.call(this,e);return i==null&&(i=Hw.call(this,t)),i},fixed:Or}},symbolSize:{applyVisual:ps("symbolSize"),_normalizedToVisual:cf([0,1])}},n}();function hf(n,t){var e=n.visual,i=[];ee(e)?cs(e,function(r){i.push(r)}):e!=null&&i.push(e),t||i.length!==1||{color:1,symbol:1}.hasOwnProperty(n.type)||(i[1]=i[0]),Ww(n,i)}function Ju(n){return{applyVisual:function(t,e,i){var r=this.mapValueToVisual(t);i("color",n(e("color"),r))},_normalizedToVisual:cf([0,1])}}function Hw(n){var t=this.option.visual;return t[Math.round(Ae(n,[0,1],[0,t.length-1],!0))]||{}}function ps(n){return function(t,e,i){i(n,this.mapValueToVisual(t))}}function ds(n){var t=this.option.visual;return t[this.option.loop&&n!==Ku?n%t.length:n]}function Or(){return this.option.visual[0]}function cf(n){return{linear:function(t){return Ae(t,n,this.option.visual,!0)},category:ds,piecewise:function(t,e){var i=pf.call(this,e);return i==null&&(i=Ae(t,n,this.option.visual,!0)),i},fixed:Or}}function pf(n){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=e[uf.findPieceIndex(n,e)];if(i&&i.visual)return i.visual[this.type]}}function Ww(n,t){return n.visual=t,n.type==="color"&&(n.parsedVisual=X(t,function(e){var i=At(e);return i||Je("'"+e+"' is an illegal color, fallback to '#000000'",!0),i||[0,0,0,1]})),t}var zk={linear:function(n){return Ae(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var t=this.option.pieceList,e=uf.findPieceIndex(n,t,!0);if(e!=null)return Ae(e,[0,t.length-1],[0,1],!0)},category:function(n){var t=this.option.categories?this.option.categoryMap[n]:n;return t??Ku},fixed:st};function $u(n,t,e){return n?t<=e:t<e}const Nt=uf;var Bk=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Vk=function(n){function t(e){var i=n.call(this,e)||this;return i.type="pointer",i}return V(t,n),t.prototype.getDefaultShape=function(){return new Bk},t.prototype.buildPath=function(e,i){var r=Math.cos,o=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-r(l)*s*(s>=a/3?1:2),h=i.y-o(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,e.moveTo(u,h),e.lineTo(i.x+r(l)*s,i.y+o(l)*s),e.lineTo(i.x+r(i.angle)*a,i.y+o(i.angle)*a),e.lineTo(i.x-r(l)*s,i.y-o(l)*s),e.lineTo(u,h)},t}(De);const Fk=Vk;function Qu(n,t){var e=n==null?"":n+"";return t&&(j(t)?e=t.replace("{value}",e):ae(t)&&(e=t(n))),e}var Gk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this.group.removeAll();var o=e.get(["axisLine","lineStyle","color"]),a=function(s,l){var u=s.get("center"),h=l.getWidth(),c=l.getHeight(),p=Math.min(h,c);return{cx:ne(u[0],l.getWidth()),cy:ne(u[1],l.getHeight()),r:ne(s.get("radius"),p/2)}}(e,r);this._renderMain(e,i,r,o,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,i,r,o,a){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),p=c.get("roundCap")?Bu:nn,d=c.get("show"),f=c.getModel("lineStyle"),g=f.get("width"),y=[u,h];Oc(y,!l);for(var v=(h=y[1])-(u=y[0]),m=u,x=[],_=0;d&&_<o.length;_++){var b=new p({shape:{startAngle:m,endAngle:h=u+v*Math.min(Math.max(o[_][0],0),1),cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-g,r:a.r},silent:!0});b.setStyle({fill:o[_][1]}),b.setStyle(f.getLineStyle(["color","width"])),x.push(b),m=h}x.reverse(),A(x,function(S){return s.add(S)});var w=function(S){if(S<=0)return o[0][1];var M;for(M=0;M<o.length;M++)if(o[M][0]>=S&&(M===0?0:o[M-1][0])<S)return o[M][1];return o[M-1][1]};this._renderTicks(e,i,r,w,a,u,h,l,g),this._renderTitleAndDetail(e,i,r,w,a),this._renderAnchor(e,a),this._renderPointer(e,i,r,w,a,u,h,l,g)},t.prototype._renderTicks=function(e,i,r,o,a,s,l,u,h){for(var c,p,d=this.group,f=a.cx,g=a.cy,y=a.r,v=+e.get("min"),m=+e.get("max"),x=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),S=_.get("splitNumber"),M=ne(x.get("length"),y),T=ne(_.get("length"),y),I=s,C=(l-s)/w,D=C/S,L=x.getModel("lineStyle").getLineStyle(),R=_.getModel("lineStyle").getLineStyle(),P=x.get("distance"),E=0;E<=w;E++){if(c=Math.cos(I),p=Math.sin(I),x.get("show")){var k=new wt({shape:{x1:c*(y-(O=P?P+h:h))+f,y1:p*(y-O)+g,x2:c*(y-M-O)+f,y2:p*(y-M-O)+g},style:L,silent:!0});L.stroke==="auto"&&k.setStyle({stroke:o(E/w)}),d.add(k)}if(b.get("show")){var O=b.get("distance")+P,N=Qu(Xe(E/w*(m-v)+v),b.get("formatter")),B=o(E/w),z=c*(y-M-O)+f,U=p*(y-M-O)+g,Z=b.get("rotate"),F=0;Z==="radial"?(F=-I+2*Math.PI)>Math.PI/2&&(F+=Math.PI):Z==="tangential"?F=-I-Math.PI/2:Re(Z)&&(F=Z*Math.PI/180),F===0?d.add(new ke({style:it(b,{text:N,x:z,y:U,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:B}),silent:!0})):d.add(new ke({style:it(b,{text:N,x:z,y:U,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:z,originY:U,rotation:F}))}if(_.get("show")&&E!==w){O=(O=_.get("distance"))?O+h:h;for(var W=0;W<=S;W++){c=Math.cos(I),p=Math.sin(I);var K=new wt({shape:{x1:c*(y-O)+f,y1:p*(y-O)+g,x2:c*(y-T-O)+f,y2:p*(y-T-O)+g},silent:!0,style:R});R.stroke==="auto"&&K.setStyle({stroke:o((E+W/S)/w)}),d.add(K),I+=D}I-=D}else I+=C}},t.prototype._renderPointer=function(e,i,r,o,a,s,l,u,h){var c=this.group,p=this._data,d=this._progressEls,f=[],g=e.get(["pointer","show"]),y=e.getModel("progress"),v=y.get("show"),m=e.getData(),x=m.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),w=[_,b],S=[s,l];function M(I,C){var D,L=m.getItemModel(I).getModel("pointer"),R=ne(L.get("width"),a.r),P=ne(L.get("length"),a.r),E=e.get(["pointer","icon"]),k=L.get("offsetCenter"),O=ne(k[0],a.r),N=ne(k[1],a.r),B=L.get("keepAspect");return(D=E?ut(E,O-R/2,N-P,R,P,null,B):new Fk({shape:{angle:-Math.PI/2,width:R,r:P,x:O,y:N}})).rotation=-(C+Math.PI/2),D.x=a.cx,D.y=a.cy,D}function T(I,C){var D=y.get("roundCap")?Bu:nn,L=y.get("overlap"),R=L?y.get("width"):h/m.count(),P=L?a.r-R:a.r-(I+1)*R,E=L?a.r:a.r-I*R,k=new D({shape:{startAngle:s,endAngle:C,cx:a.cx,cy:a.cy,clockwise:u,r0:P,r:E}});return L&&(k.z2=b-m.get(x,I)%b),k}(v||g)&&(m.diff(p).add(function(I){var C=m.get(x,I);if(g){var D=M(I,s);et(D,{rotation:-((isNaN(+C)?S[0]:Ae(C,w,S,!0))+Math.PI/2)},e),c.add(D),m.setItemGraphicEl(I,D)}if(v){var L=T(I,s),R=y.get("clip");et(L,{shape:{endAngle:Ae(C,w,S,R)}},e),c.add(L),Nc(e.seriesIndex,m.dataType,I,L),f[I]=L}}).update(function(I,C){var D=m.get(x,I);if(g){var L=p.getItemGraphicEl(C),R=L?L.rotation:s,P=M(I,R);P.rotation=R,ze(P,{rotation:-((isNaN(+D)?S[0]:Ae(D,w,S,!0))+Math.PI/2)},e),c.add(P),m.setItemGraphicEl(I,P)}if(v){var E=d[C],k=T(I,E?E.shape.endAngle:s),O=y.get("clip");ze(k,{shape:{endAngle:Ae(D,w,S,O)}},e),c.add(k),Nc(e.seriesIndex,m.dataType,I,k),f[I]=k}}).execute(),m.each(function(I){var C=m.getItemModel(I),D=C.getModel("emphasis"),L=D.get("focus"),R=D.get("blurScope"),P=D.get("disabled");if(g){var E=m.getItemGraphicEl(I),k=m.getItemVisual(I,"style"),O=k.fill;if(E instanceof Gt){var N=E.style;E.useStyle(G({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},k))}else E.useStyle(k),E.type!=="pointer"&&E.setColor(O);E.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",o(Ae(m.get(x,I),w,[0,1],!0))),E.z2EmphasisLift=0,ri(E,C),zn(E,L,R,P)}if(v){var B=f[I];B.useStyle(m.getItemVisual(I,"style")),B.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,ri(B,C),zn(B,L,R,P)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,i){var r=e.getModel("anchor");if(r.get("show")){var o=r.get("size"),a=r.get("icon"),s=r.get("offsetCenter"),l=r.get("keepAspect"),u=ut(a,i.cx-o/2+ne(s[0],i.r),i.cy-o/2+ne(s[1],i.r),o,o,null,l);u.z2=r.get("showAbove")?1:0,u.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,i,r,o,a){var s=this,l=e.getData(),u=l.mapDimension("value"),h=+e.get("min"),c=+e.get("max"),p=new ge,d=[],f=[],g=e.isAnimationEnabled(),y=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){d[v]=new ke({silent:!0}),f[v]=new ke({silent:!0})}).update(function(v,m){d[v]=s._titleEls[m],f[v]=s._detailEls[m]}).execute(),l.each(function(v){var m=l.getItemModel(v),x=l.get(u,v),_=new ge,b=o(Ae(x,[h,c],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var S=w.get("offsetCenter"),M=a.cx+ne(S[0],a.r),T=a.cy+ne(S[1],a.r);(k=d[v]).attr({z2:y?0:2,style:it(w,{x:M,y:T,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(k)}var I=m.getModel("detail");if(I.get("show")){var C=I.get("offsetCenter"),D=a.cx+ne(C[0],a.r),L=a.cy+ne(C[1],a.r),R=ne(I.get("width"),a.r),P=ne(I.get("height"),a.r),E=e.get(["progress","show"])?l.getItemVisual(v,"style").fill:b,k=f[v],O=I.get("formatter");k.attr({z2:y?0:2,style:it(I,{x:D,y:L,text:Qu(x,O),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:E})}),vm(k,{normal:I},x,function(N){return Qu(N,O)}),g&&mm(k,v,l,e,{getFormattedLabel:function(N,B,z,U,Z,F){return Qu(F?F.interpolatedValue:x,O)}}),_.add(k)}p.add(_)}),this.group.add(p),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(at);const Hk=Gk,Wk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return V(t,n),t.prototype.getInitialData=function(e,i){return Wu(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Mt);function Yk(n){(function(t){if(!t.parallel){var e=!1;A(t.series,function(i){i&&i.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}})(n),function(t){var e=Qe(t.parallelAxis);A(e,function(i){if(ee(i)){var r=i.parallelIndex||0,o=Qe(t.parallel)[r];o&&o.parallelAxisDefault&&pe(i,o.parallelAxisDefault,!1)}})}(n)}var Xk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this._model=e,this._api=r,this._handlers||(this._handlers={},A(Uk,function(o,a){r.getZr().on(a,this._handlers[a]=Q(o,this))},this)),Fa(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){Ga(this,"_throttledDispatchExpand"),A(this._handlers,function(r,o){i.getZr().off(o,r)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(G({type:"parallelAxisExpand"},e))},t.type="parallel",t}(je),Uk={mousedown:function(n){df(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var t=this._mouseDownPoint;if(df(this,"click")&&t){var e=[n.offsetX,n.offsetY];if(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!this._mouseDownPoint&&df(this,"mousemove")){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=e.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function df(n,t){var e=n._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const Zk=Xk,jk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var i=this.option;e&&pe(i,e,!0),this._initDimensions()},t.prototype.contains=function(e,i){var r=e.get("parallelIndex");return r!=null&&i.getComponent("parallel",r)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){e.hasOwnProperty(i)&&(this.option[i]=e[i])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],i=this.parallelAxisIndex=[];A(We(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this),function(r){e.push("dim"+r.get("dim")),i.push(r.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Te);var qk=function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.type=o||"value",s.axisIndex=a,s}return V(t,n),t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Yn);const Kk=qk;function Rr(n,t,e,i,r,o){n=n||0;var a=e[1]-e[0];if(r!=null&&(r=ko(r,[0,a])),o!=null&&(o=Math.max(o,r??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=ko(s,[0,a]),r=o=ko(s,[r,o]),i=0}t[0]=ko(t[0],e),t[1]=ko(t[1],e);var l=ff(t,i);t[i]+=n;var u,h=r||0,c=e.slice();return l.sign<0?c[0]+=h:c[1]-=h,t[i]=ko(t[i],c),u=ff(t,i),r!=null&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=ff(t,i),o!=null&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function ff(n,t){var e=n[t]-n[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ko(n,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,n))}var gf=A,Yw=Math.min,Xw=Math.max,Uw=Math.floor,Jk=Math.ceil,Zw=Xe,$k=Math.PI,Qk=function(){function n(t,e,i){this.type="parallel",this._axesMap=te(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return n.prototype._init=function(t,e,i){var r=t.dimensions,o=t.parallelAxisIndex;gf(r,function(a,s){var l=o[s],u=e.getComponent("parallelAxis",l),h=this._axesMap.set(a,new Kk(a,Au(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},n.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,r=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],s=t[o];return a>=i&&a<=i+e.axisLength&&s>=r&&s<=r+e.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var r=i.getData();gf(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(r,r.mapDimension(o)),Ao(a.scale,a.model)},this)}},this)},n.prototype.resize=function(t,e){this._rect=St(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var t,e=this._model,i=this._rect,r=["x","y"],o=["width","height"],a=e.get("layout"),s=a==="horizontal"?0:1,l=i[o[s]],u=[0,l],h=this.dimensions.length,c=eh(e.get("axisExpandWidth"),u),p=eh(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>p&&p>1&&c>0&&l>0,f=e.get("axisExpandWindow");f?(t=eh(f[1]-f[0],u),f[1]=f[0]+t):(t=eh(c*(p-1),u),(f=[c*(e.get("axisExpandCenter")||Uw(h/2))-t/2])[1]=f[0]+t);var g=(l-t)/(h-p);g<3&&(g=0);var y=[Uw(Zw(f[0]/c,1))+1,Jk(Zw(f[1]/c,1))-1],v=g/c*f[0];return{layout:a,pixelDimIndex:s,layoutBase:i[r[s]],layoutLength:l,axisBase:i[r[1-s]],axisLength:i[o[1-s]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:h,winInnerIndices:y,axisExpandWindow0Pos:v}},n.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;e.each(function(a){var s=[0,r.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),gf(i,function(a,s){var l=(r.axisExpandable?tL:eL)(s,r),u={horizontal:{x:l.position,y:r.axisLength},vertical:{x:0,y:l.position}},h={horizontal:$k/2,vertical:0},c=[u[o].x+t.x,u[o].y+t.y],p=h[o],d=[1,0,0,1,0,0];Zi(d,d,p),Ui(d,d,c),this._axesLayout[a]={position:c,rotation:p,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(t){return this._axesMap.get(t)},n.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},n.prototype.eachActiveState=function(t,e,i,r){i==null&&(i=0),r==null&&(r=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];A(a,function(g){s.push(t.mapDimension(g)),l.push(o.get(g).model)});for(var u=this.hasAxisBrushed(),h=i;h<r;h++){var c=void 0;if(u){c="active";for(var p=t.getValues(s,h),d=0,f=a.length;d<f;d++)if(l[d].getActiveState(p[d])==="inactive"){c="inactive";break}}else c="normal";e(c,h)}},n.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,i=!1,r=0,o=t.length;r<o;r++)e.get(t[r]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(t,e){return Fn([t,0],this._axesLayout[e].transform)},n.prototype.getAxisLayout=function(t){return oe(this._axesLayout[t])},n.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,r=e.axisExpandWindow.slice(),o=r[1]-r[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var s,l=t[i]-e.layoutBase-e.axisExpandWindow0Pos,u="slide",h=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),p=c[0]!=null;if(h)p&&h&&l<o*c[0]?(u="jump",s=l-o*c[2]):p&&h&&l>o*(1-c[0])?(u="jump",s=l-o*(1-c[2])):(s=l-o*c[1])>=0&&(s=l-o*(1-c[1]))<=0&&(s=0),(s*=e.axisExpandWidth/h)?Rr(s,r,a,"all"):u="none";else{var d=r[1]-r[0];(r=[Xw(0,a[1]*l/d-d/2)])[1]=Yw(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:u}},n}();function eh(n,t){return Yw(Xw(n,t[0]),t[1])}function eL(n,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*n,axisNameAvailableWidth:e,axisLabelShow:!0}}function tL(n,t){var e,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,h=!1;return n<l[0]?(e=n*s,i=s):n<=l[1]?(e=t.axisExpandWindow0Pos+n*o-t.axisExpandWindow[0],u=o,h=!0):(e=r-(a-1-n)*s,i=s),{position:e,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}const nL=Qk,iL={create:function(n,t){var e=[];return n.eachComponent("parallel",function(i,r){var o=new nL(i,n,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,e.push(o)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var r=i.getReferringComponents("parallel",nt).models[0];i.coordinateSystem=r.coordinateSystem}}),e}};var jw=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return V(t,n),t.prototype.getAreaSelectStyle=function(){return $r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var i=this.activeIntervals=oe(e);if(i)for(var r=i.length-1;r>=0;r--)Qn(i[r])},t.prototype.getActiveState=function(e){var i=this.activeIntervals;if(!i.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(i.length===1){var r=i[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var o=0,a=i.length;o<a;o++)if(i[o][0]<=e&&e<=i[o][1])return"active";return"inactive"},t}(Te);ct(jw,es);const qw=jw;var Er=!0,fs=Math.min,Lo=Math.max,rL=Math.pow,oL=1e4,aL=6,sL=6,Kw="globalPan",lL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},uL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Jw={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},hL=0,cL=function(n){function t(e){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},ue(e),i._zr=e,i.group=new ge,i._uid="brushController_"+hL++,A(dL,function(r,o){this._handlers[o]=Q(r,this)},i),i}return V(t,n),t.prototype.enableBrush=function(e){return ue(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||function(r,o,a){qd(r)[o]=a}(i,Kw,this._uid),A(this._handlers,function(r,o){i.on(o,r)}),this._brushType=e.brushType,this._brushOption=pe(oe(Jw),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;(function(i,r,o){var a=qd(i);a[r]===o&&(a[r]=null)})(e,Kw,this._uid),A(this._handlers,function(i,r){e.off(r,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};A(e,function(r){i[r.panelId]=oe(r)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._mounted=!0,this._enableGlobalPan=e.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=i.getLocalTransform(),this},t.prototype.updateCovers=function(e){ue(this._mounted),e=X(e,function(h){return pe(oe(Jw),h,!0)});var i="\0-brush-index-",r=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new fd(r,e,function(h,c){return l(h.__brushOption,c)},l).add(u).update(u).remove(function(h){r[h]!==s&&a.group.remove(r[h])}).execute(),this;function l(h,c){return(h.id!=null?h.id:i+c)+"-"+h.brushType}function u(h,c){var p=e[h];if(c!=null&&r[c]===s)o[h]=r[c];else{var d=o[h]=c!=null?(r[c].__brushOption=p,r[c]):Qw(a,$w(a,p));yf(a,d)}}},t.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),xf(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Zt);function $w(n,t){var e=th[t.brushType].createCover(n,t);return e.__brushOption=t,tb(e,t),n.group.add(e),e}function Qw(n,t){var e=vf(t);return e.endCreating&&(e.endCreating(n,t),tb(t,t.__brushOption)),t}function eb(n,t){var e=t.__brushOption;vf(t).updateCoverShape(n,t,e.range,e)}function tb(n,t){var e=t.z;e==null&&(e=oL),n.traverse(function(i){i.z=e,i.z2=e})}function yf(n,t){vf(t).updateCommon(n,t),eb(n,t)}function vf(n){return th[n.__brushOption.brushType]}function mf(n,t,e){var i,r=n._panels;if(!r)return Er;var o=n._transform;return A(r,function(a){a.isTargetByCursor(t,e,o)&&(i=a)}),i}function nb(n,t){var e=n._panels;if(!e)return Er;var i=t.__brushOption.panelId;return i!=null?e[i]:Er}function xf(n){var t=n._covers,e=t.length;return A(t,function(i){n.group.remove(i)},n),t.length=0,!!e}function Nr(n,t){var e=X(n._covers,function(i){var r=i.__brushOption,o=oe(r.range);return{brushType:r.brushType,panelId:r.panelId,range:o}});n.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function ib(n){var t=n.length-1;return t<0&&(t=0),[n[0],n[t]]}function rb(n,t,e,i){var r=new ge;return r.add(new Ie({name:"main",style:wf(e),silent:!0,draggable:!0,cursor:"move",drift:xe(sb,n,t,r,["n","s","w","e"]),ondragend:xe(Nr,t,{isEnd:!0})})),A(i,function(o){r.add(new Ie({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xe(sb,n,t,r,o),ondragend:xe(Nr,t,{isEnd:!0})}))}),r}function ob(n,t,e,i){var r=i.brushStyle.lineWidth||0,o=Lo(r,sL),a=e[0][0],s=e[1][0],l=a-r/2,u=s-r/2,h=e[0][1],c=e[1][1],p=h-o+r/2,d=c-o+r/2,f=h-a,g=c-s,y=f+r,v=g+r;di(n,t,"main",a,s,f,g),i.transformable&&(di(n,t,"w",l,u,o,v),di(n,t,"e",p,u,o,v),di(n,t,"n",l,u,y,o),di(n,t,"s",l,d,y,o),di(n,t,"nw",l,u,o,o),di(n,t,"ne",p,u,o,o),di(n,t,"sw",l,d,o,o),di(n,t,"se",p,d,o,o))}function _f(n,t){var e=t.__brushOption,i=e.transformable,r=t.childAt(0);r.useStyle(wf(e)),r.attr({silent:!i,cursor:i?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?bf(n,o[0]):function(l,u){var h=[bf(l,u[0]),bf(l,u[1])];return(h[0]==="e"||h[0]==="w")&&h.reverse(),h.join("")}(n,o);a&&a.attr({silent:!i,invisible:!i,cursor:i?uL[s]+"-resize":null})})}function di(n,t,e,i,r,o,a){var s=t.childOfName(e);s&&s.setShape(function(l){var u=fs(l[0][0],l[1][0]),h=fs(l[0][1],l[1][1]),c=Lo(l[0][0],l[1][0]),p=Lo(l[0][1],l[1][1]);return{x:u,y:h,width:c-u,height:p-h}}(Sf(n,t,[[i,r],[i+o,r+a]])))}function wf(n){return le({strokeNoScale:!0},n.brushStyle)}function ab(n,t,e,i){var r=[fs(n,e),fs(t,i)],o=[Lo(n,e),Lo(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function bf(n,t){var e=Cl({w:"left",e:"right",n:"top",s:"bottom"}[t],function(i){return Ai(i.group)}(n));return{left:"w",right:"e",top:"n",bottom:"s"}[e]}function sb(n,t,e,i,r,o){var a=e.__brushOption,s=n.toRectRange(a.range),l=lb(t,r,o);A(i,function(u){var h=lL[u];s[h[0]][h[1]]+=l[h[0]]}),a.range=n.fromRectRange(ab(s[0][0],s[1][0],s[0][1],s[1][1])),yf(t,e),Nr(t,{isEnd:!1})}function pL(n,t,e,i){var r=t.__brushOption.range,o=lb(n,e,i);A(r,function(a){a[0]+=o[0],a[1]+=o[1]}),yf(n,t),Nr(n,{isEnd:!1})}function lb(n,t,e){var i=n.group,r=i.transformCoordToLocal(t,e),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Sf(n,t,e){var i=nb(n,t);return i&&i!==Er?i.clipPath(e,n._transform):oe(e)}function Mf(n){var t=n.event;t.preventDefault&&t.preventDefault()}function Tf(n,t,e){return n.childOfName("main").contain(t,e)}function ub(n,t,e,i){var r,o=n._creatingCover,a=n._creatingPanel,s=n._brushOption;if(n._track.push(e.slice()),function(h){var c=h._track;if(!c.length)return!1;var p=c[c.length-1],d=c[0],f=p[0]-d[0],g=p[1]-d[1];return rL(f*f+g*g,.5)>aL}(n)||o){if(a&&!o){s.brushMode==="single"&&xf(n);var l=oe(s);l.brushType=hb(l.brushType,a),l.panelId=a===Er?null:a.panelId,o=n._creatingCover=$w(n,l),n._covers.push(o)}if(o){var u=th[hb(n._brushType,a)];o.__brushOption.range=u.getCreatingRange(Sf(n,o,n._track)),i&&(Qw(n,o),u.updateCommon(n,o)),eb(n,o),r={isEnd:i}}}else i&&s.brushMode==="single"&&s.removeOnClick&&mf(n,t,e)&&xf(n)&&(r={isEnd:i,removeOnClick:!0});return r}function hb(n,t){return n==="auto"?(ue(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):n}var dL={mousedown:function(n){if(this._dragging)cb(this,n);else if(!n.target||!n.target.draggable){Mf(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null,(this._creatingPanel=mf(this,n,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var t=n.offsetX,e=n.offsetY,i=this.group.transformCoordToLocal(t,e);if(function(o,a,s){if(o._brushType&&!function(d,f,g){var y=d._zr;return f<0||f>y.getWidth()||g<0||g>y.getHeight()}(o,a.offsetX,a.offsetY)){var l=o._zr,u=o._covers,h=mf(o,a,s);if(!o._dragging)for(var c=0;c<u.length;c++){var p=u[c].__brushOption;if(h&&(h===Er||p.panelId===h.panelId)&&th[p.brushType].contain(u[c],s[0],s[1]))return}h&&l.setCursorStyle("crosshair")}}(this,n,i),this._dragging){Mf(n);var r=ub(this,n,i,!1);r&&Nr(this,r)}},mouseup:function(n){cb(this,n)}};function cb(n,t){if(n._dragging){Mf(t);var e=t.offsetX,i=t.offsetY,r=n.group.transformCoordToLocal(e,i),o=ub(n,t,r,!0);n._dragging=!1,n._track=[],n._creatingCover=null,o&&Nr(n,o)}}var th={lineX:pb(0),lineY:pb(1),rect:{createCover:function(n,t){function e(i){return i}return rb({toRectRange:e,fromRectRange:e},n,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var t=ib(n);return ab(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(n,t,e,i){ob(n,t,e,i)},updateCommon:_f,contain:Tf},polygon:{createCover:function(n,t){var e=new ge;return e.add(new _n({name:"main",style:wf(t),silent:!0})),e},getCreatingRange:function(n){return n},endCreating:function(n,t){t.remove(t.childAt(0)),t.add(new Vn({name:"main",draggable:!0,drift:xe(pL,n,t),ondragend:xe(Nr,n,{isEnd:!0})}))},updateCoverShape:function(n,t,e,i){t.childAt(0).setShape({points:Sf(n,t,e)})},updateCommon:_f,contain:Tf}};function pb(n){return{createCover:function(t,e){return rb({toRectRange:function(i){var r=[i,[0,100]];return n&&r.reverse(),r},fromRectRange:function(i){return i[n]}},t,e,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(t){var e=ib(t);return[fs(e[0][n],e[1][n]),Lo(e[0][n],e[1][n])]},updateCoverShape:function(t,e,i,r){var o,a=nb(t,e);if(a!==Er&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(n);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,o];n&&l.reverse(),ob(t,e,l,r)},updateCommon:_f,contain:Tf}}const db=cL;function fb(n){return n=If(n),function(t){return tp(t,n)}}function gb(n,t){return n=If(n),function(e){var i=t??e,r=i?n.width:n.height,o=i?n.x:n.y;return[o,o+(r||0)]}}function yb(n,t,e){var i=If(n);return function(r,o){return i.contain(o[0],o[1])&&!Qd(r,t,e)}}function If(n){return me.create(n)}var fL=["axisLine","axisTickLabel","axisName"],gL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(e,i){n.prototype.init.apply(this,arguments),(this._brushController=new db(i.getZr())).on("brush",Q(this._onBrush,this))},t.prototype.render=function(e,i,r,o){if(!function(f,g,y){return y&&y.type==="axisAreaSelect"&&g.findComponents({mainType:"parallelAxis",query:y})[0]===f}(e,i,o)){this.axisModel=e,this.api=r,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ge,this.group.add(this._axisGroup),e.get("show")){var s=function(f,g){return g.getComponent("parallel",f.get("parallelIndex"))}(e,i),l=s.coordinateSystem,u=e.getAreaSelectStyle(),h=u.width,c=e.axis.dim,p=G({strokeContainThreshold:h},l.getAxisLayout(c)),d=new Bi(e,p);A(fL,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(p,u,e,s,h,r),Al(a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,i,r,o,a,s){var l=r.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,.1*Math.abs(u)),c=me.create({x:l[0],y:-a/2,width:u,height:a});c.x-=h,c.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:fb(c),isTargetByCursor:yb(c,s,o),getLinearBrushOtherExtent:gb(c,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(function(p){var d=p.axis;return X(p.activeIntervals,function(f){return{brushType:"lineX",panelId:"pl",range:[d.dataToCoord(f[0],!0),d.dataToCoord(f[1],!0)]}})}(r))},t.prototype._onBrush=function(e){var i=e.areas,r=this.axisModel,o=r.axis,a=X(i,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!r.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(je);const yL=gL;var vL={type:"axisAreaSelect",event:"axisAreaSelected"},mL={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10},xL=["itemStyle","borderWidth"],vb=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Cf=new oi;function mb(n,t,e,i){var r=n.getItemLayout(t),o=e.get("symbolRepeat"),a=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=(e.get("symbolRotate")||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),c={dataIndex:t,layout:r,itemModel:e,symbolType:n.getItemVisual(t,"symbol")||"circle",style:n.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};(function(f,g,y,v,m){var x,_=v.valueDim,b=f.get("symbolBoundingData"),w=v.coordSys.getOtherAxis(v.coordSys.getBaseAxis()),S=w.toGlobalCoord(w.dataToCoord(0)),M=1-+(y[_.wh]<=0);if(Y(b)){var T=[Af(w,b[0])-S,Af(w,b[1])-S];T[1]<T[0]&&T.reverse(),x=T[M]}else x=b!=null?Af(w,b)-S:g?v.coordSysExtent[_.index][M]-S:y[_.wh];m.boundingLength=x,g&&(m.repeatCutLength=y[_.wh]),m.pxSign=x>0?1:-1})(e,o,r,i,c),function(f,g,y,v,m,x,_,b,w,S){var M,T=w.valueDim,I=w.categoryDim,C=Math.abs(y[I.wh]),D=f.getItemVisual(g,"symbolSize");M=Y(D)?D.slice():D==null?["100%","100%"]:[D,D],M[I.index]=ne(M[I.index],C),M[T.index]=ne(M[T.index],v?C:Math.abs(x)),S.symbolSize=M;var L=S.symbolScale=[M[0]/b,M[1]/b];L[T.index]*=(w.isHorizontal?-1:1)*_}(n,t,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(f,g,y,v,m){var x=f.get(xL)||0;x&&(Cf.attr({scaleX:g[0],scaleY:g[1],rotation:y}),Cf.updateTransform(),x/=Cf.getLineScale(),x*=g[v.valueDim.index]),m.valueLineWidth=x||0}(e,c.symbolScale,l,i,c);var p=c.symbolSize,d=Yp(e.get("symbolOffset"),p);return function(f,g,y,v,m,x,_,b,w,S,M,T){var I=M.categoryDim,C=M.valueDim,D=T.pxSign,L=Math.max(g[C.index]+b,0),R=L;if(v){var P=Math.abs(w),E=Yt(f.get("symbolMargin"),"15%")+"",k=!1;E.lastIndexOf("!")===E.length-1&&(k=!0,E=E.slice(0,E.length-1));var O=ne(E,g[C.index]),N=Math.max(L+2*O,0),B=k?0:2*O,z=Ks(v),U=z?v:Db((P+B)/N);N=L+2*(O=(P-U*L)/2/(k?U:Math.max(U-1,1))),B=k?0:2*O,z||v==="fixed"||(U=S?Db((Math.abs(S)+B)/N):0),R=U*N-B,T.repeatTimes=U,T.symbolMargin=O}var Z=D*(R/2),F=T.pathPosition=[];F[I.index]=y[I.wh]/2,F[C.index]=_==="start"?Z:_==="end"?w-Z:w/2,x&&(F[0]+=x[0],F[1]+=x[1]);var W=T.bundlePosition=[];W[I.index]=y[I.xy],W[C.index]=y[C.xy];var K=T.barRectShape=G({},y);K[C.wh]=D*Math.max(Math.abs(y[C.wh]),Math.abs(F[C.index]+Z)),K[I.wh]=y[I.wh];var se=T.clipShape={};se[I.xy]=-y[I.xy],se[I.wh]=M.ecSize[I.wh],se[C.xy]=0,se[C.wh]=y[C.wh]}(e,p,r,o,0,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function Af(n,t){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(t)))}function xb(n){var t=n.symbolPatternSize,e=ut(n.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function _b(n,t,e,i){var r=n.__pictorialBundle,o=e.symbolSize,a=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,h=0,c=o[t.valueDim.index]+a+2*e.symbolMargin;for(Df(n,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h<u?Po(g,null,f(h),e,i):Po(g,null,{scaleX:0,scaleY:0},e,i,function(){r.remove(g)}),h++});h<u;h++){var p=xb(e);p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,r.add(p);var d=f(h);Po(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},e,i)}function f(g){var y=s.slice(),v=e.pxSign,m=g;return(e.symbolRepeatDirection==="start"?v>0:v<0)&&(m=u-1-g),y[l.index]=c*(m-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function wb(n,t,e,i){var r=n.__pictorialBundle,o=n.__pictorialMainPath;o?Po(o,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,i):(o=n.__pictorialMainPath=xb(e),r.add(o),Po(o,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,i))}function bb(n,t,e){var i=G({},t.barRectShape),r=n.__pictorialBarRect;r?Po(r,null,{shape:i},t,e):((r=n.__pictorialBarRect=new Ie({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,n.add(r))}function Sb(n,t,e,i){if(e.symbolClip){var r=n.__pictorialClipPath,o=G({},e.clipShape),a=t.valueDim,s=e.animationModel,l=e.dataIndex;if(r)ze(r,{shape:o},s,l);else{o[a.wh]=0,r=new Ie({shape:o}),n.__pictorialBundle.setClipPath(r),n.__pictorialClipPath=r;var u={};u[a.wh]=e.clipShape[a.wh],uo[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function Mb(n,t){var e=n.getItemModel(t);return e.getAnimationDelayParams=_L,e.isAnimationEnabled=wL,e}function _L(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function wL(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Tb(n,t,e,i){var r=new ge,o=new ge;return r.add(o),r.__pictorialBundle=o,o.x=e.bundlePosition[0],o.y=e.bundlePosition[1],e.symbolRepeat?_b(r,t,e):wb(r,0,e),bb(r,e,i),Sb(r,t,e,i),r.__pictorialShapeStr=Cb(n,e),r.__pictorialSymbolMeta=e,r}function Ib(n,t,e,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Df(i,function(a){o.push(a)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),A(o,function(a){Ci(a,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(t,null)}function Cb(n,t){return[n.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Df(n,t,e){A(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&t.call(e,i)})}function Po(n,t,e,i,r,o){t&&n.attr(t),i.symbolClip&&!r?e&&n.attr(e):e&&uo[r?"updateProps":"initProps"](n,e,i.animationModel,i.dataIndex,o)}function Ab(n,t,e){var i=e.dataIndex,r=e.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");Df(n,function(g){if(g instanceof Gt){var y=g.style;g.useStyle(G({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},e.style))}else g.useStyle(e.style);var v=g.ensureState("emphasis");v.style=a,p&&(v.scaleX=1.1*g.scaleX,v.scaleY=1.1*g.scaleY),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=e.z2});var d=t.valueDim.posDesc[+(e.boundingLength>0)],f=n.__pictorialBarRect;f.ignoreClip=!0,ai(f,si(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Eu(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:d}),zn(n,h,c,o.get("disabled"))}function Db(n){var t=Math.round(n);return Math.abs(n-t)<1e-4?t:Math.ceil(n)}const bL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis().isHorizontal(),h=l.master.getRect(),c={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:u,valueDim:vb[+u],categoryDim:vb[1-+u]};a.diff(s).add(function(d){if(a.hasValue(d)){var f=Mb(a,d),g=mb(a,d,f,c),y=Tb(a,c,g);a.setItemGraphicEl(d,y),o.add(y),Ab(y,c,g)}}).update(function(d,f){var g=s.getItemGraphicEl(f);if(a.hasValue(d)){var y=Mb(a,d),v=mb(a,d,y,c),m=Cb(a,v);g&&m!==g.__pictorialShapeStr&&(o.remove(g),a.setItemGraphicEl(d,null),g=null),g?function(x,_,b){var w=b.animationModel,S=b.dataIndex,M=x.__pictorialBundle;ze(M,{x:b.bundlePosition[0],y:b.bundlePosition[1]},w,S),b.symbolRepeat?_b(x,_,b,!0):wb(x,_,b,!0),bb(x,b,!0),Sb(x,_,b,!0)}(g,c,v):g=Tb(a,c,v,!0),a.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=v,o.add(g),Ab(g,c,v)}else o.remove(g)}).remove(function(d){var f=s.getItemGraphicEl(d);f&&Ib(s,d,f.__pictorialSymbolMeta.animationModel,f)}).execute();var p=e.get("clip",!0)?l_(e.coordinateSystem,!1,e):null;return p?o.setClipPath(p):o.removeClipPath(),this._data=a,this.group},t.prototype.remove=function(e,i){var r=this.group,o=this._data;e.get("animation")?o&&o.eachItemGraphicEl(function(a){Ib(o,ye(a).dataIndex,e,a)}):r.removeAll()},t.type="pictorialBar",t}(at),SL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return V(t,n),t.prototype.getInitialData=function(e){return e.stack=null,n.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=xr(zu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(zu);var zr=Ne(),kb=oe,kf=Q,ML=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,i,r){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide")return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,e,i);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(t,e);if(s){var p=xe(Lb,e,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,e)}else s=this._group=new ge,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);Rb(s,e,!0),this._renderHandle(o)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var i=e.get("animation"),r=t.axis,o=r.type==="category",a=e.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&r.getBandWidth()>s)return!0;if(a){var l=Xd(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(t,e,i,r,o){},n.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=zr(t).pointerEl=new uo[o.type](kb(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,i,r){if(e.label){var o=zr(t).labelEl=new ke(kb(e.label));t.add(o),Ob(o,r)}},n.prototype.updatePointerEl=function(t,e,i){var r=zr(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),i(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,i,r){var o=zr(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{x:e.label.x,y:e.label.y}),Ob(o,r))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,a=i.getModel("handle"),s=i.get("status");if(!a.get("show")||!s||s==="hide")return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Ma(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Jn(u.event)},onmousedown:kf(this._onHandleDragMove,this,0,0),drift:kf(this._onHandleDragMove,this),ondragend:kf(this._onHandleDragEnd,this)}),r.add(o)),Rb(o,i,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,Fa(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},n.prototype._moveHandleToValue=function(t,e){Lb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Lf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(Lf(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(Lf(r)),zr(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,r=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Ga(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},n}();function Lb(n,t,e,i){Pb(zr(e).lastProp,i)||(zr(e).lastProp=i,t?ze(e,i,n):(e.stopAnimation(),e.attr(i)))}function Pb(n,t){if(ee(n)&&ee(t)){var e=!0;return A(t,function(i,r){e=e&&Pb(n[r],i)}),!!e}return n===t}function Ob(n,t){n[t.get(["label","show"])?"show":"hide"]()}function Lf(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function Rb(n,t,e){var i=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=e)})}const Eb=ML;function Nb(n){var t,e=n.get("type"),i=n.getModel(e+"Style");return e==="line"?(t=i.getLineStyle()).fill=null:e==="shadow"&&((t=i.getAreaStyle()).stroke=null),t}function zb(n,t,e,i,r){var o=Bb(e.get("value"),t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),a=e.getModel("label"),s=go(a.get("padding")||0),l=a.getFont(),u=na(o,l),h=r.position,c=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var f=r.verticalAlign;f==="bottom"&&(h[1]-=p),f==="middle"&&(h[1]-=p/2),function(y,v,m,x){var _=x.getWidth(),b=x.getHeight();y[0]=Math.min(y[0]+v,_)-v,y[1]=Math.min(y[1]+m,b)-m,y[0]=Math.max(y[0],0),y[1]=Math.max(y[1],0)}(h,c,p,i);var g=a.get("backgroundColor");g&&g!=="auto"||(g=t.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:it(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function Bb(n,t,e,i,r){n=t.scale.parse(n);var o=t.scale.getLabel({value:n},{precision:r.precision}),a=r.formatter;if(a){var s={value:Md(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),j(a)?o=a.replace("{value}",o):ae(a)&&(o=a(s))}return o}function Vb(n,t,e){var i=[1,0,0,1,0,0];return Zi(i,i,e.rotation),Ui(i,i,e.position),Fn([n.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function Fb(n,t,e){return{x1:n[e=e||0],y1:n[1-e],x2:t[e],y2:t[1-e]}}function Gb(n,t,e,i,r,o){return{cx:n,cy:t,r0:e,r:i,startAngle:r,endAngle:o,clockwise:!0}}var TL=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis,l=s.grid,u=o.get("type"),h=Hb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Nb(o),d=IL[u](s,c,h);d.style=p,e.graphicKey=d.type,e.pointer=d}(function(f,g,y,v,m,x){var _=Bi.innerTextLayout(y.rotation,0,y.labelDirection);y.labelMargin=m.get(["label","margin"]),zb(g,v,m,x,{position:Vb(v.axis,f,y),align:_.textAlign,verticalAlign:_.textVerticalAlign})})(i,e,Gd(l.model,r),r,o,a)},t.prototype.getHandleTransform=function(e,i,r){var o=Gd(i.axis.grid.model,i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=Vb(i.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),u=Hb(s,a).getOtherAxis(a).getGlobalExtent(),h=a.dim==="x"?0:1,c=[e.x,e.y];c[h]+=i[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var p=(u[1]+u[0])/2,d=[p,p];return d[h]=c[h],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][h]}},t}(Eb);function Hb(n,t){var e={};return e[t.dim+"AxisIndex"]=t.index,n.getCartesian(e)}var IL={line:function(n,t,e){return{type:"Line",subPixelOptimize:!0,shape:Fb([t,e[0]],[t,e[1]],Wb(n))}},shadow:function(n,t,e){var i,r,o,a=Math.max(1,n.getBandWidth()),s=e[1]-e[0];return{type:"Rect",shape:(i=[t-a/2,e[0]],r=[a,s],o=Wb(n),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function Wb(n){return n.dim==="x"?0:1}const CL=TL,AL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Te);var fi=Ne(),DL=A;function Yb(n,t,e){if(!we.node){var i=t.getZr();fi(i).records||(fi(i).records={}),function(r,o){if(fi(r).initialized)return;function a(s,l){r.on(s,function(u){var h=function(c){var p={showTip:[],hideTip:[]},d=function(f){var g=p[f.type];g?g.push(f):(f.dispatchAction=d,c.dispatchAction(f))};return{dispatchAction:d,pendings:p}}(o);DL(fi(r).records,function(c){c&&l(c,u,h.dispatchAction)}),function(c,p){var d,f=c.showTip.length,g=c.hideTip.length;f?d=c.showTip[f-1]:g&&(d=c.hideTip[g-1]),d&&(d.dispatchAction=null,p.dispatchAction(d))}(h.pendings,o)})}fi(r).initialized=!0,a("click",xe(Xb,"click")),a("mousemove",xe(Xb,"mousemove")),a("globalout",kL)}(i,t),(fi(i).records[n]||(fi(i).records[n]={})).handler=e}}function kL(n,t,e){n.handler("leave",null,e)}function Xb(n,t,e,i){t.handler(n,e,i)}function Pf(n,t){if(!we.node){var e=t.getZr();(fi(e).records||{})[n]&&(fi(e).records[n]=null)}}var LL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=i.getComponent("tooltip"),a=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";Yb("axisPointer",r,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Pf("axisPointer",i)},t.prototype.dispose=function(e,i){Pf("axisPointer",i)},t.type="axisPointer",t}(je);const PL=LL;function Ub(n,t){var e,i=[],r=n.seriesIndex;if(r==null||!(e=t.getSeriesByIndex(r)))return{point:[]};var o=e.getData(),a=ir(o,n);if(a==null||a<0||Y(a))return{point:[]};var s=o.getItemGraphicEl(a),l=e.coordinateSystem;if(e.getTooltipPosition)i=e.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=h==="x"||h==="radius"?1:0,d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(X(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Zb=Ne();function OL(n,t,e){var i=n.currTrigger,r=[n.x,n.y],o=n,a=n.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){nh(r)&&(r=Ub({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=nh(r),u=o.axesInfo,h=s.axesInfo,c=i==="leave"||nh(r),p={},d={},f={list:[],map:{}},g={showPointer:xe(RL,d),showTooltip:xe(EL,f)};A(s.coordSysMap,function(v,m){var x=l||v.containPoint(r);A(s.coordSysAxesInfo[m],function(_,b){var w=_.axis,S=function(T,I){for(var C=0;C<(T||[]).length;C++){var D=T[C];if(I.axis.dim===D.axisDim&&I.axis.model.componentIndex===D.axisIndex)return D}}(u,_);if(!c&&x&&(!u||S)){var M=S&&S.value;M!=null||l||(M=w.pointToData(r)),M!=null&&jb(_,M,g,!1,p)}})});var y={};return A(h,function(v,m){var x=v.linkGroup;x&&!d[m]&&A(x.axesInfo,function(_,b){var w=d[b];if(_!==v&&w){var S=w.value;x.mapper&&(S=v.axis.scale.parse(x.mapper(S,qb(_),qb(v)))),y[v.key]=S}})}),A(y,function(v,m){jb(h[m],v,g,!0,p)}),function(v,m,x){var _=x.axesInfo=[];A(m,function(b,w){var S=b.axisPointerModel.option,M=v[w];M?(!b.useHandle&&(S.status="show"),S.value=M.value,S.seriesDataIndices=(M.payloadBatch||[]).slice()):!b.useHandle&&(S.status="hide"),S.status==="show"&&_.push({axisDim:b.axis.dim,axisIndex:b.axis.model.componentIndex,value:S.value})})}(d,h,p),function(v,m,x,_){if(nh(m)||!v.list.length)return void _({type:"hideTip"});var b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};_({type:"showTip",escapeConnect:!0,x:m[0],y:m[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})}(f,r,n,a),function(v,m,x){var _=x.getZr(),b="axisPointerLastHighlights",w=Zb(_)[b]||{},S=Zb(_)[b]={};A(v,function(I,C){var D=I.axisPointerModel.option;D.status==="show"&&I.triggerEmphasis&&A(D.seriesDataIndices,function(L){var R=L.seriesIndex+" | "+L.dataIndex;S[R]=L})});var M=[],T=[];A(w,function(I,C){!S[C]&&T.push(I)}),A(S,function(I,C){!w[C]&&M.push(I)}),T.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:T}),M.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:M})}(h,0,e),p}}function jb(n,t,e,i,r){var o=n.axis;if(!o.scale.isBlank()&&o.containData(t))if(n.involveSeries){var a=function(u,h){var c=h.axis,p=c.dim,d=u,f=[],g=Number.MAX_VALUE,y=-1;return A(h.seriesModels,function(v,m){var x,_,b=v.getData().mapDimensionsAll(p);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(b,u,c);_=w.dataIndices,x=w.nestestValue}else{if(!(_=v.getData().indicesOfNearest(b[0],u,c.type==="category"?.5:null)).length)return;x=v.getData().get(b[0],_[0])}if(x!=null&&isFinite(x)){var S=u-x,M=Math.abs(S);M<=g&&((M<g||S>=0&&y<0)&&(g=M,y=S,d=x,f.length=0),A(_,function(T){f.push({seriesIndex:v.seriesIndex,dataIndexInside:T,dataIndex:v.getData().getRawIndex(T)})}))}}),{payloadBatch:f,snapToValue:d}}(t,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&G(r,s[0]),!i&&n.snap&&o.containData(l)&&l!=null&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,a,l)}else e.showPointer(n,t)}function RL(n,t,e,i){n[t.key]={value:e,payloadBatch:i}}function EL(n,t,e,i){var r=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=os(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function qb(n){var t=n.axis.model,e={},i=e.axisDim=n.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function nh(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Of(n){as.registerAxisPointerClass("CartesianAxisPointer",CL),n.registerComponentModel(AL),n.registerComponentView(PL),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=fD(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},OL)}var NL=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s).getExtent(),h=s.dataToCoord(i),c=o.get("type");if(c&&c!=="none"){var p=Nb(o),d=zL[c](s,l,h,u);d.style=p,e.graphicKey=d.type,e.pointer=d}var f=function(g,y,v,m,x){var _=y.axis,b=_.dataToCoord(g),w=m.getAngleAxis().getExtent()[0];w=w/180*Math.PI;var S,M,T,I=m.getRadiusAxis().getExtent();if(_.dim==="radius"){var C=[1,0,0,1,0,0];Zi(C,C,w),Ui(C,C,[m.cx,m.cy]),S=Fn([b,-x],C);var D=y.getModel("axisLabel").get("rotate")||0,L=Bi.innerTextLayout(w,D*Math.PI/180,-1);M=L.textAlign,T=L.textVerticalAlign}else{var R=I[1];S=m.coordToPoint([R+x,b]);var P=m.cx,E=m.cy;M=Math.abs(S[0]-P)/R<.3?"center":S[0]>P?"left":"right",T=Math.abs(S[1]-E)/R<.3?"middle":S[1]>E?"top":"bottom"}return{position:S,align:M,verticalAlign:T}}(i,r,0,l,o.get(["label","margin"]));zb(e,r,o,a,f)},t}(Eb),zL={line:function(n,t,e,i){return n.dim==="angle"?{type:"Line",shape:Fb(t.coordToPoint([i[0],e]),t.coordToPoint([i[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(n,t,e,i){var r=Math.max(1,n.getBandWidth()),o=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:Gb(t.cx,t.cy,i[0],i[1],(-e-r/2)*o,(r/2-e)*o)}:{type:"Sector",shape:Gb(t.cx,t.cy,e-r/2,e+r/2,0,2*Math.PI)}}};const BL=NL,VL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.findAxisModel=function(e){var i;return this.ecModel.eachComponent(e,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Te);var Rf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",nt).models[0]},t.type="polarAxis",t}(Te);ct(Rf,es);var FL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="angleAxis",t}(Rf),GL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="radiusAxis",t}(Rf),Ef=function(n){function t(e,i){return n.call(this,"radius",e,i)||this}return V(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t}(Yn);Ef.prototype.dataToRadius=Yn.prototype.dataToCoord,Ef.prototype.radiusToData=Yn.prototype.coordToData;const HL=Ef;var WL=Ne(),Nf=function(n){function t(e,i){return n.call(this,"angle",e,i||[0,360])||this}return V(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,i=e.getLabelModel(),r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),h=na(s==null?"":s+"",i.getFont(),"center","top"),c=Math.max(h.height,7)/u;isNaN(c)&&(c=1/0);var p=Math.max(0,Math.floor(c)),d=WL(e.model),f=d.lastAutoInterval,g=d.lastTickCount;return f!=null&&g!=null&&Math.abs(f-p)<=1&&Math.abs(g-a)<=1&&f>p?p=f:(d.lastTickCount=a,d.lastAutoInterval=p),p},t}(Yn);Nf.prototype.dataToAngle=Yn.prototype.dataToCoord,Nf.prototype.angleToData=Yn.prototype.coordToData;const YL=Nf;var Kb=["radius","angle"],XL=function(){function n(t){this.dimensions=Kb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new HL,this._angleAxis=new YL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},n.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},n.prototype.getAxis=function(t){return this["_"+t+"Axis"]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,r=this._radiusAxis;return i.scale.type===t&&e.push(i),r.scale.type===t&&e.push(r),e},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},n.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},n.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},n.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=this.getAngleAxis(),o=r.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);r.inverse?a=s-360:s=a+360;var l=Math.sqrt(e*e+i*i);e/=l,i/=l;for(var u=Math.atan2(-i,e)/Math.PI*180,h=u<a?1:-1;u<a||u>s;)u+=360*h;return[l,u]},n.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]},n.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(o,a){var s=o-this.cx,l=a-this.cy,u=s*s+l*l-1e-4,h=this.r,c=this.r0;return u<=h*h&&u>=c*c}}},n.prototype.convertToPixel=function(t,e,i){return Jb(e)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(t,e,i){return Jb(e)===this?this.pointToData(i):null},n}();function Jb(n){var t=n.seriesModel,e=n.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const UL=XL;function ZL(n,t){var e=this,i=e.getAngleAxis(),r=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(Du(l,"radius"),function(u){r.scale.unionExtentFromData(l,u)}),A(Du(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Ao(i.scale,i.model),Ao(r.scale,r.model),i.type==="category"&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function $b(n,t){var e;if(n.type=t.get("type"),n.scale=Au(t),n.onBand=t.get("boundaryGap")&&n.type==="category",n.inverse=t.get("inverse"),function(o){return o.mainType==="angleAxis"}(t)){n.inverse=n.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=(e=t.get("endAngle"))!==null&&e!==void 0?e:i+(n.inverse?-360:360);n.setExtent(i,r)}t.axis=n,n.model=t}var jL={dimensions:Kb,create:function(n,t){var e=[];return n.eachComponent("polar",function(i,r){var o=new UL(r+"");o.update=ZL;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");$b(a,l),$b(s,u),function(h,c,p){var d=c.get("center"),f=p.getWidth(),g=p.getHeight();h.cx=ne(d[0],f),h.cy=ne(d[1],g);var y=h.getRadiusAxis(),v=Math.min(f,g)/2,m=c.get("radius");m==null?m=[0,"100%"]:Y(m)||(m=[0,m]);var x=[ne(m[0],v),ne(m[1],v)];y.inverse?y.setExtent(x[1],x[0]):y.setExtent(x[0],x[1])}(o,i,t),e.push(o),i.coordinateSystem=o,o.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var r=i.getReferringComponents("polar",nt).models[0];if(!r)throw new Error('Polar "'+Yt(i.get("polarIndex"),i.get("polarId"),0)+'" not found');i.coordinateSystem=r.coordinateSystem}}),e}};const qL=jL;var KL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ih(n,t,e){t[1]>t[0]&&(t=t.slice().reverse());var i=n.coordToPoint([t[0],e]),r=n.coordToPoint([t[1],e]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function rh(n){return n.getRadiusAxis().inverse?0:1}function Qb(n){var t=n[0],e=n[n.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&n.pop()}var JL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return V(t,n),t.prototype.render=function(e,i){if(this.group.removeAll(),e.get("show")){var r=e.axis,o=r.polar,a=o.getRadiusAxis().getExtent(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=X(r.getViewLabels(),function(h){h=oe(h);var c=r.scale,p=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=r.dataToCoord(p),h});Qb(u),Qb(s),A(KL,function(h){!e.get([h,"show"])||r.scale.isBlank()&&h!=="axisLine"||$L[h](this.group,e,o,s,l,a,u)},this)}},t.type="angleAxis",t}(as),$L={axisLine:function(n,t,e,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=e.getAngleAxis(),u=Math.PI/180,h=l.getExtent(),c=rh(e),p=c?0:1,d=Math.abs(h[1]-h[0])===360?"Circle":"Arc";(a=o[p]===0?new uo[d]({shape:{cx:e.cx,cy:e.cy,r:o[c],startAngle:-h[0]*u,endAngle:-h[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new _a({shape:{cx:e.cx,cy:e.cy,r:o[c],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,n.add(a)},axisTick:function(n,t,e,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[rh(e)],u=X(i,function(h){return new wt({shape:ih(e,[l,l+s],h.coord)})});n.add(on(u,{style:le(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[rh(e)],h=[],c=0;c<r.length;c++)for(var p=0;p<r[c].length;p++)h.push(new wt({shape:ih(e,[u,u+l],r[c][p].coord)}));n.add(on(h,{style:le(s.getModel("lineStyle").getLineStyle(),le(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,t,e,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),h=t.get("triggerEvent");A(a,function(c,p){var d=l,f=c.tickValue,g=o[rh(e)],y=e.coordToPoint([g+u,c.coord]),v=e.cx,m=e.cy,x=Math.abs(y[0]-v)/g<.3?"center":y[0]>v?"left":"right",_=Math.abs(y[1]-m)/g<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[f]){var b=s[f];ee(b)&&b.textStyle&&(d=new He(b.textStyle,l,l.ecModel))}var w=new ke({silent:Bi.isLabelSilent(t),style:it(d,{x:y[0],y:y[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:x,verticalAlign:_})});if(n.add(w),h){var S=Bi.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=c.rawLabel,ye(w).eventData=S}},this)},splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h<i.length;h++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new wt({shape:ih(e,o,i[h].coord)}))}for(h=0;h<u.length;h++)n.add(on(u[h],{style:le({stroke:s[h%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new wt({shape:ih(e,o,r[l][u].coord)}));n.add(on(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(n,t,e,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=Math.PI/180,c=-i[0].coord*h,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),f=t.get("clockwise"),g=1,y=i.length;g<=y;g++){var v=g===y?i[0].coord:i[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new nn({shape:{cx:e.cx,cy:e.cy,r0:p,r:d,startAngle:c,endAngle:-v*h,clockwise:f},silent:!0})),c=-v*h}for(g=0;g<u.length;g++)n.add(on(u[g],{style:le({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}};const QL=JL;var eP=["axisLine","axisTickLabel","axisName"],tP=["splitLine","splitArea","minorSplitLine"],nP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return V(t,n),t.prototype.render=function(e,i){if(this.group.removeAll(),e.get("show")){var r=this._axisGroup,o=this._axisGroup=new ge;this.group.add(o);var a=e.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),h=a.getMinorTicksCoords(),c=l.getExtent()[0],p=a.getExtent(),d=function(g,y,v){return{position:[g.cx,g.cy],rotation:v/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:y.getModel("axisLabel").get("rotate"),z2:1}}(s,e,c),f=new Bi(e,d);A(eP,f.add,f),o.add(f.getGroup()),Al(r,o,e),A(tP,function(g){e.get([g,"show"])&&!a.scale.isBlank()&&iP[g](this.group,e,s,c,p,u,h)},this)}},t.type="radiusAxis",t}(as),iP={splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=e.getAngleAxis(),h=Math.PI/180,c=u.getExtent(),p=Math.abs(c[1]-c[0])===360?"Circle":"Arc";s=s instanceof Array?s:[s];for(var d=[],f=0;f<o.length;f++){var g=l++%s.length;d[g]=d[g]||[],d[g].push(new uo[p]({shape:{cx:e.cx,cy:e.cy,r:Math.max(o[f].coord,0),startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:u.inverse}}))}for(f=0;f<d.length;f++)n.add(on(d[f],{style:le({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(n,t,e,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var h=0;h<a[u].length;h++)l.push(new oi({shape:{cx:e.cx,cy:e.cy,r:a[u][h].coord}}));n.add(on(l,{style:le({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(n,t,e,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=o[0].coord,c=1;c<o.length;c++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new nn({shape:{cx:e.cx,cy:e.cy,r0:h,r:o[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[c].coord}for(c=0;c<u.length;c++)n.add(on(u[c],{style:le({fill:s[c%s.length]},a.getAreaStyle()),silent:!0}))}}};const rP=nP;function eS(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function tS(n,t){return t.dim+n.model.componentIndex}function oP(n,t,e){var i={},r=function(o){var a={};A(o,function(l,u){var h=l.getData(),c=l.coordinateSystem,p=c.getBaseAxis(),d=tS(c,p),f=p.getExtent(),g=p.type==="category"?p.getBandWidth():Math.abs(f[1]-f[0])/h.count(),y=a[d]||{bandWidth:g,remainedWidth:g,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=y.stacks;a[d]=y;var m=eS(l);v[m]||y.autoWidthCount++,v[m]=v[m]||{width:0,maxWidth:0};var x=ne(l.get("barWidth"),g),_=ne(l.get("barMaxWidth"),g),b=l.get("barGap"),w=l.get("barCategoryGap");x&&!v[m].width&&(x=Math.min(y.remainedWidth,x),v[m].width=x,y.remainedWidth-=x),_&&(v[m].maxWidth=_),b!=null&&(y.gap=b),w!=null&&(y.categoryGap=w)});var s={};return A(a,function(l,u){s[u]={};var h=l.stacks,c=l.bandWidth,p=ne(l.categoryGap,c),d=ne(l.gap,1),f=l.remainedWidth,g=l.autoWidthCount,y=(f-p)/(g+(g-1)*d);y=Math.max(y,0),A(h,function(_,b){var w=_.maxWidth;w&&w<y&&(w=Math.min(w,f),_.width&&(w=Math.min(w,_.width)),f-=w,_.width=w,g--)}),y=(f-p)/(g+(g-1)*d),y=Math.max(y,0);var v,m=0;A(h,function(_,b){_.width||(_.width=y),v=_,m+=_.width*(1+d)}),v&&(m-=v.width*d);var x=-m/2;A(h,function(_,b){s[u][b]=s[u][b]||{offset:x,width:_.width},x+=_.width*(1+d)})}),s}(We(t.getSeriesByType(n),function(o){return!t.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));t.eachSeriesByType(n,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),u=tS(s,l),h=eS(o),c=r[u][h],p=c.offset,d=c.width,f=s.getOtherAxis(l),g=o.coordinateSystem.cx,y=o.coordinateSystem.cy,v=o.get("barMinHeight")||0,m=o.get("barMinAngle")||0;i[h]=i[h]||[];for(var x=a.mapDimension(f.dim),_=a.mapDimension(l.dim),b=Oi(a,x),w=l.dim!=="radius"||!o.get("roundCap",!0),S=f.dataToCoord(0),M=0,T=a.count();M<T;M++){var I=a.get(x,M),C=a.get(_,M),D=I>=0?"p":"n",L=S;b&&(i[h][C]||(i[h][C]={p:S,n:S}),L=i[h][C][D]);var R=void 0,P=void 0,E=void 0,k=void 0;if(f.dim==="radius"){var O=f.dataToCoord(I)-S,N=l.dataToCoord(C);Math.abs(O)<v&&(O=(O<0?-1:1)*v),R=L,P=L+O,k=(E=N-p)-d,b&&(i[h][C][D]=P)}else{var B=f.dataToCoord(I,w)-S,z=l.dataToCoord(C);Math.abs(B)<m&&(B=(B<0?-1:1)*m),P=(R=z+p)+d,E=L,k=L+B,b&&(i[h][C][D]=k)}a.setItemLayout(M,{cx:g,cy:y,r0:R,r:P,startAngle:-E*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:E>=k})}}})}var aP={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},sP={splitNumber:5},lP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="polar",t}(je),nS=["x","y","radius","angle","single"],uP=["cartesian2d","polar","singleAxis"];function Vi(n){return ue(n),n+"Axis"}function hP(n,t){var e,i=te(),r=[],o=te();n.eachComponent({mainType:"dataZoom",query:t},function(l){o.get(l.uid)||s(l)});do e=!1,n.eachComponent("dataZoom",a);while(e);function a(l){!o.get(l.uid)&&function(u){var h=!1;return u.eachTargetAxis(function(c,p){var d=i.get(c);d&&d[p]&&(h=!0)}),h}(l)&&(s(l),e=!0)}function s(l){o.set(l.uid,!0),r.push(l),l.eachTargetAxis(function(u,h){(i.get(u)||i.set(u,[]))[h]=!0})}return r}function iS(n){var t=n.ecModel,e={infoList:[],infoMap:te()};return n.eachTargetAxis(function(i,r){var o=t.getComponent(Vi(i),r);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=e.infoMap.get(s);l||(l={model:a,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(o)}}}),e}var zf=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},n}(),cP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return V(t,n),t.prototype.init=function(e,i,r){var o=rS(e);this.settledOption=o,this.mergeDefaultAndTheme(e,r),this._doInit(o)},t.prototype.mergeOption=function(e){var i=rS(e);pe(this.option,e,!0),pe(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;A([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(i[o[0]]=r[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=te();this._fillSpecifiedTargetAxis(i)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return A(nS,function(r){var o=this.getReferringComponents(Vi(r),LT);if(o.specified){i=!0;var a=new zf;A(o.models,function(s){a.add(s.componentIndex)}),e.set(r,a)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var r=this.ecModel,o=!0;if(o){var a=i==="vertical"?"y":"x";s(r.findComponents({mainType:a+"Axis"}),a)}o&&s(r.findComponents({mainType:"singleAxis",filter:function(l){return l.get("orient",!0)===i}}),"single");function s(l,u){var h=l[0];if(h){var c=new zf;if(c.add(h.componentIndex),e.set(u,c),o=!1,u==="x"||u==="y"){var p=h.getReferringComponents("grid",nt).models[0];p&&A(l,function(d){h.componentIndex!==d.componentIndex&&p===d.getReferringComponents("grid",nt).models[0]&&c.add(d.componentIndex)})}}}o&&A(nS,function(l){if(o){var u=r.findComponents({mainType:Vi(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var h=new zf;h.add(u[0].componentIndex),e.set(l,h),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,r=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(o,a){var s=e[o[0]]!=null,l=e[o[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":r?i[a]=r[a]:s&&(i[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,r){e==null&&(e=this.ecModel.getComponent(Vi(i),r))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(r,o){A(r.indexList,function(a){e.call(i,o,a)})})},t.prototype.getAxisProxy=function(e,i){var r=this.getAxisModel(e,i);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){ue(e&&i!=null);var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[i])return this.ecModel.getComponent(Vi(e),i)},t.prototype.setRawRange=function(e){var i=this.option,r=this.settledOption;A([["start","startValue"],["end","endValue"]],function(o){e[o[0]]==null&&e[o[1]]==null||(i[o[0]]=r[o[0]]=e[o[0]],i[o[1]]=r[o[1]]=e[o[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;A(["start","startValue","end","endValue"],function(r){i[r]=e[r]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e!=null||i!=null)return this.getAxisProxy(e,i).getDataValueWindow();var r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,r=this._targetAxisInfoMap.keys(),o=0;o<r.length;o++)for(var a=r[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return ue(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Te);function rS(n){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t}const gs=cP,pP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.select",t}(gs),Bf=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){this.dataZoomModel=e,this.ecModel=i,this.api=r},t.type="dataZoom",t}(je),dP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.select",t}(Bf);var Oo=A,oS=Qn,fP=function(){function n(t,e,i,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=i}return n.prototype.hostedBy=function(t){return this._dataZoomModel===t},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(function(o){var a=o.get("coordinateSystem");return Me(uP,a)>=0}(e)){var i=Vi(this._dimName),r=e.getReferringComponents(i,nt).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}},this),t},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return oe(this._minMaxSpan)},n.prototype.calculateDataWindow=function(t){var e,i=this._dataExtent,r=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];Oo(["start","end"],function(c,p){var d=t[c],f=t[c+"Value"];o[p]==="percent"?(d==null&&(d=a[p]),f=r.parse(Ae(d,a,i))):(e=!0,d=Ae(f=f==null?i[p]:r.parse(f),i,a)),l[p]=f==null||isNaN(f)?i[p]:f,s[p]=d==null||isNaN(d)?a[p]:d}),oS(l),oS(s);var u=this._minMaxSpan;function h(c,p,d,f,g){var y=g?"Span":"ValueSpan";Rr(0,c,d,"all",u["min"+y],u["max"+y]);for(var v=0;v<2;v++)p[v]=Ae(c[v],d,f,!0),g&&(p[v]=r.parse(p[v]))}return e?h(l,s,i,a,!1):h(s,l,a,i,!0),{valueWindow:l,percentWindow:s}},n.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(r,o,a){var s=[1/0,-1/0];Oo(a,function(h){(function(c,p,d){p&&A(Du(p,d),function(f){var g=p.getApproximateExtent(f);g[0]<c[0]&&(c[0]=g[0]),g[1]>c[1]&&(c[1]=g[1])})})(s,h.getData(),o)});var l=r.getAxisModel(),u=w1(l.axis.scale,l,s).calculate();return[u.min,u.max]}(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var i=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;o!=="none"&&Oo(r,function(s){var l=s.getData(),u=l.mapDimensionsAll(i);if(u.length){if(o==="weakFilter"){var h=l.getStore(),c=X(u,function(p){return l.getDimensionIndex(p)},l);l.filterSelf(function(p){for(var d,f,g,y=0;y<u.length;y++){var v=h.get(c[y],p),m=!isNaN(v),x=v<a[0],_=v>a[1];if(m&&!x&&!_)return!0;m&&(g=!0),x&&(d=!0),_&&(f=!0)}return g&&d&&f})}else Oo(u,function(p){if(o==="empty")s.setData(l=l.map(p,function(f){return function(g){return g>=a[0]&&g<=a[1]}(f)?f:NaN}));else{var d={};d[p]=a,l.selectRange(d)}});Oo(u,function(p){l.setApproximateExtent(a,p)})}})}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Oo(["min","max"],function(r){var o=e.get(r+"Span"),a=e.get(r+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Ae(i[0]+a,i,[0,100],!0):o!=null&&(a=Ae(o,[0,100],i,!0)-i[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var r=dc(i,[0,500]);r=Math.min(r,20);var o=t.axis.scale.rawExtentInfo;e[0]!==0&&o.setDeterminedMinMax("min",+i[0].toFixed(r)),e[1]!==100&&o.setDeterminedMinMax("max",+i[1].toFixed(r)),o.freeze()}},n}();const gP=fP,yP={getTargetSeries:function(n){function t(r){n.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=n.getComponent(Vi(a),s);r(a,s,l,o)})})}t(function(r,o,a,s){a.__dzAxisProxy=null});var e=[];t(function(r,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new gP(r,o,s,n),e.push(a.__dzAxisProxy))});var i=te();return A(e,function(r){A(r.getTargetSeriesModels(),function(o){i.set(o.uid,o)})}),i},overallReset:function(n,t){n.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).reset(e)}),e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).filterData(e,t)})}),n.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var r=i.getDataPercentWindow(),o=i.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:o[0],endValue:o[1]})}})}};var aS=!1;function Vf(n){aS||(aS=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,yP),function(t){t.registerAction("dataZoom",function(e,i){A(hP(i,e),function(r){r.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vP(n){n.registerComponentModel(pP),n.registerComponentView(dP),Vf(n)}var Cn=function(){},sS={};function ys(n,t){sS[n]=t}function lS(n){return sS[n]}const mP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(i,r){var o=lS(r);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),pe(i,o.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Te);function uS(n,t){var e=go(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),n=new Ie({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var xP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.render=function(e,i,r,o){var a=this.group;if(a.removeAll(),e.get("show")){var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},h=this._features||(this._features={}),c=[];A(u,function(d,f){c.push(f)}),new fd(this._featureNames||[],c).add(p).update(p).remove(xe(p,null)).execute(),this._featureNames=c,function(d,f,g){var y=f.getBoxLayoutParams(),v=f.get("padding"),m={width:g.getWidth(),height:g.getHeight()},x=St(y,m,v);wr(f.get("orient"),d,f.get("itemGap"),x.width,x.height),zm(d,y,m,v)}(a,e,r),a.add(uS(a.getBoundingRect(),e)),l||a.eachChild(function(d){var f=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),v=d.getTextContent(),m=v&&v.ensureState("emphasis");if(m&&!ae(m)&&f){var x=m.style||(m.style={}),_=na(f,ke.makeFont(x)),b=d.x+a.x,w=!1;d.y+a.y+s+_.height>r.getHeight()&&(y.position="top",w=!0);var S=w?-5-_.height:s+10;b+_.width/2>r.getWidth()?(y.position=["100%",S],x.align="right"):b-_.width/2<0&&(y.position=[0,S],x.align="left")}})}function p(d,f){var g,y=c[d],v=c[f],m=u[y],x=new He(m,e,e.ecModel);if(o&&o.newTitle!=null&&o.featureName===y&&(m.title=o.newTitle),y&&!v){if(function(w){return w.indexOf("my")===0}(y))g={onclick:x.option.onclick,featureName:y};else{var _=lS(y);if(!_)return;g=new _}h[y]=g}else if(!(g=h[v]))return;g.uid=co("toolbox-feature"),g.model=x,g.ecModel=i,g.api=r;var b=g instanceof Cn;y||!v?!x.get("show")||b&&g.unusable?b&&g.remove&&g.remove(i,r):(function(w,S,M){var T,I,C=w.getModel("iconStyle"),D=w.getModel(["emphasis","iconStyle"]),L=S instanceof Cn&&S.getIcons?S.getIcons():w.get("icon"),R=w.get("title")||{};j(L)?(T={})[M]=L:T=L,j(R)?(I={})[M]=R:I=R;var P=w.iconPaths={};A(T,function(E,k){var O=Ma(E,{},{x:-s/2,y:-s/2,width:s,height:s});O.setStyle(C.getItemStyle()),O.ensureState("emphasis").style=D.getItemStyle();var N=new ke({style:{text:I[k],align:D.get("textAlign"),borderRadius:D.get("textBorderRadius"),padding:D.get("textPadding"),fill:null,font:ym({fontStyle:D.get("textFontStyle"),fontFamily:D.get("textFontFamily"),fontSize:D.get("textFontSize"),fontWeight:D.get("textFontWeight")},i)},ignore:!0});O.setTextContent(N),Ta({el:O,componentModel:e,itemName:k,formatterParamsExtra:{title:I[k]}}),O.__title=I[k],O.on("mouseover",function(){var B=D.getItemStyle(),z=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";N.setStyle({fill:D.get("textFill")||B.fill||B.stroke||"#000",backgroundColor:D.get("textBackgroundColor")}),O.setTextConfig({position:D.get("textPosition")||z}),N.ignore=!e.get("showTitle"),r.enterEmphasis(this)}).on("mouseout",function(){w.get(["iconStatus",k])!=="emphasis"&&r.leaveEmphasis(this),N.hide()}),(w.get(["iconStatus",k])==="emphasis"?no:io)(O),a.add(O),O.on("click",Q(S.onclick,S,i,r,k)),P[k]=O})}(x,g,y),x.setIconStatus=function(w,S){var M=this.option,T=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[w]=S,T[w]&&(S==="emphasis"?no:io)(T[w])},g instanceof Cn&&g.render&&g.render(x,i,r,o)):b&&g.dispose&&g.dispose(i,r)}},t.prototype.updateView=function(e,i,r,o){A(this._features,function(a){a instanceof Cn&&a.updateView&&a.updateView(a.model,i,r,o)})},t.prototype.remove=function(e,i){A(this._features,function(r){r instanceof Cn&&r.remove&&r.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){A(this._features,function(r){r instanceof Cn&&r.dispose&&r.dispose(e,i)})},t.type="toolbox",t}(je);const _P=xP,wP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){var r=this.model,o=r.get("name")||e.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),u=we.browser;if(ae(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=o+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),d=p[0].indexOf("base64")>-1,f=a?decodeURIComponent(p[1]):p[1];d&&(f=window.atob(f));var g=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=f.length,v=new Uint8Array(y);y--;)v[y]=f.charCodeAt(y);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(f),b.close(),_.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var w=r.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',M=window.open();M.document.write(S),M.document.title=o}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Cn);var hS="__ec_magicType_stack__",bP=[["line","bar"],["stack"]],SP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),r={};return A(e.get("type"),function(o){i[o]&&(r[o]=i[o])}),r},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,i,r){var o=this.model,a=o.get(["seriesIndex",r]);if(cS[r]){var s,l={series:[]};A(bP,function(h){Me(h,r)>=0&&A(h,function(c){o.setIconStatus(c,"normal")})}),o.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},function(h){var c=h.subType,p=h.id,d=cS[r](c,p,h,o);d&&(le(d,h.option),l.series.push(d));var f=h.coordinateSystem;if(f&&f.type==="cartesian2d"&&(r==="line"||r==="bar")){var g=f.getAxesByScale("ordinal")[0];if(g){var y=g.dim+"Axis",v=h.getReferringComponents(y,nt).models[0].componentIndex;l[y]=l[y]||[];for(var m=0;m<=v;m++)l[y][v]=l[y][v]||{};l[y][v].boundaryGap=r==="bar"}}});var u=r;r==="stack"&&(s=pe({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",r])!=="emphasis"&&(u="tiled")),i.dispatchAction({type:"changeMagicType",currentType:u,newOption:l,newTitle:s,featureName:"magicType"})}},t}(Cn),cS={line:function(n,t,e,i){if(n==="bar")return pe({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,t,e,i){if(n==="line")return pe({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,t,e,i){var r=e.get("stack")===hS;if(n==="line"||n==="bar")return i.setIconStatus("stack",r?"normal":"emphasis"),pe({id:t,stack:r?"":hS},i.get(["option","stack"])||{},!0)}};Sn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});const MP=SP;var oh=new Array(60).join("-"),Ro=" ";function ah(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Ff=new RegExp("["+Ro+"]+","g");function TP(n,t){var e=n.split(new RegExp(`
- *`+oh+`
- *`,"g")),i={series:[]};return A(e,function(r,o){if(function(u){if(u.slice(0,u.indexOf(`
- `)).indexOf(Ro)>=0)return!0}(r)){var a=function(u){for(var h=u.split(/\n+/g),c=[],p=X(ah(h.shift()).split(Ff),function(y){return{name:y,data:[]}}),d=0;d<h.length;d++){var f=ah(h[d]).split(Ff);c.push(f.shift());for(var g=0;g<f.length;g++)p[g]&&(p[g].data[d]=f[g])}return{series:p,categories:c}}(r),s=t[o],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else a=function(u){for(var h=u.split(/\n+/g),c=ah(h.shift()),p=[],d=0;d<h.length;d++){var f=ah(h[d]);if(f){var g=f.split(Ff),y="",v=void 0,m=!1;isNaN(g[0])?(m=!0,y=g[0],g=g.slice(1),p[d]={name:y,value:[]},v=p[d].value):v=p[d]=[];for(var x=0;x<g.length;x++)v.push(+g[x]);v.length===1&&(m?p[d].value=v[0]:p[d]=v[0])}}return{name:c,data:p}}(r),i.series.push(a)}),i}var IP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var r=i.getDom(),o=this.model;this._dom&&r.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),h=document.createElement("textarea");u.style.cssText="overflow:auto";var c=o.get("optionToContent"),p=o.get("contentToOption"),d=function(S){var M,T,I,C=function(D){var L={},R=[],P=[];return D.eachRawSeries(function(E){var k=E.coordinateSystem;if(!k||k.type!=="cartesian2d"&&k.type!=="polar")R.push(E);else{var O=k.getBaseAxis();if(O.type==="category"){var N=O.dim+"_"+O.index;L[N]||(L[N]={categoryAxis:O,valueAxis:k.getOtherAxis(O),series:[]},P.push({axisDim:O.dim,axisIndex:O.index})),L[N].series.push(E)}else R.push(E)}}),{seriesGroupByCategoryAxis:L,other:R,meta:P}}(S);return{value:We([(T=C.seriesGroupByCategoryAxis,I=[],A(T,function(D,L){var R=D.categoryAxis,P=D.valueAxis.dim,E=[" "].concat(X(D.series,function(U){return U.name})),k=[R.model.getCategories()];A(D.series,function(U){var Z=U.getRawData();k.push(U.getRawData().mapArray(Z.mapDimension(P),function(F){return F}))});for(var O=[E.join(Ro)],N=0;N<k[0].length;N++){for(var B=[],z=0;z<k.length;z++)B.push(k[z][N]);O.push(B.join(Ro))}I.push(O.join(`
- `))}),I.join(`
- `+oh+`
- `)),(M=C.other,X(M,function(D){var L=D.getRawData(),R=[D.name],P=[];return L.each(L.dimensions,function(){for(var E=arguments.length,k=arguments[E-1],O=L.getName(k),N=0;N<E-1;N++)P[N]=arguments[N];R.push((O?O+Ro:"")+P.join(Ro))}),R.join(`
- `)}).join(`
- `+oh+`
- `))],function(D){return!!D.replace(/[\n\t\s]/g,"")}).join(`
- `+oh+`
- `),meta:C.meta}}(e);if(ae(c)){var f=c(i.getOption());j(f)?u.innerHTML=f:vi(f)&&u.appendChild(f)}else{h.readOnly=o.get("readOnly");var g=h.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=o.get("textColor"),g.borderColor=o.get("textareaBorderColor"),g.backgroundColor=o.get("textareaColor"),h.value=d.value,u.appendChild(h)}var y=d.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+o.get("buttonColor"),m+=";color:"+o.get("buttonTextColor");var b=this;function w(){r.removeChild(a),b._dom=null}Lh(x,"click",w),Lh(_,"click",function(){if(p==null&&c!=null||p!=null&&c==null)return Je("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void w();var S;try{S=ae(p)?p(u,i.getOption()):TP(h.value,y)}catch(M){throw w(),new Error("Data view format error "+M)}S&&i.dispatchAction({type:"changeDataView",newOption:S}),w()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=m,!o.get("readOnly")&&v.appendChild(_),v.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(v),u.style.height=r.clientHeight-80+"px",r.appendChild(a),this._dom=a},t.prototype.remove=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(Cn);function CP(n,t){return X(n,function(e,i){var r=t&&t[i];if(ee(r)&&!Y(r)){ee(e)&&!Y(e)||(e={value:e});var o=r.name!=null&&e.name==null;return e=le(e,r),o&&delete e.name,e}return e})}Sn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,t){var e=[];A(n.newOption.series,function(i){var r=t.getSeriesByName(i.name)[0];if(r){var o=r.get("data");e.push({name:i.name,data:CP(i.data,o)})}else e.push(G({type:"scatter"},i))}),t.mergeOption(le({series:e},n.newOption))});const AP=IP;var pS=A,dS=Ne();function Gf(n){var t=dS(n);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){(function(r){dS(r).snapshots=null})(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(Cn);Sn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")});const kP=DP;var LP=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],PP=function(){function n(t,e,i){var r=this;this._targetInfoList=[];var o=fS(e,t);A(OP,function(a,s){(!i||!i.include||Me(i.include,s)>=0)&&a(o,r._targetInfoList)})}return n.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,r,o){if((i.coordRanges||(i.coordRanges=[])).push(r),!i.coordRange){i.coordRange=r;var a=Wf[i.brushType](0,o,r);i.__rangeOffset={offset:mS[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},n.prototype.matchOutputRanges=function(t,e,i){A(t,function(r){var o=this.findTargetInfo(r,e);o&&o!==!0&&A(o.coordSyses,function(a){var s=Wf[r.brushType](1,a,r.range,!0);i(r,s.values,a,e)})},this)},n.prototype.setInputRanges=function(t,e){A(t,function(i){var r,o,a,s,l,u=this.findTargetInfo(i,e);if(ue(!u||u===!0||i.coordRange,"coordRange must be specified when coord index specified."),ue(!u||u!==!0||i.range,"range must be specified in global brush."),i.range=i.range||[],u&&u!==!0){i.panelId=u.panelId;var h=Wf[i.brushType](0,u.coordSys,i.coordRange),c=i.__rangeOffset;i.range=c?mS[i.brushType](h.values,c.offset,(r=h.xyMinMax,o=c.xyMinMax,a=_S(r),s=_S(o),l=[a[0]/s[0],a[1]/s[1]],isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l)):h.values}},this)},n.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:fb(r),isTargetByCursor:yb(r,t,i.coordSysModel),getLinearBrushOtherExtent:gb(r)}})},n.prototype.controlSeries=function(t,e,i){var r=this.findTargetInfo(t,i);return r===!0||r&&Me(r.coordSyses,e.coordinateSystem)>=0},n.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,r=fS(e,t),o=0;o<i.length;o++){var a=i[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<gS.length;l++)if(gS[l](r,a))return a}return!0},n}();function Hf(n){return n[0]>n[1]&&n.reverse(),n}function fS(n,t){return ha(n,t,{includeMainTypes:LP})}var OP={grid:function(n,t){var e=n.xAxisModels,i=n.yAxisModels,r=n.gridModels,o=te(),a={},s={};(e||i||r)&&(A(e,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),A(i,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),A(r,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,h=[];A(u.getCartesians(),function(c,p){(Me(e,c.getAxis("x").model)>=0||Me(i,c.getAxis("y").model)>=0)&&h.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:yS.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,t){A(n.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:yS.geo})})}},gS=[function(n,t){var e=n.xAxisModel,i=n.yAxisModel,r=n.gridModel;return!r&&e&&(r=e.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(n,t){var e=n.geoModel;return e&&e===t.geoModel}],yS={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,t=n.getBoundingRect().clone();return t.applyTransform(Ai(n)),t}},Wf={lineX:xe(vS,0),lineY:xe(vS,1),rect:function(n,t,e,i){var r=n?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),o=n?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),a=[Hf([r[0],o[0]]),Hf([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(n,t,e,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:X(e,function(o){var a=n?t.pointToData(o,i):t.dataToPoint(o,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a}),xyMinMax:r}}};function vS(n,t,e,i){ue(e.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var r=e.getAxis(["x","y"][n]),o=Hf(X([0,1],function(s){return t?r.coordToData(r.toLocalCoord(i[s]),!0):r.toGlobalCoord(r.dataToCoord(i[s]))})),a=[];return a[n]=o,a[1-n]=[NaN,NaN],{values:o,xyMinMax:a}}var mS={lineX:xe(xS,0),lineY:xe(xS,1),rect:function(n,t,e){return[[n[0][0]-e[0]*t[0][0],n[0][1]-e[0]*t[0][1]],[n[1][0]-e[1]*t[1][0],n[1][1]-e[1]*t[1][1]]]},polygon:function(n,t,e){return X(n,function(i,r){return[i[0]-e[0]*t[r][0],i[1]-e[1]*t[r][1]]})}};function xS(n,t,e,i){return[t[0]-i[n]*e[0],t[1]-i[n]*e[1]]}function _S(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const wS=PP;var Yf,Xf,Uf=A,RP=Ly+"toolbox-dataZoom_",EP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.render=function(e,i,r,o){this._brushController||(this._brushController=new db(r.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),function(a,s,l,u,h){var c=l._isZoomActive;u&&u.type==="takeGlobalCursor"&&(c=u.key==="dataZoomSelect"&&u.dataZoomSelectActive),l._isZoomActive=c,a.setIconStatus("zoom",c?"emphasis":"normal");var p=new wS(Zf(a),s,{include:["grid"]}),d=p.makePanelOpts(h,function(f){return f.xAxisDeclared&&!f.yAxisDeclared?"lineX":!f.xAxisDeclared&&f.yAxisDeclared?"lineY":"rect"});l._brushController.setPanels(d).enableBrush(!(!c||!d.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(e,i,this,o,r),function(a,s){a.setIconStatus("back",function(l){return Gf(l).length}(s)>1?"emphasis":"normal")}(e,i)},t.prototype.onclick=function(e,i,r){NP[r].call(this)},t.prototype.remove=function(e,i){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(e.isEnd&&i.length){var r={},o=this.ecModel;this._brushController.updateCovers([]),new wS(Zf(this.model),o,{include:["grid"]}).matchOutputRanges(i,o,function(s,l,u){if(u.type==="cartesian2d"){var h=s.brushType;h==="rect"?(a("x",u,l[0]),a("y",u,l[1])):a({lineX:"x",lineY:"y"}[h],u,l)}}),function(s,l){var u=Gf(s);pS(l,function(h,c){for(var p=u.length-1;p>=0&&!u[p][c];p--);if(p<0){var d=s.queryComponents({mainType:"dataZoom",subType:"select",id:c})[0];if(d){var f=d.getPercentRange();u[0][c]={dataZoomId:c,start:f[0],end:f[1]}}}}),u.push(l)}(o,r),this._dispatchZoomAction(r)}function a(s,l,u){var h=l.getAxis(s),c=h.model,p=function(f,g,y){var v;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(m){m.getAxisModel(f,g.componentIndex)&&(v=m)}),v}(s,c,o),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();d.minValueSpan==null&&d.maxValueSpan==null||(u=Rr(0,u.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(r[p.id]={dataZoomId:p.id,startValue:u[0],endValue:u[1]})}},t.prototype._dispatchZoomAction=function(e){var i=[];Uf(e,function(r,o){i.push(oe(r))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Cn),NP={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(function(n){var t=Gf(n),e=t[t.length-1];t.length>1&&t.pop();var i={};return pS(e,function(r,o){for(var a=t.length-1;a>=0;a--)if(r=t[a][o]){i[o]=r;break}}),i}(this.ecModel))}};function Zf(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}Yf="dataZoom",Xf=function(n){var t=n.getComponent("toolbox",0),e=["feature","dataZoom"];if(t&&t.get(e)!=null){var i=t.getModel(e),r=[],o=ha(n,Zf(i));return Uf(o.xAxisModels,function(s){return a(s,"xAxis","xAxisIndex")}),Uf(o.yAxisModels,function(s){return a(s,"yAxis","yAxisIndex")}),r}function a(s,l,u){var h=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:RP+l+h};c[u]=h,r.push(c)}},ue(bp.get(Yf)==null&&Xf),bp.set(Yf,Xf);const zP=EP,BP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Te);function bS(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function SS(n){if(we.domSupported){for(var t=document.documentElement.style,e=0,i=n.length;e<i;e++)if(n[e]in t)return n[e]}}var MS=SS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function TS(n,t){if(!n)return t;t=gp(t,!0);var e=n.indexOf(t);return(n=e===-1?t:"-"+n.slice(0,e)+"-"+t).toLowerCase()}var VP=TS(SS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),jf=TS(MS,"transform"),FP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(we.transform3dSupported?"will-change:transform;":"");function IS(n,t,e){var i=n.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!we.transformSupported)return e?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=we.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return e?"top:0;left:0;"+jf+":"+a+";":[["top",0],["left",0],[MS,a]]}function GP(n,t,e){var i=[],r=n.get("transitionDuration"),o=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),h=n.getModel("textStyle"),c=N0(n,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),t&&r&&i.push(function(d,f){var g="cubic-bezier(0.23,1,0.32,1)",y=" "+d/2+"s "+g,v="opacity"+y+",visibility"+y;return f||(y=" "+d+"s "+g,v+=we.transformSupported?","+jf+y:",left"+y+",top"+y),VP+":"+v}(r,e)),o&&i.push("background-color:"+o),A(["width","color","radius"],function(d){var f="border-"+d,g=gp(f),y=n.get(g);y!=null&&i.push(f+":"+y+(d==="color"?"":"px"))}),i.push(function(d){var f=[],g=d.get("fontSize"),y=d.getTextColor();y&&f.push("color:"+y),f.push("font:"+d.getFont()),g&&f.push("line-height:"+Math.round(3*g/2)+"px");var v=d.get("textShadowColor"),m=d.get("textShadowBlur")||0,x=d.get("textShadowOffsetX")||0,_=d.get("textShadowOffsetY")||0;return v&&m&&f.push("text-shadow:"+x+"px "+_+"px "+m+"px "+v),A(["decoration","align"],function(b){var w=d.get(b);w&&f.push("text-"+b+":"+w)}),f.join(";")}(h)),c!=null&&i.push("padding:"+go(c).join("px ")+"px"),i.join(";")+";"}function CS(n,t,e,i,r){var o=t&&t.painter;if(e){var a=o&&o.getViewportRoot();a&&function(l,u,h,c,p){Ch(Ih,u,c,p,!0)&&Ch(l,h,Ih[0],Ih[1])}(n,a,e,i,r)}else{n[0]=i,n[1]=r;var s=o&&o.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var HP=function(){function n(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,we.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=e.appendTo,a=o&&(j(o)?document.querySelector(o):vi(o)?o:ae(o)&&o(t.getDom()));CS(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(i),this._api=t,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=r.handler;jt(r.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=(a="position",(s=(o=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(o))?a?s[a]:s:null),r=e.style;r.position!=="absolute"&&i!=="absolute"&&(r.position="relative")}var o,a,s,l=t.get("alwaysShowContent");l&&this._moveIfResized(),this._alwaysShowContent=l,this.el.className=t.get("className")||""},n.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,o=this._styleCoord;i.innerHTML?r.cssText=FP+GP(t,!this._firstShow,this._longHide)+IS(o[0],o[1],!0)+"border-color:"+_r(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(t,e,i,r,o){var a=this.el;if(t!=null){var s="";if(j(o)&&i.get("trigger")==="item"&&!bS(i)&&(s=function(h,c,p){if(!j(p)||p==="inside")return"";var d=h.get("backgroundColor"),f=h.get("borderWidth");c=_r(c);var g,y,v=(g=p)==="left"?"right":g==="right"?"left":g==="top"?"bottom":"top",m=Math.max(1.5*Math.round(f),6),x="",_=jf+":";Me(["left","right"],v)>-1?(x+="top:50%",_+="translateY(-50%) rotate("+(y=v==="left"?-225:-45)+"deg)"):(x+="left:50%",_+="translateX(-50%) rotate("+(y=v==="top"?225:45)+"deg)");var b=y*Math.PI/180,w=m+f,S=w*Math.abs(Math.cos(b))+w*Math.abs(Math.sin(b)),M=c+" solid "+f+"px;";return'<div style="'+["position:absolute;width:"+m+"px;height:"+m+"px;z-index:-1;",(x+=";"+v+":-"+Math.round(100*((S-Math.SQRT2*f)/2+Math.SQRT2*f-(S-w)/2))/100+"px")+";"+_+";","border-bottom:"+M,"border-right:"+M,"background-color:"+d+";"].join("")+'"></div>'}(i,r,o)),j(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)vi(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}}else a.innerHTML=""},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},n.prototype.moveTo=function(t,e){var i=this._styleCoord;if(CS(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var r=this.el.style;A(IS(i[0],i[1]),function(o){r[o[0]]=o[1]})}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",we.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},n.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},n}();const WP=HP;var YP=function(){function n(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),DS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return n.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(t,e,i,r,o){var a=this;ee(t)&&Dt("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new ke({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:N0(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=AS(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},n.prototype.moveTo=function(t,e){var i=this.el;if(i){var r=this._styleCoord;DS(r,this._zr,t,e),t=r[0],e=r[1];var o=i.style,a=Fi(o.borderWidth||0),s=AS(o);i.x=t+a+s.left,i.y=e+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function Fi(n){return Math.max(0,n)}function AS(n){var t=Fi(n.shadowBlur||0),e=Fi(n.shadowOffsetX||0),i=Fi(n.shadowOffsetY||0);return{left:Fi(t-e),right:Fi(t+e),top:Fi(t-i),bottom:Fi(t+i)}}function DS(n,t,e,i){n[0]=e,n[1]=i,n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}const XP=YP;var UP=new Ie({shape:{x:-1,y:-1,width:2,height:2}}),ZP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(e,i){if(!we.node&&i.getDom()){var r,o=e.getComponent("tooltip"),a=this._renderMode=(r=o.get("renderMode"))==="auto"?we.domSupported?"html":"richText":r||"html";this._tooltipContent=a==="richText"?new XP(i):new WP(i,{appendTo:o.get("appendToBody",!0)?"body":o.get("appendTo",!0)})}},t.prototype.render=function(e,i,r){if(!we.node&&r.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=r;var o=this._tooltipContent;o.update(e),o.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Fa(this,"_updatePosition",50,"fixRate"):Ga(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");Yb("itemTooltip",this._api,Q(function(i,r,o){e!=="none"&&(e.indexOf(i)>=0?this._tryShow(r,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,r=this._api,o=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,r,o){if(o.from!==this.uid&&!we.node&&r.getDom()){var a=kS(o,r);this._ticket="";var s=o.dataByCoordSys,l=function(f,g,y){var v=mc(f).queryOptionMap,m=v.keys()[0];if(!(!m||m==="series")){var x=ca(g,m,v.get(m),{useDefault:!1,enableAll:!1,enableNone:!1}),_=x.models[0];if(_){var b,w=y.getViewOfComponentModel(_);if(w.group.traverse(function(S){var M=ye(S).tooltipConfig;if(M&&M.name===f.name)return b=S,!0}),b)return{componentMainType:m,componentIndex:_.componentIndex,el:b}}}}(o,i,r);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var h=UP;h.x=o.x,h.y=o.y,h.update(),ye(h).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:h},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,r,o))return;var c=Ub(o,i),p=c.point[0],d=c.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:c.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,i,r,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(kS(o,r))},t.prototype._manuallyAxisShowTip=function(e,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(a!=null&&s!=null&&l!=null){var u=i.getSeriesByIndex(a);if(u&&vs([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}},t.prototype._tryShow=function(e,i){var r=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(r){var a,s;if(ye(r).ssrType==="legend")return;this._lastDataByCoordSys=null,br(r,function(l){return ye(l).dataIndex!=null?(a=l,!0):ye(l).tooltipConfig!=null?(s=l,!0):void 0},!0),a?this._showSeriesItemTooltip(e,a,i):s?this._showComponentItemTooltip(e,s,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var r=e.get("showDelay");i=Q(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(e,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=vs([i.tooltipOption],o),l=this._renderMode,u=[],h=Wn("section",{blocks:[],noHeader:!0}),c=[],p=new Bp;A(e,function(m){A(m.dataByAxis,function(x){var _=r.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(_&&b!=null){var w=Bb(b,_.axis,r,x.seriesDataIndices,x.valueLabelOpt),S=Wn("section",{header:w,noHeader:!Xt(w),sortBlocks:!0,blocks:[]});h.blocks.push(S),A(x.seriesDataIndices,function(M){var T=r.getSeriesByIndex(M.seriesIndex),I=M.dataIndexInside,C=T.getDataParams(I);if(!(C.dataIndex<0)){C.axisDim=x.axisDim,C.axisIndex=x.axisIndex,C.axisType=x.axisType,C.axisId=x.axisId,C.axisValue=Md(_.axis,{value:b}),C.axisValueLabel=w,C.marker=p.makeTooltipMarker("item",_r(C.color),l);var D=x0(T.formatTooltip(I,!0,null)),L=D.frag;if(L){var R=vs([T],o).get("valueFormatter");S.blocks.push(R?G({valueFormatter:R},L):L)}D.text&&c.push(D.text),u.push(C)}})}})}),h.blocks.reverse(),c.reverse();var d=i.position,f=s.get("order"),g=O0(h,p,l,f,r.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var y=l==="richText"?`
- `:"<br/>",v=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(e,i,r){var o=this._ecModel,a=ye(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,h=a.dataIndex,c=a.dataType,p=u.getData(c),d=this._renderMode,f=e.positionDefault,g=vs([p.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),y=g.get("trigger");if(y==null||y==="item"){var v=u.getDataParams(h,c),m=new Bp;v.marker=m.makeTooltipMarker("item",_r(v.color),d);var x=x0(u.formatTooltip(h,!1,c)),_=g.get("order"),b=g.get("valueFormatter"),w=x.frag,S=w?O0(b?G({valueFormatter:b},w):w,m,d,_,o.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+h;this._showOrMove(g,function(){this._showTooltipContent(g,S,v,M,e.offsetX,e.offsetY,e.position,e.target,m)}),r({type:"showTip",dataIndexInside:h,dataIndex:p.getRawIndex(h),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,r){var o=ye(i),a=o.tooltipConfig.option||{};j(a)&&(a={content:a,formatter:a});var s=[a],l=this._ecModel.getComponent(o.componentMainType,o.componentIndex);l&&s.push(l),s.push({formatter:a.content});var u=e.positionDefault,h=vs(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",d=new Bp;this._showOrMove(h,function(){var f=oe(h.get("formatterParams")||{});this._showTooltipContent(h,c,f,p,e.offsetX,e.offsetY,e.position,i,d)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,r,o,a,s,l,u,h){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var d=i,f=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")).color;if(p)if(j(p)){var g=e.ecModel.get("useUTC"),y=Y(r)?r[0]:r;d=p,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(d=Da(y.axisValue,d,g)),d=mp(d,r,!0)}else if(ae(p)){var v=Q(function(m,x){m===this._ticket&&(c.setContent(x,h,e,f,l),this._updatePosition(e,l,a,s,c,r,u))},this);this._ticket=o,d=p(r,o,v)}else d=p;c.setContent(d,h,e,f,l),c.show(e,f),this._updatePosition(e,l,a,s,c,r,u)}},t.prototype._getNearestPoint=function(e,i,r,o){return r==="axis"||Y(i)?{color:o||(this._renderMode==="html"?"#fff":"none")}:Y(i)?void 0:{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,r,o,a,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||e.get("position");var c=a.getSize(),p=e.get("align"),d=e.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),ae(i)&&(i=i([r,o],s,a.el,f,{viewSize:[u,h],contentSize:c.slice()})),Y(i))r=ne(i[0],u),o=ne(i[1],h);else if(ee(i)){var g=i;g.width=c[0],g.height=c[1];var y=St(g,{width:u,height:h});r=y.x,o=y.y,p=null,d=null}else if(j(i)&&l){var v=function(m,x,_,b){var w=_[0],S=_[1],M=Math.ceil(Math.SQRT2*b)+8,T=0,I=0,C=x.width,D=x.height;switch(m){case"inside":T=x.x+C/2-w/2,I=x.y+D/2-S/2;break;case"top":T=x.x+C/2-w/2,I=x.y-S-M;break;case"bottom":T=x.x+C/2-w/2,I=x.y+D+M;break;case"left":T=x.x-w-M,I=x.y+D/2-S/2;break;case"right":T=x.x+C+M,I=x.y+D/2-S/2}return[T,I]}(i,f,c,e.get("borderWidth"));r=v[0],o=v[1]}else v=function(m,x,_,b,w,S,M){var T=_.getSize(),I=T[0],C=T[1];return S!=null&&(m+I+S+2>b?m-=I+S:m+=S),M!=null&&(x+C+M>w?x-=C+M:x+=M),[m,x]}(r,o,a,u,h,p?null:20,d?null:20),r=v[0],o=v[1];p&&(r-=LS(p)?c[0]/2:p==="right"?c[0]:0),d&&(o-=LS(d)?c[1]/2:d==="bottom"?c[1]:0),bS(e)&&(v=function(m,x,_,b,w){var S=_.getSize(),M=S[0],T=S[1];return m=Math.min(m+M,b)-M,x=Math.min(x+T,w)-T,m=Math.max(m,0),x=Math.max(x,0),[m,x]}(r,o,a,u,h),r=v[0],o=v[1]),a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===e.length;return a&&A(r,function(s,l){var u=s.dataByAxis||[],h=(e[l]||{}).dataByAxis||[];(a=a&&u.length===h.length)&&A(u,function(c,p){var d=h[p]||{},f=c.seriesDataIndices||[],g=d.seriesDataIndices||[];(a=a&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&f.length===g.length)&&A(f,function(y,v){var m=g[v];a=a&&y.seriesIndex===m.seriesIndex&&y.dataIndex===m.dataIndex}),o&&A(c.seriesDataIndices,function(y){var v=y.seriesIndex,m=i[v],x=o[v];m&&x&&x.data!==m.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){!we.node&&i.getDom()&&(Ga(this,"_updatePosition"),this._tooltipContent.dispose(),Pf("itemTooltip",i))},t.type="tooltip",t}(je);function vs(n,t,e){var i,r=t.ecModel;e?(i=new He(e,r,r),i=new He(t.option,i,r)):i=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof He&&(a=a.get("tooltip",!0)),j(a)&&(a={formatter:a}),a&&(i=new He(a,i,r)))}return i}function kS(n,t){return n.dispatchAction||Q(t.dispatchAction,t)}function LS(n){return n==="center"||n==="middle"}const jP=ZP;var PS=A;function OS(n){if(n){for(var t in n)if(n.hasOwnProperty(t))return!0}}function RS(n,t,e){var i={};return PS(t,function(r){var o,a=i[r]=((o=function(){}).prototype.__hidden=o.prototype,new o);PS(n[r],function(s,l){if(Nt.isValidType(l)){var u={type:l,visual:s};e&&e(u,r),a[l]=new Nt(u),l==="opacity"&&((u=oe(u)).type="colorAlpha",a.__hidden.__alphaForOpacity=new Nt(u))}})}),i}function qP(n,t,e,i){var r={};return A(n,function(o){var a=Nt.prepareVisualTypes(t[o]);r[o]=a}),{progress:function(o,a){var s,l;function u(_){return ix(a,l,_)}function h(_,b){(function(w,S,M,T){switch(M){case"color":w.ensureUniqueItemVisual(S,"style")[w.getVisual("drawType")]=T,w.setItemVisual(S,"colorFromPalette",!1);break;case"opacity":w.ensureUniqueItemVisual(S,"style").opacity=T;break;case"symbol":case"symbolSize":case"liftZ":w.setItemVisual(S,M,T);break;default:console.warn("Unknown visual type "+M)}})(a,l,_,b)}i!=null&&(s=a.getDimensionIndex(i));for(var c=a.getStore();(l=o.next())!=null;){var p=a.getRawDataItem(l);if(!p||p.visualMap!==!1)for(var d=i!=null?c.get(s,l):l,f=e(d),g=t[f],y=r[f],v=0,m=y.length;v<m;v++){var x=y[v];g[x]&&g[x].applyVisual(d,u,h)}}}}}var KP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return V(t,n),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Te),JP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){if(this.group.removeAll(),e.get("show")){var o=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=fe(e.get("textBaseline"),e.get("textVerticalAlign")),h=new ke({style:it(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),p=e.get("subtext"),d=new ke({style:it(s,{text:p,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),g=e.get("sublink"),y=e.get("triggerEvent",!0);h.silent=!f&&!y,d.silent=!g&&!y,f&&h.on("click",function(){Nm(f,"_"+e.get("target"))}),g&&d.on("click",function(){Nm(g,"_"+e.get("subtarget"))}),ye(h).eventData=ye(d).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(h),p&&o.add(d);var v=o.getBoundingRect(),m=e.getBoxLayoutParams();m.width=v.width,m.height=v.height;var x=St(m,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));l||((l=e.get("left")||e.get("right"))==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||((u=e.get("top")||e.get("bottom"))==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),o.x=x.x,o.y=x.y,o.markRedraw();var _={align:l,verticalAlign:u};h.setStyle(_),d.setStyle(_),v=o.getBoundingRect();var b=x.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var S=new Ie({shape:{x:v.x-b[3],y:v.y-b[0],width:v.width+b[1]+b[3],height:v.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});o.add(S)}},t.type="title",t}(je),$P=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,r=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),Y(i)&&A(i,function(o,a){j(o)&&(o={type:o}),i[a]=pe(o,function(s,l){return l==="all"?{type:"all",title:s.getLocaleModel().get(["legend","selector","all"])}:l==="inverse"?{type:"inverse",title:s.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<e.length;r++){var o=e[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],r=[];e.eachRawSeries(function(l){var u,h=l.name;if(r.push(h),l.legendVisualProvider){var c=l.legendVisualProvider.getAllNames();e.isSeriesFiltered(l)||(r=r.concat(c)),c.length?i=i.concat(c):u=!0}else u=!0;u&&vc(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=te(),s=X(o,function(l){return(j(l)||Re(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new He(l,this,this.ecModel))},this);this._data=We(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected;this.get("selectedMode")==="single"&&A(this._data,function(r){i[r.get("name")]=!1}),i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;A(e,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;A(e,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&Me(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Te);const qf=$P;var Eo=xe,Kf=A,sh=ge,QP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return V(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new sh),this.group.add(this._selectorGroup=new sh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");a&&a!=="auto"||(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);!l||u&&u!=="auto"||(u=s==="horizontal"?"end":"start"),this.renderInner(a,e,i,r,l,s,u);var h=e.getBoxLayoutParams(),c={width:r.getWidth(),height:r.getHeight()},p=e.get("padding"),d=St(h,c,p),f=this.layoutInner(e,a,d,o,l,u),g=St(le({width:f.width,height:f.height},h),c,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uS(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this.getContentGroup(),h=te(),c=i.get("selectedMode"),p=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),Kf(i.getData(),function(d,f){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
- `)){var y=new sh;return y.newline=!0,void u.add(y)}var v=r.getSeriesByName(g)[0];if(!h.get(g)){if(v){var m=v.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),b=m.getVisual("style"),w=this._createItem(v,g,f,d,i,e,x,b,_,c,o);w.on("click",Eo(ES,g,null,o,p)).on("mouseover",Eo(Jf,v.name,null,o,p)).on("mouseout",Eo($f,v.name,null,o,p)),r.ssr&&w.eachChild(function(S){var M=ye(S);M.seriesIndex=v.seriesIndex,M.dataIndex=f,M.ssrType="legend"}),h.set(g,!0)}else r.eachRawSeries(function(S){if(!h.get(g)&&S.legendVisualProvider){var M=S.legendVisualProvider;if(!M.containName(g))return;var T=M.indexOfName(g),I=M.getItemVisual(T,"style"),C=M.getItemVisual(T,"legendIcon"),D=At(I.fill);D&&D[3]===0&&(D[3]=.2,I=G(G({},I),{fill:vn(D,"rgba")}));var L=this._createItem(S,g,f,d,i,e,{},I,C,c,o);L.on("click",Eo(ES,null,g,o,p)).on("mouseover",Eo(Jf,null,g,o,p)).on("mouseout",Eo($f,null,g,o,p)),r.ssr&&L.eachChild(function(R){var P=ye(R);P.seriesIndex=S.seriesIndex,P.dataIndex=f,P.ssrType="legend"}),h.set(g,!0)}},this);h.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name.")}},this),a&&this._createSelector(a,i,o,s,l)},t.prototype._createSelector=function(e,i,r,o,a){var s=this.getSelectorGroup();Kf(e,function(l){var u=l.type,h=new ke({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h),ai(h,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),ro(h)})},t.prototype._createItem=function(e,i,r,o,a,s,l,u,h,c,p){var d=e.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),y=a.isSelected(i),v=o.get("symbolRotate"),m=o.get("symbolKeepAspect"),x=o.get("icon"),_=function(P,E,k,O,N,B,z){function U(J,H){J.lineWidth==="auto"&&(J.lineWidth=H.lineWidth>0?2:0),Kf(J,function($,re){J[re]==="inherit"&&(J[re]=H[re])})}var Z=E.getModel("itemStyle"),F=Z.getItemStyle(),W=P.lastIndexOf("empty",0)===0?"fill":"stroke",K=Z.getShallow("decal");F.decal=K&&K!=="inherit"?ou(K,z):O.decal,F.fill==="inherit"&&(F.fill=O[N]),F.stroke==="inherit"&&(F.stroke=O[W]),F.opacity==="inherit"&&(F.opacity=(N==="fill"?O:k).opacity),U(F,O);var se=E.getModel("lineStyle"),he=se.getLineStyle();if(U(he,k),F.fill==="auto"&&(F.fill=O.fill),F.stroke==="auto"&&(F.stroke=O.fill),he.stroke==="auto"&&(he.stroke=O.fill),!B){var ie=E.get("inactiveBorderWidth"),q=F[W];F.lineWidth=ie==="auto"?O.lineWidth>0&&q?2:0:F.lineWidth,F.fill=E.get("inactiveColor"),F.stroke=E.get("inactiveBorderColor"),he.stroke=se.get("inactiveColor"),he.lineWidth=se.get("inactiveWidth")}return{itemStyle:F,lineStyle:he}}(h=x||h||"roundRect",o,l,u,d,y,p),b=new sh,w=o.getModel("textStyle");if(!ae(e.getLegendIcon)||x&&x!=="inherit"){var S=x==="inherit"&&e.getData().getVisual("symbol")?v==="inherit"?e.getData().getVisual("symbolRotate"):v:0;b.add(function(P){var E=P.icon||"roundRect",k=ut(E,0,0,P.itemWidth,P.itemHeight,P.itemStyle.fill,P.symbolKeepAspect);return k.setStyle(P.itemStyle),k.rotation=(P.iconRotate||0)*Math.PI/180,k.setOrigin([P.itemWidth/2,P.itemHeight/2]),E.indexOf("empty")>-1&&(k.style.stroke=k.style.fill,k.style.fill="#fff",k.style.lineWidth=2),k}({itemWidth:f,itemHeight:g,icon:h,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:g,icon:h,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));var M=s==="left"?f+5:-5,T=s,I=a.get("formatter"),C=i;j(I)&&I?C=I.replace("{name}",i??""):ae(I)&&(C=I(i));var D=y?w.getTextColor():o.get("inactiveColor");b.add(new ke({style:it(w,{text:C,x:M,y:g/2,fill:D,align:T,verticalAlign:"middle"},{inheritColor:D})}));var L=new Ie({shape:b.getBoundingRect(),style:{fill:"transparent"}}),R=o.getModel("tooltip");return R.get("show")&&Ta({el:L,componentModel:a,itemName:i,itemTooltipOption:R.option}),b.add(L),b.eachChild(function(P){P.silent=!0}),L.silent=!c,this.getContentGroup().add(b),ro(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wr(e.get("orient"),l,e.get("itemGap"),r.width,r.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),a){wr("horizontal",u,e.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],f=e.get("selectorButtonGap",!0),g=e.getOrient().index,y=g===0?"width":"height",v=g===0?"height":"width",m=g===0?"y":"x";s==="end"?d[g]+=h[y]+f:c[g]+=p[y]+f,d[1-g]+=h[v]/2-p[v]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[y]=h[y]+f+p[y],x[v]=Math.max(h[v],p[v]),x[m]=Math.min(0,p[m]+d[1-g]),x}return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(je);function ES(n,t,e,i){$f(n,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:n??t}),Jf(n,t,e,i)}function NS(n){for(var t,e=n.getZr().storage.getDisplayList(),i=0,r=e.length;i<r&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function Jf(n,t,e,i){NS(e)||e.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:i})}function $f(n,t,e,i){NS(e)||e.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:i})}const zS=QP;function eO(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function ms(n,t,e){var i,r={},o=n==="toggleSelected";return e.eachComponent("legend",function(a){o&&i!=null?a[i?"select":"unSelect"](t.name):n==="allSelect"||n==="inverseSelect"?a[n]():(a[n](t.name),i=a.isSelected(t.name)),A(a.getData(),function(s){var l=s.get("name");if(l!==`
- `&&l!==""){var u=a.isSelected(l);r.hasOwnProperty(l)?r[l]=r[l]&&u:r[l]=u}})}),n==="allSelect"||n==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function BS(n){n.registerComponentModel(qf),n.registerComponentView(zS),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,eO),n.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",xe(ms,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",xe(ms,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",xe(ms,"inverseSelect")),t.registerAction("legendSelect","legendselected",xe(ms,"select")),t.registerAction("legendUnSelect","legendunselected",xe(ms,"unSelect"))}(n)}function VS(n,t,e){var i=[1,1];i[n.getOrient().index]=0,yo(t,e,{type:"box",ignoreSize:!!i})}const tO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,r){var o=Pa(e);n.prototype.init.call(this,e,i,r),VS(this,e,o)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),VS(this,this.option,e)},t.type="legend.scroll",t.defaultOption=xr(qf.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(qf);var FS=ge,Qf=["width","height"],eg=["x","y"],nO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return V(t,n),t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new FS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new FS)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this;n.prototype.renderInner.call(this,e,i,r,o,a,s,l);var h=this._controllerGroup,c=i.get("pageIconSize",!0),p=Y(c)?c:[c,c];f("pagePrev",0);var d=i.getModel("pageTextStyle");function f(g,y){var v=g+"DataIndex",m=Ma(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:Q(u._pageGo,u,v,i,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});m.name=g,h.add(m)}h.add(new ke({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getSelectorGroup(),u=e.getOrient().index,h=Qf[u],c=eg[u],p=Qf[1-u],d=eg[1-u];a&&wr("horizontal",l,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],v=oe(r);a&&(v[h]=r[h]-g[h]-f);var m=this._layoutContentAndController(e,o,v,u,h,p,d,c);if(a){if(s==="end")y[u]+=m[h]+f;else{var x=g[h]+f;y[u]-=x,m[c]-=x}m[h]+=g[h]+f,y[1-u]+=m[d]+m[p]/2-g[p]/2,m[p]=Math.max(m[p],g[p]),m[d]=Math.min(m[d],g[d]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;wr(e.get("orient"),h,e.get("itemGap"),o?r.width:null,o?null:r.height),wr("horizontal",p,e.get("pageButtonItemGap",!0));var d=h.getBoundingRect(),f=p.getBoundingRect(),g=this._showController=d[a]>r[a],y=[-d.x,-d.y];i||(y[o]=h[u]);var v=[0,0],m=[-f.x,-f.y],x=fe(e.get("pageButtonGap",!0),e.get("itemGap",!0));g&&(e.get("pageButtonPosition",!0)==="end"?m[o]+=r[a]-f[a]:v[o]+=f[a]+x),m[1-o]+=d[s]/2-f[s]/2,h.setPosition(y),c.setPosition(v),p.setPosition(m);var _={x:0,y:0};if(_[a]=g?r[a]:d[a],_[s]=Math.max(d[s],f[s]),_[l]=Math.min(0,f[l]+m[1-o]),c.__rectSize=r[a],g){var b={x:0,y:0};b[a]=Math.max(r[a]-f[a]-x,0),b[s]=_[s],c.setClipPath(new Ie({shape:b})),c.__rectSize=b[a]}else p.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ze(h,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),_},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;A(["pagePrev","pageNext"],function(h){var c=i[h+"DataIndex"]!=null,p=r.childOfName(h);p&&(p.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),p.cursor=c?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;o&&a&&o.setStyle("text",j(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=Qf[a],l=eg[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,x=null;y<=p;++y)(!(x=_(h[y]))&&m.e>v.s+o||x&&!b(x,v.s))&&(v=m.i>v.i?m:x)&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=v.i),++f.pageCount),m=x;for(y=u-1,v=g,m=g,x=null;y>=-1;--y)(x=_(h[y]))&&b(m,x.s)||!(v.i<m.i)||(m=v,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=v.i),++f.pageCount,++f.pageIndex),v=x;return f;function _(w){if(w){var S=w.getBoundingRect(),M=S[l]+w[l];return{s:M,e:M+S[s],i:w.__legendDataIndex}}}function b(w,S){return w.e>=S&&w.s<=S+o}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(o,a){var s=o.__legendDataIndex;r==null&&s!=null&&(r=a),s===e&&(i=a)}),i??r):0;var i,r},t.type="legend.scroll",t}(zS);const iO=nO;function rO(n){rt(BS),n.registerComponentModel(tO),n.registerComponentView(iO),function(t){t.registerAction("legendScroll","legendscroll",function(e,i){var r=e.scrollDataIndex;r!=null&&i.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(r)})})}(n)}const oO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.inside",t.defaultOption=xr(gs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(gs);var tg=Ne();function GS(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function aO(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function sO(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function lO(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=tg(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=te());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){A(iS(o).infoList,function(a){var s=a.model.uid,l=r.get(s)||r.set(s,function(u,h){var c={model:h,containsPoint:xe(sO,h),dispatchAction:xe(aO,u),dataZoomInfoMap:null,controller:null},p=c.controller=new Jd(u.getZr());return A(["pan","zoom","scrollMove"],function(d){p.on(d,function(f){var g=[];c.dataZoomInfoMap.each(function(y){if(f.isAvailableBehavior(y.model.option)){var v=(y.getRange||{})[d],m=v&&v(y.dzReferCoordSysInfo,c.model.mainType,c.controller,f);!y.model.get("disabled",!0)&&m&&g.push({dataZoomId:y.model.id,start:m[0],end:m[1]})}}),g.length&&c.dispatchAction(g)})}),c}(e,a.model));(l.dataZoomInfoMap||(l.dataZoomInfoMap=te())).set(o.uid,{dzReferCoordSysInfo:a,model:o,getRange:null})})}),r.each(function(o){var a,s=o.controller,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(a=l.get(u))}if(a){var h=function(c){var p,d="type_",f={type_true:2,type_move:1,type_false:0,type_undefined:-1},g=!0;return c.each(function(y){var v=y.model,m=!v.get("disabled",!0)&&(!v.get("zoomLock",!0)||"move");f[d+m]>f[d+p]&&(p=m),g=g&&v.get("preventDefaultMouseMove",!0)}),{controlType:p,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!g}}}(l);s.enable(h.controlType,h.opt),s.setPointerChecker(o.containsPoint),Fa(o,"dispatchAction",a.model.get("throttle",!0),"fixRate")}else GS(r,o)})})}var uO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return V(t,n),t.prototype.render=function(e,i,r){n.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(o,a,s){tg(o).coordSysRecordMap.each(function(l){var u=l.dataZoomInfoMap.get(a.uid);u&&(u.getRange=s)})}(r,e,{pan:Q(ng.pan,this),zoom:Q(ng.zoom,this),scrollMove:Q(ng.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,i){for(var r=tg(e).coordSysRecordMap,o=r.keys(),a=0;a<o.length;a++){var s=o[a],l=r.get(s),u=l.dataZoomInfoMap;if(u){var h=i.uid;u.get(h)&&(u.removeKey(h),u.keys().length||GS(r,l))}}})(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Bf),ng={zoom:function(n,t,e,i){var r=this.range,o=r.slice(),a=n.axisModels[0];if(a){var s=ig[t](null,[i.originX,i.originY],a,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Rr(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:HS(function(n,t,e,i,r,o){var a=ig[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:HS(function(n,t,e,i,r,o){return ig[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e).signal*(n[1]-n[0])*o.scrollDelta})};function HS(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return Rr(n(a,s,t,e,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var ig={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const hO=uO;function cO(n){Vf(n),n.registerComponentModel(oO),n.registerComponentView(hO),lO(n)}const pO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=xr(gs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(gs);var xs=Ie,_s="horizontal",WS="vertical",dO=["line","bar","candlestick","scatter"],fO={easing:"cubicOut",duration:100,delay:0},gO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return V(t,n),t.prototype.init=function(e,i){this.api=i,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),Fa(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")!==!1){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&o.type==="dataZoom"&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ga(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ge;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect")?7:0,o=this._findCoordRect(),a={width:i.getWidth(),height:i.getHeight()},s=this._orient===_s?{right:a.width-o.x-o.width,top:a.height-30-7-r,width:o.width,height:30}:{right:7,top:o.y,width:30,height:o.height},l=Pa(e.option);A(["right","top","width","height"],function(h){l[h]==="ph"&&(l[h]=s[h])});var u=St(l,a);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===WS&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r!==_s||a?r===_s&&a?{scaleY:l?1:-1,scaleX:-1}:r!==WS||a?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new xs({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new xs({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l!=null){var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var c=a.getDataExtent(l),p=.3*(c[1]-c[0]);c=[c[0]-p,c[1]+p];var d,f=[0,i[1]],g=[0,i[0]],y=[[i[0],0],[0,0]],v=[],m=g[1]/(a.count()-1),x=0,_=Math.round(a.count()/i[0]);a.each([l],function(T,I){if(_>0&&I%_)x+=m;else{var C=T==null||isNaN(T)||T==="",D=C?0:Ae(T,c,f,!0);C&&!d&&I?(y.push([y[y.length-1][0],0]),v.push([v[v.length-1][0],0])):!C&&d&&(y.push([x,0]),v.push([x,0])),y.push([x,D]),v.push([x,D]),x+=m,d=C}}),u=this._shadowPolygonPts=y,h=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];for(var b=this.dataZoomModel,w=0;w<3;w++){var S=M(w===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function M(T){var I=b.getModel(T?"selectedDataBackground":"dataBackground"),C=new ge,D=new Vn({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new _n({shape:{points:h},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return C.add(D),C.add(L),C}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){A(e.getAxisProxy(a,s).getTargetSeriesModels(),function(l){if(!(r||i!==!0&&Me(dO,l.get("type"))<0)){var u,h=o.getComponent(Vi(a),s).axis,c=function(d){var f={x:"y",y:"x",radius:"angle",angle:"radius"};return f[d]}(a),p=l.coordinateSystem;c!=null&&p.getOtherAxis&&(u=p.getOtherAxis(h).inverse),c=l.getData().mapDimension(c),r={thisAxis:h,series:l,thisDim:a,otherDim:c,otherAxisInverse:u}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=i.filler=new xs({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new xs({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),A([0,1],function(x){var _=l.get("handleIcon");!eu[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_,$t("handleIcon now needs 'path://' prefix when using a path string"));var b=ut(_,-1,0,2,2,null,!0);b.attr({cursor:YS(this._orient),draggable:!0,drift:Q(this._onDragMove,this,x),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var w=b.getBoundingRect(),S=l.get("handleSize");this._handleHeight=ne(S,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ro(b);var M=l.get("handleColor");M!=null&&(b.style.fill=M),a.add(r[x]=b);var T=l.getModel("textStyle");e.add(o[x]=new ke({silent:!0,invisible:!0,style:it(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var d=p;if(c){var f=ne(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new Ie({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),y=.8*f,v=i.moveHandleIcon=ut(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);v.silent=!0,v.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));(d=i.moveZone=new Ie({invisible:!0,shape:{y:s[1]-m,height:f+m}})).on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(v),a.add(d)}d.attr({draggable:!0,cursor:YS(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ae(e[0],[0,100],i,!0),Ae(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Rr(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?Ae(s.minSpan,l,a,!0):null,s.maxSpan!=null?Ae(s.maxSpan,l,a,!0):null);var u=this._range,h=this._range=Qn([Ae(o[0],a,l,!0),Ae(o[1],a,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=Qn(r.slice()),a=this._size;A([0,1],function(d){var f=i.handles[d],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:r[d]+(d?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,o[0],o[1],a[0]],h=0;h<l.length;h++){var c=l[h],p=c.getClipPath();p||(p=new Ie,c.setClipPath(p)),p.setShape({x:u[h],y:0,width:u[h+1]-u[h],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,h=this._range,c=e?l.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var p=Qn(this._handleEnds.slice());function d(f){var g=Ai(r.handles[f].parent,this.group),y=Cl(f===0?"right":"left",g),v=this._handleWidth/2+5,m=Fn([p[f]+(f===0?-v:v),this._size[1]/2],g);o[f].setStyle({x:m[0],y:m[1],verticalAlign:a===_s?"middle":y,align:a===_s?y:"center",text:s[f]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,i){var r=this.dataZoomModel,o=r.get("labelFormatter"),a=r.get("labelPrecision");a!=null&&a!=="auto"||(a=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(a,20));return ae(o)?o(e,s):j(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var i=this._displayables,r=i.handleLabels;r[0].attr("invisible",!e),r[1].attr("invisible",!e),i.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,i,r,o){this._dragging=!0,Jn(o.event);var a=Fn([i,r],this._displayables.sliderGroup.getLocalTransform(),!0),s=this._updateInterval(e,a[0]),l=this.dataZoomModel.get("realtime");this._updateView(!l),s&&l&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new de(i,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,i){i.attr("ignore",!0);var r=i.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(r.width)<5)){var o=this._getViewExtent(),a=[0,100];this._range=Qn([Ae(r.x,o,a,!0),Ae(r.x+r.width,o,a,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Jn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new xs({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),a.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?fO:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=iS(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:.2*o,y:.2*a,width:.6*o,height:.6*a}}return e},t.type="dataZoom.slider",t}(Bf);function YS(n){return n==="vertical"?"ns-resize":"ew-resize"}const yO=gO;function vO(n){n.registerComponentModel(pO),n.registerComponentView(yO),Vf(n)}var mO={get:function(n,t,e){var i=oe((xO[n]||{})[t]);return e&&Y(i)?i[i.length-1]:i}},xO={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const XS=mO;var US=Nt.mapVisual,_O=Nt.eachVisual,wO=Y,ZS=A,bO=Qn,SO=Ae,MO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,i){var r=this.option;!i&&function(o,a,s){var l;A(s,function(u){a.hasOwnProperty(u)&&OS(a[u])&&(l=!0)}),l&&A(s,function(u){a.hasOwnProperty(u)&&OS(a[u])?o[u]=oe(a[u]):delete o[u]})}(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=Q(e,this),this.controllerVisuals=RS(this.option.controller,i,e),this.targetVisuals=RS(this.option.target,i,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,i=[];return e==null||e==="all"?this.ecModel.eachSeries(function(r,o){i.push(o)}):i=Qe(e),i},t.prototype.eachTargetSeries=function(e,i){A(this.getTargetSeriesIndices(),function(r){var o=this.ecModel.getSeriesByIndex(r);o&&e.call(i,o)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(r){r===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,r){var o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;r=r||["<",">"],Y(e)&&(e=e.slice(),o=!0);var h=i?e:o?[c(e[0]),c(e[1])]:c(e);return j(u)?u.replace("{value}",o?h[0]:h).replace("{value2}",o?h[1]:h):ae(u)?o?u(e[0],e[1]):u(e):o?e[0]===l[0]?r[0]+" "+h[1]:e[1]===l[1]?r[1]+" "+h[0]:h[0]+" - "+h[1]:h;function c(p){return p===l[0]?"min":p===l[1]?"max":(+p).toFixed(Math.min(s,20))}},t.prototype.resetExtent=function(){var e=this.option,i=bO([e.min,e.max]);this._dataExtent=i},t.prototype.getDataDimensionIndex=function(e){var i=this.option.dimension;if(i!=null)return e.getDimensionIndex(i);for(var r=e.dimensions,o=r.length-1;o>=0;o--){var a=r[o],s=e.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,r={inRange:i.inRange,outOfRange:i.outOfRange},o=i.target||(i.target={}),a=i.controller||(i.controller={});pe(o,r),pe(a,r);var s=this.isCategory();function l(u){wO(i.color)&&!u.inRange&&(u.inRange={color:i.color.slice().reverse()}),u.inRange=u.inRange||{color:e.get("gradientColor")}}l.call(this,o),l.call(this,a),(function(u,h,c){var p=u[h],d=u[c];p&&!d&&(d=u[c]={},ZS(p,function(f,g){if(Nt.isValidType(g)){var y=XS.get(g,"inactive",s);y!=null&&(d[g]=y,g!=="color"||d.hasOwnProperty("opacity")||d.hasOwnProperty("colorAlpha")||(d.opacity=[0,0]))}}))}).call(this,o,"inRange","outOfRange"),(function(u){var h=(u.inRange||{}).symbol||(u.outOfRange||{}).symbol,c=(u.inRange||{}).symbolSize||(u.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol()||"roundRect";ZS(this.stateList,function(f){var g=this.itemSize,y=u[f];y||(y=u[f]={color:s?p:[p]}),y.symbol==null&&(y.symbol=h&&oe(h)||(s?d:[d])),y.symbolSize==null&&(y.symbolSize=c&&oe(c)||(s?g[0]:[g[0],g[0]])),y.symbol=US(y.symbol,function(x){return x==="none"?d:x});var v=y.symbolSize;if(v!=null){var m=-1/0;_O(v,function(x){x>m&&(m=x)}),y.symbolSize=US(v,function(x){return SO(x,[0,m],[0,g[0]],!0)})}},this)}).call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Te);const lh=MO;var jS=[20,140],TO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=jS[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=jS[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):Y(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],e[0]),i[1]=Math.min(i[1],e[1]))},t.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var i=this.option.controller[e].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),i=Qn((this.get("range")||[]).slice());return i[0]>e[1]&&(i[0]=e[1]),i[1]>e[1]&&(i[1]=e[1]),i[0]<e[0]&&(i[0]=e[0]),i[1]<e[0]&&(i[1]=e[0]),i},t.prototype.getValueState=function(e){var i=this.option.range,r=this.getExtent();return(i[0]<=r[0]||i[0]<=e)&&(i[1]>=r[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(r){var o=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(s,l){e[0]<=s&&s<=e[1]&&o.push(l)},this),i.push({seriesId:r.id,dataIndex:o})},this),i},t.prototype.getVisualMeta=function(e){var i=qS(this,"outOfRange",this.getExtent()),r=qS(this,"inRange",this.option.range.slice()),o=[];function a(d,f){o.push({value:d,color:e(d,f)})}for(var s=0,l=0,u=r.length,h=i.length;l<h&&(!r.length||i[l]<=r[0]);l++)i[l]<r[s]&&a(i[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&o.length&&a(r[s],"outOfRange"),a(r[s],"inRange");for(c=1;l<h;l++)(!r.length||r[r.length-1]<i[l])&&(c&&(o.length&&a(o[o.length-1].value,"outOfRange"),c=0),a(i[l],"outOfRange"));var p=o.length;return{stops:o,outerColors:[p?o[0].color:"transparent",p?o[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=xr(lh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(lh);function qS(n,t,e){if(e[0]===e[1])return e.slice();for(var i=(e[1]-e[0])/200,r=e[0],o=[],a=0;a<=200&&r<e[1];a++)o.push(r),r+=i;return o.push(e[1]),o}const IO=TO,KS=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return V(t,n),t.prototype.init=function(e,i){this.ecModel=e,this.api=i},t.prototype.render=function(e,i,r,o){this.visualMapModel=e,e.get("show")!==!1?this.doRender(e,i,r,o):this.group.removeAll()},t.prototype.renderBackground=function(e){var i=this.visualMapModel,r=go(i.get("padding")||0),o=e.getBoundingRect();e.add(new Ie({z2:-1,silent:!0,shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[3]+r[1],height:o.height+r[0]+r[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,i,r){var o=(r=r||{}).forceState,a=this.visualMapModel,s={};if(i==="color"){var l=a.get("contentColor");s.color=l}function u(p){return s[p]}function h(p,d){s[p]=d}var c=a.controllerVisuals[o||a.getValueState(e)];return A(Nt.prepareVisualTypes(c),function(p){var d=c[p];r.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",d=c.__alphaForOpacity),Nt.dependsOn(p,i)&&d&&d.applyVisual(e,u,h)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,r=this.api;zm(e,i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},t.prototype.doRender=function(e,i,r,o){},t.type="visualMap",t}(je);var JS=[["left","right","width"],["top","bottom","height"]];function $S(n,t,e){var i=n.option,r=i.align;if(r!=null&&r!=="auto")return r;for(var o={width:t.getWidth(),height:t.getHeight()},a=i.orient==="horizontal"?1:0,s=JS[a],l=[0,null,10],u={},h=0;h<3;h++)u[JS[1-a][h]]=l[h],u[s[h]]=h===2?e[0]:i[s[h]];var c=[["x","width",3],["y","height",0]][a],p=St(u,o,i.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+.5*p[c[1]]<.5*o[c[1]]?0:1]}function uh(n,t){return A(n||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),n}var Zn=Ae,CO=A,QS=Math.min,rg=Math.max,AO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return V(t,n),t.prototype.init=function(e,i){n.prototype.init.call(this,e,i),this._hoverLinkFromSeriesMouseOver=Q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Q(this._hideIndicator,this)},t.prototype.doRender=function(e,i,r,o){o&&o.type==="selectDataRange"&&o.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,i=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(i);var r=e.get("text");this._renderEndsText(i,r,0),this._renderEndsText(i,r,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},t.prototype._renderEndsText=function(e,i,r){if(i){var o=i[1-r];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,h=this._applyTransform([l[0]/2,r===0?-s:l[1]+s],u),c=this._applyTransform(r===0?"bottom":"top",u),p=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new ke({style:it(d,{x:h[0],y:h[1],verticalAlign:p==="horizontal"?"middle":c,align:p==="horizontal"?c:"center",text:o})}))}},t.prototype._renderBar=function(e){var i=this.visualMapModel,r=this._shapes,o=i.itemSize,a=this._orient,s=this._useHandle,l=$S(i,this.api,o),u=r.mainGroup=this._createBarGroup(l),h=new ge;u.add(h),h.add(r.outOfRange=eM()),h.add(r.inRange=eM(null,s?nM(this._orient):null,Q(this._dragHandle,this,"all",!1),Q(this._dragHandle,this,"all",!0))),h.setClipPath(new Ie({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var c=i.textStyleModel.getTextRect("\u56FD"),p=rg(c.width,c.height);s&&(r.handleThumbs=[],r.handleLabels=[],r.handleLabelPoints=[],this._createHandle(i,u,0,o,p,a),this._createHandle(i,u,1,o,p,a)),this._createIndicator(i,u,o,p,a),e.add(u)},t.prototype._createHandle=function(e,i,r,o,a,s){var l=Q(this._dragHandle,this,r,!1),u=Q(this._dragHandle,this,r,!0),h=Ln(e.get("handleSize"),o[0]),c=ut(e.get("handleIcon"),-h/2,-h/2,h,h,null,!0),p=nM(this._orient);c.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(v){Jn(v.event)}}),c.x=o[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Yc(c,!0),i.add(c);var d=this.visualMapModel.textStyleModel,f=new ke({cursor:p,draggable:!0,drift:l,onmousemove:function(v){Jn(v.event)},ondragend:u,style:it(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var g=[h,0],y=this._shapes;y.handleThumbs[r]=c,y.handleLabelPoints[r]=g,y.handleLabels[r]=f},t.prototype._createIndicator=function(e,i,r,o,a){var s=Ln(e.get("indicatorSize"),r[0]),l=ut(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:r[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Gt){var h=l.style;l.useStyle(G({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u);i.add(l);var c=this.visualMapModel.textStyleModel,p=new ke({silent:!0,invisible:!0,style:it(c,{x:0,y:0,text:""})});this.group.add(p);var d=[(a==="horizontal"?o/2:6)+r[0]/2,0],f=this._shapes;f.indicator=l,f.indicatorLabel=p,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,i,r,o){if(this._useHandle){if(this._dragging=!i,!i){var a=this._applyTransform([r,o],this._shapes.mainGroup,!0);this._updateInterval(e,a[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():tM(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,i=this._dataInterval=e.getSelected(),r=e.getExtent(),o=[0,e.itemSize[1]];this._handleEnds=[Zn(i[0],r,o,!0),Zn(i[1],r,o,!0)]},t.prototype._updateInterval=function(e,i){i=i||0;var r=this.visualMapModel,o=this._handleEnds,a=[0,r.itemSize[1]];Rr(i,o,a,e,0);var s=r.getExtent();this._dataInterval=[Zn(o[0],a,s,!0),Zn(o[1],a,s,!0)]},t.prototype._updateView=function(e){var i=this.visualMapModel,r=i.getExtent(),o=this._shapes,a=[0,i.itemSize[1]],s=e?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,r,s,"inRange"),u=this._createBarVisual(r,r,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,i,r,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,a),l=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],u=this._createBarPoints(r,l);return{barColor:new wa(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,i){var r=[],o=(e[1]-e[0])/100;r.push({color:this.getControllerVisual(e[0],"color",i),offset:0});for(var a=1;a<100;a++){var s=e[0]+o*a;if(s>e[1])break;r.push({color:this.getControllerVisual(s,"color",i),offset:a/100})}return r.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),r},t.prototype._createBarPoints=function(e,i){var r=this.visualMapModel.itemSize;return[[r[0]-i[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,r=this.visualMapModel.get("inverse");return new ge(i!=="horizontal"||r?i==="horizontal"&&r?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i!=="vertical"||r?{scaleX:e==="left"?1:-1}:{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,i){if(this._useHandle){var r=this._shapes,o=this.visualMapModel,a=r.handleThumbs,s=r.handleLabels,l=o.itemSize,u=o.getExtent();CO([0,1],function(h){var c=a[h];c.setStyle("fill",i.handlesColor[h]),c.y=e[h];var p=Zn(e[h],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var f=Fn(r.handleLabelPoints[h],Ai(c,this.group));s[h].setStyle({x:f[0],y:f[1],text:o.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",r.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,r,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(c){c.attr("invisible",!1);var p=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),f=Zn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=f,c.x=g;var v=Fn(h.indicatorLabelPoint,Ai(c,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var x=this._applyTransform("left",h.mainGroup),_=this._orient==="horizontal";m.setStyle({text:(r||"")+a.formatValueText(i),verticalAlign:_?x:"middle",align:_?"center":x});var b={x:g,y:f,style:{fill:p}},w={style:{x:v[0],y:v[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(b,S),m.animateTo(w,S)}else c.attr(b),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var T=0;T<M.length;T++)this.api.enterBlur(M[T])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(i){if(e._hovering=!0,!e._dragging){var r=e.visualMapModel.itemSize,o=e._applyTransform([i.offsetX,i.offsetY],e._shapes.mainGroup,!0,!0);o[1]=QS(rg(0,o[1]),r[1]),e._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=r[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,i){var r=this.visualMapModel,o=r.itemSize;if(r.option.hoverLink){var a=[0,o[1]],s=r.getExtent();e=QS(rg(a[0],e),a[1]);var l=function(g,y,v){var m=6,x=g.get("hoverLinkDataSize");return x&&(m=Zn(x,y,v,!0)/2),m}(r,s,a),u=[e-l,e+l],h=Zn(e,a,s,!0),c=[Zn(u[0],a,s,!0),Zn(u[1],a,s,!0)];u[0]<a[0]&&(c[0]=-1/0),u[1]>a[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var p=this._hoverLinkDataIndices,d=[];(i||tM(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(c));var f=function(g,y){var v={},m={};return x(g||[],v),x(y||[],m,v),[_(v),_(m)];function x(b,w,S){for(var M=0,T=b.length;M<T;M++){var I=Qt(b[M].seriesId,null);if(I==null)return;for(var C=Qe(b[M].dataIndex),D=S&&S[I],L=0,R=C.length;L<R;L++){var P=C[L];D&&D[P]?D[P]=null:(w[I]||(w[I]={}))[P]=1}}}function _(b,w){var S=[];for(var M in b)if(b.hasOwnProperty(M)&&b[M]!=null)if(w)S.push(+M);else{var T=_(b[M],!0);T.length&&S.push({seriesId:M,dataIndex:T})}return S}}(p,d);this._dispatchHighDown("downplay",uh(f[0],r)),this._dispatchHighDown("highlight",uh(f[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i;if(br(e.target,function(l){var u=ye(l);if(u.dataIndex!=null)return i=u,!0},!0),i){var r=this.ecModel.getSeriesByIndex(i.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(r)){var a=r.getData(i.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var r=0;r<i.length;r++)this.api.leaveBlur(i[r])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",uh(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,i,r,o){var a=Ai(i,o?null:this.group);return Y(e)?Fn(e,a,r):Cl(e,a,r)},t.prototype._dispatchHighDown=function(e,i){i&&i.length&&this.api.dispatchAction({type:e,batch:i})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(KS);function eM(n,t,e,i){return new Vn({shape:{points:n},draggable:!!e,cursor:t,drift:e,onmousemove:function(r){Jn(r.event)},ondragend:i})}function tM(n){var t=n.get("hoverLinkOnHandle");return!!(t??n.get("realtime"))}function nM(n){return n==="vertical"?"ns-resize":"ew-resize"}const DO=AO;var kO={type:"selectDataRange",event:"dataRangeSelected",update:"update"},LO=function(n,t){t.eachComponent({mainType:"visualMap",query:n},function(e){e.setSelected(n.selected)})},PO=[{createOnAllSeries:!0,reset:function(n,t){var e=[];return t.eachComponent("visualMap",function(i){var r=n.pipelineContext;!i.isTargetSeries(n)||r&&r.large||e.push(qP(i.stateList,i.targetVisuals,Q(i.getValueState,i),i.getDataDimensionIndex(n.getData())))}),e}},{createOnAllSeries:!0,reset:function(n,t){var e=n.getData(),i=[];t.eachComponent("visualMap",function(r){if(r.isTargetSeries(n)){var o=r.getVisualMeta(Q(OO,null,n,r))||{stops:[],outerColors:[]},a=r.getDataDimensionIndex(e);a>=0&&(o.dimension=a,i.push(o))}}),n.getData().setVisual("visualMeta",i)}}];function OO(n,t,e,i){for(var r=t.targetVisuals[i],o=Nt.prepareVisualTypes(r),a={color:rx(n.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],h=r[u==="opacity"?"__alphaForOpacity":u];h&&h.applyVisual(e,c,p)}return a.color;function c(d){return a[d]}function p(d,f){a[d]=f}}var iM=A;function RO(n){var t=n&&n.visualMap;Y(t)||(t=t?[t]:[]),iM(t,function(e){if(e){No(e,"splitList")&&!No(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&Y(i)&&iM(i,function(r){ee(r)&&(No(r,"start")&&!No(r,"min")&&(r.min=r.start),No(r,"end")&&!No(r,"max")&&(r.max=r.end))})}})}function No(n,t){return n&&n.hasOwnProperty&&n.hasOwnProperty(t)}var rM=!1;function oM(n){rM||(rM=!0,n.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),n.registerAction(kO,LO),A(PO,function(t){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,t)}),n.registerPreprocessor(RO))}function EO(n){n.registerComponentModel(IO),n.registerComponentView(DO),oM(n)}var NO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return V(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],zO[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var o=this.option.categories;this.resetVisual(function(a,s){r==="categories"?(a.mappingMethod="category",a.categories=oe(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=X(this._pieceList,function(l){return l=oe(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},r=Nt.listVisualTypes(),o=this.isCategory();function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}A(e.pieces,function(s){A(r,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),A(i,function(s,l){var u=!1;A(this.stateList,function(h){u=u||a(e,h,l)||a(e.target,h,l)},this),!u&&A(this.stateList,function(h){(e[h]||(e[h]={}))[l]=XS.get(l,h==="inRange"?"active":"inactive",o)})},this),n.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var r=this.option,o=this._pieceList,a=(i?r:e).selected||{};if(r.selected=a,A(o,function(l,u){var h=this.getSelectedMapKey(l);a.hasOwnProperty(h)||(a[h]=!0)},this),r.selectedMode==="single"){var s=!1;A(o,function(l,u){var h=this.getSelectedMapKey(l);a[h]&&(s?a[h]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=oe(e)},t.prototype.getValueState=function(e){var i=Nt.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],r=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){Nt.findPieceIndex(l,r)===e&&a.push(u)},this),i.push({seriesId:o.id,dataIndex:a})},this),i},t.prototype.getRepresentValue=function(e){var i;if(this.isCategory())i=e.value;else if(e.value!=null)i=e.value;else{var r=e.interval||[];i=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return i},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var i=[],r=["",""],o=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-1/0&&a.unshift({interval:[-1/0,s]}),(s=a[a.length-1].interval[1])!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return A(a,function(h){var c=h.interval;c&&(c[0]>l&&u([l,c[0]],"outOfRange"),u(c.slice()),l=c[1])},this),{stops:i,outerColors:r}}function u(h,c){var p=o.getRepresentValue({interval:h});c||(c=o.getValueState(p));var d=e(p,c);h[0]===-1/0?r[0]=d:h[1]===1/0?r[1]=d:i.push({value:h[0],color:d},{value:h[1],color:d})}},t.type="visualMap.piecewise",t.defaultOption=xr(lh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(lh),zO={splitNumber:function(n){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(e)!==o&&e<5;)e++;t.precision=e,o=+o.toFixed(e),t.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;n.push({interval:[s,l],close:[1,1]})}t.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),yc(n),A(n,function(u,h){u.index=h,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var t=this.option;A(t.categories,function(e){n.push({text:this.formatValueText(e,!0),value:e})},this),aM(t,n)},pieces:function(n){var t=this.option;A(t.pieces,function(e,i){ee(e)||(e={value:e});var r={text:"",index:i};if(e.label!=null&&(r.text=e.label),e.hasOwnProperty("value")){var o=r.value=e.value;r.interval=[o,o],r.close=[1,1]}else{for(var a=r.interval=[],s=r.close=[0,0],l=[1,0,1],u=[-1/0,1/0],h=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&a[c]==null;d++)a[c]=e[p[d]],s[c]=l[d],h[c]=d===2;a[c]==null&&(a[c]=u[c])}h[0]&&a[1]===1/0&&(s[0]=0),h[1]&&a[0]===-1/0&&(s[1]=0),a[0]>a[1]&&console.warn("Piece "+i+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(r.value=a[0])}r.visual=Nt.retrieveVisuals(e),n.push(r)},this),aM(t,n),yc(n),A(n,function(e){var i=e.close,r=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,r)},this)}};function aM(n,t){var e=n.inverse;(n.orient==="vertical"?!e:e)&&t.reverse()}const BO=NO,VO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,r=i.get("textGap"),o=i.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),c=h.endsText,p=Yt(i.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,p,l),A(h.viewPieceList,function(d){var f=d.piece,g=new ge;g.onclick=Q(this._onItemClick,this,f),this._enableHoverLink(g,d.indexInModelPieceList);var y=i.getRepresentValue(f);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]]),p){var v=this.visualMapModel.getValueState(y);g.add(new ke({style:{x:l==="right"?-r:u[0]+r,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:v==="outOfRange"?.5:1}}))}e.add(g)},this),c&&this._renderEndsText(e,c[1],u,p,l),wr(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var r=this;e.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=r.visualMapModel;s.option.hoverLink&&r.api.dispatchAction({type:a,batch:uh(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return $S(e,this.api,e.itemSize);var r=i.align;return r&&r!=="auto"||(r="left"),r},t.prototype._renderEndsText=function(e,i,r,o,a){if(i){var s=new ge,l=this.visualMapModel.textStyleModel;s.add(new ke({style:it(l,{x:o?a==="right"?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:o?a:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),r=e.get("text"),o=e.get("orient"),a=e.get("inverse");return(o==="horizontal"?a:!a)?i.reverse():r&&(r=r.slice().reverse()),{viewPieceList:i,endsText:r}},t.prototype._createItemSymbol=function(e,i,r){e.add(ut(this.getControllerVisual(i,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(i,"color")))},t.prototype._onItemClick=function(e){var i=this.visualMapModel,r=i.option,o=r.selectedMode;if(o){var a=oe(r.selected),s=i.getSelectedMapKey(e);o==="single"||o===!0?(a[s]=!0,A(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(KS);function FO(n){n.registerComponentModel(BO),n.registerComponentView(VO),oM(n)}var GO={label:{enabled:!0},decal:{show:!1}},sM=Ne(),HO={};function WO(n,t){var e=n.getModel("aria");if(e.get("enabled")){var i=oe(GO);pe(i.label,n.getLocaleModel().get("aria"),!1),pe(e.option,i,!1),function(){if(e.getModel("decal").get("show")){var o=te();n.eachSeries(function(a){if(!a.isColorBySeries()){var s=o.get(a.type);s||(s={},o.set(a.type,s)),sM(a).scope=s}}),n.eachRawSeries(function(a){if(!n.isSeriesFiltered(a))if(ae(a.enableAriaDecal))a.enableAriaDecal();else{var s=a.getData();if(a.isColorBySeries()){var l=Um(a.ecModel,a.name,HO,n.getSeriesCount()),u=s.getVisual("decal");s.setVisual("decal",f(u,l))}else{var h=a.getRawData(),c={},p=sM(a).scope;s.each(function(g){var y=s.getRawIndex(g);c[y]=g});var d=h.count();h.each(function(g){var y=c[g],v=h.getName(g)||g+"",m=Um(a.ecModel,v,p,d),x=s.getItemVisual(y,"decal");s.setItemVisual(y,"decal",f(x,m))})}}function f(g,y){var v=g?G(G({},y),g):y;return v.dirty=!0,v}})}}(),function(){var o=n.getLocaleModel().get("aria"),a=e.getModel("label");if(a.option=le(a.option,o),!!a.get("enabled")){var s=t.getZr().dom;if(a.get("description"))return void s.setAttribute("aria-label",a.get("description"));var l,u=n.getSeriesCount(),h=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,p=Math.min(u,c);if(!(u<1)){var d=function(){var m=n.get("title");return m&&m.length&&(m=m[0]),m&&m.text}();l=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var f=[];l+=r(u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:u}),n.eachSeries(function(m,x){if(x<p){var _=void 0,b=m.get("name")?"withName":"withoutName";_=r(_=u>1?a.get(["series","multiple",b]):a.get(["series","single",b]),{seriesId:m.seriesIndex,seriesName:m.get("name"),seriesType:(R=m.subType,P=n.getLocaleModel().get(["series","typeNames"]),P[R]||P.chart)});var w=m.getData();w.count()>h?_+=r(a.get(["data","partialData"]),{displayCnt:h}):_+=a.get(["data","allData"]);for(var S=a.get(["data","separator","middle"]),M=a.get(["data","separator","end"]),T=[],I=0;I<w.count();I++)if(I<h){var C=w.getName(I),D=w.getValues(I),L=a.get(["data",C?"withName":"withoutName"]);T.push(r(L,{name:C,value:D.join(S)}))}_+=T.join(S)+M,f.push(_)}var R,P});var g=a.getModel(["series","multiple","separator"]),y=g.get("middle"),v=g.get("end");l+=f.join(y)+v,s.setAttribute("aria-label",l)}}}()}function r(o,a){if(!j(o))return o;var s=o;return A(a,function(l,u){s=s.replace(new RegExp("\\{\\s*"+u+"\\s*\\}","g"),l)}),s}}function YO(n){if(n&&n.aria){var t=n.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},A(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}var XO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return V(t,n),t.prototype.init=function(e,i,r){n.prototype.init.call(this,e,i,r),this._sourceManager=new I0(this),C0(this)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),C0(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Hn},t}(Te),UO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return V(t,n),t.type="dataset",t}(je);function lM(n,t,e){var i=jn.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*e,i.height=o*e,i}var ZO=function(n){function t(e,i,r){var o,a=n.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||Zs,typeof e=="string"?o=lM(e,i,r):ee(e)&&(e=(o=e).id),a.id=e,a.dom=o;var s=o.style;return s&&(wh(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=r,a}return V(t,n),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=lM("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a,s=[],l=this.maxRepaintRectCount,u=!1,h=new me(0,0,0,0);function c(m){if(m.isFinite()&&!m.isZero())if(s.length===0)(x=new me(0,0,0,0)).copy(m),s.push(x);else{for(var x,_=!1,b=1/0,w=0,S=0;S<s.length;++S){var M=s[S];if(M.intersect(m)){var T=new me(0,0,0,0);T.copy(M),T.union(m),s[S]=T,_=!0;break}if(u){h.copy(m),h.union(M);var I=m.width*m.height,C=M.width*M.height,D=h.width*h.height-I-C;D<b&&(b=D,w=S)}}u&&(s[w].union(m),_=!0),!_&&((x=new me(0,0,0,0)).copy(m),s.push(x)),u||(u=s.length>=l)}}for(var p=this.__startIndex;p<this.__endIndex;++p)if(g=e[p]){var d=g.shouldBePainted(r,o,!0,!0);(y=g.__isRendered&&(g.__dirty&Vt||!d)?g.getPrevPaintRect():null)&&c(y);var f=d&&(g.__dirty&Vt||!g.__isRendered)?g.getPaintRect():null;f&&c(f)}for(p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g,y;d=(g=i[p])&&g.shouldBePainted(r,o,!0,!0),g&&(!d||!g.__zr)&&g.__isRendered&&(y=g.getPrevPaintRect())&&c(y)}do for(a=!1,p=0;p<s.length;)if(s[p].isZero())s.splice(p,1);else{for(var v=p+1;v<s.length;)s[p].intersect(s[v])?(a=!0,s[p].union(s[v]),s.splice(v,1)):v++;p++}while(a);return this._paintRects=s,s},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=i+"px"),o.width=e*r,o.height=i*r,s&&(s.width=e*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(e,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var u=this.motionBlur&&!e,h=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/c,l/c));var d=this.domBack;function f(g,y,v,m){if(a.clearRect(g,y,v,m),i&&i!=="transparent"){var x=void 0;Ho(i)?(x=(i.global||i.__width===v&&i.__height===m)&&i.__canvasGradient||Xp(a,i,{x:0,y:0,width:v,height:m}),i.__canvasGradient=x,i.__width=v,i.__height=m):vg(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,x=Up(a,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}})),a.save(),a.fillStyle=x||i,a.fillRect(g,y,v,m),a.restore()}u&&(a.save(),a.globalAlpha=h,a.drawImage(d,g,y,v,m),a.restore())}!r||u?f(0,0,s,l):r.length&&A(r,function(g){f(g.x*c,g.y*c,g.width*c,g.height*c)})},t}(Zt);const og=ZO;var uM=1e5,ws=314159,hh=.01,jO=function(){function n(t,e,i,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=G({},i||{}),this.dpr=i.devicePixelRatio||Zs,this._singleCanvas=o,this.root=t,t.style&&(wh(t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(o){var l=t,u=l.width,h=l.height;i.width!=null&&(u=i.width),i.height!=null&&(h=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=h*this.dpr,this._width=u,this._height=h;var c=new og(l,this,this.dpr);c.__builtin__=!0,c.initContext(),s[314159]=c,c.zlevel=ws,a.push(ws),this._domRoot=t}else{this._width=nu(t,0,i),this._height=nu(t,1,i);var p=this._domRoot=function(d,f){var g=document.createElement("div");return g.style.cssText=["position:relative","width:"+d+"px","height:"+f+"px","padding:0","margin:0","border-width:0"].join(";")+";",g}(this._width,this._height);t.appendChild(p)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<r.length;o++){var a=r[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var r,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<e;a++){var s=t[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(uM)),r||(r=i.ctx).save(),Mr(r,s,o,a===e-1))}r&&r.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(uM)},n.prototype.paintOne=function(t,e){Zp(t,e)},n.prototype._paintList=function(t,e,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,e,i),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Bh(function(){l._paintList(t,e,i,r)})}}},n.prototype._compositeManually=function(){var t=this.getLayer(ws).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)})},n.prototype._doPaintList=function(t,e,i){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&o.push(u)}for(var h=!0,c=!1,p=function(g){var y,v=o[g],m=v.ctx,x=a&&v.createRepaintRects(t,e,d._width,d._height),_=i?v.__startIndex:v.__drawIndex,b=!i&&v.incremental&&Date.now,w=b&&Date.now(),S=v.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,S,x);else if(_===v.__startIndex){var M=t[_];M.incremental&&M.notClear&&!i||v.clear(!1,S,x)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=v.__startIndex);var T=function(L){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(y=_;y<v.__endIndex;y++){var P=t[y];if(P.__inHover&&(c=!0),r._doPaintEl(P,v,a,L,R,y===v.__endIndex-1),b&&Date.now()-w>15)break}R.prevElClipPaths&&m.restore()};if(x)if(x.length===0)y=v.__endIndex;else for(var I=d.dpr,C=0;C<x.length;++C){var D=x[C];m.save(),m.beginPath(),m.rect(D.x*I,D.y*I,D.width*I,D.height*I),m.clip(),T(D),m.restore()}else m.save(),T(),m.restore();v.__drawIndex=y,v.__drawIndex<v.__endIndex&&(h=!1)},d=this,f=0;f<o.length;f++)p(f);return we.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:h,needsRefreshHover:c}},n.prototype._doPaintEl=function(t,e,i,r,o,a){var s=e.ctx;if(i){var l=t.getPaintRect();(!r||l&&l.intersect(r))&&(Mr(s,t,o,a),t.setPrevPaintRect(l))}else Mr(s,t,o,a)},n.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ws);var i=this._layers[t];return i||((i=new og("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?pe(i,this._layerConfig[t],!0):this._layerConfig[t-hh]&&pe(i,this._layerConfig[t-hh],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},n.prototype.insertLayer=function(t,e){var i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(i[t])Wi("ZLevel "+t+" has been used already");else if(function(h){return!!h&&(!!h.__builtin__||typeof h.resize=="function"&&typeof h.refresh=="function")}(e)){if(o>0&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}else Wi("Layer of zlevel "+t+" is not valid")},n.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r];t.call(e,this._layers[o],o)}},n.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__&&t.call(e,a,o)}},n.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__||t.call(e,a,o)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(t){function e(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this.eachBuiltinLayer(function(c,p){c.__dirty=c.__used=!1}),this._singleCanvas){for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){var l,u=(l=t[o]).zlevel,h=void 0;r!==u&&(r=u,s=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(u+(s>0?hh:0),this._needsManuallyCompositing),h.__builtin__||Wi("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),l.__dirty&Vt&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(c,p){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?pe(i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];(o===t||o===t+hh)&&pe(this._layers[o],i[t],!0)}}},n.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],i.splice(Me(i,t),1))},n.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;if(t!=null&&(r.width=t),e!=null&&(r.height=e),t=nu(o,0,r),e=nu(o,1,r),i.style.display="",this._width!==t||e!==this._height){for(var a in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ws).resize(t,e)}return this},n.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new og("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,o=e.dom.height;this.eachLayer(function(c){c.__builtin__?i.drawImage(c.dom,0,0,r,o):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var h=s[l];Mr(i,h,a,l===u-1)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();const qO=jO;function hM(n){n.registerPainter("canvas",qO)}rt([function(n){rt(BS),rt(rO)},function(n){n.registerComponentModel(KP),n.registerComponentView(JP)},function(n){rt(Of),n.registerComponentModel(BP),n.registerComponentView(jP),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},st),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},st)},function(n){n.registerComponentModel(mP),n.registerComponentView(_P),ys("saveAsImage",wP),ys("magicType",MP),ys("dataView",AP),ys("dataZoom",zP),ys("restore",kP),rt(vP)},function(n){rt(wD),rt(Of)},function(n){rt(Of),as.registerAxisPointerClass("PolarAxisPointer",BL),n.registerCoordinateSystem("polar",qL),n.registerComponentModel(VL),n.registerComponentView(lP),rs(n,"angle",FL,aP),rs(n,"radius",GL,sP),n.registerComponentView(QL),n.registerComponentView(rP),n.registerLayout(xe(oP,"bar"))},function(n){n.registerPreprocessor(YO),n.registerVisual(n.PRIORITY.VISUAL.ARIA,WO)},function(n){n.registerComponentView(Zk),n.registerComponentModel(jk),n.registerCoordinateSystem("parallel",iL),n.registerPreprocessor(Yk),n.registerComponentModel(qw),n.registerComponentView(yL),rs(n,"parallel",qw,mL),function(t){t.registerAction(vL,function(e,i){i.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,i){i.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}(n)},function(n){rt(EO),rt(FO)},function(n){n.registerChartView(KA),n.registerSeriesModel(WA),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,xe(d1,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,f1("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,g_("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(r){t.sortInfo&&r.axis.setCategorySortInfo(t.sortInfo)})})},function(n){n.registerChartView(FA),n.registerSeriesModel(DA),n.registerLayout(function(t,e){return{seriesType:t,plan:Gp(),reset:function(i){var r=i.getData(),o=i.coordinateSystem,a=i.pipelineContext,s=e||a.large;if(o){var l=X(o.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),u=l.length,h=r.getCalculationInfo("stackResultDimension");Oi(r,l[0])&&(l[0]=h),Oi(r,l[1])&&(l[1]=h);var c=r.getStore(),p=r.getDimensionIndex(l[0]),d=r.getDimensionIndex(l[1]);return u&&{progress:function(f,g){for(var y=f.end-f.start,v=s&&ci(y*u),m=[],x=[],_=f.start,b=0;_<f.end;_++){var w=void 0;if(u===1){var S=c.get(p,_);w=o.dataToPoint(S,null,x)}else m[0]=c.get(p,_),m[1]=c.get(d,_),w=o.dataToPoint(m,null,x);s?(v[b++]=w[0],v[b++]=w[1]):g.setItemLayout(_,w.slice())}s&&g.setLayout("points",v)}}}}}}("line",!0)),n.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,g_("line"))},function(n){n.registerChartView(tD),n.registerSeriesModel(rD),ox("pie",n.registerAction),n.registerLayout(xe(JA,"pie")),n.registerProcessor(L_("pie")),n.registerProcessor(function(t){return{seriesType:t,reset:function(e,i){var r=e.getData();r.filterSelf(function(o){var a=r.mapDimension("value"),s=r.get(a,o);return!(Re(s)&&!isNaN(s)&&s<0)})}}}("pie"))},function(n){rt(fk),n.registerChartView(tk),n.registerSeriesModel(ik),n.registerLayout(ok),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,rk),ox("map",n.registerAction)},hM,function(n){n.registerChartView(bL),n.registerSeriesModel(SL),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,xe(d1,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,f1("pictorialBar"))},function(n){rt(zD),n.registerChartView(TD),n.registerSeriesModel(CD),n.registerLayout(bD),n.registerProcessor(L_("radar")),n.registerPreprocessor(SD)},function(n){n.registerChartView(Hk),n.registerSeriesModel(Wk)},function(n){n.registerChartView(Sk),n.registerSeriesModel(Ok),n.registerLayout(Rk),n.registerVisual(Ek),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,i){i.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var o=e.dataIndex,a=r.getData().tree.getNodeByDataIndex(o);a.isExpand=!a.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,i,r){i.eachComponent({mainType:"series",subType:"tree",query:e},function(o){var a=Rw(o.coordinateSystem,e,void 0,r);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}(n)},function(n){rt(cO),rt(vO)}]),rt([hM,function(n){n.registerComponentModel(XO),n.registerComponentView(UO)}]),rt(function(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){var r=kd(e).labelManager;r||(r=kd(e).labelManager=new AA),r.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var r=kd(e).labelManager;i.updatedSeries.forEach(function(o){r.addLabelsOfSeries(e.getViewOfSeriesModel(o))}),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()})}),H1({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(n){return{fill:n.get("color")}},visualDrawType:"fill",optionUpdated:function(){var n=this.option;n.gridSize=Math.max(Math.floor(n.gridSize),4)},getInitialData:function(n,t){var e=t1(n.data,{coordDimensions:["value"]}),i=new Ja(e,this);return i.initData(n.data),i},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),W1({type:"wordCloud",render:function(n,t,e){var i=this.group;i.removeAll();var r=n.getData(),o=n.get("gridSize");n.layoutInstance.ondraw=function(a,s,l,u){var h=r.getItemModel(l),c=h.getModel("textStyle"),p=new ke({style:ku(c),scaleX:1/u.info.mu,scaleY:1/u.info.mu,x:(u.gx+u.info.gw/2)*o,y:(u.gy+u.info.gh/2)*o,rotation:u.rot});p.setStyle({x:u.info.fillTextOffsetX,y:u.info.fillTextOffsetY+.5*s,text:a,verticalAlign:"middle",fill:r.getItemVisual(l,"style").fill,fontSize:s}),i.add(p),r.setItemGraphicEl(l,p),p.ensureState("emphasis").style=ku(h.getModel(["emphasis","textStyle"]),{state:"emphasis"}),p.ensureState("blur").style=ku(h.getModel(["blur","textStyle"]),{state:"blur"}),ro(p,h.get(["emphasis","focus"]),h.get(["emphasis","blurScope"])),p.stateTransition={duration:n.get("animation")?n.get(["stateAnimation","duration"]):0,easing:n.get(["stateAnimation","easing"])},p.__highDownDispatcher=!0},this._model=n},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var n=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(e){if(typeof e.data=="string"&&e.data.substr(0,20)===t){e.stopImmediatePropagation();var i=parseInt(e.data.substr(20),36);n[i]&&(n[i](),n[i]=void 0)}},!0),window.clearImmediate=function(e){n[e]&&(n[e]=void 0)},function(e){var i=n.length;return n.push(e),window.postMessage(t+i.toString(36),"*"),i}}()||function(n){window.setTimeout(n,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(n){window.clearTimeout(n)});var ag=function(){var n=document.createElement("canvas");if(!n||!n.getContext)return!1;var t=n.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),sg=function(){if(ag){for(var n,t,e=document.createElement("canvas").getContext("2d"),i=20;i;){if(e.font=i.toString(10)+"px sans-serif",e.measureText("\uFF37").width===n&&e.measureText("m").width===t)return i+1;n=e.measureText("\uFF37").width,t=e.measureText("m").width,i--}return 0}}(),KO=function(n){for(var t,e,i=n.length;i;)t=Math.floor(Math.random()*i),e=n[--i],n[i]=n[t],n[t]=e;return n},zo={},ch=function(n,t){if(ag){var e=Math.floor(Math.random()*Date.now());Array.isArray(n)||(n=[n]),n.forEach(function(k,O){if(typeof k=="string"){if(n[O]=document.getElementById(k),!n[O])throw new Error("The element id specified is not found.")}else if(!k.tagName&&!k.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var i={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var r in t)r in i&&(i[r]=t[r]);if(typeof i.weightFactor!="function"){var o=i.weightFactor;i.weightFactor=function(k){return k*o}}if(typeof i.shape!="function")switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(k){return 1-Math.sin(k)};break;case"diamond":i.shape=function(k){var O=k%(2*Math.PI/4);return 1/(Math.cos(O)+Math.sin(O))};break;case"square":i.shape=function(k){return Math.min(1/Math.abs(Math.cos(k)),1/Math.abs(Math.sin(k)))};break;case"triangle-forward":i.shape=function(k){var O=k%(2*Math.PI/3);return 1/(Math.cos(O)+Math.sqrt(3)*Math.sin(O))};break;case"triangle":case"triangle-upright":i.shape=function(k){var O=(k+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(O)+Math.sqrt(3)*Math.sin(O))};break;case"pentagon":i.shape=function(k){var O=(k+.955)%(2*Math.PI/5);return 1/(Math.cos(O)+.726543*Math.sin(O))};break;case"star":i.shape=function(k){var O=(k+.955)%(2*Math.PI/10);return(k+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-O)+3.07768*Math.sin(2*Math.PI/10-O)):1/(Math.cos(O)+3.07768*Math.sin(O))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var a,s,l,u,h,c,p,d,f=i.gridSize,g=f-i.maskGapWidth,y=Math.abs(i.maxRotation-i.minRotation),v=Math.min(i.maxRotation,i.minRotation),m=i.rotationStep;switch(i.color){case"random-dark":p=function(){return E(10,50)};break;case"random-light":p=function(){return E(50,90)};break;default:typeof i.color=="function"&&(p=i.color)}typeof i.fontWeight=="function"&&(d=i.fontWeight);var x=null;typeof i.classes=="function"&&(x=i.classes);var _,b=!1,w=[],S=function(k){var O,N,B=k.currentTarget,z=B.getBoundingClientRect();k.touches?(O=k.touches[0].clientX,N=k.touches[0].clientY):(O=k.clientX,N=k.clientY);var U=O-z.left,Z=N-z.top,F=Math.floor(U*(B.width/z.width||1)/f),W=Math.floor(Z*(B.height/z.height||1)/f);return w[F]?w[F][W]:null},M=function(k){var O=S(k);_!==O&&(_=O,O?i.hover(O.item,O.dimension,k):i.hover(void 0,void 0,k))},T=function(k){var O=S(k);O&&(i.click(O.item,O.dimension,k),k.preventDefault())},I=[],C=function(k){if(I[k])return I[k];var O=8*k,N=O,B=[];for(k===0&&B.push([u[0],u[1],0]);N--;){var z=1;i.shape!=="circle"&&(z=i.shape(N/O*2*Math.PI)),B.push([u[0]+k*z*Math.cos(-N/O*2*Math.PI),u[1]+k*z*Math.sin(-N/O*2*Math.PI)*i.ellipticity,N/O*2*Math.PI])}return I[k]=B,B},D=function(){return i.abortThreshold>0&&new Date().getTime()-c>i.abortThreshold},L=function(k,O,N,B,z){k>=s||O>=l||k<0||O<0||(a[k][O]=!1,N&&n[0].getContext("2d").fillRect(k*f,O*f,g,g),b&&(w[k][O]={item:z,dimension:B}))},R=function k(O,N){if(N>20)return null;var B,z,U;Array.isArray(O)?(B=O[0],z=O[1]):(B=O.word,z=O.weight,U=O.attributes);var Z=i.rotateRatio===0||Math.random()>i.rotateRatio?0:y===0?v:v+Math.round(Math.random()*y/m)*m,F=function(H){if(Array.isArray(H)){var $=H.slice();return $.splice(0,2),$}return[]}(O),W=function(H,$,re,Ce){var ve=i.weightFactor($);if(ve<=i.minSize)return!1;var _e,be=1;ve<sg&&(be=function(){for(var lg=2;lg*ve<sg;)lg+=2;return lg}()),_e=d?d(H,$,ve,Ce):i.fontWeight;var Le=document.createElement("canvas"),Se=Le.getContext("2d",{willReadFrequently:!0});Se.font=_e+" "+(ve*be).toString(10)+"px "+i.fontFamily;var Pe=Se.measureText(H).width/be,Ve=Math.max(ve*be,Se.measureText("m").width,Se.measureText("\uFF37").width)/be,qe=Pe+2*Ve,Fe=3*Ve,Ge=Math.ceil(qe/f),ce=Math.ceil(Fe/f);qe=Ge*f,Fe=ce*f;var vt=-Pe/2,Ke=.4*-Ve,ht=Math.ceil((qe*Math.abs(Math.sin(re))+Fe*Math.abs(Math.cos(re)))/f),Ye=Math.ceil((qe*Math.abs(Math.cos(re))+Fe*Math.abs(Math.sin(re)))/f),zt=Ye*f,gi=ht*f;Le.setAttribute("width",zt),Le.setAttribute("height",gi),Se.scale(1/be,1/be),Se.translate(zt*be/2,gi*be/2),Se.rotate(-re),Se.font=_e+" "+(ve*be).toString(10)+"px "+i.fontFamily,Se.fillStyle="#000",Se.textBaseline="middle",Se.fillText(H,vt*be,(Ke+.5*ve)*be);var Br=Se.getImageData(0,0,zt,gi).data;if(D())return!1;for(var fn,Bo,Vo,pM=[],Vr=Ye,yi=[ht/2,Ye/2,ht/2,Ye/2];Vr--;)for(fn=ht;fn--;){Vo=f;e:for(;Vo--;)for(Bo=f;Bo--;)if(Br[4*((fn*f+Vo)*zt+(Vr*f+Bo))+3]){pM.push([Vr,fn]),Vr<yi[3]&&(yi[3]=Vr),Vr>yi[1]&&(yi[1]=Vr),fn<yi[0]&&(yi[0]=fn),fn>yi[2]&&(yi[2]=fn);break e}}return{mu:be,occupied:pM,bounds:yi,gw:Ye,gh:ht,fillTextOffsetX:vt,fillTextOffsetY:Ke,fillTextWidth:Pe,fillTextHeight:Ve,fontSize:ve}}(B,z,Z,F);if(!W||D())return!1;if(!i.drawOutOfBound&&!i.shrinkToFit){var K=W.bounds;if(K[1]-K[3]+1>s||K[2]-K[0]+1>l)return!1}for(var se=h+1,he=function(H){var $=Math.floor(H[0]-W.gw/2),re=Math.floor(H[1]-W.gh/2);return W.gw,W.gh,!!function(Ce,ve,_e,be,Le){for(var Se=Le.length;Se--;){var Pe=Ce+Le[Se][0],Ve=ve+Le[Se][1];if(Pe>=s||Ve>=l||Pe<0||Ve<0){if(!i.drawOutOfBound)return!1}else if(!a[Pe][Ve])return!1}return!0}($,re,0,0,W.occupied)&&(function(Ce,ve,_e,be,Le,Se,Pe,Ve,qe,Fe){var Ge,ce,vt,Ke=_e.fontSize;Ge=p?p(be,Le,Ke,Se,Pe,Fe):i.color,ce=d?d(be,Le,Ke,Fe):i.fontWeight,vt=x?x(be,Le,Ke,Fe):i.classes,n.forEach(function(ht){if(ht.getContext){var Ye=ht.getContext("2d"),zt=_e.mu;Ye.save(),Ye.scale(1/zt,1/zt),Ye.font=ce+" "+(Ke*zt).toString(10)+"px "+i.fontFamily,Ye.fillStyle=Ge,Ye.translate((Ce+_e.gw/2)*f*zt,(ve+_e.gh/2)*f*zt),Ve!==0&&Ye.rotate(-Ve),Ye.textBaseline="middle",Ye.fillText(be,_e.fillTextOffsetX*zt,(_e.fillTextOffsetY+.5*Ke)*zt),Ye.restore()}else{var gi=document.createElement("span"),Br="";Br="rotate("+-Ve/Math.PI*180+"deg) ",_e.mu!==1&&(Br+="translateX(-"+_e.fillTextWidth/4+"px) scale("+1/_e.mu+")");var fn={position:"absolute",display:"block",font:ce+" "+Ke*_e.mu+"px "+i.fontFamily,left:(Ce+_e.gw/2)*f+_e.fillTextOffsetX+"px",top:(ve+_e.gh/2)*f+_e.fillTextOffsetY+"px",width:_e.fillTextWidth+"px",height:_e.fillTextHeight+"px",lineHeight:Ke+"px",whiteSpace:"nowrap",transform:Br,webkitTransform:Br,msTransform:Br,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var Bo in Ge&&(fn.color=Ge),gi.textContent=be,fn)gi.style[Bo]=fn[Bo];if(qe)for(var Vo in qe)gi.setAttribute(Vo,qe[Vo]);vt&&(gi.className+=vt),ht.appendChild(gi)}})}($,re,W,B,z,h-se,H[2],Z,U,F),function(Ce,ve,_e,be,Le,Se){var Pe,Ve,qe=Le.occupied,Fe=i.drawMask;if(Fe&&((Pe=n[0].getContext("2d")).save(),Pe.fillStyle=i.maskColor),b){var Ge=Le.bounds;Ve={x:(Ce+Ge[3])*f,y:(ve+Ge[0])*f,w:(Ge[1]-Ge[3]+1)*f,h:(Ge[2]-Ge[0]+1)*f}}for(var ce=qe.length;ce--;){var vt=Ce+qe[ce][0],Ke=ve+qe[ce][1];vt>=s||Ke>=l||vt<0||Ke<0||L(vt,Ke,Fe,Ve,Se)}Fe&&Pe.restore()}($,re,0,0,W,O),{gx:$,gy:re,rot:Z,info:W})};se--;){var ie=C(h-se);i.shuffle&&(ie=[].concat(ie),KO(ie));for(var q=0;q<ie.length;q++){var J=he(ie[q]);if(J)return J}}return i.shrinkToFit?(Array.isArray(O)?O[1]=3*O[1]/4:O.weight=3*O.weight/4,k(O,N+1)):null},P=function(k,O,N){if(O)return!n.some(function(B){var z=new CustomEvent(k,{detail:N||{}});return!B.dispatchEvent(z)},this);n.forEach(function(B){var z=new CustomEvent(k,{detail:N||{}});B.dispatchEvent(z)},this)};(function(){var k=n[0];if(k.getContext)s=Math.ceil(k.width/f),l=Math.ceil(k.height/f);else{var O=k.getBoundingClientRect();s=Math.ceil(O.width/f),l=Math.ceil(O.height/f)}if(P("wordcloudstart",!0)){var N,B,z,U,Z;if(u=i.origin?[i.origin[0]/f,i.origin[1]/f]:[s/2,l/2],h=Math.floor(Math.sqrt(s*s+l*l)),a=[],!k.getContext||i.clearCanvas)for(n.forEach(function(H){if(H.getContext){var $=H.getContext("2d");$.fillStyle=i.backgroundColor,$.clearRect(0,0,s*(f+1),l*(f+1)),$.fillRect(0,0,s*(f+1),l*(f+1))}else H.textContent="",H.style.backgroundColor=i.backgroundColor,H.style.position="relative"}),N=s;N--;)for(a[N]=[],B=l;B--;)a[N][B]=!0;else{var F=document.createElement("canvas").getContext("2d");F.fillStyle=i.backgroundColor,F.fillRect(0,0,1,1);var W,K,se=F.getImageData(0,0,1,1).data,he=k.getContext("2d").getImageData(0,0,s*f,l*f).data;for(N=s;N--;)for(a[N]=[],B=l;B--;){K=f;e:for(;K--;)for(W=f;W--;)for(z=4;z--;)if(he[4*((B*f+K)*s*f+(N*f+W))+z]!==se[z]){a[N][B]=!1;break e}a[N][B]!==!1&&(a[N][B]=!0)}he=F=se=void 0}if(i.hover||i.click){for(b=!0,N=s+1;N--;)w[N]=[];i.hover&&k.addEventListener("mousemove",M),i.click&&(k.addEventListener("click",T),k.addEventListener("touchstart",T),k.addEventListener("touchend",function(H){H.preventDefault()}),k.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),k.addEventListener("wordcloudstart",function H(){k.removeEventListener("wordcloudstart",H),k.removeEventListener("mousemove",M),k.removeEventListener("click",T),_=void 0})}z=0;var ie=!0;i.layoutAnimation?i.wait!==0?(U=window.setTimeout,Z=window.clearTimeout):(U=window.setImmediate,Z=window.clearImmediate):(U=function(H){H()},Z=function(){ie=!1});var q=function(H,$){n.forEach(function(re){re.removeEventListener(H,$)},this)},J=function H(){q("wordcloudstart",H),Z(zo[e])};(function(H,$){n.forEach(function(re){re.addEventListener(H,$)},this)})("wordcloudstart",J),zo[e]=(i.layoutAnimation?U:setTimeout)(function H(){if(ie){if(z>=i.list.length)return Z(zo[e]),P("wordcloudstop",!1),q("wordcloudstart",J),void delete zo[e];c=new Date().getTime();var $=R(i.list[z],0),re=!P("wordclouddrawn",!0,{item:i.list[z],drawn:$});if(D()||re)return Z(zo[e]),i.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),void q("wordcloudstart",J);z++,zo[e]=U(H,i.wait)}},i.wait)}})()}function E(k,O){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(O-k)+k).toFixed()+"%)"}};if(ch.isSupported=ag,ch.minFontSize=sg,!ch.isSupported)throw new Error("Sorry your browser not support wordCloud");cd(function(n,t){n.eachSeriesByType("wordCloud",function(e){var i=St(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),r=e.get("keepAspect"),o=e.get("maskImage"),a=o?o.width/o.height:1;r&&function(y,v){var m=y.width,x=y.height;m>x*v?(y.x+=(m-x*v)/2,y.width=x*v):(y.y+=(x-m/v)/2,y.height=m/v)}(i,a);var s=e.getData(),l=document.createElement("canvas");l.width=i.width,l.height=i.height;var u=l.getContext("2d");if(o)try{u.drawImage(o,0,0,l.width,l.height),function(y){for(var v=y.getContext("2d"),m=v.getImageData(0,0,y.width,y.height),x=v.createImageData(m),_=0,b=0,w=0;w<m.data.length;w+=4)m.data[w+3]>128&&(_+=M=m.data[w]+m.data[w+1]+m.data[w+2],++b);var S=_/b;for(w=0;w<m.data.length;w+=4){var M=m.data[w]+m.data[w+1]+m.data[w+2];m.data[w+3]<128||M>S?(x.data[w]=0,x.data[w+1]=0,x.data[w+2]=0,x.data[w+3]=0):(x.data[w]=255,x.data[w+1]=255,x.data[w+2]=255,x.data[w+3]=255)}v.putImageData(x,0,0)}(l)}catch(y){console.error("Invalid mask image"),console.error(y.toString())}var h=e.get("sizeRange"),c=e.get("rotationRange"),p=s.getDataExtent("value"),d=Math.PI/180,f=e.get("gridSize");function g(y){var v=y.detail.item;y.detail.drawn&&e.layoutInstance.ondraw&&(y.detail.drawn.gx+=i.x/f,y.detail.drawn.gy+=i.y/f,e.layoutInstance.ondraw(v[0],v[1],v[2],y.detail.drawn))}ch(l,{list:s.mapArray("value",function(y,v){var m=s.getItemModel(v);return[s.getName(v),m.get("textStyle.fontSize",!0)||Ae(y,p,h),v]}).sort(function(y,v){return v[1]-y[1]}),fontFamily:e.get("textStyle.fontFamily")||e.get("emphasis.textStyle.fontFamily")||n.get("textStyle.fontFamily"),fontWeight:e.get("textStyle.fontWeight")||e.get("emphasis.textStyle.fontWeight")||n.get("textStyle.fontWeight"),gridSize:f,ellipticity:i.height/i.width,minRotation:c[0]*d,maxRotation:c[1]*d,clearCanvas:!o,rotateRatio:1,rotationStep:e.get("rotationStep")*d,drawOutOfBound:e.get("drawOutOfBound"),shrinkToFit:e.get("shrinkToFit"),layoutAnimation:e.get("layoutAnimation"),shuffle:!1,shape:e.get("shape")}),l.addEventListener("wordclouddrawn",g),e.layoutInstance&&e.layoutInstance.dispose(),e.layoutInstance={ondraw:null,dispose:function(){l.removeEventListener("wordclouddrawn",g),l.addEventListener("wordclouddrawn",function(y){y.preventDefault()})}}})}),fu(function(n){var t=(n||{}).series;!Y(t)&&(t=t?[t]:[]);var e=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function i(r){r&&A(e,function(o){r.hasOwnProperty(o)&&(r["text"+Em(o)]=r[o])})}A(t,function(r){if(r&&r.type==="wordCloud"){var o=r.textStyle||{};i(o.normal),i(o.emphasis)}})});let cM;cM=JO({name:"EChart",__name:"Echart",props:{options:{type:Object,required:!0},width:dM.oneOfType([Number,String]).def(""),height:dM.oneOfType([Number,String]).def("500px")},emits:["chart-init"],setup(n,{emit:t}){const{getPrefixCls:e,variables:i}=lR(),r=e("echart"),o=$O(),a=n,s=ph(()=>o.getIsDark),l=ph(()=>!!An(s)||"auto"),u=ph(()=>Object.assign(a.options,{darkMode:An(l)})),h=fM();let c=null;const p=fM(),d=ph(()=>({width:gM(a.width)?a.width:`${a.width}px`,height:gM(a.height)?a.height:`${a.height}px`}));QO(()=>u.value,v=>{c&&(c==null||c.setOption(v))},{deep:!0});const f=eR(()=>{c&&c.resize()},100),g=async v=>{v.propertyName==="width"&&f()},y=t;return tR(()=>{An(h)&&a.options&&(c=ug.init(An(h)),c==null||c.setOption(An(u))),y("chart-init",c),window.addEventListener("resize",f),p.value=document.getElementsByClassName(`${i.namespace}-layout-content`)[0],An(p)&&An(p).addEventListener("transitionend",g)}),nR(()=>{window.removeEventListener("resize",f),An(p)&&An(p).removeEventListener("transitionend",g)}),iR(()=>{c&&c.resize()}),(v,m)=>(rR(),oR("div",{ref_key:"elRef",ref:h,class:aR([v.$attrs.class,An(r)]),style:sR(An(d))},null,6))}}),yM=uR(cM,[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/components/Echart/src/Echart.vue"]])});export{yM as _,cR as __tla,ug as e};
|