@glycanage/web-components 1.104.0 → 1.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scatter-plot.wc.js +87 -1
- package/package.json +5 -1
package/dist/scatter-plot.wc.js
CHANGED
|
@@ -1 +1,87 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as VA,S as zA,i as BA,f as mm,s as FA,e as GA,p as WA,n as jh,g as HA,u as qh,k as YA,o as XA}from"./index2.js";/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Kh=function(n,e){return Kh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Kh(n,e)};function R(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kh(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var UA=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),ZA=function(){function n(){this.browser=new UA,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"}return n}(),fo=new ZA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(fo.wxa=!0,fo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?fo.worker=!0:typeof navigator>"u"?(fo.node=!0,fo.svgSupported=!0):jA(navigator.userAgent,fo);function jA(n,e){var t=e.browser,i=n.match(/Firefox\/([\d.]+)/),o=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),r=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(t.firefox=!0,t.version=i[1]),o&&(t.ie=!0,t.version=o[1]),r&&(t.edge=!0,t.version=r[1],t.newEdge=+r[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const St=fo;var $h=12,xm="sans-serif",Ai=$h+"px "+xm,qA=20,KA=100,$A="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function QA(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t<n.length;t++){var i=String.fromCharCode(t+32),o=(n.charCodeAt(t)-qA)/KA;e[i]=o}return e}var JA=QA($A),ki={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,e;return function(t,i){if(!n){var o=ki.createCanvas();n=o&&o.getContext("2d")}if(n)return e!==i&&(e=n.font=i||Ai),n.measureText(t);t=t||"",i=i||Ai;var r=/(\d+)px/.exec(i),a=r&&+r[1]||$h,s=0;if(i.indexOf("mono")>=0)s=a*t.length;else for(var l=0;l<t.length;l++){var u=JA[t[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(n,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=n,i}},_m=Vn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),bm=Vn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),Ar=Object.prototype.toString,Rl=Array.prototype,tk=Rl.forEach,ek=Rl.filter,Qh=Rl.slice,nk=Rl.map,wm=function(){}.constructor,Vl=wm?wm.prototype:null,Jh="__proto__",ik=2311;function Sm(){return ik++}function bn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];typeof console<"u"&&console.error.apply(console,n)}function it(n){if(n==null||typeof n!="object")return n;var e=n,t=Ar.call(n);if(t==="[object Array]"){if(!Ga(n)){e=[];for(var i=0,o=n.length;i<o;i++)e[i]=it(n[i])}}else if(bm[t]){if(!Ga(n)){var r=n.constructor;if(r.from)e=r.from(n);else{e=new r(n.length);for(var i=0,o=n.length;i<o;i++)e[i]=n[i]}}}else if(!_m[t]&&!Ga(n)&&!kr(n)){e={};for(var a in n)n.hasOwnProperty(a)&&a!==Jh&&(e[a]=it(n[a]))}return e}function pt(n,e,t){if(!tt(e)||!tt(n))return t?it(e):n;for(var i in e)if(e.hasOwnProperty(i)&&i!==Jh){var o=n[i],r=e[i];tt(r)&&tt(o)&&!G(r)&&!G(o)&&!kr(r)&&!kr(o)&&!Mm(r)&&!Mm(o)&&!Ga(r)&&!Ga(o)?pt(o,r,t):(t||!(i in n))&&(n[i]=it(e[i]))}return n}function tp(n,e){for(var t=n[0],i=1,o=n.length;i<o;i++)t=pt(t,n[i],e);return t}function z(n,e){if(Object.assign)Object.assign(n,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Jh&&(n[t]=e[t]);return n}function nt(n,e,t){for(var i=_t(e),o=0;o<i.length;o++){var r=i[o];(t?e[r]!=null:n[r]==null)&&(n[r]=e[r])}return n}function yt(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t}return-1}function ok(n,e){var t=n.prototype;function i(){}i.prototype=e.prototype,n.prototype=new i;for(var o in t)t.hasOwnProperty(o)&&(n.prototype[o]=t[o]);n.prototype.constructor=n,n.superClass=e}function Jt(n,e,t){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];r!=="constructor"&&(t?e[r]!=null:n[r]==null)&&(n[r]=e[r])}else nt(n,e,t)}function be(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function C(n,e,t){if(n&&e)if(n.forEach&&n.forEach===tk)n.forEach(e,t);else if(n.length===+n.length)for(var i=0,o=n.length;i<o;i++)e.call(t,n[i],i,n);else for(var r in n)n.hasOwnProperty(r)&&e.call(t,n[r],r,n)}function W(n,e,t){if(!n)return[];if(!e)return ep(n);if(n.map&&n.map===nk)return n.map(e,t);for(var i=[],o=0,r=n.length;o<r;o++)i.push(e.call(t,n[o],o,n));return i}function Vn(n,e,t,i){if(n&&e){for(var o=0,r=n.length;o<r;o++)t=e.call(i,t,n[o],o,n);return t}}function Lt(n,e,t){if(!n)return[];if(!e)return ep(n);if(n.filter&&n.filter===ek)return n.filter(e,t);for(var i=[],o=0,r=n.length;o<r;o++)e.call(t,n[o],o,n)&&i.push(n[o]);return i}function rk(n,e,t){if(n&&e){for(var i=0,o=n.length;i<o;i++)if(e.call(t,n[i],i,n))return n[i]}}function _t(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t);return e}function ak(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return n.apply(e,t.concat(Qh.call(arguments)))}}var Z=Vl&&Q(Vl.bind)?Vl.call.bind(Vl.bind):ak;function lt(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return n.apply(this,e.concat(Qh.call(arguments)))}}function G(n){return Array.isArray?Array.isArray(n):Ar.call(n)==="[object Array]"}function Q(n){return typeof n=="function"}function X(n){return typeof n=="string"}function zl(n){return Ar.call(n)==="[object String]"}function Dt(n){return typeof n=="number"}function tt(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function Mm(n){return!!_m[Ar.call(n)]}function Re(n){return!!bm[Ar.call(n)]}function kr(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Bl(n){return n.colorStops!=null}function sk(n){return n.image!=null}function Im(n){return Ar.call(n)==="[object RegExp]"}function go(n){return n!==n}function te(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0,i=n.length;t<i;t++)if(n[t]!=null)return n[t]}function ct(n,e){return n??e}function Qe(n,e,t){return n??e??t}function ep(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Qh.apply(n,e)}function np(n){if(typeof n=="number")return[n,n,n,n];var e=n.length;return e===2?[n[0],n[1],n[0],n[1]]:e===3?[n[0],n[1],n[2],n[1]]:n}function et(n,e){if(!n)throw new Error(e)}function wn(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Dm="__ec_primitive__";function Fl(n){n[Dm]=!0}function Ga(n){return n[Dm]}var lk=function(){function n(){this.data={}}return n.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,t){return this.data[e]=t,this},n.prototype.keys=function(){return _t(this.data)},n.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},n}(),Tm=typeof Map=="function";function uk(){return Tm?new Map:new lk}var ck=function(){function n(e){var t=G(e);this.data=uk();var i=this;e instanceof n?e.each(o):e&&C(e,o);function o(r,a){t?i.set(r,a):i.set(a,r)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,t){return this.data.set(e,t),t},n.prototype.each=function(e,t){this.data.forEach(function(i,o){e.call(t,i,o)})},n.prototype.keys=function(){var e=this.data.keys();return Tm?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function K(n){return new ck(n)}function Gl(n,e){for(var t=new n.constructor(n.length+e.length),i=0;i<n.length;i++)t[i]=n[i];for(var o=n.length,i=0;i<e.length;i++)t[i+o]=e[i];return t}function Wl(n,e){var t;if(Object.create)t=Object.create(n);else{var i=function(){};i.prototype=n,t=new i}return e&&z(t,e),t}function Cm(n){var e=n.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function U(n,e){return n.hasOwnProperty(e)}function $t(){}var Hl=180/Math.PI;/*! *****************************************************************************
|
|
15
|
+
Copyright (c) Microsoft Corporation.
|
|
16
|
+
|
|
17
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
+
purpose with or without fee is hereby granted.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
+
***************************************************************************** */var ip=function(n,e){return ip=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},ip(n,e)};function Ft(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ip(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function vo(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function Te(n,e){return n[0]=e[0],n[1]=e[1],n}function ai(n){return[n[0],n[1]]}function hk(n,e,t){return n[0]=e,n[1]=t,n}function Am(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function op(n,e,t,i){return n[0]=e[0]+t[0]*i,n[1]=e[1]+t[1]*i,n}function yo(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function rp(n){return Math.sqrt(pk(n))}function pk(n){return n[0]*n[0]+n[1]*n[1]}function Yl(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function Lr(n,e){var t=rp(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function ap(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var Li=ap;function dk(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var mo=dk;function Xl(n,e,t,i){return n[0]=e[0]+i*(t[0]-e[0]),n[1]=e[1]+i*(t[1]-e[1]),n}function fe(n,e,t){var i=e[0],o=e[1];return n[0]=t[0]*i+t[2]*o+t[4],n[1]=t[1]*i+t[3]*o+t[5],n}function Ni(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Ei(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}var Nr=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),fk=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Nr(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,o=e.offsetY,r=i-this._x,a=o-this._y;this._x=i,this._y=o,t.drift(r,a,e),this.handler.dispatchToElement(new Nr(t,e),"drag",e.event);var s=this.handler.findHover(i,o,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Nr(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Nr(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Nr(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Nr(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}();const gk=fk;var vk=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,i,o){this._$handlers||(this._$handlers={});var r=this._$handlers;if(typeof t=="function"&&(o=i,i=t,t=null),!i||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),r[e]||(r[e]=[]);for(var s=0;s<r[e].length;s++)if(r[e][s].h===i)return this;var l={h:i,query:t,ctx:o||this,callAtLast:i.zrEventfulCallAtLast},u=r[e].length-1,c=r[e][u];return c&&c.callAtLast?r[e].splice(u,0,l):r[e].push(l),this},n.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},n.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var o=[],r=0,a=i[e].length;r<a;r++)i[e][r].h!==t&&o.push(i[e][r]);i[e]=o}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},n.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var o=this._$handlers[e],r=this._$eventProcessor;if(o)for(var a=t.length,s=o.length,l=0;l<s;l++){var u=o[l];if(!(r&&r.filter&&u.query!=null&&!r.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var o=this._$handlers[e],r=this._$eventProcessor;if(o)for(var a=t.length,s=t[a-1],l=o.length,u=0;u<l;u++){var c=o[u];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,a-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},n}();const Je=vk;var yk=Math.log(2);function sp(n,e,t,i,o,r){var a=i+"-"+o,s=n.length;if(r.hasOwnProperty(a))return r[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~o)/yk);return n[t][l]}for(var u=i|1<<t,c=t+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&o||(h+=(d%2?-1:1)*n[t][p]*sp(n,e-1,c,u,o|f,r),d++)}return r[a]=h,h}function km(n,e){var t=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],i={},o=sp(t,8,0,0,0,i);if(o!==0){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)r[s]==null&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*sp(t,7,a===0?1:0,1<<a,1<<s,i)/o*e[a];return function(l,u,c){var h=u*r[6]+c*r[7]+1;l[0]=(u*r[0]+c*r[1]+r[2])/h,l[1]=(u*r[3]+c*r[4]+r[5])/h}}}var Lm="___zrEVENTSAVED",lp=[];function mk(n,e,t,i,o){return up(lp,e,i,o,!0)&&up(n,t,lp[0],lp[1])}function up(n,e,t,i,o){if(e.getBoundingClientRect&&St.domSupported&&!Nm(e)){var r=e[Lm]||(e[Lm]={}),a=xk(e,r),s=_k(a,r,o);if(s)return s(n,t,i),!0}return!1}function xk(n,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),n.appendChild(a),t.push(a)}return t}function _k(n,e,t){for(var i=t?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&r&&p===r[h]&&d===r[h+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=t?km(s,a):km(a,s))}function Nm(n){return n.nodeName.toUpperCase()==="CANVAS"}var bk=/([&<>"'])/g,wk={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ve(n){return n==null?"":(n+"").replace(bk,function(e,t){return wk[t]})}var Sk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cp=[],Mk=St.browser.firefox&&+St.browser.version.split(".")[0]<39;function hp(n,e,t,i){return t=t||{},i?Em(n,e,t):Mk&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Em(n,e,t),t}function Em(n,e,t){if(St.domSupported&&n.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(Nm(n)){var r=n.getBoundingClientRect();t.zrX=i-r.left,t.zrY=o-r.top;return}else if(up(cp,n,i,o)){t.zrX=cp[0],t.zrY=cp[1];return}}t.zrX=t.zrY=0}function pp(n){return n||window.event}function tn(n,e,t){if(e=pp(e),e.zrX!=null)return e;var i=e.type,o=i&&i.indexOf("touch")>=0;if(o){var r=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];r&&hp(n,r,e,t)}else{hp(n,e,e,t);var a=Ik(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Sk.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Ik(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,i=n.deltaY;if(t==null||i==null)return e;var o=Math.abs(i!==0?i:t),r=i>0?-1:i<0?1:t>0?-1:1;return 3*o*r}function dp(n,e,t,i){n.addEventListener(e,t,i)}function Dk(n,e,t,i){n.removeEventListener(e,t,i)}var si=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function Om(n){return n.which===2||n.which===3}var Tk=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,i){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a<s;a++){var l=o[a],u=hp(i,l,{});r.points.push([u.zrX,u.zrY]),r.touches.push(l)}this._track.push(r)}},n.prototype._recognize=function(e){for(var t in fp)if(fp.hasOwnProperty(t)){var i=fp[t](this._track,e);if(i)return i}},n}();function Pm(n){var e=n[1][0]-n[0][0],t=n[1][1]-n[0][1];return Math.sqrt(e*e+t*t)}function Ck(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var fp={pinch:function(n,e){var t=n.length;if(t){var i=(n[t-1]||{}).points,o=(n[t-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var r=Pm(i)/Pm(o);!isFinite(r)&&(r=1),e.pinchScale=r;var a=Ck(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}};function en(){return[1,0,0,1,0,0]}function Ul(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function gp(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function li(n,e,t){var i=e[0]*t[0]+e[2]*t[1],o=e[1]*t[0]+e[3]*t[1],r=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=i,n[1]=o,n[2]=r,n[3]=a,n[4]=s,n[5]=l,n}function zn(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function xo(n,e,t){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=i*c+a*u,n[1]=-i*u+a*c,n[2]=o*c+s*u,n[3]=-o*u+c*s,n[4]=c*r+u*l,n[5]=c*l-u*r,n}function vp(n,e,t){var i=t[0],o=t[1];return n[0]=e[0]*i,n[1]=e[1]*o,n[2]=e[2]*i,n[3]=e[3]*o,n[4]=e[4]*i,n[5]=e[5]*o,n}function Er(n,e){var t=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=t*a-r*i;return l?(l=1/l,n[0]=a*l,n[1]=-r*l,n[2]=-i*l,n[3]=t*l,n[4]=(i*s-a*o)*l,n[5]=(r*o-t*s)*l,n):null}function Ak(n){var e=en();return gp(e,n),e}var kk=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,i){e.x=t,e.y=i},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},n.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},n.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},n.scaleAndAdd=function(e,t,i,o){e.x=t.x+i.x*o,e.y=t.y+i.y*o},n.lerp=function(e,t,i,o){var r=1-o;e.x=r*t.x+o*i.x,e.y=r*t.y+o*i.y},n}();const ht=kk;var Zl=Math.min,jl=Math.max,_o=new ht,bo=new ht,wo=new ht,So=new ht,Wa=new ht,Ha=new ht,Lk=function(){function n(e,t,i,o){i<0&&(e=e+i,i=-i),o<0&&(t=t+o,o=-o),this.x=e,this.y=t,this.width=i,this.height=o}return n.prototype.union=function(e){var t=Zl(e.x,this.x),i=Zl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=jl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=jl(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,o=e.height/t.height,r=en();return zn(r,r,[-t.x,-t.y]),vp(r,r,[i,o]),zn(r,r,[e.x,e.y]),r},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(r<l||u<o||s<c||h<a);if(t){var d=1/0,f=0,g=Math.abs(r-l),v=Math.abs(u-o),y=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,v),_=Math.min(y,m);r<l||u<o?x>f&&(f=x,g<v?ht.set(Ha,-g,0):ht.set(Ha,v,0)):x<d&&(d=x,g<v?ht.set(Wa,g,0):ht.set(Wa,-v,0)),s<c||h<a?_>f&&(f=_,y<m?ht.set(Ha,0,-y):ht.set(Ha,0,m)):x<d&&(d=x,y<m?ht.set(Wa,0,y):ht.set(Wa,0,-m))}return t&&ht.copy(t,p?Wa:Ha),p},n.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},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(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,i){if(!i){e!==t&&n.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];e.x=t.x*o+a,e.y=t.y*r+s,e.width=t.width*o,e.height=t.height*r,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}_o.x=wo.x=t.x,_o.y=So.y=t.y,bo.x=So.x=t.x+t.width,bo.y=wo.y=t.y+t.height,_o.transform(i),So.transform(i),bo.transform(i),wo.transform(i),e.x=Zl(_o.x,bo.x,wo.x,So.x),e.y=Zl(_o.y,bo.y,wo.y,So.y);var l=jl(_o.x,bo.x,wo.x,So.x),u=jl(_o.y,bo.y,wo.y,So.y);e.width=l-e.x,e.height=u-e.y},n}();const dt=Lk;var Rm="silent";function Nk(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Ek}}function Ek(){si(this.event)}var Ok=function(n){Ft(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Je),Ya=function(){function n(e,t){this.x=e,this.y=t}return n}(),Pk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yp=new dt(0,0,0,0),Vm=function(n){Ft(e,n);function e(t,i,o,r,a){var s=n.call(this)||this;return s._hovered=new Ya(0,0),s.storage=t,s.painter=i,s.painterRoot=r,s._pointerSize=a,o=o||new Ok,s.proxy=null,s.setHandlerProxy(o),s._draggingMgr=new gk(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(Pk,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,o=t.zrY,r=Bm(this,i,o),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=r?new Ya(i,o):this.findHover(i,o),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ya(0,0)},e.prototype.dispatch=function(t,i){var o=this[t];o&&o.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,o){t=t||{};var r=t.target;if(!(r&&r.silent)){for(var a="on"+i,s=Nk(i,t,o);r&&(r[a]&&(s.cancelBubble=!!r[a].call(r,s)),r.trigger(i,s),r=r.__hostTarget?r.__hostTarget:r.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)}))}},e.prototype.findHover=function(t,i,o){var r=this.storage.getDisplayList(),a=new Ya(t,i);if(zm(r,a,t,i,o),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new dt(t-u,i-u,l,l),h=r.length-1;h>=0;h--){var p=r[h];p!==o&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(yp.copy(p.getBoundingRect()),p.transform&&yp.applyTransform(p.transform),yp.intersect(c)&&s.push(p))}if(s.length)for(var d=4,f=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=d)for(var y=0;y<g;y+=f){var m=t+v*Math.cos(y),x=i+v*Math.sin(y);if(zm(s,a,m,x,o),a.target)return a}}return a},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new Tk);var o=this._gestureMgr;i==="start"&&o.clear();var r=o.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&o.clear(),r){var a=r.type;t.gestureEvent=a;var s=new Ya;s.target=r.target,this.dispatchToElement(s,a,r.event)}},e}(Je);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Vm.prototype[n]=function(e){var t=e.zrX,i=e.zrY,o=Bm(this,t,i),r,a;if((n!=="mouseup"||!o)&&(r=this.findHover(t,i),a=r.target),n==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(n==="mouseup")this._upEl=a;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Li(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,n,e)}});function Rk(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var i=n,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(e,t))return!1;i.silent&&(o=!0)}var s=i.__hostTarget;i=s||i.parent}return o?Rm:!0}return!1}function zm(n,e,t,i,o){for(var r=n.length-1;r>=0;r--){var a=n[r],s=void 0;if(a!==o&&!a.ignore&&(s=Rk(a,t,i))&&(!e.topTarget&&(e.topTarget=a),s!==Rm)){e.target=a;break}}}function Bm(n,e,t){var i=n.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}const Vk=Vm;var Fm=32,Xa=7;function zk(n){for(var e=0;n>=Fm;)e|=n&1,n>>=1;return n+e}function Gm(n,e,t,i){var o=e+1;if(o===t)return 1;if(i(n[o++],n[e])<0){for(;o<t&&i(n[o],n[o-1])<0;)o++;Bk(n,e,o)}else for(;o<t&&i(n[o],n[o-1])>=0;)o++;return o-e}function Bk(n,e,t){for(t--;e<t;){var i=n[e];n[e++]=n[t],n[t--]=i}}function Wm(n,e,t,i,o){for(i===e&&i++;i<t;i++){for(var r=n[i],a=e,s=i,l;a<s;)l=a+s>>>1,o(r,n[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;u>0;)n[a+u]=n[a+u-1],u--}n[a]=r}}function mp(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])>0){for(s=i-o;l<s&&r(n,e[t+o+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(n,e[t+o-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}for(a++;a<l;){var c=a+(l-a>>>1);r(n,e[t+c])>0?a=c+1:l=c}return l}function xp(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])<0){for(s=o+1;l<s&&r(n,e[t+o-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}else{for(s=i-o;l<s&&r(n,e[t+o+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var c=a+(l-a>>>1);r(n,e[t+c])<0?l=c:a=c+1}return l}function Fk(n,e){var t=Xa,i,o,r=0;n.length;var a=[];i=[],o=[];function s(d,f){i[r]=d,o[r]=f,r+=1}function l(){for(;r>1;){var d=r-2;if(d>=1&&o[d-1]<=o[d]+o[d+1]||d>=2&&o[d-2]<=o[d]+o[d-1])o[d-1]<o[d+1]&&d--;else if(o[d]>o[d+1])break;c(d)}}function u(){for(;r>1;){var d=r-2;d>0&&o[d-1]<o[d+1]&&d--,c(d)}}function c(d){var f=i[d],g=o[d],v=i[d+1],y=o[d+1];o[d]=g+y,d===r-3&&(i[d+1]=i[d+2],o[d+1]=o[d+2]),r--;var m=xp(n[v],n,f,g,0,e);f+=m,g-=m,g!==0&&(y=mp(n[f+g-1],n,v,y,y-1,e),y!==0&&(g<=y?h(f,g,v,y):p(f,g,v,y)))}function h(d,f,g,v){var y=0;for(y=0;y<f;y++)a[y]=n[d+y];var m=0,x=g,_=d;if(n[_++]=n[x++],--v===0){for(y=0;y<f;y++)n[_+y]=a[m+y];return}if(f===1){for(y=0;y<v;y++)n[_+y]=n[x+y];n[_+v]=a[m];return}for(var w=t,b,S,M;;){b=0,S=0,M=!1;do if(e(n[x],a[m])<0){if(n[_++]=n[x++],S++,b=0,--v===0){M=!0;break}}else if(n[_++]=a[m++],b++,S=0,--f===1){M=!0;break}while((b|S)<w);if(M)break;do{if(b=xp(n[x],a,m,f,0,e),b!==0){for(y=0;y<b;y++)n[_+y]=a[m+y];if(_+=b,m+=b,f-=b,f<=1){M=!0;break}}if(n[_++]=n[x++],--v===0){M=!0;break}if(S=mp(a[m],n,x,v,0,e),S!==0){for(y=0;y<S;y++)n[_+y]=n[x+y];if(_+=S,x+=S,v-=S,v===0){M=!0;break}}if(n[_++]=a[m++],--f===1){M=!0;break}w--}while(b>=Xa||S>=Xa);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),f===1){for(y=0;y<v;y++)n[_+y]=n[x+y];n[_+v]=a[m]}else{if(f===0)throw new Error;for(y=0;y<f;y++)n[_+y]=a[m+y]}}function p(d,f,g,v){var y=0;for(y=0;y<v;y++)a[y]=n[g+y];var m=d+f-1,x=v-1,_=g+v-1,w=0,b=0;if(n[_--]=n[m--],--f===0){for(w=_-(v-1),y=0;y<v;y++)n[w+y]=a[y];return}if(v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x];return}for(var S=t;;){var M=0,D=0,T=!1;do if(e(a[x],n[m])<0){if(n[_--]=n[m--],M++,D=0,--f===0){T=!0;break}}else if(n[_--]=a[x--],D++,M=0,--v===1){T=!0;break}while((M|D)<S);if(T)break;do{if(M=f-xp(a[x],n,d,f,f-1,e),M!==0){for(_-=M,m-=M,f-=M,b=_+1,w=m+1,y=M-1;y>=0;y--)n[b+y]=n[w+y];if(f===0){T=!0;break}}if(n[_--]=a[x--],--v===1){T=!0;break}if(D=v-mp(n[m],a,0,v,v-1,e),D!==0){for(_-=D,x-=D,v-=D,b=_+1,w=x+1,y=0;y<D;y++)n[b+y]=a[w+y];if(v<=1){T=!0;break}}if(n[_--]=n[m--],--f===0){T=!0;break}S--}while(M>=Xa||D>=Xa);if(T)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x]}else{if(v===0)throw new Error;for(w=_-(v-1),y=0;y<v;y++)n[w+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ql(n,e,t,i){t||(t=0),i||(i=n.length);var o=i-t;if(!(o<2)){var r=0;if(o<Fm){r=Gm(n,t,i,e),Wm(n,t,i,t+r,e);return}var a=Fk(n,e),s=zk(o);do{if(r=Gm(n,t,i,e),r<s){var l=o;l>s&&(l=s),Wm(n,t,t+l,t+r,e),r=l}a.pushRun(t,r),a.mergeRuns(),o-=r,t+=r}while(o!==0);a.forceMergeRuns()}}var Ue=1,Ua=2,Or=4,Hm=!1;function _p(){Hm||(Hm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ym(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Gk=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ym}return n.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},n.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},n.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,o=0,r=t.length;o<r;o++)this._updateAndAddDisplayable(t[o],null,e);i.length=this._displayListLen,ql(i,Ym)},n.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var o=e.getClipPath();if(e.ignoreClip)t=null;else if(o){t?t=t.slice():t=[];for(var r=o,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Ue),this._updateAndAddDisplayable(u,t,i)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(_p(),c.z=0),isNaN(c.z2)&&(_p(),c.z2=0),isNaN(c.zlevel)&&(_p(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,i);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,i);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,i)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var o=yt(this._roots,e);o>=0&&this._roots.splice(o,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 Wk=Gk;var Xm;Xm=St.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const bp=Xm;var Kl={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*(-Math.pow(2,-10*(n-1))+2)},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 e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)))},elasticOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-Kl.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?Kl.bounceIn(n*2)*.5:Kl.bounceOut(n*2-1)*.5+.5}};const Um=Kl;var $l=Math.pow,Oi=Math.sqrt,Ql=1e-8,Zm=1e-4,jm=Oi(3),Jl=1/3,Bn=vo(),nn=vo(),Pr=vo();function Pi(n){return n>-Ql&&n<Ql}function qm(n){return n>Ql||n<-Ql}function le(n,e,t,i,o){var r=1-o;return r*r*(r*n+3*o*e)+o*o*(o*i+3*r*t)}function Km(n,e,t,i,o){var r=1-o;return 3*(((e-n)*r+2*(t-e)*o)*r+(i-t)*o*o)}function tu(n,e,t,i,o,r){var a=i+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-o,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Pi(c)&&Pi(h))if(Pi(s))r[0]=0;else{var f=-l/s;f>=0&&f<=1&&(r[d++]=f)}else{var g=h*h-4*c*p;if(Pi(g)){var v=h/c,f=-s/a+v,y=-v/2;f>=0&&f<=1&&(r[d++]=f),y>=0&&y<=1&&(r[d++]=y)}else if(g>0){var m=Oi(g),x=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);x<0?x=-$l(-x,Jl):x=$l(x,Jl),_<0?_=-$l(-_,Jl):_=$l(_,Jl);var f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(r[d++]=f)}else{var w=(2*c*s-3*a*h)/(2*Oi(c*c*c)),b=Math.acos(w)/3,S=Oi(c),M=Math.cos(b),f=(-s-2*S*M)/(3*a),y=(-s+S*(M+jm*Math.sin(b)))/(3*a),D=(-s+S*(M-jm*Math.sin(b)))/(3*a);f>=0&&f<=1&&(r[d++]=f),y>=0&&y<=1&&(r[d++]=y),D>=0&&D<=1&&(r[d++]=D)}}return d}function $m(n,e,t,i,o){var r=6*t-12*e+6*n,a=9*e+3*i-3*n-9*t,s=3*e-3*n,l=0;if(Pi(a)){if(qm(r)){var u=-s/r;u>=0&&u<=1&&(o[l++]=u)}}else{var c=r*r-4*a*s;if(Pi(c))o[0]=-r/(2*a);else if(c>0){var h=Oi(c),u=(-r+h)/(2*a),p=(-r-h)/(2*a);u>=0&&u<=1&&(o[l++]=u),p>=0&&p<=1&&(o[l++]=p)}}return l}function Ri(n,e,t,i,o,r){var a=(e-n)*o+n,s=(t-e)*o+e,l=(i-t)*o+t,u=(s-a)*o+a,c=(l-s)*o+s,h=(c-u)*o+u;r[0]=n,r[1]=a,r[2]=u,r[3]=h,r[4]=h,r[5]=c,r[6]=l,r[7]=i}function Qm(n,e,t,i,o,r,a,s,l,u,c){var h,p=.005,d=1/0,f,g,v,y;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)nn[0]=le(n,t,o,a,m),nn[1]=le(e,i,r,s,m),v=mo(Bn,nn),v<d&&(h=m,d=v);d=1/0;for(var x=0;x<32&&!(p<Zm);x++)f=h-p,g=h+p,nn[0]=le(n,t,o,a,f),nn[1]=le(e,i,r,s,f),v=mo(nn,Bn),f>=0&&v<d?(h=f,d=v):(Pr[0]=le(n,t,o,a,g),Pr[1]=le(e,i,r,s,g),y=mo(Pr,Bn),g<=1&&y<d?(h=g,d=y):p*=.5);return c&&(c[0]=le(n,t,o,a,h),c[1]=le(e,i,r,s,h)),Oi(d)}function Hk(n,e,t,i,o,r,a,s,l){for(var u=n,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=le(n,t,o,a,f),v=le(e,i,r,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function pe(n,e,t,i){var o=1-i;return o*(o*n+2*i*e)+i*i*t}function wp(n,e,t,i){return 2*((1-i)*(e-n)+i*(t-e))}function Yk(n,e,t,i,o){var r=n-2*e+t,a=2*(e-n),s=n-i,l=0;if(Pi(r)){if(qm(a)){var u=-s/a;u>=0&&u<=1&&(o[l++]=u)}}else{var c=a*a-4*r*s;if(Pi(c)){var u=-a/(2*r);u>=0&&u<=1&&(o[l++]=u)}else if(c>0){var h=Oi(c),u=(-a+h)/(2*r),p=(-a-h)/(2*r);u>=0&&u<=1&&(o[l++]=u),p>=0&&p<=1&&(o[l++]=p)}}return l}function Jm(n,e,t){var i=n+t-2*e;return i===0?.5:(n-e)/i}function Za(n,e,t,i,o){var r=(e-n)*i+n,a=(t-e)*i+e,s=(a-r)*i+r;o[0]=n,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=t}function t0(n,e,t,i,o,r,a,s,l){var u,c=.005,h=1/0;Bn[0]=a,Bn[1]=s;for(var p=0;p<1;p+=.05){nn[0]=pe(n,t,o,p),nn[1]=pe(e,i,r,p);var d=mo(Bn,nn);d<h&&(u=p,h=d)}h=1/0;for(var f=0;f<32&&!(c<Zm);f++){var g=u-c,v=u+c;nn[0]=pe(n,t,o,g),nn[1]=pe(e,i,r,g);var d=mo(nn,Bn);if(g>=0&&d<h)u=g,h=d;else{Pr[0]=pe(n,t,o,v),Pr[1]=pe(e,i,r,v);var y=mo(Pr,Bn);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=pe(n,t,o,u),l[1]=pe(e,i,r,u)),Oi(h)}function Xk(n,e,t,i,o,r,a){for(var s=n,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=pe(n,t,o,p),f=pe(e,i,r,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var Uk=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sp(n){var e=n&&Uk.exec(n);if(e){var t=e[1].split(","),i=+wn(t[0]),o=+wn(t[1]),r=+wn(t[2]),a=+wn(t[3]);if(isNaN(i+o+r+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:tu(0,i,r,1,l,s)&&le(0,o,a,1,s[0])}}}var Zk=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||$t,this.ondestroy=e.ondestroy||$t,this.onrestart=e.onrestart||$t,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,o=e-this._startTime-this._pausedTime,r=o/i;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,s=a?a(r):r;if(this.onframe(s),r===1)if(this.loop){var l=o%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:Um[e]||Sp(e)},n}();const jk=Zk;var e0=function(){function n(e){this.value=e}return n}(),qk=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new e0(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Kk=function(){function n(e){this._list=new qk,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var i=this._list,o=this._map,r=null;if(o[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new e0(t),s.key=e,i.insertEntry(s),o[e]=s}return r},n.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const ja=Kk;var n0={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 Sn(n){return n=Math.round(n),n<0?0:n>255?255:n}function $k(n){return n=Math.round(n),n<0?0:n>360?360:n}function qa(n){return n<0?0:n>1?1:n}function Mp(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Sn(parseFloat(e)/100*255):Sn(parseInt(e,10))}function Mo(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?qa(parseFloat(e)/100):qa(parseFloat(e))}function Ip(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function Vi(n,e,t){return n+(e-n)*t}function on(n,e,t,i,o){return n[0]=e,n[1]=t,n[2]=i,n[3]=o,n}function Dp(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var i0=new ja(20),eu=null;function Rr(n,e){eu&&Dp(eu,e),eu=i0.put(n,eu||e.slice())}function Ze(n,e){if(n){e=e||[];var t=i0.get(n);if(t)return Dp(e,t);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in n0)return Dp(e,n0[i]),Rr(n,e),e;var o=i.length;if(i.charAt(0)==="#"){if(o===4||o===5){var r=parseInt(i.slice(1,4),16);if(!(r>=0&&r<=4095)){on(e,0,0,0,1);return}return on(e,(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,o===5?parseInt(i.slice(4),16)/15:1),Rr(n,e),e}else if(o===7||o===9){var r=parseInt(i.slice(1,7),16);if(!(r>=0&&r<=16777215)){on(e,0,0,0,1);return}return on(e,(r&16711680)>>16,(r&65280)>>8,r&255,o===9?parseInt(i.slice(7),16)/255:1),Rr(n,e),e}return}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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?on(e,+u[0],+u[1],+u[2],1):on(e,0,0,0,1);c=Mo(u.pop());case"rgb":if(u.length>=3)return on(e,Mp(u[0]),Mp(u[1]),Mp(u[2]),u.length===3?c:Mo(u[3])),Rr(n,e),e;on(e,0,0,0,1);return;case"hsla":if(u.length!==4){on(e,0,0,0,1);return}return u[3]=Mo(u[3]),Tp(u,e),Rr(n,e),e;case"hsl":if(u.length!==3){on(e,0,0,0,1);return}return Tp(u,e),Rr(n,e),e;default:return}}on(e,0,0,0,1)}}function Tp(n,e){var t=(parseFloat(n[0])%360+360)%360/360,i=Mo(n[1]),o=Mo(n[2]),r=o<=.5?o*(i+1):o+i-o*i,a=o*2-r;return e=e||[],on(e,Sn(Ip(a,r,t+1/3)*255),Sn(Ip(a,r,t)*255),Sn(Ip(a,r,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function Qk(n){if(n){var e=n[0]/255,t=n[1]/255,i=n[2]/255,o=Math.min(e,t,i),r=Math.max(e,t,i),a=r-o,s=(r+o)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(r+o):u=a/(2-r-o);var c=((r-e)/6+a/2)/a,h=((r-t)/6+a/2)/a,p=((r-i)/6+a/2)/a;e===r?l=p-h:t===r?l=1/3+c-p:i===r&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function Cp(n,e){var t=Ze(n);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return ui(t,t.length===4?"rgba":"rgb")}}function Ap(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=e[o],s=e[r],l=i-o;return t[0]=Sn(Vi(a[0],s[0],l)),t[1]=Sn(Vi(a[1],s[1],l)),t[2]=Sn(Vi(a[2],s[2],l)),t[3]=qa(Vi(a[3],s[3],l)),t}}function Jk(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=Ze(e[o]),s=Ze(e[r]),l=i-o,u=ui([Sn(Vi(a[0],s[0],l)),Sn(Vi(a[1],s[1],l)),Sn(Vi(a[2],s[2],l)),qa(Vi(a[3],s[3],l))],"rgba");return t?{color:u,leftIndex:o,rightIndex:r,value:i}:u}}function Ka(n,e,t,i){var o=Ze(n);if(n)return o=Qk(o),e!=null&&(o[0]=$k(e)),t!=null&&(o[1]=Mo(t)),i!=null&&(o[2]=Mo(i)),ui(Tp(o),"rgba")}function nu(n,e){var t=Ze(n);if(t&&e!=null)return t[3]=qa(e),ui(t,"rgba")}function ui(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function iu(n,e){var t=Ze(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var ou=Math.round;function $a(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=Ze(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var o0=1e-4;function zi(n){return n<o0&&n>-o0}function ru(n){return ou(n*1e3)/1e3}function kp(n){return ou(n*1e4)/1e4}function tL(n){return"matrix("+ru(n[0])+","+ru(n[1])+","+ru(n[2])+","+ru(n[3])+","+kp(n[4])+","+kp(n[5])+")"}var eL={left:"start",right:"end",center:"middle",middle:"middle"};function nL(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function iL(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function oL(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function r0(n){return n&&!!n.image}function rL(n){return n&&!!n.svgElement}function Lp(n){return r0(n)||rL(n)}function a0(n){return n.type==="linear"}function s0(n){return n.type==="radial"}function l0(n){return n&&(n.type==="linear"||n.type==="radial")}function au(n){return"url(#"+n+")"}function u0(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function c0(n){var e=n.x||0,t=n.y||0,i=(n.rotation||0)*Hl,o=ct(n.scaleX,1),r=ct(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(o!==1||r!==1)&&l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+ou(a*Hl)+"deg, "+ou(s*Hl)+"deg)"),l.join(" ")}var aL=function(){return St.hasGlobalWindow&&Q(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return process.env.NODE_ENV!=="production"&&bn("Base64 isn't natively supported in the current environment."),null}}(),Np=Array.prototype.slice;function ci(n,e,t){return(e-n)*t+n}function Ep(n,e,t,i){for(var o=e.length,r=0;r<o;r++)n[r]=ci(e[r],t[r],i);return n}function sL(n,e,t,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){n[a]||(n[a]=[]);for(var s=0;s<r;s++)n[a][s]=ci(e[a][s],t[a][s],i)}return n}function su(n,e,t,i){for(var o=e.length,r=0;r<o;r++)n[r]=e[r]+t[r]*i;return n}function h0(n,e,t,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){n[a]||(n[a]=[]);for(var s=0;s<r;s++)n[a][s]=e[a][s]+t[a][s]*i}return n}function lL(n,e){for(var t=n.length,i=e.length,o=t>i?e:n,r=Math.min(t,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;s<Math.max(t,i);s++)o.push({offset:a.offset,color:a.color.slice()})}function uL(n,e,t){var i=n,o=e;if(!(!i.push||!o.push)){var r=i.length,a=o.length;if(r!==a){var s=r>a;if(s)i.length=a;else for(var l=r;l<a;l++)i.push(t===1?o[l]:Np.call(o[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=o[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=o[l][c])}}function Qa(n){if(be(n)){var e=n.length;if(be(n[0])){for(var t=[],i=0;i<e;i++)t.push(Np.call(n[i]));return t}return Np.call(n)}return n}function lu(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 cL(n){return be(n&&n[0])?2:1}var uu=0,cu=1,p0=2,Ja=3,Op=4,Pp=5,d0=6;function f0(n){return n===Op||n===Pp}function hu(n){return n===cu||n===p0}var ts=[0,0,0,0],hL=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,i){this._needsSort=!0;var o=this.keyframes,r=o.length,a=!1,s=d0,l=t;if(be(t)){var u=cL(t);s=u,(u===1&&!Dt(t[0])||u===2&&!Dt(t[0][0]))&&(a=!0)}else if(Dt(t)&&!go(t))s=uu;else if(X(t))if(!isNaN(+t))s=uu;else{var c=Ze(t);c&&(l=c,s=Ja)}else if(Bl(t)){var h=z({},l);h.colorStops=W(t.colorStops,function(d){return{offset:d.offset,color:Ze(d.color)}}),a0(t)?s=Op:s0(t)&&(s=Pp),l=h}r===0?this.valType=s:(s!==this.valType||s===d0)&&(a=!0),this.discrete=this.discrete||a;var p={time:e,value:l,rawValue:t,percent:0};return i&&(p.easing=i,p.easingFunc=Q(i)?i:Um[i]||Sp(i)),o.push(p),p},n.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var o=this.valType,r=i.length,a=i[r-1],s=this.discrete,l=hu(o),u=f0(o),c=0;c<r;c++){var h=i[c],p=h.value,d=a.value;h.percent=h.time/e,s||(l&&c!==r-1?uL(p,d,o):u&&lL(p.colorStops,d.colorStops))}if(!s&&o!==Pp&&t&&this.needsAnimate()&&t.needsAnimate()&&o===t.valType&&!t._finished){this._additiveTrack=t;for(var f=i[0].value,c=0;c<r;c++)o===uu?i[c].additiveValue=i[c].value-f:o===Ja?i[c].additiveValue=su([],i[c].value,f,-1):hu(o)&&(i[c].additiveValue=o===cu?su([],i[c].value,f,-1):h0([],i[c].value,f,-1))}},n.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,o=i?"additiveValue":"value",r=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=r===Ja,c,h=this._lastFr,p=Math.min,d,f;if(s===1)d=f=a[0];else{if(t<0)c=0;else if(t<this._lastFrP){var g=p(h+1,s-1);for(c=g;c>=0&&!(a[c].percent<=t);c--);c=p(c,s-2)}else{for(c=h;c<s&&!(a[c].percent>t);c++);c=p(c-1,s-2)}f=a[c+1],d=a[c]}if(d&&f){this._lastFr=c,this._lastFrP=t;var v=f.percent-d.percent,y=v===0?1:p((t-d.percent)/v,1);f.easingFunc&&(y=f.easingFunc(y));var m=i?this._additiveValue:u?ts:e[l];if((hu(r)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?d.rawValue:f.rawValue;else if(hu(r))r===cu?Ep(m,d[o],f[o],y):sL(m,d[o],f[o],y);else if(f0(r)){var x=d[o],_=f[o],w=r===Op;e[l]={type:w?"linear":"radial",x:ci(x.x,_.x,y),y:ci(x.y,_.y,y),colorStops:W(x.colorStops,function(S,M){var D=_.colorStops[M];return{offset:ci(S.offset,D.offset,y),color:lu(Ep([],S.color,D.color,y))}}),global:_.global},w?(e[l].x2=ci(x.x2,_.x2,y),e[l].y2=ci(x.y2,_.y2,y)):e[l].r=ci(x.r,_.r,y)}else if(u)Ep(m,d[o],f[o],y),i||(e[l]=lu(m));else{var b=ci(d[o],f[o],y);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,o=this._additiveValue;t===uu?e[i]=e[i]+o:t===Ja?(Ze(e[i],ts),su(ts,ts,o,1),e[i]=lu(ts)):t===cu?su(e[i],e[i],o,1):t===p0&&h0(e[i],e[i],o,1)},n}(),Rp=function(){function n(e,t,i,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&o){bn("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,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(e){this._target=e},n.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,_t(t),i)},n.prototype.whenWithKeys=function(e,t,i,o){for(var r=this._tracks,a=0;a<i.length;a++){var s=i[a],l=r[s];if(!l){l=r[s]=new hL(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,p=h[h.length-1];u=p&&p.value,c.valType===Ja&&u&&(u=lu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Qa(u),o),this._trackKeys.push(s)}l.addKeyframe(e,Qa(t[s]),o)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},n.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},n.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var o=0;o<i.length;o++){var r=i[o].getTrack(e);r&&(t=r)}return t},n.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(o,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new jk({life:o,loop:this._loop,delay:this._delay||0,onframe:function(d){t._started=2;var f=t._additiveAnimators;if(f){for(var g=!1,v=0;v<f.length;v++)if(f[v]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(t._target,d);var y=t._onframeCbs;if(y)for(var v=0;v<y.length;v++)y[v](t._target,d)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},n.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},n.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},n.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return W(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,o=this._trackKeys,r=0;r<e.length;r++){var a=i[e[r]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,r=0;r<o.length;r++)if(!i[o[r]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var o=0;o<t.length;o++){var r=t[o],a=this._tracks[r];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(e[r]=Qa(l.rawValue))}}}},n.prototype.__changeFinalValue=function(e,t){t=t||_t(e);for(var i=0;i<t.length;i++){var o=t[i],r=this._tracks[o];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,e[o]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},n}();function Vr(){return new Date().getTime()}var pL=function(n){Ft(e,n);function e(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,o=t.next;i?i.next=o:this._head=o,o?o.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Vr()-this._pausedTime,o=i-this._time,r=this._head;r;){var a=r.next,s=r.step(i,o);s&&(r.ondestroy(),this.removeClip(r)),r=a}this._time=i,t||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(bp(i),!t._paused&&t.update())}bp(i)},e.prototype.start=function(){this._running||(this._time=Vr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Vr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Vr()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var o=new Rp(t,i.loop);return this.addAnimator(o),o},e}(Je);const dL=pL;var fL=300,Vp=St.domSupported,zp=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=W(n,function(o){var r=o.replace("mouse","pointer");return t.hasOwnProperty(r)?r:o});return{mouse:n,touch:e,pointer:i}}(),g0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v0=!1;function Bp(n){var e=n.pointerType;return e==="pen"||e==="touch"}function gL(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function Fp(n){n&&(n.zrByTouch=!0)}function vL(n,e){return tn(n.dom,new yL(n,e),!0)}function y0(n,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return i}var yL=function(){function n(e,t){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Mn={mousedown:function(n){n=tn(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=tn(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=tn(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=tn(this.dom,n);var e=n.toElement||n.relatedTarget;y0(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v0=!0,n=tn(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v0||(n=tn(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=tn(this.dom,n),Fp(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Mn.mousemove.call(this,n),Mn.mousedown.call(this,n)},touchmove:function(n){n=tn(this.dom,n),Fp(n),this.handler.processGesture(n,"change"),Mn.mousemove.call(this,n)},touchend:function(n){n=tn(this.dom,n),Fp(n),this.handler.processGesture(n,"end"),Mn.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<fL&&Mn.click.call(this,n)},pointerdown:function(n){Mn.mousedown.call(this,n)},pointermove:function(n){Bp(n)||Mn.mousemove.call(this,n)},pointerup:function(n){Mn.mouseup.call(this,n)},pointerout:function(n){Bp(n)||Mn.mouseout.call(this,n)}};C(["click","dblclick","contextmenu"],function(n){Mn[n]=function(e){e=tn(this.dom,e),this.trigger(n,e)}});var Gp={pointermove:function(n){Bp(n)||Gp.mousemove.call(this,n)},pointerup:function(n){Gp.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),e&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function mL(n,e){var t=e.domHandlers;St.pointerEventsSupported?C(zp.pointer,function(i){pu(e,i,function(o){t[i].call(n,o)})}):(St.touchEventsSupported&&C(zp.touch,function(i){pu(e,i,function(o){t[i].call(n,o),gL(e)})}),C(zp.mouse,function(i){pu(e,i,function(o){o=pp(o),e.touching||t[i].call(n,o)})}))}function xL(n,e){St.pointerEventsSupported?C(g0.pointer,t):St.touchEventsSupported||C(g0.mouse,t);function t(i){function o(r){r=pp(r),y0(n,r.target)||(r=vL(n,r),e.domHandlers[i].call(n,r))}pu(e,i,o,{capture:!0})}}function pu(n,e,t,i){n.mounted[e]=t,n.listenerOpts[e]=i,dp(n.domTarget,e,t,i)}function Wp(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&Dk(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var m0=function(){function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return n}(),_L=function(n){Ft(e,n);function e(t,i){var o=n.call(this)||this;return o.__pointerCapturing=!1,o.dom=t,o.painterRoot=i,o._localHandlerScope=new m0(t,Mn),Vp&&(o._globalHandlerScope=new m0(document,Gp)),mL(o,o._localHandlerScope),o}return e.prototype.dispose=function(){Wp(this._localHandlerScope),Vp&&Wp(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Vp&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?xL(this,i):Wp(i)}},e}(Je);const bL=_L;var x0=1;St.hasGlobalWindow&&(x0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var du=x0,Hp=.4,Yp="#333",Xp="#ccc",wL="#eee",_0=Ul,b0=5e-5;function Io(n){return n>b0||n<-b0}var Do=[],zr=[],Up=en(),Zp=Math.abs,SL=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Io(this.rotation)||Io(this.x)||Io(this.y)||Io(this.scaleX-1)||Io(this.scaleY-1)||Io(this.skewX)||Io(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(_0(i),this.invTransform=null);return}i=i||en(),t?this.getLocalTransform(i):_0(i),e&&(t?li(i,e,i):gp(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Do);var i=Do[0]<0?-1:1,o=Do[1]<0?-1:1,r=((Do[0]-i)*t+i)/Do[0]||0,a=((Do[1]-o)*t+o)/Do[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||en(),Er(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),r=Math.PI/2+o-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(li(zr,e.invTransform,t),t=zr);var i=this.originX,o=this.originY;(i||o)&&(Up[4]=i,Up[5]=o,li(zr,t,Up),zr[4]-=i,zr[5]-=o,t=zr),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var i=[e,t],o=this.invTransform;return o&&fe(i,i,o),i},n.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],o=this.transform;return o&&fe(i,i,o),i},n.prototype.getLineScale=function(){var e=this.transform;return e&&Zp(e[0]-1)>1e-10&&Zp(e[3]-1)>1e-10?Math.sqrt(Zp(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){w0(this,e)},n.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,o=e.originY||0,r=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(i||o||s||l){var f=i+s,g=o+l;t[4]=-f*r-p*g*a,t[5]=-g*a-d*f*r}else t[4]=t[5]=0;return t[0]=r,t[3]=a,t[1]=d*r,t[2]=p*a,u&&xo(t,t,u),t[4]+=i+c,t[5]+=o+h,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),Fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function w0(n,e){for(var t=0;t<Fn.length;t++){var i=Fn[t];n[i]=e[i]}}const hi=SL;var S0={};function je(n,e){e=e||Ai;var t=S0[e];t||(t=S0[e]=new ja(500));var i=t.get(n);return i==null&&(i=ki.measureText(n,e).width,t.put(n,i)),i}function M0(n,e,t,i){var o=je(n,e),r=fu(e),a=ns(0,o,t),s=Br(0,r,i),l=new dt(a,s,o,r);return l}function es(n,e,t,i){var o=((n||"")+"").split(`
|
|
28
|
+
`),r=o.length;if(r===1)return M0(o[0],e,t,i);for(var a=new dt(0,0,0,0),s=0;s<o.length;s++){var l=M0(o[s],e,t,i);s===0?a.copy(l):a.union(l)}return a}function ns(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function Br(n,e,t){return t==="middle"?n-=e/2:t==="bottom"&&(n-=e),n}function fu(n){return je("\u56FD",n)}function In(n,e){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*e:parseFloat(n):n}function gu(n,e,t){var i=e.position||"inside",o=e.distance!=null?e.distance:5,r=t.height,a=t.width,s=r/2,l=t.x,u=t.y,c="left",h="top";if(i instanceof Array)l+=In(i[0],t.width),u+=In(i[1],t.height),c=null,h=null;else switch(i){case"left":l-=o,u+=s,c="right",h="middle";break;case"right":l+=o+a,u+=s,h="middle";break;case"top":l+=a/2,u-=o,c="center",h="bottom";break;case"bottom":l+=a/2,u+=r+o,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=o,u+=s,h="middle";break;case"insideRight":l+=a-o,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=o,c="center";break;case"insideBottom":l+=a/2,u+=r-o,c="center",h="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,c="right";break;case"insideBottomLeft":l+=o,u+=r-o,h="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,c="right",h="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var jp="__zr_normal__",qp=Fn.concat(["ignore"]),ML=Vn(Fn,function(n,e){return n[e]=!0,n},{ignore:!1}),Fr={},IL=new dt(0,0,0,0),Kp=function(){function n(e){this.id=Sm(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=e,o[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,o=i.local,r=t.innerTransformable,a=void 0,s=void 0,l=!1;r.parent=o?this:null;var u=!1;if(r.copyTransform(t),i.position!=null){var c=IL;i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),o||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fr,i,c):gu(Fr,i,c),r.x=Fr.x,r.y=Fr.y,a=Fr.align,s=Fr.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var p=void 0,d=void 0;h==="center"?(p=c.width*.5,d=c.height*.5):(p=In(h[0],c.width),d=In(h[1],c.height)),u=!0,r.originX=-r.x+p+(o?0:c.x),r.originY=-r.y+d+(o?0:c.y)}}i.rotation!=null&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],u||(r.originX=-f[0],r.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),x=!0)),y=y||"#000",(y!==v.fill||m!==v.stroke||x!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=y,v.stroke=m,v.autoStroke=x,v.align=a,v.verticalAlign=s,t.setDefaultTextStyle(v)),t.__dirty|=Ue,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Xp:Yp},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Ze(t);i||(i=[255,255,255,1]);for(var o=i[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*o+(r?0:255)*(1-o);return i[3]=1,ui(i,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},z(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var i=e,o=_t(i),r=0;r<o.length;r++){var a=o[r];this.attrKV(a,e[a])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var o=this.animators[i],r=o.__fromStateTransition;if(!(o.getLoop()||r&&r!==jp)){var a=o.targetName,s=a?t[a]:t;o.saveTo(s)}}},n.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,qp)},n.prototype._savePrimaryToNormal=function(e,t,i){for(var o=0;o<i.length;o++){var r=i[o];e[r]!=null&&!(r in t)&&(t[r]=this[r])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(jp,!1,e)},n.prototype.useState=function(e,t,i,o){var r=e===jp,a=this.hasState();if(!(!a&&r)){var s=this.currentStates,l=this.stateTransition;if(!(yt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!r){bn("State "+e+" not exists.");return}r||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||o);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(e,t,i,c),p&&p.useState(e,t,i,c),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ue),u}}},n.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var o=[],r=this.currentStates,a=e.length,s=a===r.length;if(s){for(var l=0;l<a;l++)if(e[l]!==r[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&o.push(c)}var h=o[a-1],p=!!(h&&h.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(o),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,t,p),v&&v.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ue)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},n.prototype.removeState=function(e){var t=yt(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},n.prototype.replaceState=function(e,t,i){var o=this.currentStates.slice(),r=yt(o,e),a=yt(o,t)>=0;r>=0?a?o.splice(r,1):o[r]=t:i&&!a&&o.push(t),this.useStates(o)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},i,o=0;o<e.length;o++){var r=e[o];z(t,r),r.textConfig&&(i=i||{},z(i,r.textConfig))}return i&&(t.textConfig=i),t},n.prototype._applyStateObj=function(e,t,i,o,r,a){var s=!(t&&o);t&&t.textConfig?(this.textConfig=z({},o?this.textConfig:i.textConfig),z(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,c=0;c<qp.length;c++){var h=qp[c],p=r&&ML[h];t&&t[h]!=null?p?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&i[h]!=null&&(p?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!r)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(t||i)[f]:t||i)}u&&this._transitionState(e,l,a)},n.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},n.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new hi,this._attachComponent(e),this._textContent=e,this.markRedraw()}},n.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Ue;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},n.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},n.prototype.animate=function(e,t,i){var o=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!o){bn('Property "'+e+'" is not existed in element '+this.id);return}var r=new Rp(o,t,i);return e&&(r.targetName=e),this.addAnimator(r,e),r},n.prototype.addAnimator=function(e,t){var i=this.__zr,o=this;e.during(function(){o.updateDuringAnimation(t)}).done(function(){var r=o.animators,a=yt(r,e);a>=0&&r.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var i=this.animators,o=i.length,r=[],a=0;a<o;a++){var s=i[a];!e||e===s.scope?s.stop(t):r.push(s)}return this.animators=r,this},n.prototype.animateTo=function(e,t,i){$p(this,e,t,i)},n.prototype.animateFrom=function(e,t,i){$p(this,e,t,i,!0)},n.prototype._transitionState=function(e,t,i,o){for(var r=$p(this,t,i,o),a=0;a<r.length;a++)r[a].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ue;var t={};function i(r,a,s){t[r+a+s]||(console.warn("DEPRECATED: '"+r+"' has been deprecated. use '"+a+"', '"+s+"' instead"),t[r+a+s]=!0)}function o(r,a,s,l){Object.defineProperty(e,r,{get:function(){if(process.env.NODE_ENV!=="production"&&i(r,s,l),!this[a]){var c=this[a]=[];u(this,c)}return this[a]},set:function(c){process.env.NODE_ENV!=="production"&&i(r,s,l),this[s]=c[0],this[l]=c[1],this[a]=c,u(this,c)}});function u(c,h){Object.defineProperty(h,0,{get:function(){return c[s]},set:function(p){c[s]=p}}),Object.defineProperty(h,1,{get:function(){return c[l]},set:function(p){c[l]=p}})}}Object.defineProperty&&(o("position","_legacyPos","x","y"),o("scale","_legacyScale","scaleX","scaleY"),o("origin","_legacyOrigin","originX","originY"))}(),n}();Jt(Kp,Je),Jt(Kp,hi);function $p(n,e,t,i,o){t=t||{};var r=[];I0(n,"",n,e,t,i,r,o);var a=r.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),r.length>0&&t.during&&r[0].during(function(f,g){t.during(g)});for(var p=0;p<r.length;p++){var d=r[p];c&&d.done(c),h&&d.aborted(h),t.force&&d.duration(t.duration),d.start(t.easing)}return r}function Qp(n,e,t){for(var i=0;i<t;i++)n[i]=e[i]}function DL(n){return be(n[0])}function TL(n,e,t){if(be(e[t]))if(be(n[t])||(n[t]=[]),Re(e[t])){var i=e[t].length;n[t].length!==i&&(n[t]=new e[t].constructor(i),Qp(n[t],e[t],i))}else{var o=e[t],r=n[t],a=o.length;if(DL(o))for(var s=o[0].length,l=0;l<a;l++)r[l]?Qp(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Qp(r,o,a);r.length=o.length}else n[t]=e[t]}function CL(n,e){return n===e||be(n)&&be(e)&&AL(n,e)}function AL(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(n[i]!==e[i])return!1;return!0}function I0(n,e,t,i,o,r,a,s){for(var l=_t(i),u=o.duration,c=o.delay,h=o.additive,p=o.setToFinal,d=!tt(r),f=n.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(m!=null&&t[y]!=null&&(d||r[y]))if(tt(m)&&!be(m)&&!Bl(m)){if(e){s||(t[y]=m,n.updateDuringAnimation(e));continue}I0(n,y,t[y],m,o,r&&r[y],a,s)}else g.push(y);else s||(t[y]=m,n.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){var w=f[_];if(w.targetName===e){var b=w.stopTracks(g);if(b){var S=yt(f,w);f.splice(S,1)}}}if(o.force||(g=Lt(g,function(I){return!CL(i[I],t[I])}),x=g.length),x>0||o.force&&!a.length){var M=void 0,D=void 0,T=void 0;if(s){D={},p&&(M={});for(var _=0;_<x;_++){var y=g[_];D[y]=t[y],p?M[y]=i[y]:t[y]=i[y]}}else if(p){T={};for(var _=0;_<x;_++){var y=g[_];T[y]=Qa(t[y]),TL(t,i,y)}}var w=new Rp(t,!1,!1,h?Lt(f,function(A){return A.targetName===e}):null);w.targetName=e,o.scope&&(w.scope=o.scope),p&&M&&w.whenWithKeys(0,M,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(u??500,s?D:i,g).delay(c||0),n.addAnimator(w,e),a.push(w)}}const D0=Kp;var T0=function(n){Ft(e,n);function e(t){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,o=0;o<i.length;o++)if(i[o].name===t)return i[o]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var o=this._children,r=o.indexOf(i);r>=0&&(o.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var o=yt(this._children,t);return o>=0&&this.replaceAt(i,o),this},e.prototype.replaceAt=function(t,i){var o=this._children,r=o[i];if(t&&t!==this&&t.parent!==this&&t!==r){o[i]=t,r.parent=null;var a=this.__zr;a&&r.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,o=this._children,r=yt(o,t);return r<0?this:(o.splice(r,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,o=0;o<t.length;o++){var r=t[o];i&&r.removeSelfFromZr(i),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var o=this._children,r=0;r<o.length;r++){var a=o[r];t.call(i,a,r)}return this},e.prototype.traverse=function(t,i){for(var o=0;o<this._children.length;o++){var r=this._children[o],a=t.call(i,r);r.isGroup&&!a&&r.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var o=this._children[i];o.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var o=this._children[i];o.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new dt(0,0,0,0),o=t||this._children,r=[],a=null,s=0;s<o.length;s++){var l=o[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(r);c?(dt.applyTransform(i,u,c),a=a||i.clone(),a.union(i)):(a=a||u.clone(),a.union(u))}}return a||i},e}(D0);T0.prototype.type="group";const ot=T0;/*!
|
|
29
|
+
* ZRender, a high performance 2d drawing library.
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
32
|
+
* All rights reserved.
|
|
33
|
+
*
|
|
34
|
+
* LICENSE
|
|
35
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
36
|
+
*/var is={},C0={};function kL(n){delete C0[n]}function LL(n){if(!n)return!1;if(typeof n=="string")return iu(n,1)<Hp;if(n.colorStops){for(var e=n.colorStops,t=0,i=e.length,o=0;o<i;o++)t+=iu(e[o].color,1);return t/=i,t<Hp}return!1}var NL=function(){function n(e,t,i){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var r=new Wk,a=i.renderer||"canvas";if(is[a]||(a=_t(is)[0]),process.env.NODE_ENV!=="production"&&!is[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new is[a](t,r,i,e),l=i.ssr||s.ssrOnly;this.storage=r,this.painter=s;var u=!St.node&&!St.worker&&!l?new bL(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,h=c==null||c==="auto"?St.touchEventsSupported:!!c,p=44,d;h&&(d=ct(i.pointerSize,p)),this.handler=new Vk(r,s,u,s.root,d),this.animation=new dL({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},n.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=LL(e)},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},n.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},n.prototype.flush=function(){this._flush(!1)},n.prototype._flush=function(e){var t,i=Vr();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var o=Vr();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,i){return this.handler.on(e,t,i),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ot&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},n.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,kL(this.id)},n}();function A0(n,e){var t=new NL(Sm(),n,e);return C0[t.id]=t,t}function EL(n,e){is[n]=e}var k0=1e-4,L0=20;function OL(n){return n.replace(/^\s+|\s+$/g,"")}function kt(n,e,t,i){var o=e[0],r=e[1],a=t[0],s=t[1],l=r-o,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(n<=o)return a;if(n>=r)return s}else{if(n>=o)return a;if(n<=r)return s}else{if(n===o)return a;if(n===r)return s}return(n-o)/l*u+a}function H(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return X(n)?OL(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Kt(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),L0),n=(+n).toFixed(e),t?n:+n}function rn(n){return n.sort(function(e,t){return e-t}),n}function Gn(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return Jp(n)}function Jp(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,o=t>0?t:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function N0(n,e){var t=Math.log,i=Math.LN10,o=Math.floor(t(n[1]-n[0])/i),r=Math.round(t(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function PL(n,e){var t=Vn(n,function(d,f){return d+(isNaN(f)?0:f)},0);if(t===0)return[];for(var i=Math.pow(10,e),o=W(n,function(d){return(isNaN(d)?0:d)/t*i*100}),r=i*100,a=W(o,function(d){return Math.floor(d)}),s=Vn(a,function(d,f){return d+f},0),l=W(o,function(d,f){return d-a[f]});s<r;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return W(a,function(d){return d/i})}function RL(n,e){var t=Math.max(Gn(n),Gn(e)),i=n+e;return t>L0?i:Kt(i,t)}var E0=9007199254740991;function O0(n){var e=Math.PI*2;return(n%e+e)%e}function vu(n){return n>-k0&&n<k0}var VL=/^(?:(\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 Wn(n){if(n instanceof Date)return n;if(X(n)){var e=VL.exec(n);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(n==null)return new Date(NaN);return new Date(Math.round(n))}function zL(n){return Math.pow(10,yu(n))}function yu(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function P0(n,e){var t=yu(n),i=Math.pow(10,t),o=n/i,r;return e?o<1.5?r=1:o<2.5?r=2:o<4?r=3:o<7?r=5:r=10:o<1?r=1:o<2?r=2:o<3?r=3:o<5?r=5:r=10,n=r*i,t>=-20?+n.toFixed(t<0?-t:0):n}function td(n,e){var t=(n.length-1)*e+1,i=Math.floor(t),o=+n[i-1],r=t-i;return r?o+r*(n[i]-o):o}function R0(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<n.length;){for(var o=n[i].interval,r=n[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-t),e=o[a],t=r[a];o[0]===o[1]&&r[0]*r[1]!==1?n.splice(i,1):i++}return n;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function pi(n){var e=parseFloat(n);return e==n&&(e!==0||!X(n)||n.indexOf("x")<=0)?e:NaN}function ed(n){return!isNaN(pi(n))}function V0(){return Math.round(Math.random()*9)}function z0(n,e){return e===0?n:z0(e,n%e)}function B0(n,e){return n==null?e:e==null?n:n*e/z0(n,e)}var BL="[ECharts] ",F0={},FL=typeof console<"u"&&console.warn&&console.log;function mu(n,e,t){if(FL){if(t){if(F0[e])return;F0[e]=!0}console[n](BL+e)}}function GL(n,e){mu("log",n,e)}function Zt(n,e){mu("warn",n,e)}function we(n,e){mu("error",n,e)}function Dn(n){process.env.NODE_ENV!=="production"&&mu("warn","DEPRECATED: "+n,!0)}function ee(n,e,t){process.env.NODE_ENV!=="production"&&Dn((t?"["+t+"]":"")+(n+" is deprecated, use "+e+" instead."))}function Ce(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var i=function(o){return o===void 0?"undefined":o===1/0?"Infinity":o===-1/0?"-Infinity":go(o)?"NaN":o instanceof Date?"Date("+o.toISOString()+")":Q(o)?"function () { ... }":Im(o)?o+"":null};t=W(n,function(o){if(X(o))return o;var r=i(o);if(r!=null)return r;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(o,function(a,s){var l=i(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function At(n){throw new Error(n)}function G0(n,e,t){return(e-n)*t+n}var W0="series\0",H0="\0_ec_\0";function Nt(n){return n instanceof Array?n:n==null?[]:[n]}function To(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var i=0,o=t.length;i<o;i++){var r=t[i];!n.emphasis[e].hasOwnProperty(r)&&n[e].hasOwnProperty(r)&&(n.emphasis[e][r]=n[e][r])}}}var Y0=["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 Gr(n){return tt(n)&&!G(n)&&!(n instanceof Date)?n.value:n}function WL(n){return tt(n)&&!(n instanceof Array)}function X0(n,e,t){var i=t==="normalMerge",o=t==="replaceMerge",r=t==="replaceAll";n=n||[],e=(e||[]).slice();var a=K();C(e,function(l,u){if(!tt(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!j0(l.id)&&Z0(l.id),l.name!=null&&!j0(l.name)&&Z0(l.name))});var s=HL(n,a,t);return(i||o)&&YL(s,n,a,e),i&&XL(s,e),i||o?UL(s,e,o):r&&ZL(s,e),jL(s),s}function HL(n,e,t){var i=[];if(t==="replaceAll")return i;for(var o=0;o<n.length;o++){var r=n[o];r&&r.id!=null&&e.set(r.id,o),i.push({existing:t==="replaceMerge"||Wr(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}function YL(n,e,t,i){C(i,function(o,r){if(!(!o||o.id==null)){var a=os(o.id),s=t.get(a);if(s!=null){var l=n[s];et(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=o,l.existing=e[s],i[r]=null}}})}function XL(n,e){C(e,function(t,i){if(!(!t||t.name==null))for(var o=0;o<n.length;o++){var r=n[o].existing;if(!n[o].newOption&&r&&(r.id==null||t.id==null)&&!Wr(t)&&!Wr(r)&&U0("name",r,t)){n[o].newOption=t,e[i]=null;return}}})}function UL(n,e,t){C(e,function(i){if(i){for(var o,r=0;(o=n[r])&&(o.newOption||Wr(o.existing)||o.existing&&i.id!=null&&!U0("id",i,o.existing));)r++;o?(o.newOption=i,o.brandNew=t):n.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),r++}})}function ZL(n,e){C(e,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function jL(n){var e=K();C(n,function(t){var i=t.existing;i&&e.set(i.id,t)}),C(n,function(t){var i=t.newOption;et(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),C(n,function(t,i){var o=t.existing,r=t.newOption,a=t.keyInfo;if(tt(r)){if(a.name=r.name!=null?os(r.name):o?o.name:W0+i,o)a.id=os(o.id);else if(r.id!=null)a.id=os(r.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,t)}})}function U0(n,e,t){var i=re(e[n],null),o=re(t[n],null);return i!=null&&o!=null&&i===o}function os(n){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;return re(n,"")}function re(n,e){return n==null?e:X(n)?n:Dt(n)||zl(n)?n+"":e}function Z0(n){process.env.NODE_ENV!=="production"&&Zt("`"+n+"` is invalid id or name. Must be a string or number.")}function j0(n){return zl(n)||ed(n)}function nd(n){var e=n.name;return!!(e&&e.indexOf(W0))}function Wr(n){return n&&n.id!=null&&os(n.id).indexOf(H0)===0}function qL(n){return H0+n}function KL(n,e,t){C(n,function(i){var o=i.newOption;tt(o)&&(i.keyInfo.mainType=e,i.keyInfo.subType=$L(e,o,i.existing,t))})}function $L(n,e,t,i){var o=e.type?e.type:t?t.subType:i.determineSubType(n,e);return o}function QL(n,e){var t={},i={};return o(n||[],t),o(e||[],i,t),[r(t),r(i)];function o(a,s,l){for(var u=0,c=a.length;u<c;u++){var h=re(a[u].seriesId,null);if(h==null)return;for(var p=Nt(a[u].dataIndex),d=l&&l[h],f=0,g=p.length;f<g;f++){var v=p[f];d&&d[v]?d[v]=null:(s[h]||(s[h]={}))[v]=1}}}function r(a,s){var l=[];for(var u in a)if(a.hasOwnProperty(u)&&a[u]!=null)if(s)l.push(+u);else{var c=r(a[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Co(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return G(e.dataIndex)?W(e.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(e.dataIndex);if(e.name!=null)return G(e.name)?W(e.name,function(t){return n.indexOfName(t)}):n.indexOfName(e.name)}function Mt(){var n="__ec_inner_"+JL++;return function(e){return e[n]||(e[n]={})}}var JL=V0();function rs(n,e,t){var i=id(e,t),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=a,l=t?t.defaultMainType:null;return!o&&l&&r.set(l,{}),r.each(function(u,c){var h=as(n,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function id(n,e){var t;if(X(n)){var i={};i[n+"Index"]=0,t=i}else t=n;var o=K(),r={},a=!1;return C(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){r[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&yt(e.includeMainTypes,c)<0)){a=a||!!c;var p=o.get(c)||o.set(c,{});p[h]=s}}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var ne={useDefault:!0,enableAll:!1,enableNone:!1},tN={useDefault:!1,enableAll:!0,enableNone:!0};function as(n,e,t,i){i=i||ne;var o=t.index,r=t.id,a=t.name,s={models:null,specified:o!=null||r!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(e))?[l]:[],s}return o==="none"||o===!1?(et(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(o==="all"&&(et(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),s.models=n.queryComponents({mainType:e,index:o,id:r,name:a}),s)}function q0(n,e,t){n.setAttribute?n.setAttribute(e,t):n[e]=t}function eN(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function nN(n){return n==="auto"?St.domSupported?"html":"richText":n||"html"}function od(n,e){var t=K(),i=[];return C(n,function(o){var r=e(o);(t.get(r)||(i.push(r),t.set(r,[]))).push(o)}),{keys:i,buckets:t}}function K0(n,e,t,i,o){var r=e==null||e==="auto";if(i==null)return i;if(Dt(i)){var a=G0(t||0,i,o);return Kt(a,r?Math.max(Gn(t||0),Gn(i)):e)}else{if(X(i))return o<1?t:i;for(var s=[],l=t,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var p=n.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(o<1&&l?l:u)[h];else{var d=l&&l[h]?l[h]:0,f=u[h],a=G0(d,f,o);s[h]=Kt(a,r?Math.max(Gn(d),Gn(f)):e)}}return s}}var iN=".",Ao="___EC__COMPONENT__CONTAINER___",$0="___EC__EXTENDED_CLASS___";function Hn(n){var e={main:"",sub:""};if(n){var t=n.split(iN);e.main=t[0]||"",e.sub=t[1]||""}return e}function oN(n){et(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function rN(n){return!!(n&&n[$0])}function rd(n,e){n.$constructor=n,n.extend=function(t){process.env.NODE_ENV!=="production"&&C(e,function(r){t[r]||console.warn("Method `"+r+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var i=this,o;return aN(i)?o=function(r){R(a,r);function a(){return r.apply(this,arguments)||this}return a}(i):(o=function(){(t.$constructor||i).apply(this,arguments)},ok(o,this)),z(o.prototype,t),o[$0]=!0,o.extend=this.extend,o.superCall=uN,o.superApply=cN,o.superClass=i,o}}function aN(n){return Q(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function Q0(n,e){n.extend=e.extend}var sN=Math.round(Math.random()*10);function lN(n){var e=["__\0is_clz",sN++].join("_");n.prototype[e]=!0,process.env.NODE_ENV!=="production"&&et(!n.isInstance,'The method "is" can not be defined.'),n.isInstance=function(t){return!!(t&&t[e])}}function uN(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(n,t)}function cN(n,e,t){return this.superClass.prototype[e].apply(n,t)}function xu(n){var e={};n.registerClass=function(i){var o=i.type||i.prototype.type;if(o){oN(o),i.prototype.type=o;var r=Hn(o);if(!r.sub)process.env.NODE_ENV!=="production"&&e[r.main]&&console.warn(r.main+" exists."),e[r.main]=i;else if(r.sub!==Ao){var a=t(r);a[r.sub]=i}}return i},n.getClass=function(i,o,r){var a=e[i];if(a&&a[Ao]&&(a=o?a[o]:null),r&&!a)throw new Error(o?"Component "+i+"."+(o||"")+" is used but not imported.":i+".type should be specified.");return a},n.getClassesByMainType=function(i){var o=Hn(i),r=[],a=e[o.main];return a&&a[Ao]?C(a,function(s,l){l!==Ao&&r.push(s)}):r.push(a),r},n.hasClass=function(i){var o=Hn(i);return!!e[o.main]},n.getAllClassMainTypes=function(){var i=[];return C(e,function(o,r){i.push(r)}),i},n.hasSubTypes=function(i){var o=Hn(i),r=e[o.main];return r&&r[Ao]};function t(i){var o=e[i.main];return(!o||!o[Ao])&&(o=e[i.main]={},o[Ao]=!0),o}}function ko(n,e){for(var t=0;t<n.length;t++)n[t][1]||(n[t][1]=n[t][0]);return e=e||!1,function(i,o,r){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(o&&yt(o,l)>=0||r&&yt(r,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[n[s][0]]=u)}}return a}}var hN=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pN=ko(hN),dN=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return pN(this,e,t)},n}(),ad=new ja(50);function fN(n){if(typeof n=="string"){var e=ad.get(n);return e&&e.image}else return n}function sd(n,e,t,i,o){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var r=ad.get(n),a={hostEl:t,cb:i,cbPayload:o};return r?(e=r.image,!_u(e)&&r.pending.push(a)):(e=ki.loadImage(n,J0,J0),e.__zrImageSrc=n,ad.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}else return n;else return e}function J0(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var t=n.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}n.pending.length=0}function _u(n){return n&&n.width&&n.height}var ld=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gN(n,e,t,i,o){if(!e)return"";var r=(n+"").split(`
|
|
37
|
+
`);o=t1(e,t,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=e1(r[a],o);return r.join(`
|
|
38
|
+
`)}function t1(n,e,t,i){i=i||{};var o=z({},i);o.font=e,t=ct(t,"..."),o.maxIterations=ct(i.maxIterations,2);var r=o.minChar=ct(i.minChar,0);o.cnCharWidth=je("\u56FD",e);var a=o.ascCharWidth=je("a",e);o.placeholder=ct(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<r&&s>=a;l++)s-=a;var u=je(t,e);return u>s&&(t="",u=0),s=n-u,o.ellipsis=t,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=n,o}function e1(n,e){var t=e.containerWidth,i=e.font,o=e.contentWidth;if(!t)return"";var r=je(n,i);if(r<=t)return n;for(var a=0;;a++){if(r<=o||a>=e.maxIterations){n+=e.ellipsis;break}var s=a===0?vN(n,o,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(n.length*o/r):0;n=n.substr(0,s),r=je(n,i)}return n===""&&(n=e.placeholder),n}function vN(n,e,t,i){for(var o=0,r=0,a=n.length;r<a&&o<e;r++){var s=n.charCodeAt(r);o+=0<=s&&s<=127?t:i}return r}function yN(n,e){n!=null&&(n+="");var t=e.overflow,i=e.padding,o=e.font,r=t==="truncate",a=fu(o),s=ct(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,h;c!=null&&(t==="break"||t==="breakAll")?h=n?i1(n,e.font,c,t==="breakAll",0).lines:[]:h=n?n.split(`
|
|
39
|
+
`):[];var p=h.length*s,d=ct(e.height,p);if(p>d&&u){var f=Math.floor(d/s);h=h.slice(0,f)}if(n&&r&&c!=null)for(var g=t1(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<h.length;v++)h[v]=e1(h[v],g);for(var y=d,m=0,v=0;v<h.length;v++)m=Math.max(je(h[v],o),m);c==null&&(c=m);var x=m;return i&&(y+=i[0]+i[2],x+=i[1]+i[3],c+=i[1]+i[3]),l&&(x=c),{lines:h,height:d,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:a,contentWidth:m,contentHeight:p,width:c}}var mN=function(){function n(){}return n}(),n1=function(){function n(e){this.tokens=[],e&&(this.tokens=e)}return n}(),xN=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return n}();function _N(n,e){var t=new xN;if(n!=null&&(n+=""),!n)return t;for(var i=e.width,o=e.height,r=e.overflow,a=(r==="break"||r==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:r==="breakAll"}:null,s=ld.lastIndex=0,l;(l=ld.exec(n))!=null;){var u=l.index;u>s&&ud(t,n.substring(s,u),e,a),ud(t,l[2],e,a,l[1]),s=ld.lastIndex}s<n.length&&ud(t,n.substring(s,n.length),e,a);var c=[],h=0,p=0,d=e.padding,f=r==="truncate",g=e.lineOverflow==="truncate";function v(O,V,F){O.width=V,O.lineHeight=F,h+=F,p=Math.max(p,V)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],x=0,_=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,D=M?M[1]+M[3]:0,T=b.font=S.font||e.font;b.contentHeight=fu(T);var I=ct(S.height,b.contentHeight);if(b.innerHeight=I,M&&(I+=M[0]+M[2]),b.height=I,b.lineHeight=Qe(S.lineHeight,e.lineHeight,I),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",g&&o!=null&&h+b.lineHeight>o){w>0?(m.tokens=m.tokens.slice(0,w),v(m,_,x),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var A=S.width,k=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")b.percentWidth=A,c.push(b),b.contentWidth=je(b.text,T);else{if(k){var L=S.backgroundColor,N=L&&L.image;N&&(N=fN(N),_u(N)&&(b.width=Math.max(b.width,N.width*I/N.height)))}var E=f&&i!=null?i-_:null;E!=null&&E<b.width?!k||E<D?(b.text="",b.width=b.contentWidth=0):(b.text=gN(b.text,E-D,T,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=je(b.text,T)):b.contentWidth=je(b.text,T)}b.width+=D,_+=b.width,S&&(x=Math.max(x,b.lineHeight))}v(m,_,x)}t.outerWidth=t.width=ct(i,p),t.outerHeight=t.height=ct(o,h),t.contentHeight=h,t.contentWidth=p,d&&(t.outerWidth+=d[1]+d[3],t.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var b=c[y],P=b.percentWidth;b.width=parseInt(P,10)/100*t.width}return t}function ud(n,e,t,i,o){var r=e==="",a=o&&t.rich[o]||{},s=n.lines,l=a.font||t.font,u=!1,c,h;if(i){var p=a.padding,d=p?p[1]+p[3]:0;if(a.width!=null&&a.width!=="auto"){var f=In(a.width,i.width)+d;s.length>0&&f+i.accumWidth>i.width&&(c=e.split(`
|
|
40
|
+
`),u=!0),i.accumWidth=f}else{var g=i1(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,h=g.linesWidths,c=g.lines}}else c=e.split(`
|
|
41
|
+
`);for(var v=0;v<c.length;v++){var y=c[v],m=new mN;if(m.styleName=o,m.text=y,m.isLineHolder=!y&&!r,typeof a.width=="number"?m.width=a.width:m.width=h?h[v]:je(y,l),!v&&!u){var x=(s[s.length-1]||(s[0]=new n1)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=m:(y||!_||r)&&x.push(m)}else s.push(new n1([m]))}}function bN(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var wN=Vn(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function SN(n){return bN(n)?!!wN[n]:!0}function i1(n,e,t,i,o){for(var r=[],a=[],s="",l="",u=0,c=0,h=0;h<n.length;h++){var p=n.charAt(h);if(p===`
|
|
42
|
+
`){l&&(s+=l,c+=u),r.push(s),a.push(c),s="",l="",u=0,c=0;continue}var d=je(p,e),f=i?!1:!SN(p);if(r.length?c+d>t:o+c+d>t){c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),r.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),r.push(s),a.push(c),s=p,c=d)):f?(r.push(l),a.push(u),l=p,u=d):(r.push(p),a.push(d));continue}c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return!r.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(r.push(s),a.push(c)),r.length===1&&(c+=o),{accumWidth:c,lines:r,linesWidths:a}}var cd="__zr_style_"+Math.round(Math.random()*10),Lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Lo[cd]=!0;var o1=["z","z2","invisible"],MN=["invisible"],IN=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var i=_t(t),o=0;o<i.length;o++){var r=i[o];r==="style"?this.useStyle(t[r]):n.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,o,r){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&DN(this,t,i)||a&&!a[0]&&!a[3])return!1;if(o&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(r&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();return r.contain(o[0],o[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,o=this.getBoundingRect(),r=this.style,a=r.shadowBlur||0,s=r.shadowOffsetX||0,l=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new dt(0,0,0,0)),i?dt.applyTransform(t,o,i):t.copy(o),(a||s||l)&&(t.width+=a*2+Math.abs(s),t.height+=a*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-a),t.y=Math.min(t.y,t.y+l-a));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new dt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?n.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:z(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Ua,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ua)},e.prototype.styleUpdated=function(){this.__dirty&=~Ua},e.prototype.createStyle=function(t){return Wl(Lo,t)},e.prototype.useStyle=function(t){t[cd]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[cd]},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,o1)},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.style?a?r?u=i.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),r?this.style:o.style),this._mergeStyle(u,i.style)):l&&(u=o.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=_t(c),p=0;p<h.length;p++){var d=h[p];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var f=_t(u),p=0;p<f.length;p++){var d=f[p];this.style[d]=this.style[d]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?MN:o1,p=0;p<g.length;p++){var d=g[p];i&&i[d]!=null?this[d]=i[d]:l&&o[d]!=null&&(this[d]=o[d])}},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),o,r=0;r<t.length;r++){var a=t[r];a.style&&(o=o||{},this._mergeStyle(o,a.style))}return o&&(i.style=o),i},e.prototype._mergeStyle=function(t,i){return z(t,i),t},e.prototype.getAnimationStyleProps=function(){return bu},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Ue|Ua}(),e}(D0),hd=new dt(0,0,0,0),pd=new dt(0,0,0,0);function DN(n,e,t){return hd.copy(n.getBoundingRect()),n.transform&&hd.applyTransform(n.transform),pd.width=e,pd.height=t,!hd.intersect(pd)}const an=IN;var ze=Math.min,Be=Math.max,dd=Math.sin,fd=Math.cos,No=Math.PI*2,wu=vo(),Su=vo(),Mu=vo();function Iu(n,e,t){if(n.length!==0){for(var i=n[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<n.length;l++)i=n[l],o=ze(o,i[0]),r=Be(r,i[0]),a=ze(a,i[1]),s=Be(s,i[1]);e[0]=o,e[1]=a,t[0]=r,t[1]=s}}function r1(n,e,t,i,o,r){o[0]=ze(n,t),o[1]=ze(e,i),r[0]=Be(n,t),r[1]=Be(e,i)}var a1=[],s1=[];function TN(n,e,t,i,o,r,a,s,l,u){var c=$m,h=le,p=c(n,t,o,a,a1);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=h(n,t,o,a,a1[d]);l[0]=ze(f,l[0]),u[0]=Be(f,u[0])}p=c(e,i,r,s,s1);for(var d=0;d<p;d++){var g=h(e,i,r,s,s1[d]);l[1]=ze(g,l[1]),u[1]=Be(g,u[1])}l[0]=ze(n,l[0]),u[0]=Be(n,u[0]),l[0]=ze(a,l[0]),u[0]=Be(a,u[0]),l[1]=ze(e,l[1]),u[1]=Be(e,u[1]),l[1]=ze(s,l[1]),u[1]=Be(s,u[1])}function CN(n,e,t,i,o,r,a,s){var l=Jm,u=pe,c=Be(ze(l(n,t,o),1),0),h=Be(ze(l(e,i,r),1),0),p=u(n,t,o,c),d=u(e,i,r,h);a[0]=ze(n,o,p),a[1]=ze(e,r,d),s[0]=Be(n,o,p),s[1]=Be(e,r,d)}function AN(n,e,t,i,o,r,a,s,l){var u=Ni,c=Ei,h=Math.abs(o-r);if(h%No<1e-4&&h>1e-4){s[0]=n-t,s[1]=e-i,l[0]=n+t,l[1]=e+i;return}if(wu[0]=fd(o)*t+n,wu[1]=dd(o)*i+e,Su[0]=fd(r)*t+n,Su[1]=dd(r)*i+e,u(s,wu,Su),c(l,wu,Su),o=o%No,o<0&&(o=o+No),r=r%No,r<0&&(r=r+No),o>r&&!a?r+=No:o<r&&a&&(o+=No),a){var p=r;r=o,o=p}for(var d=0;d<r;d+=Math.PI/2)d>o&&(Mu[0]=fd(d)*t+n,Mu[1]=dd(d)*i+e,u(s,Mu,s),c(l,Mu,l))}var Pt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Eo=[],Oo=[],Yn=[],Bi=[],Xn=[],Un=[],gd=Math.min,vd=Math.max,Po=Math.cos,Ro=Math.sin,di=Math.abs,yd=Math.PI,Fi=yd*2,md=typeof Float32Array<"u",ss=[];function xd(n){var e=Math.round(n/yd*1e8)/1e8;return e%2*yd}function l1(n,e){var t=xd(n[0]);t<0&&(t+=Fi);var i=t-n[0],o=n[1];o+=i,!e&&o-t>=Fi?o=t+Fi:e&&t-o>=Fi?o=t-Fi:!e&&t>o?o=t+(Fi-xd(t-o)):e&&t<o&&(o=t-(Fi-xd(o-t))),n[0]=t,n[1]=o}var Zn=function(){function n(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(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(e,t,i){i=i||0,i>0&&(this._ux=di(i/du/e)||0,this._uy=di(i/du/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Pt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var i=di(e-this._xi),o=di(t-this._yi),r=i>this._ux||o>this._uy;if(this.addData(Pt.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=i*i+o*o;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){return this._drawPendingPt(),this.addData(Pt.C,e,t,i,o,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,i,o,r,a),this._xi=r,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,i,o){return this._drawPendingPt(),this.addData(Pt.Q,e,t,i,o),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,o),this._xi=i,this._yi=o,this},n.prototype.arc=function(e,t,i,o,r,a){this._drawPendingPt(),ss[0]=o,ss[1]=r,l1(ss,a),o=ss[0],r=ss[1];var s=r-o;return this.addData(Pt.A,e,t,i,i,o,s,0,a?0:1),this._ctx&&this._ctx.arc(e,t,i,o,r,a),this._xi=Po(r)*i+e,this._yi=Ro(r)*i+t,this},n.prototype.arcTo=function(e,t,i,o,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,o,r),this},n.prototype.rect=function(e,t,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,o),this.addData(Pt.R,e,t,i,o),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Pt.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&md&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},n.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,o=this._len,r=0;r<t;r++)i+=e[r].len();md&&this.data instanceof Float32Array&&(this.data=new Float32Array(o+i));for(var r=0;r<t;r++)for(var a=e[r].data,s=0;s<a.length;s++)this.data[o++]=a[s];this._len=o},n.prototype.addData=function(e,t,i,o,r,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,md&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Yn[0]=Yn[1]=Xn[0]=Xn[1]=Number.MAX_VALUE,Bi[0]=Bi[1]=Un[0]=Un[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,o=0,r=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(t=e[a],i=e[a+1],o=t,r=i),s){case Pt.M:t=o=e[a++],i=r=e[a++],Xn[0]=o,Xn[1]=r,Un[0]=o,Un[1]=r;break;case Pt.L:r1(t,i,e[a],e[a+1],Xn,Un),t=e[a++],i=e[a++];break;case Pt.C:TN(t,i,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Xn,Un),t=e[a++],i=e[a++];break;case Pt.Q:CN(t,i,e[a++],e[a++],e[a],e[a+1],Xn,Un),t=e[a++],i=e[a++];break;case Pt.A:var u=e[a++],c=e[a++],h=e[a++],p=e[a++],d=e[a++],f=e[a++]+d;a+=1;var g=!e[a++];l&&(o=Po(d)*h+u,r=Ro(d)*p+c),AN(u,c,h,p,d,f,g,Xn,Un),t=Po(f)*h+u,i=Ro(f)*p+c;break;case Pt.R:o=t=e[a++],r=i=e[a++];var v=e[a++],y=e[a++];r1(o,r,o+v,r+y,Xn,Un);break;case Pt.Z:t=o,i=r;break}Ni(Yn,Yn,Xn),Ei(Bi,Bi,Un)}return a===0&&(Yn[0]=Yn[1]=Bi[0]=Bi[1]=0),new dt(Yn[0],Yn[1],Bi[0]-Yn[0],Bi[1]-Yn[1])},n.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,o=this._uy,r=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,p=0;p<t;){var d=e[p++],f=p===1;f&&(r=e[p],a=e[p+1],s=r,l=a);var g=-1;switch(d){case Pt.M:r=s=e[p++],a=l=e[p++];break;case Pt.L:{var v=e[p++],y=e[p++],m=v-r,x=y-a;(di(m)>i||di(x)>o||p===t-1)&&(g=Math.sqrt(m*m+x*x),r=v,a=y);break}case Pt.C:{var _=e[p++],w=e[p++],v=e[p++],y=e[p++],b=e[p++],S=e[p++];g=Hk(r,a,_,w,v,y,b,S,10),r=b,a=S;break}case Pt.Q:{var _=e[p++],w=e[p++],v=e[p++],y=e[p++];g=Xk(r,a,_,w,v,y,10),r=v,a=y;break}case Pt.A:var M=e[p++],D=e[p++],T=e[p++],I=e[p++],A=e[p++],k=e[p++],L=k+A;p+=1,e[p++],f&&(s=Po(A)*T+M,l=Ro(A)*I+D),g=vd(T,I)*gd(Fi,Math.abs(k)),r=Po(L)*T+M,a=Ro(L)*I+D;break;case Pt.R:{s=r=e[p++],l=a=e[p++];var N=e[p++],E=e[p++];g=N*2+E*2;break}case Pt.Z:{var m=s-r,x=l-a;g=Math.sqrt(m*m+x*x),r=s,a=l;break}}g>=0&&(u[h++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var i=this.data,o=this._ux,r=this._uy,a=this._len,s,l,u,c,h,p,d=t<1,f,g,v=0,y=0,m,x=0,_,w;if(!(d&&(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,g=this._pathLen,m=t*g,!m)))t:for(var b=0;b<a;){var S=i[b++],M=b===1;switch(M&&(u=i[b],c=i[b+1],s=u,l=c),S!==Pt.L&&x>0&&(e.lineTo(_,w),x=0),S){case Pt.M:s=u=i[b++],l=c=i[b++],e.moveTo(u,c);break;case Pt.L:{h=i[b++],p=i[b++];var D=di(h-u),T=di(p-c);if(D>o||T>r){if(d){var I=f[y++];if(v+I>m){var A=(m-v)/I;e.lineTo(u*(1-A)+h*A,c*(1-A)+p*A);break t}v+=I}e.lineTo(h,p),u=h,c=p,x=0}else{var k=D*D+T*T;k>x&&(_=h,w=p,x=k)}break}case Pt.C:{var L=i[b++],N=i[b++],E=i[b++],P=i[b++],O=i[b++],V=i[b++];if(d){var I=f[y++];if(v+I>m){var A=(m-v)/I;Ri(u,L,E,O,A,Eo),Ri(c,N,P,V,A,Oo),e.bezierCurveTo(Eo[1],Oo[1],Eo[2],Oo[2],Eo[3],Oo[3]);break t}v+=I}e.bezierCurveTo(L,N,E,P,O,V),u=O,c=V;break}case Pt.Q:{var L=i[b++],N=i[b++],E=i[b++],P=i[b++];if(d){var I=f[y++];if(v+I>m){var A=(m-v)/I;Za(u,L,E,A,Eo),Za(c,N,P,A,Oo),e.quadraticCurveTo(Eo[1],Oo[1],Eo[2],Oo[2]);break t}v+=I}e.quadraticCurveTo(L,N,E,P),u=E,c=P;break}case Pt.A:var F=i[b++],B=i[b++],Y=i[b++],$=i[b++],j=i[b++],ft=i[b++],ut=i[b++],gt=!i[b++],J=Y>$?Y:$,vt=di(Y-$)>.001,rt=j+ft,q=!1;if(d){var I=f[y++];v+I>m&&(rt=j+ft*(m-v)/I,q=!0),v+=I}if(vt&&e.ellipse?e.ellipse(F,B,Y,$,ut,j,rt,gt):e.arc(F,B,J,j,rt,gt),q)break t;M&&(s=Po(j)*Y+F,l=Ro(j)*$+B),u=Po(rt)*Y+F,c=Ro(rt)*$+B;break;case Pt.R:s=u=i[b],l=c=i[b+1],h=i[b++],p=i[b++];var at=i[b++],Et=i[b++];if(d){var I=f[y++];if(v+I>m){var bt=m-v;e.moveTo(h,p),e.lineTo(h+gd(bt,at),p),bt-=at,bt>0&&e.lineTo(h+at,p+gd(bt,Et)),bt-=Et,bt>0&&e.lineTo(h+vd(at-bt,0),p+Et),bt-=at,bt>0&&e.lineTo(h,p+vd(Et-bt,0));break t}v+=I}e.rect(h,p,at,Et);break;case Pt.Z:if(d){var I=f[y++];if(v+I>m){var A=(m-v)/I;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break t}v+=I}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Pt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function Gi(n,e,t,i,o,r,a){if(o===0)return!1;var s=o,l=0,u=n;if(a>e+s&&a>i+s||a<e-s&&a<i-s||r>n+s&&r>t+s||r<n-s&&r<t-s)return!1;if(n!==t)l=(e-i)/(n-t),u=(n*i-t*e)/(n-t);else return Math.abs(r-n)<=s/2;var c=l*r-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function kN(n,e,t,i,o,r,a,s,l,u,c){if(l===0)return!1;var h=l;if(c>e+h&&c>i+h&&c>r+h&&c>s+h||c<e-h&&c<i-h&&c<r-h&&c<s-h||u>n+h&&u>t+h&&u>o+h&&u>a+h||u<n-h&&u<t-h&&u<o-h&&u<a-h)return!1;var p=Qm(n,e,t,i,o,r,a,s,u,c,null);return p<=h/2}function u1(n,e,t,i,o,r,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>i+u&&l>r+u||l<e-u&&l<i-u&&l<r-u||s>n+u&&s>t+u&&s>o+u||s<n-u&&s<t-u&&s<o-u)return!1;var c=t0(n,e,t,i,o,r,s,l,null);return c<=u/2}var c1=Math.PI*2;function Tn(n){return n%=c1,n<0&&(n+=c1),n}var ls=Math.PI*2;function LN(n,e,t,i,o,r,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(i-o)%ls<1e-4)return!0;if(r){var h=i;i=Tn(o),o=Tn(h)}else i=Tn(i),o=Tn(o);i>o&&(o+=ls);var p=Math.atan2(l,s);return p<0&&(p+=ls),p>=i&&p<=o||p+ls>=i&&p+ls<=o}function fi(n,e,t,i,o,r){if(r>e&&r>i||r<e&&r<i||i===e)return 0;var a=(r-e)/(i-e),s=i<e?1:-1;(a===1||a===0)&&(s=i<e?.5:-.5);var l=a*(t-n)+n;return l===o?1/0:l>o?s:0}var Wi=Zn.CMD,Vo=Math.PI*2,NN=1e-4;function EN(n,e){return Math.abs(n-e)<NN}var Ae=[-1,-1,-1],sn=[-1,-1];function ON(){var n=sn[0];sn[0]=sn[1],sn[1]=n}function PN(n,e,t,i,o,r,a,s,l,u){if(u>e&&u>i&&u>r&&u>s||u<e&&u<i&&u<r&&u<s)return 0;var c=tu(e,i,r,s,u,Ae);if(c===0)return 0;for(var h=0,p=-1,d=void 0,f=void 0,g=0;g<c;g++){var v=Ae[g],y=v===0||v===1?.5:1,m=le(n,t,o,a,v);m<l||(p<0&&(p=$m(e,i,r,s,sn),sn[1]<sn[0]&&p>1&&ON(),d=le(e,i,r,s,sn[0]),p>1&&(f=le(e,i,r,s,sn[1]))),p===2?v<sn[0]?h+=d<e?y:-y:v<sn[1]?h+=f<d?y:-y:h+=s<f?y:-y:v<sn[0]?h+=d<e?y:-y:h+=s<d?y:-y)}return h}function RN(n,e,t,i,o,r,a,s){if(s>e&&s>i&&s>r||s<e&&s<i&&s<r)return 0;var l=Yk(e,i,r,s,Ae);if(l===0)return 0;var u=Jm(e,i,r);if(u>=0&&u<=1){for(var c=0,h=pe(e,i,r,u),p=0;p<l;p++){var d=Ae[p]===0||Ae[p]===1?.5:1,f=pe(n,t,o,Ae[p]);f<a||(Ae[p]<u?c+=h<e?d:-d:c+=r<h?d:-d)}return c}else{var d=Ae[0]===0||Ae[0]===1?.5:1,f=pe(n,t,o,Ae[0]);return f<a?0:r<e?d:-d}}function VN(n,e,t,i,o,r,a,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ae[0]=-l,Ae[1]=l;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u>=Vo-1e-4){i=0,o=Vo;var c=r?1:-1;return a>=Ae[0]+n&&a<=Ae[1]+n?c:0}if(i>o){var h=i;i=o,o=h}i<0&&(i+=Vo,o+=Vo);for(var p=0,d=0;d<2;d++){var f=Ae[d];if(f+n>a){var g=Math.atan2(s,f),c=r?1:-1;g<0&&(g=Vo+g),(g>=i&&g<=o||g+Vo>=i&&g+Vo<=o)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),p+=c)}}return p}function h1(n,e,t,i,o){for(var r=n.data,a=n.len(),s=0,l=0,u=0,c=0,h=0,p,d,f=0;f<a;){var g=r[f++],v=f===1;switch(g===Wi.M&&f>1&&(t||(s+=fi(l,u,c,h,i,o))),v&&(l=r[f],u=r[f+1],c=l,h=u),g){case Wi.M:c=r[f++],h=r[f++],l=c,u=h;break;case Wi.L:if(t){if(Gi(l,u,r[f],r[f+1],e,i,o))return!0}else s+=fi(l,u,r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case Wi.C:if(t){if(kN(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=PN(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case Wi.Q:if(t){if(u1(l,u,r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=RN(l,u,r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case Wi.A:var y=r[f++],m=r[f++],x=r[f++],_=r[f++],w=r[f++],b=r[f++];f+=1;var S=!!(1-r[f++]);p=Math.cos(w)*x+y,d=Math.sin(w)*_+m,v?(c=p,h=d):s+=fi(l,u,p,d,i,o);var M=(i-y)*_/x+y;if(t){if(LN(y,m,_,w,w+b,S,e,M,o))return!0}else s+=VN(y,m,_,w,w+b,S,M,o);l=Math.cos(w+b)*x+y,u=Math.sin(w+b)*_+m;break;case Wi.R:c=l=r[f++],h=u=r[f++];var D=r[f++],T=r[f++];if(p=c+D,d=h+T,t){if(Gi(c,h,p,h,e,i,o)||Gi(p,h,p,d,e,i,o)||Gi(p,d,c,d,e,i,o)||Gi(c,d,c,h,e,i,o))return!0}else s+=fi(p,h,p,d,i,o),s+=fi(c,d,c,h,i,o);break;case Wi.Z:if(t){if(Gi(l,u,c,h,e,i,o))return!0}else s+=fi(l,u,c,h,i,o);l=c,u=h;break}}return!t&&!EN(u,h)&&(s+=fi(l,u,c,h,i,o)||0),s!==0}function zN(n,e,t){return h1(n,0,!1,e,t)}function BN(n,e,t,i){return h1(n,e,!0,t,i)}var Du=nt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Lo),FN={style:nt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bu.style)},_d=Fn.concat(["invisible","culling","z","z2","zlevel","parent"]),GN=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new e;o.buildPath===e.prototype.buildPath&&(o.buildPath=function(l){t.buildPath(l,t.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s<_d.length;++s)o[_d[s]]=this[_d[s]];o.__dirty|=Ue}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=_t(t);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var r=0;r<i.length;r++){var a=i[r],s=t[a];a==="style"?this.style?z(this.style,s):this.useStyle(s):a==="shape"?z(this.shape,s):n.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(X(t)){var i=iu(t,0);return i>.5?Yp:i>.2?wL:Xp}else if(t)return Xp}return Yp},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(X(i)){var o=this.__zr,r=!!(o&&o.isDarkMode()),a=iu(t,0)<Hp;if(r===a)return i}},e.prototype.buildPath=function(t,i,o){},e.prototype.pathUpdated=function(){this.__dirty&=~Or},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Zn(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,o=!t;if(o){var r=!1;this.path||(r=!0,this.createPathProxy());var a=this.path;(r||this.__dirty&Or)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||o){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect(),a=this.style;if(t=o[0],i=o[1],r.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),BN(s,l/u,t,i)))return!0}if(this.hasFill())return zN(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Or,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):n.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var o=this.shape;return o||(o=this.shape={}),typeof t=="string"?o[t]=i:z(o,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Or)},e.prototype.createStyle=function(t){return Wl(Du,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=z({},this.shape))},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.shape?a?r?u=i.shape:(u=z({},o.shape),z(u,i.shape)):(u=z({},r?this.shape:o.shape),z(u,i.shape)):l&&(u=o.shape),u)if(a){this.shape=z({},this.shape);for(var c={},h=_t(u),p=0;p<h.length;p++){var d=h[p];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),o,r=0;r<t.length;r++){var a=t[r];a.shape&&(o=o||{},this._mergeStyle(o,a.shape))}return o&&(i.shape=o),i},e.prototype.getAnimationStyleProps=function(){return FN},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(r){Ft(a,r);function a(s){var l=r.call(this,s)||this;return t.init&&t.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return it(t.style)},a.prototype.getDefaultShape=function(){return it(t.shape)},a}(e);for(var o in t)typeof t[o]=="function"&&(i.prototype[o]=t[o]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Ue|Ua|Or}(),e}(an);const xt=GN;var WN=nt({strokeFirst:!0,font:Ai,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Du),p1=function(n){Ft(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return i!=null&&i!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Wl(WN,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var o=es(i,t.font,t.textAlign,t.textBaseline);if(o.x+=t.x||0,o.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;o.x-=r/2,o.y-=r/2,o.width+=r,o.height+=r}this._rect=o}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(an);p1.prototype.type="tspan";const us=p1;var HN=nt({x:0,y:0},Lo),YN={style:nt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bu.style)};function XN(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var d1=function(n){Ft(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Wl(HN,t)},e.prototype._getSize=function(t){var i=this.style,o=i[t];if(o!=null)return o;var r=XN(i.image)?i.image:this.__image;if(!r)return 0;var a=t==="width"?"height":"width",s=i[a];return s==null?r[t]:r[t]/r[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return YN},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new dt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(an);d1.prototype.type="image";const ge=d1;function UN(n,e){var t=e.x,i=e.y,o=e.width,r=e.height,a=e.r,s,l,u,c;o<0&&(t=t+o,o=-o),r<0&&(i=i+r,r=-r),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var h;s+l>o&&(h=s+l,s*=o/h,l*=o/h),u+c>o&&(h=u+c,u*=o/h,c*=o/h),l+u>r&&(h=l+u,l*=r/h,u*=r/h),s+c>r&&(h=s+c,s*=r/h,c*=r/h),n.moveTo(t+s,i),n.lineTo(t+o-l,i),l!==0&&n.arc(t+o-l,i+l,l,-Math.PI/2,0),n.lineTo(t+o,i+r-u),u!==0&&n.arc(t+o-u,i+r-u,u,0,Math.PI/2),n.lineTo(t+c,i+r),c!==0&&n.arc(t+c,i+r-c,c,Math.PI/2,Math.PI),n.lineTo(t,i+s),s!==0&&n.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Hr=Math.round;function f1(n,e,t){if(e){var i=e.x1,o=e.x2,r=e.y1,a=e.y2;n.x1=i,n.x2=o,n.y1=r,n.y2=a;var s=t&&t.lineWidth;return s&&(Hr(i*2)===Hr(o*2)&&(n.x1=n.x2=zo(i,s,!0)),Hr(r*2)===Hr(a*2)&&(n.y1=n.y2=zo(r,s,!0))),n}}function g1(n,e,t){if(e){var i=e.x,o=e.y,r=e.width,a=e.height;n.x=i,n.y=o,n.width=r,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=zo(i,s,!0),n.y=zo(o,s,!0),n.width=Math.max(zo(i+r,s,!1)-n.x,r===0?0:1),n.height=Math.max(zo(o+a,s,!1)-n.y,a===0?0:1)),n}}function zo(n,e,t){if(!e)return n;var i=Hr(n*2);return(i+Hr(e))%2===0?i/2:(i+(t?1:-1))/2}var ZN=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),jN={},v1=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZN},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=g1(jN,i,this.style);o=l.x,r=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else o=i.x,r=i.y,a=i.width,s=i.height;i.r?UN(t,i):t.rect(o,r,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(xt);v1.prototype.type="rect";const It=v1;var y1={fill:"#000"},m1=2,qN={style:nt({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},bu.style)},x1=function(n){Ft(e,n);function e(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=y1,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,QN(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new dt(0,0,0,0),i=this._children,o=[],r=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(t.copy(l),t.applyTransform(u),r=r||t.clone(),r.union(t)):(r=r||l.clone(),r.union(l))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||y1},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,i){if(!i)return t;var o=i.rich,r=t.rich||o&&{};return z(t,i),o&&r?(this._mergeRich(r,o),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,i){for(var o=_t(i),r=0;r<o.length;r++){var a=o[r];t[a]=t[a]||{},z(t[a],i[a])}},e.prototype.getAnimationStyleProps=function(){return qN},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||Ai,o=t.padding,r=C1(t),a=yN(r,t),s=bd(t),l=!!t.backgroundColor,u=a.outerHeight,c=a.outerWidth,h=a.contentWidth,p=a.lines,d=a.lineHeight,f=this._defaultStyle,g=t.x||0,v=t.y||0,y=t.align||f.align||"left",m=t.verticalAlign||f.verticalAlign||"top",x=g,_=Br(v,a.contentHeight,m);if(s||o){var w=ns(g,c,y),b=Br(v,u,m);s&&this._renderBackground(t,t,w,b,c,u)}_+=d/2,o&&(x=T1(g,y,o),m==="top"?_+=o[0]:m==="bottom"&&(_-=o[2]));for(var S=0,M=!1,D=D1("fill"in t?t.fill:(M=!0,f.fill)),T=I1("stroke"in t?t.stroke:!l&&(!f.autoStroke||M)?(S=m1,f.stroke):null),I=t.textShadowBlur>0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),k=a.calculatedLineHeight,L=0;L<p.length;L++){var N=this._getOrCreateChild(us),E=N.createStyle();N.useStyle(E),E.text=p[L],E.x=x,E.y=_,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,I&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=T,E.fill=D,T&&(E.lineWidth=t.lineWidth||S,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=i,w1(E,t),_+=d,A&&N.setBoundingRect(new dt(ns(E.x,t.width,E.textAlign),Br(E.y,k,E.textBaseline),h,k))}},e.prototype._updateRichTexts=function(){var t=this.style,i=C1(t),o=_N(i,t),r=o.width,a=o.outerWidth,s=o.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,p=t.align||h.align,d=t.verticalAlign||h.verticalAlign,f=ns(u,a,p),g=Br(c,s,d),v=f,y=g;l&&(v+=l[3],y+=l[0]);var m=v+r;bd(t)&&this._renderBackground(t,t,f,g,a,s);for(var x=!!t.backgroundColor,_=0;_<o.lines.length;_++){for(var w=o.lines[_],b=w.tokens,S=b.length,M=w.lineHeight,D=w.width,T=0,I=v,A=m,k=S-1,L=void 0;T<S&&(L=b[T],!L.align||L.align==="left");)this._placeToken(L,t,M,y,I,"left",x),D-=L.width,I+=L.width,T++;for(;k>=0&&(L=b[k],L.align==="right");)this._placeToken(L,t,M,y,A,"right",x),D-=L.width,A-=L.width,k--;for(I+=(r-(I-v)-(m-A)-D)/2;T<=k;)L=b[T],this._placeToken(L,t,M,y,I+L.width/2,"center",x),I+=L.width,T++;y+=M}},e.prototype._placeToken=function(t,i,o,r,a,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=r+o/2;c==="top"?h=r+t.height/2:c==="bottom"&&(h=r+o-t.height/2);var p=!t.isLineHolder&&bd(u);p&&this._renderBackground(u,i,s==="right"?a-t.width:s==="center"?a-t.width/2:a,h-t.height/2,t.width,t.height);var d=!!u.backgroundColor,f=t.textPadding;f&&(a=T1(a,s,f),h-=t.height/2-f[0]-t.innerHeight/2);var g=this._getOrCreateChild(us),v=g.createStyle();g.useStyle(v);var y=this._defaultStyle,m=!1,x=0,_=D1("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),w=I1("stroke"in u?u.stroke:"stroke"in i?i.stroke:!d&&!l&&(!y.autoStroke||m)?(x=m1,y.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;v.text=t.text,v.x=a,v.y=h,b&&(v.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,v.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=t.font||Ai,v.opacity=Qe(u.opacity,i.opacity,1),w1(v,u),w&&(v.lineWidth=Qe(u.lineWidth,i.lineWidth,x),v.lineDash=ct(u.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=w),_&&(v.fill=_);var S=t.contentWidth,M=t.contentHeight;g.setBoundingRect(new dt(ns(v.x,S,v.textAlign),Br(v.y,M,v.textBaseline),S,M))},e.prototype._renderBackground=function(t,i,o,r,a,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,p=l&&!h,d=t.borderRadius,f=this,g,v;if(p||t.lineHeight||u&&c){g=this._getOrCreateChild(It),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=o,y.y=r,y.width=a,y.height=s,y.r=d,g.dirtyShape()}if(p){var m=g.style;m.fill=l||null,m.fillOpacity=ct(t.fillOpacity,1)}else if(h){v=this._getOrCreateChild(ge),v.onload=function(){f.dirtyStyle()};var x=v.style;x.image=l.image,x.x=o,x.y=r,x.width=a,x.height=s}if(u&&c){var m=g.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=ct(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var _=(g||v).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Qe(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return S1(t)&&(i=[t.fontStyle,t.fontWeight,b1(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&wn(i)||t.textFont||t.font},e}(an),KN={left:!0,right:1,center:1},$N={top:1,bottom:1,middle:1},_1=["fontStyle","fontWeight","fontSize","fontFamily"];function b1(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?$h+"px":n+"px"}function w1(n,e){for(var t=0;t<_1.length;t++){var i=_1[t],o=e[i];o!=null&&(n[i]=o)}}function S1(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function QN(n){return M1(n),C(n.rich,M1),n}function M1(n){if(n){n.font=x1.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||KN[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||$N[t]?t:"top";var i=n.padding;i&&(n.padding=np(n.padding))}}function I1(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function D1(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function T1(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function C1(n){var e=n.text;return e!=null&&(e+=""),e}function bd(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const Tt=x1;var st=Mt(),wd=function(n,e,t,i){if(i){var o=st(i);o.dataIndex=t,o.dataType=e,o.seriesIndex=n,i.type==="group"&&i.traverse(function(r){var a=st(r);a.seriesIndex=n,a.dataIndex=t,a.dataType=e})}},A1=1,k1={},L1=Mt(),Sd=Mt(),Md=0,cs=1,Tu=2,ke=["emphasis","blur","select"],hs=["normal","emphasis","blur","select"],Yr=10,JN=9,Bo="highlight",Cu="downplay",ps="select",Au="unselect",ds="toggleSelect";function Xr(n){return n!=null&&n!=="none"}var N1=new ja(100);function E1(n){if(X(n)){var e=N1.get(n);return e||(e=Cp(n,-.1),N1.put(n,e)),e}else if(Bl(n)){var t=z({},n);return t.colorStops=W(n.colorStops,function(i){return{offset:i.offset,color:Cp(i.color,-.1)}}),t}return n}function ku(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function O1(n){ku(n,"emphasis",Tu)}function P1(n){n.hoverState===Tu&&ku(n,"normal",Md)}function Id(n){ku(n,"blur",cs)}function R1(n){n.hoverState===cs&&ku(n,"normal",Md)}function tE(n){n.selected=!0}function eE(n){n.selected=!1}function V1(n,e,t){e(n,t)}function gi(n,e,t){V1(n,e,t),n.isGroup&&n.traverse(function(i){V1(i,e,t)})}function Lu(n,e){switch(e){case"emphasis":n.hoverState=Tu;break;case"normal":n.hoverState=Md;break;case"blur":n.hoverState=cs;break;case"select":n.selected=!0}}function nE(n,e,t,i){for(var o=n.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=l??(i&&i[s])}for(var a=0;a<n.animators.length;a++){var u=n.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(r,e)}return r}function iE(n,e,t,i){var o=t&&yt(t,"select")>=0,r=!1;if(n instanceof xt){var a=L1(n),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(Xr(s)||Xr(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(r=!0,i=z({},i),u=z({},u),u.fill=s):!Xr(u.fill)&&Xr(s)?(r=!0,i=z({},i),u=z({},u),u.fill=E1(s)):!Xr(u.stroke)&&Xr(l)&&(r||(i=z({},i),u=z({},u)),u.stroke=E1(l)),i.style=u}}if(i&&i.z2==null){r||(i=z({},i));var c=n.z2EmphasisLift;i.z2=n.z2+(c??Yr)}return i}function oE(n,e,t){if(t&&t.z2==null){t=z({},t);var i=n.z2SelectLift;t.z2=n.z2+(i??JN)}return t}function rE(n,e,t){var i=yt(n.currentStates,e)>=0,o=n.style.opacity,r=i?null:nE(n,["opacity"],e,{opacity:1});t=t||{};var a=t.style||{};return a.opacity==null&&(t=z({},t),a=z({opacity:i?o:r.opacity*.1},a),t.style=a),t}function Dd(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return iE(this,n,e,t);if(n==="blur")return rE(this,n,t);if(n==="select")return oE(this,n,t)}return t}function Fo(n){n.stateProxy=Dd;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=Dd),t&&(t.stateProxy=Dd)}function z1(n,e){!H1(n,e)&&!n.__highByOuter&&gi(n,O1)}function B1(n,e){!H1(n,e)&&!n.__highByOuter&&gi(n,P1)}function vi(n,e){n.__highByOuter|=1<<(e||0),gi(n,O1)}function yi(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&gi(n,P1)}function F1(n){gi(n,Id)}function Td(n){gi(n,R1)}function G1(n){gi(n,tE)}function W1(n){gi(n,eE)}function H1(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function Y1(n){var e=n.getModel(),t=[],i=[];e.eachComponent(function(o,r){var a=Sd(r),s=o==="series",l=s?n.getViewOfSeriesModel(r):n.getViewOfComponentModel(r);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){R1(u)}),s&&t.push(r)),a.isBlured=!1}),C(i,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(t,!1,e)})}function Cd(n,e,t,i){var o=i.getModel();t=t||"coordinateSystem";function r(u,c){for(var h=0;h<c.length;h++){var p=u.getItemGraphicEl(c[h]);p&&Td(p)}}if(n!=null&&!(!e||e==="none")){var a=o.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(u){var c=a===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!p||e==="series"&&c)){var d=i.getViewOfSeriesModel(u);if(d.group.traverse(function(v){v.__highByOuter&&c&&e==="self"||Id(v)}),be(e))r(u.getData(),e);else if(tt(e))for(var f=_t(e),g=0;g<f.length;g++)r(u.getData(f[g]),e[f[g]]);l.push(u),Sd(u).isBlured=!0}}),o.eachComponent(function(u,c){if(u!=="series"){var h=i.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,o)}})}}function Ad(n,e,t){if(!(n==null||e==null)){var i=t.getModel().getComponent(n,e);if(i){Sd(i).isBlured=!0;var o=t.getViewOfComponentModel(i);!o||!o.focusBlurEnabled||o.group.traverse(function(r){Id(r)})}}}function aE(n,e,t){var i=n.seriesIndex,o=n.getData(e.dataType);if(!o){process.env.NODE_ENV!=="production"&&we("Unknown dataType "+e.dataType);return}var r=Co(o,e);r=(G(r)?r[0]:r)||0;var a=o.getItemGraphicEl(r);if(!a)for(var s=o.count(),l=0;!a&&l<s;)a=o.getItemGraphicEl(l++);if(a){var u=st(a);Cd(i,u.focus,u.blurScope,t)}else{var c=n.get(["emphasis","focus"]),h=n.get(["emphasis","blurScope"]);c!=null&&Cd(i,c,h,t)}}function kd(n,e,t,i){var o={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||t==null)return o;var r=i.getModel().getComponent(n,e);if(!r)return o;var a=i.getViewOfComponentModel(r);if(!a||!a.findHighDownDispatchers)return o;for(var s=a.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Hi(s[u])&&we("param should be highDownDispatcher"),st(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function sE(n,e,t){process.env.NODE_ENV!=="production"&&!Hi(n)&&we("param should be highDownDispatcher");var i=st(n),o=kd(i.componentMainType,i.componentIndex,i.componentHighDownName,t),r=o.dispatchers,a=o.focusSelf;r?(a&&Ad(i.componentMainType,i.componentIndex,t),C(r,function(s){return z1(s,e)})):(Cd(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&Ad(i.componentMainType,i.componentIndex,t),z1(n,e))}function lE(n,e,t){process.env.NODE_ENV!=="production"&&!Hi(n)&&we("param should be highDownDispatcher"),Y1(t);var i=st(n),o=kd(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;o?C(o,function(r){return B1(r,e)}):B1(n,e)}function uE(n,e,t){if(Nd(e)){var i=e.dataType,o=n.getData(i),r=Co(o,e);G(r)||(r=[r]),n[e.type===ds?"toggleSelect":e.type===ps?"select":"unselect"](r,i)}}function X1(n){var e=n.getAllData();C(e,function(t){var i=t.data,o=t.type;i.eachItemGraphicEl(function(r,a){n.isSelected(a,o)?G1(r):W1(r)})})}function cE(n){var e=[];return n.eachSeries(function(t){var i=t.getAllData();C(i,function(o){o.data;var r=o.type,a=t.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:t.seriesIndex};r!=null&&(s.dataType=r),e.push(s)}})}),e}function Go(n,e,t){Wo(n,!0),gi(n,Fo),Ld(n,e,t)}function hE(n){Wo(n,!1)}function jt(n,e,t,i){i?hE(n):Go(n,e,t)}function Ld(n,e,t){var i=st(n);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var U1=["emphasis","blur","select"],pE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ve(n,e,t,i){t=t||"itemStyle";for(var o=0;o<U1.length;o++){var r=U1[o],a=e.getModel([r,t]),s=n.ensureState(r);s.style=i?i(a):a[pE[t]]()}}function Wo(n,e){var t=e===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function Hi(n){return!!(n&&n.__highDownDispatcher)}function dE(n,e,t){var i=st(n);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function fE(n){var e=k1[n];return e==null&&A1<=32&&(e=k1[n]=A1++),e}function Nd(n){var e=n.type;return e===ps||e===Au||e===ds}function Z1(n){var e=n.type;return e===Bo||e===Cu}function gE(n){var e=L1(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Ur=Zn.CMD,vE=[[],[],[]],j1=Math.sqrt,yE=Math.atan2;function q1(n,e){if(e){var t=n.data,i=n.len(),o,r,a,s,l,u,c=Ur.M,h=Ur.C,p=Ur.L,d=Ur.R,f=Ur.A,g=Ur.Q;for(a=0,s=0;a<i;){switch(o=t[a++],s=a,r=0,o){case c:r=1;break;case p:r=1;break;case h:r=3;break;case g:r=2;break;case f:var v=e[4],y=e[5],m=j1(e[0]*e[0]+e[1]*e[1]),x=j1(e[2]*e[2]+e[3]*e[3]),_=yE(-e[1]/x,e[0]/m);t[a]*=m,t[a++]+=v,t[a]*=x,t[a++]+=y,t[a++]*=m,t[a++]*=x,t[a++]+=_,t[a++]+=_,a+=2,s=a;break;case d:u[0]=t[a++],u[1]=t[a++],fe(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[a++],u[1]+=t[a++],fe(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<r;l++){var w=vE[l];w[0]=t[a++],w[1]=t[a++],fe(w,w,e),t[s++]=w[0],t[s++]=w[1]}}n.increaseVersion()}}var Ed=Math.sqrt,Nu=Math.sin,Eu=Math.cos,fs=Math.PI;function K1(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Od(n,e){return(n[0]*e[0]+n[1]*e[1])/(K1(n)*K1(e))}function $1(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(Od(n,e))}function Q1(n,e,t,i,o,r,a,s,l,u,c){var h=l*(fs/180),p=Eu(h)*(n-t)/2+Nu(h)*(e-i)/2,d=-1*Nu(h)*(n-t)/2+Eu(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=Ed(f),s*=Ed(f));var g=(o===r?-1:1)*Ed((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,y=g*-s*p/a,m=(n+t)/2+Eu(h)*v-Nu(h)*y,x=(e+i)/2+Nu(h)*v+Eu(h)*y,_=$1([1,0],[(p-v)/a,(d-y)/s]),w=[(p-v)/a,(d-y)/s],b=[(-1*p-v)/a,(-1*d-y)/s],S=$1(w,b);if(Od(w,b)<=-1&&(S=fs),Od(w,b)>=1&&(S=0),S<0){var M=Math.round(S/fs*1e6)/1e6;S=fs*2+M%2*fs}c.addData(u,m,x,a,s,_,S,h,r)}var mE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _E(n){var e=new Zn;if(!n)return e;var t=0,i=0,o=t,r=i,a,s=Zn.CMD,l=n.match(mE);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(xE)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,M=t,D=i,T=void 0,I=void 0;switch(h){case"l":t+=d[v++],i+=d[v++],p=s.L,e.addData(p,t,i);break;case"L":t=d[v++],i=d[v++],p=s.L,e.addData(p,t,i);break;case"m":t+=d[v++],i+=d[v++],p=s.M,e.addData(p,t,i),o=t,r=i,h="l";break;case"M":t=d[v++],i=d[v++],p=s.M,e.addData(p,t,i),o=t,r=i,h="L";break;case"h":t+=d[v++],p=s.L,e.addData(p,t,i);break;case"H":t=d[v++],p=s.L,e.addData(p,t,i);break;case"v":i+=d[v++],p=s.L,e.addData(p,t,i);break;case"V":i=d[v++],p=s.L,e.addData(p,t,i);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),t=d[v-2],i=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+t,d[v++]+i,d[v++]+t,d[v++]+i,d[v++]+t,d[v++]+i),t+=d[v-2],i+=d[v-1];break;case"S":y=t,m=i,T=e.len(),I=e.data,a===s.C&&(y+=t-I[T-4],m+=i-I[T-3]),p=s.C,M=d[v++],D=d[v++],t=d[v++],i=d[v++],e.addData(p,y,m,M,D,t,i);break;case"s":y=t,m=i,T=e.len(),I=e.data,a===s.C&&(y+=t-I[T-4],m+=i-I[T-3]),p=s.C,M=t+d[v++],D=i+d[v++],t+=d[v++],i+=d[v++],e.addData(p,y,m,M,D,t,i);break;case"Q":M=d[v++],D=d[v++],t=d[v++],i=d[v++],p=s.Q,e.addData(p,M,D,t,i);break;case"q":M=d[v++]+t,D=d[v++]+i,t+=d[v++],i+=d[v++],p=s.Q,e.addData(p,M,D,t,i);break;case"T":y=t,m=i,T=e.len(),I=e.data,a===s.Q&&(y+=t-I[T-4],m+=i-I[T-3]),t=d[v++],i=d[v++],p=s.Q,e.addData(p,y,m,t,i);break;case"t":y=t,m=i,T=e.len(),I=e.data,a===s.Q&&(y+=t-I[T-4],m+=i-I[T-3]),t+=d[v++],i+=d[v++],p=s.Q,e.addData(p,y,m,t,i);break;case"A":x=d[v++],_=d[v++],w=d[v++],b=d[v++],S=d[v++],M=t,D=i,t=d[v++],i=d[v++],p=s.A,Q1(M,D,t,i,b,S,x,_,w,p,e);break;case"a":x=d[v++],_=d[v++],w=d[v++],b=d[v++],S=d[v++],M=t,D=i,t+=d[v++],i+=d[v++],p=s.A,Q1(M,D,t,i,b,S,x,_,w,p,e);break}}(h==="z"||h==="Z")&&(p=s.Z,e.addData(p),t=o,i=r),a=p}return e.toStatic(),e}var J1=function(n){Ft(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(xt);function tx(n){return n.setData!=null}function ex(n,e){var t=_E(n),i=z({},e);return i.buildPath=function(o){if(tx(o)){o.setData(t.data);var r=o.getContext();r&&o.rebuildPath(r,1)}else{var r=o;t.rebuildPath(r,1)}},i.applyTransform=function(o){q1(t,o),this.dirtyShape()},i}function nx(n,e){return new J1(ex(n,e))}function bE(n,e){var t=ex(n,e),i=function(o){Ft(r,o);function r(a){var s=o.call(this,a)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return r}(J1);return i}function wE(n,e){for(var t=[],i=n.length,o=0;o<i;o++){var r=n[o];t.push(r.getUpdatedPathProxy(!0))}var a=new xt(e);return a.createPathProxy(),a.buildPath=function(s){if(tx(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function Pd(n,e){e=e||{};var t=new xt;return n.shape&&t.setShape(n.shape),t.setStyle(n.style),e.bakeTransform?q1(t.path,n.getComputedTransform()):e.toLocal?t.setLocalTransform(n.getComputedTransform()):t.copyTransform(n),t.buildPath=n.buildPath,t.applyTransform=t.applyTransform,t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t}var SE=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),ix=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new SE},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}(xt);ix.prototype.type="circle";const jn=ix;var ME=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),ox=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ME},e.prototype.buildPath=function(t,i){var o=.5522848,r=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*o,c=l*o;t.moveTo(r-s,a),t.bezierCurveTo(r-s,a-c,r-u,a-l,r,a-l),t.bezierCurveTo(r+u,a-l,r+s,a-c,r+s,a),t.bezierCurveTo(r+s,a+c,r+u,a+l,r,a+l),t.bezierCurveTo(r-u,a+l,r-s,a+c,r-s,a),t.closePath()},e}(xt);ox.prototype.type="ellipse";const Rd=ox;var rx=Math.PI,Vd=rx*2,Ho=Math.sin,Zr=Math.cos,IE=Math.acos,Se=Math.atan2,ax=Math.abs,gs=Math.sqrt,vs=Math.max,qn=Math.min,Cn=1e-4;function DE(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,c=a-o,h=s-r,p=h*l-c*u;if(!(p*p<Cn))return p=(c*(e-r)-h*(n-o))/p,[n+p*l,e+p*u]}function Ou(n,e,t,i,o,r,a){var s=n-t,l=e-i,u=(a?r:-r)/gs(s*s+l*l),c=u*l,h=-u*s,p=n+c,d=e+h,f=t+c,g=i+h,v=(p+f)/2,y=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,w=o-r,b=p*g-f*d,S=(x<0?-1:1)*gs(vs(0,w*w*_-b*b)),M=(b*x-m*S)/_,D=(-b*m-x*S)/_,T=(b*x+m*S)/_,I=(-b*m+x*S)/_,A=M-v,k=D-y,L=T-v,N=I-y;return A*A+k*k>L*L+N*N&&(M=T,D=I),{cx:M,cy:D,x0:-c,y0:-h,x1:M*(o/w-1),y1:D*(o/w-1)}}function TE(n){var e;if(G(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function CE(n,e){var t,i=vs(e.r,0),o=vs(e.r0||0,0),r=i>0,a=o>0;if(!(!r&&!a)){if(r||(i=o,o=0),o>i){var s=i;i=o,o=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,p=!!e.clockwise,d=ax(u-l),f=d>Vd&&d%Vd;if(f>Cn&&(d=f),!(i>Cn))n.moveTo(c,h);else if(d>Vd-Cn)n.moveTo(c+i*Zr(l),h+i*Ho(l)),n.arc(c,h,i,l,u,!p),o>Cn&&(n.moveTo(c+o*Zr(u),h+o*Ho(u)),n.arc(c,h,o,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,M=void 0,D=void 0,T=void 0,I=void 0,A=void 0,k=void 0,L=void 0,N=i*Zr(l),E=i*Ho(l),P=o*Zr(u),O=o*Ho(u),V=d>Cn;if(V){var F=e.cornerRadius;F&&(t=TE(F),g=t[0],v=t[1],y=t[2],m=t[3]);var B=ax(i-o)/2;if(x=qn(B,y),_=qn(B,m),w=qn(B,g),b=qn(B,v),D=S=vs(x,_),T=M=vs(w,b),(S>Cn||M>Cn)&&(I=i*Zr(u),A=i*Ho(u),k=o*Zr(l),L=o*Ho(l),d<rx)){var Y=DE(N,E,k,L,I,A,P,O);if(Y){var $=N-Y[0],j=E-Y[1],ft=I-Y[0],ut=A-Y[1],gt=1/Ho(IE(($*ft+j*ut)/(gs($*$+j*j)*gs(ft*ft+ut*ut)))/2),J=gs(Y[0]*Y[0]+Y[1]*Y[1]);D=qn(S,(i-J)/(gt+1)),T=qn(M,(o-J)/(gt-1))}}}if(!V)n.moveTo(c+N,h+E);else if(D>Cn){var vt=qn(y,D),rt=qn(m,D),q=Ou(k,L,N,E,i,vt,p),at=Ou(I,A,P,O,i,rt,p);n.moveTo(c+q.cx+q.x0,h+q.cy+q.y0),D<S&&vt===rt?n.arc(c+q.cx,h+q.cy,D,Se(q.y0,q.x0),Se(at.y0,at.x0),!p):(vt>0&&n.arc(c+q.cx,h+q.cy,vt,Se(q.y0,q.x0),Se(q.y1,q.x1),!p),n.arc(c,h,i,Se(q.cy+q.y1,q.cx+q.x1),Se(at.cy+at.y1,at.cx+at.x1),!p),rt>0&&n.arc(c+at.cx,h+at.cy,rt,Se(at.y1,at.x1),Se(at.y0,at.x0),!p))}else n.moveTo(c+N,h+E),n.arc(c,h,i,l,u,!p);if(!(o>Cn)||!V)n.lineTo(c+P,h+O);else if(T>Cn){var vt=qn(g,T),rt=qn(v,T),q=Ou(P,O,I,A,o,-rt,p),at=Ou(N,E,k,L,o,-vt,p);n.lineTo(c+q.cx+q.x0,h+q.cy+q.y0),T<M&&vt===rt?n.arc(c+q.cx,h+q.cy,T,Se(q.y0,q.x0),Se(at.y0,at.x0),!p):(rt>0&&n.arc(c+q.cx,h+q.cy,rt,Se(q.y0,q.x0),Se(q.y1,q.x1),!p),n.arc(c,h,o,Se(q.cy+q.y1,q.cx+q.x1),Se(at.cy+at.y1,at.cx+at.x1),p),vt>0&&n.arc(c+at.cx,h+at.cy,vt,Se(at.y1,at.x1),Se(at.y0,at.x0),!p))}else n.lineTo(c+P,h+O),n.arc(c,h,o,u,l,p)}n.closePath()}}}var AE=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),sx=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new AE},e.prototype.buildPath=function(t,i){CE(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(xt);sx.prototype.type="sector";const Fe=sx;var kE=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),lx=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new kE},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.PI*2;t.moveTo(o+i.r,r),t.arc(o,r,i.r,0,a,!1),t.moveTo(o+i.r0,r),t.arc(o,r,i.r0,0,a,!0)},e}(xt);lx.prototype.type="ring";const Pu=lx;function LE(n,e,t,i){var o=[],r=[],a=[],s=[],l,u,c,h;if(i){c=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,d=n.length;p<d;p++)Ni(c,c,n[p]),Ei(h,h,n[p]);Ni(c,c,i[0]),Ei(h,h,i[1])}for(var p=0,d=n.length;p<d;p++){var f=n[p];if(t)l=n[p?p-1:d-1],u=n[(p+1)%d];else if(p===0||p===d-1){o.push(ai(n[p]));continue}else l=n[p-1],u=n[p+1];yo(r,u,l),Yl(r,r,e);var g=ap(f,l),v=ap(f,u),y=g+v;y!==0&&(g/=y,v/=y),Yl(a,r,-g),Yl(s,r,v);var m=Am([],f,a),x=Am([],f,s);i&&(Ei(m,m,c),Ni(m,m,h),Ei(x,x,c),Ni(x,x,h)),o.push(m),o.push(x)}return t&&o.push(o.shift()),o}function ux(n,e,t){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var r=LE(o,i,t,e.smoothConstraint);n.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(t?a:a-1);s++){var l=r[s*2],u=r[s*2+1],c=o[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(o[0][0],o[0][1]);for(var s=1,h=o.length;s<h;s++)n.lineTo(o[s][0],o[s][1])}t&&n.closePath()}}var NE=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),cx=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new NE},e.prototype.buildPath=function(t,i){ux(t,i,!0)},e}(xt);cx.prototype.type="polygon";const Ge=cx;var EE=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),hx=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new EE},e.prototype.buildPath=function(t,i){ux(t,i,!1)},e}(xt);hx.prototype.type="polyline";const We=hx;var OE={},PE=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),px=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new PE},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=f1(OE,i,this.style);o=l.x1,r=l.y1,a=l.x2,s=l.y2}else o=i.x1,r=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(o,r),u<1&&(a=o*(1-u)+a*u,s=r*(1-u)+s*u),t.lineTo(a,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}(xt);px.prototype.type="line";const de=px;var He=[],RE=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function dx(n,e,t){var i=n.cpx2,o=n.cpy2;return i!=null||o!=null?[(t?Km:le)(n.x1,n.cpx1,n.cpx2,n.x2,e),(t?Km:le)(n.y1,n.cpy1,n.cpy2,n.y2,e)]:[(t?wp:pe)(n.x1,n.cpx1,n.x2,e),(t?wp:pe)(n.y1,n.cpy1,n.y2,e)]}var fx=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RE},e.prototype.buildPath=function(t,i){var o=i.x1,r=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,c=i.cpx2,h=i.cpy2,p=i.percent;p!==0&&(t.moveTo(o,r),c==null||h==null?(p<1&&(Za(o,l,a,p,He),l=He[1],a=He[2],Za(r,u,s,p,He),u=He[1],s=He[2]),t.quadraticCurveTo(l,u,a,s)):(p<1&&(Ri(o,l,c,a,p,He),l=He[1],c=He[2],a=He[3],Ri(r,u,h,s,p,He),u=He[1],h=He[2],s=He[3]),t.bezierCurveTo(l,u,c,h,a,s)))},e.prototype.pointAt=function(t){return dx(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=dx(this.shape,t,!0);return Lr(i,i)},e}(xt);fx.prototype.type="bezier-curve";const Ru=fx;var VE=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),gx=function(n){Ft(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VE},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,c=Math.cos(s),h=Math.sin(s);t.moveTo(c*a+o,h*a+r),t.arc(o,r,a,s,l,!u)},e}(xt);gx.prototype.type="arc";const zd=gx;var zE=function(n){Ft(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),o=0;o<t.length;o++)i=i||t[o].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),o=0;o<t.length;o++)t[o].path||t[o].createPathProxy(),t[o].path.setScale(i[0],i[1],t[o].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var o=i.paths||[],r=0;r<o.length;r++)o[r].buildPath(t,o[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),xt.prototype.getBoundingRect.call(this)},e}(xt);const Bd=zE;var BE=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},n}();const vx=BE;var FE=function(n){Ft(e,n);function e(t,i,o,r,a,s){var l=n.call(this,a)||this;return l.x=t??0,l.y=i??0,l.x2=o??1,l.y2=r??0,l.type="linear",l.global=s||!1,l}return e}(vx);const ys=FE;var GE=function(n){Ft(e,n);function e(t,i,o,r,a){var s=n.call(this,r)||this;return s.x=t??.5,s.y=i??.5,s.r=o??.5,s.type="radial",s.global=a||!1,s}return e}(vx);const yx=GE;var Yo=[0,0],Xo=[0,0],Vu=new ht,zu=new ht,WE=function(){function n(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ht;for(var i=0;i<2;i++)this._axes[i]=new ht;e&&this.fromBoundingRect(e,t)}return n.prototype.fromBoundingRect=function(e,t){var i=this._corners,o=this._axes,r=e.x,a=e.y,s=r+e.width,l=a+e.height;if(i[0].set(r,a),i[1].set(s,a),i[2].set(s,l),i[3].set(r,l),t)for(var u=0;u<4;u++)i[u].transform(t);ht.sub(o[0],i[1],i[0]),ht.sub(o[1],i[3],i[0]),o[0].normalize(),o[1].normalize();for(var u=0;u<2;u++)this._origin[u]=o[u].dot(i[0])},n.prototype.intersect=function(e,t){var i=!0,o=!t;return Vu.set(1/0,1/0),zu.set(0,0),!this._intersectCheckOneSide(this,e,Vu,zu,o,1)&&(i=!1,o)||!this._intersectCheckOneSide(e,this,Vu,zu,o,-1)&&(i=!1,o)||o||ht.copy(t,i?Vu:zu),i},n.prototype._intersectCheckOneSide=function(e,t,i,o,r,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Yo),this._getProjMinMaxOnAxis(l,t._corners,Xo),Yo[1]<Xo[0]||Yo[0]>Xo[1]){if(s=!1,r)return s;var c=Math.abs(Xo[0]-Yo[1]),h=Math.abs(Yo[0]-Xo[1]);Math.min(c,h)>o.len()&&(c<h?ht.scale(o,u,-c*a):ht.scale(o,u,h*a))}else if(i){var c=Math.abs(Xo[0]-Yo[1]),h=Math.abs(Yo[0]-Xo[1]);Math.min(c,h)<i.len()&&(c<h?ht.scale(i,u,c*a):ht.scale(i,u,-h*a))}}return s},n.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var o=this._axes[e],r=this._origin,a=t[0].dot(o)+r[e],s=a,l=a,u=1;u<t.length;u++){var c=t[u].dot(o)+r[e];s=Math.min(c,s),l=Math.max(c,l)}i[0]=s,i[1]=l},n}();const Bu=WE;var HE=[],YE=function(n){Ft(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var o=0;o<t.length;o++)this.addDisplayable(t[o],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new dt(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var o=this._displayables[i],r=o.getBoundingRect().clone();o.needLocalTransform()&&r.applyTransform(o.getLocalTransform(HE)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(r.contain(o[0],o[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(t,i))return!0}return!1},e}(an);const XE=YE;var mx=Mt();function jr(n,e,t,i,o){var r;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();r=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=n==="update";if(s){var u=void 0,c=void 0,h=void 0;i?(u=ct(i.duration,200),c=ct(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),r&&(r.duration!=null&&(u=r.duration),r.easing!=null&&(c=r.easing),r.delay!=null&&(h=r.delay)),Q(h)&&(h=h(t,o)),Q(u)&&(u=u(t));var p={duration:u||0,delay:h,easing:c};return p}else return null}function Fd(n,e,t,i,o,r,a){var s=!1,l;Q(o)?(a=r,r=o,o=null):tt(o)&&(r=o.cb,a=o.during,s=o.isFrom,l=o.removeOpt,o=o.dataIndex);var u=n==="leave";u||e.stopAnimation("leave");var c=jr(n,i,o,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(c&&c.duration>0){var h=c.duration,p=c.delay,d=c.easing,f={duration:h,delay:p||0,easing:d,done:r,force:!!r||!!a,setToFinal:!u,scope:n,during:a};s?e.animateFrom(t,f):e.animateTo(t,f)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),r&&r()}function Ct(n,e,t,i,o,r){Fd("update",n,e,t,i,o,r)}function Yt(n,e,t,i,o,r){Fd("enter",n,e,t,i,o,r)}function qr(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var t=n.animators[e];if(t.scope==="leave")return!0}return!1}function Yi(n,e,t,i,o,r){qr(n)||Fd("leave",n,e,t,i,o,r)}function xx(n,e,t,i){n.removeTextContent(),n.removeTextGuideLine(),Yi(n,{style:{opacity:0}},e,t,i)}function ms(n,e,t){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(o){o.isGroup||xx(o,e,t,i)}):xx(n,e,t,i)}function An(n){mx(n).oldStyle=n.style}function UE(n){return mx(n).oldStyle}var Fu=Math.max,Gu=Math.min,Gd={};function ZE(n){return xt.extend(n)}var jE=bE;function qE(n,e){return jE(n,e)}function kn(n,e){Gd[n]=e}function Wd(n){if(Gd.hasOwnProperty(n))return Gd[n]}function Wu(n,e,t,i){var o=nx(n,e);return t&&(i==="center"&&(t=bx(t,o.getBoundingRect())),Sx(o,t)),o}function _x(n,e,t){var i=new ge({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(o){if(t==="center"){var r={width:o.width,height:o.height};i.setStyle(bx(e,r))}}});return i}function bx(n,e){var t=e.width/e.height,i=n.height*t,o;i<=n.width?o=n.height:(i=n.width,o=i/t);var r=n.x+n.width/2,a=n.y+n.height/2;return{x:r-i/2,y:a-o/2,width:i,height:o}}var ln=wE;function Sx(n,e){if(n.applyTransform){var t=n.getBoundingRect(),i=t.calculateTransform(e);n.applyTransform(i)}}function Kr(n,e){return f1(n,n,{lineWidth:e}),n}function KE(n){return g1(n.shape,n.shape,n.style),n}var Hu=zo;function Uo(n,e){for(var t=Ul([]);n&&n!==e;)li(t,n.getLocalTransform(),t),n=n.parent;return t}function Ln(n,e,t){return e&&!be(e)&&(e=hi.getLocalTransform(e)),t&&(e=Er([],e)),fe([],n,e)}function Yu(n,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),o=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),r=[n==="left"?-i:n==="right"?i:0,n==="top"?-o:n==="bottom"?o:0];return r=Ln(r,e,t),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function Mx(n){return!n.isGroup}function $E(n){return n.shape!=null}function xs(n,e,t){if(!n||!e)return;function i(a){var s={};return a.traverse(function(l){Mx(l)&&l.anid&&(s[l.anid]=l)}),s}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return $E(a)&&(s.shape=z({},a.shape)),s}var r=i(n);e.traverse(function(a){if(Mx(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),Ct(a,l,t,st(a).dataIndex)}}})}function Ix(n,e){return W(n,function(t){var i=t[0];i=Fu(i,e.x),i=Gu(i,e.x+e.width);var o=t[1];return o=Fu(o,e.y),o=Gu(o,e.y+e.height),[i,o]})}function QE(n,e){var t=Fu(n.x,e.x),i=Gu(n.x+n.width,e.x+e.width),o=Fu(n.y,e.y),r=Gu(n.y+n.height,e.y+e.height);if(i>=t&&r>=o)return{x:t,y:o,width:i-t,height:r-o}}function _s(n,e,t){var i=z({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(o.image=n.slice(8),nt(o,t),new ge(i)):Wu(n.replace("path://",""),i,t,"center")}function bs(n,e,t,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Dx(n,e,t,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Dx(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,c=a-o,h=s-r,p=Hd(c,h,l,u);if(JE(p))return!1;var d=n-o,f=e-r,g=Hd(d,f,l,u)/p;if(g<0||g>1)return!1;var v=Hd(d,f,c,h)/p;return!(v<0||v>1)}function Hd(n,e,t,i){return n*i-t*e}function JE(n){return n<=1e-6&&n>=-1e-6}function $r(n){var e=n.itemTooltipOption,t=n.componentModel,i=n.itemName,o=X(e)?{formatter:e}:e,r=t.mainType,a=t.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=n.formatterParamsExtra;l&&C(_t(l),function(c){U(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=st(n.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:i,option:nt({content:i,formatterParams:s},o)}}function Tx(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Xi(n,e){if(n)if(G(n))for(var t=0;t<n.length;t++)Tx(n[t],e);else Tx(n,e)}kn("circle",jn),kn("ellipse",Rd),kn("sector",Fe),kn("ring",Pu),kn("polygon",Ge),kn("polyline",We),kn("rect",It),kn("line",de),kn("bezierCurve",Ru),kn("arc",zd);const ws=Object.freeze(Object.defineProperty({__proto__:null,Arc:zd,BezierCurve:Ru,BoundingRect:dt,Circle:jn,CompoundPath:Bd,Ellipse:Rd,Group:ot,Image:ge,IncrementalDisplayable:XE,Line:de,LinearGradient:ys,OrientedBoundingRect:Bu,Path:xt,Point:ht,Polygon:Ge,Polyline:We,RadialGradient:yx,Rect:It,Ring:Pu,Sector:Fe,Text:Tt,applyTransform:Ln,clipPointsByRect:Ix,clipRectByRect:QE,createIcon:_s,extendPath:qE,extendShape:ZE,getShapeClass:Wd,getTransform:Uo,groupTransition:xs,initProps:Yt,isElementRemoved:qr,lineLineIntersect:Dx,linePolygonIntersect:bs,makeImage:_x,makePath:Wu,mergePath:ln,registerShape:kn,removeElement:Yi,removeElementWithFadeOut:ms,resizePath:Sx,setTooltipConfig:$r,subPixelOptimize:Hu,subPixelOptimizeLine:Kr,subPixelOptimizeRect:KE,transformDirection:Yu,traverseElements:Xi,updateProps:Ct},Symbol.toStringTag,{value:"Module"}));var Xu={};function Cx(n,e){for(var t=0;t<ke.length;t++){var i=ke[t],o=e[i],r=n.ensureState(i);r.style=r.style||{},r.style.text=o}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(a,!0)}function Yd(n,e,t){var i=n.labelFetcher,o=n.labelDataIndex,r=n.labelDimIndex,a=e.normal,s;i&&(s=i.getFormattedLabel(o,"normal",null,r,a&&a.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Q(n.defaultText)?n.defaultText(o,n,t):n.defaultText);for(var l={normal:s},u=0;u<ke.length;u++){var c=ke[u],h=e[c];l[c]=ct(i?i.getFormattedLabel(o,c,null,r,h&&h.get("formatter")):null,s)}return l}function ye(n,e,t,i){t=t||Xu;for(var o=n instanceof Tt,r=!1,a=0;a<hs.length;a++){var s=e[hs[a]];if(s&&s.getShallow("show")){r=!0;break}}var l=o?n:n.getTextContent();if(r){o||(l||(l=new Tt,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var u=Yd(t,e),c=e.normal,h=!!c.getShallow("show"),p=Rt(c,i&&i.normal,t,!1,!o);p.text=u.normal,o||n.setTextConfig(Uu(c,t,!1));for(var a=0;a<ke.length;a++){var d=ke[a],s=e[d];if(s){var f=l.ensureState(d),g=!!ct(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=Rt(s,i&&i[d],t,!0,!o),f.style.text=u[d],!o){var v=n.ensureState(d);v.textConfig=Uu(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),t.enableTextSetter&&(Qr(l).setLabelText=function(y){var m=Yd(t,e,y);Cx(l,m)})}else l&&(l.ignore=!0);n.dirty()}function ue(n,e){e=e||"label";for(var t={normal:n.getModel(e)},i=0;i<ke.length;i++){var o=ke[i];t[o]=n.getModel([o,e])}return t}function Rt(n,e,t,i,o){var r={};return tO(r,n,t,i,o),e&&z(r,e),r}function Uu(n,e,t){e=e||{};var i={},o,r=n.getShallow("rotate"),a=ct(n.getShallow("distance"),t?null:5),s=n.getShallow("offset");return o=n.getShallow("position")||(t?null:"inside"),o==="outside"&&(o=e.defaultOutsidePosition||"top"),o!=null&&(i.position=o),s!=null&&(i.offset=s),r!=null&&(r*=Math.PI/180,i.rotation=r),a!=null&&(i.distance=a),i.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",i}function tO(n,e,t,i,o){t=t||Xu;var r=e.ecModel,a=r&&r.option.textStyle,s=eO(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Nx(l[u]={},c,a,t,i,o,!1,!0)}}l&&(n.rich=l);var h=e.get("overflow");h&&(n.overflow=h);var p=e.get("minMargin");p!=null&&(n.margin=p),Nx(n,e,a,t,i,o,!0,!1)}function eO(n){for(var e;n&&n!==n.ecModel;){var t=(n.option||Xu).rich;if(t){e=e||{};for(var i=_t(t),o=0;o<i.length;o++){var r=i[o];e[r]=1}}n=n.parentModel}return e}var Ax=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],kx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Lx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Nx(n,e,t,i,o,r,a,s){t=!o&&t||Xu;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=ct(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&ee("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ee("color: 'auto'","color: 'inherit'"),l?c=l:c=null),r||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(n.fill=u),c!=null&&(n.stroke=c);var p=ct(e.getShallow("textBorderWidth"),t.textBorderWidth);p!=null&&(n.lineWidth=p);var d=ct(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(n.lineDash=d);var f=ct(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);f!=null&&(n.lineDashOffset=f),!o&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(n.opacity=h),!o&&!r&&n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var g=0;g<Ax.length;g++){var v=Ax[g],y=ct(e.getShallow(v),t[v]);y!=null&&(n[v]=y)}for(var g=0;g<kx.length;g++){var v=kx[g],y=e.getShallow(v);y!=null&&(n[v]=y)}if(n.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(n.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<Lx.length;g++){var v=Lx[g],y=e.getShallow(v);y!=null&&(n[v]=y)}var x=e.getShallow("borderType");x!=null&&(n.borderDash=x),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&n.backgroundColor==="auto"&&ee("backgroundColor: 'auto'","backgroundColor: 'inherit'"),n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&n.borderColor==="auto"&&ee("borderColor: 'auto'","borderColor: 'inherit'"),n.borderColor=l)}}function Ex(n,e){var t=e&&e.getModel("textStyle");return wn([n.fontStyle||t&&t.getShallow("fontStyle")||"",n.fontWeight||t&&t.getShallow("fontWeight")||"",(n.fontSize||t&&t.getShallow("fontSize")||12)+"px",n.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Qr=Mt();function Ox(n,e,t,i){if(n){var o=Qr(n);o.prevValue=o.value,o.value=t;var r=e.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=e)}}function Px(n,e,t,i,o){var r=Qr(n);if(!r.valueAnimation||r.prevValue===r.value)return;var a=r.defaultInterpolatedText,s=ct(r.interpolatedValue,r.prevValue),l=r.value;function u(c){var h=K0(t,r.precision,s,l,c);r.interpolatedValue=c===1?null:h;var p=Yd({labelDataIndex:e,labelFetcher:o,defaultText:a?a(h):h+""},r.statesModels,h);Cx(n,p)}n.percent=0,(r.prevValue==null?Yt:Ct)(n,{percent:1},i,e,null,u)}var nO=["textStyle","color"],Xd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ud=new Tt,iO=function(){function n(){}return n.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(nO):null)},n.prototype.getFont=function(){return Ex({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Xd.length;i++)t[Xd[i]]=this.getShallow(Xd[i]);return Ud.useStyle(t),Ud.update(),Ud.getBoundingRect()},n}();const oO=iO;var Rx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],rO=ko(Rx),aO=function(){function n(){}return n.prototype.getLineStyle=function(e){return rO(this,e)},n}(),Vx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sO=ko(Vx),lO=function(){function n(){}return n.prototype.getItemStyle=function(e,t){return sO(this,e,t)},n}(),Zo=function(){function n(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return n.prototype.init=function(e,t,i){},n.prototype.mergeOption=function(e,t){pt(this.option,e,!0)},n.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},n.prototype.getShallow=function(e,t){var i=this.option,o=i==null?i:i[e];if(o==null&&!t){var r=this.parentModel;r&&(o=r.getShallow(e))}return o},n.prototype.getModel=function(e,t){var i=e!=null,o=i?this.parsePath(e):null,r=i?this._doGet(o):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new n(r,t,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(it(this.option))},n.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!St.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var o=0;o<e.length&&!(e[o]&&(i=i&&typeof i=="object"?i[e[o]]:null,i==null));o++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},n}();rd(Zo),lN(Zo),Jt(Zo,aO),Jt(Zo,lO),Jt(Zo,dN),Jt(Zo,oO);const Vt=Zo;var uO=Math.round(Math.random()*10);function Jr(n){return[n||"",uO++].join("_")}function cO(n){var e={};n.registerSubTypeDefaulter=function(t,i){var o=Hn(t);e[o.main]=i},n.determineSubType=function(t,i){var o=i.type;if(!o){var r=Hn(t).main;n.hasSubTypes(t)&&e[r]&&(o=e[r](i))}return o}}function hO(n,e){n.topologicalTravel=function(r,a,s,l){if(!r.length)return;var u=t(a),c=u.graph,h=u.noEntryList,p={};for(C(r,function(m){p[m]=!0});h.length;){var d=h.pop(),f=c[d],g=!!p[d];g&&(s.call(l,d,f.originalDeps.slice()),delete p[d]),C(f.successor,g?y:v)}C(p,function(){var m="";throw process.env.NODE_ENV!=="production"&&(m=Ce("Circular dependency may exists: ",p,r,a)),new Error(m)});function v(m){c[m].entryCount--,c[m].entryCount===0&&h.push(m)}function y(m){p[m]=!0,v(m)}};function t(r){var a={},s=[];return C(r,function(l){var u=i(a,l),c=u.originalDeps=e(l),h=o(c,r);u.entryCount=h.length,u.entryCount===0&&s.push(l),C(h,function(p){yt(u.predecessor,p)<0&&u.predecessor.push(p);var d=i(a,p);yt(d.successor,p)<0&&d.successor.push(l)})}),{graph:a,noEntryList:s}}function i(r,a){return r[a]||(r[a]={predecessor:[],successor:[]}),r[a]}function o(r,a){var s=[];return C(r,function(l){yt(a,l)>=0&&s.push(l)}),s}}function Ui(n,e){return pt(pt({},n,!0),e,!0)}const pO={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"}},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:". "}}}},dO={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"}},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 Zu="ZH",Zd="EN",Ss=Zd,ju={},jd={},zx=St.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(Zu)>-1?Zu:Ss}():Ss;function Bx(n,e){n=n.toUpperCase(),jd[n]=new Vt(e),ju[n]=e}function fO(n){if(X(n)){var e=ju[n.toUpperCase()]||{};return n===Zu||n===Zd?it(e):pt(it(e),it(ju[Ss]),!1)}else return pt(it(n),it(ju[Ss]),!1)}function qd(n){return jd[n]}function gO(){return jd[Ss]}Bx(Zd,pO),Bx(Zu,dO);var Kd=1e3,$d=Kd*60,Ms=$d*60,un=Ms*24,Fx=un*365,Is={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}"},qu="{yyyy}-{MM}-{dd}",Gx={year:"{yyyy}",month:"{yyyy}-{MM}",day:qu,hour:qu+" "+Is.hour,minute:qu+" "+Is.minute,second:qu+" "+Is.second,millisecond:Is.none},Qd=["year","month","day","hour","minute","second","millisecond"],Wx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Zi(n,e){return n+="","0000".substr(0,e-n.length)+n}function ta(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 vO(n){return n===ta(n)}function yO(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ku(n,e,t,i){var o=Wn(n),r=o[Jd(t)](),a=o[ea(t)]()+1,s=Math.floor((a-1)/3)+1,l=o[$u(t)](),u=o["get"+(t?"UTC":"")+"Day"](),c=o[Ds(t)](),h=(c-1)%12+1,p=o[Qu(t)](),d=o[Ju(t)](),f=o[tc(t)](),g=i instanceof Vt?i:qd(i||zx)||gO(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,Zi(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Zi(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Zi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Zi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Zi(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Zi(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Zi(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Zi(f,3)).replace(/{S}/g,f+"")}function mO(n,e,t,i,o){var r=null;if(X(t))r=t;else if(Q(t))r=t(n.value,e,{level:n.level});else{var a=z({},Is);if(n.level>0)for(var s=0;s<Qd.length;++s)a[Qd[s]]="{primary|"+a[Qd[s]]+"}";var l=t?t.inherit===!1?t:nt(t,a):a,u=Hx(n.value,o);if(l[u])r=l[u];else if(l.inherit){for(var c=Wx.indexOf(u),s=c-1;s>=0;--s)if(l[u]){r=l[u];break}r=r||a.none}if(G(r)){var h=n.level==null?0:n.level>=0?n.level:r.length+n.level;h=Math.min(h,r.length-1),r=r[h]}}return Ku(new Date(n.value),r,o,i)}function Hx(n,e){var t=Wn(n),i=t[ea(e)]()+1,o=t[$u(e)](),r=t[Ds(e)](),a=t[Qu(e)](),s=t[Ju(e)](),l=t[tc(e)](),u=l===0,c=u&&s===0,h=c&&a===0,p=h&&r===0,d=p&&o===1,f=d&&i===1;return f?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Yx(n,e,t){var i=Dt(n)?Wn(n):n;switch(e=e||Hx(n,t),e){case"year":return i[Jd(t)]();case"half-year":return i[ea(t)]()>=6?1:0;case"quarter":return Math.floor((i[ea(t)]()+1)/4);case"month":return i[ea(t)]();case"day":return i[$u(t)]();case"half-day":return i[Ds(t)]()/24;case"hour":return i[Ds(t)]();case"minute":return i[Qu(t)]();case"second":return i[Ju(t)]();case"millisecond":return i[tc(t)]()}}function Jd(n){return n?"getUTCFullYear":"getFullYear"}function ea(n){return n?"getUTCMonth":"getMonth"}function $u(n){return n?"getUTCDate":"getDate"}function Ds(n){return n?"getUTCHours":"getHours"}function Qu(n){return n?"getUTCMinutes":"getMinutes"}function Ju(n){return n?"getUTCSeconds":"getSeconds"}function tc(n){return n?"getUTCMilliseconds":"getMilliseconds"}function xO(n){return n?"setUTCFullYear":"setFullYear"}function Xx(n){return n?"setUTCMonth":"setMonth"}function Ux(n){return n?"setUTCDate":"setDate"}function Zx(n){return n?"setUTCHours":"setHours"}function jx(n){return n?"setUTCMinutes":"setMinutes"}function qx(n){return n?"setUTCSeconds":"setSeconds"}function Kx(n){return n?"setUTCMilliseconds":"setMilliseconds"}function $x(n){if(!ed(n))return X(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Qx(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var na=np;function tf(n,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(c){return c&&wn(c)?c:"-"}function r(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=e==="time",s=n instanceof Date;if(a||s){var l=a?Wn(n):n;if(isNaN(+l)){if(s)return"-"}else return Ku(l,i,t)}if(e==="ordinal")return zl(n)?o(n):Dt(n)&&r(n)?n+"":"-";var u=pi(n);return r(u)?$x(u):zl(n)?o(n):typeof n=="boolean"?n+"":"-"}var Jx=["a","b","c","d","e","f","g"],ef=function(n,e){return"{"+n+(e??"")+"}"};function t_(n,e,t){G(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Jx[r];n=n.replace(ef(a),ef(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];n=n.replace(ef(Jx[l],s),t?Ve(u):u)}return n}function _O(n,e,t){return C(e,function(i,o){n=n.replace("{"+o+"}",t?Ve(i):i)}),n}function bO(n,e){var t=X(n)?{color:n,extraCssText:e}:n||{},i=t.color,o=t.type;e=t.extraCssText;var r=t.renderMode||"html";if(!i)return"";if(r==="html")return o==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ve(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ve(i)+";"+(e||"")+'"></span>';var a=t.markerId||"markerX";return{renderMode:r,content:"{"+a+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function jo(n,e){return e=e||"transparent",X(n)?n:tt(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function ec(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var nc=C,e_=["left","right","top","bottom","width","height"],qo=[["width","left","right"],["height","top","bottom"]];function nf(n,e,t,i,o){var r=0,a=0;i==null&&(i=1/0),o==null&&(o=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),p=h&&h.getBoundingRect(),d,f;if(n==="horizontal"){var g=c.width+(p?-p.x+c.x:0);d=r+g,d>i||l.newline?(r=0,d=g,a+=s+t,s=c.height):s=Math.max(s,c.height)}else{var v=c.height+(p?-p.y+c.y:0);f=a+v,f>o||l.newline?(r+=s+t,a=0,f=v,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),n==="horizontal"?r=d+t:a=f+t)})}var Ko=nf;lt(nf,"vertical"),lt(nf,"horizontal");function wO(n,e,t){var i=e.width,o=e.height,r=H(n.left,i),a=H(n.top,o),s=H(n.right,i),l=H(n.bottom,o);return(isNaN(r)||isNaN(parseFloat(n.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(n.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=o),t=na(t||0),{width:Math.max(s-r-t[1]-t[3],0),height:Math.max(l-a-t[0]-t[2],0)}}function ae(n,e,t){t=na(t||0);var i=e.width,o=e.height,r=H(n.left,i),a=H(n.top,o),s=H(n.right,i),l=H(n.bottom,o),u=H(n.width,i),c=H(n.height,o),h=t[2]+t[0],p=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(c)&&(c=o-l-h-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>i/o?u=i*.8:c=o*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-c-h),n.left||n.right){case"center":r=i/2-u/2-t[3];break;case"right":r=i-u-p;break}switch(n.top||n.bottom){case"middle":case"center":a=o/2-c/2-t[0];break;case"bottom":a=o-c-h;break}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(c)&&(c=o-h-a-(l||0));var f=new dt(r+t[3],a+t[0],u,c);return f.margin=t,f}function ic(n,e,t,i,o,r){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(r=r||n,r.x=n.x,r.y=n.y,!a&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new dt(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=ae(nt({width:u.width,height:u.height},e),t,i),p=a?h.x-u.x:0,d=s?h.y-u.y:0;return l==="raw"?(r.x=p,r.y=d):(r.x+=p,r.y+=d),r===n&&n.markRedraw(),!0}function SO(n,e){return n[qo[e][0]]!=null||n[qo[e][1]]!=null&&n[qo[e][2]]!=null}function Ts(n){var e=n.layoutMode||n.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function ji(n,e,t){var i=t&&t.ignoreSize;!G(i)&&(i=[i,i]);var o=a(qo[0],0),r=a(qo[1],1);u(qo[0],n,o),u(qo[1],n,r);function a(c,h){var p={},d=0,f={},g=0,v=2;if(nc(c,function(x){f[x]=n[x]}),nc(c,function(x){s(e,x)&&(p[x]=f[x]=e[x]),l(p,x)&&d++,l(f,x)&&g++}),i[h])return l(e,c[1])?f[c[2]]=null:l(e,c[2])&&(f[c[1]]=null),f;if(g===v||!d)return f;if(d>=v)return p;for(var y=0;y<c.length;y++){var m=c[y];if(!s(p,m)&&s(n,m)){p[m]=n[m];break}}return p}function s(c,h){return c.hasOwnProperty(h)}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,p){nc(c,function(d){h[d]=p[d]})}}function ia(n){return n_({},n)}function n_(n,e){return e&&n&&nc(e_,function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var MO=Mt(),oa=function(n){R(e,n);function e(t,i,o){var r=n.call(this,t,i,o)||this;return r.uid=Jr("ec_cpt_model"),r}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=Ts(this),r=o?ia(t):{},a=i.getTheme();pt(t,a.get(this.mainType)),pt(t,this.getDefaultOption()),o&&ji(t,r,o)},e.prototype.mergeOption=function(t,i){pt(this.option,t,!0);var o=Ts(this);o&&ji(this.option,t,o)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!rN(t))return t.defaultOption;var i=MO(this);if(!i.defaultOption){for(var o=[],r=t;r;){var a=r.prototype.defaultOption;a&&o.push(a),r=r.superClass}for(var s={},l=o.length-1;l>=0;l--)s=pt(s,o[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var o=t+"Index",r=t+"Id";return as(this.ecModel,t,{index:this.get(o,!0),id:this.get(r,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Vt);Q0(oa,Vt),xu(oa),cO(oa),hO(oa,IO);function IO(n){var e=[];return C(oa.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=W(e,function(t){return Hn(t).main}),n!=="dataset"&&yt(e,"dataset")<=0&&e.unshift("dataset"),e}const wt=oa;var i_="";typeof navigator<"u"&&(i_=navigator.platform||"");var ra="rgba(0, 0, 0, 0.2)";const DO={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ra,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ra,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ra,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ra,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ra,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ra,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:i_.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 of=K(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),cn="original",Me="arrayRows",hn="objectRows",Kn="keyedColumns",mi="typedArray",o_="unknown",$n="column",aa="row",me={Must:1,Might:2,Not:3},r_=Mt();function TO(n){r_(n).datasetMap=K()}function a_(n,e,t){var i={},o=af(e);if(!o||!n)return i;var r=[],a=[],s=e.ecModel,l=r_(s).datasetMap,u=o.uid+"_"+t.seriesLayoutBy,c,h;n=n.slice(),C(n,function(g,v){var y=tt(g)?g:n[v]={name:g};y.type==="ordinal"&&c==null&&(c=v,h=f(y)),i[y.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(n,function(g,v){var y=g.name,m=f(g);if(c==null){var x=p.valueWayDim;d(i[y],x,m),d(a,x,m),p.valueWayDim+=m}else if(c===v)d(i[y],0,m),d(r,0,m);else{var x=p.categoryWayDim;d(i[y],x,m),d(a,x,m),p.categoryWayDim+=m}});function d(g,v,y){for(var m=0;m<y;m++)g.push(v+m)}function f(g){var v=g.dimsDef;return v?v.length:1}return r.length&&(i.itemName=r),a.length&&(i.seriesName=a),i}function rf(n,e,t){var i={},o=af(n);if(!o)return i;var r=e.sourceFormat,a=e.dimensionsDefine,s;(r===hn||r===Kn)&&C(a,function(c,h){(tt(c)?c.name:c)==="name"&&(s=h)});var l=function(){for(var c={},h={},p=[],d=0,f=Math.min(5,t);d<f;d++){var g=l_(e.data,r,e.seriesLayoutBy,a,e.startIndex,d);p.push(g);var v=g===me.Not;if(v&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!v&&p[c.n]===me.Not)&&(c.n=d),y(c)&&p[c.n]!==me.Not)return c;v||(g===me.Might&&h.v==null&&d!==s&&(h.v=d),(h.n==null||h.n===h.v)&&(h.n=d))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(h)?h:null}();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function af(n){var e=n.get("data",!0);if(!e)return as(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},ne).models[0]}function CO(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:as(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},ne).models}function s_(n,e){return l_(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function l_(n,e,t,i,o,r){var a,s=5;if(Re(n))return me.Not;var l,u;if(i){var c=i[r];tt(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?me.Must:me.Not;if(e===Me){var h=n;if(t===aa){for(var p=h[r],d=0;d<(p||[]).length&&d<s;d++)if((a=_(p[o+d]))!=null)return a}else for(var d=0;d<h.length&&d<s;d++){var f=h[o+d];if(f&&(a=_(f[r]))!=null)return a}}else if(e===hn){var g=n;if(!l)return me.Not;for(var d=0;d<g.length&&d<s;d++){var v=g[d];if(v&&(a=_(v[l]))!=null)return a}}else if(e===Kn){var y=n;if(!l)return me.Not;var p=y[l];if(!p||Re(p))return me.Not;for(var d=0;d<p.length&&d<s;d++)if((a=_(p[d]))!=null)return a}else if(e===cn)for(var m=n,d=0;d<m.length&&d<s;d++){var v=m[d],x=Gr(v);if(!G(x))return me.Not;if((a=_(x[r]))!=null)return a}function _(w){var b=X(w);if(w!=null&&isFinite(w)&&w!=="")return b?me.Might:me.Not;if(b&&w!=="-")return me.Must}return me.Not}var sf=K();function AO(n,e){et(sf.get(n)==null&&e),sf.set(n,e)}function kO(n,e,t){var i=sf.get(e);if(!i)return t;var o=i(n);if(!o)return t;if(process.env.NODE_ENV!=="production")for(var r=0;r<o.length;r++)et(Wr(o[r]));return t.concat(o)}var u_=Mt(),LO=Mt(),lf=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,i){var o=Nt(this.get("color",!0)),r=this.get("colorLayer",!0);return c_(this,u_,o,r,e,t,i)},n.prototype.clearColorPalette=function(){EO(this,u_)},n}();function uf(n,e,t,i){var o=Nt(n.get(["aria","decal","decals"]));return c_(n,LO,o,null,e,t,i)}function NO(n,e){for(var t=n.length,i=0;i<t;i++)if(n[i].length>e)return n[i];return n[t-1]}function c_(n,e,t,i,o,r,a){r=r||n;var s=e(r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var c=a==null||!i?t:NO(i,a);if(c=c||t,!(!c||!c.length)){var h=c[l];return o&&(u[o]=h),s.paletteIdx=(l+1)%c.length,h}}function EO(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var oc,Cs,h_,cf="\0_ec_inner",p_=1,OO={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"},PO={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"},rc={};function RO(n){C(n,function(e,t){if(!wt.hasClass(t)){var i=OO[t];i&&!rc[i]&&(we("Component "+t+` is used but not imported.
|
|
43
|
+
import { `+i+` } from 'echarts/components';
|
|
44
|
+
echarts.use([`+i+"]);"),rc[i]=!0)}})}var d_=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,i,o,r,a,s){r=r||{},this.option=null,this._theme=new Vt(r),this._locale=new Vt(a),this._optionManager=s},e.prototype.setOption=function(t,i,o){process.env.NODE_ENV!=="production"&&(et(t!=null,"option is null/undefined"),et(t[cf]!==p_,"please use chart.getOption()"));var r=v_(i);this._optionManager.setOption(t,o,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,i){return this._resetOption(t,v_(i))},e.prototype._resetOption=function(t,i){var o=!1,r=this._optionManager;if(!t||t==="recreate"){var a=r.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&RO(a),!this.option||t==="recreate"?h_(this,a):(this.restoreData(),this._mergeOption(a,i)),o=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=r.getTimelineOption(this);s&&(o=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=r.getMediaOption(this);l.length&&C(l,function(u){o=!0,this._mergeOption(u,i)},this)}return o},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var o=this.option,r=this._componentsMap,a=this._componentsCount,s=[],l=K(),u=i&&i.replaceMergeMainTypeMap;TO(this),C(t,function(h,p){h!=null&&(wt.hasClass(p)?p&&(s.push(p),l.set(p,!0)):o[p]=o[p]==null?it(h):pt(o[p],h,!0))}),u&&u.each(function(h,p){wt.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),c,this);function c(h){var p=kO(this,h,Nt(t[h])),d=r.get(h),f=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=X0(d,p,f);KL(g,h,wt),o[h]=null,r.set(h,null),a.set(h,0);var v=[],y=[],m=0,x,_;C(g,function(w,b){var S=w.existing,M=w.newOption;if(!M)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var D=h==="series",T=wt.getClass(h,w.keyInfo.subType,!D);if(!T){if(process.env.NODE_ENV!=="production"){var I=w.keyInfo.subType,A=PO[I];rc[I]||(rc[I]=!0,we(A?"Series "+I+` is used but not imported.
|
|
45
|
+
import { `+A+` } from 'echarts/charts';
|
|
46
|
+
echarts.use([`+A+"]);":"Unknown series "+I))}return}if(h==="tooltip"){if(x){process.env.NODE_ENV!=="production"&&(_||(Zt("Currently only one tooltip component is allowed."),_=!0));return}x=!0}if(S&&S.constructor===T)S.name=w.keyInfo.name,S.mergeOption(M,this),S.optionUpdated(M,!1);else{var k=z({componentIndex:b},w.keyInfo);S=new T(M,this,this,k),z(S,k),w.brandNew&&(S.__requireNewView=!0),S.init(M,this,this),S.optionUpdated(null,!0)}}S?(v.push(S.option),y.push(S),m++):(v.push(void 0),y.push(void 0))},this),o[h]=v,r.set(h,y),a.set(h,m),h==="series"&&oc(this)}this._seriesIndices||oc(this)},e.prototype.getOption=function(){var t=it(this.option);return C(t,function(i,o){if(wt.hasClass(o)){for(var r=Nt(i),a=r.length,s=!1,l=a-1;l>=0;l--)r[l]&&!Wr(r[l])?s=!0:(r[l]=null,!s&&a--);r.length=a,t[o]=r}}),delete t[cf],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var o=this._componentsMap.get(t);if(o){var r=o[i||0];if(r)return r;if(i==null){for(var a=0;a<o.length;a++)if(o[a])return o[a]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var o=t.index,r=t.id,a=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return o!=null?(l=[],C(Nt(o),function(u){s[u]&&l.push(s[u])})):r!=null?l=f_("id",r,s):a!=null?l=f_("name",a,s):l=Lt(s,function(u){return!!u}),g_(l,t)},e.prototype.findComponents=function(t){var i=t.query,o=t.mainType,r=s(i),a=r?this.queryComponents(r):Lt(this._componentsMap.get(o),function(u){return!!u});return l(g_(a,t));function s(u){var c=o+"Index",h=o+"Id",p=o+"Name";return u&&(u[c]!=null||u[h]!=null||u[p]!=null)?{mainType:o,index:u[c],id:u[h],name:u[p]}:null}function l(u){return t.filter?Lt(u,t.filter):u}},e.prototype.eachComponent=function(t,i,o){var r=this._componentsMap;if(Q(t)){var a=i,s=t;r.each(function(h,p){for(var d=0;h&&d<h.length;d++){var f=h[d];f&&s.call(a,p,f,f.componentIndex)}})}else for(var l=X(t)?r.get(t):tt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&i.call(o,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=re(t,null);return Lt(this._componentsMap.get("series"),function(o){return!!o&&i!=null&&o.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Lt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Lt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){Cs(this),C(this._seriesIndices,function(o){var r=this._componentsMap.get("series")[o];t.call(i,r,o)},this)},e.prototype.eachRawSeries=function(t,i){C(this._componentsMap.get("series"),function(o){o&&t.call(i,o,o.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,o){Cs(this),C(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];a.subType===t&&i.call(o,a,r)},this)},e.prototype.eachRawSeriesByType=function(t,i,o){return C(this.getSeriesByType(t),i,o)},e.prototype.isSeriesFiltered=function(t){return Cs(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){Cs(this);var o=[];C(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];t.call(i,a,r)&&o.push(r)},this),this._seriesIndices=o,this._seriesIndicesMap=K(o)},e.prototype.restoreData=function(t){oc(this);var i=this._componentsMap,o=[];i.each(function(r,a){wt.hasClass(a)&&o.push(a)}),wt.topologicalTravel(o,wt.getAllClassMainTypes(),function(r){C(i.get(r),function(a){a&&(r!=="series"||!VO(a,t))&&a.restoreData()})})},e.internalField=function(){oc=function(t){var i=t._seriesIndices=[];C(t._componentsMap.get("series"),function(o){o&&i.push(o.componentIndex)}),t._seriesIndicesMap=K(i)},Cs=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},h_=function(t,i){t.option={},t.option[cf]=p_,t._componentsMap=K({series:[]}),t._componentsCount=K();var o=i.aria;tt(o)&&o.enabled==null&&(o.enabled=!0),zO(i,t._theme.option),pt(i,DO,!1),t._mergeOption(i,null)}}(),e}(Vt);function VO(n,e){if(e){var t=e.seriesIndex,i=e.seriesId,o=e.seriesName;return t!=null&&n.componentIndex!==t||i!=null&&n.id!==i||o!=null&&n.name!==o}}function zO(n,e){var t=n.color&&!n.colorLayer;C(e,function(i,o){o==="colorLayer"&&t||wt.hasClass(o)||(typeof i=="object"?n[o]=n[o]?pt(n[o],i,!1):it(i):n[o]==null&&(n[o]=i))})}function f_(n,e,t){if(G(e)){var i=K();return C(e,function(r){if(r!=null){var a=re(r,null);a!=null&&i.set(r,!0)}}),Lt(t,function(r){return r&&i.get(r[n])})}else{var o=re(e,null);return Lt(t,function(r){return r&&o!=null&&r[n]===o})}}function g_(n,e){return e.hasOwnProperty("subType")?Lt(n,function(t){return t&&t.subType===e.subType}):n}function v_(n){var e=K();return n&&C(Nt(n.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&et(wt.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Jt(d_,lf);const y_=d_;var BO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],FO=function(){function n(e){C(BO,function(t){this[t]=Z(e[t],e)},this)}return n}();const m_=FO;var hf={},GO=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var i=[];C(hf,function(o,r){var a=o.create(e,t);i=i.concat(a||[])}),this._coordinateSystems=i},n.prototype.update=function(e,t){C(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){hf[e]=t},n.get=function(e){return hf[e]},n}();const sa=GO;var WO=/^(min|max)?(.+)$/,HO=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,t,i){e&&(C(Nt(e.series),function(a){a&&a.data&&Re(a.data)&&Fl(a.data)}),C(Nt(e.dataset),function(a){a&&a.source&&Re(a.source)&&Fl(a.source)})),e=it(e);var o=this._optionBackup,r=YO(e,t,!o);this._newBaseOption=r.baseOption,o?(r.timelineOptions.length&&(o.timelineOptions=r.timelineOptions),r.mediaList.length&&(o.mediaList=r.mediaList),r.mediaDefault&&(o.mediaDefault=r.mediaDefault)):this._optionBackup=r},n.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],it(e?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var o=e.getComponent("timeline");o&&(t=it(i[o.getCurrentIndex()]))}return t},n.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,r=this._mediaDefault,a=[],s=[];if(!o.length&&!r)return s;for(var l=0,u=o.length;l<u;l++)XO(o[l].query,t,i)&&a.push(l);return!a.length&&r&&(a=[-1]),a.length&&!ZO(a,this._currentMediaIndices)&&(s=W(a,function(c){return it(c===-1?r.option:o[c].option)})),this._currentMediaIndices=a,s},n}();function YO(n,e,t){var i=[],o,r,a=n.baseOption,s=n.timeline,l=n.options,u=n.media,c=!!n.media,h=!!(l||s||a&&a.timeline);a?(r=a,r.timeline||(r.timeline=s)):((h||c)&&(n.options=n.media=null),r=n),c&&(G(u)?C(u,function(d){process.env.NODE_ENV!=="production"&&d&&!d.option&&tt(d.query)&&tt(d.query.option)&&we("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),d&&d.option&&(d.query?i.push(d):o||(o=d))}):process.env.NODE_ENV!=="production"&&we("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),p(r),C(l,function(d){return p(d)}),C(i,function(d){return p(d.option)});function p(d){C(e,function(f){f(d,t)})}return{baseOption:r,timelineOptions:l||[],mediaDefault:o,mediaList:i}}function XO(n,e,t){var i={width:e,height:t,aspectratio:e/t},o=!0;return C(n,function(r,a){var s=a.match(WO);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();UO(i[u],r,l)||(o=!1)}}),o}function UO(n,e,t){return t==="min"?n>=e:t==="max"?n<=e:n===e}function ZO(n,e){return n.join(",")===e.join(",")}const jO=HO;var pn=C,As=tt,x_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pf(n){var e=n&&n.itemStyle;if(e)for(var t=0,i=x_.length;t<i;t++){var o=x_[t],r=e.normal,a=e.emphasis;r&&r[o]&&(process.env.NODE_ENV!=="production"&&ee("itemStyle.normal."+o,o),n[o]=n[o]||{},n[o].normal?pt(n[o].normal,r[o]):n[o].normal=r[o],r[o]=null),a&&a[o]&&(process.env.NODE_ENV!=="production"&&ee("itemStyle.emphasis."+o,"emphasis."+o),n[o]=n[o]||{},n[o].emphasis?pt(n[o].emphasis,a[o]):n[o].emphasis=a[o],a[o]=null)}}function Ie(n,e,t){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var i=n[e].normal,o=n[e].emphasis;i&&(process.env.NODE_ENV!=="production"&&Dn("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(n[e].normal=n[e].emphasis=null,nt(n[e],i)):n[e]=i),o&&(process.env.NODE_ENV!=="production"&&Dn(e+".emphasis has been changed to emphasis."+e+" since 4.0"),n.emphasis=n.emphasis||{},n.emphasis[e]=o,o.focus&&(n.emphasis.focus=o.focus),o.blurScope&&(n.emphasis.blurScope=o.blurScope))}}function ks(n){Ie(n,"itemStyle"),Ie(n,"lineStyle"),Ie(n,"areaStyle"),Ie(n,"label"),Ie(n,"labelLine"),Ie(n,"upperLabel"),Ie(n,"edgeLabel")}function ie(n,e){var t=As(n)&&n[e],i=As(t)&&t.textStyle;if(i){process.env.NODE_ENV!=="production"&&Dn("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var o=0,r=Y0.length;o<r;o++){var a=Y0[o];i.hasOwnProperty(a)&&(t[a]=i[a])}}}function dn(n){n&&(ks(n),ie(n,"label"),n.emphasis&&ie(n.emphasis,"label"))}function qO(n){if(As(n)){pf(n),ks(n),ie(n,"label"),ie(n,"upperLabel"),ie(n,"edgeLabel"),n.emphasis&&(ie(n.emphasis,"label"),ie(n.emphasis,"upperLabel"),ie(n.emphasis,"edgeLabel"));var e=n.markPoint;e&&(pf(e),dn(e));var t=n.markLine;t&&(pf(t),dn(t));var i=n.markArea;i&&dn(i);var o=n.data;if(n.type==="graph"){o=o||n.nodes;var r=n.links||n.edges;if(r&&!Re(r))for(var a=0;a<r.length;a++)dn(r[a]);C(n.categories,function(u){ks(u)})}if(o&&!Re(o))for(var a=0;a<o.length;a++)dn(o[a]);if(e=n.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)dn(s[a]);if(t=n.markLine,t&&t.data)for(var l=t.data,a=0;a<l.length;a++)G(l[a])?(dn(l[a][0]),dn(l[a][1])):dn(l[a]);n.type==="gauge"?(ie(n,"axisLabel"),ie(n,"title"),ie(n,"detail")):n.type==="treemap"?(Ie(n.breadcrumb,"itemStyle"),C(n.levels,function(u){ks(u)})):n.type==="tree"&&ks(n.leaves)}}function xi(n){return G(n)?n:n?[n]:[]}function __(n){return(G(n)?n[0]:n)||{}}function KO(n,e){pn(xi(n.series),function(i){As(i)&&qO(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),pn(t,function(i){pn(xi(n[i]),function(o){o&&(ie(o,"axisLabel"),ie(o.axisPointer,"label"))})}),pn(xi(n.parallel),function(i){var o=i&&i.parallelAxisDefault;ie(o,"axisLabel"),ie(o&&o.axisPointer,"label")}),pn(xi(n.calendar),function(i){Ie(i,"itemStyle"),ie(i,"dayLabel"),ie(i,"monthLabel"),ie(i,"yearLabel")}),pn(xi(n.radar),function(i){ie(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name,process.env.NODE_ENV!=="production"&&Dn("name property in radar component has been changed to axisName")),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap,process.env.NODE_ENV!=="production"&&Dn("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&pn(i.indicator,function(o){o.text&&ee("text","name","radar.indicator")})}),pn(xi(n.geo),function(i){As(i)&&(dn(i),pn(xi(i.regions),function(o){dn(o)}))}),pn(xi(n.timeline),function(i){dn(i),Ie(i,"label"),Ie(i,"itemStyle"),Ie(i,"controlStyle",!0);var o=i.data;G(o)&&C(o,function(r){tt(r)&&(Ie(r,"label"),Ie(r,"itemStyle"))})}),pn(xi(n.toolbox),function(i){Ie(i,"iconStyle"),pn(i.feature,function(o){Ie(o,"iconStyle")})}),ie(__(n.axisPointer),"label"),ie(__(n.tooltip).axisPointer,"label")}function $O(n,e){for(var t=e.split(","),i=n,o=0;o<t.length&&(i=i&&i[t[o]],i!=null);o++);return i}function QO(n,e,t,i){for(var o=e.split(","),r=n,a,s=0;s<o.length-1;s++)a=o[s],r[a]==null&&(r[a]={}),r=r[a];(i||r[o[s]]==null)&&(r[o[s]]=t)}function b_(n){n&&C(JO,function(e){e[0]in n&&!(e[1]in n)&&(n[e[1]]=n[e[0]])})}var JO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],df=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ls(n){var e=n&&n.itemStyle;if(e)for(var t=0;t<df.length;t++){var i=df[t][1],o=df[t][0];e[i]!=null&&(e[o]=e[i],process.env.NODE_ENV!=="production"&&ee(i,o))}}function w_(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ee("label.margin","label.edgeDistance","pie"),n.edgeDistance=n.margin)}function S_(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay,process.env.NODE_ENV!=="production"&&ee("downplay","blur","sunburst"))}function eP(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ee("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),n.emphasis.focus="adjacency"))}function M_(n,e){if(n)for(var t=0;t<n.length;t++)e(n[t]),n[t]&&M_(n[t].children,e)}function I_(n,e){KO(n,e),n.series=Nt(n.series),C(n.series,function(t){if(tt(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&ee("clipOverflow","clip","line"));else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&ee("clockWise","clockwise")),w_(t.label);var o=t.data;if(o&&!Re(o))for(var r=0;r<o.length;r++)w_(o[r]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ee("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var a=$O(t,"pointer.color");a!=null&&QO(t,"itemStyle.color",a)}else if(i==="bar"){Ls(t),Ls(t.backgroundStyle),Ls(t.emphasis);var o=t.data;if(o&&!Re(o))for(var r=0;r<o.length;r++)typeof o[r]=="object"&&(Ls(o[r]),Ls(o[r]&&o[r].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ee("highlightPolicy","emphasis.focus","sunburst"))),S_(t),M_(t.data,S_)}else i==="graph"||i==="sankey"?eP(t):i==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&ee("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&Dn("`mapLocation` is not used anymore."),nt(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ee("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),b_(t)}}),n.dataRange&&(n.visualMap=n.dataRange),C(tP,function(t){var i=n[t];i&&(G(i)||(i=[i]),C(i,function(o){b_(o)}))})}function nP(n){var e=K();n.eachSeries(function(t){var i=t.get("stack");if(i){var o=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;o.length&&r.setCalculationInfo("stackedOnSeries",o[o.length-1].seriesModel),o.push(a)}}),e.each(iP)}function iP(n){C(n,function(e,t){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,function(u,c,h){var p=a.get(e.stackedDimension,h);if(isNaN(p))return o;var d,f;s?f=a.getRawIndex(h):d=a.get(e.stackedByDimension,h);for(var g=NaN,v=t-1;v>=0;v--){var y=n[v];if(s||(f=y.data.rawIndexOf(y.stackedByDimension,d)),f>=0){var m=y.data.getByRawIndex(y.stackResultDimension,f);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&p>=0&&m>0||l==="samesign"&&p<=0&&m<0){p=RL(p,m),g=m;break}}}return i[0]=p,i[1]=g,i})})}var ac=function(){function n(e){this.data=e.data||(e.sourceFormat===Kn?{}:[]),this.sourceFormat=e.sourceFormat||o_,this.seriesLayoutBy=e.seriesLayoutBy||$n,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var o=t[i];o.type==null&&s_(this,i)===me.Must&&(o.type="ordinal")}}return n}();function ff(n){return n instanceof ac}function gf(n,e,t){t=t||D_(n);var i=e.seriesLayoutBy,o=rP(n,t,i,e.sourceHeader,e.dimensions),r=new ac({data:n,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:it(e)});return r}function vf(n){return new ac({data:n,sourceFormat:Re(n)?mi:cn})}function oP(n){return new ac({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:it(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function D_(n){var e=o_;if(Re(n))e=mi;else if(G(n)){n.length===0&&(e=Me);for(var t=0,i=n.length;t<i;t++){var o=n[t];if(o!=null){if(G(o)){e=Me;break}else if(tt(o)){e=hn;break}}}}else if(tt(n)){for(var r in n)if(U(n,r)&&be(n[r])){e=Kn;break}}return e}function rP(n,e,t,i,o){var r,a;if(!n)return{dimensionsDefine:T_(o),startIndex:a,dimensionsDetectedCount:r};if(e===Me){var s=n;i==="auto"||i==null?C_(function(u){u!=null&&u!=="-"&&(X(u)?a==null&&(a=1):a=0)},t,s,10):a=Dt(i)?i:i?1:0,!o&&a===1&&(o=[],C_(function(u,c){o[c]=u!=null?u+"":""},t,s,1/0)),r=o?o.length:t===aa?s.length:s[0]?s[0].length:null}else if(e===hn)o||(o=aP(n));else if(e===Kn)o||(o=[],C(n,function(u,c){o.push(c)}));else if(e===cn){var l=Gr(n[0]);r=G(l)&&l.length||1}else e===mi&&process.env.NODE_ENV!=="production"&&et(!!o,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:T_(o),dimensionsDetectedCount:r}}function aP(n){for(var e=0,t;e<n.length&&!(t=n[e++]););if(t)return _t(t)}function T_(n){if(n){var e=K();return W(n,function(t,i){t=tt(t)?t:{name:t};var o={name:t.name,displayName:t.displayName,type:t.type};if(o.name==null)return o;o.name+="",o.displayName==null&&(o.displayName=o.name);var r=e.get(o.name);return r?o.name+="-"+r.count++:e.set(o.name,{count:1}),o})}}function C_(n,e,t,i){if(e===aa)for(var o=0;o<t.length&&o<i;o++)n(t[o]?t[o][0]:null,o);else for(var r=t[0]||[],o=0;o<r.length&&o<i;o++)n(r[o],o)}function A_(n){var e=n.sourceFormat;return e===hn||e===Kn}var $o,Qo,Jo,k_,L_,N_=function(){function n(e,t){var i=ff(e)?e:vf(e);this._source=i;var o=this._data=i.data;if(i.sourceFormat===mi){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=o}L_(this,o,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,t){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;L_=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,d=k_[mf(u,c)];if(process.env.NODE_ENV!=="production"&&et(d,"Invalide sourceFormat: "+u),z(a,d),u===mi)a.getItem=t,a.count=o,a.fillStorage=i;else{var f=O_(u,c);a.getItem=Z(f,null,s,h,p);var g=R_(u,c);a.count=Z(g,null,s,h,p)}};var t=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,h=0;h<u;h++)s[h]=l[c+h];return s},i=function(a,s,l,u){for(var c=this._data,h=this._dimSize,p=0;p<h;p++){for(var d=u[p],f=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],v=s-a,y=l[p],m=0;m<v;m++){var x=c[m*h+p];y[a+m]=x,x<f&&(f=x),x>g&&(g=x)}d[0]=f,d[1]=g}},o=function(){return this._data?this._data.length/this._dimSize:0};k_=(e={},e[Me+"_"+$n]={pure:!0,appendData:r},e[Me+"_"+aa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[hn]={pure:!0,appendData:r},e[Kn]={pure:!0,appendData:function(a){var s=this._data;C(a,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[cn]={appendData:r},e[mi]={persistent:!1,pure:!0,appendData:function(a){process.env.NODE_ENV!=="production"&&et(Re(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function r(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),n}(),E_=function(n,e,t,i){return n[i]},sP=($o={},$o[Me+"_"+$n]=function(n,e,t,i){return n[i+e]},$o[Me+"_"+aa]=function(n,e,t,i,o){i+=e;for(var r=o||[],a=n,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},$o[hn]=E_,$o[Kn]=function(n,e,t,i,o){for(var r=o||[],a=0;a<t.length;a++){var s=t[a].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=n[s];r[a]=l?l[i]:null}return r},$o[cn]=E_,$o);function O_(n,e){var t=sP[mf(n,e)];return process.env.NODE_ENV!=="production"&&et(t,'Do not support get item on "'+n+'", "'+e+'".'),t}var P_=function(n,e,t){return n.length},lP=(Qo={},Qo[Me+"_"+$n]=function(n,e,t){return Math.max(0,n.length-e)},Qo[Me+"_"+aa]=function(n,e,t){var i=n[0];return i?Math.max(0,i.length-e):0},Qo[hn]=P_,Qo[Kn]=function(n,e,t){var i=t[0].name;if(process.env.NODE_ENV!=="production"&&i==null)throw new Error;var o=n[i];return o?o.length:0},Qo[cn]=P_,Qo);function R_(n,e){var t=lP[mf(n,e)];return process.env.NODE_ENV!=="production"&&et(t,'Do not support count on "'+n+'", "'+e+'".'),t}var yf=function(n,e,t){return n[e]},uP=(Jo={},Jo[Me]=yf,Jo[hn]=function(n,e,t){return n[t]},Jo[Kn]=yf,Jo[cn]=function(n,e,t){var i=Gr(n);return i instanceof Array?i[e]:i},Jo[mi]=yf,Jo);function V_(n){var e=uP[n];return process.env.NODE_ENV!=="production"&&et(e,'Do not support get value on "'+n+'".'),e}function mf(n,e){return n===Me?n+"_"+e:n}function la(n,e,t){if(n){var i=n.getRawDataItem(e);if(i!=null){var o=n.getStore(),r=o.getSource().sourceFormat;if(t!=null){var a=n.getDimensionIndex(t),s=o.getDimensionProperty(a);return V_(r)(i,a,s)}else{var l=i;return r===cn&&(l=Gr(i)),l}}}}var cP=/\{@(.+?)\}/g,xf=function(){function n(){}return n.prototype.getDataParams=function(e,t){var i=this.getData(t),o=this.getRawValue(e,t),r=i.getRawIndex(e),a=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,p=h==="series",d=i.userOutput&&i.userOutput.get();return{componentType:h,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:r,data:s,dataType:t,value:o,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,i,o,r,a){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(a&&(l.value=a.interpolatedValue),o!=null&&G(l.value)&&(l.value=l.value[o]),!r){var u=s.getItemModel(e);r=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Q(r))return l.status=t,l.dimensionIndex=o,r(l);if(X(r)){var c=t_(r,l);return c.replace(cP,function(h,p){var d=p.length,f=p;f.charAt(0)==="["&&f.charAt(d-1)==="]"&&(f=+f.slice(1,d-1),process.env.NODE_ENV!=="production"&&isNaN(f)&&we("Invalide label formatter: @"+p+", only support @[0], @[1], @[2], ..."));var g=la(s,e,f);if(a&&G(a.interpolatedValue)){var v=s.getDimensionIndex(f);v>=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return la(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function z_(n){var e,t;return tt(n)?n.type?t=n:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ce(n)):e=n,{text:e,frag:t}}function Ns(n){return new hP(n)}var hP=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var o=this.context;o.data=o.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!i&&(r=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(r="reset");function c(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||r==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&et(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&et(!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(!i&&(h||d<f)){var g=this._progress;if(G(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,f,l,u);else this._doProgress(g,d,f,l,u)}this._dueIndex=f;var y=this._settedOutputEnd!=null?this._settedOutputEnd:f;process.env.NODE_ENV!=="production"&&et(y>=this._outputDueEnd),this._outputDueEnd=y}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(e,t,i,o,r){B_.reset(t,i,o,r),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:B_.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),G(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var o=this._downstream;return o&&o.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&et(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},n}(),B_=function(){var n,e,t,i,o,r={reset:function(l,u,c,h){e=l,n=u,t=c,i=h,o=Math.ceil(i/t),r.next=t>1&&i>0?s:a}};return r;function a(){return e<n?e++:null}function s(){var l=e%o*t+Math.ceil(e/o),u=e>=n?null:l<i?l:e;return e++,u}}();function qi(n,e){var t=e&&e.type;return t==="ordinal"?n:(t==="time"&&!Dt(n)&&n!=null&&n!=="-"&&(n=+Wn(n)),n==null||n===""?NaN:+n)}var pP=K({number:function(n){return parseFloat(n)},time:function(n){return+Wn(n)},trim:function(n){return X(n)?wn(n):n}});function F_(n){return pP.get(n)}var G_={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},dP=function(){function n(e,t){if(!Dt(t)){var i="";process.env.NODE_ENV!=="production"&&(i='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),At(i)}this._opFn=G_[e],this._rvalFloat=pi(t)}return n.prototype.evaluate=function(e){return Dt(e)?this._opFn(e,this._rvalFloat):this._opFn(pi(e),this._rvalFloat)},n}(),W_=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=Dt(e)?e:pi(e),o=Dt(t)?t:pi(t),r=isNaN(i),a=isNaN(o);if(r&&(i=this._incomparable),a&&(o=this._incomparable),r&&a){var s=X(e),l=X(t);s&&(i=l?e:0),l&&(o=s?t:0)}return i<o?this._resultLT:i>o?-this._resultLT:0},n}(),fP=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=pi(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=pi(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function gP(n,e){return n==="eq"||n==="ne"?new fP(n==="eq",e):U(G_,n)?new dP(n,e):null}var vP=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return qi(e,t)},n}();function yP(n,e){var t=new vP,i=n.data,o=t.sourceFormat=n.sourceFormat,r=n.startIndex,a="";n.seriesLayoutBy!==$n&&(process.env.NODE_ENV!=="production"&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),At(a));var s=[],l={},u=n.dimensionsDefine;if(u)C(u,function(g,v){var y=g.name,m={index:v,name:y,displayName:g.displayName};if(s.push(m),y!=null){var x="";U(l,y)&&(process.env.NODE_ENV!=="production"&&(x='dimension name "'+y+'" duplicated.'),At(x)),l[y]=m}});else for(var c=0;c<n.dimensionsDetectedCount;c++)s.push({index:c});var h=O_(o,$n);e.__isBuiltIn&&(t.getRawDataItem=function(g){return h(i,r,s,g)},t.getRawData=Z(mP,null,n)),t.cloneRawData=Z(xP,null,n);var p=R_(o,$n);t.count=Z(p,null,i,r,s);var d=V_(o);t.retrieveValue=function(g,v){var y=h(i,r,s,g);return f(y,v)};var f=t.retrieveValueFromItem=function(g,v){if(g!=null){var y=s[v];if(y)return d(g,v,y.name)}};return t.getDimensionInfo=Z(_P,null,s,l),t.cloneAllDimensionInfo=Z(bP,null,s),t}function mP(n){var e=n.sourceFormat;if(!_f(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),At(t)}return n.data}function xP(n){var e=n.sourceFormat,t=n.data;if(!_f(e)){var i="";process.env.NODE_ENV!=="production"&&(i="`cloneRawData` is not supported in source format "+e),At(i)}if(e===Me){for(var o=[],r=0,a=t.length;r<a;r++)o.push(t[r].slice());return o}else if(e===hn){for(var o=[],r=0,a=t.length;r<a;r++)o.push(z({},t[r]));return o}}function _P(n,e,t){if(t!=null){if(Dt(t)||!isNaN(t)&&!U(e,t))return n[t];if(U(e,t))return e[t]}}function bP(n){return it(n)}var H_=K();function wP(n){n=it(n);var e=n.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),At(t));var i=e.split(":");i.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),At(t));var o=!1;i[0]==="echarts"&&(e=i[1],o=!0),n.__isBuiltIn=o,H_.set(e,n)}function SP(n,e,t){var i=Nt(n),o=i.length,r="";o||(process.env.NODE_ENV!=="production"&&(r="If `transform` declared, it should at least contain one transform."),At(r));for(var a=0,s=o;a<s;a++){var l=i[a];e=MP(l,e,t,o===1?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function MP(n,e,t,i){var o="";e.length||(process.env.NODE_ENV!=="production"&&(o="Must have at least one upstream dataset."),At(o)),tt(n)||(process.env.NODE_ENV!=="production"&&(o="transform declaration must be an object rather than "+typeof n+"."),At(o));var r=n.type,a=H_.get(r);a||(process.env.NODE_ENV!=="production"&&(o='Can not find transform on type "'+r+'".'),At(o));var s=W(e,function(c){return yP(c,a)}),l=Nt(a.transform({upstream:s[0],upstreamList:s,config:it(n.config)}));if(process.env.NODE_ENV!=="production"&&n.print){var u=W(l,function(c){var h=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+t.datasetIndex+h+" ===","- transform result data:",Ce(c.data),"- transform result dimensions:",Ce(c.dimensions)].join(`
|
|
47
|
+
`)}).join(`
|
|
48
|
+
`);GL(u)}return W(l,function(c,h){var p="";tt(c)||(process.env.NODE_ENV!=="production"&&(p="A transform should not return some empty results."),At(p)),c.data||(process.env.NODE_ENV!=="production"&&(p="Transform result data should be not be null or undefined"),At(p));var d=D_(c.data);_f(d)||(process.env.NODE_ENV!=="production"&&(p="Transform result data should be array rows or object rows."),At(p));var f,g=e[0];if(g&&h===0&&!c.dimensions){var v=g.startIndex;v&&(c.data=g.data.slice(0,v).concat(c.data)),f={seriesLayoutBy:$n,sourceHeader:v,dimensions:g.metaRawOption.dimensions}}else f={seriesLayoutBy:$n,sourceHeader:0,dimensions:c.dimensions};return gf(c.data,f,null)})}function _f(n){return n===Me||n===hn}var sc="undefined",IP=typeof Uint32Array===sc?Array:Uint32Array,DP=typeof Uint16Array===sc?Array:Uint16Array,Y_=typeof Int32Array===sc?Array:Int32Array,X_=typeof Float64Array===sc?Array:Float64Array,U_={float:X_,int:Y_,ordinal:Array,number:Array,time:X_},bf;function Es(n){return n>65535?IP:DP}function ua(){return[1/0,-1/0]}function TP(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function Z_(n,e,t,i,o){var r=U_[t||"float"];if(o){var a=n[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;u<s;u++)l[u]=a[u];n[e]=l}}else n[e]=new r(i)}var wf=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return n.prototype.initData=function(e,t,i){process.env.NODE_ENV!=="production"&&et(Q(e.getItem)&&Q(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),r=this.defaultDimValueGetter=bf[o.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[];var a=A_(o);this._dimensions=W(t,function(s){return process.env.NODE_ENV!=="production"&&a&&et(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,o=this._dimensions,r=i.get(e);if(r!=null){if(o[r].type===t)return r}else r=o.length;return o[r]={type:t},i.set(e,r),this._chunks[r]=new U_[t||"float"](this._rawCount),this._rawExtent[r]=ua(),r},n.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],o=this._dimensions[e],r=this._rawExtent,a=o.ordinalOffset||0,s=i.length;a===0&&(r[e]=ua());for(var l=r[e],u=a;u<s;u++){var c=i[u]=t.parseAndCollect(i[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}o.ordinalMeta=t,o.ordinalOffset=s,o.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},n.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},n.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&et(!this._indices,"appendData can only be called on raw data.");var t=this._provider,i=this.count();t.appendData(e);var o=t.count();return t.persistent||(o+=i),i<o&&this._initDataFromProvider(i,o,!0),[i,o]},n.prototype.appendValues=function(e,t){for(var i=this._chunks,o=this._dimensions,r=o.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<r;u++){var c=o[u];Z_(i,u,c.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var d=p-s,f=0;f<r;f++){var c=o[f],g=bf.arrayRows.call(this,e[d]||h,c.property,d,f);i[f][p]=g;var v=a[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var o=this._provider,r=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=W(a,function(m){return m.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=ua()),Z_(r,c,h.type,t,i)}if(o.fillStorage)o.fillStorage(e,t,r,l);else for(var p=[],d=e;d<t;d++){p=o.getItem(d,p);for(var f=0;f<s;f++){var g=r[f],v=this._dimValueGetter(p,u[f],d,f);g[d]=v;var y=l[f];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(e,t){var i=[],o=[];if(t==null){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)o.push(r)}else o=e;for(var r=0,a=o.length;r<a;r++)i.push(this.get(o[r],t));return i},n.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},n.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var o=0,r=this.count();o<r;o++){var a=this.get(e,o);isNaN(a)||(i+=a)}return i},n.prototype.getMedian=function(e){var t=[];this.each([e],function(r){isNaN(r)||t.push(r)});var i=t.sort(function(r,a){return r-a}),o=this.count();return o===0?0:o%2===1?i[(o-1)/2]:(i[o/2]+i[o/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var o=0,r=this._count-1;o<=r;){var a=(o+r)/2|0;if(t[a]<e)o=a+1;else if(t[a]>e)r=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(e,t,i){var o=this._chunks,r=o[e],a=[];if(!r)return a;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c<h;c++){var p=this.getRawIndex(c),d=t-r[p],f=Math.abs(d);f<=i&&((f<s||f===s&&d>=0&&l<0)&&(s=f,l=d,u=0),d===l&&(a[u++]=c))}return a.length=u,a},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,o=this._count;if(i===Array){e=new i(o);for(var r=0;r<o;r++)e[r]=t[r]}else e=new i(t.buffer,0,o)}else{var i=Es(this._rawCount);e=new i(this.count());for(var r=0;r<e.length;r++)e[r]=r}return e},n.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),o=i.count(),r=Es(i._rawCount),a=new r(o),s=[],l=e.length,u=0,c=e[0],h=i._chunks,p=0;p<o;p++){var d=void 0,f=i.getRawIndex(p);if(l===0)d=t(p);else if(l===1){var g=h[c][f];d=t(g,p)}else{for(var v=0;v<l;v++)s[v]=h[e[v]][f];s[v]=p,d=t.apply(null,s)}d&&(a[u++]=f)}return u<o&&(i._indices=a),i._count=u,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var o=_t(e),r=o.length;if(!r)return this;var a=t.count(),s=Es(t._rawCount),l=new s(a),u=0,c=o[0],h=e[c][0],p=e[c][1],d=t._chunks,f=!1;if(!t._indices){var g=0;if(r===1){for(var v=d[o[0]],y=0;y<i;y++){var m=v[y];(m>=h&&m<=p||isNaN(m))&&(l[u++]=g),g++}f=!0}else if(r===2){for(var v=d[o[0]],x=d[o[1]],_=e[o[1]][0],w=e[o[1]][1],y=0;y<i;y++){var m=v[y],b=x[y];(m>=h&&m<=p||isNaN(m))&&(b>=_&&b<=w||isNaN(b))&&(l[u++]=g),g++}f=!0}}if(!f)if(r===1)for(var y=0;y<a;y++){var S=t.getRawIndex(y),m=d[o[0]][S];(m>=h&&m<=p||isNaN(m))&&(l[u++]=S)}else for(var y=0;y<a;y++){for(var M=!0,S=t.getRawIndex(y),D=0;D<r;D++){var T=o[D],m=d[T][S];(m<e[T][0]||m>e[T][1])&&(M=!1)}M&&(l[u++]=t.getRawIndex(y))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},n.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},n.prototype.modify=function(e,t){this._updateDims(this,e,t)},n.prototype._updateDims=function(e,t,i){for(var o=e._chunks,r=[],a=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=ua();for(var h=0;h<s;h++){for(var p=e.getRawIndex(h),d=0;d<a;d++)l[d]=o[t[d]][p];l[a]=h;var f=i&&i.apply(null,l);if(f!=null){typeof f!="object"&&(r[0]=f,f=r);for(var c=0;c<f.length;c++){var g=t[c],v=f[c],y=u[g],m=o[g];m&&(m[p]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),o=i._chunks,r=o[e],a=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,p,d=new(Es(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var f=1;f<a-1;f+=l){for(var g=Math.min(f+l,a-1),v=Math.min(f+l*2,a),y=(v+g)/2,m=0,x=g;x<v;x++){var _=this.getRawIndex(x),w=r[_];isNaN(w)||(m+=w)}m/=v-g;var b=f,S=Math.min(f+l,a),M=f-1,D=r[u];c=-1,p=b;for(var T=-1,I=0,x=b;x<S;x++){var _=this.getRawIndex(x),w=r[_];if(isNaN(w)){I++,T<0&&(T=_);continue}h=Math.abs((M-y)*(w-D)-(M-x)*(m-D)),h>c&&(c=h,p=_)}I>0&&I<S-b&&(d[s++]=Math.min(T,p),p=Math.max(T,p)),d[s++]=p,u=p}return d[s++]=this.getRawIndex(a-1),i._count=s,i._indices=d,i.getRawIndex=this._getRawIdx,i},n.prototype.downSample=function(e,t,i,o){for(var r=this.clone([e],!0),a=r._chunks,s=[],l=Math.floor(1/t),u=a[e],c=this.count(),h=r._rawExtent[e]=ua(),p=new(Es(this._rawCount))(Math.ceil(c/l)),d=0,f=0;f<c;f+=l){l>c-f&&(l=c-f,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(f+g);s[g]=u[v]}var y=i(s),m=this.getRawIndex(Math.min(f+o(s,y)||0,c-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),p[d++]=m}return r._count=d,r._indices=p,r._updateGetRawIdx(),r},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,o=this._chunks,r=0,a=this.count();r<a;r++){var s=this.getRawIndex(r);switch(i){case 0:t(r);break;case 1:t(o[e[0]][s],r);break;case 2:t(o[e[0]][s],o[e[1]][s],r);break;default:for(var l=0,u=[];l<i;l++)u[l]=o[e[l]][s];u[l]=r,t.apply(null,u)}}},n.prototype.getDataExtent=function(e){var t=this._chunks[e],i=ua();if(!t)return i;var o=this.count(),r=!this._indices,a;if(r)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=i;for(var s=a[0],l=a[1],u=0;u<o;u++){var c=this.getRawIndex(u),h=t[c];h<s&&(s=h),h>l&&(l=h)}return a=[s,l],this._extent[e]=a,a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],o=this._chunks,r=0;r<o.length;r++)i.push(o[r][t]);return i},n.prototype.clone=function(e,t){var i=new n,o=this._chunks,r=e&&Vn(e,function(s,l){return s[l]=!0,s},{});if(r)for(var a=0;a<o.length;a++)i._chunks[a]=r[a]?TP(o[a]):o[a];else i._chunks=o;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=it(this._extent),e._rawExtent=it(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var o=0;o<i;o++)t[o]=this._indices[o]}else t=new e(this._indices);return t}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,o,r){return qi(t[r],this._dimensions[r])}bf={arrayRows:e,objectRows:function(t,i,o,r){return qi(t[i],this._dimensions[r])},keyedColumns:e,original:function(t,i,o,r){var a=t&&(t.value==null?t:t.value);return qi(a instanceof Array?a[r]:a,this._dimensions[r])},typedArray:function(t,i,o,r){return t[r]}}}(),n}(),j_=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,o,r;if(Os(e)){var a=e,s=void 0,l=void 0,u=void 0;if(i){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,r=[c._getVersionSign()]}else s=a.get("data",!0),l=Re(s)?mi:cn,r=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=ct(h.seriesLayoutBy,p.seriesLayoutBy)||null,f=ct(h.sourceHeader,p.sourceHeader),g=ct(h.dimensions,p.dimensions),v=d!==p.seriesLayoutBy||!!f!=!!p.sourceHeader||g;o=v?[gf(s,{seriesLayoutBy:d,sourceHeader:f,dimensions:g},l)]:[]}else{var y=e;if(i){var m=this._applyTransform(t);o=m.sourceList,r=m.upstreamSignList}else{var x=y.get("source",!0);o=[gf(x,this._getSourceMetaRawOption(),null)],r=[]}}process.env.NODE_ENV!=="production"&&et(o&&r),this._setLocalSource(o,r)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),o=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&et(o!=null||i!=null),o!=null){var r="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(r="When using `fromTransformResult`, there should be only one upstream dataset"),K_(r))}var a,s=[],l=[];return C(e,function(u){u.prepareSource();var c=u.getSource(o||0),h="";o!=null&&!c&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+o),K_(h)),s.push(c),l.push(u._getVersionSign())}),i?a=SP(i,s,{datasetIndex:t.componentIndex}):o!=null&&(a=[oP(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},n.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&et(Os(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},n.prototype._innerGetDataStore=function(e,t,i){var o=0,r=this._storeList,a=r[o];a||(a=r[o]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Os(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new wf,s.initData(new N_(t,e.length),e)),a[i]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Os(e)){var t=af(e);return t?[t.getSourceManager()]:[]}else return W(CO(e),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,o;if(Os(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),o=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=e;t=r.get("seriesLayoutBy",!0),i=r.get("sourceHeader",!0),o=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:o}},n}();function q_(n){var e=n.option.transform;e&&Fl(n.option.transform)}function Os(n){return n.mainType==="series"}function K_(n){throw new Error(n)}var $_="line-height:1";function Q_(n,e){var t=n.color||"#6e7079",i=n.fontSize||12,o=n.fontWeight||"400",r=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ve(i+"")+"px;color:"+Ve(t)+";font-weight:"+Ve(o+""),valueStyle:"font-size:"+Ve(a+"")+"px;color:"+Ve(r)+";font-weight:"+Ve(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var CP=[0,10,20,30],AP=["",`
|
|
49
|
+
`,`
|
|
50
|
+
|
|
51
|
+
`,`
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
`];function ce(n,e){return e.type=n,e}function Sf(n){return n.type==="section"}function J_(n){return Sf(n)?kP:LP}function tb(n){if(Sf(n)){var e=0,t=n.blocks.length,i=t>1||t>0&&!n.noHeader;return C(n.blocks,function(o){var r=tb(o);r>=e&&(e=r+ +(i&&(!r||Sf(o)&&!o.noHeader)))}),e}return 0}function kP(n,e,t,i){var o=e.noHeader,r=NP(tb(e)),a=[],s=e.blocks||[];et(!s||G(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(U(u,l)){var c=new W_(u[l],null);s.sort(function(f,g){return c.evaluate(f.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(f,g){var v=e.valueFormatter,y=J_(f)(v?z(z({},n),{valueFormatter:v}):n,f,g>0?r.html:0,i);y!=null&&a.push(y)});var h=n.renderMode==="richText"?a.join(r.richText):Mf(a.join(""),o?t:r.html);if(o)return h;var p=tf(e.header,"ordinal",n.useUTC),d=Q_(i,n.renderMode).nameStyle;return n.renderMode==="richText"?nb(n,p,d)+r.richText+h:Mf('<div style="'+d+";"+$_+';">'+Ve(p)+"</div>"+h,t)}function LP(n,e,t,i){var o=n.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(_){return _=G(_)?_:[_],W(_,function(w,b){return tf(w,G(d)?d[b]:d,u)})};if(!(r&&a)){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),p=r?"":tf(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value),g=!s||!r,v=!s&&r,y=Q_(i,o),m=y.nameStyle,x=y.valueStyle;return o==="richText"?(s?"":h)+(r?"":nb(n,p,m))+(a?"":PP(n,f,g,v,x)):Mf((s?"":h)+(r?"":EP(p,!s,m))+(a?"":OP(f,g,v,x)),t)}}function eb(n,e,t,i,o,r){if(n){var a=J_(n),s={useUTC:o,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return a(s,n,0,r)}}function NP(n){return{html:CP[n],richText:AP[n]}}function Mf(n,e){var t='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+$_+';">'+n+t+"</div>"}function EP(n,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Ve(n)+"</span>"}function OP(n,e,t,i){var o=t?"10px":"20px",r=e?"float:right;margin-left:"+o:"";return n=G(n)?n:[n],'<span style="'+r+";"+i+'">'+W(n,function(a){return Ve(a)}).join(" ")+"</span>"}function nb(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function PP(n,e,t,i,o){var r=[o],a=i?10:20;return t&&r.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,r)}function ib(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return jo(i)}function ob(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var If=function(){function n(){this.richTextStyles={},this._nextStyleNameId=V0()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var o=i==="richText"?this._generateStyleName():null,r=bO({color:t,type:e,renderMode:i,markerId:o});return X(r)?r:(process.env.NODE_ENV!=="production"&&et(o),this.richTextStyles[o]=r.style,r.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};G(t)?C(t,function(r){return z(i,r)}):z(i,t);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+e+"}"},n}();function rb(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,o=e.getData(),r=o.mapDimensionsAll("defaultedTooltip"),a=r.length,s=e.getRawValue(t),l=G(s),u=ib(e,t),c,h,p,d;if(a>1||l&&!a){var f=RP(s,e,t,r,u);c=f.inlineValues,h=f.inlineValueTypes,p=f.blocks,d=f.inlineValues[0]}else if(a){var g=o.getDimensionInfo(r[0]);d=c=la(o,t,r[0]),h=g.type}else d=c=l?s[0]:s;var v=nd(e),y=v&&e.name||"",m=o.getName(t),x=i?y:m;return ce("section",{header:y,noHeader:i||!v,sortParam:d,blocks:[ce("nameValue",{markerType:"item",markerColor:u,name:x,noName:!wn(x),value:c,valueType:h})].concat(p||[])})}function RP(n,e,t,i,o){var r=e.getData(),a=Vn(n,function(h,p,d){var f=r.getDimensionInfo(d);return h=h||f&&f.tooltip!==!1&&f.displayName!=null},!1),s=[],l=[],u=[];i.length?C(i,function(h){c(la(r,t,h),h)}):C(n,c);function c(h,p){var d=r.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(ce("nameValue",{markerType:"subItem",markerColor:o,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ki=Mt();function lc(n,e){return n.getName(e)||n.getId(e)}var uc="__universalTransitionEnabled",cc=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,o){this.seriesIndex=this.componentIndex,this.dataTask=Ns({count:zP,reset:BP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o);var r=Ki(this).sourceManager=new j_(this);r.prepareSource();var a=this.getInitialData(t,o);sb(a,this),this.dataTask.context.data=a,process.env.NODE_ENV!=="production"&&et(a,"getInitialData returned invalid data."),Ki(this).dataBeforeProcessed=a,ab(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=Ts(this),r=o?ia(t):{},a=this.subType;wt.hasClass(a)&&(a+="Series"),pt(t,i.getTheme().get(this.subType)),pt(t,this.getDefaultOption()),To(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&ji(t,r,o)},e.prototype.mergeOption=function(t,i){t=pt(this.option,t,!0),this.fillDataTextStyle(t.data);var o=Ts(this);o&&ji(this.option,t,o);var r=Ki(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(t,i);sb(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Ki(this).dataBeforeProcessed=a,ab(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!Re(t))for(var i=["show"],o=0;o<t.length;o++)t[o]&&t[o].label&&To(t[o],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=Df(this);if(i){var o=i.context.data;return t==null?o:o.getLinkedData(t)}else return Ki(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=Df(this);if(i){var o=i.context;o.outputData=t,i!==this.dataTask&&(o.data=t)}Ki(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return K(t)},e.prototype.getSourceManager=function(){return Ki(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ki(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,i,o){return rb({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(St.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,o){var r=this.ecModel,a=lf.prototype.getColorFromPalette.call(this,t,i,o);return a||(a=r.getColorFromPalette(t,i,o)),a},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var o=this.option.selectedMap;if(o){var r=this.option.selectedMode,a=this.getData(i);if(r==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=lc(a,l);o[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var o=[],r=0;r<t.length;r++)o[0]=t[r],this.isSelected(t[r],i)?this.unselect(o,i):this.select(o,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=_t(t),o=[],r=0;r<i.length;r++){var a=t[i[r]];a>=0&&o.push(a)}return o},e.prototype.isSelected=function(t,i){var o=this.option.selectedMap;if(!o)return!1;var r=this.getData(i);return(o==="all"||o[lc(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[uc])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var o,r,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){tt(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var h=i[c],p=lc(t,h);u[p]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var d=i[l-1],p=lc(t,d);a.selectedMap=(o={},o[p]=!0,o),this._selectedDataIndicesMap=(r={},r[p]=t.getRawIndex(d),r)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(o){var r=t.getRawDataItem(o);r&&r.selected&&i.push(o)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return wt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(wt);Jt(cc,xf),Jt(cc,lf),Q0(cc,wt);function ab(n){var e=n.name;nd(n)||(n.name=VP(n)||e)}function VP(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return C(t,function(o){var r=e.getDimensionInfo(o);r.displayName&&i.push(r.displayName)}),i.join(" ")}function zP(n){return n.model.getRawData().count()}function BP(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),FP}function FP(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sb(n,e){C(Gl(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,lt(GP,e))})}function GP(n,e){var t=Df(n);return t&&t.setOutputEnd((e||this).count()),e}function Df(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(n.uid))}return i}}const Ut=cc;var Tf=function(){function n(){this.group=new ot,this.uid=Jr("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){},n.prototype.updateLayout=function(e,t,i,o){},n.prototype.updateVisual=function(e,t,i,o){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();rd(Tf),xu(Tf);const qt=Tf;function ca(){var n=Mt();return function(e){var t=n(e),i=e.pipelineContext,o=!!t.large,r=!!t.progressiveRender,a=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(o!==a||r!==s)&&"reset"}}var lb=Mt(),WP=ca(),Cf=function(){function n(){this.group=new ot,this.uid=Jr("viewChart"),this.renderTask=Ns({plan:HP,reset:YP}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},n.prototype.highlight=function(e,t,i,o){var r=e.getData(o&&o.dataType);if(!r){process.env.NODE_ENV!=="production"&&we("Unknown dataType "+o.dataType);return}cb(r,o,"emphasis")},n.prototype.downplay=function(e,t,i,o){var r=e.getData(o&&o.dataType);if(!r){process.env.NODE_ENV!=="production"&&we("Unknown dataType "+o.dataType);return}cb(r,o,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateLayout=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateVisual=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.eachRendered=function(e){Xi(this.group,e)},n.markUpdateMethod=function(e,t){lb(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function ub(n,e,t){n&&Hi(n)&&(e==="emphasis"?vi:yi)(n,t)}function cb(n,e,t){var i=Co(n,e),o=e&&e.highlightKey!=null?fE(e.highlightKey):null;i!=null?C(Nt(i),function(r){ub(n.getItemGraphicEl(r),t,o)}):n.eachItemGraphicEl(function(r){ub(r,t,o)})}rd(Cf,["dispose"]),xu(Cf);function HP(n){return WP(n.model)}function YP(n){var e=n.model,t=n.ecModel,i=n.api,o=n.payload,r=e.pipelineContext.progressiveRender,a=n.view,s=o&&lb(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,t,i,o),XP[l]}var XP={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const zt=Cf;var hc="\0__throttleOriginMethod",hb="\0__throttleRate",pb="\0__throttleType";function Af(n,e,t){var i,o=0,r=0,a=null,s,l,u,c;e=e||0;function h(){r=new Date().getTime(),a=null,n.apply(l,u||[])}var p=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];i=new Date().getTime(),l=this,u=d;var g=c||e,v=c||t;c=null,s=i-(v?o:r)-g,clearTimeout(a),v?a=setTimeout(h,g):s>=0?h():a=setTimeout(h,-s),o=i};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){c=d},p}function ha(n,e,t,i){var o=n[e];if(o){var r=o[hc]||o,a=o[pb],s=o[hb];if(s!==t||a!==i){if(t==null||!i)return n[e]=r;o=n[e]=Af(r,t,i==="debounce"),o[hc]=r,o[pb]=i,o[hb]=t}return o}}function Ps(n,e){var t=n[e];t&&t[hc]&&(t.clear&&t.clear(),n[e]=t[hc])}var db=Mt(),fb={itemStyle:ko(Vx,!0),lineStyle:ko(Rx,!0)},UP={lineStyle:"stroke",itemStyle:"fill"};function gb(n,e){var t=n.visualStyleMapper||fb[e];return t||(console.warn("Unknown style type '"+e+"'."),fb.itemStyle)}function vb(n,e){var t=n.visualDrawType||UP[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ZP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=n.getModel(i),r=gb(n,i),a=r(o),s=o.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=vb(n,i),u=a[l],c=Q(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var p=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=p,t.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Q(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||Q(a.stroke)?p:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,f){var g=n.getDataParams(f),v=z({},a);v[l]=c(g),d.setItemVisual(f,"style",v)}}}},Rs=new Vt,jP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=gb(n,i),r=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Rs.option=l[i];var u=o(Rs),c=a.ensureUniqueItemVisual(s,"style");z(c,u),Rs.option.decal&&(a.setItemVisual(s,"decal",Rs.option.decal),Rs.option.decal.dirty=!0),r in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},qP={performRawSeries:!0,overallReset:function(n){var e=K();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var o=t.type+"-"+i,r=e.get(o);r||(r={},e.set(o,r)),db(t).scope=r}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),o={},r=t.getData(),a=db(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=vb(t,s);r.each(function(u){var c=r.getRawIndex(u);o[c]=u}),i.each(function(u){var c=o[u],h=r.getItemVisual(c,"colorFromPalette");if(h){var p=r.ensureUniqueItemVisual(c,"style"),d=i.getName(u)||u+"",f=i.count();p[l]=t.getColorFromPalette(d,a,f)}})}})}},pc=Math.PI;function KP(n,e){e=e||{},nt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ot,i=new It({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var o=new Tt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),r=new It({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(r);var a;return e.showSpinner&&(a=new zd({shape:{startAngle:-pc/2,endAngle:-pc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:pc*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:pc*3/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=o.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:c}),r.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var $P=function(){function n(e,t,i,o){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=i.concat(o)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var o=i.overallTask;o&&o.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),o=i.context,r=!t&&i.progressiveEnabled&&(!o||o.progressiveRender)&&e.__idxInPipeline>i.blockIndex,a=r?i.step:null,s=o&&o.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),o=e.getData(),r=o.count(),a=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?r:null;e.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=K();e.eachSeries(function(o){var r=o.getProgressive(),a=o.uid;i.set(a,{id:a,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:r&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(o,o.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;C(this._allHandlers,function(o){var r=e.get(o.uid)||e.set(o.uid,{}),a="";process.env.NODE_ENV!=="production"&&(a='"reset" and "overallReset" must not be both specified.'),et(!(o.reset&&o.overallReset),a),o.reset&&this._createSeriesStageTask(o,r,t,i),o.overallReset&&this._createOverallStageTask(o,r,t,i)},this)},n.prototype.prepareView=function(e,t,i,o){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=i,a.api=o,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,o){o=o||{};var r=!1,a=this;C(e,function(l,u){if(!(o.visualType&&o.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var d,f=p.agentStubMap;f.each(function(v){s(o,v)&&(v.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,o.block);f.each(function(v){v.perform(g)}),p.perform(g)&&(r=!0)}else h&&h.each(function(v,y){s(o,v)&&v.dirty();var m=a.getPerformArgs(v,o.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(m)&&(r=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=r||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=K(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,o).each(c);function c(h){var p=h.uid,d=s.set(p,a&&a.get(p)||Ns({plan:nR,reset:iR,count:rR}));d.context={model:h,ecModel:i,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(h,d)}},n.prototype._createOverallStageTask=function(e,t,i,o){var r=this,a=t.overallTask=t.overallTask||Ns({reset:QP});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=K(),u=e.seriesType,c=e.getTargetSeries,h=!0,p=!1,d="";process.env.NODE_ENV!=="production"&&(d='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),et(!e.createOnAllSeries,d),u?i.eachRawSeriesByType(u,f):c?c(i,o).each(f):(h=!1,C(i.getSeries(),f));function f(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(p=!0,Ns({reset:JP,onDirty:eR})));y.context={model:g,overallProgress:h},y.agent=a,y.__block=h,r._pipe(g,y)}p&&a.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,o=this._pipelineMap.get(i);!o.head&&(o.head=t),o.tail&&o.tail.pipe(t),o.tail=t,t.__idxInPipeline=o.count++,t.__pipeline=o},n.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:aR(e)}),e.uid=Jr("stageHandler"),t&&(e.visualType=t),e},n}();function QP(n){n.overallReset(n.ecModel,n.api,n.payload)}function JP(n){return n.overallProgress&&tR}function tR(){this.agent.dirty(),this.getDownstream().dirty()}function eR(){this.agent&&this.agent.dirty()}function nR(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function iR(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Nt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?W(e,function(t,i){return yb(i)}):oR}var oR=yb(0);function yb(n){return function(e,t){var i=t.data,o=t.resetDefines[n];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function rR(n){return n.data.count()}function aR(n){dc=null;try{n(Vs,mb)}catch{}return dc}var Vs={},mb={},dc;xb(Vs,y_),xb(mb,m_),Vs.eachSeriesByType=Vs.eachRawSeriesByType=function(n){dc=n},Vs.eachComponent=function(n){n.mainType==="series"&&n.subType&&(dc=n.subType)};function xb(n,e){for(var t in e.prototype)n[t]=$t}const _b=$P;var bb=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const sR={color:bb,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],bb]};var Le="#B9B8CE",wb="#100C2A",fc=function(){return{axisLine:{lineStyle:{color:Le}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Sb=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Mb={darkMode:!0,color:Sb,backgroundColor:wb,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Le}},textStyle:{color:Le},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Le}},dataZoom:{borderColor:"#71708A",textStyle:{color:Le},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:Le}},timeline:{lineStyle:{color:Le},label:{color:Le},controlStyle:{color:Le,borderColor:Le}},calendar:{itemStyle:{color:wb},dayLabel:{color:Le},monthLabel:{color:Le},yearLabel:{color:Le}},timeAxis:fc(),logAxis:fc(),valueAxis:fc(),categoryAxis:fc(),line:{symbol:"circle"},graph:{color:Sb},gauge:{title:{color:Le},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Le},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Mb.categoryAxis.splitLine.show=!1;const lR=Mb;var uR=function(){function n(){}return n.prototype.normalizeQuery=function(e){var t={},i={},o={};if(X(e)){var r=Hn(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var c=!1,h=0;h<a.length;h++){var p=a[h],d=u.lastIndexOf(p);if(d>0&&d===u.length-p.length){var f=u.slice(0,d);f!=="data"&&(t.mainType=f,t[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(i[u]=l,c=!0),c||(o[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:o}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var o=i.targetEl,r=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,r,"name")&&c(u,r,"dataIndex")&&c(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function c(h,p,d,f){return h[d]==null||p[f||d]===h[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),kf=["symbol","symbolSize","symbolRotate","symbolOffset"],Ib=kf.concat(["symbolKeepAspect"]),cR={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},o={},r=!1,a=0;a<kf.length;a++){var s=kf[a],l=n.get(s);Q(l)?(r=!0,o[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,t.setVisual(z({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),e.isSeriesFiltered(n))return;var u=_t(o);function c(h,p){for(var d=n.getRawValue(p),f=n.getDataParams(p),g=0;g<u.length;g++){var v=u[g];h.setItemVisual(p,v,o[v](d,f))}}return{dataEach:r?c:null}}},hR={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual||e.isSeriesFiltered(n))return;var t=n.getData();function i(o,r){for(var a=o.getItemModel(r),s=0;s<Ib.length;s++){var l=Ib[s],u=a.getShallow(l,!0);u!=null&&o.setItemVisual(r,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Lf(n,e,t){switch(t){case"color":var i=n.getItemVisual(e,"style");return i[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function zs(n,e){switch(e){case"color":var t=n.getVisual("style");return t[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function Db(n,e,t,i){switch(t){case"color":var o=n.ensureUniqueItemVisual(e,"style");o[n.getVisual("drawType")]=i,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,t,i);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Tb(n,e){function t(i,o){var r=[];return i.eachComponent({mainType:"series",subType:n,query:o},function(a){r.push(a.seriesIndex)}),r}C([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){e(i[0],function(o,r,a){o=z({},o),process.env.NODE_ENV!=="production"&&ee(o.type,i[1]),a.dispatchAction(z(o,{type:i[1],seriesIndex:t(r,o)}))})})}function pa(n,e,t,i,o){var r=n+e;t.isSilent(r)||(process.env.NODE_ENV!=="production"&&Dn("event "+r+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=o.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=a.getData(),p=Co(h,o.fromActionPayload);t.trigger(r,{type:r,seriesId:a.id,name:G(p)?h.getName(p[0]):h.getName(p),selected:X(l)?l:z({},l)})}}))}function pR(n,e,t){n.on("selectchanged",function(i){var o=t.getModel();i.isFromClick?(pa("map","selectchanged",e,o,i),pa("pie","selectchanged",e,o,i)):i.fromAction==="select"?(pa("map","selected",e,o,i),pa("pie","selected",e,o,i)):i.fromAction==="unselect"&&(pa("map","unselected",e,o,i),pa("pie","unselected",e,o,i))})}function tr(n,e,t){for(var i;n&&!(e(n)&&(i=n,t));)n=n.__hostTarget||n.parent;return i}var dR=Math.round(Math.random()*9),fR=typeof Object.defineProperty=="function",gR=function(){function n(){this._id="__ec_inner_"+dR++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,t){var i=this._guard(e);return fR?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},n.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}();const vR=gR;var yR=xt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,o=e.width/2,r=e.height/2;n.moveTo(t,i-r),n.lineTo(t+o,i+r),n.lineTo(t-o,i+r),n.closePath()}}),mR=xt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,o=e.width/2,r=e.height/2;n.moveTo(t,i-r),n.lineTo(t+o,i),n.lineTo(t,i+r),n.lineTo(t-o,i),n.closePath()}}),xR=xt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=a*.6,f=a*.7;n.moveTo(t-c,l+s),n.arc(t,l,a,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+c-h*d,l+s+p*d,t,i-f,t,i),n.bezierCurveTo(t,i-f,t-c+h*d,l+s+p*d,t-c,l+s),n.closePath()}}),_R=xt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,i=e.width,o=e.x,r=e.y,a=i/3*2;n.moveTo(o,r),n.lineTo(o+a,r+t),n.lineTo(o,r+t/4*3),n.lineTo(o-a,r+t),n.lineTo(o,r),n.closePath()}}),bR={line:de,rect:It,roundRect:It,square:It,circle:jn,diamond:mR,pin:xR,arrow:_R,triangle:yR},wR={line:function(n,e,t,i,o){o.x1=n,o.y1=e+i/2,o.x2=n+t,o.y2=e+i/2},rect:function(n,e,t,i,o){o.x=n,o.y=e,o.width=t,o.height=i},roundRect:function(n,e,t,i,o){o.x=n,o.y=e,o.width=t,o.height=i,o.r=Math.min(t,i)/4},square:function(n,e,t,i,o){var r=Math.min(t,i);o.x=n,o.y=e,o.width=r,o.height=r},circle:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.r=Math.min(t,i)/2},diamond:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.width=t,o.height=i},pin:function(n,e,t,i,o){o.x=n+t/2,o.y=e+i/2,o.width=t,o.height=i},arrow:function(n,e,t,i,o){o.x=n+t/2,o.y=e+i/2,o.width=t,o.height=i},triangle:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.width=t,o.height=i}},gc={};C(bR,function(n,e){gc[e]=new n});var SR=xt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var i=gu(n,e,t),o=this.shape;return o&&o.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(n,e,t){var i=e.symbolType;if(i!=="none"){var o=gc[i];o||(i="rect",o=gc[i]),wR[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(n,o.shape,t)}}});function MR(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function oe(n,e,t,i,o,r,a){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=_x(n.slice(8),new dt(e,t,i,o),a?"center":"cover"):n.indexOf("path://")===0?l=Wu(n.slice(7),{},new dt(e,t,i,o),a?"center":"cover"):l=new SR({shape:{symbolType:n,x:e,y:t,width:i,height:o}}),l.__isEmptyBrush=s,l.setColor=MR,r&&l.setColor(r),l}function da(n){return G(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function er(n,e){if(n!=null)return G(n)||(n=[n,n]),[H(n[0],e[0])||0,H(ct(n[1],n[0]),e[1])||0]}function nr(n){return isFinite(n)}function IR(n,e,t){var i=e.x==null?0:e.x,o=e.x2==null?1:e.x2,r=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,o=o*t.width+t.x,r=r*t.height+t.y,a=a*t.height+t.y),i=nr(i)?i:0,o=nr(o)?o:1,r=nr(r)?r:0,a=nr(a)?a:0;var s=n.createLinearGradient(i,r,o,a);return s}function DR(n,e,t){var i=t.width,o=t.height,r=Math.min(i,o),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*i+t.x,s=s*o+t.y,l=l*r),a=nr(a)?a:.5,s=nr(s)?s:.5,l=l>=0&&nr(l)?l:.5;var u=n.createRadialGradient(a,s,0,a,s,l);return u}function Nf(n,e,t){for(var i=e.type==="radial"?DR(n,e,t):IR(n,e,t),o=e.colorStops,r=0;r<o.length;r++)i.addColorStop(o[r].offset,o[r].color);return i}function TR(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!0;return!1}function vc(n){return parseInt(n,10)}function fa(n,e,t){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(n);return(n[o]||vc(s[i])||vc(n.style[i]))-(vc(s[r])||0)-(vc(s[a])||0)|0}function CR(n,e){return!n||n==="solid"||!(e>0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:Dt(n)?[n]:G(n)?n:null}function Ef(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&CR(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var o=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;o&&o!==1&&(t=W(t,function(r){return r/o}),i/=o)}return[t,i]}var AR=new Zn(!0);function yc(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function Cb(n){return typeof n=="string"&&n!=="none"}function mc(n){var e=n.fill;return e!=null&&e!=="none"}function Ab(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function kb(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function Of(n,e,t){var i=sd(e.image,e.__image,t);if(_u(i)){var o=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(e.x||0,e.y||0),r.rotateSelf(0,0,(e.rotation||0)*Hl),r.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(r)}return o}}function kR(n,e,t,i){var o,r=yc(t),a=mc(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||AR,h=e.__dirty;if(!i){var p=t.fill,d=t.stroke,f=a&&!!p.colorStops,g=r&&!!d.colorStops,v=a&&!!p.image,y=r&&!!d.image,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0;(f||g)&&(b=e.getBoundingRect()),f&&(m=h?Nf(n,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=h?Nf(n,d,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=h||!e.__canvasFillPattern?Of(n,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(w=h||!e.__canvasStrokePattern?Of(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?n.fillStyle=m:v&&(_?n.fillStyle=_:a=!1),g?n.strokeStyle=x:y&&(w?n.strokeStyle=w:r=!1)}var S=e.getGlobalScale();c.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,D;n.setLineDash&&t.lineDash&&(o=Ef(e),M=o[0],D=o[1]);var T=!0;(u||h&Or)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),T=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(n,l?s:1),M&&(n.setLineDash(M),n.lineDashOffset=D),i||(t.strokeFirst?(r&&kb(n,t),a&&Ab(n,t)):(a&&Ab(n,t),r&&kb(n,t))),M&&n.setLineDash([])}function LR(n,e,t){var i=e.__image=sd(t.image,e.__image,e,e.onload);if(!(!i||!_u(i))){var o=t.x||0,r=t.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(i,u,c,t.sWidth,t.sHeight,o,r,a,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=a-u,p=s-c;n.drawImage(i,u,c,h,p,o,r,a,s)}else n.drawImage(i,o,r,a,s)}}function NR(n,e,t){var i,o=t.text;if(o!=null&&(o+=""),o){n.font=t.font||Ai,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var r=void 0,a=void 0;n.setLineDash&&t.lineDash&&(i=Ef(e),r=i[0],a=i[1]),r&&(n.setLineDash(r),n.lineDashOffset=a),t.strokeFirst?(yc(t)&&n.strokeText(o,t.x,t.y),mc(t)&&n.fillText(o,t.x,t.y)):(mc(t)&&n.fillText(o,t.x,t.y),yc(t)&&n.strokeText(o,t.x,t.y)),r&&n.setLineDash([])}}var Lb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Nb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Eb(n,e,t,i,o){var r=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Ye(n,o),r=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?Lo.opacity:a}(i||e.blend!==t.blend)&&(r||(Ye(n,o),r=!0),n.globalCompositeOperation=e.blend||Lo.blend);for(var s=0;s<Lb.length;s++){var l=Lb[s];(i||e[l]!==t[l])&&(r||(Ye(n,o),r=!0),n[l]=n.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(r||(Ye(n,o),r=!0),n.shadowColor=e.shadowColor||Lo.shadowColor),r}function Ob(n,e,t,i,o){var r=Bs(e,o.inHover),a=i?null:t&&Bs(t,o.inHover)||{};if(r===a)return!1;var s=Eb(n,r,a,i,o);if((i||r.fill!==a.fill)&&(s||(Ye(n,o),s=!0),Cb(r.fill)&&(n.fillStyle=r.fill)),(i||r.stroke!==a.stroke)&&(s||(Ye(n,o),s=!0),Cb(r.stroke)&&(n.strokeStyle=r.stroke)),(i||r.opacity!==a.opacity)&&(s||(Ye(n,o),s=!0),n.globalAlpha=r.opacity==null?1:r.opacity),e.hasStroke()){var l=r.lineWidth,u=l/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==u&&(s||(Ye(n,o),s=!0),n.lineWidth=u)}for(var c=0;c<Nb.length;c++){var h=Nb[c],p=h[0];(i||r[p]!==a[p])&&(s||(Ye(n,o),s=!0),n[p]=r[p]||h[1])}return s}function ER(n,e,t,i,o){return Eb(n,Bs(e,o.inHover),t&&Bs(t,o.inHover),i,o)}function Pb(n,e){var t=e.transform,i=n.dpr||1;t?n.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):n.setTransform(i,0,0,i,0,0)}function OR(n,e,t){for(var i=!1,o=0;o<n.length;o++){var r=n[o];i=i||r.isZeroArea(),Pb(e,r),e.beginPath(),r.buildPath(e,r.shape),e.clip()}t.allClipped=i}function PR(n,e){return n&&e?n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5]:!(!n&&!e)}var Rb=1,Vb=2,zb=3,Bb=4;function RR(n){var e=mc(n),t=yc(n);return!(n.lineDash||!(+e^+t)||e&&typeof n.fill!="string"||t&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function Ye(n,e){e.batchFill&&n.fill(),e.batchStroke&&n.stroke(),e.batchFill="",e.batchStroke=""}function Bs(n,e){return e&&n.__hoverStyle||n.style}function Fb(n,e){ir(n,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ir(n,e,t,i){var o=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Ue,e.__isRendered=!1;return}var r=e.__clipPaths,a=t.prevElClipPaths,s=!1,l=!1;if((!a||TR(r,a))&&(a&&a.length&&(Ye(n,t),n.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),r&&r.length&&(Ye(n,t),n.save(),OR(r,n,t),s=!0),t.prevElClipPaths=r),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof xt&&e.autoBatch&&RR(e.style);s||PR(o,u.transform)?(Ye(n,t),Pb(n,e)):c||Ye(n,t);var h=Bs(e,t.inHover);e instanceof xt?(t.lastDrawType!==Rb&&(l=!0,t.lastDrawType=Rb),Ob(n,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&n.beginPath(),kR(n,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof us?(t.lastDrawType!==zb&&(l=!0,t.lastDrawType=zb),Ob(n,e,u,l,t),NR(n,e,h)):e instanceof ge?(t.lastDrawType!==Vb&&(l=!0,t.lastDrawType=Vb),ER(n,e,u,l,t),LR(n,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==Bb&&(l=!0,t.lastDrawType=Bb),VR(n,e,t)),c&&i&&Ye(n,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function VR(n,e,t){var i=e.getDisplayables(),o=e.getTemporalDisplayables();n.save();var r={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},a,s;for(a=e.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ir(n,l,r,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),r.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ir(n,l,r,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),r.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var Pf=new vR,Gb=new ja(100),Wb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ga(n,e){if(n==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),o=i.painter.type==="svg";n.dirty&&Pf.delete(n);var r=Pf.get(n);if(r)return r;var a=nt(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 l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=o?1:1/t,Pf.set(n,s),n.dirty=!1,s;function l(u){for(var c=[t],h=!0,p=0;p<Wb.length;++p){var d=a[Wb[p]];if(d!=null&&!G(d)&&!X(d)&&!Dt(d)&&typeof d!="boolean"){h=!1;break}c.push(d)}var f;if(h){f=c.join(",")+(o?"-svg":"");var g=Gb.get(f);g&&(o?u.svgElement=g:u.image=g)}var v=Yb(a.dashArrayX),y=zR(a.dashArrayY),m=Hb(a.symbol),x=BR(v),_=Xb(y),w=!o&&ki.createCanvas(),b=o&&{tag:"g",attrs:{},key:"dcl",children:[]},S=D(),M;w&&(w.width=S.width*t,w.height=S.height*t,M=w.getContext("2d")),T(),h&&Gb.put(f,w||b),u.image=w,u.svgElement=b,u.svgWidth=S.width,u.svgHeight=S.height;function D(){for(var I=1,A=0,k=x.length;A<k;++A)I=B0(I,x[A]);for(var L=1,A=0,k=m.length;A<k;++A)L=B0(L,m[A].length);I*=L;var N=_*x.length*m.length;if(process.env.NODE_ENV!=="production"){var E=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.")};I>a.maxTileWidth&&E("maxTileWidth"),N>a.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(I,a.maxTileWidth)),height:Math.max(1,Math.min(N,a.maxTileHeight))}}function T(){M&&(M.clearRect(0,0,w.width,w.height),a.backgroundColor&&(M.fillStyle=a.backgroundColor,M.fillRect(0,0,w.width,w.height)));for(var I=0,A=0;A<y.length;++A)I+=y[A];if(I<=0)return;for(var k=-_,L=0,N=0,E=0;k<S.height;){if(L%2===0){for(var P=N/2%m.length,O=0,V=0,F=0;O<S.width*2;){for(var B=0,A=0;A<v[E].length;++A)B+=v[E][A];if(B<=0)break;if(V%2===0){var Y=(1-a.symbolSize)*.5,$=O+v[E][V]*Y,j=k+y[L]*Y,ft=v[E][V]*a.symbolSize,ut=y[L]*a.symbolSize,gt=F/2%m[P].length;J($,j,ft,ut,m[P][gt])}O+=v[E][V],++F,++V,V===v[E].length&&(V=0)}++E,E===v.length&&(E=0)}k+=y[L],++N,++L,L===y.length&&(L=0)}function J(vt,rt,q,at,Et){var bt=o?1:t,Gt=oe(Et,vt*bt,rt*bt,q*bt,at*bt,a.color,a.symbolKeepAspect);if(o){var Wt=i.painter.renderOneToVNode(Gt);Wt&&b.children.push(Wt)}else Fb(M,Gt)}}}}function Hb(n){if(!n||n.length===0)return[["rect"]];if(X(n))return[[n]];for(var e=!0,t=0;t<n.length;++t)if(!X(n[t])){e=!1;break}if(e)return Hb([n]);for(var i=[],t=0;t<n.length;++t)X(n[t])?i.push([n[t]]):i.push(n[t]);return i}function Yb(n){if(!n||n.length===0)return[[0,0]];if(Dt(n)){var e=Math.ceil(n);return[[e,e]]}for(var t=!0,i=0;i<n.length;++i)if(!Dt(n[i])){t=!1;break}if(t)return Yb([n]);for(var o=[],i=0;i<n.length;++i)if(Dt(n[i])){var e=Math.ceil(n[i]);o.push([e,e])}else{var e=W(n[i],function(s){return Math.ceil(s)});e.length%2===1?o.push(e.concat(e)):o.push(e)}return o}function zR(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(Dt(n)){var e=Math.ceil(n);return[e,e]}var t=W(n,function(i){return Math.ceil(i)});return n.length%2?t.concat(t):t}function BR(n){return W(n,function(e){return Xb(e)})}function Xb(n){for(var e=0,t=0;t<n.length;++t)e+=n[t];return n.length%2===1?e*2:e}function FR(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=ga(s,e)}});var o=i.getVisual("decal");if(o){var r=i.getVisual("style");r.decal=ga(o,e)}}})}var GR=new Je;const Nn=GR;var xc={};function WR(n,e){process.env.NODE_ENV!=="production"&&xc[n]&&we("Already has an implementation of "+n+"."),xc[n]=e}function HR(n){return process.env.NODE_ENV!=="production"&&(xc[n]||we("Implementation of "+n+" doesn't exists.")),xc[n]}var YR=1,XR=800,UR=900,ZR=1e3,jR=2e3,qR=5e3,Ub=1e3,KR=1100,Rf=2e3,Zb=3e3,$R=4e3,_c=4500,QR=4600,JR=5e3,tV=6e3,jb=7e3,eV={PROCESSOR:{FILTER:ZR,SERIES_FILTER:XR,STATISTIC:qR},VISUAL:{LAYOUT:Ub,PROGRESSIVE_LAYOUT:KR,GLOBAL:Rf,CHART:Zb,POST_CHART_LAYOUT:QR,COMPONENT:$R,BRUSH:JR,CHART_ITEM:_c,ARIA:tV,DECAL:jb}},De="__flagInMainProcess",Xe="__pendingUpdate",Vf="__needsUpdateStatus",qb=/^[a-zA-Z0-9_]+$/,zf="__connectUpdateStatus",Kb=0,nV=1,iV=2;function $b(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){qe(this.id);return}return Jb(this,n,e)}}function Qb(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jb(this,n,e)}}function Jb(n,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Je.prototype[e].apply(n,t)}var tw=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Je),ew=tw.prototype;ew.on=Qb("on"),ew.off=Qb("off");var va,Bf,bc,$i,Ff,Gf,Wf,Fs,Gs,nw,iw,Hf,ow,wc,rw,aw,fn,sw,lw=function(n){R(e,n);function e(t,i,o){var r=n.call(this,new uR)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],o=o||{},X(i)&&(i=uw[i]),r._dom=t;var a="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=St.hasGlobalWindow?window:global;a=u.__ECHARTS__DEFAULT__RENDERER__||a,s=ct(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var c=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=c??l}var h=r._zr=A0(t,{renderer:o.renderer||a,devicePixelRatio:o.devicePixelRatio,width:o.width,height:o.height,ssr:o.ssr,useDirtyRect:ct(o.useDirtyRect,l),useCoarsePointer:ct(o.useCoarsePointer,s),pointerSize:o.pointerSize});r._ssr=o.ssr,r._throttledZrFlush=Af(Z(h.flush,h),17),i=it(i),i&&I_(i,!0),r._theme=i,r._locale=fO(o.locale||zx),r._coordSysMgr=new sa;var p=r._api=rw(r);function d(f,g){return f.__prio-g.__prio}return ql(Mc,d),ql(Xf,d),r._scheduler=new _b(r,p,Xf,Mc),r._messageCenter=new tw,r._initEvents(),r.resize=Z(r.resize,r),h.animation.on("frame",r._onframe,r),nw(h,r),iw(h,r),Fl(r),r}return e.prototype._onframe=function(){if(!this._disposed){sw(this);var t=this._scheduler;if(this[Xe]){var i=this[Xe].silent;this[De]=!0;try{va(this),$i.update.call(this,null,this[Xe].updateParams)}catch(l){throw this[De]=!1,this[Xe]=null,l}this._zr.flush(),this[De]=!1,this[Xe]=null,Fs.call(this,i),Gs.call(this,i)}else if(t.unfinished){var o=YR,r=this._model,a=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),Gf(this,r),t.performVisualTasks(r),wc(this,this._model,a,"remain",{}),o-=+new Date-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,o){if(this[De]){process.env.NODE_ENV!=="production"&&we("`setOption` should not be called during main process.");return}if(this._disposed){qe(this.id);return}var r,a,s;if(tt(i)&&(o=i.lazyUpdate,r=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[De]=!0,!this._model||i){var l=new jO(this._api),u=this._theme,c=this._model=new y_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:a},Uf);var h={seriesTransition:s,optionChanged:!0};if(o)this[Xe]={silent:r,updateParams:h},this[De]=!1,this.getZr().wakeUp();else{try{va(this),$i.update.call(this,null,h)}catch(p){throw this[Xe]=null,this[De]=!1,p}this._ssr||this._zr.flush(),this[Xe]=null,this[De]=!1,Fs.call(this,r),Gs.call(this,r)}},e.prototype.setTheme=function(){Dn("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||St.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&ee("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;if(process.env.NODE_ENV!=="production"&&i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;if(process.env.NODE_ENV!=="production"&&i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(St.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return C(i,function(o){o.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){qe(this.id);return}t=t||{};var i=t.excludeComponents,o=this._model,r=[],a=this;C(i,function(l){o.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(r.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(r,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){qe(this.id);return}var i=t.type==="svg",o=this.group,r=Math.min,a=Math.max,s=1/0;if(cw[o]){var l=s,u=s,c=-s,h=-s,p=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();C(Hs,function(x,_){if(x.group===o){var w=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(it(t)),b=x.getDom().getBoundingClientRect();l=r(b.left,l),u=r(b.top,u),c=a(b.right,c),h=a(b.bottom,h),p.push({dom:w,left:b.left,top:b.top})}}),l*=d,u*=d,c*=d,h*=d;var f=c-l,g=h-u,v=ki.createCanvas(),y=A0(v,{renderer:i?"svg":"canvas"});if(y.resize({width:f,height:g}),i){var m="";return C(p,function(x){var _=x.left-l,w=x.top-u;m+='<g transform="translate('+_+","+w+')">'+x.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new It({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),C(p,function(x){var _=new ge({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});y.add(_)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Ff(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Ff(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){qe(this.id);return}var o=this._model,r,a=rs(o,t);return C(a,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)r=r||!!c.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?r=r||h.containPoint(i,u):process.env.NODE_ENV!=="production"&&Zt(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Zt(l+": containPoint is not supported")},this)},this),!!r},e.prototype.getVisual=function(t,i){var o=this._model,r=rs(o,t,{defaultMainType:"series"}),a=r.seriesModel;process.env.NODE_ENV!=="production"&&(a||Zt("There is no specified series model"));var s=a.getData(),l=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?s.indexOfRawIndex(r.dataIndex):null;return l!=null?Lf(s,l,i):zs(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(oV,function(i){var o=function(r){var a=t.getModel(),s=r.target,l,u=i==="globalout";if(u?l={}:s&&tr(s,function(f){var g=st(f);if(g&&g.dataIndex!=null){var v=g.dataModel||a.getSeriesByIndex(g.seriesIndex);return l=v&&v.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=z({},g.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var p=c&&h!=null&&a.getComponent(c,h),d=p&&t[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(p&&d)&&Zt("model or view can not be found by params"),l.event=r,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},t.trigger(i,l)}};o.zrEventfulCallAtLast=!0,t._zr.on(i,o,t)}),C(Ws,function(i,o){t._messageCenter.on(o,function(r){this.trigger(o,r)},t)}),C(["selectchanged"],function(i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),pR(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){qe(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){qe(this.id);return}this._disposed=!0;var t=this.getDom();t&&q0(this.getDom(),jf,"");var i=this,o=i._api,r=i._model;C(i._componentsViews,function(a){a.dispose(r,o)}),C(i._chartsViews,function(a){a.dispose(r,o)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Hs[i.id]},e.prototype.resize=function(t){if(this[De]){process.env.NODE_ENV!=="production"&&we("`resize` should not be called during main process.");return}if(this._disposed){qe(this.id);return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var o=i.resetOption("media"),r=t&&t.silent;this[Xe]&&(r==null&&(r=this[Xe].silent),o=!0,this[Xe]=null),this[De]=!0;try{o&&va(this),$i.update.call(this,{type:"resize",animation:z({duration:0},t&&t.animation)})}catch(a){throw this[De]=!1,a}this[De]=!1,Fs.call(this,r),Gs.call(this,r)}},e.prototype.showLoading=function(t,i){if(this._disposed){qe(this.id);return}if(tt(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!Zf[t]){process.env.NODE_ENV!=="production"&&Zt("Loading effects "+t+" not exists.");return}var o=Zf[t](this._api,i),r=this._zr;this._loadingFX=o,r.add(o)},e.prototype.hideLoading=function(){if(this._disposed){qe(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=z({},t);return i.type=Ws[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){qe(this.id);return}if(tt(i)||(i={silent:!!i}),!!Sc[t.type]&&this._model){if(this[De]){this._pendingActions.push(t);return}var o=i.silent;Wf.call(this,t,o);var r=i.flush;r?this._zr.flush():r!==!1&&St.browser.weChat&&this._throttledZrFlush(),Fs.call(this,o),Gs.call(this,o)}},e.prototype.updateLabelLayout=function(){Nn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){qe(this.id);return}var i=t.seriesIndex,o=this.getModel(),r=o.getSeriesByIndex(i);process.env.NODE_ENV!=="production"&&et(t.data&&r),r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){va=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),Bf(h,!0),Bf(h,!1),p.plan()},Bf=function(h,p){for(var d=h._model,f=h._scheduler,g=p?h._componentsViews:h._chartsViews,v=p?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,x=0;x<g.length;x++)g[x].__alive=!1;p?d.eachComponent(function(b,S){b!=="series"&&_(S)}):d.eachSeries(_);function _(b){var S=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,D=!S&&v[M];if(!D){var T=Hn(b.type),I=p?qt.getClass(T.main,T.sub):zt.getClass(T.sub);process.env.NODE_ENV!=="production"&&et(I,T.sub+" does not exist."),D=new I,D.init(d,m),v[M]=D,g.push(D),y.add(D.group)}b.__viewId=D.__id=M,D.__alive=!0,D.__model=b,D.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&f.prepareView(D,b,d,m)}for(var x=0;x<g.length;){var w=g[x];w.__alive?x++:(!p&&w.renderTask.dispose(),y.remove(w.group),w.dispose(d,m),g.splice(x,1),v[w.__id]===w&&delete v[w.__id],w.__id=w.group.__ecComponentInfo=null)}},bc=function(h,p,d,f,g){var v=h._model;if(v.setUpdatePayload(d),!f){C([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[f+"Id"]=d[f+"Id"],y[f+"Index"]=d[f+"Index"],y[f+"Name"]=d[f+"Name"];var m={mainType:f,query:y};g&&(m.subType=g);var x=d.excludeSeriesId,_;x!=null&&(_=K(),C(Nt(x),function(b){var S=re(b,null);S!=null&&_.set(S,!0)})),v&&v.eachComponent(m,function(b){var S=_&&_.get(b.id)!=null;if(!S)if(Z1(d))if(b instanceof Ut)d.type===Bo&&!d.notBlur&&!b.get(["emphasis","disabled"])&&aE(b,d,h._api);else{var M=kd(b.mainType,b.componentIndex,d.name,h._api),D=M.focusSelf,T=M.dispatchers;d.type===Bo&&D&&!d.notBlur&&Ad(b.mainType,b.componentIndex,h._api),T&&C(T,function(I){d.type===Bo?vi(I):yi(I)})}else Nd(d)&&b instanceof Ut&&(uE(b,d,h._api),X1(b),fn(h))},h),v&&v.eachComponent(m,function(b){var S=_&&_.get(b.id)!=null;S||w(h[f==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function w(b){b&&b.__alive&&b[p]&&b[p](b.__model,v,h._api,d)}},$i={prepareAndUpdate:function(h){va(this),$i.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var d=this._model,f=this._api,g=this._zr,v=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(h),y.restoreData(d,h),y.performSeriesTasks(d),v.create(d,f),y.performDataProcessorTasks(d,h),Gf(this,d),v.update(d,f),t(d),y.performVisualTasks(d,h),Hf(this,d,f,h,p);var m=d.get("backgroundColor")||"transparent",x=d.get("darkMode");g.setBackgroundColor(m),x!=null&&x!=="auto"&&g.setDarkMode(x),Nn.trigger("afterupdate",d,f)}},updateTransform:function(h){var p=this,d=this._model,f=this._api;if(d){d.setUpdatePayload(h);var g=[];d.eachComponent(function(y,m){if(y!=="series"){var x=p.getViewOfComponentModel(m);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(m,d,f,h);_&&_.update&&g.push(x)}else g.push(x)}});var v=K();d.eachSeries(function(y){var m=p._chartsMap[y.__viewId];if(m.updateTransform){var x=m.updateTransform(y,d,f,h);x&&x.update&&v.set(y.uid,1)}else v.set(y.uid,1)}),t(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0,dirtyMap:v}),wc(this,d,f,h,{},v),Nn.trigger("afterupdate",d,f)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),zt.markUpdateMethod(h,"updateView"),t(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),Hf(this,p,this._api,h,{}),Nn.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,d=this._model;d&&(d.setUpdatePayload(h),d.eachSeries(function(f){f.getData().clearAllVisual()}),zt.markUpdateMethod(h,"updateVisual"),t(d),this._scheduler.performVisualTasks(d,h,{visualType:"visual",setDirty:!0}),d.eachComponent(function(f,g){if(f!=="series"){var v=p.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,d,p._api,h)}}),d.eachSeries(function(f){var g=p._chartsMap[f.__viewId];g.updateVisual(f,d,p._api,h)}),Nn.trigger("afterupdate",d,this._api))},updateLayout:function(h){$i.update.call(this,h)}},Ff=function(h,p,d,f){if(h._disposed){qe(h.id);return}for(var g=h._model,v=h._coordSysMgr.getCoordinateSystems(),y,m=rs(g,d),x=0;x<v.length;x++){var _=v[x];if(_[p]&&(y=_[p](g,m,f))!=null)return y}process.env.NODE_ENV!=="production"&&Zt("No coordinate system that supports "+p+" found by the given finder.")},Gf=function(h,p){var d=h._chartsMap,f=h._scheduler;p.eachSeries(function(g){f.updateStreamModes(g,d[g.__viewId])})},Wf=function(h,p){var d=this,f=this.getModel(),g=h.type,v=h.escapeConnect,y=Sc[g],m=y.actionInfo,x=(m.update||"update").split(":"),_=x.pop(),w=x[0]!=null&&Hn(x[0]);this[De]=!0;var b=[h],S=!1;h.batch&&(S=!0,b=W(h.batch,function(L){return L=nt(z({},L),h),L.batch=null,L}));var M=[],D,T=Nd(h),I=Z1(h);if(I&&Y1(this._api),C(b,function(L){if(D=y.action(L,d._model,d._api),D=D||z({},L),D.type=m.event||D.type,M.push(D),I){var N=id(h),E=N.queryOptionMap,P=N.mainTypeSpecified,O=P?E.keys()[0]:"series";bc(d,_,L,O),fn(d)}else T?(bc(d,_,L,"series"),fn(d)):w&&bc(d,_,L,w.main,w.sub)}),_!=="none"&&!I&&!T&&!w)try{this[Xe]?(va(this),$i.update.call(this,h),this[Xe]=null):$i[_].call(this,h)}catch(L){throw this[De]=!1,L}if(S?D={type:m.event||g,escapeConnect:v,batch:M}:D=M[0],this[De]=!1,!p){var A=this._messageCenter;if(A.trigger(D.type,D),T){var k={type:"selectchanged",escapeConnect:v,selected:cE(f),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};A.trigger(k.type,k)}}},Fs=function(h){for(var p=this._pendingActions;p.length;){var d=p.shift();Wf.call(this,d,h)}},Gs=function(h){!h&&this.trigger("updated")},nw=function(h,p){h.on("rendered",function(d){p.trigger("rendered",d),h.animation.isFinished()&&!p[Xe]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},iw=function(h,p){h.on("mouseover",function(d){var f=d.target,g=tr(f,Hi);g&&(sE(g,d,p._api),fn(p))}).on("mouseout",function(d){var f=d.target,g=tr(f,Hi);g&&(lE(g,d,p._api),fn(p))}).on("click",function(d){var f=d.target,g=tr(f,function(m){return st(m).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",y=st(g);p._api.dispatchAction({type:v,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){var p=[],d=[],f=!1;if(h.eachComponent(function(m,x){var _=x.get("zlevel")||0,w=x.get("z")||0,b=x.getZLevelKey();f=f||!!b,(m==="series"?d:p).push({zlevel:_,z:w,idx:x.componentIndex,type:m,key:b})}),f){var g=p.concat(d),v,y;ql(g,function(m,x){return m.zlevel===x.zlevel?m.z-x.z:m.zlevel-x.zlevel}),C(g,function(m){var x=h.getComponent(m.type,m.idx),_=m.zlevel,w=m.key;v!=null&&(_=Math.max(v,_)),w?(_===v&&w!==y&&_++,y=w):y&&(_===v&&_++,y=""),v=_,x.setZLevel(_)})}}Hf=function(h,p,d,f,g){i(p),ow(h,p,d,f,g),C(h._chartsViews,function(v){v.__alive=!1}),wc(h,p,d,f,g),C(h._chartsViews,function(v){v.__alive||v.remove(p,d)})},ow=function(h,p,d,f,g,v){C(v||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,p,d,f),s(m,y),c(m,y)})},wc=function(h,p,d,f,g,v){var y=h._scheduler;g=z(g||{},{updatedSeries:p.getSeries()}),Nn.trigger("series:beforeupdate",p,d,g);var m=!1;p.eachSeries(function(x){var _=h._chartsMap[x.__viewId];_.__alive=!0;var w=_.renderTask;y.updatePayload(w,f),u(x,_),v&&v.get(x.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),_.group.silent=!!x.get("silent"),a(x,_),X1(x)}),y.unfinished=m||y.unfinished,Nn.trigger("series:layoutlabels",p,d,g),Nn.trigger("series:transition",p,d,g),p.eachSeries(function(x){var _=h._chartsMap[x.__viewId];s(x,_),c(x,_)}),r(h,p),Nn.trigger("series:afterupdate",p,d,g)},fn=function(h){h[Vf]=!0,h.getZr().wakeUp()},sw=function(h){h[Vf]&&(h.getZr().storage.traverse(function(p){qr(p)||o(p)}),h[Vf]=!1)};function o(h){for(var p=[],d=h.currentStates,f=0;f<d.length;f++){var g=d[f];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}h.selected&&h.states.select&&p.push("select"),h.hoverState===Tu&&h.states.emphasis?p.push("emphasis"):h.hoverState===cs&&h.states.blur&&p.push("blur"),h.useStates(p)}function r(h,p){var d=h._zr,f=d.storage,g=0;f.traverse(function(v){v.isGroup||g++}),g>p.get("hoverLayerThreshold")&&!St.node&&!St.worker&&p.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=h._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function a(h,p){var d=h.get("blendMode")||null;p.eachRendered(function(f){f.isGroup||(f.style.blend=d)})}function s(h,p){if(!h.preventAutoZ){var d=h.get("z")||0,f=h.get("zlevel")||0;p.eachRendered(function(g){return l(g,d,f,-1/0),!0})}}function l(h,p,d,f){var g=h.getTextContent(),v=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),x=0;x<m.length;x++)f=Math.max(l(m[x],p,d,f),f);else h.z=p,h.zlevel=d,f=Math.max(h.z2,f);if(g&&(g.z=p,g.zlevel=d,isFinite(f)&&(g.z2=f+2)),v){var _=h.textGuideLineConfig;v.z=p,v.zlevel=d,isFinite(f)&&(v.z2=f+(_&&_.showAbove?1:-1))}return f}function u(h,p){p.eachRendered(function(d){if(!qr(d)){var f=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),f&&f.stateTransition&&(f.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(h,p){var d=h.getModel("stateAnimation"),f=h.isAnimationEnabled(),g=d.get("duration"),v=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qr(y))return;if(y instanceof xt&&gE(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(f){y.stateTransition=v;var x=y.getTextContent(),_=y.getTextGuideLine();x&&(x.stateTransition=v),_&&(_.stateTransition=v)}y.__dirty&&o(y)}})}rw=function(h){return new(function(p){R(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(f){for(;f;){var g=f.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);f=f.parent}},d.prototype.enterEmphasis=function(f,g){vi(f,g),fn(h)},d.prototype.leaveEmphasis=function(f,g){yi(f,g),fn(h)},d.prototype.enterBlur=function(f){F1(f),fn(h)},d.prototype.leaveBlur=function(f){Td(f),fn(h)},d.prototype.enterSelect=function(f){G1(f),fn(h)},d.prototype.leaveSelect=function(f){W1(f),fn(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(f){return h.getViewOfComponentModel(f)},d.prototype.getViewOfSeriesModel=function(f){return h.getViewOfSeriesModel(f)},d}(m_))(h)},aw=function(h){function p(d,f){for(var g=0;g<d.length;g++){var v=d[g];v[zf]=f}}C(Ws,function(d,f){h._messageCenter.on(f,function(g){if(cw[h.group]&&h[zf]!==Kb){if(g&&g.escapeConnect)return;var v=h.makeActionFromEvent(g),y=[];C(Hs,function(m){m!==h&&m.group===h.group&&y.push(m)}),p(y,Kb),C(y,function(m){m[zf]!==nV&&m.dispatchAction(v)}),p(y,iV)}})})}}(),e}(Je),Yf=lw.prototype;Yf.on=$b("on"),Yf.off=$b("off"),Yf.one=function(n,e,t){var i=this;Dn("ECharts#one is deprecated.");function o(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];e&&e.apply&&e.apply(this,r),i.off(n,o)}this.on.call(this,n,o,t)};var oV=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function qe(n){process.env.NODE_ENV!=="production"&&Zt("Instance "+n+" has been disposed")}var Sc={},Ws={},Xf=[],Uf=[],Mc=[],uw={},Zf={},Hs={},cw={},rV=+new Date-0,jf="_echarts_instance_";function aV(n,e,t){var i=!(t&&t.ssr);if(i){if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Initialize failed: invalid dom.");var o=sV(n);if(o)return process.env.NODE_ENV!=="production"&&Zt("There is a chart instance already initialized on the dom."),o;process.env.NODE_ENV!=="production"&&kr(n)&&n.nodeName.toUpperCase()!=="CANVAS"&&(!n.clientWidth&&(!t||t.width==null)||!n.clientHeight&&(!t||t.height==null))&&Zt("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 r=new lw(n,e,t);return r.id="ec_"+rV++,Hs[r.id]=r,i&&q0(n,jf,r.id),aw(r),Nn.trigger("afterinit",r),r}function sV(n){return Hs[eN(n,jf)]}function hw(n,e){uw[n]=e}function pw(n){yt(Uf,n)<0&&Uf.push(n)}function dw(n,e){Kf(Xf,n,e,jR)}function lV(n){qf("afterinit",n)}function uV(n){qf("afterupdate",n)}function qf(n,e){Nn.on(n,e)}function Qn(n,e,t){Q(e)&&(t=e,e="");var i=tt(n)?n.type:[n,n={event:e}][0];n.event=(n.event||i).toLowerCase(),e=n.event,!Ws[e]&&(et(qb.test(i)&&qb.test(e)),Sc[i]||(Sc[i]={action:t,actionInfo:n}),Ws[e]=i)}function cV(n,e){sa.register(n,e)}function hV(n,e){Kf(Mc,n,e,Ub,"layout")}function or(n,e){Kf(Mc,n,e,Zb,"visual")}var fw=[];function Kf(n,e,t,i,o){if((Q(e)||tt(e))&&(t=e,e=i),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");C(n,function(a){et(a.__raw!==t)})}if(!(yt(fw,t)>=0)){fw.push(t);var r=_b.wrapStageHandler(t,o);r.__prio=e,r.__raw=t,n.push(r)}}function gw(n,e){Zf[n]=e}function pV(n,e,t){var i=HR("registerMap");i&&i(n,e,t)}var vw=wP;or(Rf,ZP),or(_c,jP),or(_c,qP),or(Rf,cR),or(_c,hR),or(jb,FR),pw(I_),dw(UR,nP),gw("default",KP),Qn({type:Bo,event:Bo,update:Bo},$t),Qn({type:Cu,event:Cu,update:Cu},$t),Qn({type:ps,event:ps,update:ps},$t),Qn({type:Au,event:Au,update:Au},$t),Qn({type:ds,event:ds,update:ds},$t),hw("light",sR),hw("dark",lR);var yw=[],dV={registerPreprocessor:pw,registerProcessor:dw,registerPostInit:lV,registerPostUpdate:uV,registerUpdateLifecycle:qf,registerAction:Qn,registerCoordinateSystem:cV,registerLayout:hV,registerVisual:or,registerTransform:vw,registerLoading:gw,registerMap:pV,registerImpl:WR,PRIORITY:eV,ComponentModel:wt,ComponentView:qt,SeriesModel:Ut,ChartView:zt,registerComponentModel:function(n){wt.registerClass(n)},registerComponentView:function(n){qt.registerClass(n)},registerSeriesModel:function(n){Ut.registerClass(n)},registerChartView:function(n){zt.registerClass(n)},registerSubTypeDefaulter:function(n,e){wt.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){EL(n,e)}};function mt(n){if(G(n)){C(n,function(e){mt(e)});return}yt(yw,n)>=0||(yw.push(n),Q(n)&&(n={install:n}),n.install(dV))}function Ys(n){return n==null?0:n.length||1}function mw(n){return n}var fV=function(){function n(e,t,i,o,r,a){this._old=e,this._new=t,this._oldKeyGetter=i||mw,this._newKeyGetter=o||mw,this.context=r,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},o=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=o[a],l=i[s],u=Ys(l);if(u>1){var c=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(c,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(r,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},o={},r=[],a=[];this._initIndexMap(e,i,r,"_oldKeyGetter"),this._initIndexMap(t,o,a,"_newKeyGetter");for(var s=0;s<r.length;s++){var l=r[s],u=i[l],c=o[l],h=Ys(u),p=Ys(c);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),o[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),o[l]=null;else if(h===1&&p===1)this._update&&this._update(c,u),o[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),o[l]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,o)},n.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var o=e[i],r=t[o],a=Ys(r);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(r[s]);else a===1&&this._add&&this._add(r);t[o]=null}},n.prototype._initIndexMap=function(e,t,i,o){for(var r=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[o](e[a],a);if(r||(i[a]=s),!!t){var l=t[s],u=Ys(l);u===0?(t[s]=a,r&&i.push(s)):u===1?t[s]=[l,a]:l.push(a)}}},n}();const _i=fV;var gV=function(){function n(e,t){this._encode=e,this._schema=t}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 vV(n,e){var t={},i=t.encode={},o=K(),r=[],a=[],s={};C(n.dimensions,function(p){var d=n.getDimensionInfo(p),f=d.coordDim;if(f){process.env.NODE_ENV!=="production"&&et(of.get(f)==null);var g=d.coordDimIndex;$f(i,f)[g]=p,d.isExtraCoord||(o.set(f,1),yV(d.type)&&(r[0]=p),$f(s,f)[g]=n.getDimensionIndex(d.name)),d.defaultTooltip&&a.push(p)}of.each(function(v,y){var m=$f(i,y),x=d.otherDims[y];x!=null&&x!==!1&&(m[x]=d.name)})});var l=[],u={};o.each(function(p,d){var f=i[d];u[d]=f[0],l=l.concat(f)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=W(l,function(p){return n.getDimensionInfo(p).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(r=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,t.userOutput=new gV(s,e),t}function $f(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function Ic(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function yV(n){return!(n==="ordinal"||n==="time")}var mV=function(){function n(e){this.otherDims={},e!=null&&z(this,e)}return n}();const Dc=mV;var xV=Mt(),_V={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},xw=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=ww(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return ct(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=A_(this.source),i=!Sw(e),o="",r=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===a)l=t?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=t?p.name:null,u=p.type)}r.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(o+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),o+="$",o+=_V[u]||"f",c&&(o+=c.uid),o+="$"}var d=this.source,f=[d.seriesLayoutBy,d.startIndex,o].join("$$");return{dimensions:r,hash:f}},n.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var o=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(o=r.name),i++;else{var a=this.getSourceDimension(t);a&&(o=a.name)}e.push(o)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function _w(n){return n instanceof xw}function bw(n){for(var e=K(),t=0;t<(n||[]).length;t++){var i=n[t],o=tt(i)?i.name:i;o!=null&&e.get(o)==null&&e.set(o,t)}return e}function ww(n){var e=xV(n);return e.dimNameMap||(e.dimNameMap=bw(n.dimensionsDefine))}function Sw(n){return n>30}var Xs=tt,Qi=W,bV=typeof Int32Array>"u"?Array:Int32Array,wV="e\0\0",Mw=-1,SV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],MV=["_approximateExtent"],Iw,Tc,Us,ya,Qf,Cc,Jf,IV=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,o=!1;_w(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(o=!0,i=e),i=i||["x","y"];for(var r={},a=[],s={},l=!1,u={},c=0;c<i.length;c++){var h=i[c],p=X(h)?new Dc({name:h}):h instanceof Dc?h:new Dc(h),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),r[d]=p,u[d]!=null&&(l=!0),p.createInvertedIndices&&(s[d]=[]),f.itemName===0&&(this._nameDimIdx=c),f.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&et(o||p.storeDimIndex>=0),o&&(p.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=K();C(a,function(v){g.set(r[v].storeDimIndex,v)})}}return n.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var o=this._schema.getSourceDimension(t);if(o)return o.name},n.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(Dt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var o=i.encode[e];return o?o[t]:null},n.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,t,i){var o=this,r;if(e instanceof wf&&(r=e),!r){var a=this.dimensions,s=ff(e)||be(e)?new N_(e,a.length):e;r=new wf;var l=Qi(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=vV(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},n.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t.length),o=i.start,r=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=o;s<r;s++){var l=s-o;this._nameList[s]=t[l],a&&Jf(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var o=this._dimInfos[t[i]];o.ordinalMeta&&e.collectOrdinalMeta(o.storeDimIndex,o.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==mi&&!e.fillStorage},n.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,o=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList,s=o.getSource().sourceFormat,l=s===cn;if(l&&!o.pure)for(var u=[],c=e;c<t;c++){var h=o.getItem(c,u);if(!this.hasItemOption&&WL(h)&&(this.hasItemOption=!0),h){var p=h.name;r[c]==null&&p!=null&&(r[c]=re(p,null));var d=h.id;a[c]==null&&d!=null&&(a[c]=re(d,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Jf(this,c);Iw(this)}},n.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,t){Xs(e)?z(this._calculationInfo,e):this._calculationInfo[e]=t},n.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Us(this,this._nameDimIdx,t)),i==null&&(i=""),i},n.prototype._getCategory=function(e,t){var i=this._store.get(e,t),o=this._store.getOrdinalMeta(e);return o?o.categories[i]:i},n.prototype.getId=function(e){return Tc(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,t){var i=this._store,o=this._dimInfos[e];if(o)return i.get(o.storeDimIndex,t)},n.prototype.getByRawIndex=function(e,t){var i=this._store,o=this._dimInfos[e];if(o)return i.getByRawIndex(o.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,t){var i=this,o=this._store;return G(e)?o.getValues(Qi(e,function(r){return i._getStoreDimIndex(r)}),t):o.getValues(e)},n.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,o=t.length;i<o;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("Do not supported yet");var o=i[t];return o==null||isNaN(o)?Mw:o},n.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},n.prototype.each=function(e,t,i){Q(e)&&(i=t,t=e,e=[]);var o=i||this,r=Qi(ya(e),this._getStoreDimIndex,this);this._store.each(r,o?Z(t,o):t)},n.prototype.filterSelf=function(e,t,i){Q(e)&&(i=t,t=e,e=[]);var o=i||this,r=Qi(ya(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,o?Z(t,o):t),this},n.prototype.selectRange=function(e){var t=this,i={},o=_t(e);return C(o,function(r){var a=t._getStoreDimIndex(r);i[a]=e[r]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(e,t,i){Q(e)&&(i=t,t=e,e=[]),i=i||this;var o=[];return this.each(e,function(){o.push(t&&t.apply(this,arguments))},i),o},n.prototype.map=function(e,t,i,o){var r=i||o||this,a=Qi(ya(e),this._getStoreDimIndex,this),s=Cc(this);return s._store=this._store.map(a,r?Z(t,r):t),s},n.prototype.modify=function(e,t,i,o){var r=this,a=i||o||this;process.env.NODE_ENV!=="production"&&C(ya(e),function(l){var u=r.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Qi(ya(e),this._getStoreDimIndex,this);this._store.modify(s,a?Z(t,a):t)},n.prototype.downSample=function(e,t,i,o){var r=Cc(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,i,o),r},n.prototype.lttbDownSample=function(e,t){var i=Cc(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Vt(i,t,t&&t.ecModel)},n.prototype.diff=function(e){var t=this;return new _i(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Tc(e,i)},function(i){return Tc(t,i)})},n.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},n.prototype.setVisual=function(e,t){this._visual=this._visual||{},Xs(e)?z(this._visual,e):this._visual[e]=t},n.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],o=i&&i[t];return o??this.getVisual(t)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,o=i[e];o||(o=i[e]={});var r=o[t];return r==null&&(r=this.getVisual(t),G(r)?r=r.slice():Xs(r)&&(r=z({},r)),o[t]=r),r},n.prototype.setItemVisual=function(e,t,i){var o=this._itemVisuals[e]||{};this._itemVisuals[e]=o,Xs(t)?z(o,t):o[t]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){Xs(e)?z(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?z(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;wd(i,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(i,o){i&&e&&e.call(t,i,o)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Qi(this.dimensions,this._getDimInfo,this),this.hostModel)),Qf(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var i=this[e];Q(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var o=i.apply(this,arguments);return t.apply(this,[o].concat(ep(arguments)))})},n.internalField=function(){Iw=function(e){var t=e._invertedIndicesMap;C(t,function(i,o){var r=e._dimInfos[o],a=r.ordinalMeta,s=e._store;if(a){i=t[o]=new bV(a.categories.length);for(var l=0;l<i.length;l++)i[l]=Mw;for(var l=0;l<s.count();l++)i[s.get(r.storeDimIndex,l)]=l}})},Us=function(e,t,i){return re(e._getCategory(t,i),null)},Tc=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Us(e,e._idDimIdx,t)),i==null&&(i=wV+t),i},ya=function(e){return G(e)||(e=e!=null?[e]:[]),e},Cc=function(e){var t=new n(e._schema?e._schema:Qi(e.dimensions,e._getDimInfo,e),e.hostModel);return Qf(t,e),t},Qf=function(e,t){C(SV.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,C(MV,function(i){e[i]=it(t[i])}),e._calculationInfo=z({},t._calculationInfo)},Jf=function(e,t){var i=e._nameList,o=e._idList,r=e._nameDimIdx,a=e._idDimIdx,s=i[t],l=o[t];if(s==null&&r!=null&&(i[t]=s=Us(e,r,t)),l==null&&a!=null&&(o[t]=l=Us(e,a,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),o[t]=l}}}(),n}();const Ne=IV;function Zs(n,e){ff(n)||(n=vf(n)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||n.dimensionsDefine||[],o=K(),r=[],a=TV(n,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Sw(a),l=i===n.dimensionsDefine,u=l?ww(n):bw(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,a));for(var h=K(c),p=new Y_(a),d=0;d<p.length;d++)p[d]=-1;function f(D){var T=p[D];if(T<0){var I=i[D],A=tt(I)?I:{name:I},k=new Dc,L=A.name;L!=null&&u.get(L)!=null&&(k.name=k.displayName=L),A.type!=null&&(k.type=A.type),A.displayName!=null&&(k.displayName=A.displayName);var N=r.length;return p[D]=N,k.storeDimIndex=D,r.push(k),k}return r[T]}if(!s)for(var d=0;d<a;d++)f(d);h.each(function(D,T){var I=Nt(D).slice();if(I.length===1&&!X(I[0])&&I[0]<0){h.set(T,!1);return}var A=h.set(T,[]);C(I,function(k,L){var N=X(k)?u.get(k):k;N!=null&&N<a&&(A[L]=N,v(f(N),T,L))})});var g=0;C(t,function(D){var T,I,A,k;if(X(D))T=D,k={};else{k=D,T=k.name;var L=k.ordinalMeta;k.ordinalMeta=null,k=z({},k),k.ordinalMeta=L,I=k.dimsDef,A=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var N=h.get(T);if(N!==!1){if(N=Nt(N),!N.length)for(var E=0;E<(I&&I.length||1);E++){for(;g<a&&f(g).coordDim!=null;)g++;g<a&&N.push(g++)}C(N,function(P,O){var V=f(P);if(l&&k.type!=null&&(V.type=k.type),v(nt(V,k),T,O),V.name==null&&I){var F=I[O];!tt(F)&&(F={name:F}),V.name=V.displayName=F.name,V.defaultTooltip=F.defaultTooltip}A&&nt(V.otherDims,A)})}});function v(D,T,I){of.get(T)!=null?D.otherDims[T]=I:(D.coordDim=T,D.coordDimIndex=I,o.set(T,!0))}var y=e.generateCoord,m=e.generateCoordCount,x=m!=null;m=y?m||1:0;var _=y||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)C(r,function(D){w(D)}),r.sort(function(D,T){return D.storeDimIndex-T.storeDimIndex});else for(var b=0;b<a;b++){var S=f(b),M=S.coordDim;M==null&&(S.coordDim=CV(_,o,x),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),w(S),S.type==null&&(s_(n,b)===me.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return DV(r),new xw({source:n,dimensions:r,fullDimensionCount:a,dimensionOmitted:s})}function DV(n){for(var e=K(),t=0;t<n.length;t++){var i=n[t],o=i.name,r=e.get(o)||0;r>0&&(i.name=o+(r-1)),r++,e.set(o,r)}}function TV(n,e,t,i){var o=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,i||0);return C(e,function(r){var a;tt(r)&&(a=r.dimsDef)&&(o=Math.max(o,a.length))}),o}function CV(n,e,t){if(t||e.hasKey(n)){for(var i=0;e.hasKey(n+i);)i++;n+=i}return e.set(n,!0),n}var AV=function(){function n(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return n}();function kV(n){var e=n.get("coordinateSystem"),t=new AV(e),i=LV[e];if(i)return i(n,t,t.axisMap,t.categoryAxisMap),t}var LV={cartesian2d:function(n,e,t,i){var o=n.getReferringComponents("xAxis",ne).models[0],r=n.getReferringComponents("yAxis",ne).models[0];if(process.env.NODE_ENV!=="production"){if(!o)throw new Error('xAxis "'+te(n.get("xAxisIndex"),n.get("xAxisId"),0)+'" not found');if(!r)throw new Error('yAxis "'+te(n.get("xAxisIndex"),n.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",o),t.set("y",r),ma(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),ma(r)&&(i.set("y",r),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,i){var o=n.getReferringComponents("singleAxis",ne).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",o),ma(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(n,e,t,i){var o=n.getReferringComponents("polar",ne).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!a)throw new Error("angleAxis option not found");if(!r)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",r),t.set("angle",a),ma(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),ma(a)&&(i.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,i){var o=n.ecModel,r=o.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();C(r.parallelAxisIndex,function(s,l){var u=o.getComponent("parallelAxis",s),c=a[l];t.set(c,u),ma(u)&&(i.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ma(n){return n.get("type")==="category"}function NV(n,e,t){t=t||{};var i=t.byIndex,o=t.stackedCoordDimension,r,a,s;EV(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,h,p;if(C(r,function(m,x){X(m)&&(r[x]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!o||o===m.coordDim)&&(c=m))}),c&&!i&&!u&&(i=!0),c){h="__\0ecstackresult_"+n.id,p="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,f=c.type,g=0;C(r,function(m){m.coordDim===d&&g++});var v={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(p,f),y.storeDimIndex=s.ensureCalculationDimension(h,f)),a.appendCalculationDimension(v),a.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:h}}function EV(n){return!_w(n.schema)}function Ji(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function Dw(n,e){return Ji(n,e)?n.getCalculationInfo("stackResultDimension"):e}function OV(n,e){var t=n.get("coordinateSystem"),i=sa.get(t),o;return e&&e.coordSysDims&&(o=W(e.coordSysDims,function(r){var a={name:r},s=e.axisMap.get(r);if(s){var l=s.get("type");a.type=Ic(l)}return a})),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),o}function PV(n,e,t){var i,o;return t&&C(n,function(r,a){var s=r.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=a),r.ordinalMeta=l.getOrdinalMeta(),e&&(r.createInvertedIndices=!0)),r.otherDims.itemName!=null&&(o=!0)}),!o&&i!=null&&(n[i].otherDims.itemName=0),i}function bi(n,e,t){t=t||{};var i=e.getSourceManager(),o,r=!1;n?(r=!0,o=vf(n)):(o=i.getSource(),r=o.sourceFormat===cn);var a=kV(e),s=OV(e,a),l=t.useEncodeDefaulter,u=Q(l)?l:l?lt(a_,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!r},h=Zs(o,c),p=PV(h.dimensions,t.createInvertedIndices,a),d=r?null:i.getSharedDataStore(h),f=NV(e,{schema:h,store:d}),g=new Ne(h,e);g.setCalculationInfo(f);var v=p!=null&&RV(o)?function(y,m,x,_){return _===p?x:this.defaultDimValueGetter(y,m,x,_)}:null;return g.hasItemOption=!1,g.initData(r?o:d,null,v),g}function RV(n){if(n.sourceFormat===cn){var e=VV(n.data||[]);return!G(Gr(e))}}function VV(n){for(var e=0;e<n.length&&n[e]==null;)e++;return n[e]}var Tw=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();xu(Tw);const wi=Tw;var zV=0,BV=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++zV}return n.createByAxisModel=function(e){var t=e.option,i=t.data,o=i&&W(i,FV);return new n({categories:o,needCollect:!o,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!X(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var o=this._getOrCreateMap();return t=o.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,o.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},n}();function FV(n){return tt(n)&&n.value!=null?n.value:n+""}const tg=BV;function GV(n){var e=Math.pow(10,yu(Math.abs(n))),t=Math.abs(n/e);return t===0||t===1||t===2||t===3||t===5}function eg(n){return n.type==="interval"||n.type==="log"}function WV(n,e,t,i){var o={},r=n[1]-n[0],a=o.interval=P0(r/e,!0);t!=null&&a<t&&(a=o.interval=t),i!=null&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=Cw(a),l=o.niceTickExtent=[Kt(Math.ceil(n[0]/a)*a,s),Kt(Math.floor(n[1]/a)*a,s)];return HV(l,n),o}function ng(n){var e=Math.pow(10,yu(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Kt(t*e)}function Cw(n){return Gn(n)+2}function Aw(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function HV(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Aw(n,0,e),Aw(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Ac(n,e){return n>=e[0]&&n<=e[1]}function kc(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Lc(n,e){return n*(e[1]-e[0])+e[0]}var kw=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;i.type="ordinal";var o=i.getSetting("ordinalMeta");return o||(o=new tg({})),G(o)&&(o=new tg({categories:W(o,function(r){return tt(r)?r.value:r})})),i._ordinalMeta=o,i._extent=i.getSetting("extent")||[0,o.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ac(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),kc(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Lc(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,o=i[0];o<=i[1];)t.push({value:o}),o++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,o=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var u=i[a];o[a]=u,r[u]=a}for(var c=0;a<s;++a){for(;r[c]!=null;)c++;o.push(c),r[c]=a}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),o=this._ordinalMeta.categories[i];return o==null?"":o+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(wi);wi.registerClass(kw);const ig=kw;var rr=Kt,Lw=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ac(t,this._extent)},e.prototype.normalize=function(t){return kc(t,this._extent)},e.prototype.scale=function(t){return Lc(t,this._extent)},e.prototype.setExtent=function(t,i){var o=this._extent;isNaN(t)||(o[0]=parseFloat(t)),isNaN(i)||(o[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cw(t)},e.prototype.getTicks=function(t){var i=this._interval,o=this._extent,r=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;o[0]<r[0]&&(t?s.push({value:rr(r[0]-i,a)}):s.push({value:o[0]}));for(var u=r[0];u<=r[1]&&(s.push({value:u}),u=rr(u+i,a),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:r[1];return o[1]>c&&(t?s.push({value:rr(c+i,a)}):s.push({value:o[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),o=[],r=this.getExtent(),a=1;a<i.length;a++){for(var s=i[a],l=i[a-1],u=0,c=[],h=s.value-l.value,p=h/t;u<t-1;){var d=rr(l.value+(u+1)*p);d>r[0]&&d<r[1]&&c.push(d),u++}o.push(c)}return o},e.prototype.getLabel=function(t,i){if(t==null)return"";var o=i&&i.precision;o==null?o=Gn(t.value)||0:o==="auto"&&(o=this._intervalPrecision);var r=rr(t.value,o,!0);return $x(r)},e.prototype.calcNiceTicks=function(t,i,o){t=t||5;var r=this._extent,a=r[1]-r[0];if(isFinite(a)){a<0&&(a=-a,r.reverse());var s=WV(r,t,i,o);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var o=Math.abs(i[0]);t.fixMax||(i[1]+=o/2),i[0]-=o/2}else i[1]=1;var r=i[1]-i[0];isFinite(r)||(i[0]=0,i[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(i[0]=rr(Math.floor(i[0]/a)*a)),t.fixMax||(i[1]=rr(Math.ceil(i[1]/a)*a))},e.prototype.setNiceExtent=function(t,i){this._niceExtent=[t,i]},e.type="interval",e}(wi);wi.registerClass(Lw);const to=Lw;var Nw=typeof Float32Array<"u",YV=Nw?Float32Array:Array;function Jn(n){return G(n)?Nw?new Float32Array(n):n:new YV(n)}var og="__ec_stack_";function rg(n){return n.get("stack")||og+n.seriesIndex}function ag(n){return n.dim+n.index}function XV(n){var e=[],t=n.axis,i="axis0";if(t.type==="category"){for(var o=t.getBandWidth(),r=0;r<n.count;r++)e.push(nt({bandWidth:o,axisKey:i,stackId:og+r},n));for(var a=Pw(e),s=[],r=0;r<n.count;r++){var l=a[i][og+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Ew(n,e){var t=[];return e.eachSeriesByType(n,function(i){zw(i)&&t.push(i)}),t}function UV(n){var e={};C(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),p=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),f=h.getStore(),g=0,v=f.count();g<v;++g){var y=f.get(d,g);e[p]?e[p].push(y):e[p]=[y]}});var t={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort(function(l,u){return l-u});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];s>0&&(r=r===null?s:Math.min(r,s))}t[i]=r}}return t}function Ow(n){var e=UV(n),t=[];return C(n,function(i){var o=i.coordinateSystem,r=o.getBaseAxis(),a=r.getExtent(),s;if(r.type==="category")s=r.getBandWidth();else if(r.type==="value"||r.type==="time"){var l=r.dim+"_"+r.index,u=e[l],c=Math.abs(a[1]-a[0]),h=r.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?c/p*u:c}else{var d=i.getData();s=Math.abs(a[1]-a[0])/d.count()}var f=H(i.get("barWidth"),s),g=H(i.get("barMaxWidth"),s),v=H(i.get("barMinWidth")||(Bw(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:f,barMaxWidth:g,barMinWidth:v,barGap:y,barCategoryGap:m,axisKey:ag(r),stackId:rg(i)})}),Pw(t)}function Pw(n){var e={};C(n,function(i,o){var r=i.axisKey,a=i.bandWidth,s=e[r]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[r]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=i.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var p=i.barMinWidth;p&&(l[u].minWidth=p);var d=i.barGap;d!=null&&(s.gap=d);var f=i.barCategoryGap;f!=null&&(s.categoryGap=f)});var t={};return C(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=_t(r).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,a),c=H(i.gap,1),h=i.remainedWidth,p=i.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),C(r,function(y){var m=y.maxWidth,x=y.minWidth;if(y.width){var _=y.width;m&&(_=Math.min(_,m)),x&&(_=Math.max(_,x)),y.width=_,h-=_+c*_,p--}else{var _=d;m&&m<_&&(_=Math.min(m,h)),x&&x>_&&(_=x),_!==d&&(y.width=_,h-=_+c*_,p--)}}),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var f=0,g;C(r,function(y,m){y.width||(y.width=d),g=y,f+=y.width*(1+c)}),g&&(f-=g.width*c);var v=-f/2;C(r,function(y,m){t[o][m]=t[o][m]||{bandWidth:a,offset:v,width:y.width},v+=y.width*(1+c)})}),t}function ZV(n,e,t){if(n&&e){var i=n[ag(e)];return i!=null&&t!=null?i[rg(t)]:i}}function Rw(n,e){var t=Ew(n,e),i=Ow(t);C(t,function(o){var r=o.getData(),a=o.coordinateSystem,s=a.getBaseAxis(),l=rg(o),u=i[ag(s)][l],c=u.offset,h=u.width;r.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function Vw(n){return{seriesType:n,plan:ca(),reset:function(e){if(zw(e)){var t=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),r=i.getOtherAxis(o),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=t.getDimensionIndex(t.mapDimension(o.dim)),l=e.get("showBackground",!0),u=t.mapDimension(r.dim),c=t.getCalculationInfo("stackResultDimension"),h=Ji(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),d=jV(o,r),f=Bw(e),g=e.get("barMinHeight")||0,v=c&&t.getDimensionIndex(c),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(x,_){for(var w=x.count,b=f&&Jn(w*3),S=f&&l&&Jn(w*3),M=f&&Jn(w),D=i.master.getRect(),T=p?D.width:D.height,I,A=_.getStore(),k=0;(I=x.next())!=null;){var L=A.get(h?v:a,I),N=A.get(s,I),E=d,P=void 0;h&&(P=+L-A.get(a,I));var O=void 0,V=void 0,F=void 0,B=void 0;if(p){var Y=i.dataToPoint([L,N]);if(h){var $=i.dataToPoint([P,N]);E=$[0]}O=E,V=Y[1]+m,F=Y[0]-E,B=y,Math.abs(F)<g&&(F=(F<0?-1:1)*g)}else{var Y=i.dataToPoint([N,L]);if(h){var $=i.dataToPoint([N,P]);E=$[1]}O=Y[0]+m,V=E,F=y,B=Y[1]-E,Math.abs(B)<g&&(B=(B<=0?-1:1)*g)}f?(b[k]=O,b[k+1]=V,b[k+2]=p?F:B,S&&(S[k]=p?D.x:O,S[k+1]=p?V:D.y,S[k+2]=T),M[I]=I):_.setItemLayout(I,{x:O,y:V,width:F,height:B}),k+=3}f&&_.setLayout({largePoints:b,largeDataIndices:M,largeBackgroundPoints:S,valueAxisHorizontal:p})}}}}}}function zw(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function Bw(n){return n.pipelineContext&&n.pipelineContext.large}function jV(n,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var qV=function(n,e,t,i){for(;t<i;){var o=t+i>>>1;n[o][1]<e?t=o+1:i=o}return t},Fw=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="time",i}return e.prototype.getLabel=function(t){var i=this.getSetting("useUTC");return Ku(t.value,Gx[yO(ta(this._minLevelUnit))]||Gx.second,i,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,i,o){var r=this.getSetting("useUTC"),a=this.getSetting("locale");return mO(t,i,o,a,r)},e.prototype.getTicks=function(){var t=this._interval,i=this._extent,o=[];if(!t)return o;o.push({value:i[0],level:0});var r=this.getSetting("useUTC"),a=n5(this._minLevelUnit,this._approxInterval,r,i);return o=o.concat(a),o.push({value:i[1],level:0}),o},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1]&&(i[0]-=un,i[1]+=un),i[1]===-1/0&&i[0]===1/0){var o=new Date;i[1]=+new Date(o.getFullYear(),o.getMonth(),o.getDate()),i[0]=i[1]-un}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,i,o){t=t||10;var r=this._extent,a=r[1]-r[0];this._approxInterval=a/t,i!=null&&this._approxInterval<i&&(this._approxInterval=i),o!=null&&this._approxInterval>o&&(this._approxInterval=o);var s=Nc.length,l=Math.min(qV(Nc,this._approxInterval,0,s),s-1);this._interval=Nc[l][1],this._minLevelUnit=Nc[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Dt(t)?t:+Wn(t)},e.prototype.contain=function(t){return Ac(this.parse(t),this._extent)},e.prototype.normalize=function(t){return kc(this.parse(t),this._extent)},e.prototype.scale=function(t){return Lc(t,this._extent)},e.type="time",e}(to),Nc=[["second",Kd],["minute",$d],["hour",Ms],["quarter-day",Ms*6],["half-day",Ms*12],["day",un*1.2],["half-week",un*3.5],["week",un*7],["month",un*31],["quarter",un*95],["half-year",Fx/2],["year",Fx]];function KV(n,e,t,i){var o=Wn(e),r=Wn(t),a=function(f){return Yx(o,f,i)===Yx(r,f,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}function $V(n,e){return n/=un,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function QV(n){var e=30*un;return n/=e,n>6?6:n>3?3:n>2?2:1}function JV(n){return n/=Ms,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Gw(n,e){return n/=e?$d:Kd,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function t5(n){return P0(n,!0)}function e5(n,e,t){var i=new Date(n);switch(ta(e)){case"year":case"month":i[Xx(t)](0);case"day":i[Ux(t)](1);case"hour":i[Zx(t)](0);case"minute":i[jx(t)](0);case"second":i[qx(t)](0),i[Kx(t)](0)}return i.getTime()}function n5(n,e,t,i){var o=1e4,r=Wx,a=0;function s(T,I,A,k,L,N,E){for(var P=new Date(I),O=I,V=P[k]();O<A&&O<=i[1];)E.push({value:O}),V+=T,P[L](V),O=P.getTime();E.push({value:O,notAdd:!0})}function l(T,I,A){var k=[],L=!I.length;if(!KV(ta(T),i[0],i[1],t)){L&&(I=[{value:e5(new Date(i[0]),T,t)},{value:i[1]}]);for(var N=0;N<I.length-1;N++){var E=I[N].value,P=I[N+1].value;if(E!==P){var O=void 0,V=void 0,F=void 0,B=!1;switch(T){case"year":O=Math.max(1,Math.round(e/un/365)),V=Jd(t),F=xO(t);break;case"half-year":case"quarter":case"month":O=QV(e),V=ea(t),F=Xx(t);break;case"week":case"half-week":case"day":O=$V(e),V=$u(t),F=Ux(t),B=!0;break;case"half-day":case"quarter-day":case"hour":O=JV(e),V=Ds(t),F=Zx(t);break;case"minute":O=Gw(e,!0),V=Qu(t),F=jx(t);break;case"second":O=Gw(e,!1),V=Ju(t),F=qx(t);break;case"millisecond":O=t5(e),V=tc(t),F=Kx(t);break}s(O,E,P,V,F,B,k),T==="year"&&A.length>1&&N===0&&A.unshift({value:A[0].value-O})}}for(var N=0;N<k.length;N++)A.push(k[N]);return k}}for(var u=[],c=[],h=0,p=0,d=0;d<r.length&&a++<o;++d){var f=ta(r[d]);if(vO(r[d])){l(r[d],u[u.length-1]||[],c);var g=r[d+1]?ta(r[d+1]):null;if(f!==g){if(c.length){p=h,c.sort(function(T,I){return T.value-I.value});for(var v=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(v.push(c[y]),m>=i[0]&&m<=i[1]&&h++)}var x=(i[1]-i[0])/e;if(h>x*1.5&&p>x/1.5||(u.push(v),h>x||n===r[d]))break}c=[]}}}process.env.NODE_ENV!=="production"&&a>=o&&Zt("Exceed safe limit.");for(var _=Lt(W(u,function(I){return Lt(I,function(A){return A.value>=i[0]&&A.value<=i[1]&&!A.notAdd})}),function(I){return I.length>0}),w=[],b=_.length-1,d=0;d<_.length;++d)for(var S=_[d],M=0;M<S.length;++M)w.push({value:S[M].value,level:b-d});w.sort(function(T,I){return T.value-I.value});for(var D=[],d=0;d<w.length;++d)(d===0||w[d].value!==w[d-1].value)&&D.push(w[d]);return D}wi.registerClass(Fw);const Ww=Fw;var Hw=wi.prototype,js=to.prototype,i5=Kt,o5=Math.floor,r5=Math.ceil,Ec=Math.pow,En=Math.log,sg=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new to,t._interval=0,t}return e.prototype.getTicks=function(t){var i=this._originalScale,o=this._extent,r=i.getExtent(),a=js.getTicks.call(this,t);return W(a,function(s){var l=s.value,u=Kt(Ec(this.base,l));return u=l===o[0]&&this._fixMin?Oc(u,r[0]):u,u=l===o[1]&&this._fixMax?Oc(u,r[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,i){var o=En(this.base);t=En(Math.max(0,t))/o,i=En(Math.max(0,i))/o,js.setExtent.call(this,t,i)},e.prototype.getExtent=function(){var t=this.base,i=Hw.getExtent.call(this);i[0]=Ec(t,i[0]),i[1]=Ec(t,i[1]);var o=this._originalScale,r=o.getExtent();return this._fixMin&&(i[0]=Oc(i[0],r[0])),this._fixMax&&(i[1]=Oc(i[1],r[1])),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var i=this.base;t[0]=En(t[0])/En(i),t[1]=En(t[1])/En(i),Hw.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.calcNiceTicks=function(t){t=t||10;var i=this._extent,o=i[1]-i[0];if(!(o===1/0||o<=0)){var r=zL(o),a=t/o*r;for(a<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var s=[Kt(r5(i[0]/r)*r),Kt(o5(i[1]/r)*r)];this._interval=r,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){js.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=En(t)/En(this.base),Ac(t,this._extent)},e.prototype.normalize=function(t){return t=En(t)/En(this.base),kc(t,this._extent)},e.prototype.scale=function(t){return t=Lc(t,this._extent),Ec(this.base,t)},e.type="log",e}(wi),Yw=sg.prototype;Yw.getMinorTicks=js.getMinorTicks,Yw.getLabel=js.getLabel;function Oc(n,e){return i5(n,Gn(e))}wi.registerClass(sg);const a5=sg;var s5=function(){function n(e,t,i){this._prepareParams(e,t,i)}return n.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var o=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);Q(r)?this._modelMinNum=Pc(e,r({min:i[0],max:i[1]})):r!=="dataMin"&&(this._modelMinNum=Pc(e,r));var a=this._modelMaxRaw=t.get("max",!0);if(Q(a)?this._modelMaxNum=Pc(e,a({min:i[0],max:i[1]})):a!=="dataMax"&&(this._modelMaxNum=Pc(e,a)),o)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=G(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&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=[In(l[0],1),In(l[1],1)]}},n.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,o=this._axisDataLen,r=this._boundaryGapInner,a=e?null:i-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?o?0:NaN:t-r[0]*a),l==null&&(l=e?o?o-1:NaN:i+r[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=go(s)||go(l)||e&&!o;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&et(!this.frozen),this[u5[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var i=l5[e];process.env.NODE_ENV!=="production"&&et(!this.frozen&&this[i]==null),this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),l5={min:"_determinedMin",max:"_determinedMax"},u5={min:"_dataMin",max:"_dataMax"};function Xw(n,e,t){var i=n.rawExtentInfo;return i||(i=new s5(n,e,t),n.rawExtentInfo=i,i)}function Pc(n,e){return e==null?null:go(e)?NaN:n.parse(e)}function Uw(n,e){var t=n.type,i=Xw(n,e,n.getExtent()).calculate();n.setBlank(i.isBlank);var o=i.min,r=i.max,a=e.ecModel;if(a&&t==="time"){var s=Ew("bar",a),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=Ow(s),c=c5(o,r,e,u);o=c.min,r=c.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function c5(n,e,t,i){var o=t.axis.getExtent(),r=o[1]-o[0],a=ZV(i,t.axis);if(a===void 0)return{min:n,max:e};var s=1/0;C(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;C(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,h=1-(s+l)/r,p=c/h-c;return e+=p*(l/u),n-=p*(s/u),{min:n,max:e}}function xa(n,e){var t=e,i=Uw(n,t),o=i.extent,r=t.get("splitNumber");n instanceof a5&&(n.base=t.get("logBase"));var a=n.type,s=t.get("interval"),l=a==="interval"||a==="time";n.setExtent(o[0],o[1]),n.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Rc(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new ig({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Ww({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(wi.getClass(e)||to)}}function h5(n){var e=n.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function qs(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(i){return function(o,r){return n.scale.getFormattedLabel(o,r,i)}}(e):X(e)?function(i){return function(o){var r=n.scale.getLabel(o),a=i.replace("{value}",r??"");return a}}(e):Q(e)?function(i){return function(o,r){return t!=null&&(r=o.value-t),i(lg(n,o),r,o.level!=null?{level:o.level}:null)}}(e):function(i){return n.scale.getLabel(i)}}function lg(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function p5(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,o,r=t.getExtent();t instanceof ig?o=t.count():(i=t.getTicks(),o=i.length);var a=n.getLabelModel(),s=qs(n),l,u=1;o>40&&(u=Math.ceil(o/40));for(var c=0;c<o;c+=u){var h=i?i[c]:{value:r[0]+c},p=s(h,c),d=a.getTextRect(p),f=d5(d,a.get("rotate")||0);l?l.union(f):l=f}return l}}function d5(n,e){var t=e*Math.PI/180,i=n.width,o=n.height,r=i*Math.abs(Math.cos(t))+Math.abs(o*Math.sin(t)),a=i*Math.abs(Math.sin(t))+Math.abs(o*Math.cos(t)),s=new dt(n.x,n.y,r,a);return s}function ug(n){var e=n.get("interval");return e??"auto"}function Zw(n){return n.type==="category"&&ug(n.getLabelModel())===0}function Vc(n,e){var t={};return C(n.mapDimensionsAll(e),function(i){t[Dw(n,i)]=!0}),_t(t)}function f5(n,e,t){e&&C(Vc(e,t),function(i){var o=e.getApproximateExtent(i);o[0]<n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])})}var Ks=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),g5=1e-8;function jw(n,e){return Math.abs(n-e)<g5}function ar(n,e,t){var i=0,o=n[0];if(!o)return!1;for(var r=1;r<n.length;r++){var a=n[r];i+=fi(o[0],o[1],a[0],a[1],e,t),o=a}var s=n[0];return(!jw(o[0],s[0])||!jw(o[1],s[1]))&&(i+=fi(o[0],o[1],s[0],s[1],e,t)),i!==0}var v5=[];function cg(n,e){for(var t=0;t<n.length;t++)fe(n[t],n[t],e)}function qw(n,e,t,i){for(var o=0;o<n.length;o++){var r=n[o];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&(Ni(e,e,r),Ei(t,t,r))}}function y5(n){for(var e=0,t=0,i=0,o=n.length,r=n[o-1][0],a=n[o-1][1],s=0;s<o;s++){var l=n[s][0],u=n[s][1],c=r*u-l*a;e+=c,t+=(r+l)*c,i+=(a+u)*c,r=l,a=u}return e?[t/e/3,i/e/3,e]:[n[0][0]||0,n[0][1]||0]}var Kw=function(){function n(e){this.name=e}return n.prototype.setCenter=function(e){this._center=e},n.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},n}(),$w=function(){function n(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return n}(),Qw=function(){function n(e){this.type="linestring",this.points=e}return n}(),Jw=function(n){R(e,n);function e(t,i,o){var r=n.call(this,t)||this;return r.type="geoJSON",r.geometries=i,r._center=o&&[o[0],o[1]],r}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,o=0,r=0;r<t.length;r++){var a=t[r],s=a.exterior,l=s&&s.length;l>o&&(i=a,o=l)}if(i)return y5(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var o=[1/0,1/0],r=[-1/0,-1/0],a=this.geometries;return C(a,function(s){s.type==="polygon"?qw(s.exterior,o,r,t):C(s.points,function(l){qw(l,o,r,t)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(r[0])&&isFinite(r[1])||(o[0]=o[1]=r[0]=r[1]=0),i=new dt(o[0],o[1],r[0]-o[0],r[1]-o[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),o=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var r=0,a=o.length;r<a;r++){var s=o[r];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ar(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(ar(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=a.width/a.height;o?r||(r=o/s):o=s*r;for(var l=new dt(t,i,o,r),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var p=c[h];p.type==="polygon"?(cg(p.exterior,u),C(p.interiors,function(d){cg(d,u)})):C(p.points,function(d){cg(d,u)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(Kw),m5=function(n){R(e,n);function e(t,i){var o=n.call(this,t)||this;return o.type="geoSVG",o._elOnlyForCalculate=i,o}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),o=[i.x+i.width/2,i.y+i.height/2],r=Ul(v5),a=t;a&&!a.isGeoSVGGraphicRoot;)li(r,a.getLocalTransform(),r),a=a.parent;return Er(r,r),fe(o,o,r),o},e}(Kw);function x5(n){if(!n.UTF8Encoding)return n;var e=n,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return C(i,function(o){var r=o.geometry,a=r.encodeOffsets,s=r.coordinates;if(a)switch(r.type){case"LineString":r.coordinates=tS(s,a,t);break;case"Polygon":hg(s,a,t);break;case"MultiLineString":hg(s,a,t);break;case"MultiPolygon":C(s,function(l,u){return hg(l,a[u],t)})}}),e.UTF8Encoding=!1,e}function hg(n,e,t){for(var i=0;i<n.length;i++)n[i]=tS(n[i],e[i],t)}function tS(n,e,t){for(var i=[],o=e[0],r=e[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=o,l+=r,o=s,r=l,i.push([s/t,l/t])}return i}function _5(n,e){return n=x5(n),W(Lt(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,o=t.geometry,r=[];switch(o.type){case"Polygon":var a=o.coordinates;r.push(new $w(a[0],a.slice(1)));break;case"MultiPolygon":C(o.coordinates,function(l){l[0]&&r.push(new $w(l[0],l.slice(1)))});break;case"LineString":r.push(new Qw([o.coordinates]));break;case"MultiLineString":r.push(new Qw(o.coordinates))}var s=new Jw(i[e||"name"],r,i.cp);return s.properties=i,s})}var $s=Mt();function b5(n){return n.type==="category"?S5(n):I5(n)}function w5(n,e){return n.type==="category"?M5(n,e):{ticks:W(n.scale.getTicks(),function(t){return t.value})}}function S5(n){var e=n.getLabelModel(),t=eS(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function eS(n,e){var t=nS(n,"labels"),i=ug(e),o=iS(t,i);if(o)return o;var r,a;return Q(i)?r=aS(n,i):(a=i==="auto"?D5(n):i,r=rS(n,a)),oS(t,i,{labels:r,labelCategoryInterval:a})}function M5(n,e){var t=nS(n,"ticks"),i=ug(e),o=iS(t,i);if(o)return o;var r,a;if((!e.get("show")||n.scale.isBlank())&&(r=[]),Q(i))r=aS(n,i,!0);else if(i==="auto"){var s=eS(n,n.getLabelModel());a=s.labelCategoryInterval,r=W(s.labels,function(l){return l.tickValue})}else a=i,r=rS(n,a,!0);return oS(t,i,{ticks:r,tickCategoryInterval:a})}function I5(n){var e=n.scale.getTicks(),t=qs(n);return{labels:W(e,function(i,o){return{level:i.level,formattedLabel:t(i,o),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function nS(n,e){return $s(n)[e]||($s(n)[e]=[])}function iS(n,e){for(var t=0;t<n.length;t++)if(n[t].key===e)return n[t].value}function oS(n,e,t){return n.push({key:e,value:t}),t}function D5(n){var e=$s(n).autoInterval;return e??($s(n).autoInterval=n.calculateCategoryInterval())}function T5(n){var e=C5(n),t=qs(n),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=n.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,d=0;l<=r[1];l+=s){var f=0,g=0,v=es(t({value:l}),e.font,"center","top");f=v.width*1.3,g=v.height*1.3,p=Math.max(p,f,7),d=Math.max(d,g,7)}var y=p/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=$s(n.model),w=n.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return b!=null&&S!=null&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=w[0],_.axisExtent1=w[1]),x}function C5(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rS(n,e,t){var i=qs(n),o=n.scale,r=o.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],c=o.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Zw(n),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);d&&f-l!==r[1]&&g(r[1]);function g(v){var y={value:v};s.push(t?v:{formattedLabel:i(y),rawLabel:o.getLabel(y),tickValue:v})}return s}function aS(n,e,t){var i=n.scale,o=qs(n),r=[];return C(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;e(a.value,s)&&r.push(t?l:{formattedLabel:o(a),rawLabel:s,tickValue:l})}),r}var sS=[0,1],A5=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),o=Math.max(t[0],t[1]);return e>=i&&e<=o},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return N0(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,o=this.scale;return e=o.normalize(e),this.onBand&&o.type==="ordinal"&&(i=i.slice(),lS(i,o.count())),kt(e,sS,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(i=i.slice(),lS(i,o.count()));var r=kt(e,i,sS,t);return this.scale.scale(r)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=w5(this,t),o=i.ticks,r=W(o,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=t.get("alignWithLabel");return k5(this,r,a,e.clamp),r},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),o=W(i,function(r){return W(r,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return o},n.prototype.getViewLabels=function(){return b5(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 e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var o=Math.abs(e[1]-e[0]);return Math.abs(o)/i},n.prototype.calculateCategoryInterval=function(){return T5(this)},n}();function lS(n,e){var t=n[1]-n[0],i=e,o=t/i/2;n[0]+=o,n[1]-=o}function k5(n,e,t,i){var o=e.length;if(!n.onBand||t||!o)return;var r=n.getExtent(),a,s;if(o===1)e[0].coord=r[0],a=e[1]={coord:r[1]};else{var l=e[o-1].tickValue-e[0].tickValue,u=(e[o-1].coord-e[0].coord)/l;C(e,function(d){d.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+u*s},e.push(a)}var h=r[0]>r[1];p(e[0].coord,r[0])&&(i?e[0].coord=r[0]:e.shift()),i&&p(r[0],e[0].coord)&&e.unshift({coord:r[0]}),p(r[1],a.coord)&&(i?a.coord=r[1]:e.pop()),i&&p(a.coord,r[1])&&e.push({coord:r[1]});function p(d,f){return d=Kt(d),f=Kt(f),h?d>f:d<f}}const On=A5;var Qs=Math.PI*2,sr=Zn.CMD,L5=["top","right","bottom","left"];function N5(n,e,t,i,o){var r=t.width,a=t.height;switch(n){case"top":i.set(t.x+r/2,t.y-e),o.set(0,-1);break;case"bottom":i.set(t.x+r/2,t.y+a+e),o.set(0,1);break;case"left":i.set(t.x-e,t.y+a/2),o.set(-1,0);break;case"right":i.set(t.x+r+e,t.y+a/2),o.set(1,0);break}}function E5(n,e,t,i,o,r,a,s,l){a-=n,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*t+n,h=s*t+e;if(Math.abs(i-o)%Qs<1e-4)return l[0]=c,l[1]=h,u-t;if(r){var p=i;i=Tn(o),o=Tn(p)}else i=Tn(i),o=Tn(o);i>o&&(o+=Qs);var d=Math.atan2(s,a);if(d<0&&(d+=Qs),d>=i&&d<=o||d+Qs>=i&&d+Qs<=o)return l[0]=c,l[1]=h,u-t;var f=t*Math.cos(i)+n,g=t*Math.sin(i)+e,v=t*Math.cos(o)+n,y=t*Math.sin(o)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(x))}function zc(n,e,t,i,o,r,a,s){var l=o-n,u=r-e,c=t-n,h=i-e,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var d=l*c+u*h,f=d/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var g=a[0]=n+f*c,v=a[1]=e+f*h;return Math.sqrt((g-o)*(g-o)+(v-r)*(v-r))}function uS(n,e,t,i,o,r,a){t<0&&(n=n+t,t=-t),i<0&&(e=e+i,i=-i);var s=n+t,l=e+i,u=a[0]=Math.min(Math.max(o,n),s),c=a[1]=Math.min(Math.max(r,e),l);return Math.sqrt((u-o)*(u-o)+(c-r)*(c-r))}var Pn=[];function O5(n,e,t){var i=uS(e.x,e.y,e.width,e.height,n.x,n.y,Pn);return t.set(Pn[0],Pn[1]),i}function P5(n,e,t){for(var i=0,o=0,r=0,a=0,s,l,u=1/0,c=e.data,h=n.x,p=n.y,d=0;d<c.length;){var f=c[d++];d===1&&(i=c[d],o=c[d+1],r=i,a=o);var g=u;switch(f){case sr.M:r=c[d++],a=c[d++],i=r,o=a;break;case sr.L:g=zc(i,o,c[d],c[d+1],h,p,Pn,!0),i=c[d++],o=c[d++];break;case sr.C:g=Qm(i,o,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],h,p,Pn),i=c[d++],o=c[d++];break;case sr.Q:g=t0(i,o,c[d++],c[d++],c[d],c[d+1],h,p,Pn),i=c[d++],o=c[d++];break;case sr.A:var v=c[d++],y=c[d++],m=c[d++],x=c[d++],_=c[d++],w=c[d++];d+=1;var b=!!(1-c[d++]);s=Math.cos(_)*m+v,l=Math.sin(_)*x+y,d<=1&&(r=s,a=l);var S=(h-v)*x/m+v;g=E5(v,y,x,_,_+w,b,S,p,Pn),i=Math.cos(_+w)*m+v,o=Math.sin(_+w)*x+y;break;case sr.R:r=i=c[d++],a=o=c[d++];var M=c[d++],D=c[d++];g=uS(r,a,M,D,h,p,Pn);break;case sr.Z:g=zc(i,o,r,a,h,p,Pn,!0),i=r,o=a;break}g<u&&(u=g,t.set(Pn[0],Pn[1]))}return u}var Rn=new ht,Bt=new ht,Qt=new ht,ti=new ht,ei=new ht;function cS(n,e){if(n){var t=n.getTextGuideLine(),i=n.getTextContent();if(i&&t){var o=n.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||L5,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=o.anchor,c=n.getComputedTransform(),h=c&&Er([],c),p=e.get("length2")||0;u&&Qt.copy(u);for(var d=0;d<a.length;d++){var f=a[d];N5(f,0,s,Rn,ti),ht.scaleAndAdd(Bt,Rn,ti,p),Bt.transform(h);var g=n.getBoundingRect(),v=u?u.distance(Bt):n instanceof xt?P5(Bt,n.path,Qt):O5(Bt,g,Qt);v<l&&(l=v,Bt.transform(c),Qt.transform(c),Qt.toArray(r[0]),Bt.toArray(r[1]),Rn.toArray(r[2]))}hS(r,e.get("minTurnAngle")),t.setShape({points:r})}}}var Bc=[],Ee=new ht;function hS(n,e){if(e<=180&&e>0){e=e/180*Math.PI,Rn.fromArray(n[0]),Bt.fromArray(n[1]),Qt.fromArray(n[2]),ht.sub(ti,Rn,Bt),ht.sub(ei,Qt,Bt);var t=ti.len(),i=ei.len();if(!(t<.001||i<.001)){ti.scale(1/t),ei.scale(1/i);var o=ti.dot(ei),r=Math.cos(e);if(r<o){var a=zc(Bt.x,Bt.y,Qt.x,Qt.y,Rn.x,Rn.y,Bc,!1);Ee.fromArray(Bc),Ee.scaleAndAdd(ei,a/Math.tan(Math.PI-e));var s=Qt.x!==Bt.x?(Ee.x-Bt.x)/(Qt.x-Bt.x):(Ee.y-Bt.y)/(Qt.y-Bt.y);if(isNaN(s))return;s<0?ht.copy(Ee,Bt):s>1&&ht.copy(Ee,Qt),Ee.toArray(n[1])}}}}function R5(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Rn.fromArray(n[0]),Bt.fromArray(n[1]),Qt.fromArray(n[2]),ht.sub(ti,Bt,Rn),ht.sub(ei,Qt,Bt);var i=ti.len(),o=ei.len();if(!(i<.001||o<.001)){ti.scale(1/i),ei.scale(1/o);var r=ti.dot(e),a=Math.cos(t);if(r<a){var s=zc(Bt.x,Bt.y,Qt.x,Qt.y,Rn.x,Rn.y,Bc,!1);Ee.fromArray(Bc);var l=Math.PI/2,u=Math.acos(ei.dot(e)),c=l+u-t;if(c>=l)ht.copy(Ee,Qt);else{Ee.scaleAndAdd(ei,s/Math.tan(Math.PI/2-c));var h=Qt.x!==Bt.x?(Ee.x-Bt.x)/(Qt.x-Bt.x):(Ee.y-Bt.y)/(Qt.y-Bt.y);if(isNaN(h))return;h<0?ht.copy(Ee,Bt):h>1&&ht.copy(Ee,Qt)}Ee.toArray(n[1])}}}}function pS(n,e,t,i){var o=t==="normal",r=o?n:n.ensureState(t);r.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?n.useStyle(s):r.style=s}function V5(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var o=Li(i[0],i[1]),r=Li(i[1],i[2]);if(!o||!r){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var a=Math.min(o,r)*t,s=Xl([],i[1],i[0],a/o),l=Xl([],i[1],i[2],a/r),u=Xl([],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 c=1;c<i.length;c++)n.lineTo(i[c][0],i[c][1])}function pg(n,e,t){var i=n.getTextGuideLine(),o=n.getTextContent();if(!o){i&&n.removeTextGuideLine();return}for(var r=e.normal,a=r.get("show"),s=o.ignore,l=0;l<hs.length;l++){var u=hs[l],c=e[u],h=u==="normal";if(c){var p=c.get("show"),d=h?s:ct(o.states[u]&&o.states[u].ignore,s);if(d||!ct(p,a)){var f=h?i:i&&i.states[u];f&&(f.ignore=!0);continue}i||(i=new We,n.setTextGuideLine(i),!h&&(s||!a)&&pS(i,!0,"normal",e.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),pS(i,!1,u,c)}}if(i){nt(i.style,t),i.style.fill=null;var g=r.get("showAbove"),v=n.textGuideLineConfig=n.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=V5}}function dg(n,e){e=e||"labelLine";for(var t={normal:n.getModel(e)},i=0;i<ke.length;i++){var o=ke[i];t[o]=n.getModel([o,e])}return t}function dS(n){for(var e=[],t=0;t<n.length;t++){var i=n[t];if(!i.defaultAttr.ignore){var o=i.label,r=o.getComputedTransform(),a=o.getBoundingRect(),s=!r||r[1]<1e-5&&r[2]<1e-5,l=o.style.margin||0,u=a.clone();u.applyTransform(r),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Bu(a,r):null;e.push({label:o,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:r})}}return e}function fS(n,e,t,i,o,r){var a=n.length;if(a<2)return;n.sort(function(M,D){return M.rect[e]-D.rect[e]});for(var s=0,l,u=!1,c=0,h=0;h<a;h++){var p=n[h],d=p.rect;l=d[e]-s,l<0&&(d[e]-=l,p.label[e]-=l,u=!0);var f=Math.max(-l,0);c+=f,s=d[e]+d[t]}c>0&&r&&w(-c/a,0,a);var g=n[0],v=n[a-1],y,m;x(),y<0&&b(-y,.8),m<0&&b(m,.8),x(),_(y,m,1),_(m,y,-1),x(),y<0&&S(-y),m<0&&S(m);function x(){y=g.rect[e]-i,m=o-v.rect[e]-v.rect[t]}function _(M,D,T){if(M<0){var I=Math.min(D,-M);if(I>0){w(I*T,0,a);var A=I+M;A<0&&b(-A*T,1)}else b(-M*T,1)}}function w(M,D,T){M!==0&&(u=!0);for(var I=D;I<T;I++){var A=n[I],k=A.rect;k[e]+=M,A.label[e]+=M}}function b(M,D){for(var T=[],I=0,A=1;A<a;A++){var k=n[A-1].rect,L=Math.max(n[A].rect[e]-k[e]-k[t],0);T.push(L),I+=L}if(I){var N=Math.min(Math.abs(M)/I,D);if(M>0)for(var A=0;A<a-1;A++){var E=T[A]*N;w(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=T[A-1]*N;w(-E,A,a)}}}function S(M){var D=M<0?-1:1;M=Math.abs(M);for(var T=Math.ceil(M/(a-1)),I=0;I<a-1;I++)if(D>0?w(T,0,I+1):w(-T,a-I-1,a),M-=T,M<=0)return}return u}function z5(n,e,t,i){return fS(n,"x","width",e,t,i)}function gS(n,e,t,i){return fS(n,"y","height",e,t,i)}function vS(n){var e=[];n.sort(function(g,v){return v.priority-g.priority});var t=new dt(0,0,0,0);function i(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var o=0;o<n.length;o++){var r=n[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,c=r.labelLine;t.copy(r.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=r.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(t.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new Bu(f.localRect,f.transform)),h||(h=new Bu(s,l)),h.intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",r.defaultAttr.ignore),c&&c.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function B5(n){if(n){for(var e=[],t=0;t<n.length;t++)e.push(n[t].slice());return e}}function F5(n,e){var t=n.label,i=e&&e.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:B5(i&&i.shape.points)}}var yS=["align","verticalAlign","width","height","fontSize"],Oe=new hi,fg=Mt(),G5=Mt();function Fc(n,e,t){for(var i=0;i<t.length;i++){var o=t[i];e[o]!=null&&(n[o]=e[o])}}var Gc=["x","y","rotation"],W5=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(e,t,i,o,r){var a=o.style,s=o.__hostTarget,l=s.textConfig||{},u=o.getComputedTransform(),c=o.getBoundingRect().plain();dt.applyTransform(c,c,u),u?Oe.setLocalTransform(u):(Oe.x=Oe.y=Oe.rotation=Oe.originX=Oe.originY=0,Oe.scaleX=Oe.scaleY=1),Oe.rotation=Tn(Oe.rotation);var h=o.__hostTarget,p;if(h){p=h.getBoundingRect().plain();var d=h.getComputedTransform();dt.applyTransform(p,p,d)}var f=p&&h.getTextGuideLine();this._labelList.push({label:o,labelLine:f,seriesModel:i,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:c,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:o.ignore,labelGuideIgnore:f&&f.ignore,x:Oe.x,y:Oe.y,scaleX:Oe.scaleX,scaleY:Oe.scaleY,rotation:Oe.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:o.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,o=i.get("labelLayout");(Q(o)||_t(o).length)&&e.group.traverse(function(r){if(r.ignore)return!0;var a=r.getTextContent(),s=st(r);a&&!a.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,i,a,o)})},n.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function o(x,_){return function(){cS(x,_)}}for(var r=0;r<this._labelList.length;r++){var a=this._labelList[r],s=a.label,l=s.__hostTarget,u=a.defaultAttr,c=void 0;Q(a.layoutOption)?c=a.layoutOption(F5(a,l)):c=a.layoutOption,c=c||{},a.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(c.x!=null?(s.x=H(c.x,t),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=H(c.y,i),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),p=!1)}var f=fg(s);f.needsUpdateLabelLine=p,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<yS.length;g++){var v=yS[g];s.setStyle(v,c[v]!=null?c[v]:u.style[v])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;if(a.dataIndex!=null){var m=a.seriesModel.getData(a.dataType);y=m.getItemModel(a.dataIndex)}s.on("drag",o(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),o=dS(this._labelList),r=Lt(o,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Lt(o,function(l){return l.layoutOption.moveOverlap==="shiftY"});z5(r,0,t),gS(a,0,i);var s=Lt(o,function(l){return l.layoutOption.hideOverlap});vS(s)},n.prototype.processLabelsOverall=function(){var e=this;C(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!o,l=a.getTextContent();!s&&l&&(s=fg(l).needsUpdateLabelLine),s&&e._updateLabelLine(a,i),r&&e._animateLabels(a,i)})})},n.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),o=st(e),r=o.dataIndex;if(i&&r!=null){var a=t.getData(o.dataType),s=a.getItemModel(r),l={},u=a.getItemVisual(r,"style");if(u){var c=a.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");pg(e,dg(s),l),cS(e,h)}},n.prototype._animateLabels=function(e,t){var i=e.getTextContent(),o=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!qr(e))){var r=fg(i),a=r.oldLayout,s=st(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},c=t.getData(s.dataType);if(a){i.attr(a);var h=e.prevStates;h&&(yt(h,"select")>=0&&i.attr(r.oldLayoutSelect),yt(h,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),Ct(i,u,t,l)}else if(i.attr(u),!Qr(i).valueAnimation){var p=ct(i.style.opacity,1);i.style.opacity=0,Yt(i,{style:{opacity:p}},t,l)}if(r.oldLayout=u,i.states.select){var d=r.oldLayoutSelect={};Fc(d,u,Gc),Fc(d,i.states.select,Gc)}if(i.states.emphasis){var f=r.oldLayoutEmphasis={};Fc(f,u,Gc),Fc(f,i.states.emphasis,Gc)}Px(i,l,c,t,t)}if(o&&!o.ignore&&!o.invisible){var r=G5(o),a=r.oldLayout,g={points:o.shape.points};a?(o.attr({shape:a}),Ct(o,{shape:g},t)):(o.setShape(g),o.style.strokePercent=0,Yt(o,{style:{strokePercent:1}},t)),r.oldLayout=g}},n}();const H5=W5;var gg=Mt();function Y5(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var o=gg(t).labelManager;o||(o=gg(t).labelManager=new H5),o.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var o=gg(t).labelManager;i.updatedSeries.forEach(function(r){o.addLabelsOfSeries(t.getViewOfSeriesModel(r))}),o.updateLayoutConfig(t),o.layout(t),o.processLabelsOverall()})}var vg=Math.sin,yg=Math.cos,mS=Math.PI,lr=Math.PI*2,X5=180/mS,U5=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){this._add("C",e,t,i,o,r,a)},n.prototype.quadraticCurveTo=function(e,t,i,o){this._add("Q",e,t,i,o)},n.prototype.arc=function(e,t,i,o,r,a){this.ellipse(e,t,i,i,0,o,r,a)},n.prototype.ellipse=function(e,t,i,o,r,a,s,l){var u=s-a,c=!l,h=Math.abs(u),p=zi(h-lr)||(c?u>=lr:-u>=lr),d=u>0?u%lr:u%lr+lr,f=!1;p?f=!0:zi(h)?f=!1:f=d>=mS==!!c;var g=e+i*yg(a),v=t+o*vg(a);this._start&&this._add("M",g,v);var y=Math.round(r*X5);if(p){var m=1/this._p,x=(c?1:-1)*(lr-m);this._add("A",i,o,y,1,+c,e+i*yg(a+x),t+o*vg(a+x)),m>.01&&this._add("A",i,o,y,0,+c,g,v)}else{var _=e+i*yg(s),w=t+o*vg(s);this._add("A",i,o,y,+f,+c,_,w)}},n.prototype.rect=function(e,t,i,o){this._add("M",e,t),this._add("l",i,0),this._add("l",0,o),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,o,r,a,s,l,u){for(var c=[],h=this._p,p=1;p<arguments.length;p++){var d=arguments[p];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}();const xS=U5;var Js="none",Z5=Math.round;function j5(n){var e=n.fill;return e!=null&&e!==Js}function q5(n){var e=n.stroke;return e!=null&&e!==Js}var mg=["lineCap","miterLimit","lineJoin"],K5=W(mg,function(n){return"stroke-"+n.toLowerCase()});function $5(n,e,t,i){var o=e.opacity==null?1:e.opacity;if(t instanceof ge){n("opacity",o);return}if(j5(e)){var r=$a(e.fill);n("fill",r.color);var a=e.fillOpacity!=null?e.fillOpacity*r.opacity*o:r.opacity*o;(i||a<1)&&n("fill-opacity",a)}else n("fill",Js);if(q5(e)){var s=$a(e.stroke);n("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*o:s.opacity*o,h=e.strokeFirst;if((i||u!==1)&&n("stroke-width",u),(i||h)&&n("paint-order",h?"stroke":"fill"),(i||c<1)&&n("stroke-opacity",c),e.lineDash){var p=Ef(t),d=p[0],f=p[1];d&&(f=Z5(f||0),n("stroke-dasharray",d.join(",")),(f||i)&&n("stroke-dashoffset",f))}else i&&n("stroke-dasharray",Js);for(var g=0;g<mg.length;g++){var v=mg[g];if(i||e[v]!==Du[v]){var y=e[v]||Du[v];y&&n(K5[g],y)}}}else i&&n("stroke",Js)}var _S="http://www.w3.org/2000/svg",bS="http://www.w3.org/1999/xlink",Q5="http://www.w3.org/2000/xmlns/",J5="http://www.w3.org/XML/1998/namespace";function wS(n){return document.createElementNS(_S,n)}function he(n,e,t,i,o){return{tag:n,attrs:t||{},children:i,text:o,key:e}}function tz(n,e){var t=[];if(e)for(var i in e){var o=e[i],r=i;o!==!1&&(o!==!0&&o!=null&&(r+='="'+o+'"'),t.push(r))}return"<"+n+" "+t.join(" ")+">"}function ez(n){return"</"+n+">"}function xg(n,e){e=e||{};var t=e.newline?`
|
|
55
|
+
`:"";function i(o){var r=o.children,a=o.tag,s=o.attrs,l=o.text;return tz(a,s)+(a!=="style"?Ve(l):l||"")+(r?""+t+W(r,function(u){return i(u)}).join(t)+t:"")+ez(a)}return i(n)}function nz(n,e,t){t=t||{};var i=t.newline?`
|
|
56
|
+
`:"",o=" {"+i,r=i+"}",a=W(_t(n),function(l){return l+o+W(_t(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+r}).join(i),s=W(_t(e),function(l){return"@keyframes "+l+o+W(_t(e[l]),function(u){return u+o+W(_t(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(i)+r}).join(i)+r}).join(i);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(i)}function _g(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function SS(n,e,t,i){return he("svg","root",{width:n,height:e,xmlns:_S,"xmlns:xlink":bS,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var MS={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ur="transform-origin";function iz(n,e,t){var i=z({},n.shape);z(i,e),n.buildPath(t,i);var o=new xS;return o.reset(u0(n)),t.rebuildPath(o,1),o.generateStr(),o.getStr()}function oz(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[ur]=t+"px "+i+"px")}var rz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function IS(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function az(n,e,t){var i=n.shape.paths,o={},r,a;if(C(i,function(l){var u=_g(t.zrId);u.animation=!0,Wc(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,p=_t(c),d=p.length;if(d){a=p[d-1];var f=c[a];for(var g in f){var v=f[g];o[g]=o[g]||{d:""},o[g].d+=v.d||""}for(var y in h){var m=h[y].animation;m.indexOf(a)>=0&&(r=m)}}}),!!r){e.d=!1;var s=IS(o,t);return r.replace(a,s)}}function DS(n){return X(n)?MS[n]?"cubic-bezier("+MS[n]+")":Sp(n)?n:"":""}function Wc(n,e,t,i){var o=n.animators,r=o.length,a=[];if(n instanceof Bd){var s=az(n,e,t);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},u=0;u<r;u++){var c=o[u],h=[c.getMaxTime()/1e3+"s"],p=DS(c.getClip().easing),d=c.getDelay();p?h.push(p):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(m){var x=m[1],_=x.length,w={},b={},S={},M="animation-timing-function";function D(J,vt,rt){for(var q=J.getTracks(),at=J.getMaxTime(),Et=0;Et<q.length;Et++){var bt=q[Et];if(bt.needsAnimate()){var Gt=bt.keyframes,Wt=bt.propName;if(rt&&(Wt=rt(Wt)),Wt)for(var Xt=0;Xt<Gt.length;Xt++){var $e=Gt[Xt],Ot=Math.round($e.time/at*100)+"%",Pe=DS($e.easing),_e=$e.rawValue;(X(_e)||Dt(_e))&&(vt[Ot]=vt[Ot]||{},vt[Ot][Wt]=$e.rawValue,Pe&&(vt[Ot][M]=Pe))}}}}for(var T=0;T<_;T++){var I=x[T],A=I.targetName;A?A==="shape"&&D(I,b):!i&&D(I,w)}for(var k in w){var L={};w0(L,n),z(L,w[k]);var N=c0(L),E=w[k][M];S[k]=N?{transform:N}:{},oz(S[k],L),E&&(S[k][M]=E)}var P,O=!0;for(var k in b){S[k]=S[k]||{};var V=!P,E=b[k][M];V&&(P=new Zn);var F=P.len();P.reset(),S[k].d=iz(n,b[k],P);var B=P.len();if(!V&&F!==B){O=!1;break}E&&(S[k][M]=E)}if(!O)for(var k in S)delete S[k].d;if(!i)for(var T=0;T<_;T++){var I=x[T],A=I.targetName;A==="style"&&D(I,S,function(q){return rz[q]})}for(var Y=_t(S),$=!0,j,T=1;T<Y.length;T++){var ft=Y[T-1],ut=Y[T];if(S[ft][ur]!==S[ut][ur]){$=!1;break}j=S[ft][ur]}if($&&j){for(var k in S)S[k][ur]&&delete S[k][ur];e[ur]=j}if(Lt(Y,function(J){return _t(S[J]).length>0}).length){var gt=IS(S,t);return gt+" "+m[0]+" both"}}for(var v in l){var s=g(l[v]);s&&a.push(s)}if(a.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:a.join(",")},e.class=y}}var tl=Math.round;function TS(n){return n&&X(n.src)}function CS(n){return n&&Q(n.toDataURL)}function bg(n,e,t,i){$5(function(o,r){var a=o==="fill"||o==="stroke";a&&l0(r)?OS(e,n,o,i):a&&Lp(r)?PS(t,n,o,i):n[o]=r},e,t,!1),dz(t,n,i)}function AS(n){return zi(n[0]-1)&&zi(n[1])&&zi(n[2])&&zi(n[3]-1)}function sz(n){return zi(n[4])&&zi(n[5])}function wg(n,e,t){if(e&&!(sz(e)&&AS(e))){var i=t?10:1e4;n.transform=AS(e)?"translate("+tl(e[4]*i)/i+" "+tl(e[5]*i)/i+")":tL(e)}}function kS(n,e,t){for(var i=n.points,o=[],r=0;r<i.length;r++)o.push(tl(i[r][0]*t)/t),o.push(tl(i[r][1]*t)/t);e.points=o.join(" ")}function LS(n){return!n.smooth}function lz(n){var e=W(n,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,o){for(var r=0;r<e.length;r++){var a=e[r],s=t[a[0]];s!=null&&(i[a[1]]=tl(s*o)/o)}}}var uz={circle:[lz(["cx","cy","r"])],polyline:[kS,LS],polygon:[kS,LS]};function cz(n){for(var e=n.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function NS(n,e){var t=n.style,i=n.shape,o=uz[n.type],r={},a=e.animation,s="path",l=n.style.strokePercent,u=e.compress&&u0(n)||4;if(o&&!e.willUpdate&&!(o[1]&&!o[1](i))&&!(a&&cz(n))&&!(l<1)){s=n.type;var c=Math.pow(10,u);o[0](i,r,c)}else{var h=!n.path||n.shapeChanged();n.path||n.createPathProxy();var p=n.path;h&&(p.beginPath(),n.buildPath(p,n.shape),n.pathUpdated());var d=p.getVersion(),f=n,g=f.__svgPathBuilder;(f.__svgPathVersion!==d||!g||l!==f.__svgPathStrokePercent)&&(g||(g=f.__svgPathBuilder=new xS),g.reset(u),p.rebuildPath(g,l),g.generateStr(),f.__svgPathVersion=d,f.__svgPathStrokePercent=l),r.d=g.getStr()}return wg(r,n.transform),bg(r,t,n,e),e.animation&&Wc(n,r,e),he(s,n.id+"",r)}function hz(n,e){var t=n.style,i=t.image;if(i&&!X(i)&&(TS(i)?i=i.src:CS(i)&&(i=i.toDataURL())),!!i){var o=t.x||0,r=t.y||0,a=t.width,s=t.height,l={href:i,width:a,height:s};return o&&(l.x=o),r&&(l.y=r),wg(l,n.transform),bg(l,t,n,e),e.animation&&Wc(n,l,e),he("image",n.id+"",l)}}function pz(n,e){var t=n.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var o=t.font||Ai,r=t.x||0,a=nL(t.y||0,fu(o),t.textBaseline),s=eL[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(S1(t)){var u="",c=t.fontStyle,h=b1(t.fontSize);if(!parseFloat(h))return;var p=t.fontFamily||xm,d=t.fontWeight;u+="font-size:"+h+";font-family:"+p+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+o;return i.match(/\s/)&&(l["xml:space"]="preserve"),r&&(l.x=r),a&&(l.y=a),wg(l,n.transform),bg(l,t,n,e),e.animation&&Wc(n,l,e),he("text",n.id+"",l,void 0,i)}}function ES(n,e){if(n instanceof xt)return NS(n,e);if(n instanceof ge)return hz(n,e);if(n instanceof us)return pz(n,e)}function dz(n,e,t){var i=n.style;if(iL(i)){var o=oL(n),r=t.shadowCache,a=r[o];if(!a){var s=n.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,p=i.shadowBlur,d=$a(i.shadowColor),f=d.opacity,g=d.color,v=p/2/l,y=p/2/u,m=v+" "+y;a=t.zrId+"-s"+t.shadowIdx++,t.defs[a]=he("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[he("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),r[o]=a}e.filter=au(a)}}function OS(n,e,t,i){var o=n[t],r,a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(a0(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else if(s0(o))r="radialGradient",a.cx=ct(o.x,.5),a.cy=ct(o.y,.5),a.r=ct(o.r,.5);else{process.env.NODE_ENV!=="production"&&bn("Illegal gradient type.");return}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=kp(s[u].offset)*100+"%",p=s[u].color,d=$a(p),f=d.color,g=d.opacity,v={offset:h};v["stop-color"]=f,g<1&&(v["stop-opacity"]=g),l.push(he("stop",u+"",v))}var y=he(r,"",a,l),m=xg(y),x=i.gradientCache,_=x[m];_||(_=i.zrId+"-g"+i.gradientIdx++,x[m]=_,a.id=_,i.defs[_]=he(r,_,a,l)),e[t]=au(_)}function PS(n,e,t,i){var o=n.style[t],r=n.getBoundingRect(),a={},s=o.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(r0(o)){var p=o.imageWidth,d=o.imageHeight,f=void 0,g=o.image;if(X(g)?f=g:TS(g)?f=g.src:CS(g)&&(f=g.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";et(p,v),et(d,v)}else if(p==null||d==null){var y=function(T,I){if(T){var A=T.elm,k=p||I.width,L=d||I.height;T.tag==="pattern"&&(u?(L=1,k/=r.width):c&&(k=1,L/=r.height)),T.attrs.width=k,T.attrs.height=L,A&&(A.setAttribute("width",k),A.setAttribute("height",L))}},m=sd(f,null,n,function(T){l||y(b,T),y(h,T)});m&&m.width&&m.height&&(p=p||m.width,d=d||m.height)}h=he("image","img",{href:f,width:p,height:d}),a.width=p,a.height=d}else o.svgElement&&(h=it(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(h){var x,_;l?x=_=1:u?(_=1,x=a.width/r.width):c?(x=1,_=a.height/r.height):a.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(a.width=x),_!=null&&!isNaN(_)&&(a.height=_);var w=c0(o);w&&(a.patternTransform=w);var b=he("pattern","",a,[h]),S=xg(b),M=i.patternCache,D=M[S];D||(D=i.zrId+"-p"+i.patternIdx++,M[S]=D,a.id=D,b=i.defs[D]=he("pattern",D,a,[h])),e[t]=au(D)}}function fz(n,e,t){var i=t.clipPathCache,o=t.defs,r=i[n.id];if(!r){r=t.zrId+"-c"+t.clipPathIdx++;var a={id:r};i[n.id]=r,o[r]=he("clipPath",r,a,[NS(n,t)])}e["clip-path"]=au(r)}function RS(n){return document.createTextNode(n)}function cr(n,e,t){n.insertBefore(e,t)}function VS(n,e){n.removeChild(e)}function zS(n,e){n.appendChild(e)}function BS(n){return n.parentNode}function FS(n){return n.nextSibling}function Sg(n,e){n.textContent=e}var GS=58,gz=120,vz=he("","");function Mg(n){return n===void 0}function ni(n){return n!==void 0}function yz(n,e,t){for(var i={},o=e;o<=t;++o){var r=n[o].key;r!==void 0&&(process.env.NODE_ENV!=="production"&&i[r]!=null&&console.error("Duplicate key "+r),i[r]=o)}return i}function el(n,e){var t=n.key===e.key,i=n.tag===e.tag;return i&&t}function nl(n){var e,t=n.children,i=n.tag;if(ni(i)){var o=n.elm=wS(i);if(Ig(vz,n),G(t))for(e=0;e<t.length;++e){var r=t[e];r!=null&&zS(o,nl(r))}else ni(n.text)&&!tt(n.text)&&zS(o,RS(n.text))}else n.elm=RS(n.text);return n.elm}function WS(n,e,t,i,o){for(;i<=o;++i){var r=t[i];r!=null&&cr(n,nl(r),e)}}function Hc(n,e,t,i){for(;t<=i;++t){var o=e[t];if(o!=null)if(ni(o.tag)){var r=BS(o.elm);VS(r,o.elm)}else VS(n,o.elm)}}function Ig(n,e){var t,i=e.elm,o=n&&n.attrs||{},r=e.attrs||{};if(o!==r){for(t in r){var a=r[t],s=o[t];s!==a&&(a===!0?i.setAttribute(t,""):a===!1?i.removeAttribute(t):t.charCodeAt(0)!==gz?i.setAttribute(t,a):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(Q5,t,a):t.charCodeAt(3)===GS?i.setAttributeNS(J5,t,a):t.charCodeAt(5)===GS?i.setAttributeNS(bS,t,a):i.setAttribute(t,a))}for(t in o)t in r||i.removeAttribute(t)}}function mz(n,e,t){for(var i=0,o=0,r=e.length-1,a=e[0],s=e[r],l=t.length-1,u=t[0],c=t[l],h,p,d,f;i<=r&&o<=l;)a==null?a=e[++i]:s==null?s=e[--r]:u==null?u=t[++o]:c==null?c=t[--l]:el(a,u)?(_a(a,u),a=e[++i],u=t[++o]):el(s,c)?(_a(s,c),s=e[--r],c=t[--l]):el(a,c)?(_a(a,c),cr(n,a.elm,FS(s.elm)),a=e[++i],c=t[--l]):el(s,u)?(_a(s,u),cr(n,s.elm,a.elm),s=e[--r],u=t[++o]):(Mg(h)&&(h=yz(e,i,r)),p=h[u.key],Mg(p)?cr(n,nl(u),a.elm):(d=e[p],d.tag!==u.tag?cr(n,nl(u),a.elm):(_a(d,u),e[p]=void 0,cr(n,d.elm,a.elm))),u=t[++o]);(i<=r||o<=l)&&(i>r?(f=t[l+1]==null?null:t[l+1].elm,WS(n,f,t,o,l)):Hc(n,e,i,r))}function _a(n,e){var t=e.elm=n.elm,i=n.children,o=e.children;n!==e&&(Ig(n,e),Mg(e.text)?ni(i)&&ni(o)?i!==o&&mz(t,i,o):ni(o)?(ni(n.text)&&Sg(t,""),WS(t,null,o,0,o.length-1)):ni(i)?Hc(t,i,0,i.length-1):ni(n.text)&&Sg(t,""):n.text!==e.text&&(ni(i)&&Hc(t,i,0,i.length-1),Sg(t,e.text)))}function xz(n,e){if(el(n,e))_a(n,e);else{var t=n.elm,i=BS(t);nl(e),i!==null&&(cr(i,e.elm,FS(t)),Hc(i,[n],0,0))}return e}var _z=0,bz=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=HS("refreshHover"),this.configLayer=HS("configLayer"),this.storage=t,this._opts=i=z({},i),this.root=e,this._id="zr"+_z++,this._oldVNode=SS(i.width,i.height),e&&!i.ssr){var o=this._viewport=document.createElement("div");o.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=wS("svg");Ig(null,this._oldVNode),o.appendChild(r),e.appendChild(o)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xz(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return ES(e,_g(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,o=this._height,r=_g(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress;var a=[],s=this._bgVNode=wz(i,o,this._backgroundColor,r);s&&a.push(s);var l=e.compress?null:this._mainVNode=he("g","main",{},[]);this._paintList(t,r,l?l.children:a),l&&a.push(l);var u=W(_t(r.defs),function(p){return r.defs[p]});if(u.length&&a.push(he("defs","defs",{},u)),e.animation){var c=nz(r.cssNodes,r.cssAnims,{newline:!0});if(c){var h=he("style","stl",{},[],c);a.push(h)}}return SS(i,o,a,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},xg(this.renderToVNode({animation:ct(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ct(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var o=e.length,r=[],a=0,s,l,u=0,c=0;c<o;c++){var h=e[c];if(!h.invisible){var p=h.__clipPaths,d=p&&p.length||0,f=l&&l.length||0,g=void 0;for(g=Math.max(d-1,f-1);g>=0&&!(p&&l&&p[g]===l[g]);g--);for(var v=f-1;v>g;v--)a--,s=r[a-1];for(var y=g+1;y<d;y++){var m={};fz(p[y],m,t);var x=he("g","clip-g-"+u++,m,[]);(s?s.children:i).push(x),r[a++]=x,s=x}l=p;var _=ES(h,t);_&&(s?s.children:i).push(_)}}},n.prototype.resize=function(e,t){var i=this._opts,o=this.root,r=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),o&&r&&(r.style.display="none",e=fa(o,0,i),t=fa(o,1,i),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var a=r.style;a.width=e+"px",a.height=t+"px"}if(Lp(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=aL(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},n}();function HS(n){return function(){process.env.NODE_ENV!=="production"&&bn('In SVG mode painter not support method "'+n+'"')}}function wz(n,e,t,i){var o;if(t&&t!=="none")if(o=he("rect","bg",{width:n,height:e,x:"0",y:"0",id:"0"}),l0(t))OS({fill:t},o.attrs,"fill",i);else if(Lp(t))PS({style:{fill:t},dirty:$t,getBoundingRect:function(){return{width:n,height:e}}},o.attrs,"fill",i);else{var r=$a(t),a=r.color,s=r.opacity;o.attrs.fill=a,s<1&&(o.attrs["fill-opacity"]=s)}return o}const Sz=bz;function Mz(n){n.registerPainter("svg",Sz)}function YS(n,e,t){var i=ki.createCanvas(),o=e.getWidth(),r=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=o+"px",a.height=r+"px",i.setAttribute("data-zr-dom-id",n)),i.width=o*t,i.height=r*t,i}var Iz=function(n){Ft(e,n);function e(t,i,o){var r=n.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var a;o=o||du,typeof t=="string"?a=YS(t,i,o):tt(t)&&(a=t,t=a.id),r.id=t,r.dom=a;var s=a.style;return s&&(Cm(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),r.painter=i,r.dpr=o,r}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=YS("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,o,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new dt(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(a.length===0){var x=new dt(0,0,0,0);x.copy(m),a.push(x)}else{for(var _=!1,w=1/0,b=0,S=0;S<a.length;++S){var M=a[S];if(M.intersect(m)){var D=new dt(0,0,0,0);D.copy(M),D.union(m),a[S]=D,_=!0;break}else if(l){u.copy(m),u.union(M);var T=m.width*m.height,I=M.width*M.height,A=u.width*u.height,k=A-T-I;k<w&&(w=k,b=S)}}if(l&&(a[b].union(m),_=!0),!_){var x=new dt(0,0,0,0);x.copy(m),a.push(x)}l||(l=a.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var p=t[h];if(p){var d=p.shouldBePainted(o,r,!0,!0),f=p.__isRendered&&(p.__dirty&Ue||!d)?p.getPrevPaintRect():null;f&&c(f);var g=d&&(p.__dirty&Ue||!p.__isRendered)?p.getPaintRect():null;g&&c(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var p=i[h],d=p.shouldBePainted(o,r,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered){var f=p.getPrevPaintRect();f&&c(f)}}var v;do{v=!1;for(var h=0;h<a.length;){if(a[h].isZero()){a.splice(h,1);continue}for(var y=h+1;y<a.length;)a[h].intersect(a[y])?(v=!0,a[h].union(a[y]),a.splice(y,1)):y++;h++}}while(v);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var o=this.dpr,r=this.dom,a=r.style,s=this.domBack;a&&(a.width=t+"px",a.height=i+"px"),r.width=t*o,r.height=i*o,s&&(s.width=t*o,s.height=i*o,o!==1&&this.ctxBack.scale(o,o))},e.prototype.clear=function(t,i,o){var r=this.dom,a=this.ctx,s=r.width,l=r.height;i=i||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,h=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,s/h,l/h));var d=this.domBack;function f(g,v,y,m){if(a.clearRect(g,v,y,m),i&&i!=="transparent"){var x=void 0;if(Bl(i)){var _=i.global||i.__width===y&&i.__height===m;x=_&&i.__canvasGradient||Nf(a,i,{x:0,y:0,width:y,height:m}),i.__canvasGradient=x,i.__width=y,i.__height=m}else sk(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,x=Of(a,i,{dirty:function(){p.setUnpainted(),p.__painter.refresh()}}));a.save(),a.fillStyle=x||i,a.fillRect(g,v,y,m),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(d,g,v,y,m),a.restore())}!o||u?f(0,0,s,l):o.length&&C(o,function(g){f(g.x*h,g.y*h,g.width*h,g.height*h)})},e}(Je);const Dg=Iz;var XS=1e5,hr=314159,Yc=.01,Dz=.001;function Tz(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function Cz(n,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+n+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var Az=function(){function n(e,t,i,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=z({},i||{}),this.dpr=i.devicePixelRatio||du,this._singleCanvas=r,this.root=e;var a=e.style;a&&(Cm(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(r){var u=e,c=u.width,h=u.height;i.width!=null&&(c=i.width),i.height!=null&&(h=i.height),this.dpr=i.devicePixelRatio||1,u.width=c*this.dpr,u.height=h*this.dpr,this._width=c,this._height=h;var p=new Dg(u,this,this.dpr);p.__builtin__=!0,p.initContext(),l[hr]=p,p.zlevel=hr,s.push(hr),this._domRoot=e}else{this._width=fa(e,0,i),this._height=fa(e,1,i);var d=this._domRoot=Cz(this._width,this._height);e.appendChild(d)}}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),i=this._prevDisplayList,o=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,i,e,this._redrawId);for(var r=0;r<o.length;r++){var a=o[r],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=r===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(e){var t=e.length,i=this._hoverlayer;if(i&&i.clear(),!!t){for(var o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r,a=0;a<t;a++){var s=e[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(XS)),r||(r=i.ctx,r.save()),ir(r,s,o,a===t-1))}r&&r.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(XS)},n.prototype.paintOne=function(e,t){Fb(e,t)},n.prototype._paintList=function(e,t,i,o){if(this._redrawId===o){i=i||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,i),a=r.finished,s=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;bp(function(){l._paintList(e,t,i,o)})}}},n.prototype._compositeManually=function(){var e=this.getLayer(hr).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(o){o.virtual&&e.drawImage(o.dom,0,0,t,i)})},n.prototype._doPaintList=function(e,t,i){for(var o=this,r=[],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)&&r.push(u)}for(var c=!0,h=!1,p=function(g){var v=r[g],y=v.ctx,m=a&&v.createRepaintRects(e,t,d._width,d._height),x=i?v.__startIndex:v.__drawIndex,_=!i&&v.incremental&&Date.now,w=_&&Date.now(),b=v.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,b,m);else if(x===v.__startIndex){var S=e[x];(!S.incremental||!S.notClear||i)&&v.clear(!1,b,m)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=v.__startIndex);var M,D=function(k){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:o._width,viewHeight:o._height};for(M=x;M<v.__endIndex;M++){var N=e[M];if(N.__inHover&&(h=!0),o._doPaintEl(N,v,a,k,L,M===v.__endIndex-1),_){var E=Date.now()-w;if(E>15)break}}L.prevElClipPaths&&y.restore()};if(m)if(m.length===0)M=v.__endIndex;else for(var T=d.dpr,I=0;I<m.length;++I){var A=m[I];y.save(),y.beginPath(),y.rect(A.x*T,A.y*T,A.width*T,A.height*T),y.clip(),D(A),y.restore()}else y.save(),D(),y.restore();v.__drawIndex=M,v.__drawIndex<v.__endIndex&&(c=!1)},d=this,f=0;f<r.length;f++)p(f);return St.wxa&&C(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:h}},n.prototype._doPaintEl=function(e,t,i,o,r,a){var s=t.ctx;if(i){var l=e.getPaintRect();(!o||l&&l.intersect(o))&&(ir(s,e,r,a),e.setPrevPaintRect(l))}else ir(s,e,r,a)},n.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=hr);var i=this._layers[e];return i||(i=new Dg("zr_"+e,this,this.dpr),i.zlevel=e,i.__builtin__=!0,this._layerConfig[e]?pt(i,this._layerConfig[e],!0):this._layerConfig[e-Yc]&&pt(i,this._layerConfig[e-Yc],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},n.prototype.insertLayer=function(e,t){var i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(i[e]){process.env.NODE_ENV!=="production"&&bn("ZLevel "+e+" has been used already");return}if(!Tz(t)){process.env.NODE_ENV!=="production"&&bn("Layer of zlevel "+e+" is not valid");return}if(r>0&&e>o[0]){for(l=0;l<r-1&&!(o[l]<e&&o[l+1]>e);l++);s=i[o[l]]}if(o.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(t.dom,u.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.__painter=this},n.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,o=0;o<i.length;o++){var r=i[o];e.call(t,this._layers[r],r)}},n.prototype.eachBuiltinLayer=function(e,t){for(var i=this._zlevelList,o=0;o<i.length;o++){var r=i[o],a=this._layers[r];a.__builtin__&&e.call(t,a,r)}},n.prototype.eachOtherLayer=function(e,t){for(var i=this._zlevelList,o=0;o<i.length;o++){var r=i[o],a=this._layers[r];a.__builtin__||e.call(t,a,r)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,p){h.__dirty=h.__used=!1});function t(h){r&&(r.__endIndex!==h&&(r.__dirty=!0),r.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<e.length;i++){var o=e[i];if(o.zlevel!==e[i-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}var r=null,a=0,s,l;for(l=0;l<e.length;l++){var o=e[l],u=o.zlevel,c=void 0;s!==u&&(s=u,a=0),o.incremental?(c=this.getLayer(u+Dz,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?Yc:0),this._needsManuallyCompositing),c.__builtin__||bn("ZLevel "+u+" has been used by unkown layer "+c.id),c!==r&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),r=c),o.__dirty&Ue&&!o.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?pt(i[e],t,!0):i[e]=t;for(var o=0;o<this._zlevelList.length;o++){var r=this._zlevelList[o];if(r===e||r===e+Yc){var a=this._layers[r];pt(a,i[e],!0)}}}},n.prototype.delLayer=function(e){var t=this._layers,i=this._zlevelList,o=t[e];o&&(o.dom.parentNode.removeChild(o.dom),delete t[e],i.splice(yt(i,e),1))},n.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var o=this._opts,r=this.root;if(e!=null&&(o.width=e),t!=null&&(o.height=t),e=fa(r,0,o),t=fa(r,1,o),i.style.display="",this._width!==e||t!==this._height){i.style.width=e+"px",i.style.height=t+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(hr).resize(e,t)}return this},n.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[hr].dom;var t=new Dg("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var o=t.dom.width,r=t.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,o,r):h.renderToCanvas&&(i.save(),h.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 c=s[l];ir(i,c,a,l===u-1)}return t.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();const kz=Az;function Lz(n){n.registerPainter("canvas",kz)}var Nz=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var i=t.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new ot,o=oe("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(o),o.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=r==="none"?"circle":r,l=t.itemHeight*.8,u=oe(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?a:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ut);const Ez=Nz;function ba(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var o=la(n,e,t[0]);return o!=null?o+"":null}else if(i){for(var r=[],a=0;a<t.length;a++)r.push(la(n,e,t[a]));return r.join(" ")}}function US(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!G(e))return e+"";for(var i=[],o=0;o<t.length;o++){var r=n.getDimensionIndex(t[o]);r>=0&&i.push(e[r])}return i.join(" ")}var Oz=function(n){R(e,n);function e(t,i,o,r){var a=n.call(this)||this;return a.updateData(t,i,o,r),a}return e.prototype._createSymbol=function(t,i,o,r,a){this.removeAll();var s=oe(t,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),s.drift=Pz,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){vi(this.childAt(0))},e.prototype.downplay=function(){yi(this.childAt(0))},e.prototype.setZ=function(t,i){var o=this.childAt(0);o.zlevel=t,o.z=i},e.prototype.setDraggable=function(t,i){var o=this.childAt(0);o.draggable=t,o.cursor=!i&&t?"move":o.cursor},e.prototype.updateData=function(t,i,o,r){this.silent=!1;var a=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=a!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,t,i,l,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Ct(p,d,s,i),An(p)}if(this._updateCommon(t,i,l,o,r),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Yt(p,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,o,r,a){var s=this.childAt(0),l=t.hostModel,u,c,h,p,d,f,g,v,y;if(r&&(u=r.emphasisItemStyle,c=r.blurItemStyle,h=r.selectItemStyle,p=r.focus,d=r.blurScope,g=r.labelStatesModels,v=r.hoverScale,y=r.cursorStyle,f=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(i),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),d=x.get("blurScope"),f=x.get("disabled"),g=ue(m),v=x.getShallow("scale"),y=m.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var w=er(t.getItemVisual(i,"symbolOffset"),o);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(i,"style"),S=b.fill;if(s instanceof ge){var M=s.style;s.useStyle(z({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(z({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var D=t.getItemVisual(i,"liftZ"),T=this._z2;D!=null?T==null&&(this._z2=s.z2,s.z2+=D):T!=null&&(s.z2=T,this._z2=null);var I=a&&a.useNameLabel;ye(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:A,inheritColor:S,defaultOpacity:b.opacity});function A(N){return I?t.getName(N):ba(t,N)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var L=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;k.scaleX=this._sizeX*L,k.scaleY=this._sizeY*L,this.setSymbolScale(1),jt(this,p,d,f)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,o){var r=this.childAt(0),a=st(this).dataIndex,s=o&&o.animation;if(this.silent=r.silent=!0,o&&o.fadeLabel){var l=r.getTextContent();l&&Yi(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Yi(r,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return da(t.getItemVisual(i,"symbolSize"))},e}(ot);function Pz(n,e){this.parent.drift(n,e)}const il=Oz;function Tg(n,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function ZS(n){return n!=null&&!tt(n)&&(n={isIgnore:n}),n||{}}function jS(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ue(e),cursorStyle:e.get("cursor")}}var Rz=function(){function n(e){this.group=new ot,this._SymbolCtor=e||il}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=ZS(t);var i=this.group,o=e.hostModel,r=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=jS(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};r||i.removeAll(),e.diff(r).add(function(h){var p=c(h);if(Tg(e,p,h,t)){var d=new a(e,h,l,u);d.setPosition(p),e.setItemGraphicEl(h,d),i.add(d)}}).update(function(h,p){var d=r.getItemGraphicEl(p),f=c(h);if(!Tg(e,f,h,t)){i.remove(d);return}var g=e.getItemVisual(h,"symbol")||"circle",v=d&&d.getSymbolType&&d.getSymbolType();if(!d||v&&v!==g)i.remove(d),d=new a(e,h,l,u),d.setPosition(f);else{d.updateData(e,h,l,u);var y={x:f[0],y:f[1]};s?d.attr(y):Ct(d,y,o)}i.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var p=r.getItemGraphicEl(h);p&&p.fadeOut(function(){i.remove(p)},o)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,o){var r=e._getSymbolPoint(o);i.setPosition(r),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=jS(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=ZS(i);function o(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(Tg(t,a,r,i)){var s=new this._SymbolCtor(t,r,this._seriesScope);s.traverse(o),s.setPosition(a),this.group.add(s),t.setItemGraphicEl(r,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(e){Xi(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(o){o.fadeOut(function(){t.remove(o)},i.hostModel)}):t.removeAll()},n}();const ol=Rz;function qS(n,e,t){var i=n.getBaseAxis(),o=n.getOtherAxis(i),r=Vz(o,t),a=i.dim,s=o.dim,l=e.mapDimension(s),u=e.mapDimension(a),c=s==="x"||s==="radius"?1:0,h=W(n.dimensions,function(f){return e.mapDimension(f)}),p=!1,d=e.getCalculationInfo("stackResultDimension");return Ji(e,h[0])&&(p=!0,h[0]=d),Ji(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Vz(n,e){var t=0,i=n.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:Dt(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function KS(n,e,t,i){var o=NaN;n.stacked&&(o=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=n.valueStart);var r=n.baseDataOffset,a=[];return a[r]=t.get(n.baseDim,i),a[1-r]=o,e.dataToPoint(a)}function zz(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,o){t.push({cmd:"=",idx:o,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Bz(n,e,t,i,o,r,a,s){for(var l=zz(n,e),u=[],c=[],h=[],p=[],d=[],f=[],g=[],v=qS(o,e,a),y=n.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],w=!0,b=void 0,S=void 0;switch(_.cmd){case"=":b=_.idx*2,S=_.idx1*2;var M=y[b],D=y[b+1],T=m[S],I=m[S+1];(isNaN(M)||isNaN(D))&&(M=T,D=I),u.push(M,D),c.push(T,I),h.push(t[b],t[b+1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,k=v.dataDimsForPoint,L=o.dataToPoint([e.get(k[0],A),e.get(k[1],A)]);S=A*2,u.push(L[0],L[1]),c.push(m[S],m[S+1]);var N=KS(v,o,e,A);h.push(N[0],N[1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(A));break;case"-":w=!1}w&&(d.push(_),f.push(f.length))}f.sort(function(ft,ut){return g[ft]-g[ut]});for(var E=u.length,P=Jn(E),O=Jn(E),V=Jn(E),F=Jn(E),B=[],x=0;x<f.length;x++){var Y=f[x],$=x*2,j=Y*2;P[$]=u[j],P[$+1]=u[j+1],O[$]=c[j],O[$+1]=c[j+1],V[$]=h[j],V[$+1]=h[j+1],F[$]=p[j],F[$+1]=p[j+1],B[x]=d[Y]}return{current:P,next:O,stackedOnCurrent:V,stackedOnNext:F,status:B}}var eo=Math.min,no=Math.max;function pr(n,e){return isNaN(n)||isNaN(e)}function Cg(n,e,t,i,o,r,a,s,l){for(var u,c,h,p,d,f,g=t,v=0;v<i;v++){var y=e[g*2],m=e[g*2+1];if(g>=o||g<0)break;if(pr(y,m)){if(l){g+=r;continue}break}if(g===t)n[r>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=r;continue}if(a>0){for(var w=g+r,b=e[w*2],S=e[w*2+1];b===y&&S===m&&v<i;)v++,w+=r,g+=r,b=e[w*2],S=e[w*2+1],y=e[g*2],m=e[g*2+1],x=y-u,_=m-c;var M=v+1;if(l)for(;pr(b,S)&&M<i;)M++,w+=r,b=e[w*2],S=e[w*2+1];var D=.5,T=0,I=0,A=void 0,k=void 0;if(M>=i||pr(b,S))d=y,f=m;else{T=b-u,I=S-c;var L=y-u,N=b-y,E=m-c,P=S-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(L),V=Math.abs(N);var F=T>0?1:-1;d=y-F*O*a,f=m,A=y+F*V*a,k=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(P);var B=I>0?1:-1;d=y,f=m-B*O*a,A=y,k=m+B*V*a}else O=Math.sqrt(L*L+E*E),V=Math.sqrt(N*N+P*P),D=V/(V+O),d=y-T*a*(1-D),f=m-I*a*(1-D),A=y+T*a*D,k=m+I*a*D,A=eo(A,no(b,y)),k=eo(k,no(S,m)),A=no(A,eo(b,y)),k=no(k,eo(S,m)),T=A-y,I=k-m,d=y-T*O/V,f=m-I*O/V,d=eo(d,no(u,y)),f=eo(f,no(c,m)),d=no(d,eo(u,y)),f=no(f,eo(c,m)),T=y-d,I=m-f,A=y+T*V/O,k=m+I*V/O}n.bezierCurveTo(h,p,d,f,y,m),h=A,p=k}else n.lineTo(y,m)}u=y,c=m,g+=r}return v}var $S=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),Fz=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $S},e.prototype.buildPath=function(t,i){var o=i.points,r=0,a=o.length/2;if(i.connectNulls){for(;a>0&&pr(o[a*2-2],o[a*2-1]);a--);for(;r<a&&pr(o[r*2],o[r*2+1]);r++);}for(;r<a;)r+=Cg(t,o,r,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var o=this.path,r=o.data,a=Zn.CMD,s,l,u=i==="x",c=[],h=0;h<r.length;){var p=r[h++],d=void 0,f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,x=void 0;switch(p){case a.M:s=r[h++],l=r[h++];break;case a.L:if(d=r[h++],f=r[h++],x=u?(t-s)/(d-s):(t-l)/(f-l),x<=1&&x>=0){var _=u?(f-l)*x+l:(d-s)*x+s;return u?[t,_]:[_,t]}s=d,l=f;break;case a.C:d=r[h++],f=r[h++],g=r[h++],v=r[h++],y=r[h++],m=r[h++];var w=u?tu(s,d,g,y,t,c):tu(l,f,v,m,t,c);if(w>0)for(var b=0;b<w;b++){var S=c[b];if(S<=1&&S>=0){var _=u?le(l,f,v,m,S):le(s,d,g,y,S);return u?[t,_]:[_,t]}}s=y,l=m;break}}},e}(xt),Gz=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}($S),QS=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new Gz},e.prototype.buildPath=function(t,i){var o=i.points,r=i.stackedOnPoints,a=0,s=o.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&pr(o[s*2-2],o[s*2-1]);s--);for(;a<s&&pr(o[a*2],o[a*2+1]);a++);}for(;a<s;){var u=Cg(t,o,a,s,s,1,i.smooth,l,i.connectNulls);Cg(t,r,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,t.closePath()}},e}(xt);function JS(n,e,t,i,o){var r=n.getArea(),a=r.x,s=r.y,l=r.width,u=r.height,c=t.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new It({shape:{x:a,y:s,width:l,height:u}});if(e){var p=n.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Q(o)?function(v){o(v,h)}:null;Yt(h,{shape:{width:l,height:u,x:a,y:s}},t,null,i,g)}return h}function tM(n,e,t){var i=n.getArea(),o=Kt(i.r0,1),r=Kt(i.r,1),a=new Fe({shape:{cx:Kt(n.cx,1),cy:Kt(n.cy,1),r0:o,r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=n.getBaseAxis().dim==="angle";s?a.shape.endAngle=i.startAngle:a.shape.r=o,Yt(a,{shape:{endAngle:i.endAngle,r}},t)}return a}function Xc(n,e,t,i,o){if(n){if(n.type==="polar")return tM(n,e,t);if(n.type==="cartesian2d")return JS(n,e,t,i,o)}else return null;return null}function dr(n,e){return n.type===e}function eM(n,e){if(n.length===e.length){for(var t=0;t<n.length;t++)if(n[t]!==e[t])return;return!0}}function nM(n){for(var e=1/0,t=1/0,i=-1/0,o=-1/0,r=0;r<n.length;){var a=n[r++],s=n[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(t=Math.min(s,t),o=Math.max(s,o))}return[[e,t],[i,o]]}function iM(n,e){var t=nM(n),i=t[0],o=t[1],r=nM(e),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function oM(n){return Dt(n)?n:n?.5:0}function Wz(n,e,t){if(!t.valueDim)return[];for(var i=e.count(),o=Jn(i*2),r=0;r<i;r++){var a=KS(t,n,e,r);o[r*2]=a[0],o[r*2+1]=a[1]}return o}function io(n,e,t,i){var o=e.getBaseAxis(),r=o.dim==="x"||o.dim==="radius"?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<n.length;s+=2)!isNaN(n[s])&&!isNaN(n[s+1])&&h.push(n[s],n[s+1]);n=h}for(s=0;s<n.length-2;s+=2)switch(c[0]=n[s+2],c[1]=n[s+3],u[0]=n[s],u[1]=n[s+1],a.push(u[0],u[1]),t){case"end":l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var p=(u[r]+c[r])/2,d=[];l[r]=d[r]=p,l[1-r]=u[1-r],d[1-r]=c[1-r],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1])}return a.push(n[s++],n[s++]),a}function Hz(n,e){var t=[],i=n.length,o,r;function a(c,h,p){var d=c.coord,f=(p-d)/(h.coord-d),g=Jk(f,[c.color,h.color]);return{coord:p,color:g}}for(var s=0;s<i;s++){var l=n[s],u=l.coord;if(u<0)o=l;else if(u>e){r?t.push(a(r,l,e)):o&&t.push(a(o,l,0),a(o,l,e));break}else o&&(t.push(a(o,l,0)),o=null),t.push(l),r=l}return t}function Yz(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var o,r,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if(o=s&&s.coordDim,o==="x"||o==="y"){r=i[a];break}}if(!r){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(o),u=W(r.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,h=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=Hz(u,o==="x"?t.getWidth():t.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=p[0].coord-f,v=p[d-1].coord+f,y=v-g;if(y<.001)return"transparent";C(p,function(x){x.offset=(x.coord-g)/y}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var m=new ys(0,0,0,0,p,!0);return m[o]=g,m[o+"2"]=v,m}}function Xz(n,e,t){var i=n.get("showAllSymbol"),o=i==="auto";if(!(i&&!o)){var r=t.getAxesByScale("ordinal")[0];if(r&&!(o&&Uz(r,e))){var a=e.mapDimension(r.dim),s={};return C(r.getViewLabels(),function(l){var u=r.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function Uz(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(il.getSymbolSize(e,a)[n.isHorizontal()?1:0]*1.5>i)return!1;return!0}function Zz(n,e){return isNaN(n)||isNaN(e)}function jz(n){for(var e=n.length/2;e>0&&Zz(n[e*2-2],n[e*2-1]);e--);return e-1}function rM(n,e){return[n[e*2],n[e*2+1]]}function qz(n,e,t){for(var i=n.length/2,o=t==="x"?0:1,r,a,s=0,l=-1,u=0;u<i;u++)if(a=n[u*2+o],!(isNaN(a)||isNaN(n[u*2+1-o]))){if(u===0){r=a;continue}if(r<=e&&a>=e||r>=e&&a<=e){l=u;break}s=u,r=a}return{range:[s,l],t:(e-r)/(a-r)}}function aM(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<ke.length;e++)if(n.get([ke[e],"endLabel","show"]))return!0;return!1}function Ag(n,e,t,i){if(dr(e,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=aM(i)?function(d,f){n._endLabelOnDuring(d,f,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),c=JS(e,t,i,function(){var d=n._endLabel;d&&t&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),tM(e,t,i)}function Kz(n,e){var t=e.getBaseAxis(),i=t.isHorizontal(),o=t.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:n.get("align")||r,verticalAlign:n.get("verticalAlign")||a}}}var $z=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ot,i=new ol;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t},e.prototype.render=function(t,i,o){var r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),h=l.getLayout("points")||[],p=a.type==="polar",d=this._coordSys,f=this._symbolDraw,g=this._polyline,v=this._polygon,y=this._lineGroup,m=!i.ssr&&t.isAnimationEnabled(),x=!c.isEmpty(),_=c.get("origin"),w=qS(a,l,_),b=x&&Wz(a,l,w),S=t.get("showSymbol"),M=t.get("connectNulls"),D=S&&!p&&Xz(t,l,a),T=this._data;T&&T.eachItemGraphicEl(function(ut,gt){ut.__temp&&(s.remove(ut),T.setItemGraphicEl(gt,null))}),S||f.remove(),s.add(y);var I=p?!1:t.get("step"),A;a&&a.getArea&&t.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var k=Yz(l,a,o)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&d.type===a.type&&I===this._step))S&&f.updateData(l,{isIgnore:D,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ut){return[h[ut*2],h[ut*2+1]]}}),m&&this._initSymbolLabelAnimation(l,a,A),I&&(h=io(h,a,I,M),b&&(b=io(b,a,I,M))),g=this._newPolyline(h),x?v=this._newPolygon(h,b):v&&(y.remove(v),v=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,jo(k)),y.setClipPath(Ag(this,a,!0,t));else{x&&!v?v=this._newPolygon(h,b):v&&!x&&(y.remove(v),v=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,jo(k));var L=y.getClipPath();if(L){var N=Ag(this,a,!1,t);Yt(L,{shape:N.shape},t)}else y.setClipPath(Ag(this,a,!0,t));S&&f.updateData(l,{isIgnore:D,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ut){return[h[ut*2],h[ut*2+1]]}}),(!eM(this._stackedOnPoints,b)||!eM(this._points,h))&&(m?this._doUpdateAnimation(l,b,a,o,I,_,M):(I&&(h=io(h,a,I,M),b&&(b=io(b,a,I,M))),g.setShape({points:h}),v&&v.setShape({points:h,stackedOnPoints:b})))}var E=t.getModel("emphasis"),P=E.get("focus"),O=E.get("blurScope"),V=E.get("disabled");if(g.useStyle(nt(u.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),ve(g,t,"lineStyle"),g.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=g.getState("emphasis").style;F.lineWidth=+g.style.lineWidth+1}st(g).seriesIndex=t.seriesIndex,jt(g,P,O,V);var B=oM(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:B,smoothMonotone:Y,connectNulls:M}),v){var $=l.getCalculationInfo("stackedOnSeries"),j=0;v.useStyle(nt(c.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),$&&(j=oM($.get("smooth"))),v.setShape({smooth:B,stackedOnSmooth:j,smoothMonotone:Y,connectNulls:M}),ve(v,t,"areaStyle"),st(v).seriesIndex=t.seriesIndex,jt(v,P,O,V)}var ft=function(ut){r._changePolyState(ut)};l.eachItemGraphicEl(function(ut){ut&&(ut.onHoverStateChange=ft)}),this._polyline.onHoverStateChange=ft,this._data=l,this._coordSys=a,this._stackedOnPoints=b,this._points=h,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),v&&this.packEventData(t,v))},e.prototype.packEventData=function(t,i){st(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,o,r){var a=t.getData(),s=Co(a,r);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var p=t.get("zlevel")||0,d=t.get("z")||0;u=new il(a,s),u.x=c,u.y=h,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 zt.prototype.highlight.call(this,t,i,o,r)},e.prototype.downplay=function(t,i,o,r){var a=t.getData(),s=Co(a,r);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 zt.prototype.downplay.call(this,t,i,o,r)},e.prototype._changePolyState=function(t){var i=this._polygon;Lu(this._polyline,t),i&&Lu(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new Fz({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new QS({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,i,o){var r,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(r=s.isHorizontal(),a=!1):i.type==="polar"&&(r=s.dim==="angle",a=!0);var u=t.hostModel,c=u.get("animationDuration");Q(c)&&(c=c(null));var h=u.get("animationDelay")||0,p=Q(h)?h(null):h;t.eachItemGraphicEl(function(d,f){var g=d;if(g){var v=[d.x,d.y],y=void 0,m=void 0,x=void 0;if(o)if(a){var _=o,w=i.pointToCoord(v);r?(y=_.startAngle,m=_.endAngle,x=-w[1]/180*Math.PI):(y=_.r0,m=_.r,x=w[0])}else{var b=o;r?(y=b.x,m=b.x+b.width,x=d.x):(y=b.y+b.height,m=b.y,x=d.y)}var S=m===y?0:(x-y)/(m-y);l&&(S=1-S);var M=Q(h)?h(f):c*S+p,D=g.getSymbolPath(),T=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:M}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,o){var r=t.getModel("endLabel");if(aM(t)){var a=t.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=jz(l);c>=0&&(ye(s,ue(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:c,defaultText:function(h,p,d){return d!=null?US(a,d):ba(a,h)},enableTextSetter:!0},Kz(r,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,o,r,a,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&r.originalX==null&&(r.originalX=u.x,r.originalY=u.y);var h=o.getLayout("points"),p=o.hostModel,d=p.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),m=v.inverse,x=i.shape,_=m?y?x.x:x.y+x.height:y?x.x+x.width:x.y,w=(y?g:0)*(m?-1:1),b=(y?0:-g)*(m?-1:1),S=y?"x":"y",M=qz(h,_,S),D=M.range,T=D[1]-D[0],I=void 0;if(T>=1){if(T>1&&!d){var A=rM(h,D[0]);u.attr({x:A[0]+w,y:A[1]+b}),a&&(I=p.getRawValue(D[0]))}else{var A=c.getPointOn(_,S);A&&u.attr({x:A[0]+w,y:A[1]+b});var k=p.getRawValue(D[0]),L=p.getRawValue(D[1]);a&&(I=K0(o,f,k,L,M.t))}r.lastFrameIndex=D[0]}else{var N=t===1||r.lastFrameIndex>0?D[0]:0,A=rM(h,N);a&&(I=p.getRawValue(N)),u.attr({x:A[0]+w,y:A[1]+b})}if(a){var E=Qr(u);typeof E.setLabelText=="function"&&E.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,i,o,r,a,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,p=Bz(this._data,t,this._stackedOnPoints,i,this._coordSys,o,this._valueOrigin),d=p.current,f=p.stackedOnCurrent,g=p.next,v=p.stackedOnNext;if(a&&(d=io(p.current,o,a,l),f=io(p.stackedOnCurrent,o,a,l),g=io(p.next,o,a,l),v=io(p.stackedOnNext,o,a,l)),iM(d,g)>3e3||c&&iM(f,v)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=p.current,u.shape.points=d;var y={shape:{points:g}};p.current!==d&&(y.shape.__points=p.next),u.stopAnimation(),Ct(u,y,h),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Ct(c,{shape:{stackedOnPoints:v}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],x=p.status,_=0;_<x.length;_++){var w=x[_].cmd;if(w==="="){var b=t.getItemGraphicEl(x[_].idx1);b&&m.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var S=u.shape.__points,M=0;M<m.length;M++){var D=m[M].el,T=m[M].ptIdx*2;D.x=S[T],D.y=S[T+1],D.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,o=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),o&&o.eachItemGraphicEl(function(r,a){r.__temp&&(i.remove(r),o.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(zt);const Qz=$z;function rl(n,e){return{seriesType:n,plan:ca(),reset:function(t){var i=t.getData(),o=t.coordinateSystem,r=t.pipelineContext,a=e||r.large;if(o){var s=W(o.dimensions,function(d){return i.mapDimension(d)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Ji(i,s[0])&&(s[0]=u),Ji(i,s[1])&&(s[1]=u);var c=i.getStore(),h=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(d,f){for(var g=d.end-d.start,v=a&&Jn(g*l),y=[],m=[],x=d.start,_=0;x<d.end;x++){var w=void 0;if(l===1){var b=c.get(h,x);w=o.dataToPoint(b,null,m)}else y[0]=c.get(h,x),y[1]=c.get(p,x),w=o.dataToPoint(y,null,m);a?(v[_++]=w[0],v[_++]=w[1]):f.setItemLayout(x,w.slice())}a&&f.setLayout("points",v)}}}}}}var Jz={average:function(n){for(var e=0,t=0,i=0;i<n.length;i++)isNaN(n[i])||(e+=n[i],t++);return t===0?NaN:e/t},sum:function(n){for(var e=0,t=0;t<n.length;t++)e+=n[t]||0;return e},max:function(n){for(var e=-1/0,t=0;t<n.length;t++)n[t]>e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t<n.length;t++)n[t]<e&&(e=n[t]);return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},tB=function(n){return Math.round(n.length/2)};function sM(n){return{seriesType:n,reset:function(e,t,i){var o=e.getData(),r=e.get("sampling"),a=e.coordinateSystem,s=o.count();if(s>10&&a.type==="cartesian2d"&&r){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),h=i.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/p);if(isFinite(d)&&d>1){r==="lttb"&&e.setData(o.lttbDownSample(o.mapDimension(u.dim),1/d));var f=void 0;X(r)?f=Jz[r]:Q(r)&&(f=r),f&&e.setData(o.downSample(o.mapDimension(u.dim),1/d,f,tB))}}}}}function eB(n){n.registerChartView(Qz),n.registerSeriesModel(Ez),n.registerLayout(rl("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,sM("line"))}var lM=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,o){var r=this.coordinateSystem;if(r&&r.clampData){var a=r.clampData(t),s=r.dataToPoint(a);if(o)C(r.getAxes(),function(p,d){if(p.type==="category"&&i!=null){var f=p.getTicksCoords(),g=a[d],v=i[d]==="x1"||i[d]==="y1";if(v&&(g+=1),f.length<2)return;if(f.length===2){s[d]=p.toGlobalCoord(p.getExtent()[v?1:0]);return}for(var y=void 0,m=void 0,x=1,_=0;_<f.length;_++){var w=f[_].coord,b=_===f.length-1?f[_-1].tickValue+x:f[_].tickValue;if(b===g){m=w;break}else if(b<g)y=w;else if(y!=null&&b>g){m=(w+y)/2;break}_===1&&(x=b-f[0].tickValue)}m==null&&(y?y&&(m=f[f.length-1].coord):m=f[0].coord),s[d]=p.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=r.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ut);Ut.registerClass(lM);const Uc=lM;var nB=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return bi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,o){return o.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ui(Uc.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}),e}(Uc);const iB=nB;var oB=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),rB=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new oB},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,u=a+l,c=i.startAngle,h=i.endAngle,p=i.clockwise,d=Math.PI*2,f=p?h-c<d:c-h<d;f||(c=h-(p?d:-d));var g=Math.cos(c),v=Math.sin(c),y=Math.cos(h),m=Math.sin(h);f?(t.moveTo(g*a+o,v*a+r),t.arc(g*u+o,v*u+r,l,-Math.PI+c,c,!p)):t.moveTo(g*s+o,v*s+r),t.arc(o,r,s,c,h,!p),t.arc(y*u+o,m*u+r,l,h-Math.PI*2,h-Math.PI,!p),a!==0&&t.arc(o,r,a,h,c,p)},e}(xt);const Zc=rB;function aB(n,e){e=e||{};var t=e.isRoundCap;return function(i,o,r){var a=o.position;if(!a||a instanceof Array)return gu(i,o,r);var s=n(a),l=o.distance!=null?o.distance:5,u=this.shape,c=u.cx,h=u.cy,p=u.r,d=u.r0,f=(p+d)/2,g=u.startAngle,v=u.endAngle,y=(g+v)/2,m=t?Math.abs(p-d)/2:0,x=Math.cos,_=Math.sin,w=c+p*x(g),b=h+p*_(g),S="left",M="top";switch(s){case"startArc":w=c+(d-l)*x(y),b=h+(d-l)*_(y),S="center",M="top";break;case"insideStartArc":w=c+(d+l)*x(y),b=h+(d+l)*_(y),S="center",M="bottom";break;case"startAngle":w=c+f*x(g)+jc(g,l+m,!1),b=h+f*_(g)+qc(g,l+m,!1),S="right",M="middle";break;case"insideStartAngle":w=c+f*x(g)+jc(g,-l+m,!1),b=h+f*_(g)+qc(g,-l+m,!1),S="left",M="middle";break;case"middle":w=c+f*x(y),b=h+f*_(y),S="center",M="middle";break;case"endArc":w=c+(p+l)*x(y),b=h+(p+l)*_(y),S="center",M="bottom";break;case"insideEndArc":w=c+(p-l)*x(y),b=h+(p-l)*_(y),S="center",M="top";break;case"endAngle":w=c+f*x(v)+jc(v,l+m,!0),b=h+f*_(v)+qc(v,l+m,!0),S="left",M="middle";break;case"insideEndAngle":w=c+f*x(v)+jc(v,-l+m,!0),b=h+f*_(v)+qc(v,-l+m,!0),S="right",M="middle";break;default:return gu(i,o,r)}return i=i||{},i.x=w,i.y=b,i.align=S,i.verticalAlign=M,i}}function sB(n,e,t,i){if(Dt(i)){n.setTextConfig({rotation:i});return}else if(G(e)){n.setTextConfig({rotation:0});return}var o=n.shape,r=o.clockwise?o.startAngle:o.endAngle,a=o.clockwise?o.endAngle:o.startAngle,s=(r+a)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=r;break;case"endAngle":case"insideEndAngle":l=a;break;default:n.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),n.setTextConfig({rotation:c})}function jc(n,e,t){return e*Math.sin(n)*(t?-1:1)}function qc(n,e,t){return e*Math.cos(n)*(t?1:-1)}function fr(n,e,t){var i=n.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;G(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:W(i,function(r){return In(r,o)})}}var kg=Math.max,Lg=Math.min;function lB(n,e){var t=n.getArea&&n.getArea();if(dr(n,"cartesian2d")){var i=n.getBaseAxis();if(i.type!=="category"||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(t.x-=o,t.width+=o*2):(t.y-=o,t.height+=o*2)}}return t}var uB=function(n){R(e,n);function e(){var t=n.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,o,r){this._model=t,this._removeOnRenderedListener(o),this._updateDrawMode(t);var a=t.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,o):this._renderNormal(t,i,o,r)):process.env.NODE_ENV!=="production"&&Zt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Xi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,o,r){var a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var p=t.isAnimationEnabled()?t:null,d=cB(t,u);d&&this._enableRealtimeSort(d,s,o);var f=t.get("clip",!0)||d,g=lB(u,s);a.removeClipPath();var v=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),x=m.get("borderRadius")||0,_=[],w=this._backgroundEls,b=r&&r.isInitSort,S=r&&r.type==="changeAxisOrder";function M(I){var A=Kc[u.type](s,I),k=yB(u,h,A);return k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",x):k.setShape("cornerRadius",x),_[I]=k,k}s.diff(l).add(function(I){var A=s.getItemModel(I),k=Kc[u.type](s,I,A);if(y&&M(I),!(!s.hasValue(I)||!dM[u.type](k))){var L=!1;f&&(L=uM[u.type](g,k));var N=cM[u.type](t,s,I,k,h,p,c.model,!1,v);d&&(N.forceLabelAnimation=!0),gM(N,s,I,A,k,t,h,u.type==="polar"),b?N.attr({shape:k}):d?hM(d,p,N,k,I,h,!1,!1):Yt(N,{shape:k},t,I),s.setItemGraphicEl(I,N),a.add(N),N.ignore=L}}).update(function(I,A){var k=s.getItemModel(I),L=Kc[u.type](s,I,k);if(y){var N=void 0;w.length===0?N=M(A):(N=w[A],N.useStyle(m.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",x):N.setShape("cornerRadius",x),_[I]=N);var E=Kc[u.type](s,I),P=xM(h,E,u);Ct(N,{shape:P},p,I)}var O=l.getItemGraphicEl(A);if(!s.hasValue(I)||!dM[u.type](L)){a.remove(O);return}var V=!1;if(f&&(V=uM[u.type](g,L),V&&a.remove(O)),O?An(O):O=cM[u.type](t,s,I,L,h,p,c.model,!!O,v),d&&(O.forceLabelAnimation=!0),S){var F=O.getTextContent();if(F){var B=Qr(F);B.prevValue!=null&&(B.prevValue=B.value)}}else gM(O,s,I,k,L,t,h,u.type==="polar");b?O.attr({shape:L}):d?hM(d,p,O,L,I,h,!0,S):Ct(O,{shape:L},t,I,null),s.setItemGraphicEl(I,O),O.ignore=V,a.add(O)}).remove(function(I){var A=l.getItemGraphicEl(I);A&&ms(A,t,I)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new ot);D.removeAll();for(var T=0;T<_.length;++T)D.add(_[T]);a.add(D),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,i,o){this._clear(),yM(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),yM(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Xc(t.coordinateSystem,!1,t),o=this.group;i?o.setClipPath(i):o.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,o){var r=this;if(i.count()){var a=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,o),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){r._updateSortWithinSameData(i,s,a,o)},o.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,o){var r=[];return t.each(t.mapDimension(i.dim),function(a,s){var l=o(s);l=l??NaN,r.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),r.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:W(r,function(a){return a.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,o){for(var r=o.scale,a=t.mapDimension(o.dim),s=Number.MAX_VALUE,l=0,u=r.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(a,r.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:i(t.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var o=i.scale,r=o.getExtent(),a=Math.max(0,r[0]),s=Math.min(r[1],o.getOrdinalMeta().categories.length-1);a<=s;++a)if(t.ordinalNumbers[a]!==o.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,i,o,r){if(this._isOrderChangedWithinSameData(t,i,o)){var a=this._dataSort(t,o,i);this._isOrderDifferentInView(a,o)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,i,o){var r=i.baseAxis,a=this._dataSort(t,r,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:a})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,o=this._data;t&&t.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(r){ms(r,t,st(r).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(zt),uM={cartesian2d:function(n,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=n.x+n.width,r=n.y+n.height,a=kg(e.x,n.x),s=Lg(e.x+e.width,o),l=kg(e.y,n.y),u=Lg(e.y+e.height,r),c=s<a,h=u<l;return e.x=c&&a>o?s:a,e.y=h&&l>r?u:l,e.width=c?0:s-a,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var o=Lg(e.r,n.r),r=kg(e.r0,n.r0);e.r=o,e.r0=r;var a=o-r<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},cM={cartesian2d:function(n,e,t,i,o,r,a,s,l){var u=new It({shape:z({},i),z2:1});if(u.__dataIndex=t,u.name="item",r){var c=u.shape,h=o?"height":"width";c[h]=0}return u},polar:function(n,e,t,i,o,r,a,s,l){var u=!o&&l?Zc:Fe,c=new u({shape:i,z2:1});c.name="item";var h=fM(o);if(c.calculateTextPosition=aB(h,{isRoundCap:u===Zc}),r){var p=c.shape,d=o?"r":"endAngle",f={};p[d]=o?i.r0:i.startAngle,f[d]=i[d],(s?Ct:Yt)(c,{shape:f},r)}return c}};function cB(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(i.type!=="category"&&Zt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Zt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function hM(n,e,t,i,o,r,a,s){var l,u;r?(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?Ct:Yt)(t,{shape:l},e,o,null);var c=e?n.baseAxis.model:null;(a?Ct:Yt)(t,{shape:u},c,o)}function pM(n,e){for(var t=0;t<e.length;t++)if(!isFinite(n[e[t]]))return!0;return!1}var hB=["x","y","width","height"],pB=["cx","cy","r","startAngle","endAngle"],dM={cartesian2d:function(n){return!pM(n,hB)},polar:function(n){return!pM(n,pB)}},Kc={cartesian2d:function(n,e,t){var i=n.getItemLayout(e),o=t?fB(t,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(n,e,t){var i=n.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function dB(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function fM(n){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(n)}function gM(n,e,t,i,o,r,a,s){var l=e.getItemVisual(t,"style");if(s){if(!r.get("roundCap")){var u=n.shape,c=fr(i.getModel("itemStyle"),u,!0);z(u,c),n.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var p=i.getShallow("cursor");p&&n.attr("cursor",p);var d=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=ue(i);ye(n,f,{labelFetcher:r,labelDataIndex:t,defaultText:ba(r.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=n.getTextContent();if(s&&g){var v=i.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,sB(n,v==="outside"?d:v,fM(a),i.get(["label","rotate"]))}Ox(g,f,r.getRawValue(t),function(m){return US(e,m)});var y=i.getModel(["emphasis"]);jt(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),ve(n,i),dB(o)&&(n.style.fill="none",n.style.stroke="none",C(n.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function fB(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}var gB=function(){function n(){}return n}(),vM=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new gB},e.prototype.buildPath=function(t,i){for(var o=i.points,r=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<o.length;c+=3)l[r]=u,l[a]=o[c+2],s[r]=o[c+r],s[a]=o[c+a],t.rect(s[0],s[1],l[0],l[1])},e}(xt);function yM(n,e,t,i){var o=n.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=n.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var c=new vM({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=r,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new vM({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=r,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(o.getVisual("style")),st(h).seriesIndex=n.seriesIndex,n.get("silent")||(h.on("mousedown",mM),h.on("mousemove",mM)),t&&t.push(h)}var mM=Af(function(n){var e=this,t=vB(e,n.offsetX,n.offsetY);st(e).dataIndex=t>=0?t:null},30,!1);function vB(n,e,t){for(var i=n.baseDimIdx,o=1-i,r=n.shape.points,a=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,h=r.length/3;c<h;c++){var p=c*3;if(l[i]=u,l[o]=r[p+2],s[i]=r[p+i],s[o]=r[p+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return a[c]}return-1}function xM(n,e,t){if(dr(t,"cartesian2d")){var i=e,o=t.getArea();return{x:n?i.x:o.x,y:n?o.y:i.y,width:n?i.width:o.width,height:n?o.height:i.height}}else{var o=t.getArea(),r=e;return{cx:o.cx,cy:o.cy,r0:n?o.r0:r.r0,r:n?o.r:r.r,startAngle:n?r.startAngle:0,endAngle:n?r.endAngle:Math.PI*2}}}function yB(n,e,t){var i=n.type==="polar"?Fe:It;return new i({shape:xM(e,t,n),silent:!0,z2:0})}const mB=uB;function xB(n){n.registerChartView(mB),n.registerSeriesModel(iB),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,lt(Rw,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Vw("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,sM("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(o){e.sortInfo&&o.axis.setCategorySortInfo(e.sortInfo)})})}var $c=Math.PI*2,_M=Math.PI/180;function bM(n,e){return ae(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wM(n,e){var t=bM(n,e),i=n.get("center"),o=n.get("radius");G(o)||(o=[0,o]);var r=H(t.width,e.getWidth()),a=H(t.height,e.getHeight()),s=Math.min(r,a),l=H(o[0],s/2),u=H(o[1],s/2),c,h,p=n.coordinateSystem;if(p){var d=p.dataToPoint(i);c=d[0]||0,h=d[1]||0}else G(i)||(i=[i,i]),c=H(i[0],r)+t.x,h=H(i[1],a)+t.y;return{cx:c,cy:h,r0:l,r:u}}function _B(n,e,t){e.eachSeriesByType(n,function(i){var o=i.getData(),r=o.mapDimension("value"),a=bM(i,t),s=wM(i,t),l=s.cx,u=s.cy,c=s.r,h=s.r0,p=-i.get("startAngle")*_M,d=i.get("minAngle")*_M,f=0;o.each(r,function(T){!isNaN(T)&&f++});var g=o.getSum(r),v=Math.PI/(g||f)*2,y=i.get("clockwise"),m=i.get("roseType"),x=i.get("stillShowZeroSum"),_=o.getDataExtent(r);_[0]=0;var w=$c,b=0,S=p,M=y?1:-1;if(o.setLayout({viewRect:a,r:c}),o.each(r,function(T,I){var A;if(isNaN(T)){o.setItemLayout(I,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:c});return}m!=="area"?A=g===0&&x?v:T*v:A=$c/f,A<d?(A=d,w-=d):b+=T;var k=S+M*A;o.setItemLayout(I,{angle:A,startAngle:S,endAngle:k,clockwise:y,cx:l,cy:u,r0:h,r:m?kt(T,_,[h,c]):c}),S=k}),w<$c&&f)if(w<=.001){var D=$c/f;o.each(r,function(T,I){if(!isNaN(T)){var A=o.getItemLayout(I);A.angle=D,A.startAngle=p+M*I*D,A.endAngle=p+M*(I+1)*D}})}else v=w/b,S=p,o.each(r,function(T,I){if(!isNaN(T)){var A=o.getItemLayout(I),k=A.angle===d?d:T*v;A.startAngle=S,A.endAngle=S+M*k,S+=M*k}})})}function al(n){return{seriesType:n,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var o=e.getData();o.filterSelf(function(r){for(var a=o.getName(r),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var bB=Math.PI/180;function SM(n,e,t,i,o,r,a,s,l,u){if(n.length<2)return;function c(g){for(var v=g.rB,y=v*v,m=0;m<g.list.length;m++){var x=g.list[m],_=Math.abs(x.label.y-t),w=i+x.len,b=w*w,S=Math.sqrt((1-Math.abs(_*_/y))*b),M=e+(S+x.len2)*o,D=M-x.label.x,T=x.targetTextWidth-D*o;MM(x,T,!0),x.label.x=M}}function h(g){for(var v={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var x=g[m],_=x.label.y>t?y:v,w=Math.abs(x.label.y-t);if(w>=_.maxY){var b=x.label.x-e-x.len2*o,S=i+x.len,M=Math.abs(b)<S?Math.sqrt(w*w/(1-b*b/S/S)):S;_.rB=M,_.maxY=w}_.list.push(x)}c(v),c(y)}for(var p=n.length,d=0;d<p;d++)if(n[d].position==="outer"&&n[d].labelAlignTo==="labelLine"){var f=n[d].label.x-u;n[d].linePoints[1][0]+=f,n[d].label.x=u}gS(n,l,l+a)&&h(n)}function wB(n,e,t,i,o,r,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<n.length;p++){var d=n[p].label;Ng(n[p])||(d.x<e?(c=Math.min(c,d.x),l.push(n[p])):(h=Math.max(h,d.x),u.push(n[p])))}for(var p=0;p<n.length;p++){var f=n[p];if(!Ng(f)&&f.linePoints){if(f.labelStyleWidth!=null)continue;var d=f.label,g=f.linePoints,v=void 0;f.labelAlignTo==="edge"?d.x<e?v=g[2][0]-f.labelDistance-a-f.edgeDistance:v=a+o-f.edgeDistance-g[2][0]-f.labelDistance:f.labelAlignTo==="labelLine"?d.x<e?v=c-a-f.bleedMargin:v=a+o-h-f.bleedMargin:d.x<e?v=d.x-a-f.bleedMargin:v=a+o-d.x-f.bleedMargin,f.targetTextWidth=v,MM(f,v)}}SM(u,e,t,i,1,o,r,a,s,h),SM(l,e,t,i,-1,o,r,a,s,c);for(var p=0;p<n.length;p++){var f=n[p];if(!Ng(f)&&f.linePoints){var d=f.label,g=f.linePoints,y=f.labelAlignTo==="edge",m=d.style.padding,x=m?m[1]+m[3]:0,_=d.style.backgroundColor?0:x,w=f.rect.width+_,b=g[1][0]-g[2][0];y?d.x<e?g[2][0]=a+f.edgeDistance+w+f.labelDistance:g[2][0]=a+o-f.edgeDistance-w-f.labelDistance:(d.x<e?g[2][0]=d.x+f.labelDistance:g[2][0]=d.x-f.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=d.y}}}function MM(n,e,t){if(t===void 0&&(t=!1),n.labelStyleWidth==null){var i=n.label,o=i.style,r=n.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=r.width+(a?0:l);if(e<c||t){var h=r.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:t?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var v=(i.style.margin||0)+2.1;r.height=g.height+v,r.y-=(r.height-h)/2}}}function Ng(n){return n.position==="center"}function SB(n){var e=n.getData(),t=[],i,o,r=!1,a=(n.get("minShowLabelAngle")||0)*bB,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(b){b.ignore=!0}function f(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}e.each(function(b){var S=e.getItemGraphicEl(b),M=S.shape,D=S.getTextContent(),T=S.getTextGuideLine(),I=e.getItemModel(b),A=I.getModel("label"),k=A.get("position")||I.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),N=A.get("alignTo"),E=H(A.get("edgeDistance"),u),P=A.get("bleedMargin"),O=I.getModel("labelLine"),V=O.get("length");V=H(V,u);var F=O.get("length2");if(F=H(F,u),Math.abs(M.endAngle-M.startAngle)<a){C(D.states,d),D.ignore=!0,T&&(C(T.states,d),T.ignore=!0);return}if(f(D)){var B=(M.startAngle+M.endAngle)/2,Y=Math.cos(B),$=Math.sin(B),j,ft,ut,gt;i=M.cx,o=M.cy;var J=k==="inside"||k==="inner";if(k==="center")j=M.cx,ft=M.cy,gt="center";else{var vt=(J?(M.r+M.r0)/2*Y:M.r*Y)+i,rt=(J?(M.r+M.r0)/2*$:M.r*$)+o;if(j=vt+Y*3,ft=rt+$*3,!J){var q=vt+Y*(V+l-M.r),at=rt+$*(V+l-M.r),Et=q+(Y<0?-1:1)*F,bt=at;N==="edge"?j=Y<0?c+E:c+u-E:j=Et+(Y<0?-L:L),ft=bt,ut=[[vt,rt],[q,at],[Et,bt]]}gt=J?"center":N==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var Gt=Math.PI,Wt=0,Xt=A.get("rotate");if(Dt(Xt))Wt=Xt*(Gt/180);else if(k==="center")Wt=0;else if(Xt==="radial"||Xt===!0){var $e=Y<0?-B+Gt:-B;Wt=$e}else if(Xt==="tangential"&&k!=="outside"&&k!=="outer"){var Ot=Math.atan2(Y,$);Ot<0&&(Ot=Gt*2+Ot);var Pe=$>0;Pe&&(Ot=Gt+Ot),Wt=Ot-Gt}if(r=!!Wt,D.x=j,D.y=ft,D.rotation=Wt,D.setStyle({verticalAlign:"middle"}),J){D.setStyle({align:gt});var _e=D.states.select;_e&&(_e.x+=D.x,_e.y+=D.y)}else{var se=D.getBoundingRect().clone();se.applyTransform(D.getComputedTransform());var Ht=(D.style.margin||0)+2.1;se.y-=Ht/2,se.height+=Ht,t.push({label:D,labelLine:T,position:k,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ht(Y,$),linePoints:ut,textAlign:gt,labelDistance:L,labelAlignTo:N,edgeDistance:E,bleedMargin:P,rect:se,unconstrainedWidth:se.width,labelStyleWidth:D.style.width})}S.setTextConfig({inside:J})}}),!r&&n.get("avoidLabelOverlap")&&wB(t,i,o,l,u,p,c,h);for(var g=0;g<t.length;g++){var v=t[g],y=v.label,m=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&(C(y.states,d),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(m){var w=v.linePoints;x||!w?(C(m.states,d),m.ignore=!0):(hS(w,v.minTurnAngle),R5(w,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new ht(w[0][0],w[0][1])})}}}var MB=function(n){R(e,n);function e(t,i,o){var r=n.call(this)||this;r.z2=2;var a=new Tt;return r.setTextContent(a),r.updateData(t,i,o,!0),r}return e.prototype.updateData=function(t,i,o,r){var a=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),c=t.getItemLayout(i),h=z(fr(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){a.setShape(h);return}if(r){a.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(Yt(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=h.cx,a.originY=h.cy):p==="scale"?(a.shape.r=c.r0,Yt(a,{shape:{r:c.r}},s,i)):o!=null?(a.setShape({startAngle:o,endAngle:o}),Yt(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(a.shape.endAngle=c.startAngle,Ct(a,{shape:{endAngle:c.endAngle}},s,i))}else An(a),Ct(a,{shape:h},s,i);a.useStyle(t.getItemVisual(i,"style")),ve(a,l);var d=(c.startAngle+c.endAngle)/2,f=s.get("selectedOffset"),g=Math.cos(d)*f,v=Math.sin(d)*f,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,t,i),a.ensureState("emphasis").shape=z({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},fr(u.getModel("itemStyle"),c)),z(a.ensureState("select"),{x:g,y:v,shape:fr(l.getModel(["select","itemStyle"]),c)}),z(a.ensureState("blur"),{shape:fr(l.getModel(["blur","itemStyle"]),c)});var m=a.getTextGuideLine(),x=a.getTextContent();m&&z(m.ensureState("select"),{x:g,y:v}),z(x.ensureState("select"),{x:g,y:v}),jt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,o){var r=this,a=i.getItemModel(o),s=a.getModel("labelLine"),l=i.getItemVisual(o,"style"),u=l&&l.fill,c=l&&l.opacity;ye(r,ue(a),{labelFetcher:i.hostModel,labelDataIndex:o,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(o,"normal")||i.getName(o)});var h=r.getTextContent();r.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=t.get(["label","position"]);if(p!=="outside"&&p!=="outer")r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new We,this.setTextGuideLine(d)),pg(this,dg(a),{stroke:u,opacity:Qe(s.get(["lineStyle","opacity"]),c,1)})}},e}(Fe),IB=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,o,r){var a=t.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var c=a.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<a.count();++h)c=a.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&t.get("showEmptyCircle")){var p=new Fe({shape:wM(t,o)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}a.diff(s).add(function(d){var f=new MB(a,d,u);a.setItemGraphicEl(d,f),l.add(f)}).update(function(d,f){var g=s.getItemGraphicEl(f);g.updateData(a,d,u),g.off("click"),l.add(g),a.setItemGraphicEl(d,g)}).remove(function(d){var f=s.getItemGraphicEl(d);ms(f,t,d)}).execute(),SB(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var o=i.getData(),r=o.getItemLayout(0);if(r){var a=t[0]-r.cx,s=t[1]-r.cy,l=Math.sqrt(a*a+s*s);return l<=r.r&&l>=r.r0}},e.type="pie",e}(zt);const DB=IB;function wa(n,e,t){e=G(e)&&{coordDimensions:e}||z({encodeDefine:n.getEncode()},e);var i=n.getSource(),o=Zs(i,e).dimensions,r=new Ne(o,n);return r.initData(i,t),r}var TB=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}();const sl=TB;var CB=Mt(),AB=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new sl(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return wa(this,{coordDimensions:["value"],encodeDefaulter:lt(rf,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),o=CB(i),r=o.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),r=o.seats=PL(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){To(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ut);const kB=AB;function LB(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(o){var r=i.mapDimension("value"),a=i.get(r,o);return!(Dt(a)&&!isNaN(a)&&a<0)})}}}function NB(n){n.registerChartView(DB),n.registerSeriesModel(kB),Tb("pie",n.registerAction),n.registerLayout(lt(_B,"pie")),n.registerProcessor(al("pie")),n.registerProcessor(LB("pie"))}var EB=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,o){return o.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ut);const OB=EB;var IM=4,PB=function(){function n(){}return n}(),RB=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new PB},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var o=i.points,r=i.size,a=this.symbolProxy,s=a.shape,l=t.getContext?t.getContext():t,u=l&&r[0]<IM,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<o.length;){var p=o[h++],d=o[h++];isNaN(p)||isNaN(d)||c&&!c.contain(p,d)||(s.x=p-r[0]/2,s.y=d-r[1]/2,s.width=r[0],s.height=r[1],a.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,o=t.size,r=this._ctx,a=this.softClipShape,s;if(r){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||a&&!a.contain(l,u)||r.fillRect(l-o[0]/2,u-o[1]/2,o[0],o[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var o=this.shape,r=o.points,a=o.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=r.length/2-1;u>=0;u--){var c=u*2,h=r[c]-s/2,p=r[c+1]-l/2;if(t>=h&&i>=p&&t<=h+s&&i<=p+l)return u}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.points,r=i.size,a=r[0],s=r[1],l=1/0,u=1/0,c=-1/0,h=-1/0,p=0;p<o.length;){var d=o[p++],f=o[p++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(f,u),h=Math.max(f,h)}t=this._rect=new dt(l-a/2,u-s/2,c-l+a,h-u+s)}return t},e}(xt),VB=function(){function n(){this.group=new ot}return n.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},n.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var o=(i.endIndex-i.startIndex)*2,r=i.startIndex*4*2;t=new Float32Array(t.buffer,r,o)}i.setShape("points",t),i.reset()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,t,i){var o=this._newAdded[0],r=t.getLayout("points"),a=o&&o.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+r.length);l.set(a),l.set(r,s),o.endIndex=e.end,o.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:r}),this._setCommon(u,t,i)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new RB({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,t,i){var o=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=oe(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<IM;e.useStyle(o.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=st(e);u.seriesIndex=o.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const zB=VB;var BB=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,o){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var a=rl("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,o=i&&i.getArea&&i.getArea();return t.get("clip",!0)?o:null},e.prototype._updateSymbolDraw=function(t,i){var o=this._symbolDraw,r=i.pipelineContext,a=r.large;return(!o||a!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=a?new zB:new ol,this._isLargeDraw=a,this.group.removeAll()),this.group.add(o.group),o},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(zt);const FB=BB;var GB=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(wt);const WB=GB;var Eg=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ne).models[0]},e.type="cartesian2dAxis",e}(wt);Jt(Eg,Ks);var DM={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)"]}}},HB=pt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},DM),Og=pt({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}}},DM),YB=pt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Og),XB=nt({logBase:10},Og);const TM={category:HB,value:Og,time:YB,log:XB};var UB={value:1,category:1,time:1,log:1};function Sa(n,e,t,i){C(UB,function(o,r){var a=pt(pt({},TM[r],!0),i,!0),s=function(l){R(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+r,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var p=Ts(this),d=p?ia(c):{},f=h.getTheme();pt(c,f.get(r+"Axis")),pt(c,this.getDefaultOption()),c.type=CM(c),p&&ji(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=tg.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+r,u.defaultOption=a,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",CM)}function CM(n){return n.type||(n.data?"category":"value")}var ZB=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return W(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Lt(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const jB=ZB;var Pg=["x","y"];function AM(n){return n.type==="interval"||n.type==="time"}var qB=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Pg,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!AM(t)||!AM(i))){var o=t.getExtent(),r=i.getExtent(),a=this.dataToPoint([o[0],r[0]]),s=this.dataToPoint([o[1],r[1]]),l=o[1]-o[0],u=r[1]-r[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,h=(s[1]-a[1])/u,p=a[0]-o[0]*c,d=a[1]-r[0]*h,f=this._transform=[c,0,0,h,p,d];this._invTransform=Er([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),o=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&o.contain(o.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var o=this.dataToPoint(t),r=this.dataToPoint(i),a=this.getArea(),s=new dt(o[0],o[1],r[0]-o[0],r[1]-o[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,i,o){o=o||[];var r=t[0],a=t[1];if(this._transform&&r!=null&&isFinite(r)&&a!=null&&isFinite(a))return fe(o,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return o[0]=s.toGlobalCoord(s.dataToCoord(r,i)),o[1]=l.toGlobalCoord(l.dataToCoord(a,i)),o},e.prototype.clampData=function(t,i){var o=this.getAxis("x").scale,r=this.getAxis("y").scale,a=o.getExtent(),s=r.getExtent(),l=o.parse(t[0]),u=r.parse(t[1]);return i=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},e.prototype.pointToData=function(t,i){var o=[];if(this._invTransform)return fe(o,t,this._invTransform);var r=this.getAxis("x"),a=this.getAxis("y");return o[0]=r.coordToData(r.toLocalCoord(t[0]),i),o[1]=a.coordToData(a.toLocalCoord(t[1]),i),o},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(t[0],t[1]),r=Math.min(i[0],i[1]),a=Math.max(t[0],t[1])-o,s=Math.max(i[0],i[1])-r;return new dt(o,r,a,s)},e}(jB),KB=function(n){R(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.index=0,s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(On);const $B=KB;function Rg(n,e,t){t=t||{};var i=n.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=[u==="y"?f[p[l]]:h[0],u==="x"?f[p[l]]:h[3]],r.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=v[s],r.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),te(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var y=e.get(["axisLabel","rotate"]);return r.labelRotate=l==="top"?-y:y,r.z2=1,r}function kM(n){return n.get("coordinateSystem")==="cartesian2d"}function LM(n){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,i){var o=i.replace(/Model$/,""),r=n.getReferringComponents(o,ne).models[0];if(process.env.NODE_ENV!=="production"&&!r)throw new Error(o+' "'+Qe(n.get(o+"Index"),n.get(o+"Id"),0)+'" not found');e[i]=r}),e}var Vg=Math.log;function NM(n,e,t){var i=to.prototype,o=i.getTicks.call(t),r=i.getTicks.call(t,!0),a=o.length-1,s=i.getInterval.call(t),l=Uw(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var p=Vg(n.base);u=[Vg(u[0])/p,Vg(u[1])/p]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(n);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(n),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=ng(f),v=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=ng(f),g=u[1]-f*a;else{var y=n.getTicks().length-1;y>a&&(f=ng(f));var m=f*a;v=Math.ceil(u[1]/f)*f,g=Kt(v-m),g<0&&u[0]>=0?(g=0,v=Kt(m)):v>0&&u[1]<=0&&(v=0,g=-Kt(m))}var x=(o[0].value-r[0].value)/s,_=(o[a].value-r[a].value)/s;if(i.setExtent.call(n,g+f*x,v+f*_),i.setInterval.call(n,f),(x||_)&&i.setNiceExtent.call(n,g+f,v-f),process.env.NODE_ENV!=="production"){var w=i.getTicks.call(n);w[1]&&(!GV(f)||Jp(w[1].value)>Jp(f))&&Zt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var QB=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Pg,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function o(a){var s,l=_t(a),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var p=+l[h],d=a[p],f=d.model,g=d.scale;eg(g)&&f.get("alignTicks")&&f.get("interval")==null?c.push(d):(xa(g,f),eg(g)&&(s=d))}c.length&&(s||(s=c.pop(),xa(s.scale,s.model)),C(c,function(v){NM(v.scale,v.model,s.scale)}))}}o(i.x),o(i.y);var r={};C(i.x,function(a){EM(i,"y",a,r)}),C(i.y,function(a){EM(i,"x",a,r)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var o=e.getBoxLayoutParams(),r=!i&&e.get("containLabel"),a=ae(o,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;l(),r&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=p5(u);if(c){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[h]-=c[h]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var c=u.isHorizontal(),h=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),JB(u,c?a.x:a.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var o=0,r=this._coordsList;o<r.length;o++)if(r[o].getAxis("x").index===e||r[o].getAxis("y").index===t)return r[o]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,t,i){var o=this._findConvertTarget(t);return o.cartesian?o.cartesian.dataToPoint(i):o.axis?o.axis.toGlobalCoord(o.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(e,t,i){var o=this._findConvertTarget(t);return o.cartesian?o.cartesian.pointToData(i):o.axis?o.axis.coordToData(o.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",ne).models[0],o=e.yAxisModel||t&&t.getReferringComponents("yAxis",ne).models[0],r=e.gridModel,a=this._coordsList,s,l;if(t)s=t.coordinateSystem,yt(a,s)<0&&(s=null);else if(i&&o)s=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(o)l=this.getAxis("y",o.componentIndex);else if(r){var u=r.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n.prototype._initCartesian=function(e,t,i){var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(c,h){C(s.y,function(p,d){var f="x"+h+"y"+d,g=new qB(f);g.master=o,g.model=e,o._coordsMap[f]=g,o._coordsList.push(g),g.addAxis(c),g.addAxis(p)})});function u(c){return function(h,p){if(zg(h,e)){var d=h.get("position");c==="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 $B(c,Rc(h),[0,0],h.get("type"),d),g=f.type==="category";f.onBand=g&&h.get("boundaryGap"),f.inverse=h.get("inverse"),h.axis=f,f.model=h,f.grid=r,f.index=p,r._axesList.push(f),s[c][p]=f,l[c]++}}}},n.prototype._updateScale=function(e,t){C(this._axesList,function(o){if(o.scale.setExtent(1/0,-1/0),o.type==="category"){var r=o.model.get("categorySortInfo");o.scale.setSortInfo(r)}}),e.eachSeries(function(o){if(kM(o)){var r=LM(o),a=r.xAxisModel,s=r.yAxisModel;if(!zg(a,t)||!zg(s,t))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=o.getData(),c=l.getAxis("x"),h=l.getAxis("y");i(u,c),i(u,h)}},this);function i(o,r){C(Vc(o,r.dim),function(a){r.scale.unionExtentFromData(o,a)})}},n.prototype.getTooltipAxes=function(e){var t=[],i=[];return C(this.getCartesians(),function(o){var r=e!=null&&e!=="auto"?o.getAxis(e):o.getBaseAxis(),a=o.getOtherAxis(r);yt(t,r)<0&&t.push(r),yt(i,a)<0&&i.push(a)}),{baseAxes:t,otherAxes:i}},n.create=function(e,t){var i=[];return e.eachComponent("grid",function(o,r){var a=new n(o,e,t);a.name="grid_"+r,a.resize(o,t,!0),o.coordinateSystem=a,i.push(a)}),e.eachSeries(function(o){if(kM(o)){var r=LM(o),a=r.xAxisModel,s=r.yAxisModel,l=a.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Qe(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;o.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),i},n.dimensions=Pg,n}();function zg(n,e){return n.getCoordSysModel()===e}function EM(n,e,t,i){t.getAxesOnZeroOf=function(){return r?[r]:[]};var o=n[e],r,a=t.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)OM(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&OM(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0);function c(h){return h.dim+"_"+h.index}}function OM(n){return n&&n.type!=="category"&&n.type!=="time"&&h5(n)}function JB(n,e){var t=n.getExtent(),i=t[0]+t[1];n.toGlobalCoord=n.dim==="x"?function(o){return o+e}:function(o){return i-o+e},n.toLocalCoord=n.dim==="x"?function(o){return o-e}:function(o){return i-o+e}}const t3=QB;var oo=Math.PI,gr=function(){function n(e,t){this.group=new ot,this.opt=t,this.axisModel=e,nt(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new ot({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(e){return!!PM[e]},n.prototype.add=function(e){PM[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,i){var o=O0(t-e),r,a;return vu(o)?(a=i>0?"top":"bottom",r="center"):vu(o-oo)?(a=i>0?"bottom":"top",r="center"):(a="middle",o>0&&o<oo?r=i>0?"right":"left":r=i>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:a}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),PM={axisLine:function(n,e,t,i){var o=e.get(["axisLine","show"]);if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisLine")),!!o){var r=e.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],u=s[0]>l[0];a&&(fe(s,s,a),fe(l,l,a));var c=z({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new de({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Kr(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var p=e.get(["axisLine","symbol"]);if(p!=null){var d=e.get(["axisLine","symbolSize"]);X(p)&&(p=[p,p]),(X(d)||Dt(d))&&(d=[d,d]);var f=er(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],v=d[1];C([{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(y,m){if(p[m]!=="none"&&p[m]!=null){var x=oe(p[m],-g/2,-v/2,g,v,c.stroke,!0),_=y.r+y.offset,w=u?l:s;x.attr({rotation:y.rotate,x:w[0]+_*Math.cos(n.rotation),y:w[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,i){var o=i3(t,i,e,n),r=r3(t,i,e,n);if(n3(e,r,o),o3(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=dS(W(r,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));vS(a)}},axisName:function(n,e,t,i){var o=te(n.axisName,e.get("name"));if(o){var r=e.get("nameLocation"),a=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[r==="start"?u[0]-c*l:r==="end"?u[1]+c*l:(u[0]+u[1])/2,VM(r)?n.labelOffset+a*l:0],p,d=e.get("nameRotate");d!=null&&(d=d*oo/180);var f;VM(r)?p=gr.innerTextLayout(n.rotation,d??n.rotation,a):(p=e3(n.rotation,r,d||0,u),f=n.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(p.rotation)),!isFinite(f)&&(f=null)));var g=s.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=te(n.nameTruncateMaxWidth,v.maxWidth,f),x=new Tt({x:h[0],y:h[1],rotation:p.rotation,silent:gr.isLabelSilent(e),style:Rt(s,{text:o,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if($r({el:x,componentModel:e,itemName:o}),x.__fullText=o,x.anid="name",e.get("triggerEvent")){var _=gr.makeAxisEventDataBase(e);_.targetType="axisName",_.name=o,st(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function e3(n,e,t,i){var o=O0(t-n),r,a,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return vu(o-oo/2)?(a=l?"bottom":"top",r="center"):vu(o-oo*1.5)?(a=l?"top":"bottom",r="center"):(a="middle",o<oo*1.5&&o>oo/2?r=l?"left":"right":r=l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function n3(n,e,t){if(!Zw(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),o=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var r=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],p=t[t.length-2];i===!1?(gn(r),gn(u)):RM(r,a)&&(i?(gn(a),gn(c)):(gn(r),gn(u))),o===!1?(gn(s),gn(h)):RM(l,s)&&(o?(gn(l),gn(p)):(gn(s),gn(h)))}}function gn(n){n&&(n.ignore=!0)}function RM(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var o=Ul([]);return xo(o,o,-n.rotation),t.applyTransform(li([],o,n.getLocalTransform())),i.applyTransform(li([],o,e.getLocalTransform())),t.intersect(i)}}function VM(n){return n==="middle"||n==="center"}function zM(n,e,t,i,o){for(var r=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=t,e&&(fe(a,a,e),fe(s,s,e));var c=new de({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Kr(c.shape,c.style.lineWidth),c.anid=o+"_"+n[l].tickValue,r.push(c)}return r}function i3(n,e,t,i){var o=t.axis,r=t.getModel("axisTick"),a=r.get("show");if(a==="auto"&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),!(!a||o.scale.isBlank())){for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),u=o.getTicksCoords(),c=zM(u,e.transform,l,nt(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)n.add(c[h]);return c}}function o3(n,e,t,i){var o=t.axis,r=t.getModel("minorTick");if(!(!r.get("show")||o.scale.isBlank())){var a=o.getMinorTicksCoords();if(a.length)for(var s=r.getModel("lineStyle"),l=i*r.get("length"),u=nt(s.getLineStyle(),nt(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=zM(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)n.add(h[p])}}function r3(n,e,t,i){var o=t.axis,r=te(i.axisLabelShow,t.get(["axisLabel","show"]));if(!(!r||o.scale.isBlank())){var a=t.getModel("axisLabel"),s=a.get("margin"),l=o.getViewLabels(),u=(te(i.labelRotate,a.get("rotate"))||0)*oo/180,c=gr.innerTextLayout(i.rotation,u,i.labelDirection),h=t.getCategories&&t.getCategories(!0),p=[],d=gr.isLabelSilent(t),f=t.get("triggerEvent");return C(l,function(g,v){var y=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,x=g.rawLabel,_=a;if(h&&h[y]){var w=h[y];tt(w)&&w.textStyle&&(_=new Vt(w.textStyle,a,t.ecModel))}var b=_.getTextColor()||t.get(["axisLine","lineStyle","color"]),S=o.dataToCoord(y),M=new Tt({x:S,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(g.level||0),style:Rt(_,{text:m,align:_.getShallow("align",!0)||c.textAlign,verticalAlign:_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,fill:Q(b)?b(o.type==="category"?x:o.type==="value"?y+"":y,v):b})});if(M.anid="label_"+y,f){var D=gr.makeAxisEventDataBase(t);D.targetType="axisLabel",D.value=x,D.tickIndex=v,o.type==="category"&&(D.dataIndex=y),st(M).eventData=D}e.add(M),M.updateTransform(),p.push(M),n.add(M),M.decomposeTransform()}),p}}const Si=gr;function a3(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return s3(t,n,e),t.seriesInvolved&&u3(t,n),t}function s3(n,e,t){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),r=o.get("link",!0)||[],a=[];C(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ll(s.model),u=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",i);if(C(s.getAxes(),lt(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var p=h.get("trigger")==="axis",d=h.get(["axisPointer","type"])==="cross",f=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||d)&&C(f.baseAxes,lt(g,d?"cross":!0,p)),d&&C(f.otherAxes,lt(g,"cross",!1))}function g(v,y,m){var x=m.model.getModel("axisPointer",o),_=x.get("show");if(!(!_||_==="auto"&&!v&&!Gg(x))){y==null&&(y=x.get("triggerTooltip")),x=v?l3(m,h,o,e,v,y):x;var w=x.get("snap"),b=x.get("triggerEmphasis"),S=ll(m.model),M=y||w||m.type==="category",D=n.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:x,triggerTooltip:y,triggerEmphasis:b,involveSeries:M,snap:w,useHandle:Gg(x),seriesModels:[],linkGroup:null};u[S]=D,n.seriesInvolved=n.seriesInvolved||M;var T=c3(r,m);if(T!=null){var I=a[T]||(a[T]={axesInfo:{}});I.axesInfo[S]=D,I.mapper=r[T].mapper,D.linkGroup=I}}}})}function l3(n,e,t,i,o,r){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(p){l[p]=it(a.get(p))}),l.snap=n.type!=="category"&&!!r,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),o==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!r){var h=l.lineStyle=a.get("crossStyle");h&&nt(u,h.textStyle)}}return n.model.getModel("axisPointer",new Vt(l,t,i))}function u3(n,e){e.eachSeries(function(t){var i=t.coordinateSystem,o=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);!i||o==="none"||o===!1||o==="item"||r===!1||t.get(["axisPointer","show"],!0)===!1||C(n.coordSysAxesInfo[ll(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(t),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=t.getData().count())})})}function c3(n,e){for(var t=e.model,i=e.dim,o=0;o<n.length;o++){var r=n[o]||{};if(Bg(r[i+"AxisId"],t.id)||Bg(r[i+"AxisIndex"],t.componentIndex)||Bg(r[i+"AxisName"],t.name))return o}}function Bg(n,e){return n==="all"||G(n)&&yt(n,e)>=0||n===e}function h3(n){var e=Fg(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,o=t.option,r=t.get("status"),a=t.get("value");a!=null&&(a=i.parse(a));var s=Gg(t);r==null&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function Fg(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ll(n)]}function p3(n){var e=Fg(n);return e&&e.axisPointerModel}function Gg(n){return!!n.get(["handle","show"])}function ll(n){return n.type+"||"+n.id}var Wg={},d3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this.axisPointerClass&&h3(t),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,o,!0)},e.prototype.updateAxisPointer=function(t,i,o,r){this._doUpdateAxisPointerClass(t,o,!1)},e.prototype.remove=function(t,i){var o=this._axisPointer;o&&o.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,o){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=p3(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,i,o):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){if(process.env.NODE_ENV!=="production"&&Wg[t])throw new Error("axisPointer "+t+" exists");Wg[t]=i},e.getAxisPointerClass=function(t){return t&&Wg[t]},e.type="axis",e}(qt);const vr=d3;var Hg=Mt();function BM(n,e,t,i){var o=t.axis;if(!o.scale.isBlank()){var r=t.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:r,clamp:!0});if(u.length){var c=s.length,h=Hg(n).splitAreaColors,p=K(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(g!=null){d=(g+(c-1)*f)%c;break}}var v=o.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=G(s)?s:[s];for(var f=1;f<u.length;f++){var m=o.toGlobalCoord(u[f].coord),x=void 0,_=void 0,w=void 0,b=void 0;o.isHorizontal()?(x=v,_=l.y,w=m-x,b=l.height,v=x+w):(x=l.x,_=v,w=l.width,b=m-_,v=_+b);var S=u[f-1].tickValue;S!=null&&p.set(S,d),e.add(new It({anid:S!=null?"area_"+S:null,shape:{x,y:_,width:w,height:b},style:nt({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Hg(n).splitAreaColors=p}}}function FM(n){Hg(n).splitAreaColors=null}var f3=["axisLine","axisTickLabel","axisName"],g3=["splitArea","splitLine","minorSplitLine"],GM=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,o,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Rg(s,t),u=new Si(t,z({handleAutoShown:function(h){for(var p=s.coordinateSystem.getCartesians(),d=0;d<p.length;d++)if(eg(p[d].getOtherAxis(t.axis).scale))return!0;return!1}},l));C(f3,u.add,u),this._axisGroup.add(u.getGroup()),C(g3,function(h){t.get([h,"show"])&&v3[h](this,this._axisGroup,t,s)},this);var c=r&&r.type==="changeAxisOrder"&&r.isInitSort;c||xs(a,this._axisGroup,t),n.prototype.render.call(this,t,i,o,r)}},e.prototype.remove=function(){FM(this)},e.type="cartesianAxis",e}(vr),v3={splitLine:function(n,e,t,i){var o=t.axis;if(!o.scale.isBlank()){var r=t.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=G(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=o.isHorizontal(),c=0,h=o.getTicksCoords({tickModel:r}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=o.toGlobalCoord(h[g].coord);u?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var y=c++%s.length,m=h[g].tickValue,x=new de({anid:m!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:nt({stroke:s[y]},f),silent:!0});Kr(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(n,e,t,i){var o=t.axis,r=t.getModel("minorSplitLine"),a=r.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],p=a.getLineStyle(),d=0;d<u.length;d++)for(var f=0;f<u[d].length;f++){var g=o.toGlobalCoord(u[d][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new de({anid:"minor_line_"+u[d][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:p,silent:!0});Kr(v.shape,p.lineWidth),e.add(v)}},splitArea:function(n,e,t,i){BM(n,e,t,i)}},WM=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(GM),y3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=WM.type,t}return e.type="yAxis",e}(GM),m3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new It({shape:t.coordinateSystem.getRect(),style:nt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(qt),HM={offset:0};function YM(n){n.registerComponentView(m3),n.registerComponentModel(WB),n.registerCoordinateSystem("cartesian2d",t3),Sa(n,"x",Eg,HM),Sa(n,"y",Eg,HM),n.registerComponentView(WM),n.registerComponentView(y3),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function x3(n){mt(YM),n.registerSeriesModel(OB),n.registerChartView(FB),n.registerLayout(rl("scatter"))}function _3(n){n.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],o=e.coordinateSystem;if(o){var r=o.getIndicatorAxes();C(r,function(a,s){t.each(t.mapDimension(r[s].dim),function(l,u){i[u]=i[u]||[];var c=o.dataToPoint(l,s);i[u][s]=XM(c)?c:UM(o)})}),t.each(function(a){var s=rk(i[a],function(l){return XM(l)})||UM(o);i[a].push(s.slice()),t.setItemLayout(a,i[a])})}})}function XM(n){return!isNaN(n[0])&&!isNaN(n[1])}function UM(n){return[n.cx,n.cy]}function b3(n){var e=n.polar;if(e){G(e)||(e=[e]);var t=[];C(e,function(i,o){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],G(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):t.push(i)}),n.polar=t}C(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var w3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.coordinateSystem,a=this.group,s=t.getData(),l=this._data;function u(p,d){var f=p.getItemVisual(d,"symbol")||"circle";if(f!=="none"){var g=da(p.getItemVisual(d,"symbolSize")),v=oe(f,-1,-1,2,2),y=p.getItemVisual(d,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),v}}function c(p,d,f,g,v,y){f.removeAll();for(var m=0;m<d.length-1;m++){var x=u(g,v);x&&(x.__dimIdx=m,p[m]?(x.setPosition(p[m]),ws[y?"initProps":"updateProps"](x,{x:d[m][0],y:d[m][1]},t,v)):x.setPosition(d[m]),f.add(x))}}function h(p){return W(p,function(d){return[r.cx,r.cy]})}s.diff(l).add(function(p){var d=s.getItemLayout(p);if(d){var f=new Ge,g=new We,v={shape:{points:d}};f.shape.points=h(d),g.shape.points=h(d),Yt(f,v,t,p),Yt(g,v,t,p);var y=new ot,m=new ot;y.add(g),y.add(f),y.add(m),c(g.shape.points,d,m,s,p,!0),s.setItemGraphicEl(p,y)}}).update(function(p,d){var f=l.getItemGraphicEl(d),g=f.childAt(0),v=f.childAt(1),y=f.childAt(2),m={shape:{points:s.getItemLayout(p)}};m.shape.points&&(c(g.shape.points,m.shape.points,y,s,p,!1),An(v),An(g),Ct(g,m,t),Ct(v,m,t),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),v=p.childAt(1),y=p.childAt(2),m=s.getItemVisual(d,"style"),x=m.fill;a.add(p),g.useStyle(nt(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),ve(g,f,"lineStyle"),ve(v,f,"areaStyle");var _=f.getModel("areaStyle"),w=_.isEmpty()&&_.parentModel.isEmpty();v.ignore=w,C(["emphasis","select","blur"],function(M){var D=f.getModel([M,"areaStyle"]),T=D.isEmpty()&&D.parentModel.isEmpty();v.ensureState(M).ignore=T&&w}),v.useStyle(nt(_.getAreaStyle(),{fill:x,opacity:.7,decal:m.decal}));var b=f.getModel("emphasis"),S=b.getModel("itemStyle").getItemStyle();y.eachChild(function(M){if(M instanceof ge){var D=M.style;M.useStyle(z({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else M.useStyle(m),M.setColor(x),M.style.strokeNoScale=!0;var T=M.ensureState("emphasis");T.style=it(S);var I=s.getStore().get(s.getDimensionIndex(M.__dimIdx),d);(I==null||isNaN(I))&&(I=""),ye(M,ue(f),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:M.__dimIdx,defaultText:I,inheritColor:x,defaultOpacity:m.opacity})}),jt(p,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(zt);const S3=w3;var M3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new sl(Z(this.getData,this),Z(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return wa(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=ib(this,t);return ce("section",{header:u,sortBlocks:!0,blocks:W(s,function(h){var p=r.get(r.mapDimension(h.dim),t);return ce("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),o=this.coordinateSystem,r=i.getValues(W(o.dimensions,function(u){return i.mapDimension(u)}),t),a=0,s=r.length;a<s;a++)if(!isNaN(r[a])){var l=o.getIndicatorAxes();return o.coordToPoint(l[a].dataToCoord(r[a]),a)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Ut);const I3=M3;var ul=TM.value;function Qc(n,e){return nt({show:e},n)}var D3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),o=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),p=this.get("triggerEvent"),d=W(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=nt({color:f.color},l));var v=pt(it(f),{boundaryGap:t,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:p},!1);if(X(c)){var y=v.name;v.name=c.replace("{value}",y??"")}else Q(c)&&(v.name=c(v.name,v));var m=new Vt(v,null,this.ecModel);return Jt(m,Ks.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:pt({lineStyle:{color:"#bbb"}},ul.axisLine),axisLabel:Qc(ul.axisLabel,!1),axisTick:Qc(ul.axisTick,!1),splitLine:Qc(ul.splitLine,!0),splitArea:Qc(ul.splitArea,!0),indicator:[]},e}(wt);const T3=D3;var C3=["axisLine","axisTickLabel","axisName"],A3=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),r=W(o,function(a){var s=a.model.get("showName")?a.name:"",l=new Si(a.model,{axisName:s,position:[i.cx,i.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(r,function(a){C(C3,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes();if(!o.length)return;var r=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),h=s.get("show"),p=l.get("color"),d=u.get("color"),f=G(p)?p:[p],g=G(d)?d:[d],v=[],y=[];function m(N,E,P){var O=P%E.length;return N[O]=N[O]||[],O}if(r==="circle")for(var x=o[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b<x.length;b++){if(c){var S=m(v,f,b);v[S].push(new jn({shape:{cx:_,cy:w,r:x[b].coord}}))}if(h&&b<x.length-1){var S=m(y,g,b);y[S].push(new Pu({shape:{cx:_,cy:w,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var M,D=W(o,function(E,P){var O=E.getTicksCoords();return M=M==null?O.length-1:Math.min(O.length-1,M),W(O,function(V){return i.coordToPoint(V.coord,P)})}),T=[],b=0;b<=M;b++){for(var I=[],A=0;A<o.length;A++)I.push(D[A][b]);if(I[0]?I.push(I[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+b),c){var S=m(v,f,b);v[S].push(new We({shape:{points:I}}))}if(h&&T){var S=m(y,g,b-1);y[S].push(new Ge({shape:{points:I.concat(T)}}))}T=I.slice().reverse()}var k=l.getLineStyle(),L=u.getAreaStyle();C(y,function(N,E){this.group.add(ln(N,{style:nt({stroke:"none",fill:g[E%g.length]},L),silent:!0}))},this),C(v,function(N,E){this.group.add(ln(N,{style:nt({fill:"none",stroke:f[E%f.length]},k),silent:!0}))},this)},e.type="radar",e}(qt);const k3=A3;var L3=function(n){R(e,n);function e(t,i,o){var r=n.call(this,t,i,o)||this;return r.type="value",r.angle=0,r.name="",r}return e}(On);const N3=L3;var E3=function(){function n(e,t,i){this.dimensions=[],this._model=e,this._indicatorAxes=W(e.getIndicatorModels(),function(o,r){var a="indicator_"+r,s=new N3(a,new to);return s.name=o.get("name"),s.model=o,o.axis=s,this.dimensions.push(a),s},this),this.resize(e,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},n.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],o=i.angle,r=this.cx+e*Math.cos(o),a=this.cy-e*Math.sin(o);return[r,a]},n.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=Math.sqrt(t*t+i*i);t/=o,i/=o;for(var r=Math.atan2(-i,t),a=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(r-c.angle);h<a&&(s=c,l=u,a=h)}return[l,+(s&&s.coordToData(o))]},n.prototype.resize=function(e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight(),a=Math.min(o,r)/2;this.cx=H(i[0],o),this.cy=H(i[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(X(s)||Dt(s))&&(s=[0,s]),this.r0=H(s[0],a),this.r=H(s[1],a),C(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},n.prototype.update=function(e,t){var i=this._indicatorAxes,o=this._model;C(i,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==o)){var u=s.getData();C(i,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var r=o.get("splitNumber"),a=new to;a.setExtent(0,r),a.setInterval(1),C(i,function(s,l){NM(s.scale,s.model,a)})},n.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.create=function(e,t){var i=[];return e.eachComponent("radar",function(o){var r=new n(o,e,t);i.push(r),o.coordinateSystem=r}),e.eachSeriesByType("radar",function(o){o.get("coordinateSystem")==="radar"&&(o.coordinateSystem=i[o.get("radarIndex")||0])}),i},n.dimensions=[],n}();const O3=E3;function P3(n){n.registerCoordinateSystem("radar",O3),n.registerComponentModel(T3),n.registerComponentView(k3),n.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function R3(n){mt(P3),n.registerChartView(S3),n.registerSeriesModel(I3),n.registerLayout(_3),n.registerProcessor(al("radar")),n.registerPreprocessor(b3)}var ZM="\0_ec_interaction_mutex";function V3(n,e,t){var i=Yg(n);i[e]=t}function z3(n,e,t){var i=Yg(n),o=i[e];o===t&&(i[e]=null)}function jM(n,e){return!!Yg(n)[e]}function Yg(n){return n[ZM]||(n[ZM]={})}Qn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},$t);var B3=function(n){R(e,n);function e(t){var i=n.call(this)||this;i._zr=t;var o=Z(i._mousedownHandler,i),r=Z(i._mousemoveHandler,i),a=Z(i._mouseupHandler,i),s=Z(i._mousewheelHandler,i),l=Z(i._pinchHandler,i);return i.enable=function(u,c){this.disable(),this._opt=nt(it(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",o),t.on("mousemove",r),t.on("mouseup",a)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},i.disable=function(){t.off("mousedown",o),t.off("mousemove",r),t.off("mouseup",a),t.off("mousewheel",s),t.off("pinch",l)},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Om(t)){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var o=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,o,r)&&(this._x=o,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Jc("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||jM(this._zr,"globalPan"))){var i=t.offsetX,o=t.offsetY,r=this._x,a=this._y,s=i-r,l=o-a;this._x=i,this._y=o,this._opt.preventDefaultMouseMove&&si(t.event),qM(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:r,oldY:a,newX:i,newY:o,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Om(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var i=Jc("zoomOnMouseWheel",t,this._opt),o=Jc("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,a=Math.abs(r),s=t.offsetX,l=t.offsetY;if(!(r===0||!i&&!o)){if(i){var u=a>3?1.4:a>1?1.2:1.1,c=r>0?u:1/u;Xg(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(o){var h=Math.abs(r),p=(r>0?1:-1)*(h>3?.4:h>1?.15:.05);Xg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!jM(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:.9090909090909091;Xg(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Je);function Xg(n,e,t,i,o){n.pointerChecker&&n.pointerChecker(i,o.originX,o.originY)&&(si(i.event),qM(n,e,t,i,o))}function qM(n,e,t,i,o){o.isAvailableBehavior=Z(Jc,null,t,i),n.trigger(e,o)}function Jc(n,e,t){var i=t[n];return!n||i&&(!X(i)||e.event[i+"Key"])}const cl=B3;function Ug(n,e,t){var i=n.target;i.x+=e,i.y+=t,i.dirty()}function Zg(n,e,t,i){var o=n.target,r=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,o.x-=(t-o.x)*(u-1),o.y-=(i-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var F3={axisPointer:1,tooltip:1,brush:1};function th(n,e,t){var i=e.getComponentByElement(n.topTarget),o=i&&i.coordinateSystem;return i&&i!==t&&!F3.hasOwnProperty(i.mainType)&&o&&o.model!==t}function KM(n){if(X(n)){var e=new DOMParser;n=e.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 jg,eh={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"},$M=_t(eh),nh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},QM=_t(nh),G3=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var i=KM(e);if(process.env.NODE_ENV!=="production"&&!i)throw new Error("Illegal svg");this._defsUsePending=[];var o=new ot;this._root=o;var r=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ke(i,o,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;Y3(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(a){var p=ih(a);p.length>=4&&(c={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(c&&s!=null&&l!=null&&(h=aI(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=o;o=new ot,o.add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&o.setClipPath(new It({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:r}},n.prototype._parseNode=function(e,t,i,o,r,a){var s=e.nodeName.toLowerCase(),l,u=o;if(s==="defs"&&(r=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=t;else{if(!r){var c=jg[s];if(c&&U(jg,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var p={name:h,namedFrom:null,svgNodeTagLower:s,el:l};i.push(p),s==="g"&&(u=p)}else o&&i.push({name:o.name,namedFrom:o,svgNodeTagLower:s,el:l});t.add(l)}}var d=JM[s];if(d&&U(JM,s)){var f=d.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=f)}}if(l&&l.isGroup)for(var v=e.firstChild;v;)v.nodeType===1?this._parseNode(v,l,i,u,r,a):v.nodeType===3&&a&&this._parseText(v,l),v=v.nextSibling},n.prototype._parseText=function(e,t){var i=new us({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),W3(i,t);var o=i.style,r=o.fontSize;r&&r<9&&(o.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var a=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=a;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},n.internalField=function(){jg={g:function(e,t){var i=new ot;return vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new It;return vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new jn;return vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new de;return vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new Rd;return vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),o;i&&(o=nI(i));var r=new Ge({shape:{points:o||[]},silent:!0});return vn(t,r),Ke(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var i=e.getAttribute("points"),o;i&&(o=nI(i));var r=new We({shape:{points:o||[]},silent:!0});return vn(t,r),Ke(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var i=new ge;return vn(t,i),Ke(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",o=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new ot;return vn(t,s),Ke(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),o=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),o!=null&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new ot;return vn(t,s),Ke(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),s},path:function(e,t){var i=e.getAttribute("d")||"",o=nx(i);return vn(t,o),Ke(e,o,this._defsUsePending,!1,!1),o.silent=!0,o}}}(),n}(),JM={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),o=parseInt(n.getAttribute("y2")||"0",10),r=new ys(e,t,i,o);return tI(n,r),eI(n,r),r},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),o=new yx(e,t,i);return tI(n,o),eI(n,o),o}};function tI(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function eI(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),o=void 0;i&&i.indexOf("%")>0?o=parseInt(i,10)/100:i?o=parseFloat(i):o=0;var r={};rI(t,r,r);var a=r.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:a})}t=t.nextSibling}}function vn(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),nt(e.__inheritedStyle,n.__inheritedStyle))}function nI(n){for(var e=ih(n),t=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);t.push([o,r])}return t}function Ke(n,e,t,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};n.nodeType===1&&(Z3(n,e),rI(n,a,s),i||j3(n,a,s)),r.style=r.style||{},a.fill!=null&&(r.style.fill=iI(r,"fill",a.fill,t)),a.stroke!=null&&(r.style.stroke=iI(r,"stroke",a.stroke,t)),C(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(r.style[l]=parseFloat(a[l]))}),C(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(r.style[l]=a[l])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=W(ih(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(r.invisible=!0),a.display==="none"&&(r.ignore=!0)}function W3(n,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,o=i;!i||i==="auto"||i==="baseline"?o="alphabetic":i==="before-edge"||i==="text-before-edge"?o="top":i==="after-edge"||i==="text-after-edge"?o="bottom":(i==="central"||i==="mathematical")&&(o="middle"),n.style.textBaseline=o}var r=e.__inheritedStyle;if(r){var a=r.textAlign,s=a;a&&(a==="middle"&&(s="center"),n.style.textAlign=s)}}var H3=/^url\(\s*#(.*?)\)/;function iI(n,e,t,i){var o=t&&t.match(H3);if(o){var r=wn(o[1]);i.push([n,e,r]);return}return t==="none"&&(t=null),t}function Y3(n,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=n[i[2]]}}var X3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ih(n){return n.match(X3)||[]}var U3=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,qg=Math.PI/180;function Z3(n,e){var t=n.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],o=null;t.replace(U3,function(h,p,d){return i.push(p,d),""});for(var r=i.length-1;r>0;r-=2){var a=i[r],s=i[r-1],l=ih(a);switch(o=o||en(),s){case"translate":zn(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":vp(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":xo(o,o,-parseFloat(l[0])*qg);break;case"skewX":var u=Math.tan(parseFloat(l[0])*qg);li(o,[1,0,u,1,0,0],o);break;case"skewY":var c=Math.tan(parseFloat(l[0])*qg);li(o,[1,c,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var oI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function rI(n,e,t){var i=n.getAttribute("style");if(i){oI.lastIndex=0;for(var o;(o=oI.exec(i))!=null;){var r=o[1],a=U(eh,r)?eh[r]:null;a&&(e[a]=o[2]);var s=U(nh,r)?nh[r]:null;s&&(t[s]=o[2])}}}function j3(n,e,t){for(var i=0;i<$M.length;i++){var o=$M[i],r=n.getAttribute(o);r!=null&&(e[eh[o]]=r)}for(var i=0;i<QM.length;i++){var o=QM[i],r=n.getAttribute(o);r!=null&&(t[nh[o]]=r)}}function aI(n,e){var t=e.width/n.width,i=e.height/n.height,o=Math.min(t,i);return{scale:o,x:-(n.x+n.width/2)*o+(e.x+e.width/2),y:-(n.y+n.height/2)*o+(e.y+e.height/2)}}function q3(n,e){var t=new G3;return t.parse(n,e)}var K3=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$3=function(){function n(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=KM(t)}return n.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=J3(e.named),i=t.regions,o=t.regionsMap;this._regions=i,this._regionsMap=o}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(e){var t,i;try{t=e&&q3(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,et(i!=null)}catch(v){throw new Error(`Invalid svg format
|
|
57
|
+
`+v.message)}var o=new ot;o.add(i),o.isGeoSVGGraphicRoot=!0;var r=t.width,a=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,p=void 0;if(r!=null?(u=0,h=r):s&&(u=s.x,h=s.width),a!=null?(c=0,p=a):s&&(c=s.y,p=s.height),u==null||c==null){var d=i.getBoundingRect();u==null&&(u=d.x,h=d.width),c==null&&(c=d.y,p=d.height)}l=this._boundingRect=new dt(u,c,h,p)}if(s){var f=aI(s,l);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}o.setClipPath(new It({shape:l.plain()}));var g=[];return C(t.named,function(v){K3.get(v.svgNodeTagLower)!=null&&(g.push(v),Q3(v.el))}),{root:o,boundingRect:l,named:g}},n.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},n.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},n}();function Q3(n){n.silent=!1,n.isGroup&&n.traverse(function(e){e.silent=!1})}function J3(n){var e=[],t=K();return C(n,function(i){if(i.namedFrom==null){var o=new m5(i.name,i.el);e.push(o),t.set(i.name,o)}}),{regions:e,regionsMap:t}}for(var Kg=[126,25],sI="\u5357\u6D77\u8BF8\u5C9B",yr=[[[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]]],mr=0;mr<yr.length;mr++)for(var Ma=0;Ma<yr[mr].length;Ma++)yr[mr][Ma][0]/=10.5,yr[mr][Ma][1]/=-10.5/.75,yr[mr][Ma][0]+=Kg[0],yr[mr][Ma][1]+=Kg[1];function tF(n,e){if(n==="china"){for(var t=0;t<e.length;t++)if(e[t].name===sI)return;e.push(new Jw(sI,W(yr,function(i){return{type:"polygon",exterior:i}}),Kg))}}var eF={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function nF(n,e){if(n==="china"){var t=eF[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var iF=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function oF(n,e){n==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:iF[0]})}var rF="name",aF=function(){function n(e,t,i){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=i,this._geoJSON=lF(t)}return n.prototype.load=function(e,t){t=t||rF;var i=this._parsedMap.get(t);if(!i){var o=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:o,boundingRect:sF(o)})}var r=K(),a=[];return C(i.regions,function(s){var l=s.name;e&&U(e,l)&&(s=s.cloneShallow(l=e[l])),a.push(s),r.set(l,s)}),{regions:a,boundingRect:i.boundingRect||new dt(0,0,0,0),regionsMap:r}},n.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,o;try{o=i?_5(i,e):[]}catch(r){throw new Error(`Invalid geoJson format
|
|
58
|
+
`+r.message)}return tF(t,o),C(o,function(r){var a=r.name;nF(t,r),oF(t,r);var s=this._specialAreas&&this._specialAreas[a];s&&r.transformTo(s.left,s.top,s.width,s.height)},this),o},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function sF(n){for(var e,t=0;t<n.length;t++){var i=n[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function lF(n){return X(n)?typeof JSON<"u"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var hl=K();const Mi={registerMap:function(n,e,t){if(e.svg){var i=new $3(n,e.svg);hl.set(n,i)}else{var o=e.geoJson||e.geoJSON;o&&!e.features?t=e.specialAreas:o=e;var i=new aF(n,o,t);hl.set(n,i)}},getGeoResource:function(n){return hl.get(n)},getMapForUser:function(n){var e=hl.get(n);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(n,e,t){var i=hl.get(n);if(!i){process.env.NODE_ENV!=="production"&&console.error("Map "+n+" not exists. The GeoJSON of the map must be provided.");return}return i.load(e,t)}};var $g=["rect","circle","line","ellipse","polygon","polyline","path"],uF=K($g),cF=K($g.concat(["g"])),hF=K($g.concat(["g"])),lI=Mt();function oh(n){var e=n.getItemStyle(),t=n.get("areaColor");return t!=null&&(e.fill=t),e}function uI(n){var e=n.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var pF=function(){function n(e){var t=new ot;this.uid=Jr("ec_map_draw"),this._controller=new cl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ot),t.add(this._svgGroup=new ot)}return n.prototype.draw=function(e,t,i,o,r){var a=e.mainType==="geo",s=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),p=h.raw,d=h.roam,f=!u.childAt(0)||r;f?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Ct(c,d,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,v={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(v):l.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,o)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=K(),i=K(),o=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(d,f){return f&&(d=f(d)),d&&[d[0]*r.scaleX+r.x,d[1]*r.scaleY+r.y]}function h(d){for(var f=[],g=!u&&l&&l.project,v=0;v<d.length;++v){var y=c(d[v],g);y&&f.push(y)}return f}function p(d){return{shape:{points:h(d)}}}o.removeAll(),C(e.geo.regions,function(d){var f=d.name,g=t.get(f),v=i.get(f)||{},y=v.dataIdx,m=v.regionModel;g||(g=t.set(f,new ot),o.add(g),y=s?s.indexOfName(f):null,m=e.isGeo?a.getRegionModel(f):s?s.getItemModel(y):null,i.set(f,{dataIdx:y,regionModel:m}));var x=[],_=[];C(d.geometries,function(S){if(S.type==="polygon"){var M=[S.exterior].concat(S.interiors||[]);u&&(M=gI(M,u)),C(M,function(T){x.push(new Ge(p(T)))})}else{var D=S.points;u&&(D=gI(D,u,!0)),C(D,function(T){_.push(new We(p(T)))})}});var w=c(d.getCenter(),l&&l.project);function b(S,M){if(S.length){var D=new Bd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:S}});g.add(D),cI(e,D,y,m),hI(e,D,f,m,a,y,w),M&&(uI(D),C(D.states,uI))}}b(x),b(_,!0)}),t.each(function(d,f){var g=i.get(f),v=g.dataIdx,y=g.regionModel;pI(e,d,f,y,a,v),dI(e,d,f,y,a),fI(e,d,f,y,a)},this)},n.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var o=this._svgDispatcherMap=K(),r=!1;C(this._svgGraphicRecord.named,function(a){var s=a.name,l=e.mapOrGeoModel,u=e.data,c=a.svgNodeTagLower,h=a.el,p=u?u.indexOfName(s):null,d=l.getRegionModel(s);if(uF.get(c)!=null&&h instanceof an&&cI(e,h,p,d),h instanceof an&&(h.culling=!0),h.z2EmphasisLift=0,!a.namedFrom&&(hF.get(c)!=null&&hI(e,h,s,d,l,p,null),pI(e,h,s,d,l,p),dI(e,h,s,d,l),cF.get(c)!=null)){var f=fI(e,h,s,d,l);f==="self"&&(r=!0);var g=o.get(s)||o.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(r,e)},n.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),o=i.opacity;this._svgGraphicRecord.root.traverse(function(r){if(!r.isGroup){Fo(r);var a=r.ensureState("blur").style||{};a.opacity==null&&o!=null&&(a.opacity=o),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(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var o=this._regionsGroupByName;if(o){var r=o.get(e);return r?[r]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},n.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},n.prototype._useSVG=function(e){var t=Mi.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},n.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Mi.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(e,t,i){var o=e.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=o.getZoom(),r.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}r.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Ug(a,u.dx,u.dy),i.dispatchAction(z(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Zg(a,u.scale,u.originX,u.originY),i.dispatchAction(z(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(u,c,h){return o.containPoint([c,h])&&!th(u,i,e)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=lI(t).ignore)})},n.prototype._updateMapSelectHandler=function(e,t,i,o){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){r._mouseDownFlag=!0}),t.on("click",function(a){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},n}();function cI(n,e,t,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=oh(o),u=oh(r),c=oh(s),h=oh(a),p=n.data;if(p){var d=p.getItemVisual(t,"style"),f=p.getItemVisual(t,"decal");n.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=ga(f,n.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Fo(e)}function hI(n,e,t,i,o,r,a){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),r)),c=s&&s.getItemLayout(r);if(l||u||c&&c.showLabel){var h=l?t:r,p=void 0;(!s||r>=0)&&(p=o);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;ye(e,ue(i),{labelFetcher:p,labelDataIndex:h,defaultText:t},d);var f=e.getTextContent();if(f&&(lI(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function pI(n,e,t,i,o,r){n.data?n.data.setItemGraphicEl(r,e):st(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:t,region:i&&i.option||{}}}function dI(n,e,t,i,o){n.data||$r({el:e,componentModel:o,itemName:t,itemTooltipOption:i.get("tooltip")})}function fI(n,e,t,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return jt(e,a,r.get("blurScope"),r.get("disabled")),n.isGeo&&dE(e,o,t),a}function gI(n,e,t){var i=[],o;function r(){o=[]}function a(){o.length&&(i.push(o),o=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&o.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}const vI=pF;var dF=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){if(!(r&&r.type==="mapToggleSelect"&&r.from===this.uid)){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&r.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),r&&r.type==="geoRoam"&&r.componentType==="series"&&r.seriesId===t.id){var s=this._mapDraw;s&&a.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new vI(o);a.add(s.group),s.draw(t,i,o,this,r),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t,i,o)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,i,o){var r=t.originalData,a=this.group;r.each(r.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=r.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,p=new jn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:Yr+1)});if(!h){var d=t.mainSeries.getData(),f=r.getName(l),g=d.indexOfName(f),v=r.getItemModel(l),y=v.getModel("label"),m=d.getItemGraphicEl(g);ye(p,ue(v),{labelFetcher:{getFormattedLabel:function(x,_){return t.getFormattedLabel(g,_)}},defaultText:f}),p.disableLabelAnimation=!0,y.get("position")||p.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(x){Lu(p,x)}}a.add(p)}}})},e.type="map",e}(zt);const fF=dF;var gF=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(i){if(i!=null){var o=this.getData().getName(i),r=this.coordinateSystem,a=r.getRegion(o);return a&&r.dataToPoint(a.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=wa(this,{coordDimensions:["value"],encodeDefaulter:lt(rf,this)}),o=K(),r=[],a=0,s=i.count();a<s;a++){var l=i.getName(a);o.set(l,!0)}var u=Mi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return C(u.regions,function(c){var h=c.name;o.get(h)||r.push(h)}),i.appendValues([],r),i},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,o){for(var r=this.getData(),a=this.getRawValue(t),s=r.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),p=r.mapDimension("value");isNaN(l[c].originalData.get(p,h))||u.push(l[c].name)}return ce("section",{header:u.join(", "),noHeader:!u.length,blocks:[ce("nameValue",{name:s,value:a})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",o=oe(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return o.setStyle(t.itemStyle),o.style.stroke="none",i.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Ut);const vF=gF;function yF(n,e){var t={};return C(n,function(i){i.each(i.mapDimension("value"),function(o,r){var a="ec-"+i.getName(r);t[a]=t[a]||[],isNaN(o)||t[a].push(o)})}),n[0].map(n[0].mapDimension("value"),function(i,o){for(var r="ec-"+n[0].getName(o),a=0,s=1/0,l=-1/0,u=t[r].length,c=0;c<u;c++)s=Math.min(s,t[r][c]),l=Math.max(l,t[r][c]),a+=t[r][c];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=a/u:h=a,u===0?NaN:h})}function mF(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),o=i?"o"+i.id:"i"+t.getMapType();(e[o]=e[o]||[]).push(t)}),C(e,function(t,i){for(var o=yF(W(t,function(a){return a.getData()}),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(var r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=r===0&&!t[r].getHostGeoModel(),t[r].setData(o.cloneShallow()),t[r].mainSeries=t[0]})}function xF(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getMapType();if(!(t.getHostGeoModel()||e[i])){var o={};C(t.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),p=s.getRegion(h);if(!(!p||isNaN(u))){var d=o[h]||0,f=s.dataToPoint(p.getCenter());o[h]=d+1,l.setItemLayout(c,{point:f,offset:d})}})});var r=t.getData();r.each(function(a){var s=r.getName(a),l=r.getItemLayout(a)||{};l.showLabel=!o[s],r.setItemLayout(a,l)}),e[i]=!0}})}var yI=fe,_F=function(n){R(e,n);function e(t){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new hi,i._rawTransformable=new hi,i.name=t,i}return e.prototype.setBoundingRect=function(t,i,o,r){return this._rect=new dt(t,i,o,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,i,o,r){this._transformTo(t,i,o,r),this._viewRect=new dt(t,i,o,r)},e.prototype._transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new dt(t,i,o,r));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,i){t&&(this._center=[H(t[0],i.getWidth()),H(t[1],i.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var i=this.zoomLimit;i&&(i.max!=null&&(t=Math.min(i.max,t)),i.min!=null&&(t=Math.max(i.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),i=t.x+t.width/2,o=t.y+t.height/2;return[i,o]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),r=this.getCenter(),a=this.getZoom();r=fe([],r,t),o=fe([],o,t),i.originX=r[0],i.originY=r[1],i.x=o[0]-r[0],i.y=o[1]-r[1],i.scaleX=i.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,i=this._rawTransformable;i.parent=t,t.updateTransform(),i.updateTransform(),gp(this.transform||(this.transform=[]),i.transform||en()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],Er(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,o=new hi;return o.transform=i.transform,o.decomposeTransform(),{roam:{x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,i,o){var r=i?this._rawTransform:this.transform;return o=o||[],r?yI(o,t,r):Te(o,t)},e.prototype.pointToData=function(t){var i=this.invTransform;return i?yI([],t,i):[t[0],t[1]]},e.prototype.convertToPixel=function(t,i,o){var r=mI(i);return r===this?r.dataToPoint(o):null},e.prototype.convertFromPixel=function(t,i,o){var r=mI(i);return r===this?r.pointToData(o):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(hi);function mI(n){var e=n.seriesModel;return e?e.coordinateSystem:null}const pl=_F;var bF={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},xI=["lng","lat"],_I=function(n){R(e,n);function e(t,i,o){var r=n.call(this,t)||this;r.dimensions=xI,r.type="geo",r._nameCoordMap=K(),r.map=i;var a=o.projection,s=Mi.load(i,o.nameMap,o.nameProperty),l=Mi.getGeoResource(i),u=r.resourceType=l?l.type:null,c=r.regions=s.regions,h=bF[l.type];r._regionsMap=s.regionsMap,r.regions=s.regions,process.env.NODE_ENV!=="production"&&a&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Zt("Map "+i+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||(process.env.NODE_ENV!=="production"&&Zt("project and unproject must be both provided in the projeciton."),a=null)),r.projection=a;var p;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);p=p||f.clone(),p.union(f)}else p=s.boundingRect;return r.setBoundingRect(p.x,p.y,p.width,p.height),r.aspectScale=a?1:ct(o.aspectScale,h.aspectScale),r._invertLongitute=a?!1:h.invertLongitute,r}return e.prototype._transformTo=function(t,i,o,r){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 dt(t,i,o,r));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,o=0;o<i.length;o++){var r=i[o];if(r.type==="geoJSON"&&r.contain(t))return i[o]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,o){if(X(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,i,o)}},e.prototype.pointToData=function(t){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,i,o){return n.prototype.dataToPoint.call(this,t,i,o)},e.prototype.convertToPixel=function(t,i,o){var r=bI(i);return r===this?r.dataToPoint(o):null},e.prototype.convertFromPixel=function(t,i,o){var r=bI(i);return r===this?r.pointToData(o):null},e}(pl);Jt(_I,pl);function bI(n){var e=n.geoModel,t=n.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ne).models[0]||{}).coordinateSystem:null}const wI=_I;function SI(n,e){var t=n.get("boundingCoords");if(t!=null){var i=t[0],o=t[1];if(!(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var r=this.projection;if(r){var a=i[0],s=i[1],l=o[0],u=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var c=function(b,S,M,D){for(var T=M-b,I=D-S,A=0;A<=100;A++){var k=A/100,L=r.project([b+T*k,S+I*k]);Ni(i,i,L),Ei(o,o,L)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}}var h=this.getBoundingRect(),p=n.get("layoutCenter"),d=n.get("layoutSize"),f=e.getWidth(),g=e.getHeight(),v=h.width/h.height*this.aspectScale,y=!1,m,x;p&&d&&(m=[H(p[0],f),H(p[1],g)],x=H(d,Math.min(f,g)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(x)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var _;if(y)_={},v>1?(_.width=x,_.height=x/v):(_.height=x,_.width=x*v),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var w=n.getBoxLayoutParams();w.aspect=v,_=ae(w,{width:f,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function wF(n,e){C(e.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}var SF=function(){function n(){this.dimensions=xI}return n.prototype.create=function(e,t){var i=[];function o(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new wI(l+s,l,z({nameMap:a.get("nameMap")},o(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=SI,u.resize(a,t)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=i[l]}});var r={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();r[s]=r[s]||[],r[s].push(a)}}),C(r,function(a,s){var l=W(a,function(c){return c.get("nameMap")}),u=new wI(s,s,z({nameMap:tp(l)},o(a[0])));u.zoomLimit=te.apply(null,W(a,function(c){return c.get("scaleLimit")})),i.push(u),u.resize=SI,u.resize(a[0],t),C(a,function(c){c.coordinateSystem=u,wF(u,c)})}),i},n.prototype.getFilledRegions=function(e,t,i,o){for(var r=(e||[]).slice(),a=K(),s=0;s<r.length;s++)a.set(r[s].name,r[s]);var l=Mi.load(t,i,o);return C(l.regions,function(u){var c=u.name;!a.get(c)&&r.push({name:c})}),r},n}(),MF=new SF;const MI=MF;var IF=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=Mi.getGeoResource(t.map);if(r&&r.type==="geoJSON"){var a=t.itemStyle=t.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(t,o),To(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=MI.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var o={};this._optionModelMap=Vn(i.regions||[],function(r,a){var s=a.name;return s&&(r.set(s,new Vt(a,t,t.ecModel)),a.selected&&(o[s]=!0)),r},K()),i.selectedMap||(i.selectedMap=o)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Vt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var o=this.getRegionModel(t),r=i==="normal"?o.get(["label","formatter"]):o.get(["emphasis","label","formatter"]),a={name:t};if(Q(r))return a.status=i,r(a);if(X(r))return r.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var i=this.option,o=i.selectedMode;if(o){o!=="multiple"&&(i.selectedMap=null);var r=i.selectedMap||(i.selectedMap={});r[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(wt);const DF=IF;function II(n,e){return n.pointToProjected?n.pointToProjected(e):n.pointToData(e)}function Qg(n,e,t,i){var o=n.getZoom(),r=n.getCenter(),a=e.zoom,s=n.projectedToPoint?n.projectedToPoint(r):n.dataToPoint(r);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,n.setCenter(II(n,s),i)),a!=null){if(t){var l=t.min||0,u=t.max||1/0;a=Math.max(Math.min(o*a,u),l)/o}n.scaleX*=a,n.scaleY*=a;var c=(e.originX-n.x)*(a-1),h=(e.originY-n.y)*(a-1);n.x-=c,n.y-=h,n.updateTransform(),n.setCenter(II(n,s),i),n.setZoom(a*o)}return{center:n.getCenter(),zoom:n.getZoom()}}var TF=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,o,r){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new vI(o));var a=this._mapDraw;a.draw(t,i,o,this,r),a.group.on("click",this._handleRegionClick,this),a.group.silent=t.get("silent"),this.group.add(a.group),this.updateSelectStatus(t,i,o)},e.prototype._handleRegionClick=function(t){var i;tr(t.target,function(o){return(i=st(o).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,o){var r=this;this._mapDraw.group.traverse(function(a){var s=st(a).eventData;if(s)return r._model.isSelected(s.name)?o.enterSelect(a):o.leaveSelect(a),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(qt);const CF=TF;function AF(n,e,t){Mi.registerMap(n,e,t)}function DI(n){n.registerCoordinateSystem("geo",MI),n.registerComponentModel(DF),n.registerComponentView(CF),n.registerImpl("registerMap",AF),n.registerImpl("getMap",function(t){return Mi.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(o,r){var a={},s=[];return r.eachComponent({mainType:"geo",query:o},function(l){l[t](o.name);var u=l.coordinateSystem;C(u.regions,function(h){a[h.name]=l.isSelected(h.name)||!1});var c=[];C(a,function(h,p){a[p]&&c.push(p)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:a,allSelected:s,name:o.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,o){var r=t.componentType||"series";i.eachComponent({mainType:r,query:t},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=Qg(s,t,a.get("scaleLimit"),o);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),r==="series"&&C(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function kF(n){mt(DI),n.registerChartView(fF),n.registerSeriesModel(vF),n.registerLayout(xF),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mF),Tb("map",n.registerAction)}function LF(n){var e=n;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],i,o;i=t.pop();)if(o=i.children,i.isExpand&&o.length)for(var r=o.length,a=r-1;a>=0;a--){var s=o[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},t.push(s)}}function NF(n,e){var t=n.isExpand?n.children:[],i=n.parentNode.children,o=n.hierNode.i?i[n.hierNode.i-1]:null;if(t.length){PF(n);var r=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;o?(n.hierNode.prelim=o.hierNode.prelim+e(n,o),n.hierNode.modifier=n.hierNode.prelim-r):n.hierNode.prelim=r}else o&&(n.hierNode.prelim=o.hierNode.prelim+e(n,o));n.parentNode.hierNode.defaultAncestor=RF(n,o,n.parentNode.hierNode.defaultAncestor||i[0],e)}function EF(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function TI(n){return arguments.length?n:BF}function dl(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function OF(n,e){return ae(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function PF(n){for(var e=n.children,t=e.length,i=0,o=0;--t>=0;){var r=e[t];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}function RF(n,e,t,i){if(e){for(var o=n,r=n,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=Jg(s),r=tv(r),s&&r;){o=Jg(o),a=tv(a),o.hierNode.ancestor=n;var p=s.hierNode.prelim+h-r.hierNode.prelim-u+i(s,r);p>0&&(zF(VF(s,n,t),n,p),u+=p,l+=p),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!Jg(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),r&&!tv(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,t=n)}return t}function Jg(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function tv(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function VF(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function zF(n,e,t){var i=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=i}function BF(n,e){return n.parentNode===e.parentNode?1:2}var FF=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GF=function(n){R(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new FF},e.prototype.buildPath=function(t,i){var o=i.childPoints,r=o.length,a=i.parentPoint,s=o[0],l=o[r-1];if(r===1){t.moveTo(a[0],a[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,p=H(i.forkPosition,1),d=[];d[c]=a[c],d[h]=a[h]+(l[h]-a[h])*p,t.moveTo(a[0],a[1]),t.lineTo(d[0],d[1]),t.moveTo(s[0],s[1]),d[c]=s[c],t.lineTo(d[0],d[1]),d[c]=l[c],t.lineTo(d[0],d[1]),t.lineTo(l[0],l[1]);for(var f=1;f<r-1;f++){var g=o[f];t.moveTo(g[0],g[1]),d[c]=g[c],t.lineTo(d[0],d[1])}},e}(xt),WF=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new ot,t}return e.prototype.init=function(t,i){this._controller=new cl(i.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,i,o){var r=t.getData(),a=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="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(t,o),this._updateController(t,i,o);var u=this._data;r.diff(u).add(function(c){CI(r,c)&&AI(r,c,null,s,t)}).update(function(c,h){var p=u.getItemGraphicEl(h);if(!CI(r,c)){p&&NI(u,h,p,s,t);return}AI(r,c,p,s,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&NI(u,c,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&r.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){o.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=r},e.prototype._updateViewCoordSys=function(t,i){var o=t.getData(),r=[];o.each(function(h){var p=o.getItemLayout(h);p&&!isNaN(p.x)&&!isNaN(p.y)&&r.push([+p.x,+p.y])});var a=[],s=[];Iu(r,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 c=t.coordinateSystem=new pl;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),c.setCenter(t.get("center"),i),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=a,this._max=s},e.prototype._updateController=function(t,i,o){var r=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,c,h){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(c,h)&&!th(u,o,t)}),a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Ug(s,u.dx,u.dy),o.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Zg(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),r._updateNodeAndLinkScale(t),o.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),o=this._getNodeGlobalScale(t);i.eachItemGraphicEl(function(r,a){r.setSymbolScale(o)})},e.prototype._getNodeGlobalScale=function(t){var i=t.coordinateSystem;if(i.type!=="view")return 1;var o=this._nodeScaleRatio,r=i.scaleX||1,a=i.getZoom(),s=(a-1)*o+1;return s/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(zt);function CI(n,e){var t=n.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function AI(n,e,t,i,o){var r=!t,a=n.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",c=n.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=n.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();r?(t=new il(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=f.x,t.y=f.y):t.updateData(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=g.rawX,t.__radialRawY=g.rawY,i.add(t),n.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ct(t,{x:g.x,y:g.y},o);var v=t.getSymbolPath();if(o.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),x=y.children.length,_=void 0,w=void 0;if(g.x===m.x&&a.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};_=Math.atan2(b.y-m.y,b.x-m.x),_<0&&(_=Math.PI*2+_),w=b.x<m.x,w&&(_=_-Math.PI)}else _=Math.atan2(g.y-m.y,g.x-m.x),_<0&&(_=Math.PI*2+_),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(w=g.x<m.x,w&&(_=_-Math.PI)):(w=g.x>m.x,w||(_=_-Math.PI));var S=w?"left":"right",M=s.getModel("label"),D=M.get("rotate"),T=D*(Math.PI/180),I=v.getTextContent();I&&(v.setTextConfig({position:M.get("position")||S,rotation:D==null?-_:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),k=A==="relative"?Gl(a.getAncestorsIndices(),a.getDescendantIndices()):A==="ancestor"?a.getAncestorsIndices():A==="descendant"?a.getDescendantIndices():null;k&&(st(t).focus=k),HF(o,a,c,t,f,d,g,i),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var N=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);N&&N.hoverState===cs||Lu(t.__edge,L)}})}function HF(n,e,t,i,o,r,a,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),h=n.getOrient(),p=n.get(["lineStyle","curveness"]),d=n.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=i.__edge=new Ru({shape:ev(c,h,p,o,o)})),Ct(g,{shape:ev(c,h,p,r,a)},n));else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var v=e.children,y=[],m=0;m<v.length;m++){var x=v[m].getLayout();y.push([x.x,x.y])}g||(g=i.__edge=new GF({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:d}})),Ct(g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},n)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(nt({strokeNoScale:!0,fill:null},f)),ve(g,l,"lineStyle"),Fo(g),s.add(g))}function kI(n,e,t,i,o){var r=e.tree.root,a=LI(r,n),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(n.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,p=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),d=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),v=i.get(["lineStyle","curveness"]);p&&(d==="curve"?Yi(p,{shape:ev(f,g,v,l,l),style:{opacity:0}},i,{cb:function(){t.remove(p)},removeOpt:o}):d==="polyline"&&i.get("layout")==="orthogonal"&&Yi(p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(p)},removeOpt:o}))}}function LI(n,e){for(var t=e.parentNode===n?e:e.parentNode||e,i;i=t.getLayout(),i==null;)t=t.parentNode===n?t:t.parentNode||t;return{source:t,sourceLayout:i}}function NI(n,e,t,i,o){var r=n.tree.getNodeByDataIndex(e),a=n.tree.root,s=LI(a,r).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};Yi(t,{x:s.x+1,y:s.y+1},o,{cb:function(){i.remove(t),n.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:l}),r.children.forEach(function(u){kI(u,n,i,o,l)}),kI(r,n,i,o,l)}function ev(n,e,t,i,o){var r,a,s,l,u,c,h,p;if(n==="radial"){u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY;var d=dl(u,h),f=dl(u,h+(p-h)*t),g=dl(c,p+(h-p)*t),v=dl(c,p);return{x1:d.x||0,y1:d.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=i.x,h=i.y,c=o.x,p=o.y,(e==="LR"||e==="RL")&&(r=u+(c-u)*t,a=h,s=c+(u-c)*t,l=p),(e==="TB"||e==="BT")&&(r=u,a=h+(p-h)*t,s=c,l=p+(h-p)*t);return{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l}}const YF=WF;var yn=Mt();function EI(n){var e=n.mainData,t=n.datas;t||(t={main:e},n.datasAttr={main:"data"}),n.datas=n.mainData=null,OI(e,t,n),C(t,function(i){C(e.TRANSFERABLE_METHODS,function(o){i.wrapMethod(o,lt(XF,n))})}),e.wrapMethod("cloneShallow",lt(ZF,n)),C(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,lt(UF,n))}),et(t[e.dataType]===e)}function XF(n,e){if(KF(this)){var t=z({},yn(this).datas);t[this.dataType]=e,OI(e,t,n)}else nv(e,this.dataType,yn(this).mainData,n);return e}function UF(n,e){return n.struct&&n.struct.update(),e}function ZF(n,e){return C(yn(e).datas,function(t,i){t!==e&&nv(t.cloneShallow(),i,e,n)}),e}function jF(n){var e=yn(this).mainData;return n==null||e==null?e:yn(e).datas[n]}function qF(){var n=yn(this).mainData;return n==null?[{data:n}]:W(_t(yn(n).datas),function(e){return{type:e,data:yn(n).datas[e]}})}function KF(n){return yn(n).mainData===n}function OI(n,e,t){yn(n).datas={},C(e,function(i,o){nv(i,o,n,t)})}function nv(n,e,t,i){yn(t).datas[e]=n,yn(n).mainData=t,n.dataType=e,i.struct&&(n[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=n),n.getLinkedData=jF,n.getLinkedDataAll=qF}var $F=function(){function n(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(e,t,i){Q(e)&&(i=t,t=e,e=null),e=e||{},X(e)&&(e={order:e});var o=e.order||"preorder",r=this[e.attr||"children"],a;o==="preorder"&&(a=t.call(i,this));for(var s=0;!a&&s<r.length;s++)r[s].eachNode(e,t,i);o==="postorder"&&t.call(i,this)},n.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var o=this.children[i];o.updateDepthAndHeight(e+1),o.height>t&&(t=o.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,o=i.length;t<o;t++){var r=i[t].getNodeById(e);if(r)return r}},n.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,o=i.length;t<o;t++){var r=i[t].contains(e);if(r)return r}},n.prototype.getAncestors=function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},n.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},n.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},n.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},n.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},n.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},n.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},n}(),QF=function(){function n(e){this.type="tree",this._nodes=[],this.hostModel=e}return n.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},n.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},n.prototype.getNodeById=function(e){return this.root.getNodeById(e)},n.prototype.update=function(){for(var e=this.data,t=this._nodes,i=0,o=t.length;i<o;i++)t[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)t[e.getRawIndex(i)].dataIndex=i},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(e,t,i){var o=new n(t),r=[],a=1;s(e);function s(c,h){var p=c.value;a=Math.max(a,G(p)?p.length:1),r.push(c);var d=new $F(re(c.name,""),o);h?JF(d,h):o.root=d,o._nodes.push(d);var f=c.children;if(f)for(var g=0;g<f.length;g++)s(f[g],d)}o.root.updateDepthAndHeight(0);var l=Zs(r,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new Ne(l,t);return u.initData(r),i&&i(u),EI({mainData:u,struct:o,structAttr:"tree"}),o.update(),o},n}();function JF(n,e){var t=e.children;n.parentNode!==e&&(t.push(n),n.parentNode=e)}const iv=QF;function fl(n,e,t){if(n&&yt(e,n.type)>=0){var i=t.getData().tree.root,o=n.targetNode;if(X(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=n.targetNodeId;if(r!=null&&(o=i.getNodeById(r)))return{node:o}}}function PI(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function ov(n,e){var t=PI(n);return yt(t,e)>=0}function rh(n,e){for(var t=[];n;){var i=n.dataIndex;t.push({name:n.name,dataIndex:i,value:e.getRawValue(i)}),n=n.parentNode}return t.reverse(),t}var tG=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},o=t.leaves||{},r=new Vt(o,this,this.ecModel),a=iv.createTree(i,this,s);function s(h){h.wrapMethod("getItemModel",function(p,d){var f=a.getNodeByDataIndex(d);return f&&f.children.length&&f.isExpand||(p.parentModel=r),p})}var l=0;a.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",function(h){var p=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=p&&p.collapsed!=null?!p.collapsed:h.depth<=c}),a.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,o){for(var r=this.getData().tree,a=r.root.children[0],s=r.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return ce("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=rh(o,this),i.collapsed=!o.isExpand,i},e.type="series.tree",e.layoutMode="box",e.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},e}(Ut);const eG=tG;function nG(n,e,t){for(var i=[n],o=[],r;r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,t)}function gl(n,e){for(var t=[n],i;i=t.pop();)if(e(i),i.isExpand){var o=i.children;if(o.length)for(var r=o.length-1;r>=0;r--)t.push(o[r])}}function iG(n,e){n.eachSeriesByType("tree",function(t){oG(t,e)})}function oG(n,e){var t=OF(n,e);n.layoutInfo=t;var i=n.get("layout"),o=0,r=0,a=null;i==="radial"?(o=2*Math.PI,r=Math.min(t.height,t.width)/2,a=TI(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(o=t.width,r=t.height,a=TI());var s=n.getData().tree.root,l=s.children[0];if(l){LF(s),nG(l,NF,a),s.hierNode.modifier=-l.hierNode.prelim,gl(l,EF);var u=l,c=l,h=l;gl(l,function(x){var _=x.getLayout().x;_<u.getLayout().x&&(u=x),_>c.getLayout().x&&(c=x),x.depth>h.depth&&(h=x)});var p=u===c?1:a(u,c)/2,d=p-u.getLayout().x,f=0,g=0,v=0,y=0;if(i==="radial")f=o/(c.getLayout().x+p+d),g=r/(h.depth-1||1),gl(l,function(x){v=(x.getLayout().x+d)*f,y=(x.depth-1)*g;var _=dl(v,y);x.setLayout({x:_.x,y:_.y,rawX:v,rawY:y},!0)});else{var m=n.getOrient();m==="RL"||m==="LR"?(g=r/(c.getLayout().x+p+d),f=o/(h.depth-1||1),gl(l,function(x){y=(x.getLayout().x+d)*g,v=m==="LR"?(x.depth-1)*f:o-(x.depth-1)*f,x.setLayout({x:v,y},!0)})):(m==="TB"||m==="BT")&&(f=o/(c.getLayout().x+p+d),g=r/(h.depth-1||1),gl(l,function(x){v=(x.getLayout().x+d)*f,y=m==="TB"?(x.depth-1)*g:r-(x.depth-1)*g,x.setLayout({x:v,y},!0)}))}}}function rG(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(o){var r=o.getModel(),a=r.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(o.dataIndex,"style");z(s,a)})})}function aG(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=e.dataIndex,r=i.getData().tree,a=r.getNodeByDataIndex(o);a.isExpand=!a.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(o){var r=o.coordinateSystem,a=Qg(r,e,void 0,i);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}function sG(n){n.registerChartView(YF),n.registerSeriesModel(eG),n.registerLayout(iG),n.registerVisual(rG),aG(n)}var RI=["treemapZoomToNode","treemapRender","treemapMove"];function lG(n){for(var e=0;e<RI.length;e++)n.registerAction({type:RI[e],update:"updateView"},$t);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},o);function o(r,a){var s=["treemapZoomToNode","treemapRootToNode"],l=fl(t,s,r);if(l){var u=r.getViewRoot();u&&(t.direction=ov(u,l.node)?"rollUp":"drillDown"),r.resetViewRoot(l.node)}}})}function VI(n){var e=n.getData(),t=e.tree,i={};t.eachNode(function(o){for(var r=o;r&&r.depth>1;)r=r.parentNode;var a=uf(n.ecModel,r.name||r.dataIndex+"",i);o.setVisual("decal",a)})}var uG=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var o={name:t.name,children:t.data};zI(o);var r=t.levels||[],a=this.designatedVisualItemStyle={},s=new Vt({itemStyle:a},this,i);r=t.levels=cG(r,i);var l=W(r||[],function(h){return new Vt(h,s,i)},this),u=iv.createTree(o,this,c);function c(h){h.wrapMethod("getItemModel",function(p,d){var f=u.getNodeByDataIndex(d),g=f?l[f.depth]:null;return p.parentModel=g||s,p})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.getRawValue(t),s=r.getName(t);return ce("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=rh(o,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},z(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=K(),this._idIndexMapCount=0);var o=i.get(t);return o==null&&i.set(t,o=this._idIndexMapCount++),o},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){VI(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ut);function zI(n){var e=0;C(n.children,function(i){zI(i);var o=i.value;G(o)&&(o=o[0]),e+=o});var t=n.value;G(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),G(n.value)?n.value[0]=t:n.value=t}function cG(n,e){var t=Nt(e.get("color")),i=Nt(e.get(["aria","decal","decals"]));if(t){n=n||[];var o,r;C(n,function(s){var l=new Vt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(o=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(r=!0)});var a=n[0]||(n[0]={});return o||(a.color=t.slice()),!r&&i&&(a.decal=i.slice()),n}}const hG=uG;var pG=8,BI=8,rv=5,dG=function(){function n(e){this.group=new ot,e.add(this.group)}return n.prototype.render=function(e,t,i,o){var r=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!r.get("show")||!i)){var s=r.getModel("itemStyle"),l=r.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,h,u),this._renderContent(e,h,s,l,u,c,o),ic(a,h.pos,h.box)}},n.prototype._prepare=function(e,t,i){for(var o=e;o;o=o.parentNode){var r=re(o.getModel().get("name"),""),a=i.getTextRect(r),s=Math.max(a.width+pG*2,t.emptyItemWidth);t.totalWidth+=s+BI,t.renderList.push({node:o,text:r,width:s})}},n.prototype._renderContent=function(e,t,i,o,r,a,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=wO(t.pos,t.box),p=t.totalWidth,d=t.renderList,f=o.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var v=d[g],y=v.node,m=v.width,x=v.text;p>h.width&&(p-=m-u,m=u,x=null);var _=new Ge({shape:{points:fG(l,0,m,c,g===d.length-1,g===0)},style:nt(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new Tt({style:Rt(r,{text:x})}),textConfig:{position:"inside"},z2:Yr*1e4,onclick:lt(s,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Rt(a,{text:x}),_.ensureState("emphasis").style=f,jt(_,o.get("focus"),o.get("blurScope"),o.get("disabled")),this.group.add(_),gG(_,e,y),l+=m+BI}},n.prototype.remove=function(){this.group.removeAll()},n}();function fG(n,e,t,i,o,r){var a=[[o?n:n-rv,e],[n+t,e],[n+t,e+i],[o?n:n-rv,e+i]];return!r&&a.splice(2,0,[n+t+rv,e+i/2]),!o&&a.push([n,e+i/2]),a}function gG(n,e,t){st(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&rh(t,e)}}const vG=dG;var yG=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,i,o,r){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:o,easing:r}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},o=0,r=this._storage.length;o<r;o++){var a=this._storage[o];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:i,aborted:i})}return this},n}();function mG(){return new yG}var av=ot,FI=It,GI=3,WI="label",HI="upperLabel",xG=Yr*10,_G=Yr*2,bG=Yr*3,xr=ko([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),YI=function(n){var e=xr(n);return e.stroke=e.fill=e.lineWidth=null,e},ah=Mt(),wG=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=vl(),t}return e.prototype.render=function(t,i,o,r){var a=i.findComponents({mainType:"series",subType:"treemap",query:r});if(!(yt(a,t)<0)){this.seriesModel=t,this.api=o,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=fl(r,s,t),u=r&&r.type,c=t.layoutInfo,h=!this._oldTree,p=this._storage,d=u==="treemapRootToNode"&&l&&p?{rootNodeGroup:p.nodeGroup[l.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(c),g=t.get("animation"),v=this._doRender(f,t,d);g&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(f,v,t,d):v.renderFinally(),this._resetController(o),this._renderBreadcrumb(t,o,l)}},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;return i||(i=this._containerGroup=new av,this._initEvents(i),this.group.add(i)),i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,o){var r=i.getData().tree,a=this._oldTree,s=vl(),l=vl(),u=this._storage,c=[];function h(v,y,m,x){return SG(i,l,u,o,s,c,v,y,m,x)}d(r.root?[r.root]:[],a&&a.root?[a.root]:[],t,r===a||!a,0);var p=f(u);return this._oldTree=r,this._storage=l,{lastsForAnimation:s,willDeleteEls:p,renderFinally:g};function d(v,y,m,x,_){x?(y=v,C(v,function(S,M){!S.isRemoved()&&b(M,M)})):new _i(y,v,w,w).add(b).update(b).remove(lt(b,null)).execute();function w(S){return S.getId()}function b(S,M){var D=S!=null?v[S]:null,T=M!=null?y[M]:null,I=h(D,T,m,_);I&&d(D&&D.viewChildren||[],T&&T.viewChildren||[],I,x,_+1)}}function f(v){var y=vl();return v&&C(v,function(m,x){var _=y[x];C(m,function(w){w&&(_.push(w),ah(w).willDelete=!0)})}),y}function g(){C(p,function(v){C(v,function(y){y.parent&&y.parent.remove(y)})}),C(c,function(v){v.invisible=!0,v.dirty()})}},e.prototype._doAnimation=function(t,i,o,r){var a=o.get("animationDurationUpdate"),s=o.get("animationEasing"),l=(Q(a)?0:a)||0,u=(Q(s)?null:s)||"cubicOut",c=mG();C(i.willDeleteEls,function(h,p){C(h,function(d,f){if(!d.invisible){var g=d.parent,v,y=ah(g);if(r&&r.direction==="drillDown")v=g===r.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,x=0;y.willDelete||(m=y.nodeWidth/2,x=y.nodeHeight/2),v=p==="nodeGroup"?{x:m,y:x,style:{opacity:0}}:{shape:{x:m,y:x,width:0,height:0},style:{opacity:0}}}v&&c.add(d,v,l,0,u)}})}),C(this._storage,function(h,p){C(h,function(d,f){var g=i.lastsForAnimation[p][f],v={};g&&(d instanceof ot?g.oldX!=null&&(v.x=d.x,v.y=d.y,d.x=g.oldX,d.y=g.oldY):(g.oldShape&&(v.shape=z({},d.shape),d.setShape(g.oldShape)),g.fadein?(d.setStyle("opacity",0),v.style={opacity:1}):d.style.opacity!==1&&(v.style={opacity:1})),c.add(d,v,l,0,u))})},this),this._state="animating",c.finished(Z(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this._controller;i||(i=this._controller=new cl(t.getZr()),i.enable(this.seriesModel.get("roam")),i.on("pan",Z(this._onPan,this)),i.on("zoom",Z(this._onZoom,this)));var o=new dt(0,0,t.getWidth(),t.getHeight());i.setPointerChecker(function(r,a,s){return o.contain(a,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>GI||Math.abs(t.dy)>GI)){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+t.dx,y:o.y+t.dy,width:o.width,height:o.height}})}},e.prototype._onZoom=function(t){var i=t.originX,o=t.originY;if(this._state!=="animating"){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;var s=new dt(a.x,a.y,a.width,a.height),l=this.seriesModel.layoutInfo;i-=l.x,o-=l.y;var u=en();zn(u,u,[-i,-o]),vp(u,u,[t.scale,t.scale]),zn(u,u,[i,o]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(o){if(i._state==="ready"){var r=i.seriesModel.get("nodeClick",!0);if(r){var a=i.findTarget(o.offsetX,o.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)i._rootToNode(a);else if(r==="zoomToNode")i._zoomToNode(a);else if(r==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&ec(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,o){var r=this;o||(o=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),o||(o={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vG(this.group))).render(t,i,o.node,function(a){r._state!=="animating"&&(ov(t.getViewRoot(),a)?r._rootToNode({node:a}):r._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=vl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var o,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)o={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),o},e.type="treemap",e}(zt);function vl(){return{nodeGroup:[],background:[],content:[]}}function SG(n,e,t,i,o,r,a,s,l,u){if(!a)return;var c=a.getLayout(),h=n.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var d=c.width,f=c.height,g=c.borderWidth,v=c.invisible,y=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,w=x&&x.length,b=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),D=p.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,I=j("nodeGroup",av);if(!I)return;if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),ah(I).nodeWidth=d,ah(I).nodeHeight=f,c.isAboveViewRoot)return I;var A=j("background",FI,u,_G);A&&V(I,A,w&&c.upperLabelHeight);var k=p.getModel("emphasis"),L=k.get("focus"),N=k.get("blurScope"),E=k.get("disabled"),P=L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():L;if(w)Hi(I)&&Wo(I,!1),A&&(Wo(A,!E),h.setItemGraphicEl(a.dataIndex,A),Ld(A,P,N));else{var O=j("content",FI,u,bG);O&&F(I,O),A.disableMorphing=!0,A&&Hi(A)&&Wo(A,!1),Wo(I,!E),h.setItemGraphicEl(a.dataIndex,I),Ld(I,P,N)}return I;function V(gt,J,vt){var rt=st(J);if(rt.dataIndex=a.dataIndex,rt.seriesIndex=n.seriesIndex,J.setShape({x:0,y:0,width:d,height:f,r:T}),v)B(J);else{J.invisible=!1;var q=a.getVisual("style"),at=q.stroke,Et=YI(b);Et.fill=at;var bt=xr(S);bt.fill=S.get("borderColor");var Gt=xr(M);Gt.fill=M.get("borderColor");var Wt=xr(D);if(Wt.fill=D.get("borderColor"),vt){var Xt=d-2*g;Y(J,at,q.opacity,{x:g,y:0,width:Xt,height:_})}else J.removeTextContent();J.setStyle(Et),J.ensureState("emphasis").style=bt,J.ensureState("blur").style=Gt,J.ensureState("select").style=Wt,Fo(J)}gt.add(J)}function F(gt,J){var vt=st(J);vt.dataIndex=a.dataIndex,vt.seriesIndex=n.seriesIndex;var rt=Math.max(d-2*g,0),q=Math.max(f-2*g,0);if(J.culling=!0,J.setShape({x:g,y:g,width:rt,height:q,r:T}),v)B(J);else{J.invisible=!1;var at=a.getVisual("style"),Et=at.fill,bt=YI(b);bt.fill=Et,bt.decal=at.decal;var Gt=xr(S),Wt=xr(M),Xt=xr(D);Y(J,Et,at.opacity,null),J.setStyle(bt),J.ensureState("emphasis").style=Gt,J.ensureState("blur").style=Wt,J.ensureState("select").style=Xt,Fo(J)}gt.add(J)}function B(gt){!gt.invisible&&r.push(gt)}function Y(gt,J,vt,rt){var q=p.getModel(rt?HI:WI),at=re(p.get("name"),null),Et=q.getShallow("show");ye(gt,ue(p,rt?HI:WI),{defaultText:Et?at:null,inheritColor:J,defaultOpacity:vt,labelFetcher:n,labelDataIndex:a.dataIndex});var bt=gt.getTextContent();if(bt){var Gt=bt.style,Wt=np(Gt.padding||0);rt&&(gt.setTextConfig({layoutRect:rt}),bt.disableLabelLayout=!0),bt.beforeUpdate=function(){var $e=Math.max((rt?rt.width:gt.shape.width)-Wt[1]-Wt[3],0),Ot=Math.max((rt?rt.height:gt.shape.height)-Wt[0]-Wt[2],0);(Gt.width!==$e||Gt.height!==Ot)&&bt.setStyle({width:$e,height:Ot})},Gt.truncateMinChar=2,Gt.lineOverflow="truncate",$(Gt,rt,c);var Xt=bt.getState("emphasis");$(Xt?Xt.style:null,rt,c)}}function $(gt,J,vt){var rt=gt?gt.text:null;if(!J&&vt.isLeafRoot&&rt!=null){var q=n.get("drillDownIcon",!0);gt.text=q?q+" "+rt:rt}}function j(gt,J,vt,rt){var q=m!=null&&t[gt][m],at=o[gt];return q?(t[gt][m]=null,ft(at,q)):v||(q=new J,q instanceof an&&(q.z2=MG(vt,rt)),ut(at,q)),e[gt][y]=q}function ft(gt,J){var vt=gt[y]={};J instanceof av?(vt.oldX=J.x,vt.oldY=J.y):vt.oldShape=z({},J.shape)}function ut(gt,J){var vt=gt[y]={},rt=a.parentNode,q=J instanceof ot;if(rt&&(!i||i.direction==="drillDown")){var at=0,Et=0,bt=o.background[rt.getRawIndex()];!i&&bt&&bt.oldShape&&(at=bt.oldShape.width,Et=bt.oldShape.height),q?(vt.oldX=0,vt.oldY=Et):vt.oldShape={x:at,y:Et,width:0,height:0}}vt.fadein=!q}}function MG(n,e){return n*xG+e}const IG=wG;var yl=C,DG=tt,sh=-1,sv=function(){function n(e){var t=e.mappingMethod,i=e.type,o=this.option=it(e);this.type=i,this.mappingMethod=t,this._normalizeData=AG[t];var r=n.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[t],t==="piecewise"?(lv(o),TG(o)):t==="category"?o.categories?CG(o):lv(o,!0):(et(t!=="linear"||o.dataExtent),lv(o))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},n.listVisualTypes=function(){return _t(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,i){tt(e)?C(e,t,i):t.call(i,e)},n.mapVisual=function(e,t,i){var o,r=G(e)?[]:tt(e)?{}:(o=!0,null);return n.eachVisual(e,function(a,s){var l=t.call(i,a,s);o?r=l:r[s]=l}),r},n.retrieveVisuals=function(e){var t={},i;return e&&yl(n.visualHandlers,function(o,r){e.hasOwnProperty(r)&&(t[r]=e[r],i=!0)}),i?t:null},n.prepareVisualTypes=function(e){if(G(e))e=e.slice();else if(DG(e)){var t=[];yl(e,function(i,o){t.push(o)}),e=t}else return[];return e.sort(function(i,o){return o==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,i){for(var o,r=1/0,a=0,s=t.length;a<s;a++){var l=t[a].value;if(l!=null){if(l===e||X(l)&&l===e+"")return a;i&&p(l,a)}}for(var a=0,s=t.length;a<s;a++){var u=t[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(uh(h[1],e,c[1]))return a}else if(c[1]===1/0){if(uh(h[0],c[0],e))return a}else if(uh(h[0],c[0],e)&&uh(h[1],e,c[1]))return a;i&&p(c[0],a),i&&p(c[1],a)}}if(i)return e===1/0?t.length-1:e===-1/0?0:o;function p(d,f){var g=Math.abs(d-e);g<r&&(r=g,o=f)}},n.visualHandlers={color:{applyVisual:ml("color"),getColorMapper:function(){var e=this.option;return Z(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),xl.call(this,t)}:function(t,i,o){var r=!!o;return!i&&(t=this._normalizeData(t)),o=Ap(t,e.parsedVisual,o),r?o:ui(o,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ui(Ap(e,this.option.parsedVisual),"rgba")},category:xl,piecewise:function(e,t){var i=cv.call(this,t);return i==null&&(i=ui(Ap(e,this.option.parsedVisual),"rgba")),i},fixed:_r}},colorHue:lh(function(e,t){return Ka(e,t)}),colorSaturation:lh(function(e,t){return Ka(e,null,t)}),colorLightness:lh(function(e,t){return Ka(e,null,null,t)}),colorAlpha:lh(function(e,t){return nu(e,t)}),decal:{applyVisual:ml("decal"),_normalizedToVisual:{linear:null,category:xl,piecewise:null,fixed:null}},opacity:{applyVisual:ml("opacity"),_normalizedToVisual:uv([0,1])},liftZ:{applyVisual:ml("liftZ"),_normalizedToVisual:{linear:_r,category:_r,piecewise:_r,fixed:_r}},symbol:{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("symbol",o)},_normalizedToVisual:{linear:XI,category:xl,piecewise:function(e,t){var i=cv.call(this,t);return i==null&&(i=XI.call(this,e)),i},fixed:_r}},symbolSize:{applyVisual:ml("symbolSize"),_normalizedToVisual:uv([0,1])}},n}();function TG(n){var e=n.pieceList;n.hasSpecialVisual=!1,C(e,function(t,i){t.originIndex=i,t.visual!=null&&(n.hasSpecialVisual=!0)})}function CG(n){var e=n.categories,t=n.categoryMap={},i=n.visual;if(yl(e,function(a,s){t[a]=s}),!G(i)){var o=[];tt(i)?yl(i,function(a,s){var l=t[s];o[l??sh]=a}):o[sh]=i,i=UI(n,o)}for(var r=e.length-1;r>=0;r--)i[r]==null&&(delete t[e[r]],e.pop())}function lv(n,e){var t=n.visual,i=[];tt(t)?yl(t,function(r){i.push(r)}):t!=null&&i.push(t);var o={color:1,symbol:1};!e&&i.length===1&&!o.hasOwnProperty(n.type)&&(i[1]=i[0]),UI(n,i)}function lh(n){return{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("color",n(t("color"),o))},_normalizedToVisual:uv([0,1])}}function XI(n){var e=this.option.visual;return e[Math.round(kt(n,[0,1],[0,e.length-1],!0))]||{}}function ml(n){return function(e,t,i){i(n,this.mapValueToVisual(e))}}function xl(n){var e=this.option.visual;return e[this.option.loop&&n!==sh?n%e.length:n]}function _r(){return this.option.visual[0]}function uv(n){return{linear:function(e){return kt(e,n,this.option.visual,!0)},category:xl,piecewise:function(e,t){var i=cv.call(this,t);return i==null&&(i=kt(e,n,this.option.visual,!0)),i},fixed:_r}}function cv(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=sv.findPieceIndex(n,t),o=t[i];if(o&&o.visual)return o.visual[this.type]}}function UI(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=W(e,function(t){var i=Ze(t);return!i&&process.env.NODE_ENV!=="production"&&Zt("'"+t+"' is an illegal color, fallback to '#000000'",!0),i||[0,0,0,1]})),e}var AG={linear:function(n){return kt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=sv.findPieceIndex(n,e,!0);if(t!=null)return kt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??sh},fixed:$t};function uh(n,e,t){return n?e<=t:e<t}const xe=sv;var kG="itemStyle",ZI=Mt();const LG={seriesType:"treemap",reset:function(n){var e=n.getData().tree,t=e.root;t.isRemoved()||jI(t,{},n.getViewRoot().getAncestors(),n)}};function jI(n,e,t,i){var o=n.getModel(),r=n.getLayout(),a=n.hostTree.data;if(!(!r||r.invisible||!r.isInView)){var s=o.getModel(kG),l=NG(s,e,i),u=a.ensureUniqueItemVisual(n.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),p;h!=null&&(p=qI(l),c=EG(h,p)),u.stroke=c;var d=n.viewChildren;if(!d||!d.length)p=qI(l),u.fill=p;else{var f=OG(n,o,r,s,l,d);C(d,function(g,v){if(g.depth>=t.length||g===t[g.depth]){var y=PG(o,l,g,v,f,i);jI(g,y,t,i)}})}}}function NG(n,e,t){var i=z({},e),o=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(r){o[r]=e[r];var a=n.get(r);o[r]=null,a!=null&&(i[r]=a)}),i}function qI(n){var e=hv(n,"color");if(e){var t=hv(n,"colorAlpha"),i=hv(n,"colorSaturation");return i&&(e=Ka(e,null,null,i)),t&&(e=nu(e,t)),e}}function EG(n,e){return e!=null?Ka(e,null,null,n):null}function hv(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function OG(n,e,t,i,o,r){if(!(!r||!r.length)){var a=pv(e,"color")||o.color!=null&&o.color!=="none"&&(pv(e,"colorAlpha")||pv(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var p=new xe(h);return ZI(p).drColorMappingBy=c,p}}}function pv(n,e){var t=n.get(e);return G(t)&&t.length?{name:e,range:t}:null}function PG(n,e,t,i,o,r){var a=z({},e);if(o){var s=o.type,l=s==="color"&&ZI(o).drColorMappingBy,u=l==="index"?i:l==="id"?r.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));a[s]=o.mapValueToVisual(u)}return a}var _l=Math.max,ch=Math.min,KI=te,dv=C,$I=["itemStyle","borderWidth"],RG=["itemStyle","gapWidth"],VG=["upperLabel","show"],zG=["upperLabel","height"];const BG={seriesType:"treemap",reset:function(n,e,t,i){var o=t.getWidth(),r=t.getHeight(),a=n.option,s=ae(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=a.size||[],u=H(KI(s.width,l[0]),o),c=H(KI(s.height,l[1]),r),h=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],d=fl(i,p,n),f=h==="treemapRender"||h==="treemapMove"?i.rootRect:null,g=n.getViewRoot(),v=PI(g);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?XG(n,d,g,u,c):f?[f.width,f.height]:[u,c],m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var x={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(_),QI(g,x,!1,0),_=g.getLayout(),dv(v,function(b,S){var M=(v[S+1]||g).getValue();b.setLayout(z({dataExtent:[M,M],borderWidth:0,upperHeight:0},_))})}var w=n.getData().tree.root;w.setLayout(UG(s,f,d),!0),n.setLayoutInfo(s),t2(w,new dt(-s.x,-s.y,o,r),v,g,0)}};function QI(n,e,t,i){var o,r;if(!n.isRemoved()){var a=n.getLayout();o=a.width,r=a.height;var s=n.getModel(),l=s.get($I),u=s.get(RG)/2,c=e2(s),h=Math.max(l,c),p=l-u,d=h-u;n.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),o=_l(o-2*p,0),r=_l(r-p-d,0);var f=o*r,g=FG(n,s,f,e,t,i);if(g.length){var v={x:p,y:d,width:o,height:r},y=ch(o,r),m=1/0,x=[];x.area=0;for(var _=0,w=g.length;_<w;){var b=g[_];x.push(b),x.area+=b.getLayout().area;var S=YG(x,y,e.squareRatio);S<=m?(_++,m=S):(x.area-=x.pop().getLayout().area,JI(x,y,v,u,!1),y=ch(v.width,v.height),x.length=x.area=0,m=1/0)}if(x.length&&JI(x,y,v,u,!0),!t){var M=s.get("childrenVisibleMin");M!=null&&f<M&&(t=!0)}for(var _=0,w=g.length;_<w;_++)QI(g[_],e,t,i+1)}}}function FG(n,e,t,i,o,r){var a=n.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=r;if(o&&!l)return n.viewChildren=[];a=Lt(a,function(d){return!d.isRemoved()}),WG(a,s);var u=HG(e,a,s);if(u.sum===0)return n.viewChildren=[];if(u.sum=GG(e,t,u.sum,s,a),u.sum===0)return n.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var p=a[c].getValue()/u.sum*t;a[c].setLayout({area:p})}return l&&(a.length&&n.setLayout({isLeafRoot:!0},!0),a.length=0),n.viewChildren=a,n.setLayout({dataExtent:u.dataExtent},!0),a}function GG(n,e,t,i,o){if(!i)return t;for(var r=n.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var u=o[i==="asc"?a-l-1:l].getValue();u/t*e<r&&(s=l,t-=u)}return i==="asc"?o.splice(0,a-s):o.splice(s,a-s),t}function WG(n,e){return e&&n.sort(function(t,i){var o=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return o===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:o}),n}function HG(n,e,t){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a=n.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:a==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],dv(e,function(l){var u=l.getValue(a);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function YG(n,e,t){for(var i=0,o=1/0,r=0,a=void 0,s=n.length;r<s;r++)a=n[r].getLayout().area,a&&(a<o&&(o=a),a>i&&(i=a));var l=n.area*n.area,u=e*e*t;return l?_l(u*i/l,l/(u*o)):1/0}function JI(n,e,t,i,o){var r=e===t.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=t[s[r]],c=e?n.area/e:0;(o||c>t[l[a]])&&(c=t[l[a]]);for(var h=0,p=n.length;h<p;h++){var d=n[h],f={},g=c?d.getLayout().area/c:0,v=f[l[a]]=_l(c-2*i,0),y=t[s[r]]+t[l[r]]-u,m=h===p-1||y<g?y:g,x=f[l[r]]=_l(m-2*i,0);f[s[a]]=t[s[a]]+ch(i,v/2),f[s[r]]=u+ch(i,x/2),u+=m,d.setLayout(f,!0)}t[s[a]]+=c,t[l[a]]-=c}function XG(n,e,t,i,o){var r=(e||{}).node,a=[i,o];if(!r||r===t)return a;for(var s,l=i*o,u=l*n.option.zoomToNodeRatio;s=r.parentNode;){for(var c=0,h=s.children,p=0,d=h.length;p<d;p++)c+=h[p].getValue();var f=r.getValue();if(f===0)return a;u*=c/f;var g=s.getModel(),v=g.get($I),y=Math.max(v,e2(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>E0&&(u=E0),r=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,o*m]}function UG(n,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var o=t.node,r=o.getLayout();if(!r)return i;for(var a=[r.width/2,r.height/2],s=o;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:n.width/2-a[0],y:n.height/2-a[1]}}function t2(n,e,t,i,o){var r=n.getLayout(),a=t[o],s=a&&a===n;if(!(a&&!s||o===t.length&&n!==i)){n.setLayout({isInView:!0,invisible:!s&&!e.intersect(r),isAboveViewRoot:s},!0);var l=new dt(e.x-r.x,e.y-r.y,e.width,e.height);dv(n.viewChildren||[],function(u){t2(u,l,t,i,o+1)})}}function e2(n){return n.get(VG)?n.get(zG):0}function ZG(n){n.registerSeriesModel(hG),n.registerChartView(IG),n.registerVisual(LG),n.registerLayout(BG),lG(n)}function jG(n){var e=n.findComponents({mainType:"legend"});!e||!e.length||n.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),o=t.getGraph(),r=o.data,a=i.mapArray(i.getName);r.filterSelf(function(s){var l=r.getItemModel(s),u=l.getShallow("category");if(u!=null){Dt(u)&&(u=a[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function qG(n){var e={};n.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),o=t.getData(),r={};i.each(function(a){var s=i.getName(a);r["ec-"+s]=a;var l=i.getItemModel(a),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),i.setItemVisual(a,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var p=l.getShallow(c[h],!0);p!=null&&i.setItemVisual(a,c[h],p)}}),i.count()&&o.each(function(a){var s=o.getItemModel(a),l=s.getShallow("category");if(l!=null){X(l)&&(l=r["ec-"+l]);var u=i.getItemVisual(l,"style"),c=o.ensureUniqueItemVisual(a,"style");z(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],p=0;p<h.length;p++)o.setItemVisual(a,h[p],i.getItemVisual(l,h[p]))}})})}function hh(n){return n instanceof Array||(n=[n,n]),n}function KG(n){n.eachSeriesByType("graph",function(e){var t=e.getGraph(),i=e.getEdgeData(),o=hh(e.get("edgeSymbol")),r=hh(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",o&&o[0]),i.setVisual("toSymbol",o&&o[1]),i.setVisual("fromSymbolSize",r&&r[0]),i.setVisual("toSymbolSize",r&&r[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(a){var s=i.getItemModel(a),l=t.getEdgeByIndex(a),u=hh(s.getShallow("symbol",!0)),c=hh(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),p=i.ensureUniqueItemVisual(a,"style");switch(z(p,h),p.stroke){case"source":{var d=l.node1.getVisual("style");p.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");p.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var fv="-->",ph=function(n){return n.get("autoCurveness")||null},n2=function(n,e){var t=ph(n),i=20,o=[];if(Dt(t))i=t;else if(G(t)){n.__curvenessList=t;return}e>i&&(i=e);var r=i%2?i+2:i+3;o=[];for(var a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));n.__curvenessList=o},bl=function(n,e,t){var i=[n.id,n.dataIndex].join("."),o=[e.id,e.dataIndex].join(".");return[t.uid,i,o].join(fv)},i2=function(n){var e=n.split(fv);return[e[0],e[2],e[1]].join(fv)},$G=function(n,e){var t=bl(n.node1,n.node2,e);return e.__edgeMap[t]},QG=function(n,e){var t=gv(bl(n.node1,n.node2,e),e),i=gv(bl(n.node2,n.node1,e),e);return t+i},gv=function(n,e){var t=e.__edgeMap;return t[n]?t[n].length:0};function JG(n){ph(n)&&(n.__curvenessList=[],n.__edgeMap={},n2(n))}function t4(n,e,t,i){if(ph(t)){var o=bl(n,e,t),r=t.__edgeMap,a=r[i2(o)];r[o]&&!a?r[o].isForward=!0:a&&r[o]&&(a.isForward=!0,r[o].isForward=!1),r[o]=r[o]||[],r[o].push(i)}}function vv(n,e,t,i){var o=ph(e),r=G(o);if(!o)return null;var a=$G(n,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===t){s=l;break}var u=QG(n,e);n2(e,u),n.lineStyle=n.lineStyle||{};var c=bl(n.node1,n.node2,e),h=e.__curvenessList,p=r||u%2?0:1;if(a.isForward)return h[p+s];var d=i2(c),f=gv(d,e),g=h[s+f+p];return i?r?o&&o[0]===0?(f+p)%2?g:-g:((f%2?0:1)+p)%2?g:-g:(f+p)%2?g:-g:h[s+f+p]}function o2(n){var e=n.coordinateSystem;if(!(e&&e.type!=="view")){var t=n.getGraph();t.eachNode(function(i){var o=i.getModel();i.setLayout([+o.get("x"),+o.get("y")])}),yv(t,n)}}function yv(n,e){n.eachEdge(function(t,i){var o=Qe(t.getModel().get(["lineStyle","curveness"]),-vv(t,e,i,!0),0),r=ai(t.node1.getLayout()),a=ai(t.node2.getLayout()),s=[r,a];+o&&s.push([(r[0]+a[0])/2-(r[1]-a[1])*o,(r[1]+a[1])/2-(a[0]-r[0])*o]),t.setLayout(s)})}function e4(n,e){n.eachSeriesByType("graph",function(t){var i=t.get("layout"),o=t.coordinateSystem;if(o&&o.type!=="view"){var r=t.getData(),a=[];C(o.dimensions,function(p){a=a.concat(r.mapDimensionsAll(p))});for(var s=0;s<r.count();s++){for(var l=[],u=!1,c=0;c<a.length;c++){var h=r.get(a[c],s);isNaN(h)||(u=!0),l.push(h)}u?r.setItemLayout(s,o.dataToPoint(l)):r.setItemLayout(s,[NaN,NaN])}yv(r.graph,t)}else(!i||i==="none")&&o2(t)})}function wl(n){var e=n.coordinateSystem;if(e.type!=="view")return 1;var t=n.option.nodeScaleRatio,i=e.scaleX,o=e.getZoom(),r=(o-1)*t+1;return r/i}function Sl(n){var e=n.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var r2=Math.PI,mv=[];function xv(n,e,t,i){var o=n.coordinateSystem;if(!(o&&o.type!=="view")){var r=o.getBoundingRect(),a=n.getData(),s=a.graph,l=r.width/2+r.x,u=r.height/2+r.y,c=Math.min(r.width,r.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),!!h){if(t){var p=o.pointToData(i),d=p[0],f=p[1],g=[d-l,f-u];Lr(g,g),Yl(g,g,c),t.setLayout([l+g[0],u+g[1]],!0);var v=n.get(["circular","rotateLabel"]);a2(t,v,l,u)}n4[e](n,s,a,c,l,u,h),s.eachEdge(function(y,m){var x=Qe(y.getModel().get(["lineStyle","curveness"]),vv(y,n,m),0),_=ai(y.node1.getLayout()),w=ai(y.node2.getLayout()),b,S=(_[0]+w[0])/2,M=(_[1]+w[1])/2;+x&&(x*=3,b=[l*x+S*(1-x),u*x+M*(1-x)]),y.setLayout([_,w,b])})}}}var n4={value:function(n,e,t,i,o,r,a){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||a);e.eachNode(function(c){var h=c.getValue("value"),p=u*(l?h:1)/2;s+=p,c.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=p})},symbolSize:function(n,e,t,i,o,r,a){var s=0;mv.length=a;var l=wl(n);e.eachNode(function(h){var p=Sl(h);isNaN(p)&&(p=2),p<0&&(p=0),p*=l;var d=Math.asin(p/2/i);isNaN(d)&&(d=r2/2),mv[h.dataIndex]=d,s+=d*2});var u=(2*r2-s)/a/2,c=0;e.eachNode(function(h){var p=u+mv[h.dataIndex];c+=p,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(c)+o,i*Math.sin(c)+r]),c+=p})}};function a2(n,e,t,i){var o=n.getGraphicEl();if(o){var r=n.getModel(),a=r.get(["label","rotate"])||0,s=o.getSymbolPath();if(e){var l=n.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var p=s.ensureState("emphasis");z(p.textConfig||(p.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function i4(n){n.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&xv(e,"symbolSize")})}var Ia=op;function o4(n,e,t){for(var i=n,o=e,r=t.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=vo(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=ai(h.p),h.edges=null}var p=t.friction==null?.6:t.friction,d=p,f,g;return{warmUp:function(){d=p*.8},setFixed:function(v){i[v].fixed=!0},setUnfixed:function(v){i[v].fixed=!1},beforeStep:function(v){f=v},afterStep:function(v){g=v},step:function(v){f&&f(i,o);for(var y=[],m=i.length,x=0;x<o.length;x++){var _=o[x];if(!_.ignoreForceLayout){var w=_.n1,b=_.n2;yo(y,b.p,w.p);var S=rp(y)-_.d,M=b.w/(w.w+b.w);isNaN(M)&&(M=0),Lr(y,y),!w.fixed&&Ia(w.p,w.p,y,M*S*d),!b.fixed&&Ia(b.p,b.p,y,-(1-M)*S*d)}}for(var x=0;x<m;x++){var D=i[x];D.fixed||(yo(y,l,D.p),Ia(D.p,D.p,y,u*d))}for(var x=0;x<m;x++)for(var w=i[x],T=x+1;T<m;T++){var b=i[T];yo(y,b.p,w.p);var S=rp(y);S===0&&(hk(y,Math.random()-.5,Math.random()-.5),S=1);var I=(w.rep+b.rep)/S/S;!w.fixed&&Ia(w.pp,w.pp,y,I),!b.fixed&&Ia(b.pp,b.pp,y,-I)}for(var A=[],x=0;x<m;x++){var D=i[x];D.fixed||(yo(A,D.p,D.pp),Ia(D.p,D.p,A,d),Te(D.pp,D.p))}d=d*.992;var k=d<.01;g&&g(i,o,k),v&&v(k)}}}function r4(n){n.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var i=e.preservedPoints||{},o=e.getGraph(),r=o.data,a=o.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?r.each(function(x){var _=r.getId(x);r.setItemLayout(x,i[_]||[NaN,NaN])}):!l||l==="none"?o2(e):l==="circular"&&xv(e,"value");var u=r.getDataExtent("value"),c=a.getDataExtent("value"),h=s.get("repulsion"),p=s.get("edgeLength"),d=G(h)?h:[h,h],f=G(p)?p:[p,p];f=[f[1],f[0]];var g=r.mapArray("value",function(x,_){var w=r.getItemLayout(_),b=kt(x,u,d);return isNaN(b)&&(b=(d[0]+d[1])/2),{w:b,rep:b,fixed:r.getItemModel(_).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),v=a.mapArray("value",function(x,_){var w=o.getEdgeByIndex(_),b=kt(x,c,f);isNaN(b)&&(b=(f[0]+f[1])/2);var S=w.getModel(),M=Qe(w.getModel().get(["lineStyle","curveness"]),-vv(w,e,_,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:b,curveness:M,ignoreForceLayout:S.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=o4(g,v,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(x,_){for(var w=0,b=x.length;w<b;w++)x[w].fixed&&Te(x[w].p,o.getNodeByIndex(w).getLayout())}),m.afterStep(function(x,_,w){for(var b=0,S=x.length;b<S;b++)x[b].fixed||o.getNodeByIndex(b).setLayout(x[b].p),i[r.getId(b)]=x[b].p;for(var b=0,S=_.length;b<S;b++){var M=_[b],D=o.getEdgeByIndex(b),T=M.n1.p,I=M.n2.p,A=D.getLayout();A=A?A.slice():[],A[0]=A[0]||[],A[1]=A[1]||[],Te(A[0],T),Te(A[1],I),+M.curveness&&(A[2]=[(T[0]+I[0])/2-(T[1]-I[1])*M.curveness,(T[1]+I[1])/2-(I[0]-T[0])*M.curveness]),D.setLayout(A)}}),e.forceLayout=m,e.preservedPoints=i,m.step()}else e.forceLayout=null})}function a4(n,e,t){var i=z(n.getBoxLayoutParams(),{aspect:t});return ae(i,{width:e.getWidth(),height:e.getHeight()})}function s4(n,e){var t=[];return n.eachSeriesByType("graph",function(i){var o=i.get("coordinateSystem");if(!o||o==="view"){var r=i.getData(),a=r.mapArray(function(v){var y=r.getItemModel(v);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Iu(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=a4(i,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],p=l[1]-s[1],d=c.width,f=c.height,g=i.coordinateSystem=new pl;g.zoomLimit=i.get("scaleLimit"),g.setBoundingRect(s[0],s[1],h,p),g.setViewRect(c.x,c.y,d,f),g.setCenter(i.get("center"),e),g.setZoom(i.get("zoom")),t.push(g)}}),t}var s2=de.prototype,_v=Ru.prototype,l2=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}();(function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e})(l2);function bv(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var l4=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l2},e.prototype.buildPath=function(t,i){bv(i)?s2.buildPath.call(this,t,i):_v.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return bv(this.shape)?s2.pointAt.call(this,t):_v.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,o=bv(i)?[i.x2-i.x1,i.y2-i.y1]:_v.tangentAt.call(this,t);return Lr(o,o)},e}(xt);const u4=l4;var wv=["fromSymbol","toSymbol"];function u2(n){return"_"+n+"Type"}function c2(n,e,t){var i=e.getItemVisual(t,n);if(!i||i==="none")return i;var o=e.getItemVisual(t,n+"Size"),r=e.getItemVisual(t,n+"Rotate"),a=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=da(o),u=er(a||0,l);return i+l+u+(r||"")+(s||"")}function h2(n,e,t){var i=e.getItemVisual(t,n);if(!(!i||i==="none")){var o=e.getItemVisual(t,n+"Size"),r=e.getItemVisual(t,n+"Rotate"),a=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=da(o),u=er(a||0,l),c=oe(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=r==null||isNaN(r)?void 0:+r*Math.PI/180||0,c.name=n,c}}function c4(n){var e=new u4({name:"line",subPixelOptimize:!0});return Sv(e.shape,n),e}function Sv(n,e){n.x1=e[0][0],n.y1=e[0][1],n.x2=e[1][0],n.y2=e[1][1],n.percent=1;var t=e[2];t?(n.cpx1=t[0],n.cpy1=t[1]):(n.cpx1=NaN,n.cpy1=NaN)}var h4=function(n){R(e,n);function e(t,i,o){var r=n.call(this)||this;return r._createLine(t,i,o),r}return e.prototype._createLine=function(t,i,o){var r=t.hostModel,a=t.getItemLayout(i),s=c4(a);s.shape.percent=0,Yt(s,{shape:{percent:1}},r,i),this.add(s),C(wv,function(l){var u=h2(l,t,i);this.add(u),this[u2(l)]=c2(l,t,i)},this),this._updateCommonStl(t,i,o)},e.prototype.updateData=function(t,i,o){var r=t.hostModel,a=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};Sv(l.shape,s),Ct(a,l,r,i),C(wv,function(u){var c=c2(u,t,i),h=u2(u);if(this[h]!==c){this.remove(this.childOfName(u));var p=h2(u,t,i);this.add(p)}this[h]=c},this),this._updateCommonStl(t,i,o)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,o){var r=t.hostModel,a=this.childOfName("line"),s=o&&o.emphasisLineStyle,l=o&&o.blurLineStyle,u=o&&o.selectLineStyle,c=o&&o.labelStatesModels,h=o&&o.emphasisDisabled,p=o&&o.focus,d=o&&o.blurScope;if(!o||t.hasItemOption){var f=t.getItemModel(i),g=f.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=f.getModel(["blur","lineStyle"]).getLineStyle(),u=f.getModel(["select","lineStyle"]).getLineStyle(),h=g.get("disabled"),p=g.get("focus"),d=g.get("blurScope"),c=ue(f)}var v=t.getItemVisual(i,"style"),y=v.stroke;a.useStyle(v),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,C(wv,function(b){var S=this.childOfName(b);if(S){S.setColor(y),S.style.opacity=v.opacity;for(var M=0;M<ke.length;M++){var D=ke[M],T=a.getState(D);if(T){var I=T.style||{},A=S.ensureState(D),k=A.style||(A.style={});I.stroke!=null&&(k[S.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(k.opacity=I.opacity)}}S.markRedraw()}},this);var m=r.getRawValue(i);ye(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,S){return r.getFormattedLabel(b,S,t.dataType)}},inheritColor:y||"#000",defaultOpacity:v.opacity,defaultText:(m==null?t.getName(i):isFinite(m)?Kt(m):m)+""});var x=this.getTextContent();if(x){var _=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var w=_.get("distance");G(w)||(w=[w,w]),x.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),jt(this,p,d,h)},e.prototype.highlight=function(){vi(this)},e.prototype.downplay=function(){yi(this)},e.prototype.updateLayout=function(t,i){this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");Sv(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),o=t.childOfName("toSymbol"),r=t.getTextContent();if(!i&&!o&&(!r||r.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),p=yo([],h,c);Lr(p,p);function d(T,I){var A=T.__specifiedRotation;if(A==null){var k=l.tangentAt(I);T.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(k[1],k[0]))}else T.attr("rotation",A)}if(i&&(i.setPosition(c),d(i,0),i.scaleX=i.scaleY=a*u,i.markRedraw()),o&&(o.setPosition(h),d(o,1),o.scaleX=o.scaleY=a*u,o.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,g=void 0,v=r.__labelDistance,y=v[0]*a,m=v[1]*a,x=u/2,_=l.tangentAt(x),w=[_[1],-_[0]],b=l.pointAt(x);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var S=_[0]<0?-1:1;if(r.__position!=="start"&&r.__position!=="end"){var M=-Math.atan2(_[1],_[0]);h[0]<c[0]&&(M=Math.PI+M),r.rotation=M}var D=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-m,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=m,g="top";break;default:D=0,g="middle"}switch(r.__position){case"end":r.x=p[0]*y+h[0],r.y=p[1]*m+h[1],f=p[0]>.8?"left":p[0]<-.8?"right":"center",g=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":r.x=-p[0]*y+c[0],r.y=-p[1]*m+c[1],f=p[0]>.8?"right":p[0]<-.8?"left":"center",g=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=y*S+c[0],r.y=c[1]+D,f=_[0]<0?"right":"left",r.originX=-y*S,r.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+D,f="center",r.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-y*S+h[0],r.y=h[1]+D,f=_[0]>=0?"right":"left",r.originX=y*S,r.originY=-D;break}r.scaleX=r.scaleY=a,r.setStyle({verticalAlign:r.__verticalAlign||g,align:r.__align||f})}},e}(ot);const Mv=h4;var p4=function(){function n(e){this.group=new ot,this._LineCtor=e||Mv}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,o=i.group,r=i._lineData;i._lineData=e,r||o.removeAll();var a=p2(e);e.diff(r).add(function(s){t._doAdd(e,s,a)}).update(function(s,l){t._doUpdate(r,e,l,s,a)}).remove(function(s){o.remove(r.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=p2(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!d4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(Iv(r)){var a=new this._LineCtor(t,o,this._seriesScope);a.traverse(i),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(e){Xi(this._progressiveEls||this.group,e)},n.prototype._doAdd=function(e,t,i){var o=e.getItemLayout(t);if(Iv(o)){var r=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,r),this.group.add(r)}},n.prototype._doUpdate=function(e,t,i,o,r){var a=e.getItemGraphicEl(i);if(!Iv(t.getItemLayout(o))){this.group.remove(a);return}a?a.updateData(t,o,r):a=new this._LineCtor(t,o,r),t.setItemGraphicEl(o,a),this.group.add(a)},n}();function d4(n){return n.animators&&n.animators.length>0}function p2(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ue(e)}}function d2(n){return isNaN(n[0])||isNaN(n[1])}function Iv(n){return n&&!d2(n[0])&&!d2(n[1])}const Dv=p4;var Tv=[],Cv=[],Av=[],Da=pe,kv=mo,f2=Math.abs;function g2(n,e,t){for(var i=n[0],o=n[1],r=n[2],a=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){Tv[0]=Da(i[0],o[0],r[0],c),Tv[1]=Da(i[1],o[1],r[1],c);var h=f2(kv(Tv,e)-l);h<a&&(a=h,s=c)}for(var p=0;p<32;p++){var d=s+u;Cv[0]=Da(i[0],o[0],r[0],s),Cv[1]=Da(i[1],o[1],r[1],s),Av[0]=Da(i[0],o[0],r[0],d),Av[1]=Da(i[1],o[1],r[1],d);var h=kv(Cv,e)-l;if(f2(h)<.01)break;var f=kv(Av,e)-l;u/=2,h<0?f>=0?s=s+u:s=s-u:f>=0?s=s-u:s=s+u}return s}function Lv(n,e){var t=[],i=Za,o=[[],[],[]],r=[[],[]],a=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ai(u[0]),ai(u[1])],u[2]&&u.__original.push(ai(u[2])));var p=u.__original;if(u[2]!=null){if(Te(o[0],p[0]),Te(o[1],p[2]),Te(o[2],p[1]),c&&c!=="none"){var d=Sl(s.node1),f=g2(o,p[0],d*e);i(o[0][0],o[1][0],o[2][0],f,t),o[0][0]=t[3],o[1][0]=t[4],i(o[0][1],o[1][1],o[2][1],f,t),o[0][1]=t[3],o[1][1]=t[4]}if(h&&h!=="none"){var d=Sl(s.node2),f=g2(o,p[1],d*e);i(o[0][0],o[1][0],o[2][0],f,t),o[1][0]=t[1],o[2][0]=t[2],i(o[0][1],o[1][1],o[2][1],f,t),o[1][1]=t[1],o[2][1]=t[2]}Te(u[0],o[0]),Te(u[1],o[2]),Te(u[2],o[1])}else{if(Te(r[0],p[0]),Te(r[1],p[1]),yo(a,r[1],r[0]),Lr(a,a),c&&c!=="none"){var d=Sl(s.node1);op(r[0],r[0],a,d*e)}if(h&&h!=="none"){var d=Sl(s.node2);op(r[1],r[1],a,-d*e)}Te(u[0],r[0]),Te(u[1],r[1])}})}function v2(n){return n.type==="view"}var f4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var o=new ol,r=new Dv,a=this.group;this._controller=new cl(i.getZr()),this._controllerHost={target:a},a.add(o.group),a.add(r.group),this._symbolDraw=o,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,i,o){var r=this,a=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(v2(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(c):Ct(u,c,t)}Lv(t.getGraph(),wl(t));var h=t.getData();s.updateData(h);var p=t.getEdgeData();l.updateData(p),this._updateNodeAndLinkScale(),this._updateController(t,i,o),clearTimeout(this._layoutTimeout);var d=t.forceLayout,f=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f);var g=t.get("layout");h.graph.eachNode(function(x){var _=x.dataIndex,w=x.getGraphicEl(),b=x.getModel();if(w){w.off("drag").off("dragend");var S=b.get("draggable");S&&w.on("drag",function(D){switch(g){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(_),h.setItemLayout(_,[w.x,w.y]);break;case"circular":h.setItemLayout(_,[w.x,w.y]),x.setLayout({fixed:!0},!0),xv(t,"symbolSize",x,[D.offsetX,D.offsetY]),r.updateLayout(t);break;case"none":default:h.setItemLayout(_,[w.x,w.y]),yv(t.getGraph(),t),r.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(_)}),w.setDraggable(S,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(st(w).focus=x.getAdjacentDataIndices())}}),h.graph.eachEdge(function(x){var _=x.getGraphicEl(),w=x.getModel().get(["emphasis","focus"]);_&&w==="adjacency"&&(st(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var v=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(x){a2(x,v,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var o=this;(function r(){t.step(function(a){o.updateLayout(o._model),(o._layouting=!a)&&(i?o._layoutTimeout=setTimeout(r,16):r())})})()},e.prototype._updateController=function(t,i,o){var r=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,c,h){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(c,h)&&!th(u,o,t)}),!v2(t.coordinateSystem)){a.disable();return}a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Ug(s,u.dx,u.dy),o.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Zg(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),r._updateNodeAndLinkScale(),Lv(t.getGraph(),wl(t)),r._lineDraw.updateLayout(),o.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),o=wl(t);i.eachItemGraphicEl(function(r,a){r&&r.setSymbolScale(o)})},e.prototype.updateLayout=function(t){Lv(t.getGraph(),wl(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(zt);const g4=f4;function Ta(n){return"_EC_"+n}var v4=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(i[Ta(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var o=new br(e,t);return o.hostGraph=this,this.nodes.push(o),i[Ta(e)]=o,o},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Ta(e)]},n.prototype.addEdge=function(e,t,i){var o=this._nodesMap,r=this._edgesMap;if(Dt(e)&&(e=this.nodes[e]),Dt(t)&&(t=this.nodes[t]),e instanceof br||(e=o[Ta(e)]),t instanceof br||(t=o[Ta(t)]),!(!e||!t)){var a=e.id+"-"+t.id,s=new y2(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),r[a]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof br&&(e=e.id),t instanceof br&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var i=this.nodes,o=i.length,r=0;r<o;r++)i[r].dataIndex>=0&&e.call(t,i[r],r)},n.prototype.eachEdge=function(e,t){for(var i=this.edges,o=i.length,r=0;r<o;r++)i[r].dataIndex>=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&e.call(t,i[r],r)},n.prototype.breadthFirstTraverse=function(e,t,i,o){if(t instanceof br||(t=this._nodesMap[Ta(t)]),!!t){for(var r=i==="out"?"outEdges":i==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(o,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[r],a=0;a<u.length;a++){var c=u[a],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(o,h,l))return;s.push(h),h.__visited=!0}}}},n.prototype.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,o=this.edges,r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)i[e.getRawIndex(r)].dataIndex=r;t.filterSelf(function(s){var l=o[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var r=0,a=o.length;r<a;r++)o[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)o[t.getRawIndex(r)].dataIndex=r},n.prototype.clone=function(){for(var e=new n(this._directed),t=this.nodes,i=this.edges,o=0;o<t.length;o++)e.addNode(t[o].id,t[o].dataIndex);for(var o=0;o<i.length;o++){var r=i[o];e.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return e},n}(),br=function(){function n(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var i=this.edges[t];i.dataIndex<0||(e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex))}return e},n.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),i=0;i<this.edges.length;i++){var o=this.edges[i];if(!(o.dataIndex<0)){e.set(o.dataIndex,!0);for(var r=[o.node1],a=[o.node2],s=0;s<r.length;){var l=r[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),r.push(l.inEdges[u].node1)}for(s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),a.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},n}(),y2=function(){function n(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i??-1}return n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var i=[this.node1],o=[this.node2],r=0;r<i.length;){var a=i[r];r++,t.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)e.set(a.inEdges[s].dataIndex,!0),i.push(a.inEdges[s].node1)}for(r=0;r<o.length;){var l=o[r];r++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),o.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},n}();function m2(n,e){return{getValue:function(t){var i=this[n][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[n][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}Jt(br,m2("hostGraph","data")),Jt(y2,m2("hostGraph","edgeData"));const y4=v4;function x2(n,e,t,i,o){for(var r=new y4(i),a=0;a<n.length;a++)r.addNode(te(n[a].id,n[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var c=e[a],h=c.source,p=c.target;r.addEdge(h,p,u)&&(l.push(c),s.push(te(re(c.id,null),h+" > "+p)),u++)}var d=t.get("coordinateSystem"),f;if(d==="cartesian2d"||d==="polar")f=bi(n,t);else{var g=sa.get(d),v=g?g.dimensions||[]:[];yt(v,"value")<0&&v.concat(["value"]);var y=Zs(n,{coordDimensions:v,encodeDefine:t.getEncode()}).dimensions;f=new Ne(y,t),f.initData(n)}var m=new Ne(["value"],t);return m.initData(l,s),o&&o(f,m),EI({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var m4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var i=this;function o(){return i._categoriesData}this.legendVisualProvider=new sl(o,o),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),To(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var o=t.edges||t.links||[],r=t.data||t.nodes||[],a=this;if(r&&o){JG(this);var s=x2(r,o,this,!0,l);return C(s.edges,function(u){t4(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(f){var g=a._categoriesModels,v=f.getShallow("category"),y=g[v];return y&&(y.parentModel=f.parentModel,f.parentModel=y),f});var h=Vt.prototype.getModel;function p(f,g){var v=h.call(this,f,g);return v.resolveParentPath=d,v}c.wrapMethod("getItemModel",function(f){return f.resolveParentPath=d,f.getModel=p,f});function d(f){if(f&&(f[0]==="label"||f[1]==="label")){var g=f.slice();return f[0]==="label"?g[0]="edgeLabel":f[1]==="label"&&(g[1]="edgeLabel"),g}return f}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,o){if(o==="edge"){var r=this.getData(),a=this.getDataParams(t,o),s=r.graph.getEdgeByIndex(t),l=r.getName(s.node1.dataIndex),u=r.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ce("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var h=rb({series:this,dataIndex:t,multipleSeries:i});return h},e.prototype._updateCategoriesData=function(){var t=W(this.option.categories||[],function(o){return o.value!=null?o:z({value:0},o)}),i=new Ne(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(o){return i.getItemModel(o)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ut);const x4=m4;var _4={type:"graphRoam",event:"graphRoam",update:"none"};function b4(n){n.registerChartView(g4),n.registerSeriesModel(x4),n.registerProcessor(jG),n.registerVisual(qG),n.registerVisual(KG),n.registerLayout(e4),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,i4),n.registerLayout(r4),n.registerCoordinateSystem("graphView",{dimensions:pl.dimensions,create:s4}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$t),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$t),n.registerAction(_4,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(o){var r=o.coordinateSystem,a=Qg(r,e,void 0,i);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}var w4=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),S4=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new w4},e.prototype.buildPath=function(t,i){var o=Math.cos,r=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-o(l)*s*(s>=a/3?1:2),c=i.y-r(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(i.x+o(l)*s,i.y+r(l)*s),t.lineTo(i.x+o(i.angle)*a,i.y+r(i.angle)*a),t.lineTo(i.x-o(l)*s,i.y-r(l)*s),t.lineTo(u,c)},e}(xt);const M4=S4;function I4(n,e){var t=n.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o),a=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(n.get("radius"),r/2);return{cx:a,cy:s,r:l}}function dh(n,e){var t=n==null?"":n+"";return e&&(X(e)?t=e.replace("{value}",t):Q(e)&&(t=e(n))),t}var D4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),a=I4(t,o);this._renderMain(t,i,o,r,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,o,r,a){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),p=h.get("roundCap"),d=p?Zc:Fe,f=h.get("show"),g=h.getModel("lineStyle"),v=g.get("width"),y=[u,c];l1(y,!l),u=y[0],c=y[1];for(var m=c-u,x=u,_=[],w=0;f&&w<r.length;w++){var b=Math.min(Math.max(r[w][0],0),1);c=u+m*b;var S=new d({shape:{startAngle:x,endAngle:c,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-v,r:a.r},silent:!0});S.setStyle({fill:r[w][1]}),S.setStyle(g.getLineStyle(["color","width"])),_.push(S),x=c}_.reverse(),C(_,function(D){return s.add(D)});var M=function(D){if(D<=0)return r[0][1];var T;for(T=0;T<r.length;T++)if(r[T][0]>=D&&(T===0?0:r[T-1][0])<D)return r[T][1];return r[T-1][1]};this._renderTicks(t,i,o,M,a,u,c,l,v),this._renderTitleAndDetail(t,i,o,M,a),this._renderAnchor(t,a),this._renderPointer(t,i,o,M,a,u,c,l,v)},e.prototype._renderTicks=function(t,i,o,r,a,s,l,u,c){for(var h=this.group,p=a.cx,d=a.cy,f=a.r,g=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),w=m.get("splitNumber"),b=H(y.get("length"),f),S=H(m.get("length"),f),M=s,D=(l-s)/_,T=D/w,I=y.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),k=y.get("distance"),L,N,E=0;E<=_;E++){if(L=Math.cos(M),N=Math.sin(M),y.get("show")){var P=k?k+c:c,O=new de({shape:{x1:L*(f-P)+p,y1:N*(f-P)+d,x2:L*(f-b-P)+p,y2:N*(f-b-P)+d},style:I,silent:!0});I.stroke==="auto"&&O.setStyle({stroke:r(E/_)}),h.add(O)}if(x.get("show")){var P=x.get("distance")+k,V=dh(Kt(E/_*(v-g)+g),x.get("formatter")),F=r(E/_),B=L*(f-b-P)+p,Y=N*(f-b-P)+d,$=x.get("rotate"),j=0;$==="radial"?(j=-M+2*Math.PI,j>Math.PI/2&&(j+=Math.PI)):$==="tangential"?j=-M-Math.PI/2:Dt($)&&(j=$*Math.PI/180),j===0?h.add(new Tt({style:Rt(x,{text:V,x:B,y:Y,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Tt({style:Rt(x,{text:V,x:B,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:B,originY:Y,rotation:j}))}if(m.get("show")&&E!==_){var P=m.get("distance");P=P?P+c:c;for(var ft=0;ft<=w;ft++){L=Math.cos(M),N=Math.sin(M);var ut=new de({shape:{x1:L*(f-P)+p,y1:N*(f-P)+d,x2:L*(f-S-P)+p,y2:N*(f-S-P)+d},silent:!0,style:A});A.stroke==="auto"&&ut.setStyle({stroke:r((E+ft/w)/_)}),h.add(ut),M+=T}M-=T}else M+=D}},e.prototype._renderPointer=function(t,i,o,r,a,s,l,u,c){var h=this.group,p=this._data,d=this._progressEls,f=[],g=t.get(["pointer","show"]),v=t.getModel("progress"),y=v.get("show"),m=t.getData(),x=m.mapDimension("value"),_=+t.get("min"),w=+t.get("max"),b=[_,w],S=[s,l];function M(T,I){var A=m.getItemModel(T),k=A.getModel("pointer"),L=H(k.get("width"),a.r),N=H(k.get("length"),a.r),E=t.get(["pointer","icon"]),P=k.get("offsetCenter"),O=H(P[0],a.r),V=H(P[1],a.r),F=k.get("keepAspect"),B;return E?B=oe(E,O-L/2,V-N,L,N,null,F):B=new M4({shape:{angle:-Math.PI/2,width:L,r:N,x:O,y:V}}),B.rotation=-(I+Math.PI/2),B.x=a.cx,B.y=a.cy,B}function D(T,I){var A=v.get("roundCap"),k=A?Zc:Fe,L=v.get("overlap"),N=L?v.get("width"):c/m.count(),E=L?a.r-N:a.r-(T+1)*N,P=L?a.r:a.r-T*N,O=new k({shape:{startAngle:s,endAngle:I,cx:a.cx,cy:a.cy,clockwise:u,r0:E,r:P}});return L&&(O.z2=w-m.get(x,T)%w),O}(y||g)&&(m.diff(p).add(function(T){var I=m.get(x,T);if(g){var A=M(T,s);Yt(A,{rotation:-((isNaN(+I)?S[0]:kt(I,b,S,!0))+Math.PI/2)},t),h.add(A),m.setItemGraphicEl(T,A)}if(y){var k=D(T,s),L=v.get("clip");Yt(k,{shape:{endAngle:kt(I,b,S,L)}},t),h.add(k),wd(t.seriesIndex,m.dataType,T,k),f[T]=k}}).update(function(T,I){var A=m.get(x,T);if(g){var k=p.getItemGraphicEl(I),L=k?k.rotation:s,N=M(T,L);N.rotation=L,Ct(N,{rotation:-((isNaN(+A)?S[0]:kt(A,b,S,!0))+Math.PI/2)},t),h.add(N),m.setItemGraphicEl(T,N)}if(y){var E=d[I],P=E?E.shape.endAngle:s,O=D(T,P),V=v.get("clip");Ct(O,{shape:{endAngle:kt(A,b,S,V)}},t),h.add(O),wd(t.seriesIndex,m.dataType,T,O),f[T]=O}}).execute(),m.each(function(T){var I=m.getItemModel(T),A=I.getModel("emphasis"),k=A.get("focus"),L=A.get("blurScope"),N=A.get("disabled");if(g){var E=m.getItemGraphicEl(T),P=m.getItemVisual(T,"style"),O=P.fill;if(E instanceof ge){var V=E.style;E.useStyle(z({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},P))}else E.useStyle(P),E.type!=="pointer"&&E.setColor(O);E.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",r(kt(m.get(x,T),b,[0,1],!0))),E.z2EmphasisLift=0,ve(E,I),jt(E,k,L,N)}if(y){var F=f[T];F.useStyle(m.getItemVisual(T,"style")),F.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,ve(F,I),jt(F,k,L,N)}}),this._progressEls=f)},e.prototype._renderAnchor=function(t,i){var o=t.getModel("anchor"),r=o.get("show");if(r){var a=o.get("size"),s=o.get("icon"),l=o.get("offsetCenter"),u=o.get("keepAspect"),c=oe(s,i.cx-a/2+H(l[0],i.r),i.cy-a/2+H(l[1],i.r),a,a,null,u);c.z2=o.get("showAbove")?1:0,c.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,i,o,r,a){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),p=new ot,d=[],f=[],g=t.isAnimationEnabled(),v=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new Tt({silent:!0}),f[y]=new Tt({silent:!0})}).update(function(y,m){d[y]=s._titleEls[m],f[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),x=l.get(u,y),_=new ot,w=r(kt(x,[c,h],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var S=b.get("offsetCenter"),M=a.cx+H(S[0],a.r),D=a.cy+H(S[1],a.r),T=d[y];T.attr({z2:v?0:2,style:Rt(b,{x:M,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),_.add(T)}var I=m.getModel("detail");if(I.get("show")){var A=I.get("offsetCenter"),k=a.cx+H(A[0],a.r),L=a.cy+H(A[1],a.r),N=H(I.get("width"),a.r),E=H(I.get("height"),a.r),P=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,T=f[y],O=I.get("formatter");T.attr({z2:v?0:2,style:Rt(I,{x:k,y:L,text:dh(x,O),width:isNaN(N)?null:N,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:P})}),Ox(T,{normal:I},x,function(F){return dh(F,O)}),g&&Px(T,y,l,t,{getFormattedLabel:function(F,B,Y,$,j,ft){return dh(ft?ft.interpolatedValue:x,O)}}),_.add(T)}p.add(_)}),this.group.add(p),this._titleEls=d,this._detailEls=f},e.type="gauge",e}(zt);const T4=D4;var C4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return wa(this,["value"])},e.type="series.gauge",e.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}},e}(Ut);const A4=C4;function k4(n){n.registerChartView(T4),n.registerSeriesModel(A4)}var L4=["itemStyle","opacity"],N4=function(n){R(e,n);function e(t,i){var o=n.call(this)||this,r=o,a=new We,s=new Tt;return r.setTextContent(s),o.setTextGuideLine(a),o.updateData(t,i,!0),o}return e.prototype.updateData=function(t,i,o){var r=this,a=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),c=s.get(L4);c=c??1,o||An(r),r.useStyle(t.getItemVisual(i,"style")),r.style.lineJoin="round",o?(r.setShape({points:l.points}),r.style.opacity=0,Yt(r,{style:{opacity:c}},a,i)):Ct(r,{style:{opacity:c},shape:{points:l.points}},a,i),ve(r,s),this._updateLabel(t,i),jt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var o=this,r=this.getTextGuideLine(),a=o.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),c=u.label,h=t.getItemVisual(i,"style"),p=h.fill;ye(a,ue(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:h.opacity,defaultText:t.getName(i)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),o.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var d=c.linePoints;r.setShape({points:d}),o.textGuideLineConfig={anchor:d?new ht(d[0][0],d[0][1]):null},Ct(a,{style:{x:c.x,y:c.y}},s,i),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),pg(o,dg(l),{stroke:p})},e}(Ge),E4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._data,s=this.group;r.diff(a).add(function(l){var u=new N4(r,l);r.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(r,l),s.add(c),r.setItemGraphicEl(l,c)}).remove(function(l){var u=a.getItemGraphicEl(l);ms(u,t,l)}).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(zt);const O4=E4;var P4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new sl(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return wa(this,{coordDimensions:["value"],encodeDefaulter:lt(rf,this)})},e.prototype._defaultLabelLine=function(t){To(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),o=n.prototype.getDataParams.call(this,t),r=i.mapDimension("value"),a=i.getSum(r);return o.percent=a?+(i.get(r,t)/a*100).toFixed(2):0,o.$vars.push("percent"),o},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ut);const R4=P4;function V4(n,e){return ae(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z4(n,e){for(var t=n.mapDimension("value"),i=n.mapArray(t,function(l){return l}),o=[],r=e==="ascending",a=0,s=n.count();a<s;a++)o[a]=a;return Q(e)?o.sort(e):e!=="none"&&o.sort(function(l,u){return r?i[l]-i[u]:i[u]-i[l]}),o}function B4(n){var e=n.hostModel,t=e.get("orient");n.each(function(i){var o=n.getItemModel(i),r=o.getModel("label"),a=r.get("position"),s=o.getModel("labelLine"),l=n.getItemLayout(i),u=l.points,c=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",h,p,d,f;if(c)a==="insideLeft"?(p=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,h="left"):a==="insideRight"?(p=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,h="right"):(p=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),f=[[p,d],[p,d]];else{var g=void 0,v=void 0,y=void 0,m=void 0,x=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(a)>-1&&(a="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(a)>-1&&(a="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),a==="left"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,y=g-x,p=y-5,h="right"):a==="right"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,y=g+x,p=y+5,h="left"):a==="top"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,m=v-x,d=m-5,h="center"):a==="bottom"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,m=v+x,d=m+5,h="center"):a==="rightTop"?(g=t==="horizontal"?u[3][0]:u[1][0],v=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=v-x,d=m-5,h="center"):(y=g+x,p=y+5,h="top")):a==="rightBottom"?(g=u[2][0],v=u[2][1],t==="horizontal"?(m=v+x,d=m+5,h="center"):(y=g+x,p=y+5,h="bottom")):a==="leftTop"?(g=u[0][0],v=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=v-x,d=m-5,h="center"):(y=g-x,p=y-5,h="right")):a==="leftBottom"?(g=t==="horizontal"?u[1][0]:u[3][0],v=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=v+x,d=m+5,h="center"):(y=g-x,p=y-5,h="right")):(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=v+x,d=m+5,h="center"):(y=g+x,p=y+5,h="left")),t==="horizontal"?(y=g,p=y):(m=v,d=m),f=[[g,v],[y,m]]}l.label={linePoints:f,x:p,y:d,verticalAlign:"middle",textAlign:h,inside:c}})}function F4(n,e){n.eachSeriesByType("funnel",function(t){var i=t.getData(),o=i.mapDimension("value"),r=t.get("sort"),a=V4(t,e),s=t.get("orient"),l=a.width,u=a.height,c=z4(i,r),h=a.x,p=a.y,d=s==="horizontal"?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],f=i.getDataExtent(o),g=t.get("min"),v=t.get("max");g==null&&(g=Math.min(f[0],0)),v==null&&(v=f[1]);var y=t.get("funnelAlign"),m=t.get("gap"),x=s==="horizontal"?l:u,_=(x-m*(i.count()-1))/i.count(),w=function(L,N){if(s==="horizontal"){var E=i.get(o,L)||0,P=kt(E,[g,v],d,!0),O=void 0;switch(y){case"top":O=p;break;case"center":O=p+(u-P)/2;break;case"bottom":O=p+(u-P);break}return[[N,O],[N,O+P]]}var V=i.get(o,L)||0,F=kt(V,[g,v],d,!0),B;switch(y){case"left":B=h;break;case"center":B=h+(l-F)/2;break;case"right":B=h+l-F;break}return[[B,N],[B+F,N]]};r==="ascending"&&(_=-_,m=-m,s==="horizontal"?h+=l:p+=u,c=c.reverse());for(var b=0;b<c.length;b++){var S=c[b],M=c[b+1],D=i.getItemModel(S);if(s==="horizontal"){var T=D.get(["itemStyle","width"]);T==null?T=_:(T=H(T,l),r==="ascending"&&(T=-T));var I=w(S,h),A=w(M,h+T);h+=T+m,i.setItemLayout(S,{points:I.concat(A.slice().reverse())})}else{var k=D.get(["itemStyle","height"]);k==null?k=_:(k=H(k,u),r==="ascending"&&(k=-k));var I=w(S,p),A=w(M,p+k);p+=k+m,i.setItemLayout(S,{points:I.concat(A.slice().reverse())})}}B4(i)})}function G4(n){n.registerChartView(O4),n.registerSeriesModel(R4),n.registerLayout(F4),n.registerProcessor(al("funnel"))}var W4=.3,H4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new ot,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,o,r){this._progressiveEls=null;var a=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=w2(t);s.diff(l).add(p).update(d).remove(f).execute();function p(v){var y=b2(s,a,v,c,u);Nv(y,s,v,h)}function d(v,y){var m=l.getItemGraphicEl(y),x=_2(s,v,c,u);s.setItemGraphicEl(v,m),Ct(m,{shape:{points:x}},t,v),An(m),Nv(m,s,v,h)}function f(v){var y=l.getItemGraphicEl(v);a.remove(y)}if(!this._initialized){this._initialized=!0;var g=Y4(u,t,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,o){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,o){for(var r=i.getData(),a=i.coordinateSystem,s=a.dimensions,l=w2(i),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=b2(r,this._dataGroup,c,s,a);h.incremental=!0,Nv(h,r,c,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(zt);function Y4(n,e,t){var i=n.model,o=n.getRect(),r=new It({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a=i.get("layout")==="horizontal"?"width":"height";return r.setShape(a,0),Yt(r,{shape:{width:o.width,height:o.height}},e,t),r}function _2(n,e,t,i){for(var o=[],r=0;r<t.length;r++){var a=t[r],s=n.get(n.mapDimension(a),e);X4(s,i.getAxis(a).type)||o.push(i.dataToPoint(s,a))}return o}function b2(n,e,t,i,o){var r=_2(n,t,i,o),a=new We({shape:{points:r},z2:10});return e.add(a),n.setItemGraphicEl(t,a),a}function w2(n){var e=n.get("smooth",!0);return e===!0&&(e=W4),e=pi(e),go(e)&&(e=0),{smooth:e}}function Nv(n,e,t,i){n.useStyle(e.getItemVisual(t,"style")),n.style.fill=null,n.setShape("smooth",i.smooth);var o=e.getItemModel(t),r=o.getModel("emphasis");ve(n,o,"lineStyle"),jt(n,r.get("focus"),r.get("blurScope"),r.get("disabled"))}function X4(n,e){return e==="category"?n==null:n==null||isNaN(n)}const U4=H4;var Z4=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return bi(null,this,{useEncodeDefaulter:Z(j4,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,o=this.getData(),r=[];return i.eachActiveState(o,function(a,s){t===a&&r.push(o.getRawIndex(s))}),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Ut);function j4(n){var e=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(e){var t={};return C(e.dimensions,function(i){var o=q4(i);t[i]=o}),t}}function q4(n){return+n.replace("dim","")}const K4=Z4;var $4=["lineStyle","opacity"],Q4={seriesType:"parallel",reset:function(n,e){var t=n.coordinateSystem,i={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(o,r){t.eachActiveState(r,function(a,s){var l=i[a];if(a==="normal"&&r.hasItemOption){var u=r.getItemModel(s).get($4,!0);u!=null&&(l=u)}var c=r.ensureUniqueItemVisual(s,"style");c.opacity=l},o.start,o.end)}}}};const J4=Q4;function tW(n){eW(n),nW(n)}function eW(n){if(!n.parallel){var e=!1;C(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function nW(n){var e=Nt(n.parallelAxis);C(e,function(t){if(tt(t)){var i=t.parallelIndex||0,o=Nt(n.parallel)[i];o&&o.parallelAxisDefault&&pt(t,o.parallelAxisDefault,!1)}})}var iW=5,oW=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this._model=t,this._api=o,this._handlers||(this._handlers={},C(rW,function(r,a){o.getZr().on(a,this._handlers[a]=Z(r,this))},this)),ha(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Ps(this,"_throttledDispatchExpand"),C(this._handlers,function(o,r){i.getZr().off(r,o)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(z({type:"parallelAxisExpand"},t))},e.type="parallel",e}(qt),rW={mousedown:function(n){Ev(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(Ev(this,"click")&&e){var t=[n.offsetX,n.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>iW)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!Ev(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function Ev(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const aW=oW;var sW=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&pt(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var o=t.get("parallelIndex");return o!=null&&i.getComponent("parallel",o)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],o=Lt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this);C(o,function(r){t.push("dim"+r.get("dim")),i.push(r.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(wt);const lW=sW;var uW=function(n){R(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(On);const cW=uW;function wr(n,e,t,i,o,r){n=n||0;var a=t[1]-t[0];if(o!=null&&(o=Ca(o,[0,a])),r!=null&&(r=Math.max(r,o??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Ca(s,[0,a]),o=r=Ca(s,[o,r]),i=0}e[0]=Ca(e[0],t),e[1]=Ca(e[1],t);var l=Ov(e,i);e[i]+=n;var u=o||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[i]=Ca(e[i],c);var h;return h=Ov(e,i),o!=null&&(h.sign!==l.sign||h.span<o)&&(e[1-i]=e[i]+l.sign*o),h=Ov(e,i),r!=null&&h.span>r&&(e[1-i]=e[i]+h.sign*r),e}function Ov(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ca(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var Pv=C,S2=Math.min,M2=Math.max,I2=Math.floor,hW=Math.ceil,D2=Kt,pW=Math.PI,dW=function(){function n(e,t,i){this.type="parallel",this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=e.dimensions,r=e.parallelAxisIndex;Pv(o,function(a,s){var l=r[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(a,new cW(a,Rc(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,o=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],s=e[r];return a>=i&&a<=i+t.axisLength&&s>=o&&s<=o+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var o=i.getData();Pv(this.dimensions,function(r){var a=this._axesMap.get(r);a.scale.unionExtentFromData(o,o.mapDimension(r)),xa(a.scale,a.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=ae(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],o=["width","height"],r=e.get("layout"),a=r==="horizontal"?0:1,s=t[o[a]],l=[0,s],u=this.dimensions.length,c=fh(e.get("axisExpandWidth"),l),h=fh(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow"),f;if(d)f=fh(d[1]-d[0],l),d[1]=d[0]+f;else{f=fh(c*(h-1),l);var g=e.get("axisExpandCenter")||I2(u/2);d=[c*g-f/2],d[1]=d[0]+f}var v=(s-f)/(u-h);v<3&&(v=0);var y=[I2(D2(d[0]/c,1))+1,hW(D2(d[1]/c,1))-1],m=v/c*d[0];return{layout:r,pixelDimIndex:a,layoutBase:t[i[a]],layoutLength:s,axisBase:t[i[1-a]],axisLength:t[o[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:v,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,o=this._makeLayoutInfo(),r=o.layout;t.each(function(a){var s=[0,o.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Pv(i,function(a,s){var l=(o.axisExpandable?gW:fW)(s,o),u={horizontal:{x:l.position,y:o.axisLength},vertical:{x:0,y:l.position}},c={horizontal:pW/2,vertical:0},h=[u[r].x+e.x,u[r].y+e.y],p=c[r],d=en();xo(d,d,p),zn(d,d,h),this._axesLayout[a]={position:h,rotation:p,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,i,o){i==null&&(i=0),o==null&&(o=e.count());var r=this._axesMap,a=this.dimensions,s=[],l=[];C(a,function(v){s.push(e.mapDimension(v)),l.push(r.get(v).model)});for(var u=this.hasAxisBrushed(),c=i;c<o;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var p=e.getValues(s,c),d=0,f=a.length;d<f;d++){var g=l[d].getActiveState(p[d]);if(g==="inactive"){h="inactive";break}}}t(h,c)}},n.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,o=0,r=e.length;o<r;o++)t.get(e[o]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return Ln([e,0],i.transform)},n.prototype.getAxisLayout=function(e){return it(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,o=t.axisExpandWindow.slice(),r=o[1]-o[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:o};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=h[0]!=null;if(c)p&&c&&s<r*h[0]?(u="jump",l=s-r*h[2]):p&&c&&s>r*(1-h[0])?(u="jump",l=s-r*(1-h[2])):(l=s-r*h[1])>=0&&(l=s-r*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?wr(l,o,a,"all"):u="none";else{var d=o[1]-o[0],f=a[1]*s/d;o=[M2(0,f-d/2)],o[1]=S2(a[1],o[0]+d),o[0]=o[1]-d}return{axisExpandWindow:o,behavior:u}},n}();function fh(n,e){return S2(M2(n,e[0]),e[1])}function fW(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function gW(n,e){var t=e.layoutLength,i=e.axisExpandWidth,o=e.axisCount,r=e.axisCollapseWidth,a=e.winInnerIndices,s,l=r,u=!1,c;return n<a[0]?(s=n*r,c=r):n<=a[1]?(s=e.axisExpandWindow0Pos+n*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(o-1-n)*r,c=r),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const vW=dW;function yW(n,e){var t=[];return n.eachComponent("parallel",function(i,o){var r=new vW(i,n,e);r.name="parallel_"+o,r.resize(i,e),i.coordinateSystem=r,r.model=i,t.push(r)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var o=i.getReferringComponents("parallel",ne).models[0];i.coordinateSystem=o.coordinateSystem}}),t}var mW={create:yW};const xW=mW;var T2=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return ko([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=it(t);if(i)for(var o=i.length-1;o>=0;o--)rn(i[o])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var o=i[0];if(o[0]<=t&&t<=o[1])return"active"}else for(var r=0,a=i.length;r<a;r++)if(i[r][0]<=t&&t<=i[r][1])return"active";return"inactive"},e}(wt);Jt(T2,Ks);const C2=T2;var Sr=!0,Ml=Math.min,Aa=Math.max,_W=Math.pow,bW=1e4,wW=6,SW=6,A2="globalPan",MW={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},IW={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},k2={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},DW=0,TW=function(n){R(e,n);function e(t){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},process.env.NODE_ENV!=="production"&&et(t),i._zr=t,i.group=new ot,i._uid="brushController_"+DW++,C(OW,function(o,r){this._handlers[r]=Z(o,this)},i),i}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&et(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||V3(i,A2,this._uid),C(this._handlers,function(o,r){i.on(r,o)}),this._brushType=t.brushType,this._brushOption=pt(it(k2),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;z3(t,A2,this._uid),C(this._handlers,function(i,o){t.off(o,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};C(t,function(o){i[o.panelId]=it(o)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&et(this._mounted),t=W(t,function(p){return pt(it(k2),p,!0)});var i="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new _i(o,t,u,l).add(c).update(c).remove(h).execute(),this;function l(p,d){return(p.id!=null?p.id:i+d)+"-"+p.brushType}function u(p,d){return l(p.__brushOption,d)}function c(p,d){var f=t[p];if(d!=null&&o[d]===s)r[p]=o[d];else{var g=r[p]=d!=null?(o[d].__brushOption=f,o[d]):N2(a,L2(a,f));Rv(a,g)}}function h(p){o[p]!==s&&a.group.remove(o[p])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Bv(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Je);function L2(n,e){var t=gh[e.brushType].createCover(n,e);return t.__brushOption=e,O2(t,e),n.group.add(t),t}function N2(n,e){var t=Vv(e);return t.endCreating&&(t.endCreating(n,e),O2(e,e.__brushOption)),e}function E2(n,e){var t=e.__brushOption;Vv(e).updateCoverShape(n,e,t.range,t)}function O2(n,e){var t=e.z;t==null&&(t=bW),n.traverse(function(i){i.z=t,i.z2=t})}function Rv(n,e){Vv(e).updateCommon(n,e),E2(n,e)}function Vv(n){return gh[n.__brushOption.brushType]}function zv(n,e,t){var i=n._panels;if(!i)return Sr;var o,r=n._transform;return C(i,function(a){a.isTargetByCursor(e,t,r)&&(o=a)}),o}function P2(n,e){var t=n._panels;if(!t)return Sr;var i=e.__brushOption.panelId;return i!=null?t[i]:Sr}function Bv(n){var e=n._covers,t=e.length;return C(e,function(i){n.group.remove(i)},n),e.length=0,!!t}function Mr(n,e){var t=W(n._covers,function(i){var o=i.__brushOption,r=it(o.range);return{brushType:o.brushType,panelId:o.panelId,range:r}});n.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function CW(n){var e=n._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],o=t[0]-i[0],r=t[1]-i[1],a=_W(o*o+r*r,.5);return a>wW}function R2(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function V2(n,e,t,i){var o=new ot;return o.add(new It({name:"main",style:Gv(t),silent:!0,draggable:!0,cursor:"move",drift:lt(F2,n,e,o,["n","s","w","e"]),ondragend:lt(Mr,e,{isEnd:!0})})),C(i,function(r){o.add(new It({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:lt(F2,n,e,o,r),ondragend:lt(Mr,e,{isEnd:!0})}))}),o}function z2(n,e,t,i){var o=i.brushStyle.lineWidth||0,r=Aa(o,SW),a=t[0][0],s=t[1][0],l=a-o/2,u=s-o/2,c=t[0][1],h=t[1][1],p=c-r+o/2,d=h-r+o/2,f=c-a,g=h-s,v=f+o,y=g+o;Ii(n,e,"main",a,s,f,g),i.transformable&&(Ii(n,e,"w",l,u,r,y),Ii(n,e,"e",p,u,r,y),Ii(n,e,"n",l,u,v,r),Ii(n,e,"s",l,d,v,r),Ii(n,e,"nw",l,u,r,r),Ii(n,e,"ne",p,u,r,r),Ii(n,e,"sw",l,d,r,r),Ii(n,e,"se",p,d,r,r))}function Fv(n,e){var t=e.__brushOption,i=t.transformable,o=e.childAt(0);o.useStyle(Gv(t)),o.attr({silent:!i,cursor:i?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(r){var a=e.childOfName(r.join("")),s=r.length===1?Wv(n,r[0]):kW(n,r);a&&a.attr({silent:!i,invisible:!i,cursor:i?IW[s]+"-resize":null})})}function Ii(n,e,t,i,o,r,a){var s=e.childOfName(t);s&&s.setShape(NW(Hv(n,e,[[i,o],[i+r,o+a]])))}function Gv(n){return nt({strokeNoScale:!0},n.brushStyle)}function B2(n,e,t,i){var o=[Ml(n,t),Ml(e,i)],r=[Aa(n,t),Aa(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function AW(n){return Uo(n.group)}function Wv(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=Yu(t[e],AW(n));return i[o]}function kW(n,e){var t=[Wv(n,e[0]),Wv(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function F2(n,e,t,i,o,r){var a=t.__brushOption,s=n.toRectRange(a.range),l=G2(e,o,r);C(i,function(u){var c=MW[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=n.fromRectRange(B2(s[0][0],s[1][0],s[0][1],s[1][1])),Rv(e,t),Mr(e,{isEnd:!1})}function LW(n,e,t,i){var o=e.__brushOption.range,r=G2(n,t,i);C(o,function(a){a[0]+=r[0],a[1]+=r[1]}),Rv(n,e),Mr(n,{isEnd:!1})}function G2(n,e,t){var i=n.group,o=i.transformCoordToLocal(e,t),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function Hv(n,e,t){var i=P2(n,e);return i&&i!==Sr?i.clipPath(t,n._transform):it(t)}function NW(n){var e=Ml(n[0][0],n[1][0]),t=Ml(n[0][1],n[1][1]),i=Aa(n[0][0],n[1][0]),o=Aa(n[0][1],n[1][1]);return{x:e,y:t,width:i-e,height:o-t}}function EW(n,e,t){if(!(!n._brushType||PW(n,e.offsetX,e.offsetY))){var i=n._zr,o=n._covers,r=zv(n,e,t);if(!n._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===Sr||s.panelId===r.panelId)&&gh[s.brushType].contain(o[a],t[0],t[1]))return}r&&i.setCursorStyle("crosshair")}}function Yv(n){var e=n.event;e.preventDefault&&e.preventDefault()}function Xv(n,e,t){return n.childOfName("main").contain(e,t)}function W2(n,e,t,i){var o=n._creatingCover,r=n._creatingPanel,a=n._brushOption,s;if(n._track.push(t.slice()),CW(n)||o){if(r&&!o){a.brushMode==="single"&&Bv(n);var l=it(a);l.brushType=H2(l.brushType,r),l.panelId=r===Sr?null:r.panelId,o=n._creatingCover=L2(n,l),n._covers.push(o)}if(o){var u=gh[H2(n._brushType,r)],c=o.__brushOption;c.range=u.getCreatingRange(Hv(n,o,n._track)),i&&(N2(n,o),u.updateCommon(n,o)),E2(n,o),s={isEnd:i}}}else i&&a.brushMode==="single"&&a.removeOnClick&&zv(n,e,t)&&Bv(n)&&(s={isEnd:i,removeOnClick:!0});return s}function H2(n,e){return n==="auto"?(process.env.NODE_ENV!=="production"&&et(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):n}var OW={mousedown:function(n){if(this._dragging)Y2(this,n);else if(!n.target||!n.target.draggable){Yv(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var t=this._creatingPanel=zv(this,n,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(n){var e=n.offsetX,t=n.offsetY,i=this.group.transformCoordToLocal(e,t);if(EW(this,n,i),this._dragging){Yv(n);var o=W2(this,n,i,!1);o&&Mr(this,o)}},mouseup:function(n){Y2(this,n)}};function Y2(n,e){if(n._dragging){Yv(e);var t=e.offsetX,i=e.offsetY,o=n.group.transformCoordToLocal(t,i),r=W2(n,e,o,!0);n._dragging=!1,n._track=[],n._creatingCover=null,r&&Mr(n,r)}}function PW(n,e,t){var i=n._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var gh={lineX:X2(0),lineY:X2(1),rect:{createCover:function(n,e){function t(i){return i}return V2({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=R2(n);return B2(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,i){z2(n,e,t,i)},updateCommon:Fv,contain:Xv},polygon:{createCover:function(n,e){var t=new ot;return t.add(new We({name:"main",style:Gv(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new Ge({name:"main",draggable:!0,drift:lt(LW,n,e),ondragend:lt(Mr,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,i){e.childAt(0).setShape({points:Hv(n,e,t)})},updateCommon:Fv,contain:Xv}};function X2(n){return{createCover:function(e,t){return V2({toRectRange:function(i){var o=[i,[0,100]];return n&&o.reverse(),o},fromRectRange:function(i){return i[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=R2(e),i=Ml(t[0][n],t[1][n]),o=Aa(t[0][n],t[1][n]);return[i,o]},updateCoverShape:function(e,t,i,o){var r,a=P2(e,t);if(a!==Sr&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(n);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,r];n&&l.reverse(),z2(e,t,l,o)},updateCommon:Fv,contain:Xv}}const Uv=TW;function U2(n){return n=Zv(n),function(e){return Ix(e,n)}}function Z2(n,e){return n=Zv(n),function(t){var i=e??t,o=i?n.width:n.height,r=i?n.x:n.y;return[r,r+(o||0)]}}function j2(n,e,t){var i=Zv(n);return function(o,r){return i.contain(r[0],r[1])&&!th(o,e,t)}}function Zv(n){return dt.create(n)}var RW=["axisLine","axisTickLabel","axisName"],VW=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){n.prototype.init.apply(this,arguments),(this._brushController=new Uv(i.getZr())).on("brush",Z(this._onBrush,this))},e.prototype.render=function(t,i,o,r){if(!zW(t,i,r)){this.axisModel=t,this.api=o,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!t.get("show")){var s=FW(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,p=l.getAxisLayout(h),d=z({strokeContainThreshold:c},p),f=new Si(t,d);C(RW,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,u,t,s,c,o),xs(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,o,r,a,s){var l=o.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=dt.create({x:l[0],y:-a/2,width:u,height:a});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:U2(h),isTargetByCursor:j2(h,s,r),getLinearBrushOtherExtent:Z2(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(BW(o))},e.prototype._onBrush=function(t){var i=t.areas,o=this.axisModel,r=o.axis,a=W(i,function(s){return[r.coordToData(s.range[0],!0),r.coordToData(s.range[1],!0)]});(!o.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:o.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(qt);function zW(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function BW(n){var e=n.axis;return W(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function FW(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const GW=VW;var WW={type:"axisAreaSelect",event:"axisAreaSelected"};function HW(n){n.registerAction(WW,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var YW={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function q2(n){n.registerComponentView(aW),n.registerComponentModel(lW),n.registerCoordinateSystem("parallel",xW),n.registerPreprocessor(tW),n.registerComponentModel(C2),n.registerComponentView(GW),Sa(n,"parallel",C2,YW),HW(n)}function XW(n){mt(q2),n.registerChartView(U4),n.registerSeriesModel(K4),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,J4)}var UW=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ZW=function(n){R(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new UW},e.prototype.buildPath=function(t,i){var o=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+o,i.y2),t.bezierCurveTo(i.cpx2+o,i.cpy2,i.cpx1+o,i.cpy1,i.x1+o,i.y1)):(t.lineTo(i.x2,i.y2+o),t.bezierCurveTo(i.cpx2,i.cpy2+o,i.cpx1,i.cpy1+o,i.x1,i.y1+o)),t.closePath()},e.prototype.highlight=function(){vi(this)},e.prototype.downplay=function(){yi(this)},e}(xt),jW=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,o){var r=this,a=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,h=t.getData(),p=t.getData("edge"),d=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(f){var g=new ZW,v=st(g);v.dataIndex=f.dataIndex,v.seriesIndex=t.seriesIndex,v.dataType="edge";var y=f.getModel(),m=y.getModel("lineStyle"),x=m.get("curveness"),_=f.node1.getLayout(),w=f.node1.getModel(),b=w.get("localX"),S=w.get("localY"),M=f.node2.getLayout(),D=f.node2.getModel(),T=D.get("localX"),I=D.get("localY"),A=f.getLayout(),k,L,N,E,P,O,V,F;g.shape.extent=Math.max(1,A.dy),g.shape.orient=d,d==="vertical"?(k=(b!=null?b*u:_.x)+A.sy,L=(S!=null?S*c:_.y)+_.dy,N=(T!=null?T*u:M.x)+A.ty,E=I!=null?I*c:M.y,P=k,O=L*(1-x)+E*x,V=N,F=L*x+E*(1-x)):(k=(b!=null?b*u:_.x)+_.dx,L=(S!=null?S*c:_.y)+A.sy,N=T!=null?T*u:M.x,E=(I!=null?I*c:M.y)+A.ty,P=k*(1-x)+N*x,O=L,V=k*x+N*(1-x),F=E),g.setShape({x1:k,y1:L,x2:N,y2:E,cpx1:P,cpy1:O,cpx2:V,cpy2:F}),g.useStyle(m.getItemStyle()),K2(g.style,d,f);var B=""+y.get("value"),Y=ue(y,"edgeLabel");ye(g,Y,{labelFetcher:{getFormattedLabel:function(ft,ut,gt,J,vt,rt){return t.getFormattedLabel(ft,ut,"edge",J,Qe(vt,Y.normal&&Y.normal.get("formatter"),B),rt)}},labelDataIndex:f.dataIndex,defaultText:B}),g.setTextConfig({position:"inside"});var $=y.getModel("emphasis");ve(g,y,"lineStyle",function(ft){var ut=ft.getItemStyle();return K2(ut,d,f),ut}),s.add(g),p.setItemGraphicEl(f.dataIndex,g);var j=$.get("focus");jt(g,j==="adjacency"?f.getAdjacentDataIndices():j==="trajectory"?f.getTrajectoryDataIndices():j,$.get("blurScope"),$.get("disabled"))}),a.eachNode(function(f){var g=f.getLayout(),v=f.getModel(),y=v.get("localX"),m=v.get("localY"),x=v.getModel("emphasis"),_=new It({shape:{x:y!=null?y*u:g.x,y:m!=null?m*c:g.y,width:g.dx,height:g.dy},style:v.getModel("itemStyle").getItemStyle(),z2:10});ye(_,ue(v),{labelFetcher:{getFormattedLabel:function(b,S){return t.getFormattedLabel(b,S,"node")}},labelDataIndex:f.dataIndex,defaultText:f.id}),_.disableLabelAnimation=!0,_.setStyle("fill",f.getVisual("color")),_.setStyle("decal",f.getVisual("style").decal),ve(_,v),s.add(_),h.setItemGraphicEl(f.dataIndex,_),st(_).dataType="node";var w=x.get("focus");jt(_,w==="adjacency"?f.getAdjacentDataIndices():w==="trajectory"?f.getTrajectoryDataIndices():w,x.get("blurScope"),x.get("disabled"))}),h.eachItemGraphicEl(function(f,g){var v=h.getItemModel(g);v.get("draggable")&&(f.drift=function(y,m){r._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},f.ondragend=function(){r._focusAdjacencyDisabled=!1},f.draggable=!0,f.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(qW(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(zt);function K2(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),o=t.node2.getVisual("color");X(i)&&X(o)&&(n.fill=new ys(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:o,offset:1}]))}}function qW(n,e,t){var i=new It({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Yt(i,{shape:{width:n.width+20}},e,t),i}const KW=jW;var $W=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var o=t.edges||t.links,r=t.data||t.nodes,a=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)if(a[l].depth!=null&&a[l].depth>=0)s[a[l].depth]=new Vt(a[l],this,i);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(r&&o){var u=x2(r,o,this,!0,c);return u.data}function c(h,p){h.wrapMethod("getItemModel",function(d,f){var g=d.parentModel,v=g.getData().getItemLayout(f);if(v){var y=v.depth,m=g.levelModels[y];m&&(d.parentModel=m)}return d}),p.wrapMethod("getItemModel",function(d,f){var g=d.parentModel,v=g.getGraph().getEdgeByIndex(f),y=v.node1.getLayout();if(y){var m=y.depth,x=g.levelModels[m];x&&(d.parentModel=x)}return d})}},e.prototype.setNodePosition=function(t,i){var o=this.option.data||this.option.nodes,r=o[t];r.localX=i[0],r.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,o){function r(d){return isNaN(d)||d==null}if(o==="edge"){var a=this.getDataParams(t,o),s=a.data,l=a.value,u=s.source+" -- "+s.target;return ce("nameValue",{name:u,value:l,noValue:r(l)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,p=this.getDataParams(t,o).data.name;return ce("nameValue",{name:p!=null?p+"":null,value:h,noValue:r(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var o=n.prototype.getDataParams.call(this,t,i);if(o.value==null&&i==="node"){var r=this.getGraph().getNodeByIndex(t),a=r.getLayout().value;o.value=a}return o},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Ut);const QW=$W;function JW(n,e){n.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),o=t.get("nodeGap"),r=tH(t,e);t.layoutInfo=r;var a=r.width,s=r.height,l=t.getGraph(),u=l.nodes,c=l.edges;nH(u);var h=Lt(u,function(g){return g.getLayout().value===0}),p=h.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),f=t.get("nodeAlign");eH(u,c,i,o,a,s,p,d,f)})}function tH(n,e){return ae(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function eH(n,e,t,i,o,r,a,s,l){iH(n,e,t,o,r,s,l),sH(n,e,r,o,i,a,s),vH(n,s)}function nH(n){C(n,function(e){var t=ao(e.outEdges,vh),i=ao(e.inEdges,vh),o=e.getValue()||0,r=Math.max(t,i,o);e.setLayout({value:r},!0)})}function iH(n,e,t,i,o,r,a){for(var s=[],l=[],u=[],c=[],h=0,p=0;p<e.length;p++)s[p]=1;for(var p=0;p<n.length;p++)l[p]=n[p].inEdges.length,l[p]===0&&u.push(n[p]);for(var d=-1;u.length;){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=v.depth!=null&&v.depth>=0;y&&v.depth>d&&(d=v.depth),g.setLayout({depth:y?v.depth:h},!0),r==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m],_=e.indexOf(x);s[_]=0;var w=x.node2,b=n.indexOf(w);--l[b]===0&&c.indexOf(w)<0&&c.push(w)}}++h,u=c,c=[]}for(var p=0;p<s.length;p++)if(s[p]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var S=d>h-1?d:h-1;a&&a!=="left"&&oH(n,a,r,S);var M=r==="vertical"?(o-t)/S:(i-t)/S;aH(n,M,r)}function $2(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function oH(n,e,t,i){if(e==="right"){for(var o=[],r=n,a=0;r.length;){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];o.indexOf(c.node1)<0&&o.push(c.node1)}}r=o,o=[],++a}C(n,function(h){$2(h)||h.setLayout({depth:Math.max(0,i-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&rH(n,i)}function rH(n,e){C(n,function(t){!$2(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function aH(n,e,t){C(n,function(i){var o=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:o},!0):i.setLayout({x:o},!0)})}function sH(n,e,t,i,o,r,a){var s=lH(n,a);uH(s,e,t,i,o,a),jv(s,o,t,i,a);for(var l=1;r>0;r--)l*=.99,cH(s,l,a),jv(s,o,t,i,a),gH(s,l,a),jv(s,o,t,i,a)}function lH(n,e){var t=[],i=e==="vertical"?"y":"x",o=od(n,function(r){return r.getLayout()[i]});return o.keys.sort(function(r,a){return r-a}),C(o.keys,function(r){t.push(o.buckets.get(r))}),t}function uH(n,e,t,i,o,r){var a=1/0;C(n,function(s){var l=s.length,u=0;C(s,function(h){u+=h.getLayout().value});var c=r==="vertical"?(i-(l-1)*o)/u:(t-(l-1)*o)/u;c<a&&(a=c)}),C(n,function(s){C(s,function(l,u){var c=l.getLayout().value*a;r==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),C(e,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function jv(n,e,t,i,o){var r=o==="vertical"?"x":"y";C(n,function(a){a.sort(function(g,v){return g.getLayout()[r]-v.getLayout()[r]});for(var s,l,u,c=0,h=a.length,p=o==="vertical"?"dx":"dy",d=0;d<h;d++)l=a[d],u=c-l.getLayout()[r],u>0&&(s=l.getLayout()[r]+u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[r]+l.getLayout()[p]+e;var f=o==="vertical"?i:t;if(u=c-e-f,u>0){s=l.getLayout()[r]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=h-2;d>=0;--d)l=a[d],u=l.getLayout()[r]+l.getLayout()[p]+e-c,u>0&&(s=l.getLayout()[r]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[r]}})}function cH(n,e,t){C(n.slice().reverse(),function(i){C(i,function(o){if(o.outEdges.length){var r=ao(o.outEdges,hH,t)/ao(o.outEdges,vh);if(isNaN(r)){var a=o.outEdges.length;r=a?ao(o.outEdges,pH,t)/a:0}if(t==="vertical"){var s=o.getLayout().x+(r-ro(o,t))*e;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(r-ro(o,t))*e;o.setLayout({y:l},!0)}}})})}function hH(n,e){return ro(n.node2,e)*n.getValue()}function pH(n,e){return ro(n.node2,e)}function dH(n,e){return ro(n.node1,e)*n.getValue()}function fH(n,e){return ro(n.node1,e)}function ro(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function vh(n){return n.getValue()}function ao(n,e,t){for(var i=0,o=n.length,r=-1;++r<o;){var a=+e(n[r],t);isNaN(a)||(i+=a)}return i}function gH(n,e,t){C(n,function(i){C(i,function(o){if(o.inEdges.length){var r=ao(o.inEdges,dH,t)/ao(o.inEdges,vh);if(isNaN(r)){var a=o.inEdges.length;r=a?ao(o.inEdges,fH,t)/a:0}if(t==="vertical"){var s=o.getLayout().x+(r-ro(o,t))*e;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(r-ro(o,t))*e;o.setLayout({y:l},!0)}}})})}function vH(n,e){var t=e==="vertical"?"x":"y";C(n,function(i){i.outEdges.sort(function(o,r){return o.node2.getLayout()[t]-r.node2.getLayout()[t]}),i.inEdges.sort(function(o,r){return o.node1.getLayout()[t]-r.node1.getLayout()[t]})}),C(n,function(i){var o=0,r=0;C(i.outEdges,function(a){a.setLayout({sy:o},!0),o+=a.getLayout().dy}),C(i.inEdges,function(a){a.setLayout({ty:r},!0),r+=a.getLayout().dy})})}function yH(n){n.eachSeriesByType("sankey",function(e){var t=e.getGraph(),i=t.nodes,o=t.edges;if(i.length){var r=1/0,a=-1/0;C(i,function(s){var l=s.getLayout().value;l<r&&(r=l),l>a&&(a=l)}),C(i,function(s){var l=new xe({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}o.length&&C(o,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function mH(n){n.registerChartView(KW),n.registerSeriesModel(QW),n.registerLayout(JW),n.registerVisual(yH),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Q2=function(){function n(){}return n.prototype.getInitialData=function(e,t){var i,o=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type"),l;a==="category"?(e.layout="horizontal",i=o.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=r.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],p=u[1-c],d=[o,r],f=d[c].get("type"),g=d[1-c].get("type"),v=e.data;if(v&&l){var y=[];C(v,function(_,w){var b;G(_)?(b=_.slice(),_.unshift(w)):G(_.value)?(b=z({},_),b.value=b.value.slice(),_.value.unshift(w)):b=_,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,x=[{name:h,type:Ic(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Ic(g),dimsDef:m.slice()}];return wa(this,{coordDimensions:x,dimensionsCount:m.length+1,encodeDefaulter:lt(a_,x,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),J2=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Ut);Jt(J2,Q2,!0);const xH=J2;var _H=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=t.get("layout")==="horizontal"?1:0;r.diff(s).add(function(u){if(r.hasValue(u)){var c=r.getItemLayout(u),h=tD(c,r,u,l,!0);r.setItemGraphicEl(u,h),a.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!r.hasValue(u)){a.remove(h);return}var p=r.getItemLayout(u);h?(An(h),eD(p,h,r,u)):h=tD(p,r,u,l),a.add(h),r.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&a.remove(c)}).execute(),this._data=r},e.prototype.remove=function(t){var i=this.group,o=this._data;this._data=null,o&&o.eachItemGraphicEl(function(r){r&&i.remove(r)})},e.type="boxplot",e}(zt),bH=function(){function n(){}return n}(),wH=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new bH},e.prototype.buildPath=function(t,i){var o=i.points,r=0;for(t.moveTo(o[r][0],o[r][1]),r++;r<4;r++)t.lineTo(o[r][0],o[r][1]);for(t.closePath();r<o.length;r++)t.moveTo(o[r][0],o[r][1]),r++,t.lineTo(o[r][0],o[r][1])},e}(xt);function tD(n,e,t,i,o){var r=n.ends,a=new wH({shape:{points:o?SH(r,i,n):r}});return eD(n,a,e,t,o),a}function eD(n,e,t,i,o){var r=t.hostModel,a=ws[o?"initProps":"updateProps"];a(e,{shape:{points:n.ends}},r,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");ve(e,s),jt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function SH(n,e,t){return W(n,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}const MH=_H;var Il=C;function IH(n){var e=DH(n);Il(e,function(t){var i=t.seriesModels;i.length&&(TH(t),Il(i,function(o,r){CH(o,t.boxOffsetList[r],t.boxWidthList[r])}))})}function DH(n){var e=[],t=[];return n.eachSeriesByType("boxplot",function(i){var o=i.getBaseAxis(),r=yt(t,o);r<0&&(r=t.length,t[r]=o,e[r]={axis:o,seriesModels:[]}),e[r].seriesModels.push(i)}),e}function TH(n){var e=n.axis,t=n.seriesModels,i=t.length,o=n.boxWidthList=[],r=n.boxOffsetList=[],a=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Il(t,function(f){l=Math.max(l,f.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Il(t,function(f){var g=f.get("boxWidth");G(g)||(g=[g,g]),a.push([H(g[0],s)||0,H(g[1],s)||0])});var c=s*.8-2,h=c/i*.3,p=(c-h*(i-1))/i,d=p/2-c/2;Il(t,function(f,g){r.push(d),d+=h+p,o.push(Math.min(Math.max(p,a[g][0]),a[g][1]))})}function CH(n,e,t){var i=n.coordinateSystem,o=n.getData(),r=t/2,a=n.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],u=o.mapDimension(l[a]),c=o.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<o.count();h++){var p=o.get(u,h),d=x(p,c[2],h),f=x(p,c[0],h),g=x(p,c[1],h),v=x(p,c[3],h),y=x(p,c[4],h),m=[];_(m,g,!1),_(m,v,!0),m.push(f,g,y,v),w(m,f),w(m,y),w(m,d),o.setItemLayout(h,{initBaseline:d[s],ends:m})}function x(b,S,M){var D=o.get(S,M),T=[];T[a]=b,T[s]=D;var I;return isNaN(b)||isNaN(D)?I=[NaN,NaN]:(I=i.dataToPoint(T),I[a]+=e),I}function _(b,S,M){var D=S.slice(),T=S.slice();D[a]+=r,T[a]-=r,M?b.push(D,T):b.push(T,D)}function w(b,S){var M=S.slice(),D=S.slice();M[a]-=r,D[a]+=r,b.push(M,D)}}function AH(n,e){e=e||{};for(var t=[],i=[],o=e.boundIQR,r=o==="none"||o===0,a=0;a<n.length;a++){var s=rn(n[a].slice()),l=td(s,.25),u=td(s,.5),c=td(s,.75),h=s[0],p=s[s.length-1],d=(o??1.5)*(c-l),f=r?h:Math.max(h,l-d),g=r?p:Math.min(p,c+d),v=e.itemNameFormatter,y=Q(v)?v({value:a}):X(v)?v.replace("{value}",a+""):a+"";t.push([y,f,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[y,x];i.push(_)}}}return{boxData:t,outliers:i}}var kH={type:"echarts:boxplot",transform:function(n){var e=n.upstream;if(e.sourceFormat!==Me){var t="";process.env.NODE_ENV!=="production"&&(t=Ce("source data is not applicable for this boxplot transform. Expect number[][].")),At(t)}var i=AH(e.getRawData(),n.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function LH(n){n.registerSeriesModel(xH),n.registerChartView(MH),n.registerLayout(IH),n.registerTransform(kH)}var NH=["color","borderColor"],EH=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,o){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,o,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Xi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),o=this._data,r=this.group,a=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||r.removeAll(),i.diff(o).add(function(c){if(i.hasValue(c)){var h=i.getItemLayout(c);if(s&&nD(u,h))return;var p=qv(h,c,!0);Yt(p,{shape:{points:h.ends}},t,c),Kv(p,i,c,a),r.add(p),i.setItemGraphicEl(c,p)}}).update(function(c,h){var p=o.getItemGraphicEl(h);if(!i.hasValue(c)){r.remove(p);return}var d=i.getItemLayout(c);if(s&&nD(u,d)){r.remove(p);return}p?(Ct(p,{shape:{points:d.ends}},t,c),An(p)):p=qv(d),Kv(p,i,c,a),r.add(p),i.setItemGraphicEl(c,p)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&r.remove(h)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),iD(t,this.group);var i=t.get("clip",!0)?Xc(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var o=i.getData(),r=o.getLayout("isSimpleBox"),a;(a=t.next())!=null;){var s=o.getItemLayout(a),l=qv(s);Kv(l,o,a,r),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){iD(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(zt),OH=function(){function n(){}return n}(),PH=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new OH},e.prototype.buildPath=function(t,i){var o=i.points;this.__simpleBox?(t.moveTo(o[4][0],o[4][1]),t.lineTo(o[6][0],o[6][1])):(t.moveTo(o[0][0],o[0][1]),t.lineTo(o[1][0],o[1][1]),t.lineTo(o[2][0],o[2][1]),t.lineTo(o[3][0],o[3][1]),t.closePath(),t.moveTo(o[4][0],o[4][1]),t.lineTo(o[5][0],o[5][1]),t.moveTo(o[6][0],o[6][1]),t.lineTo(o[7][0],o[7][1]))},e}(xt);function qv(n,e,t){var i=n.ends;return new PH({shape:{points:t?RH(i,n):i},z2:100})}function nD(n,e){for(var t=!0,i=0;i<e.ends.length;i++)if(n.contain(e.ends[i][0],e.ends[i][1])){t=!1;break}return t}function Kv(n,e,t,i){var o=e.getItemModel(t);n.useStyle(e.getItemVisual(t,"style")),n.style.strokeNoScale=!0,n.__simpleBox=i,ve(n,o)}function RH(n,e){return W(n,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var VH=function(){function n(){}return n}(),$v=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new VH},e.prototype.buildPath=function(t,i){for(var o=i.points,r=0;r<o.length;)if(this.__sign===o[r++]){var a=o[r++];t.moveTo(a,o[r++]),t.lineTo(a,o[r++])}else r+=3},e}(xt);function iD(n,e,t,i){var o=n.getData(),r=o.getLayout("largePoints"),a=new $v({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new $v({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new $v({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});e.add(l),Qv(1,a,n),Qv(-1,s,n),Qv(0,l,n),i&&(a.incremental=!0,s.incremental=!0),t&&t.push(a,s)}function Qv(n,e,t,i){var o=t.get(["itemStyle",n>0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(o=t.get(["itemStyle","borderColorDoji"]));var r=t.getModel("itemStyle").getItemStyle(NH);e.useStyle(r),e.style.fill=null,e.style.stroke=o}const zH=EH;var oD=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,o){var r=i.getItemLayout(t);return r&&o.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ut);Jt(oD,Q2,!0);const BH=oD;function FH(n){!n||!G(n.series)||C(n.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var GH=["itemStyle","borderColor"],WH=["itemStyle","borderColor0"],HH=["itemStyle","borderColorDoji"],YH=["itemStyle","color"],XH=["itemStyle","color0"],UH={seriesType:"candlestick",plan:ca(),performRawSeries:!0,reset:function(n,e){function t(r,a){return a.get(r>0?YH:XH)}function i(r,a){return a.get(r===0?HH:r>0?GH:WH)}if(!e.isSeriesFiltered(n)){var o=n.pipelineContext.large;return!o&&{progress:function(r,a){for(var s;(s=r.next())!=null;){var l=a.getItemModel(s),u=a.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=i(u,l)||c.fill;var h=a.ensureUniqueItemVisual(s,"style");z(h,c)}}}}}};const ZH=UH;var jH={seriesType:"candlestick",plan:ca(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),i=qH(n,t),o=0,r=1,a=["x","y"],s=t.getDimensionIndex(t.mapDimension(a[o])),l=W(t.mapDimensionsAll(a[r]),t.getDimensionIndex,t),u=l[0],c=l[1],h=l[2],p=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?f:d};function d(g,v){for(var y,m=v.getStore();(y=g.next())!=null;){var x=m.get(s,y),_=m.get(u,y),w=m.get(c,y),b=m.get(h,y),S=m.get(p,y),M=Math.min(_,w),D=Math.max(_,w),T=P(M,x),I=P(D,x),A=P(b,x),k=P(S,x),L=[];O(L,I,0),O(L,T,1),L.push(F(k),F(I),F(A),F(T));var N=v.getItemModel(y),E=!!N.get(["itemStyle","borderColorDoji"]);v.setItemLayout(y,{sign:rD(m,y,_,w,c,E),initBaseline:_>w?I[r]:T[r],ends:L,brushRect:V(b,S,x)})}function P(B,Y){var $=[];return $[o]=Y,$[r]=B,isNaN(Y)||isNaN(B)?[NaN,NaN]:e.dataToPoint($)}function O(B,Y,$){var j=Y.slice(),ft=Y.slice();j[o]=Hu(j[o]+i/2,1,!1),ft[o]=Hu(ft[o]-i/2,1,!0),$?B.push(j,ft):B.push(ft,j)}function V(B,Y,$){var j=P(B,$),ft=P(Y,$);return j[o]-=i/2,ft[o]-=i/2,{x:j[0],y:j[1],width:i,height:ft[1]-j[1]}}function F(B){return B[o]=Hu(B[o],1),B}}function f(g,v){for(var y=Jn(g.count*4),m=0,x,_=[],w=[],b,S=v.getStore(),M=!!n.get(["itemStyle","borderColorDoji"]);(b=g.next())!=null;){var D=S.get(s,b),T=S.get(u,b),I=S.get(c,b),A=S.get(h,b),k=S.get(p,b);if(isNaN(D)||isNaN(A)||isNaN(k)){y[m++]=NaN,m+=3;continue}y[m++]=rD(S,b,T,I,c,M),_[o]=D,_[r]=A,x=e.dataToPoint(_,null,w),y[m++]=x?x[0]:NaN,y[m++]=x?x[1]:NaN,_[r]=k,x=e.dataToPoint(_,null,w),y[m++]=x?x[1]:NaN}v.setLayout("largePoints",y)}}};function rD(n,e,t,i,o,r){var a;return t>i?a=-1:t<i?a=1:a=r?0:e>0?n.get(o,e-1)<=i?1:-1:1,a}function qH(n,e){var t=n.getBaseAxis(),i,o=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=H(ct(n.get("barMaxWidth"),o),o),a=H(ct(n.get("barMinWidth"),1),o),s=n.get("barWidth");return s!=null?H(s,o):Math.max(Math.min(o/2,r),a)}const KH=jH;function $H(n){n.registerChartView(zH),n.registerSeriesModel(BH),n.registerPreprocessor(FH),n.registerVisual(ZH),n.registerLayout(KH)}function aD(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var QH=function(n){R(e,n);function e(t,i){var o=n.call(this)||this,r=new il(t,i),a=new ot;return o.add(r),o.add(a),o.updateData(t,i),o}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,o=t.color,r=t.rippleNumber,a=this.childAt(1),s=0;s<r;s++){var l=oe(i,-1,-1,2,2,o);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/r*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),a.add(l)}aD(a,t)},e.prototype.updateEffectAnimation=function(t){for(var i=this._effectCfg,o=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],a=0;a<r.length;a++){var s=r[a];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}aD(o,t)},e.prototype.highlight=function(){vi(this)},e.prototype.downplay=function(){yi(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var o=this,r=t.hostModel;this.childAt(0).updateData(t,i);var a=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=da(t.getItemVisual(i,"symbolSize")),c=t.getItemVisual(i,"style"),h=c&&c.fill,p=s.getModel("emphasis");a.setScale(u),a.traverse(function(v){v.setStyle("fill",h)});var d=er(t.getItemVisual(i,"symbolOffset"),u);d&&(a.x=d[0],a.y=d[1]);var f=t.getItemVisual(i,"symbolRotate");a.rotation=(f||0)*Math.PI/180||0;var g={};g.showEffectOn=r.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=i/t.count(),g.z=r.getShallow("z")||0,g.zlevel=r.getShallow("zlevel")||0,g.symbolType=l,g.color=h,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(v){v==="emphasis"?g.showEffectOn!=="render"&&o.startEffectAnimation(g):v==="normal"&&g.showEffectOn!=="render"&&o.stopEffectAnimation()}),this._effectCfg=g,jt(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(ot);const JH=QH;var t6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new ol(JH)},e.prototype.render=function(t,i,o){var r=t.getData(),a=this._symbolDraw;a.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(a.group)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,o=i&&i.getArea&&i.getArea();return t.get("clip",!0)?o:null},e.prototype.updateTransform=function(t,i,o){var r=t.getData();this.group.dirty();var a=rl("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=Ak(i.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(zt);const e6=t6;var n6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,o){return o.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Ut);const i6=n6;function o6(n){n.registerChartView(e6),n.registerSeriesModel(i6),n.registerLayout(rl("effectScatter"))}var r6=function(n){R(e,n);function e(t,i,o){var r=n.call(this)||this;return r.add(r.createLine(t,i,o)),r._updateEffectSymbol(t,i),r}return e.prototype.createLine=function(t,i,o){return new Mv(t,i,o)},e.prototype._updateEffectSymbol=function(t,i){var o=t.getItemModel(i),r=o.getModel("effect"),a=r.get("symbolSize"),s=r.get("symbol");G(a)||(a=[a,a]);var l=t.getItemVisual(i,"style"),u=r.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=oe(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(r.getItemStyle(["color"])),c.scaleX=a[0],c.scaleY=a[1],c.setColor(u),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(t,r,i))},e.prototype._updateEffectAnimation=function(t,i,o){var r=this.childAt(1);if(r){var a=t.getItemLayout(o),s=i.get("period")*1e3,l=i.get("loop"),u=i.get("roundTrip"),c=i.get("constantSpeed"),h=te(i.get("delay"),function(d){return d/t.count()*s/3});if(r.ignore=!0,this._updateAnimationPoints(r,a),c>0&&(s=this._getLineLength(r)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){r.stopAnimation();var p=void 0;Q(h)?p=h(o):p=h,r.__t>0&&(p=-s*r.__t),this._animateSymbol(r,s,p,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,o,r,a){if(i>0){t.__t=0;var s=this,l=t.animate("",r).when(a?i*2:i,{__t:a?2:1}).delay(o).during(function(){s._updateSymbolPosition(t)});r||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Li(t.__p1,t.__cp1)+Li(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,o){this.childAt(0).updateData(t,i,o),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,o=t.__p2,r=t.__cp1,a=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=pe,c=wp;s[0]=u(i[0],r[0],o[0],a),s[1]=u(i[1],r[1],o[1],a);var h=t.__t<1?c(i[0],r[0],o[0],a):c(o[0],r[0],i[0],1-a),p=t.__t<1?c(i[1],r[1],o[1],a):c(o[1],r[1],i[1],1-a);t.rotation=-Math.atan2(p,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Li(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Li(i,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var o=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,o,i)},e}(ot);const sD=r6;var a6=function(n){R(e,n);function e(t,i,o){var r=n.call(this)||this;return r._createPolyline(t,i,o),r}return e.prototype._createPolyline=function(t,i,o){var r=t.getItemLayout(i),a=new We({shape:{points:r}});this.add(a),this._updateCommonStl(t,i,o)},e.prototype.updateData=function(t,i,o){var r=t.hostModel,a=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};Ct(a,s,r,i),this._updateCommonStl(t,i,o)},e.prototype._updateCommonStl=function(t,i,o){var r=this.childAt(0),a=t.getItemModel(i),s=o&&o.emphasisLineStyle,l=o&&o.focus,u=o&&o.blurScope,c=o&&o.emphasisDisabled;if(!o||t.hasItemOption){var h=a.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}r.useStyle(t.getItemVisual(i,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var p=r.ensureState("emphasis");p.style=s,jt(this,l,u,c)},e.prototype.updateLayout=function(t,i){var o=this.childAt(0);o.setShape("points",t.getItemLayout(i))},e}(ot);const lD=a6;var s6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,o){return new lD(t,i,o)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;for(var o=[0],r=0,a=1;a<i.length;a++){var s=i[a-1],l=i[a];r+=Li(s,l),o.push(r)}if(r===0){this._length=0;return}for(var a=0;a<o.length;a++)o[a]/=r;this._offsets=o,this._length=r},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<1?t.__t:2-t.__t,o=this._points,r=this._offsets,a=o.length;if(r){var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,a-1);for(l=u;l>=0&&!(r[l]<=i);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(r[l]>i);l++);l=Math.min(l-1,a-2)}var c=(i-r[l])/(r[l+1]-r[l]),h=o[l],p=o[l+1];t.x=h[0]*(1-c)+c*p[0],t.y=h[1]*(1-c)+c*p[1];var d=t.__t<1?p[0]-h[0]:h[0]-p[0],f=t.__t<1?p[1]-h[1]:h[1]-p[1];t.rotation=-Math.atan2(f,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(sD);const l6=s6;var u6=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),c6=function(n){R(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new u6},e.prototype.buildPath=function(t,i){var o=i.segs,r=i.curveness,a;if(i.polyline)for(a=this._off;a<o.length;){var s=o[a++];if(s>0){t.moveTo(o[a++],o[a++]);for(var l=1;l<s;l++)t.lineTo(o[a++],o[a++])}}else for(a=this._off;a<o.length;){var u=o[a++],c=o[a++],h=o[a++],p=o[a++];if(t.moveTo(u,c),r>0){var d=(u+h)/2-(c-p)*r,f=(c+p)/2-(h-u)*r;t.quadraticCurveTo(d,f,h,p)}else t.lineTo(h,p)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var o=this.shape,r=o.segs,a=o.curveness,s=this.style.lineWidth;if(o.polyline)for(var l=0,u=0;u<r.length;){var c=r[u++];if(c>0)for(var h=r[u++],p=r[u++],d=1;d<c;d++){var f=r[u++],g=r[u++];if(Gi(h,p,f,g,s,t,i))return l}l++}else for(var l=0,u=0;u<r.length;){var h=r[u++],p=r[u++],f=r[u++],g=r[u++];if(a>0){var v=(h+f)/2-(p-g)*a,y=(p+g)/2-(f-h)*a;if(u1(h,p,v,y,f,g,s,t,i))return l}else if(Gi(h,p,f,g,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.segs,r=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u<o.length;){var c=o[u++],h=o[u++];r=Math.min(c,r),s=Math.max(c,s),a=Math.min(h,a),l=Math.max(h,l)}t=this._rect=new dt(r,a,s,l)}return t},e}(xt),h6=function(){function n(){this.group=new ot}return n.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},n.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(e,t){var i=this._newAdded[0],o=t.getLayout("linesPoints"),r=i&&i.shape.segs;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:o}),this._setCommon(l,t),l.__startIndex=e.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new c6({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},n.prototype._setCommon=function(e,t,i){var o=t.hostModel;e.setShape({polyline:o.get("polyline"),curveness:o.get(["lineStyle","curveness"])}),e.useStyle(o.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var a=st(e);a.seriesIndex=o.seriesIndex,e.on("mousemove",function(s){a.dataIndex=null;var l=e.hoverDataIdx;l>0&&(a.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const p6=h6;var d6={seriesType:"lines",plan:ca(),reset:function(n){var e=n.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&we("The lines series must have a coordinate system.");return}var t=n.get("polyline"),i=n.pipelineContext.large;return{progress:function(o,r){var a=[];if(i){var s=void 0,l=o.end-o.start;if(t){for(var u=0,c=o.start;c<o.end;c++)u+=n.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,p=[],c=o.start;c<o.end;c++){var d=n.getLineCoords(c,a);t&&(s[h++]=d);for(var f=0;f<d;f++)p=e.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}r.setLayout("linesPoints",s)}else for(var c=o.start;c<o.end;c++){var g=r.getItemModel(c),d=n.getLineCoords(c,a),v=[];if(t)for(var y=0;y<d;y++)v.push(e.dataToPoint(a[y]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}r.setItemLayout(c,v)}}}}};const uD=d6;var f6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateLineDraw(r,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=o.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(r);var h=t.get("clip",!0)&&Xc(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateLineDraw(r,t);a.incrementalPrepareUpdate(r),this._clearLayer(o),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,o){var r=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=uD.reset(t,i,o);s.progress&&s.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(o)},e.prototype._updateLineDraw=function(t,i){var o=this._lineDraw,r=this._showEffect(i),a=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&r&&l&&console.warn("Large lines not support effect"),(!o||r!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=l?new p6:new Dv(a?r?l6:lD:r?sD:Mv),this._hasEffet=r,this._isPolyline=a,this._isLargeDraw=l),this.group.add(o.group),o},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),o=i.painter.getType()==="svg";!o&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(zt);const g6=f6;var v6=typeof Uint32Array>"u"?Array:Uint32Array,y6=typeof Float64Array>"u"?Array:Float64Array;function cD(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),n.data=W(e,function(t){var i=[t[0].coord,t[1].coord],o={coords:i};return t[0].name&&(o.fromName=t[0].name),t[1].name&&(o.toName=t[1].name),tp([o,t[0],t[1]])}))}var m6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],cD(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(cD(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Gl(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Gl(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),o=i.option instanceof Array?i.option:i.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(o instanceof Array&&o.length>0&&o[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(o)+". Lines must have 2d coords array in data item.");return o},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var o=this._flatCoordsOffset[t*2],r=this._flatCoordsOffset[t*2+1],a=0;a<r;a++)i[a]=i[a]||[],i[a][0]=this._flatCoords[o+a*2],i[a][1]=this._flatCoords[o+a*2+1];return r}else{for(var s=this._getCoordsFromItemModel(t),a=0;a<s.length;a++)i[a]=i[a]||[],i[a][0]=s[a][0],i[a][1]=s[a][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),Dt(t[0])){for(var o=t.length,r=new v6(o),a=new y6(o),s=0,l=0,u=0,c=0;c<o;){u++;var h=t[c++];r[l++]=s+i,r[l++]=h;for(var p=0;p<h;p++){var d=t[c++],f=t[c++];if(a[s++]=d,a[s++]=f,c>o&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(process.env.NODE_ENV!=="production"){var o=sa.get(t.coordinateSystem);if(!o)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var r=new Ne(["value"],this);return r.hasItemOption=!1,r.initData(t.data,[],function(a,s,l,u){if(a instanceof Array)return NaN;r.hasItemOption=!0;var c=a.value;if(c!=null)return c instanceof Array?c[u]:c}),r},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=r.getItemModel(t),s=a.get("name");if(s)return s;var l=a.get("fromName"),u=a.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ce("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Ut);const x6=m6;function yh(n){return n instanceof Array||(n=[n,n]),n}var _6={seriesType:"lines",reset:function(n){var e=yh(n.get("symbol")),t=yh(n.get("symbolSize")),i=n.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function o(r,a){var s=r.getItemModel(a),l=yh(s.getShallow("symbol",!0)),u=yh(s.getShallow("symbolSize",!0));l[0]&&r.setItemVisual(a,"fromSymbol",l[0]),l[1]&&r.setItemVisual(a,"toSymbol",l[1]),u[0]&&r.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&r.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?o:null}}};const b6=_6;function w6(n){n.registerChartView(g6),n.registerSeriesModel(x6),n.registerLayout(uD),n.registerVisual(b6)}var S6=256,M6=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ki.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,i,o,r,a){var s=this._getBrush(),l=this._getGradient(r,"inRange"),u=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,p=h.getContext("2d"),d=e.length;h.width=t,h.height=i;for(var f=0;f<d;++f){var g=e[f],v=g[0],y=g[1],m=g[2],x=o(m);p.globalAlpha=x,p.drawImage(s,v-c,y-c)}if(!h.width||!h.height)return h;for(var _=p.getImageData(0,0,h.width,h.height),w=_.data,b=0,S=w.length,M=this.minOpacity,D=this.maxOpacity,T=D-M;b<S;){var x=w[b+3]/256,I=Math.floor(x*(S6-1))*4;if(x>0){var A=a(x)?l:u;x>0&&(x=x*T+M),w[b++]=A[I],w[b++]=A[I+1],w[b++]=A[I+2],w[b++]=A[I+3]*x*256}else b+=4}return p.putImageData(_,0,0),h},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ki.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var o=e.getContext("2d");return o.clearRect(0,0,i,i),o.shadowOffsetX=i,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-t,t,this.pointSize,0,Math.PI*2,!0),o.closePath(),o.fill(),e},n.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,o=i[t]||(i[t]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],a=0,s=0;s<256;s++)e[t](s/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o},n}();const I6=M6;function D6(n,e,t){var i=n[1]-n[0];e=W(e,function(a){return{interval:[(a.interval[0]-n[0])/i,(a.interval[1]-n[0])/i]}});var o=e.length,r=0;return function(a){var s;for(s=r;s<o;s++){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){r=s;break}}if(s===o)for(s=r-1;s>=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){r=s;break}}return s>=0&&s<o&&t[s]}}function T6(n,e){var t=n[1]-n[0];return e=[(e[0]-n[0])/t,(e[1]-n[0])/t],function(i){return i>=e[0]&&i<=e[1]}}function hD(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var C6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r;if(i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(r=s)})}),process.env.NODE_ENV!=="production"&&!r)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var a=t.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(t,o,0,t.getData().count()):hD(a)&&this._renderOnGeo(a,t,r,o)},e.prototype.incrementalPrepareRender=function(t,i,o){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,o,r){var a=i.coordinateSystem;a&&(hD(a)?this.render(i,o,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Xi(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,o,r,a){var s=t.coordinateSystem,l=dr(s,"cartesian2d"),u,c,h,p;if(l){var d=s.getAxis("x"),f=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(d.type==="category"&&f.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(d.onBand&&f.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=d.getBandWidth()+.5,c=f.getBandWidth()+.5,h=d.scale.getExtent(),p=f.scale.getExtent()}for(var g=this.group,v=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),w=ue(t),b=t.getModel("emphasis"),S=b.get("focus"),M=b.get("blurScope"),D=b.get("disabled"),T=l?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],I=o;I<r;I++){var A=void 0,k=v.getItemVisual(I,"style");if(l){var L=v.get(T[0],I),N=v.get(T[1],I);if(isNaN(v.get(T[2],I))||isNaN(L)||isNaN(N)||L<h[0]||L>h[1]||N<p[0]||N>p[1])continue;var E=s.dataToPoint([L,N]);A=new It({shape:{x:E[0]-u/2,y:E[1]-c/2,width:u,height:c},style:k})}else{if(isNaN(v.get(T[1],I)))continue;A=new It({z2:1,shape:s.dataToRect([v.get(T[0],I)]).contentShape,style:k})}if(v.hasItemOption){var P=v.getItemModel(I),O=P.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=P.getModel(["blur","itemStyle"]).getItemStyle(),x=P.getModel(["select","itemStyle"]).getItemStyle(),_=P.get(["itemStyle","borderRadius"]),S=O.get("focus"),M=O.get("blurScope"),D=O.get("disabled"),w=ue(P)}A.shape.r=_;var V=t.getRawValue(I),F="-";V&&V[2]!=null&&(F=V[2]+""),ye(A,w,{labelFetcher:t,labelDataIndex:I,defaultOpacity:k.opacity,defaultText:F}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=m,A.ensureState("select").style=x,jt(A,S,M,D),A.incremental=a,a&&(A.states.emphasis.hoverLayer=!0),g.add(A),v.setItemGraphicEl(I,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,i,o,r){var a=o.targetVisuals.inRange,s=o.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new I6;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var p=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),g=Math.min(c.height+c.y,r.getHeight()),v=f-p,y=g-d,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(m,function(S,M,D){var T=t.dataToPoint([S,M]);return T[0]-=p,T[1]-=d,T.push(D),T}),_=o.getExtent(),w=o.type==="visualMap.continuous"?T6(_,o.option.range):D6(_,o.getPieceList(),o.option.selected);u.update(x,v,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var b=new ge({style:{width:v,height:y,x:p,y:d,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(zt);const A6=C6;var k6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return bi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=sa.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ut);const L6=k6;function N6(n){n.registerChartView(A6),n.registerSeriesModel(L6)}var E6=["itemStyle","borderWidth"],pD=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Jv=new jn,O6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),p={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:pD[+c],categoryDim:pD[1-+c]};return a.diff(s).add(function(d){if(a.hasValue(d)){var f=xD(a,d),g=dD(a,d,f,p),v=_D(a,p,g);a.setItemGraphicEl(d,v),r.add(v),SD(v,p,g)}}).update(function(d,f){var g=s.getItemGraphicEl(f);if(!a.hasValue(d)){r.remove(g);return}var v=xD(a,d),y=dD(a,d,v,p),m=wD(a,y);g&&m!==g.__pictorialShapeStr&&(r.remove(g),a.setItemGraphicEl(d,null),g=null),g?G6(g,p,y):g=_D(a,p,y,!0),a.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,r.add(g),SD(g,p,y)}).remove(function(d){var f=s.getItemGraphicEl(d);f&&bD(s,d,f.__pictorialSymbolMeta.animationModel,f)}).execute(),this._data=a,this.group},e.prototype.remove=function(t,i){var o=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(a){bD(r,st(a).dataIndex,t,a)}):o.removeAll()},e.type="pictorialBar",e}(zt);function dD(n,e,t,i){var o=n.getItemLayout(e),r=t.get("symbolRepeat"),a=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),p={dataIndex:e,layout:o,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};P6(t,r,o,i,p),R6(n,e,o,r,a,p.boundingLength,p.pxSign,c,i,p),V6(t,p.symbolScale,u,i,p);var d=p.symbolSize,f=er(t.get("symbolOffset"),d);return z6(t,d,o,r,a,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function P6(n,e,t,i,o){var r=i.valueDim,a=n.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[r.wh]<=0),c;if(G(a)){var h=[ty(s,a[0])-l,ty(s,a[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else a!=null?c=ty(s,a)-l:e?c=i.coordSysExtent[r.index][u]-l:c=t[r.wh];o.boundingLength=c,e&&(o.repeatCutLength=t[r.wh]),o.pxSign=c>0?1:-1}function ty(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function R6(n,e,t,i,o,r,a,s,l,u){var c=l.valueDim,h=l.categoryDim,p=Math.abs(t[h.wh]),d=n.getItemVisual(e,"symbolSize"),f;G(d)?f=d.slice():d==null?f=["100%","100%"]:f=[d,d],f[h.index]=H(f[h.index],p),f[c.index]=H(f[c.index],i?p:Math.abs(r)),u.symbolSize=f;var g=u.symbolScale=[f[0]/s,f[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}function V6(n,e,t,i,o){var r=n.get(E6)||0;r&&(Jv.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Jv.updateTransform(),r/=Jv.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r||0}function z6(n,e,t,i,o,r,a,s,l,u,c,h){var p=c.categoryDim,d=c.valueDim,f=h.pxSign,g=Math.max(e[d.index]+s,0),v=g;if(i){var y=Math.abs(l),m=te(n.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=H(m,e[d.index]),w=Math.max(g+_*2,0),b=x?0:_*2,S=ed(i),M=S?i:MD((y+b)/w),D=y-M*g;_=D/2/(x?M:Math.max(M-1,1)),w=g+_*2,b=x?0:_*2,!S&&i!=="fixed"&&(M=u?MD((Math.abs(u)+b)/w):0),v=M*w-b,h.repeatTimes=M,h.symbolMargin=_}var T=f*(v/2),I=h.pathPosition=[];I[p.index]=t[p.wh]/2,I[d.index]=a==="start"?T:a==="end"?l-T:l/2,r&&(I[0]+=r[0],I[1]+=r[1]);var A=h.bundlePosition=[];A[p.index]=t[p.xy],A[d.index]=t[d.xy];var k=h.barRectShape=z({},t);k[d.wh]=f*Math.max(Math.abs(t[d.wh]),Math.abs(I[d.index]+T)),k[p.wh]=t[p.wh];var L=h.clipShape={};L[p.xy]=-t[p.xy],L[p.wh]=c.ecSize[p.wh],L[d.xy]=0,L[d.wh]=t[d.wh]}function fD(n){var e=n.symbolPatternSize,t=oe(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function gD(n,e,t,i){var o=n.__pictorialBundle,r=t.symbolSize,a=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=r[e.valueDim.index]+a+t.symbolMargin*2;for(ey(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?ka(g,null,f(c),t,i):ka(g,null,{scaleX:0,scaleY:0},t,i,function(){o.remove(g)}),c++});c<u;c++){var p=fD(t);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,o.add(p);var d=f(c);ka(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},t,i)}function f(g){var v=s.slice(),y=t.pxSign,m=g;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-g),v[l.index]=h*(m-u/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function vD(n,e,t,i){var o=n.__pictorialBundle,r=n.__pictorialMainPath;r?ka(r,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(r=n.__pictorialMainPath=fD(t),o.add(r),ka(r,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function yD(n,e,t){var i=z({},e.barRectShape),o=n.__pictorialBarRect;o?ka(o,null,{shape:i},e,t):(o=n.__pictorialBarRect=new It({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,n.add(o))}function mD(n,e,t,i){if(t.symbolClip){var o=n.__pictorialClipPath,r=z({},t.clipShape),a=e.valueDim,s=t.animationModel,l=t.dataIndex;if(o)Ct(o,{shape:r},s,l);else{r[a.wh]=0,o=new It({shape:r}),n.__pictorialBundle.setClipPath(o),n.__pictorialClipPath=o;var u={};u[a.wh]=t.clipShape[a.wh],ws[i?"updateProps":"initProps"](o,{shape:u},s,l)}}}function xD(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=B6,t.isAnimationEnabled=F6,t}function B6(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function F6(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _D(n,e,t,i){var o=new ot,r=new ot;return o.add(r),o.__pictorialBundle=r,r.x=t.bundlePosition[0],r.y=t.bundlePosition[1],t.symbolRepeat?gD(o,e,t):vD(o,e,t),yD(o,t,i),mD(o,e,t,i),o.__pictorialShapeStr=wD(n,t),o.__pictorialSymbolMeta=t,o}function G6(n,e,t){var i=t.animationModel,o=t.dataIndex,r=n.__pictorialBundle;Ct(r,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,o),t.symbolRepeat?gD(n,e,t,!0):vD(n,e,t,!0),yD(n,t,!0),mD(n,e,t,!0)}function bD(n,e,t,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];ey(i,function(a){r.push(a)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),C(r,function(a){Yi(a,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(e,null)}function wD(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function ey(n,e,t){C(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&e.call(t,i)})}function ka(n,e,t,i,o,r){e&&n.attr(e),i.symbolClip&&!o?t&&n.attr(t):t&&ws[o?"updateProps":"initProps"](n,t,i.animationModel,i.dataIndex,r)}function SD(n,e,t){var i=t.dataIndex,o=t.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),c=r.get("focus"),h=r.get("blurScope"),p=r.get("scale");ey(n,function(g){if(g instanceof ge){var v=g.style;g.useStyle(z({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=a,p&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],f=n.__pictorialBarRect;ye(f,ue(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:ba(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),jt(n,c,h,r.get("disabled"))}function MD(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const W6=O6;var H6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ui(Uc.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Uc);const Y6=H6;function X6(n){n.registerChartView(W6),n.registerSeriesModel(Y6),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,lt(Rw,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Vw("pictorialBar"))}var U6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this,s=this.group,l=t.getLayerSeries(),u=r.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function p(v){return v.name}var d=new _i(this._layersSeries||[],l,p,p),f=[];d.add(Z(g,this,"add")).update(Z(g,this,"update")).remove(Z(g,this,"remove")).execute();function g(v,y,m){var x=a._layers;if(v==="remove"){s.remove(x[y]);return}for(var _=[],w=[],b,S=l[y].indices,M=0;M<S.length;M++){var D=r.getItemLayout(S[M]),T=D.x,I=D.y0,A=D.y;_.push(T,I),w.push(T,I+A),b=r.getItemVisual(S[M],"style")}var k,L=r.getItemLayout(S[0]),N=t.getModel("label"),E=N.get("margin"),P=t.getModel("emphasis");if(v==="add"){var O=f[y]=new ot;k=new QS({shape:{points:_,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(k),s.add(O),t.isAnimationEnabled()&&k.setClipPath(Z6(k.getBoundingRect(),t,function(){k.removeClipPath()}))}else{var O=x[m];k=O.childAt(0),s.add(O),f[y]=O,Ct(k,{shape:{points:_,stackedOnPoints:w}},t),An(k)}ye(k,ue(t),{labelDataIndex:S[M-1],defaultText:r.getName(S[M-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),k.setTextConfig({position:null,local:!0});var V=k.getTextContent();V&&(V.x=L.x-E,V.y=L.y0+L.y/2),k.useStyle(b),r.setItemGraphicEl(y,k),ve(k,t),jt(k,P.get("focus"),P.get("blurScope"),P.get("disabled"))}this._layersSeries=l,this._layers=f},e.type="themeRiver",e}(zt);function Z6(n,e,t){var i=new It({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Yt(i,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},e,t),i}const j6=U6;var ny=2,q6=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new sl(Z(this.getData,this),Z(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,o={},r=od(t,function(p){return o.hasOwnProperty(p[0]+"")||(o[p[0]+""]=-1),p[2]}),a=[];r.buckets.each(function(p,d){a.push({name:d,dataList:p})});for(var s=a.length,l=0;l<s;++l){for(var u=a[l].name,c=0;c<a[l].dataList.length;++c){var h=a[l].dataList[c][0]+"";o[h]=l}for(var h in o)o.hasOwnProperty(h)&&o[h]!==l&&(o[h]=l,t[i]=[h,0,u],i++)}return t},e.prototype.getInitialData=function(t,i){for(var o=this.getReferringComponents("singleAxis",ne).models[0],r=o.get("type"),a=Lt(t.data,function(f){return f[2]!==void 0}),s=this.fixData(a||[]),l=[],u=this.nameMap=K(),c=0,h=0;h<s.length;++h)l.push(s[h][ny]),u.get(s[h][ny])||(u.set(s[h][ny],c),c++);var p=Zs(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ic(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Ne(p,this);return d.initData(s),d},e.prototype.getLayerSeries=function(){for(var t=this.getData(),i=t.count(),o=[],r=0;r<i;++r)o[r]=r;var a=t.mapDimension("single"),s=od(o,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,p){return t.get(a,h)-t.get(a,p)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,o){G(t)||(t=t?[t]:[]);for(var r=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,p=-1,d=a[c].indices.length,f=0;f<d;++f){var g=r.get(t[0],a[c].indices[f]),v=Math.abs(g-i);v<=h&&(u=g,h=v,p=a[c].indices[f])}s.push(p)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=r.getName(t),s=r.get(r.mapDimension("value"),t);return ce("nameValue",{name:a,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Ut);const K6=q6;function $6(n,e){n.eachSeriesByType("themeRiver",function(t){var i=t.getData(),o=t.coordinateSystem,r={},a=o.getRect();r.rect=a;var s=t.get("boundaryGap"),l=o.getAxis();if(r.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],a.height),s[1]=H(s[1],a.height);var u=a.height-s[0]-s[1];ID(i,t,u)}else{s[0]=H(s[0],a.width),s[1]=H(s[1],a.width);var c=a.width-s[0]-s[1];ID(i,t,c)}i.setLayout("layoutInfo",r)})}function ID(n,e,t){if(n.count())for(var i=e.coordinateSystem,o=e.getLayerSeries(),r=n.mapDimension("single"),a=n.mapDimension("value"),s=W(o,function(v){return W(v.indices,function(y){var m=i.dataToPoint(n.get(r,y));return m[1]=n.get(a,y),m})}),l=Q6(s),u=l.y0,c=t/l.max,h=o.length,p=o[0].indices.length,d,f=0;f<p;++f){d=u[f]*c,n.setItemLayout(o[0].indices[f],{layerIndex:0,x:s[0][f][0],y0:d,y:s[0][f][1]*c});for(var g=1;g<h;++g)d+=s[g-1][f][1]*c,n.setItemLayout(o[g].indices[f],{layerIndex:g,x:s[g][f][0],y0:d,y:s[g][f][1]*c})}}function Q6(n){for(var e=n.length,t=n[0].length,i=[],o=[],r=0,a=0;a<t;++a){for(var s=0,l=0;l<e;++l)s+=n[l][a][1];s>r&&(r=s),i.push(s)}for(var u=0;u<t;++u)o[u]=(r-i[u])/2;r=0;for(var c=0;c<t;++c){var h=i[c]+o[c];h>r&&(r=h)}return{y0:o,max:r}}function J6(n){n.registerChartView(j6),n.registerSeriesModel(K6),n.registerLayout($6),n.registerProcessor(al("themeRiver"))}var t8=2,e8=4,n8=function(n){R(e,n);function e(t,i,o,r){var a=n.call(this)||this;a.z2=t8,a.textConfig={inside:!0},st(a).seriesIndex=i.seriesIndex;var s=new Tt({z2:e8,silent:t.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,t,i,o,r),a}return e.prototype.updateData=function(t,i,o,r,a){this.node=i,i.piece=this,o=o||this._seriesModel,r=r||this._ecModel;var s=this;st(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),c=i.getLayout(),h=z({},c);h.label=null;var p=i.getVisual("style");p.lineJoin="bevel";var d=i.getVisual("decal");d&&(p.decal=ga(d,a));var f=fr(l.getModel("itemStyle"),h,!0);z(h,f),C(ke,function(m){var x=s.ensureState(m),_=l.getModel([m,"itemStyle"]);x.style=_.getItemStyle();var w=fr(_,h);w&&(x.shape=w)}),t?(s.setShape(h),s.shape.r=c.r0,Yt(s,{shape:{r:c.r}},o,i.dataIndex)):(Ct(s,{shape:h},o),An(s)),s.useStyle(p),this._updateLabel(o);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=o||this._seriesModel,this._ecModel=r||this._ecModel;var v=u.get("focus"),y=v==="ancestor"?i.getAncestorsIndices():v==="descendant"?i.getDescendantIndices():v;jt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,o=this.node.getModel(),r=o.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,p=h.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,g=r.get("show")&&!(f!=null&&Math.abs(s)<f);p.ignore=!g,C(hs,function(y){var m=y==="normal"?o.getModel("label"):o.getModel([y,"label"]),x=y==="normal",_=x?p:p.ensureState(y),w=t.getFormattedLabel(d,y);x&&(w=w||i.node.name),_.style=Rt(m,{},null,y!=="normal",!0),w&&(_.style.text=w);var b=m.get("show");b!=null&&!x&&(_.ignore=!b);var S=v(m,"position"),M=x?h:h.states[y],D=M.style.fill;M.textConfig={outsideFill:m.get("color")==="inherit"?D:null,inside:S!=="outside"};var T,I=v(m,"distance")||0,A=v(m,"align");S==="outside"?(T=a.r+I,A=l>Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&a.r0===0?T=0:T=(a.r+a.r0)/2,A="center"):A==="left"?(T=a.r0+I,l>Math.PI/2&&(A="right")):A==="right"&&(T=a.r-I,l>Math.PI/2&&(A="left")),_.style.align=A,_.style.verticalAlign=v(m,"verticalAlign")||"middle",_.x=T*u+a.cx,_.y=T*c+a.cy;var k=v(m,"rotate"),L=0;k==="radial"?(L=Tn(-l),L>Math.PI/2&&L<Math.PI*1.5&&(L+=Math.PI)):k==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Dt(k)&&(L=k*Math.PI/180),_.rotation=Tn(L)});function v(y,m){var x=y.get(m);return x??r.get(m)}p.dirtyStyle()},e}(Fe);const DD=n8;var iy="sunburstRootToNode",TD="sunburstHighlight",i8="sunburstUnhighlight";function o8(n){n.registerAction({type:iy,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(o,r){var a=fl(e,[iy],o);if(a){var s=o.getViewRoot();s&&(e.direction=ov(s,a.node)?"rollUp":"drillDown"),o.resetViewRoot(a.node)}}}),n.registerAction({type:TD,update:"none"},function(e,t,i){e=z({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},o);function o(r){var a=fl(e,[TD],r);a&&(e.dataIndex=a.node.dataIndex)}process.env.NODE_ENV!=="production"&&ee("sunburstHighlight","highlight"),i.dispatchAction(z(e,{type:"highlight"}))}),n.registerAction({type:i8,update:"updateView"},function(e,t,i){e=z({},e),process.env.NODE_ENV!=="production"&&ee("sunburstUnhighlight","downplay"),i.dispatchAction(z(e,{type:"downplay"}))})}var r8=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){var a=this;this.seriesModel=t,this.api=o,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),p=[];u.eachNode(function(m){p.push(m)});var d=this._oldChildren||[];f(p,d),y(l,u),this._initEvents(),this._oldChildren=p;function f(m,x){if(m.length===0&&x.length===0)return;new _i(x,m,_,_).add(w).update(w).remove(lt(w,null)).execute();function _(b){return b.getId()}function w(b,S){var M=b==null?null:m[b],D=S==null?null:x[S];g(M,D)}}function g(m,x){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&x!==l){if(x&&x.piece)m?(x.piece.updateData(!1,m,t,i,o),s.setItemGraphicEl(m.dataIndex,x.piece)):v(x);else if(m){var _=new DD(m,t,i,o);c.add(_),s.setItemGraphicEl(m.dataIndex,_)}}}function v(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,x){x.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,m,t,i,o):(a.virtualPiece=new DD(m,t,i,o),c.add(a.virtualPiece)),x.piece.off("click"),a.virtualPiece.on("click",function(_){a._rootToNode(x.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var o=!1,r=t.seriesModel.getViewRoot();r.eachNode(function(a){if(!o&&a.piece&&a.piece===i.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";ec(u,c)}}o=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:iy,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var o=i.getData(),r=o.getItemLayout(0);if(r){var a=t[0]-r.cx,s=t[1]-r.cy,l=Math.sqrt(a*a+s*s);return l<=r.r&&l>=r.r0}},e.type="sunburst",e}(zt);const a8=r8;var s8=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var o={name:t.name,children:t.data};CD(o);var r=this._levelModels=W(t.levels||[],function(l){return new Vt(l,this,i)},this),a=iv.createTree(o,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=a.getNodeByDataIndex(c),p=r[h.depth];return p&&(u.parentModel=p),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=rh(o,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){VI(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Ut);function CD(n){var e=0;C(n.children,function(i){CD(i);var o=i.value;G(o)&&(o=o[0]),e+=o});var t=n.value;G(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),G(n.value)?n.value[0]=t:n.value=t}const l8=s8;var AD=Math.PI/180;function u8(n,e,t){e.eachSeriesByType(n,function(i){var o=i.get("center"),r=i.get("radius");G(r)||(r=[0,r]),G(o)||(o=[o,o]);var a=t.getWidth(),s=t.getHeight(),l=Math.min(a,s),u=H(o[0],a),c=H(o[1],s),h=H(r[0],l/2),p=H(r[1],l/2),d=-i.get("startAngle")*AD,f=i.get("minAngle")*AD,g=i.getData().tree.root,v=i.getViewRoot(),y=v.depth,m=i.get("sort");m!=null&&kD(v,m);var x=0;C(v.children,function(E){!isNaN(E.getValue())&&x++});var _=v.getValue(),w=Math.PI/(_||x)*2,b=v.depth>0,S=v.height-(b?-1:1),M=(p-h)/(S||1),D=i.get("clockwise"),T=i.get("stillShowZeroSum"),I=D?1:-1,A=function(E,P){if(E){var O=P;if(E!==g){var V=E.getValue(),F=_===0&&T?w:V*w;F<f&&(F=f),O=P+I*F;var B=E.depth-y-(b?-1:1),Y=h+M*B,$=h+M*(B+1),j=i.getLevelModel(E);if(j){var ft=j.get("r0",!0),ut=j.get("r",!0),gt=j.get("radius",!0);gt!=null&&(ft=gt[0],ut=gt[1]),ft!=null&&(Y=H(ft,l/2)),ut!=null&&($=H(ut,l/2))}E.setLayout({angle:F,startAngle:P,endAngle:O,clockwise:D,cx:u,cy:c,r0:Y,r:$})}if(E.children&&E.children.length){var J=0;C(E.children,function(vt){J+=A(vt,P+J)})}return O-P}};if(b){var k=h,L=h+M,N=Math.PI*2;g.setLayout({angle:N,startAngle:d,endAngle:d+N,clockwise:D,cx:u,cy:c,r0:k,r:L})}A(v,d)})}function kD(n,e){var t=n.children||[];n.children=c8(t,e),t.length&&C(n.children,function(i){kD(i,e)})}function c8(n,e){if(Q(e)){var t=W(n,function(o,r){var a=o.getValue();return{params:{depth:o.depth,height:o.height,dataIndex:o.dataIndex,getValue:function(){return a}},index:r}});return t.sort(function(o,r){return e(o.params,r.params)}),W(t,function(o){return n[o.index]})}else{var i=e==="asc";return n.sort(function(o,r){var a=(o.getValue()-r.getValue())*(i?1:-1);return a===0?(o.dataIndex-r.dataIndex)*(i?-1:1):a})}}function h8(n){var e={};function t(i,o,r){for(var a=i;a&&a.depth>1;)a=a.parentNode;var s=o.getColorFromPalette(a.name||a.dataIndex+"",e);return i.depth>1&&X(s)&&(s=Cp(s,(i.depth-1)/(r-1)*.5)),s}n.eachSeriesByType("sunburst",function(i){var o=i.getData(),r=o.tree;r.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(a,i,r.root.height));var u=o.ensureUniqueItemVisual(a.dataIndex,"style");z(u,l)})})}function p8(n){n.registerChartView(a8),n.registerSeriesModel(l8),n.registerLayout(lt(u8,"sunburst")),n.registerProcessor(lt(al,"sunburst")),n.registerVisual(h8),o8(n)}var LD={color:"fill",borderColor:"stroke"},d8={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Di=Mt(),f8=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return bi(null,this)},e.prototype.getDataParams=function(t,i,o){var r=n.prototype.getDataParams.call(this,t,i);return o&&(r.info=Di(o).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ut);const g8=f8;function v8(n,e){return e=e||[0,0],W(["x","y"],function(t,i){var o=this.getAxis(t),r=e[i],a=n[i]/2;return o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))},this)}function y8(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Z(v8,n)}}}function m8(n,e){return e=e||[0,0],W([0,1],function(t){var i=e[t],o=n[t]/2,r=[],a=[];return r[t]=i-o,a[t]=i+o,r[1-t]=a[1-t]=e[1-t],Math.abs(this.dataToPoint(r)[t]-this.dataToPoint(a)[t])},this)}function x8(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:Z(m8,n)}}}function _8(n,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,o=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-o)-t.dataToCoord(i+o))}function b8(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Z(_8,n)}}}function w8(n,e){return e=e||[0,0],W(["Radius","Angle"],function(t,i){var o="get"+t+"Axis",r=this[o](),a=e[i],s=n[i]/2,l=r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(a-s)-r.dataToCoord(a+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function S8(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:i[1],r0:i[0]},api:{coord:function(o){var r=e.dataToRadius(o[0]),a=t.dataToAngle(o[1]),s=n.coordToPoint([r,a]);return s.push(r,a*Math.PI/180),s},size:Z(w8,n)}}}function M8(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,o){return n.dataToPoint(i,o)}}}}var ND={};function ED(n,e,t,i){return n&&(n.legacy||n.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||U(n,"text")))}function OD(n,e,t){var i=n,o,r,a;if(e==="text")a=i;else{a={},U(i,"text")&&(a.text=i.text),U(i,"rich")&&(a.rich=i.rich),U(i,"textFill")&&(a.fill=i.textFill),U(i,"textStroke")&&(a.stroke=i.textStroke),U(i,"fontFamily")&&(a.fontFamily=i.fontFamily),U(i,"fontSize")&&(a.fontSize=i.fontSize),U(i,"fontStyle")&&(a.fontStyle=i.fontStyle),U(i,"fontWeight")&&(a.fontWeight=i.fontWeight),r={type:"text",style:a,silent:!0},o={};var s=U(i,"textPosition");t?o.position=s?i.textPosition:"inside":s&&(o.position=i.textPosition),U(i,"textPosition")&&(o.position=i.textPosition),U(i,"textOffset")&&(o.offset=i.textOffset),U(i,"textRotation")&&(o.rotation=i.textRotation),U(i,"textDistance")&&(o.distance=i.textDistance)}return PD(a,n),C(a.rich,function(l){PD(l,l)}),{textConfig:o,textContent:r}}function PD(n,e){e&&(e.font=e.textFont||e.font,U(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),U(e,"textAlign")&&(n.align=e.textAlign),U(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),U(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),U(e,"textWidth")&&(n.width=e.textWidth),U(e,"textHeight")&&(n.height=e.textHeight),U(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),U(e,"textPadding")&&(n.padding=e.textPadding),U(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),U(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),U(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),U(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),U(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),U(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),U(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function RD(n,e,t){var i=n;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var o=i.textPosition.indexOf("inside")>=0,r=n.fill||"#000";VD(i,e);var a=i.textFill==null;return o?a&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=r),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=n.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,C(e.rich,function(s){VD(s,s)}),i}function VD(n,e){e&&(U(e,"fill")&&(n.textFill=e.fill),U(e,"stroke")&&(n.textStroke=e.fill),U(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),U(e,"font")&&(n.font=e.font),U(e,"fontStyle")&&(n.fontStyle=e.fontStyle),U(e,"fontWeight")&&(n.fontWeight=e.fontWeight),U(e,"fontSize")&&(n.fontSize=e.fontSize),U(e,"fontFamily")&&(n.fontFamily=e.fontFamily),U(e,"align")&&(n.textAlign=e.align),U(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),U(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),U(e,"width")&&(n.textWidth=e.width),U(e,"height")&&(n.textHeight=e.height),U(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),U(e,"padding")&&(n.textPadding=e.padding),U(e,"borderColor")&&(n.textBorderColor=e.borderColor),U(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),U(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),U(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),U(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),U(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),U(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),U(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),U(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),U(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),U(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}function zD(n,e){if(process.env.NODE_ENV!=="production"){var t=n+"^_^"+e;ND[t]||(console.warn('[ECharts] DEPRECATED: "'+n+'" has been deprecated. '+e),ND[t]=!0)}}var BD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},FD=_t(BD),mh=Vn(Fn,function(n,e){return n[e]=1,n},{}),GD=Fn.join(", "),xh=["","style","shape","extra"],La=Mt();function oy(n,e,t,i,o){var r=n+"Animation",a=jr(n,i,o)||{},s=La(e).userDuring;return a.duration>0&&(a.during=s?Z(A8,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=n),z(a,t[r]),a}function _h(n,e,t,i){i=i||{};var o=i.dataIndex,r=i.isInit,a=i.clearStyle,s=t.isAnimationEnabled(),l=La(n),u=e.style;l.userDuring=e.during;var c={},h={};if(L8(n,e,h),YD("shape",e,h),YD("extra",e,h),!r&&s&&(k8(n,e,c),HD("shape",n,e,c),HD("extra",n,e,c),N8(n,e,u,c)),h.style=u,I8(n,h,a),T8(n,e),s)if(r){var p={};C(xh,function(f){var g=f?e[f]:e;g&&g.enterFrom&&(f&&(p[f]=p[f]||{}),z(f?p[f]:p,g.enterFrom))});var d=oy("enter",n,e,t,o);d.duration>0&&n.animateFrom(p,d)}else D8(n,e,o||0,t,c);WD(n,e),u?n.dirty():n.markRedraw()}function WD(n,e){for(var t=La(n).leaveToProps,i=0;i<xh.length;i++){var o=xh[i],r=o?e[o]:e;r&&r.leaveTo&&(t||(t=La(n).leaveToProps={}),o&&(t[o]=t[o]||{}),z(o?t[o]:t,r.leaveTo))}}function bh(n,e,t,i){if(n){var o=n.parent,r=La(n).leaveToProps;if(r){var a=oy("update",n,e,t,0);a.done=function(){o.remove(n),i&&i()},n.animateTo(r,a)}else o.remove(n),i&&i()}}function Ir(n){return n==="all"}function I8(n,e,t){var i=e.style;if(!n.isGroup&&i){if(t){n.useStyle({});for(var o=n.animators,r=0;r<o.length;r++){var a=o[r];a.targetName==="style"&&a.changeTarget(n.style)}}n.setStyle(i)}e&&(e.style=null,e&&n.attr(e),e.style=i)}function D8(n,e,t,i,o){if(o){var r=oy("update",n,e,i,t);r.duration>0&&n.animateFrom(o,r)}}function T8(n,e){U(e,"silent")&&(n.silent=e.silent),U(e,"ignore")&&(n.ignore=e.ignore),n instanceof an&&U(e,"invisible")&&(n.invisible=e.invisible),n instanceof xt&&U(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ii={},C8={setTransform:function(n,e){return process.env.NODE_ENV!=="production"&&et(U(mh,n),"Only "+GD+" available in `setTransform`."),ii.el[n]=e,this},getTransform:function(n){return process.env.NODE_ENV!=="production"&&et(U(mh,n),"Only "+GD+" available in `getTransform`."),ii.el[n]},setShape:function(n,e){process.env.NODE_ENV!=="production"&&Na(n);var t=ii.el,i=t.shape||(t.shape={});return i[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){process.env.NODE_ENV!=="production"&&Na(n);var e=ii.el.shape;if(e)return e[n]},setStyle:function(n,e){process.env.NODE_ENV!=="production"&&Na(n);var t=ii.el,i=t.style;return i&&(process.env.NODE_ENV!=="production"&&go(e)&&Zt("style."+n+" must not be assigned with NaN."),i[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){process.env.NODE_ENV!=="production"&&Na(n);var e=ii.el.style;if(e)return e[n]},setExtra:function(n,e){process.env.NODE_ENV!=="production"&&Na(n);var t=ii.el.extra||(ii.el.extra={});return t[n]=e,this},getExtra:function(n){process.env.NODE_ENV!=="production"&&Na(n);var e=ii.el.extra;if(e)return e[n]}};function Na(n){if(process.env.NODE_ENV!=="production"&&(n==="transition"||n==="enterFrom"||n==="leaveTo"))throw new Error('key must not be "'+n+'"')}function A8(){var n=this,e=n.el;if(e){var t=La(e).userDuring,i=n.userDuring;if(t!==i){n.el=n.userDuring=null;return}ii.el=e,i(C8)}}function HD(n,e,t,i){var o=t[n];if(o){var r=e[n],a;if(r){var s=t.transition,l=o.transition;if(l)if(!a&&(a=i[n]={}),Ir(l))z(a,r);else for(var u=Nt(l),c=0;c<u.length;c++){var h=u[c],p=r[h];a[h]=p}else if(Ir(s)||yt(s,n)>=0){!a&&(a=i[n]={});for(var d=_t(r),c=0;c<d.length;c++){var h=d[c],p=r[h];E8(o[h],p)&&(a[h]=p)}}}}}function YD(n,e,t){var i=e[n];if(i)for(var o=t[n]={},r=_t(i),a=0;a<r.length;a++){var s=r[a];o[s]=Qa(i[s])}}function k8(n,e,t){for(var i=e.transition,o=Ir(i)?Fn:Nt(i||[]),r=0;r<o.length;r++){var a=o[r];if(!(a==="style"||a==="shape"||a==="extra")){var s=n[a];process.env.NODE_ENV!=="production"&&XD(a,"el.transition"),t[a]=s}}}function L8(n,e,t){for(var i=0;i<FD.length;i++){var o=FD[i],r=BD[o],a=e[o];a&&(t[r[0]]=a[0],t[r[1]]=a[1])}for(var i=0;i<Fn.length;i++){var s=Fn[i];e[s]!=null&&(t[s]=e[s])}}function N8(n,e,t,i){if(t){var o=n.style,r;if(o){var a=t.transition,s=e.transition;if(a&&!Ir(a)){var l=Nt(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];r[c]=h}}else if(n.getAnimationStyleProps&&(Ir(s)||Ir(a)||yt(s,"style")>=0)){var p=n.getAnimationStyleProps(),d=p?p.style:null;if(d){!r&&(r=i.style={});for(var f=_t(t),u=0;u<f.length;u++){var c=f[u];if(d[c]){var h=o[c];r[c]=h}}}}}}}function E8(n,e){return be(n)?n!==e:n!=null&&isFinite(n)}var XD;process.env.NODE_ENV!=="production"&&(XD=function(n,e){U(mh,n)||Zt("Prop `"+n+"` is not a permitted in `"+e+"`. Only `"+_t(mh).join("`, `")+"` are permitted.")});var UD=Mt(),O8=["percent","easing","shape","style","extra"];function ZD(n){n.stopAnimation("keyframe"),n.attr(UD(n))}function wh(n,e,t){if(!(!t.isAnimationEnabled()||!e)){if(G(e)){C(e,function(s){wh(n,s,t)});return}var i=e.keyframes,o=e.duration;if(t&&o==null){var r=jr("enter",t,0);o=r&&r.duration}if(!(!i||!o)){var a=UD(n);C(xh,function(s){if(!(s&&!n[s])){var l,u=!1;i.sort(function(c,h){return c.percent-h.percent}),C(i,function(c){var h=n.animators,p=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!p){var d=_t(p);if(s||(d=Lt(d,function(v){return yt(O8,v)<0})),!!d.length){l||(l=n.animate(s,e.loop,!0),l.scope="keyframe");for(var f=0;f<h.length;f++)h[f]!==l&&h[f].targetName===l.targetName&&h[f].stopTracks(d);s&&(a[s]=a[s]||{});var g=s?a[s]:a;C(d,function(v){g[v]=((s?n[s]:n)||{})[v]}),l.whenWithKeys(o*c.percent,p,d,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Zt("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(o).start(e.easing))}})}}}var Ti="emphasis",so="normal",ry="blur",ay="select",lo=[so,Ti,ry,ay],sy={normal:["itemStyle"],emphasis:[Ti,"itemStyle"],blur:[ry,"itemStyle"],select:[ay,"itemStyle"]},ly={normal:["label"],emphasis:[Ti,"label"],blur:[ry,"label"],select:[ay,"label"]},P8=["x","y"],R8="e\0\0",mn={normal:{},emphasis:{},blur:{},select:{}},jD={cartesian2d:y8,geo:x8,single:b8,polar:S8,calendar:M8};function Sh(n){return n instanceof xt}function uy(n){return n instanceof an}function V8(n,e){e.copyTransform(n),uy(e)&&uy(n)&&(e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e.invisible=n.invisible,e.ignore=n.ignore,Sh(e)&&Sh(n)&&e.setShape(n.shape))}var z8=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this._progressiveEls=null;var a=this._data,s=t.getData(),l=this.group,u=KD(t,s,i,o);a||l.removeAll(),s.diff(a).add(function(h){py(o,null,h,u(h,r),t,l,s)}).remove(function(h){var p=a.getItemGraphicEl(h);p&&bh(p,Di(p).option,t)}).update(function(h,p){var d=a.getItemGraphicEl(p);py(o,d,h,u(h,r),t,l,s)}).execute();var c=t.get("clip",!0)?Xc(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,i,o){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,o,r,a){var s=i.getData(),l=KD(i,s,o,r),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var p=py(null,null,h,l(h,a),i,this.group,s);p&&(p.traverse(c),u.push(p))}},e.prototype.eachRendered=function(t){Xi(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,o,r){var a=i.element;if(a==null||o.name===a)return!0;for(;(o=o.__hostTarget||o.parent)&&o!==this.group;)if(o.name===a)return!0;return!1},e.type="custom",e}(zt);const B8=z8;function cy(n){var e=n.type,t;if(e==="path"){var i=n.shape,o=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=eT(i);t=Wu(r,null,o,i.layout||"center"),Di(t).customPathData=r}else if(e==="image")t=new ge({}),Di(t).customImagePath=n.style.image;else if(e==="text")t=new Tt({});else if(e==="group")t=new ot;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=Wd(e);if(!a){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),At(s)}t=new a}return Di(t).customGraphicType=e,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function hy(n,e,t,i,o,r,a){ZD(e);var s=o&&o.normal.cfg;s&&e.setTextConfig(s),i&&i.transition==null&&(i.transition=P8);var l=i&&i.style;if(l){if(e.type==="text"){var u=l;U(u,"textFill")&&(u.fill=u.textFill),U(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Sh(e)?l.decal:null;n&&h&&(h.dirty=!0,c=ga(h,n)),l.__decalPattern=c}if(uy(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}_h(e,i,r,{dataIndex:t,isInit:a,clearStyle:!0}),wh(e,i.keyframeAnimation,r)}function qD(n,e,t,i,o){var r=e.isGroup?null:e,a=o&&o[n].cfg;if(r){var s=r.ensureState(n);if(i===!1){var l=r.getState(n);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Fo(r)}}function F8(n,e,t){if(!n.isGroup){var i=n,o=t.currentZ,r=t.currentZLevel;i.z=o,i.zlevel=r;var a=e.z2;a!=null&&(i.z2=a||0);for(var s=0;s<lo.length;s++)G8(i,e,lo[s])}}function G8(n,e,t){var i=t===so,o=i?e:Mh(e,t),r=o?o.z2:null,a;r!=null&&(a=i?n:n.ensureState(t),a.z2=r||0)}function KD(n,e,t,i){var o=n.get("renderItem"),r=n.coordinateSystem,a={};r&&(process.env.NODE_ENV!=="production"&&(et(o,"series.render is required."),et(r.prepareCustoms||jD[r.type],"This coordSys does not support custom series.")),a=r.prepareCustoms?r.prepareCustoms(r):jD[r.type](r));for(var s=nt({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:b,ordinalRawValue:w,styleEmphasis:S,visual:T,barLayout:I,currentSeriesIndices:A,font:k},a.api||{}),l={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:W8(n.getData())},u,c,h={},p={},d={},f={},g=0;g<lo.length;g++){var v=lo[g];d[v]=n.getModel(sy[v]),f[v]=n.getModel(ly[v])}function y(L){return L===u?c||(c=e.getItemModel(L)):e.getItemModel(L)}function m(L,N){return e.hasItemOption?L===u?h[N]||(h[N]=y(L).getModel(sy[N])):y(L).getModel(sy[N]):d[N]}function x(L,N){return e.hasItemOption?L===u?p[N]||(p[N]=y(L).getModel(ly[N])):y(L).getModel(ly[N]):f[N]}return function(L,N){return u=L,c=null,h={},p={},o&&o(nt({dataIndexInside:L,dataIndex:e.getRawIndex(L),actionType:N?N.type:null},l),s)};function _(L,N){return N==null&&(N=u),e.getStore().get(e.getDimensionIndex(L||0),N)}function w(L,N){N==null&&(N=u),L=L||0;var E=e.getDimensionInfo(L);if(!E){var P=e.getDimensionIndex(L);return P>=0?e.getStore().get(P,N):void 0}var O=e.get(E.name,N),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function b(L,N){process.env.NODE_ENV!=="production"&&zD("api.style","Please write literal style directly instead."),N==null&&(N=u);var E=e.getItemVisual(N,"style"),P=E&&E.fill,O=E&&E.opacity,V=m(N,so).getItemStyle();P!=null&&(V.fill=P),O!=null&&(V.opacity=O);var F={inheritColor:X(P)?P:"#000"},B=x(N,so),Y=Rt(B,null,F,!1,!0);Y.text=B.getShallow("show")?ct(n.getFormattedLabel(N,so),ba(e,N)):null;var $=Uu(B,F,!1);return D(L,V),V=RD(V,Y,$),L&&M(V,L),V.legacy=!0,V}function S(L,N){process.env.NODE_ENV!=="production"&&zD("api.styleEmphasis","Please write literal style directly instead."),N==null&&(N=u);var E=m(N,Ti).getItemStyle(),P=x(N,Ti),O=Rt(P,null,null,!0,!0);O.text=P.getShallow("show")?Qe(n.getFormattedLabel(N,Ti),n.getFormattedLabel(N,so),ba(e,N)):null;var V=Uu(P,null,!0);return D(L,E),E=RD(E,O,V),L&&M(E,L),E.legacy=!0,E}function M(L,N){for(var E in N)U(N,E)&&(L[E]=N[E])}function D(L,N){L&&(L.textFill&&(N.textFill=L.textFill),L.textPosition&&(N.textPosition=L.textPosition))}function T(L,N){if(N==null&&(N=u),U(LD,L)){var E=e.getItemVisual(N,"style");return E?E[LD[L]]:null}if(U(d8,L))return e.getItemVisual(N,L)}function I(L){if(r.type==="cartesian2d"){var N=r.getBaseAxis();return XV(nt({axis:N},L))}}function A(){return t.getCurrentSeriesIndices()}function k(L){return Ex(L,t)}}function W8(n){var e={};return C(n.dimensions,function(t){var i=n.getDimensionInfo(t);if(!i.isExtraCoord){var o=i.coordDim,r=e[o]=e[o]||[];r[i.coordDimIndex]=n.getDimensionIndex(t)}}),e}function py(n,e,t,i,o,r,a){if(!i){r.remove(e);return}var s=dy(n,e,t,i,o,r);return s&&a.setItemGraphicEl(t,s),s&&jt(s,i.focus,i.blurScope,i.emphasisDisabled),s}function dy(n,e,t,i,o,r){process.env.NODE_ENV!=="production"&&et(i,"should not have an null/undefined element setting");var a=-1,s=e;e&&$D(e,i,o)&&(a=yt(r.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=cy(i),s&&V8(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),mn.normal.cfg=mn.normal.conOpt=mn.emphasis.cfg=mn.emphasis.conOpt=mn.blur.cfg=mn.blur.conOpt=mn.select.cfg=mn.select.conOpt=null,mn.isLegacy=!1,Y8(u,t,i,o,l,mn),H8(u,t,i,o,l),hy(n,u,t,i,mn,o,l),U(i,"info")&&(Di(u).info=i.info);for(var c=0;c<lo.length;c++){var h=lo[c];if(h!==so){var p=Mh(i,h),d=fy(i,p,h);qD(h,u,p,d,mn)}}return F8(u,i,o),i.type==="group"&&X8(n,u,t,i,o),a>=0?r.replaceAt(u,a):r.add(u),u}function $D(n,e,t){var i=Di(n),o=e.type,r=e.shape,a=e.style;return t.isUniversalTransitionEnabled()||o!=null&&o!==i.customGraphicType||o==="path"&&q8(r)&&eT(r)!==i.customPathData||o==="image"&&U(a,"image")&&a.image!==i.customImagePath}function H8(n,e,t,i,o){var r=t.clipPath;if(r===!1)n&&n.getClipPath()&&n.removeClipPath();else if(r){var a=n.getClipPath();a&&$D(a,r,i)&&(a=null),a||(a=cy(r),process.env.NODE_ENV!=="production"&&et(Sh(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),n.setClipPath(a)),hy(null,a,e,r,null,i,o)}}function Y8(n,e,t,i,o,r){if(!n.isGroup){QD(t,null,r),QD(t,Ti,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,u=r.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(a===!1)c&&n.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=cy(a),n.setTextContent(c)),hy(null,c,e,a,null,i,o);for(var h=a&&a.style,p=0;p<lo.length;p++){var d=lo[p];if(d!==so){var f=r[d].conOpt;qD(d,c,f,fy(a,f,d),null)}}h?c.dirty():c.markRedraw()}}}}function QD(n,e,t){var i=e?Mh(n,e):n,o=e?fy(n,i,Ti):n.style,r=n.type,a=i?i.textConfig:null,s=n.textContent,l=s?e?Mh(s,e):s:null;if(o&&(t.isLegacy||ED(o,r,!!a,!!l))){t.isLegacy=!0;var u=OD(o,r,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&et(c.type==="text",'textContent.type must be "text"')}var h=e?t[e]:t.normal;h.cfg=a,h.conOpt=l}function Mh(n,e){return e?n?n[e]:null:n}function fy(n,e,t){var i=e&&e.style;return i==null&&t===Ti&&n&&(i=n.styleEmphasis),i}function X8(n,e,t,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!(!a&&!l&&!u)){if(l){Z8({api:n,oldChildren:e.children()||[],newChildren:r||[],dataIndex:t,seriesModel:o,group:e});return}u&&e.removeAll();for(var c=0;c<a;c++){var h=r[c],p=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),dy(n,p,t,h,o,e)):(process.env.NODE_ENV!=="production"&&et(p,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),p.ignore=!0)}for(var d=e.childCount()-1;d>=c;d--){var f=e.childAt(d);U8(e,f,o)}}}function U8(n,e,t){e&&bh(e,Di(n).option,t)}function Z8(n){new _i(n.oldChildren,n.newChildren,JD,JD,n).add(tT).update(tT).remove(j8).execute()}function JD(n,e){var t=n&&n.name;return t??R8+e}function tT(n,e){var t=this.context,i=n!=null?t.newChildren[n]:null,o=e!=null?t.oldChildren[e]:null;dy(t.api,o,t.dataIndex,i,t.seriesModel,t.group)}function j8(n){var e=this.context,t=e.oldChildren[n];t&&bh(t,Di(t).option,e.seriesModel)}function eT(n){return n&&(n.pathData||n.d)}function q8(n){return n&&(U(n,"pathData")||U(n,"d"))}function K8(n){n.registerChartView(B8),n.registerSeriesModel(g8)}var Dr=Mt(),nT=it,gy=Z,$8=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,i,o){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!o&&this._lastValue===r&&this._lastStatus===a)){this._lastValue=r,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,r,e,t,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ot,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var p=lt(iT,t,h);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}aT(s,t,!0),this._renderHandle(r)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var i=t.get("animation"),o=e.axis,r=o.type==="category",a=t.get("snap");if(!a&&!r)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(r&&o.getBandWidth()>s)return!0;if(a){var l=Fg(e).seriesDataCount,u=o.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(e,t,i,o,r){},n.prototype.createPointerEl=function(e,t,i,o){var r=t.pointer;if(r){var a=Dr(e).pointerEl=new ws[r.type](nT(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,i,o){if(t.label){var r=Dr(e).labelEl=new Tt(nT(t.label));e.add(r),rT(r,o)}},n.prototype.updatePointerEl=function(e,t,i){var o=Dr(e).pointerEl;o&&t.pointer&&(o.setStyle(t.pointer.style),i(o,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,i,o){var r=Dr(e).labelEl;r&&(r.setStyle(t.label.style),i(r,{x:t.label.x,y:t.label.y}),rT(r,o))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=t.getModel("handle"),a=t.get("status");if(!r.get("show")||!a||a==="hide"){o&&i.remove(o),this._handle=null;return}var s;this._handle||(s=!0,o=this._handle=_s(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){si(u.event)},onmousedown:gy(this._onHandleDragMove,this,0,0),drift:gy(this._onHandleDragMove,this),ondragend:gy(this._onHandleDragEnd,this)}),i.add(o)),aT(o,t,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");G(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,ha(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){iT(this._axisPointerModel,!t&&this._moveAnimation,this._handle,vy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var o=this.updateHandleTransform(vy(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=o,i.stopAnimation(),i.attr(vy(o)),Dr(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,o=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),o&&t.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),Ps(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},n}();function iT(n,e,t,i){oT(Dr(t).lastProp,i)||(Dr(t).lastProp=i,e?Ct(t,i,n):(t.stopAnimation(),t.attr(i)))}function oT(n,e){if(tt(n)&&tt(e)){var t=!0;return C(e,function(i,o){t=t&&oT(n[o],i)}),!!t}else return n===e}function rT(n,e){n[e.get(["label","show"])?"show":"hide"]()}function vy(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function aT(n,e,t){var i=e.get("z"),o=e.get("zlevel");n&&n.traverse(function(r){r.type!=="group"&&(i!=null&&(r.z=i),o!=null&&(r.zlevel=o),r.silent=t)})}const yy=$8;function my(n){var e=n.get("type"),t=n.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function sT(n,e,t,i,o){var r=t.get("value"),a=lT(r,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=na(s.get("padding")||0),u=s.getFont(),c=es(a,u),h=o.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],f=o.align;f==="right"&&(h[0]-=p),f==="center"&&(h[0]-=p/2);var g=o.verticalAlign;g==="bottom"&&(h[1]-=d),g==="middle"&&(h[1]-=d/2),Q8(h,p,d,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=e.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:Rt(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function Q8(n,e,t,i){var o=i.getWidth(),r=i.getHeight();n[0]=Math.min(n[0]+e,o)-e,n[1]=Math.min(n[1]+t,r)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function lT(n,e,t,i,o){n=e.scale.parse(n);var r=e.scale.getLabel({value:n},{precision:o.precision}),a=o.formatter;if(a){var s={value:lg(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),X(a)?r=a.replace("{value}",r):Q(a)&&(r=a(s))}return r}function xy(n,e,t){var i=en();return xo(i,i,t.rotation),zn(i,i,t.position),Ln([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function uT(n,e,t,i,o,r){var a=Si.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=o.get(["label","margin"]),sT(e,i,o,r,{position:xy(i.axis,n,t),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function _y(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function cT(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function hT(n,e,t,i,o,r){return{cx:n,cy:e,r0:t,r:i,startAngle:o,endAngle:r,clockwise:!0}}var J8=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.grid,u=r.get("type"),c=pT(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=my(r),d=t7[u](s,h,c);d.style=p,t.graphicKey=d.type,t.pointer=d}var f=Rg(l.model,o);uT(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=Rg(i.axis.grid.model,i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=xy(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.grid,l=a.getGlobalExtent(!0),u=pT(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[t.x,t.y];h[c]+=i[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=h[c];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:f[c]}},e}(yy);function pT(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var t7={line:function(n,e,t){var i=_y([e,t[0]],[e,t[1]],dT(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=Math.max(1,n.getBandWidth()),o=t[1]-t[0];return{type:"Rect",shape:cT([e-i/2,t[0]],[i,o],dT(n))}}};function dT(n){return n.dim==="x"?0:1}const e7=J8;var n7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(wt);const i7=n7;var Ci=Mt(),o7=C;function fT(n,e,t){if(!St.node){var i=e.getZr();Ci(i).records||(Ci(i).records={}),r7(i,e);var o=Ci(i).records[n]||(Ci(i).records[n]={});o.handler=t}}function r7(n,e){if(Ci(n).initialized)return;Ci(n).initialized=!0,t("click",lt(gT,"click")),t("mousemove",lt(gT,"mousemove")),t("globalout",s7);function t(i,o){n.on(i,function(r){var a=l7(e);o7(Ci(n).records,function(s){s&&o(s,r,a.dispatchAction)}),a7(a.pendings,e)})}}function a7(n,e){var t=n.showTip.length,i=n.hideTip.length,o;t?o=n.showTip[t-1]:i&&(o=n.hideTip[i-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}function s7(n,e,t){n.handler("leave",null,t)}function gT(n,e,t,i){e.handler(n,t,i)}function l7(n){var e={showTip:[],hideTip:[]},t=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=t,n.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function by(n,e){if(!St.node){var t=e.getZr(),i=(Ci(t).records||{})[n];i&&(Ci(t).records[n]=null)}}var u7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=i.getComponent("tooltip"),a=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";fT("axisPointer",o,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})})},e.prototype.remove=function(t,i){by("axisPointer",i)},e.prototype.dispose=function(t,i){by("axisPointer",i)},e.type="axisPointer",e}(qt);const c7=u7;function vT(n,e){var t=[],i=n.seriesIndex,o;if(i==null||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),a=Co(r,n);if(a==null||a<0||G(a))return{point:[]};var s=r.getItemGraphicEl(a),l=o.coordinateSystem;if(o.getTooltipPosition)t=o.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,p=u.dim,d=h==="x"||h==="radius"?1:0,f=r.mapDimension(p),g=[];g[d]=r.get(f,a),g[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(r.getValues(W(l.dimensions,function(y){return r.mapDimension(y)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),t=[v.x+v.width/2,v.y+v.height/2]}return{point:t,el:s}}var yT=Mt();function h7(n,e,t){var i=n.currTrigger,o=[n.x,n.y],r=n,a=n.dispatchAction||Z(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ih(o)&&(o=vT({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=Ih(o),u=r.axesInfo,c=s.axesInfo,h=i==="leave"||Ih(o),p={},d={},f={list:[],map:{}},g={showPointer:lt(d7,d),showTooltip:lt(f7,f)};C(s.coordSysMap,function(y,m){var x=l||y.containPoint(o);C(s.coordSysAxesInfo[m],function(_,w){var b=_.axis,S=m7(u,_);if(!h&&x&&(!u||S)){var M=S&&S.value;M==null&&!l&&(M=b.pointToData(o)),M!=null&&mT(_,M,g,!1,p)}})});var v={};return C(c,function(y,m){var x=y.linkGroup;x&&!d[m]&&C(x.axesInfo,function(_,w){var b=d[w];if(_!==y&&b){var S=b.value;x.mapper&&(S=y.axis.scale.parse(x.mapper(S,xT(_),xT(y)))),v[y.key]=S}})}),C(v,function(y,m){mT(c[m],y,g,!0,p)}),g7(d,c,p),v7(f,o,n,a),y7(c,a,t),p}}function mT(n,e,t,i,o){var r=n.axis;if(!(r.scale.isBlank()||!r.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var a=p7(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&o.seriesIndex==null&&z(o,s[0]),!i&&n.snap&&r.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function p7(n,e){var t=e.axis,i=t.dim,o=n,r=[],a=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(i),h,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,n,t);p=d.dataIndices,h=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!p.length)return;h=l.getData().get(c[0],p[0])}if(!(h==null||!isFinite(h))){var f=n-h,g=Math.abs(f);g<=a&&((g<a||f>=0&&s<0)&&(a=g,s=f,o=h,r.length=0),C(p,function(v){r.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:r,snapToValue:o}}function d7(n,e,t,i){n[e.key]={value:t,payloadBatch:i}}function f7(n,e,t,i){var o=t.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!o.length)){var l=e.coordSys.model,u=ll(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function g7(n,e,t){var i=t.axesInfo=[];C(e,function(o,r){var a=o.axisPointerModel.option,s=n[r];s?(!o.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!o.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:a.value})})}function v7(n,e,t,i){if(Ih(e)||!n.list.length){i({type:"hideTip"});return}var o=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:n.list})}function y7(n,e,t){var i=t.getZr(),o="axisPointerLastHighlights",r=yT(i)[o]||{},a=yT(i)[o]={};C(n,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];C(r,function(u,c){!a[c]&&l.push(u)}),C(a,function(u,c){!r[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function m7(n,e){for(var t=0;t<(n||[]).length;t++){var i=n[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function xT(n){var e=n.axis.model,t={},i=t.axisDim=n.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Ih(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Dl(n){vr.registerAxisPointerClass("CartesianAxisPointer",e7),n.registerComponentModel(i7),n.registerComponentView(c7),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!G(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=a3(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},h7)}function x7(n){mt(YM),mt(Dl)}var _7=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(i),p=r.get("type");if(p&&p!=="none"){var d=my(r),f=w7[p](s,l,h,c);f.style=d,t.graphicKey=f.type,t.pointer=f}var g=r.get(["label","margin"]),v=b7(i,o,r,l,g);sT(t,o,r,a,v)},e}(yy);function b7(n,e,t,i,o){var r=e.axis,a=r.dataToCoord(n),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,c,h;if(r.dim==="radius"){var p=en();xo(p,p,s),zn(p,p,[i.cx,i.cy]),u=Ln([a,-o],p);var d=e.getModel("axisLabel").get("rotate")||0,f=Si.innerTextLayout(s,d*Math.PI/180,-1);c=f.textAlign,h=f.textVerticalAlign}else{var g=l[1];u=i.coordToPoint([g+o,a]);var v=i.cx,y=i.cy;c=Math.abs(u[0]-v)/g<.3?"center":u[0]>v?"left":"right",h=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var w7={line:function(n,e,t,i){return n.dim==="angle"?{type:"Line",shape:_y(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,i){var o=Math.max(1,n.getBandWidth()),r=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:hT(e.cx,e.cy,i[0],i[1],(-t-o/2)*r,(-t+o/2)*r)}:{type:"Sector",shape:hT(e.cx,e.cy,t-o/2,t+o/2,0,Math.PI*2)}}};const S7=_7;var M7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,o=this.ecModel;return o.eachComponent(t,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(wt);const I7=M7;var wy=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ne).models[0]},e.type="polarAxis",e}(wt);Jt(wy,Ks);var D7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(wy),T7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(wy),Sy=function(n){R(e,n);function e(t,i){return n.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(On);Sy.prototype.dataToRadius=On.prototype.dataToCoord,Sy.prototype.radiusToData=On.prototype.coordToData;const C7=Sy;var A7=Mt(),My=function(n){R(e,n);function e(t,i){return n.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),o=t.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=r[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=es(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(c.height,7),p=h/u;isNaN(p)&&(p=1/0);var d=Math.max(0,Math.floor(p)),f=A7(t.model),g=f.lastAutoInterval,v=f.lastTickCount;return g!=null&&v!=null&&Math.abs(g-d)<=1&&Math.abs(v-a)<=1&&g>d?d=g:(f.lastTickCount=a,f.lastAutoInterval=d),d},e}(On);My.prototype.dataToAngle=On.prototype.dataToCoord,My.prototype.angleToData=On.prototype.coordToData;const k7=My;var _T=["radius","angle"],L7=function(){function n(e){this.dimensions=_T,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new C7,this._angleAxis=new k7,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,o=this._radiusAxis;return i.scale.type===e&&t.push(i),o.scale.type===e&&t.push(o),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=this.getAngleAxis(),r=o.getExtent(),a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);o.inverse?a=s-360:s=a+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,c=u<a?1:-1;u<a||u>s;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,o=Math.cos(i)*t+this.cx,r=-Math.sin(i)*t+this.cy;return[o,r]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var o=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-o[0]*r,endAngle:-o[1]*r,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,h=this.r,p=this.r0;return c<=h*h&&c>=p*p}}},n.prototype.convertToPixel=function(e,t,i){var o=bT(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=bT(t);return o===this?this.pointToData(i):null},n}();function bT(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const N7=L7;function E7(n,e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight();n.cx=H(i[0],o),n.cy=H(i[1],r);var a=n.getRadiusAxis(),s=Math.min(o,r)/2,l=e.get("radius");l==null?l=[0,"100%"]:G(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function O7(n,e){var t=this,i=t.getAngleAxis(),o=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Vc(l,"radius"),function(u){o.scale.unionExtentFromData(l,u)}),C(Vc(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),xa(i.scale,i.model),xa(o.scale,o.model),i.type==="category"&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function P7(n){return n.mainType==="angleAxis"}function wT(n,e){if(n.type=e.get("type"),n.scale=Rc(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),P7(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var R7={dimensions:_T,create:function(n,e){var t=[];return n.eachComponent("polar",function(i,o){var r=new N7(o+"");r.update=O7;var a=r.getRadiusAxis(),s=r.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");wT(a,l),wT(s,u),E7(r,i,e),t.push(r),i.coordinateSystem=r,r.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var o=i.getReferringComponents("polar",ne).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error('Polar "'+te(i.get("polarIndex"),i.get("polarId"),0)+'" not found');i.coordinateSystem=o.coordinateSystem}}),t}};const V7=R7;var z7=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Dh(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=n.coordToPoint([e[0],t]),o=n.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function Th(n){var e=n.getRadiusAxis();return e.inverse?0:1}function ST(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var B7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=t.axis,r=o.polar,a=r.getRadiusAxis().getExtent(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=W(o.getViewLabels(),function(c){c=it(c);var h=o.scale,p=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=o.dataToCoord(p),c});ST(u),ST(s),C(z7,function(c){t.get([c,"show"])&&(!o.scale.isBlank()||c==="axisLine")&&F7[c](this.group,t,r,s,l,a,u)},this)}},e.type="angleAxis",e}(vr),F7={axisLine:function(n,e,t,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=Th(t),l=s?0:1,u;r[l]===0?u=new jn({shape:{cx:t.cx,cy:t.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):u=new Pu({shape:{cx:t.cx,cy:t.cy,r:r[s],r0:r[l]},style:a.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[Th(t)],u=W(i,function(c){return new de({shape:Dh(t,[l,l+s],c.coord)})});n.add(ln(u,{style:nt(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[Th(t)],c=[],h=0;h<o.length;h++)for(var p=0;p<o[h].length;p++)c.push(new de({shape:Dh(t,[u,u+l],o[h][p].coord)}));n.add(ln(c,{style:nt(s.getModel("lineStyle").getLineStyle(),nt(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,e,t,i,o,r,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");C(a,function(h,p){var d=l,f=h.tickValue,g=r[Th(t)],v=t.coordToPoint([g+u,h.coord]),y=t.cx,m=t.cy,x=Math.abs(v[0]-y)/g<.3?"center":v[0]>y?"left":"right",_=Math.abs(v[1]-m)/g<.3?"middle":v[1]>m?"top":"bottom";if(s&&s[f]){var w=s[f];tt(w)&&w.textStyle&&(d=new Vt(w.textStyle,l,l.ecModel))}var b=new Tt({silent:Si.isLabelSilent(e),style:Rt(d,{x:v[0],y:v[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:x,verticalAlign:_})});if(n.add(b),c){var S=Si.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=h.rawLabel,st(b).eventData=S}},this)},splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new de({shape:Dh(t,r,i[h].coord)}))}for(var h=0;h<c.length;h++)n.add(ln(c[h],{style:nt({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new de({shape:Dh(t,r,o[u][c].coord)}));n.add(ln(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(n,e,t,i,o,r){if(i.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,p=-i[0].coord*h,d=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),g=e.get("clockwise"),v=1,y=i.length;v<=y;v++){var m=v===y?i[0].coord:i[v].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Fe({shape:{cx:t.cx,cy:t.cy,r0:d,r:f,startAngle:p,endAngle:-m*h,clockwise:g},silent:!0})),p=-m*h}for(var v=0;v<c.length;v++)n.add(ln(c[v],{style:nt({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const G7=B7;var W7=["axisLine","axisTickLabel","axisName"],H7=["splitLine","splitArea","minorSplitLine"],Y7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=this._axisGroup,r=this._axisGroup=new ot;this.group.add(r);var a=t.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),c=a.getMinorTicksCoords(),h=l.getExtent()[0],p=a.getExtent(),d=U7(s,t,h),f=new Si(t,d);C(W7,f.add,f),r.add(f.getGroup()),xs(o,r,t),C(H7,function(g){t.get([g,"show"])&&!a.scale.isBlank()&&X7[g](this.group,t,s,h,p,u,c)},this)}},e.type="radiusAxis",e}(vr),X7={splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new jn({shape:{cx:t.cx,cy:t.cy,r:Math.max(r[h].coord,0)}}))}for(var h=0;h<c.length;h++)n.add(ln(c[h],{style:nt({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,t,i,o,r,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new jn({shape:{cx:t.cx,cy:t.cy,r:a[c][h].coord}}));n.add(ln(u,{style:nt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(n,e,t,i,o,r){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=r[0].coord,p=1;p<r.length;p++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Fe({shape:{cx:t.cx,cy:t.cy,r0:h,r:r[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=r[p].coord}for(var p=0;p<c.length;p++)n.add(ln(c[p],{style:nt({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};function U7(n,e,t){return{position:[n.cx,n.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const Z7=Y7;function MT(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function IT(n,e){return e.dim+n.model.componentIndex}function j7(n,e,t){var i={},o=q7(Lt(e.getSeriesByType(n),function(r){return!e.isSeriesFiltered(r)&&r.coordinateSystem&&r.coordinateSystem.type==="polar"}));e.eachSeriesByType(n,function(r){if(r.coordinateSystem.type==="polar"){var a=r.getData(),s=r.coordinateSystem,l=s.getBaseAxis(),u=IT(s,l),c=MT(r),h=o[u][c],p=h.offset,d=h.width,f=s.getOtherAxis(l),g=r.coordinateSystem.cx,v=r.coordinateSystem.cy,y=r.get("barMinHeight")||0,m=r.get("barMinAngle")||0;i[c]=i[c]||[];for(var x=a.mapDimension(f.dim),_=a.mapDimension(l.dim),w=Ji(a,x),b=l.dim!=="radius"||!r.get("roundCap",!0),S=f.dataToCoord(0),M=0,D=a.count();M<D;M++){var T=a.get(x,M),I=a.get(_,M),A=T>=0?"p":"n",k=S;w&&(i[c][I]||(i[c][I]={p:S,n:S}),k=i[c][I][A]);var L=void 0,N=void 0,E=void 0,P=void 0;if(f.dim==="radius"){var O=f.dataToCoord(T)-S,V=l.dataToCoord(I);Math.abs(O)<y&&(O=(O<0?-1:1)*y),L=k,N=k+O,E=V-p,P=E-d,w&&(i[c][I][A]=N)}else{var F=f.dataToCoord(T,b)-S,B=l.dataToCoord(I);Math.abs(F)<m&&(F=(F<0?-1:1)*m),L=B+p,N=L+d,E=k,P=k+F,w&&(i[c][I][A]=P)}a.setItemLayout(M,{cx:g,cy:v,r0:L,r:N,startAngle:-E*Math.PI/180,endAngle:-P*Math.PI/180,clockwise:E>=P})}}})}function q7(n){var e={};C(n,function(i,o){var r=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=IT(a,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/r.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=h.stacks;e[l]=h;var d=MT(i);p[d]||h.autoWidthCount++,p[d]=p[d]||{width:0,maxWidth:0};var f=H(i.get("barWidth"),c),g=H(i.get("barMaxWidth"),c),v=i.get("barGap"),y=i.get("barCategoryGap");f&&!p[d].width&&(f=Math.min(h.remainedWidth,f),p[d].width=f,h.remainedWidth-=f),g&&(p[d].maxWidth=g),v!=null&&(h.gap=v),y!=null&&(h.categoryGap=y)});var t={};return C(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=H(i.categoryGap,a),l=H(i.gap,1),u=i.remainedWidth,c=i.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),C(r,function(g,v){var y=g.maxWidth;y&&y<h&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p=0,d;C(r,function(g,v){g.width||(g.width=h),d=g,p+=g.width*(1+l)}),d&&(p-=d.width*l);var f=-p/2;C(r,function(g,v){t[o][v]=t[o][v]||{offset:f,width:g.width},f+=g.width*(1+l)})}),t}var K7={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},$7={splitNumber:5},Q7=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(qt);function J7(n){mt(Dl),vr.registerAxisPointerClass("PolarAxisPointer",S7),n.registerCoordinateSystem("polar",V7),n.registerComponentModel(I7),n.registerComponentView(Q7),Sa(n,"angle",D7,K7),Sa(n,"radius",T7,$7),n.registerComponentView(G7),n.registerComponentView(Z7),n.registerLayout(lt(j7,"bar"))}function Iy(n,e){e=e||{};var t=n.coordinateSystem,i=n.axis,o={},r=i.position,a=i.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=[a==="vertical"?u.vertical[r]:l[0],a==="horizontal"?u.horizontal[r]:l[3]];var c={horizontal:0,vertical:1};o.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=h[r],n.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),te(e.labelInside,n.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var p=e.rotate;return p==null&&(p=n.get(["axisLabel","rotate"])),o.labelRotation=r==="top"?-p:p,o.z2=1,o}var t9=["axisLine","axisTickLabel","axisName"],e9=["splitArea","splitLine"],n9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,o,r){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new ot;var l=Iy(t),u=new Si(t,l);C(t9,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),C(e9,function(c){t.get([c,"show"])&&i9[c](this,this.group,this._axisGroup,t)},this),xs(s,this._axisGroup,t),n.prototype.render.call(this,t,i,o,r)},e.prototype.remove=function(){FM(this)},e.type="singleAxis",e}(vr),i9={splitLine:function(n,e,t,i){var o=i.axis;if(!o.scale.isBlank()){var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=o.isHorizontal(),h=[],p=0,d=o.getTicksCoords({tickModel:r}),f=[],g=[],v=0;v<d.length;++v){var y=o.toGlobalCoord(d[v].coord);c?(f[0]=y,f[1]=u.y,g[0]=y,g[1]=u.y+u.height):(f[0]=u.x,f[1]=y,g[0]=u.x+u.width,g[1]=y);var m=new de({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});Kr(m.shape,l);var x=p++%s.length;h[x]=h[x]||[],h[x].push(m)}for(var _=a.getLineStyle(["color"]),v=0;v<h.length;++v)e.add(ln(h[v],{style:nt({stroke:s[v%s.length]},_),silent:!0}))}},splitArea:function(n,e,t,i){BM(n,t,i,i)}};const o9=n9;var DT=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(wt);Jt(DT,Ks.prototype);const Dy=DT;var r9=function(n){R(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e}(On);const a9=r9;var TT=["single"],s9=function(){function n(e,t,i){this.type="single",this.dimension="single",this.dimensions=TT,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=this.dimension,r=new a9(o,Rc(e),[0,0],e.get("type"),e.get("position")),a=r.type==="category";r.onBand=a&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},n.prototype.update=function(e,t){e.eachSeries(function(i){if(i.coordinateSystem===this){var o=i.getData();C(o.mapDimensionsAll(this.dimension),function(r){this._axis.scale.unionExtentFromData(o,r)},this),xa(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(e,t){this._rect=ae({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),o=i?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),this._updateAxisTransform(t,i?e.x:e.y)},n.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),o=i[0]+i[1],r=e.isHorizontal();e.toGlobalCoord=r?function(a){return a+t}:function(a){return o-a+t},e.toLocalCoord=r?function(a){return a-t}:function(a){return o-a+t}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),o=i.orient;return o==="horizontal"?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),o=[],r=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),o[r]=t.toGlobalCoord(t.dataToCoord(+e)),o[1-r]=r===0?i.y+i.height/2:i.x+i.width/2,o},n.prototype.convertToPixel=function(e,t,i){var o=CT(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=CT(t);return o===this?this.pointToData(i):null},n}();function CT(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function l9(n,e){var t=[];return n.eachComponent("singleAxis",function(i,o){var r=new s9(i,n,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,t.push(r)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var o=i.getReferringComponents("singleAxis",ne).models[0];i.coordinateSystem=o&&o.coordinateSystem}}),t}var u9={create:l9,dimensions:TT};const c9=u9;var AT=["x","y"],h9=["width","height"],p9=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.coordinateSystem,u=Ty(l,1-Ch(s)),c=l.dataToPoint(i)[0],h=r.get("type");if(h&&h!=="none"){var p=my(r),d=d9[h](s,c,u);d.style=p,t.graphicKey=d.type,t.pointer=d}var f=Iy(o);uT(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=Iy(i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=xy(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.coordinateSystem,l=Ch(a),u=Ty(s,l),c=[t.x,t.y];c[l]+=i[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=Ty(s,1-l),p=(h[1]+h[0])/2,d=[p,p];return d[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(yy),d9={line:function(n,e,t){var i=_y([e,t[0]],[e,t[1]],Ch(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=n.getBandWidth(),o=t[1]-t[0];return{type:"Rect",shape:cT([e-i/2,t[0]],[i,o],Ch(n))}}};function Ch(n){return n.isHorizontal()?0:1}function Ty(n,e){var t=n.getRect();return[t[AT[e]],t[AT[e]]+t[h9[e]]]}const f9=p9;var g9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(qt);function v9(n){mt(Dl),vr.registerAxisPointerClass("SingleAxisPointer",f9),n.registerComponentView(g9),n.registerComponentView(o9),n.registerComponentModel(Dy),Sa(n,"single",Dy,Dy.defaultOption),n.registerCoordinateSystem("single",c9)}var y9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=ia(t);n.prototype.init.apply(this,arguments),kT(t,r)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),kT(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(wt);function kT(n,e){var t=n.cellSize,i;G(t)?i=t:i=n.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var o=W([0,1],function(r){return SO(e,r)&&(i[r]="auto"),i[r]!=null&&i[r]!=="auto"});ji(n,e,{type:"box",ignoreSize:o})}const m9=y9;var x9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll();var a=t.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,r),this._renderLines(t,s,l,r),this._renderYearText(t,s,l,r),this._renderMonthText(t,u,l,r),this._renderWeekText(t,u,s,l,r)},e.prototype._renderDayRect=function(t,i,o){for(var r=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),s=r.getCellWidth(),l=r.getCellHeight(),u=i.start.time;u<=i.end.time;u=r.getNextNDay(u,1).time){var c=r.dataToRect([u],!1).tl,h=new It({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});o.add(h)}},e.prototype._renderLines=function(t,i,o,r){var a=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,p=0;h.time<=i.end.time;p++){f(h.formatedDate),p===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=s.getDateInfo(d)}f(s.getNextNDay(i.end.time,1).formatedDate);function f(g){a._firstDayOfMonth.push(s.getDateInfo(g)),a._firstDayPoints.push(s.dataToRect([g],!1).tl);var v=a._getLinePointsOfOneWeek(t,g,o);a._tlpoints.push(v[0]),a._blpoints.push(v[v.length-1]),u&&a._drawSplitline(v,l,r)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,o),l,r),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,o),l,r)},e.prototype._getEdgesPoints=function(t,i,o){var r=[t[0].slice(),t[t.length-1].slice()],a=o==="horizontal"?0:1;return r[0][a]=r[0][a]-i/2,r[1][a]=r[1][a]+i/2,r},e.prototype._drawSplitline=function(t,i,o){var r=new We({z2:20,shape:{points:t},style:i});o.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,i,o){for(var r=t.coordinateSystem,a=r.getDateInfo(i),s=[],l=0;l<7;l++){var u=r.getNextNDay(a.time,l),c=r.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[o==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return X(t)&&t?_O(t,i):Q(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,o,r,a){var s=i[0],l=i[1],u=["center","bottom"];r==="bottom"?(l+=a,u=["center","top"]):r==="left"?s-=a:r==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return(r==="left"||r==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,o,r){var a=t.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=o!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,p=o==="horizontal"?0:1,d={top:[c,u[p][1]],bottom:[c,u[1-p][1]],left:[u[1-p][0],h],right:[u[p][0],h]},f=i.start.y;+i.end.y>+i.start.y&&(f=f+"-"+i.end.y);var g=a.get("formatter"),v={start:i.start.y,end:i.end.y,nameMap:f},y=this._formatterLabel(g,v),m=new Tt({z2:30,style:Rt(a,{text:y})});m.attr(this._yearTextPositionControl(m,d[l],o,l,s)),r.add(m)}},e.prototype._monthTextPositionControl=function(t,i,o,r,a){var s="left",l="top",u=t[0],c=t[1];return o==="horizontal"?(c=c+a,i&&(s="center"),r==="start"&&(l="bottom")):(u=u+a,i&&(l="middle"),r==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,o,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),h=[this._tlpoints,this._blpoints];(!s||X(s))&&(s&&(i=qd(s)||i),s=i.get(["time","monthAbbr"])||[]);var p=u==="start"?0:1,d=o==="horizontal"?0:1;l=u==="start"?-l:l;for(var f=c==="center",g=0;g<h[p].length-1;g++){var v=h[p][g].slice(),y=this._firstDayOfMonth[g];if(f){var m=this._firstDayPoints[g];v[d]=(m[d]+h[0][g+1][d])/2}var x=a.get("formatter"),_=s[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:_},b=this._formatterLabel(x,w),S=new Tt({z2:30,style:z(Rt(a,{text:b}),this._monthTextPositionControl(v,f,o,u,l))});r.add(S)}}},e.prototype._weekTextPositionControl=function(t,i,o,r,a){var s="center",l="middle",u=t[0],c=t[1],h=o==="start";return i==="horizontal"?(u=u+r+(h?1:-1)*a[0]/2,s=h?"right":"left"):(c=c+r+(h?1:-1)*a[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,o,r,a){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),p=l.getFirstDayOfWeek();if(!c||X(c)){c&&(i=qd(c)||i);var d=i.get(["time","dayOfWeekShort"]);c=d||W(i.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var f=l.getNextNDay(o.end.time,7-o.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];h=H(h,Math.min(g[1],g[0])),u==="start"&&(f=l.getNextNDay(o.start.time,-(7+o.fweek)).time,h=-h);for(var v=0;v<7;v++){var y=l.getNextNDay(f,v),m=l.dataToRect([y.time],!1).center,x=v;x=Math.abs((v+p)%7);var _=new Tt({z2:30,style:z(Rt(s,{text:c[x]}),this._weekTextPositionControl(m,r,u,h,g))});a.add(_)}}},e.type="calendar",e}(qt);const _9=x9;var Cy=864e5,b9=function(){function n(e,t,i){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=Wn(e);var t=e.getFullYear(),i=e.getMonth()+1,o=i<10?"0"+i:""+i,r=e.getDate(),a=r<10?"0"+r:""+r,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:o,d:a,day:s,time:e.getTime(),formatedDate:t+"-"+o+"-"+a,date:e}},n.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},n.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,o=["width","height"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];C([0,1],function(h){c(r,h)&&(a[o[h]]=r[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ae(a,l);C([0,1],function(h){c(r,h)||(r[h]=u[o[h]]/s[h])});function c(h,p){return h[p]!=null&&h[p]!=="auto"}this._sw=r[0],this._sh=r[1]},n.prototype.dataToPoint=function(e,t){G(e)&&(e=e[0]),t==null&&(t=!0);var i=this.getDateInfo(e),o=this._rangeInfo,r=i.formatedDate;if(t&&!(i.time>=o.start.time&&i.time<o.end.time+Cy))return[NaN,NaN];var a=i.day,s=this._getRangeInfo([o.start.time,r]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},n.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},n.prototype.dataToRect=function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,o):this._getDateByWeeksAndDay(t,i-1,o)},n.prototype.convertToPixel=function(e,t,i){var o=LT(t);return o===this?o.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=LT(t);return o===this?o.pointToData(i):null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(G(e)&&e.length===1&&(e=e[0]),G(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var o=this.getDateInfo(i),r=o.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[o.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return process.env.NODE_ENV!=="production"&&bn("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var o=Math.floor(t[1].time/Cy)-Math.floor(t[0].time/Cy)+1,r=new Date(t[0].time),a=r.getDate(),s=t[1].date.getDate();r.setDate(a+o-1);var l=r.getDate();if(l!==s)for(var u=r.getTime()-t[1].time>0?1:-1;(l=r.getDate())!==s&&(r.getTime()-t[1].time)*u>0;)o-=u,r.setDate(l-u);var c=Math.floor((o+t[0].day+6)/7),h=i?-c+1:c-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:o,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,i){var o=this._getRangeInfo(i);if(e>o.weeks||e===0&&t<o.fweek||e===o.weeks&&t>o.lweek)return null;var r=(e-1)*7-o.fweek+t,a=new Date(o.start.time);return a.setDate(+o.start.d+r),this.getDateInfo(a)},n.create=function(e,t){var i=[];return e.eachComponent("calendar",function(o){var r=new n(o);i.push(r),o.coordinateSystem=r}),e.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=i[o.get("calendarIndex")||0])}),i},n.dimensions=["time","value"],n}();function LT(n){var e=n.calendarModel,t=n.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}const w9=b9;function S9(n){n.registerComponentModel(m9),n.registerComponentView(_9),n.registerCoordinateSystem("calendar",w9)}function M9(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function NT(n,e){var t;return C(e,function(i){n[i]!=null&&n[i]!=="auto"&&(t=!0)}),t}function I9(n,e,t){var i=z({},t),o=n[e],r=t.$action||"merge";if(r==="merge")if(o){if(process.env.NODE_ENV!=="production"){var a=t.type;et(!a||o.type===a,'Please set $action: "replace" to change `type`')}pt(o,i,!0),ji(o,i,{ignoreSize:!0}),n_(t,o),Ah(t,o),Ah(t,o,"shape"),Ah(t,o,"style"),Ah(t,o,"extra"),t.clipPath=o.clipPath}else n[e]=i;else r==="replace"?n[e]=i:r==="remove"&&o&&(n[e]=null)}var ET=["transition","enterFrom","leaveTo"],D9=ET.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ah(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var i=t?ET:D9,o=0;o<i.length;o++){var r=i[o];n[r]==null&&e[r]!=null&&(n[r]=e[r])}}function T9(n,e){if(n&&(n.hv=e.hv=[NT(e,["left","right"]),NT(e,["top","bottom"])],n.type==="group")){var t=n,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var C9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var o=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,t,i),this.option.elements=o},e.prototype.optionUpdated=function(t,i){var o=this.option,r=(i?o:t).elements,a=o.elements=i?[]:o.elements,s=[];this._flatten(r,s,null);var l=X0(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];C(l,function(c,h){var p=c.newOption;process.env.NODE_ENV!=="production"&&et(tt(p)||c.existing,"Empty graphic option definition"),p&&(u.push(p),M9(c,p),I9(a,h,p),T9(a[h],p))},this),o.elements=Lt(a,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,i,o){C(t,function(r){if(r){o&&(r.parentOption=o),i.push(r);var a=r.children;a&&a.length&&this._flatten(a,i,r),delete r.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(wt),OT={path:null,compoundPath:null,group:ot,image:ge,text:Tt},xn=Mt(),A9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=K()},e.prototype.render=function(t,i,o){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,o)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var o=this._elMap,r=this.group,a=t.get("z"),s=t.get("zlevel");C(i,function(l){var u=re(l.id,null),c=u!=null?o.get(u):null,h=re(l.parentId,null),p=h!=null?o.get(h):r,d=l.type,f=l.style;d==="text"&&f&&l.hv&&l.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null);var g=l.textContent,v=l.textConfig;if(f&&ED(f,d,!!v,!!g)){var y=OD(f,d,!0);!v&&y.textConfig&&(v=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var m=k9(l);process.env.NODE_ENV!=="production"&&c&&et(p===c.parent,"Changing parent is not supported.");var x=l.$action||"merge",_=x==="merge",w=x==="replace";if(_){var b=!c,S=c;b?S=PT(u,p,l.type,o):(S&&(xn(S).isNew=!1),ZD(S)),S&&(_h(S,m,t,{isInit:b}),RT(S,l,a,s))}else if(w){kh(c,l,o,t);var M=PT(u,p,l.type,o);M&&(_h(M,m,t,{isInit:!0}),RT(M,l,a,s))}else x==="remove"&&(WD(c,l),kh(c,l,o,t));var D=o.get(u);if(D&&g)if(_){var T=D.getTextContent();T?T.attr(g):D.setTextContent(new Tt(g))}else w&&D.setTextContent(new Tt(g));if(D){var I=l.clipPath;if(I){var A=I.type,k=void 0,b=!1;if(_){var L=D.getClipPath();b=!L||xn(L).type!==A,k=b?Ay(A):L}else w&&(b=!0,k=Ay(A));D.setClipPath(k),_h(k,I,t,{isInit:b}),wh(k,I.keyframeAnimation,t)}var N=xn(D);D.setTextConfig(v),N.option=l,L9(D,t,l),$r({el:D,componentModel:t,itemName:D.name,itemTooltipOption:l.tooltip}),wh(D,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var o=t.option.elements,r=this.group,a=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],c=0;c<o.length;c++){var h=o[c],p=re(h.id,null),d=p!=null?a.get(p):null;if(!(!d||!d.isGroup)){var f=d.parent,g=f===r,v=xn(d),y=xn(f);v.width=H(v.option.width,g?s:y.width)||0,v.height=H(v.option.height,g?l:y.height)||0}}for(var c=o.length-1;c>=0;c--){var h=o[c],p=re(h.id,null),d=p!=null?a.get(p):null;if(d){var f=d.parent,y=xn(f),m=f===r?{width:s,height:l}:{width:y.width,height:y.height},x={},_=ic(d,h,m,null,{hv:h.hv,boundingMode:h.bounding},x);if(!xn(d).isNew&&_){for(var w=h.transition,b={},S=0;S<u.length;S++){var M=u[S],D=x[M];w&&(Ir(w)||yt(w,M)>=0)?b[M]=D:d[M]=D}Ct(d,b,t,0)}else d.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(o){kh(o,xn(o).option,i,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(qt);function Ay(n){process.env.NODE_ENV!=="production"&&et(n,"graphic type MUST be set");var e=U(OT,n)?OT[n]:Wd(n);process.env.NODE_ENV!=="production"&&et(e,"graphic type "+n+" can not be found");var t=new e({});return xn(t).type=n,t}function PT(n,e,t,i){var o=Ay(t);return e.add(o),i.set(n,o),xn(o).id=n,xn(o).isNew=!0,o}function kh(n,e,t,i){var o=n&&n.parent;o&&(n.type==="group"&&n.traverse(function(r){kh(r,e,t,i)}),bh(n,e,i),t.removeKey(xn(n).id))}function RT(n,e,t,i){n.isGroup||C([["cursor",an.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(o){var r=o[0];U(e,r)?n[r]=ct(e[r],o[1]):n[r]==null&&(n[r]=o[1])}),C(_t(e),function(o){if(o.indexOf("on")===0){var r=e[o];n[o]=Q(r)?r:null}}),U(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function k9(n){return n=z({},n),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(e_),function(e){delete n[e]}),n}function L9(n,e,t){var i=st(n).eventData;!n.silent&&!n.ignore&&!i&&(i=st(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),i&&(i.info=t.info)}function N9(n){n.registerComponentModel(C9),n.registerComponentView(A9),n.registerPreprocessor(function(e){var t=e.graphic;G(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var VT=["x","y","radius","angle","single"],E9=["cartesian2d","polar","singleAxis"];function O9(n){var e=n.get("coordinateSystem");return yt(E9,e)>=0}function uo(n){return process.env.NODE_ENV!=="production"&&et(n),n+"Axis"}function P9(n,e){var t=K(),i=[],o=K();n.eachComponent({mainType:"dataZoom",query:e},function(c){o.get(c.uid)||s(c)});var r;do r=!1,n.eachComponent("dataZoom",a);while(r);function a(c){!o.get(c.uid)&&l(c)&&(s(c),r=!0)}function s(c){o.set(c.uid,!0),i.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(p,d){var f=t.get(p);f&&f[d]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,p){(t.get(h)||t.set(h,[]))[p]=!0})}return i}function zT(n){var e=n.ecModel,t={infoList:[],infoMap:K()};return n.eachTargetAxis(function(i,o){var r=e.getComponent(uo(i),o);if(r){var a=r.getCoordSysModel();if(a){var s=a.uid,l=t.infoMap.get(s);l||(l={model:a,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(r)}}}),t}var ky=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),R9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,o){var r=BT(t);this.settledOption=r,this.mergeDefaultAndTheme(t,o),this._doInit(r)},e.prototype.mergeOption=function(t){var i=BT(t);pt(this.option,t,!0),pt(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var o=this.settledOption;C([["start","startValue"],["end","endValue"]],function(r,a){this._rangePropMode[a]==="value"&&(i[r[0]]=o[r[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=K(),o=this._fillSpecifiedTargetAxis(i);o?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return C(VT,function(o){var r=this.getReferringComponents(uo(o),tN);if(r.specified){i=!0;var a=new ky;C(r.models,function(s){a.add(s.componentIndex)}),t.set(o,a)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var o=this.ecModel,r=!0;if(r){var a=i==="vertical"?"y":"x",s=o.findComponents({mainType:a+"Axis"});l(s,a)}if(r){var s=o.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===i}});l(s,"single")}function l(u,c){var h=u[0];if(h){var p=new ky;if(p.add(h.componentIndex),t.set(c,p),r=!1,c==="x"||c==="y"){var d=h.getReferringComponents("grid",ne).models[0];d&&C(u,function(f){h.componentIndex!==f.componentIndex&&d===f.getReferringComponents("grid",ne).models[0]&&p.add(f.componentIndex)})}}}r&&C(VT,function(u){if(r){var c=o.findComponents({mainType:uo(u),filter:function(p){return p.get("type",!0)==="category"}});if(c[0]){var h=new ky;h.add(c[0].componentIndex),t.set(u,h),r=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,o=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(r,a){var s=t[r[0]]!=null,l=t[r[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":o?i[a]=o[a]:s&&(i[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,o){t==null&&(t=this.ecModel.getComponent(uo(i),o))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(o,r){C(o.indexList,function(a){t.call(i,r,a)})})},e.prototype.getAxisProxy=function(t,i){var o=this.getAxisModel(t,i);if(o)return o.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){process.env.NODE_ENV!=="production"&&et(t&&i!=null);var o=this._targetAxisInfoMap.get(t);if(o&&o.indexMap[i])return this.ecModel.getComponent(uo(t),i)},e.prototype.setRawRange=function(t){var i=this.option,o=this.settledOption;C([["start","startValue"],["end","endValue"]],function(r){(t[r[0]]!=null||t[r[1]]!=null)&&(i[r[0]]=o[r[0]]=t[r[0]],i[r[1]]=o[r[1]]=t[r[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;C(["start","startValue","end","endValue"],function(o){i[o]=t[o]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,o=this._targetAxisInfoMap.keys(),r=0;r<o.length;r++)for(var a=o[r],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},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&et(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(wt);function BT(n){var e={};return C(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}const Tl=R9;var V9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Tl);const z9=V9;var B9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this.dataZoomModel=t,this.ecModel=i,this.api=o},e.type="dataZoom",e}(qt);const Ly=B9;var F9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ly);const G9=F9;var Ea=C,FT=rn,W9=function(){function n(e,t,i,o){this._dimName=e,this._axisIndex=t,this.ecModel=o,this._dataZoomModel=i}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(O9(t)){var i=uo(this._dimName),o=t.getReferringComponents(i,ne).models[0];o&&this._axisIndex===o.componentIndex&&e.push(t)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return it(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var t=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u;Ea(["start","end"],function(p,d){var f=e[p],g=e[p+"Value"];r[d]==="percent"?(f==null&&(f=a[d]),g=o.parse(kt(f,a,t))):(u=!0,g=g==null?t[d]:o.parse(g),f=kt(g,t,a)),l[d]=g==null||isNaN(g)?t[d]:g,s[d]=f==null||isNaN(f)?a[d]:f}),FT(l),FT(s);var c=this._minMaxSpan;u?h(l,s,t,a,!1):h(s,l,a,t,!0);function h(p,d,f,g,v){var y=v?"Span":"ValueSpan";wr(0,p,f,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)d[m]=kt(p[m],f,g,!0),v&&(d[m]=o.parse(d[m]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=H9(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var i=this._dimName,o=this.getTargetSeriesModels(),r=e.get("filterMode"),a=this._valueWindow;if(r==="none")return;Ea(o,function(l){var u=l.getData(),c=u.mapDimensionsAll(i);if(c.length){if(r==="weakFilter"){var h=u.getStore(),p=W(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var f,g,v,y=0;y<c.length;y++){var m=h.get(p[y],d),x=!isNaN(m),_=m<a[0],w=m>a[1];if(x&&!_&&!w)return!0;x&&(v=!0),_&&(f=!0),w&&(g=!0)}return v&&f&&g})}else Ea(c,function(d){if(r==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var f={};f[d]=a,u.selectRange(f)}});Ea(c,function(d){u.setApproximateExtent(a,d)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;Ea(["min","max"],function(o){var r=t.get(o+"Span"),a=t.get(o+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?r=kt(i[0]+a,i,[0,100],!0):r!=null&&(a=kt(r,[0,100],i,!0)-i[0]),e[o+"Span"]=r,e[o+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var o=N0(i,[0,500]);o=Math.min(o,20);var r=e.axis.scale.rawExtentInfo;t[0]!==0&&r.setDeterminedMinMax("min",+i[0].toFixed(o)),t[1]!==100&&r.setDeterminedMinMax("max",+i[1].toFixed(o)),r.freeze()}},n}();function H9(n,e,t){var i=[1/0,-1/0];Ea(t,function(a){f5(i,a.getData(),e)});var o=n.getAxisModel(),r=Xw(o.axis.scale,o,i).calculate();return[r.min,r.max]}const Y9=W9;var X9={getTargetSeries:function(n){function e(o){n.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(a,s){var l=n.getComponent(uo(a),s);o(a,s,l,r)})})}e(function(o,r,a,s){a.__dzAxisProxy=null});var t=[];e(function(o,r,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new Y9(o,r,s,n),t.push(a.__dzAxisProxy))});var i=K();return C(t,function(o){C(o.getTargetSeriesModels(),function(r){i.set(r.uid,r)})}),i},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).reset(t)}),t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var o=i.getDataPercentWindow(),r=i.getDataValueWindow();t.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})}})}};const U9=X9;function Z9(n){n.registerAction("dataZoom",function(e,t){var i=P9(t,e);C(i,function(o){o.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var GT=!1;function Ny(n){GT||(GT=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,U9),Z9(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function j9(n){n.registerComponentModel(z9),n.registerComponentView(G9),Ny(n)}var _n=function(){function n(){}return n}(),WT={};function Oa(n,e){WT[n]=e}function HT(n){return WT[n]}var q9=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(i,o){var r=HT(o);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),pt(i,r.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(wt);const K9=q9;function $9(n,e,t){var i=e.getBoxLayoutParams(),o=e.get("padding"),r={width:t.getWidth(),height:t.getHeight()},a=ae(i,r,o);Ko(e.get("orient"),n,e.get("itemGap"),a.width,a.height),ic(n,i,r,o)}function YT(n,e){var t=na(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),n=new It({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var Q9=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){var a=this.group;if(a.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];C(u,function(f,g){h.push(g)}),new _i(this._featureNames||[],h).add(p).update(p).remove(lt(p,null)).execute(),this._featureNames=h;function p(f,g){var v=h[f],y=h[g],m=u[v],x=new Vt(m,t,t.ecModel),_;if(r&&r.newTitle!=null&&r.featureName===v&&(m.title=r.newTitle),v&&!y){if(J9(v))_={onclick:x.option.onclick,featureName:v};else{var w=HT(v);if(!w)return;_=new w}c[v]=_}else if(_=c[y],!_)return;_.uid=Jr("toolbox-feature"),_.model=x,_.ecModel=i,_.api=o;var b=_ instanceof _n;if(!v&&y){b&&_.dispose&&_.dispose(i,o);return}if(!x.get("show")||b&&_.unusable){b&&_.remove&&_.remove(i,o);return}d(x,_,v),x.setIconStatus=function(S,M){var D=this.option,T=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[S]=M,T[S]&&(M==="emphasis"?vi:yi)(T[S])},_ instanceof _n&&_.render&&_.render(x,i,o,r)}function d(f,g,v){var y=f.getModel("iconStyle"),m=f.getModel(["emphasis","iconStyle"]),x=g instanceof _n&&g.getIcons?g.getIcons():f.get("icon"),_=f.get("title")||{},w,b;X(x)?(w={},w[v]=x):w=x,X(_)?(b={},b[v]=_):b=_;var S=f.iconPaths={};C(w,function(M,D){var T=_s(M,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(y.getItemStyle());var I=T.ensureState("emphasis");I.style=m.getItemStyle();var A=new Tt({style:{text:b[D],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});T.setTextContent(A),$r({el:T,componentModel:t,itemName:D,formatterParamsExtra:{title:b[D]}}),T.__title=b[D],T.on("mouseover",function(){var k=m.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:m.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),T.setTextConfig({position:m.get("textPosition")||L}),A.ignore=!t.get("showTitle"),o.enterEmphasis(this)}).on("mouseout",function(){f.get(["iconStatus",D])!=="emphasis"&&o.leaveEmphasis(this),A.hide()}),(f.get(["iconStatus",D])==="emphasis"?vi:yi)(T),a.add(T),T.on("click",Z(g.onclick,g,i,o,D)),S[D]=T})}$9(a,t,o),a.add(YT(a.getBoundingRect(),t)),l||a.eachChild(function(f){var g=f.__title,v=f.ensureState("emphasis"),y=v.textConfig||(v.textConfig={}),m=f.getTextContent(),x=m&&m.ensureState("emphasis");if(x&&!Q(x)&&g){var _=x.style||(x.style={}),w=es(g,Tt.makeFont(_)),b=f.x+a.x,S=f.y+a.y+s,M=!1;S+w.height>o.getHeight()&&(y.position="top",M=!0);var D=M?-5-w.height:s+10;b+w.width/2>o.getWidth()?(y.position=["100%",D],_.align="right"):b-w.width/2<0&&(y.position=[0,D],_.align="left")}})},e.prototype.updateView=function(t,i,o,r){C(this._features,function(a){a instanceof _n&&a.updateView&&a.updateView(a.model,i,o,r)})},e.prototype.remove=function(t,i){C(this._features,function(o){o instanceof _n&&o.remove&&o.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){C(this._features,function(o){o instanceof _n&&o.dispose&&o.dispose(t,i)})},e.type="toolbox",e}(qt);function J9(n){return n.indexOf("my")===0}const tY=Q9;var eY=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var o=this.model,r=o.get("name")||t.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":o.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),u=St.browser;if(Q(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=r+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}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=r+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=f.length,y=new Uint8Array(v);v--;)y[v]=f.charCodeAt(v);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(f),w.close(),_.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var b=o.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',M=window.open();M.document.write(S),M.document.title=r}},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(_n);const nY=eY;var XT="__ec_magicType_stack__",iY=[["line","bar"],["stack"]],oY=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),o={};return C(t.get("type"),function(r){i[r]&&(o[r]=i[r])}),o},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,o){var r=this.model,a=r.get(["seriesIndex",o]);if(UT[o]){var s={series:[]},l=function(h){var p=h.subType,d=h.id,f=UT[o](p,d,h,r);f&&(nt(f,h.option),s.series.push(f));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(o==="line"||o==="bar")){var v=g.getAxesByScale("ordinal")[0];if(v){var y=v.dim,m=y+"Axis",x=h.getReferringComponents(m,ne).models[0],_=x.componentIndex;s[m]=s[m]||[];for(var w=0;w<=_;w++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=o==="bar"}}};C(iY,function(h){yt(h,o)>=0&&C(h,function(p){r.setIconStatus(p,"normal")})}),r.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,c=o;o==="stack"&&(u=pt({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get(["iconStatus",o])!=="emphasis"&&(c="tiled")),i.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(_n),UT={line:function(n,e,t,i){if(n==="bar")return pt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,e,t,i){if(n==="line")return pt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,e,t,i){var o=t.get("stack")===XT;if(n==="line"||n==="bar")return i.setIconStatus("stack",o?"normal":"emphasis"),pt({id:e,stack:o?"":XT},i.get(["option","stack"])||{},!0)}};Qn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const rY=oY;var Lh=new Array(60).join("-"),Pa=" ";function aY(n){var e={},t=[],i=[];return n.eachRawSeries(function(o){var r=o.coordinateSystem;if(r&&(r.type==="cartesian2d"||r.type==="polar")){var a=r.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(o)}else t.push(o)}else t.push(o)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function sY(n){var e=[];return C(n,function(t,i){var o=t.categoryAxis,r=t.valueAxis,a=r.dim,s=[" "].concat(W(t.series,function(d){return d.name})),l=[o.model.getCategories()];C(t.series,function(d){var f=d.getRawData();l.push(d.getRawData().mapArray(f.mapDimension(a),function(g){return g}))});for(var u=[s.join(Pa)],c=0;c<l[0].length;c++){for(var h=[],p=0;p<l.length;p++)h.push(l[p][c]);u.push(h.join(Pa))}e.push(u.join(`
|
|
59
|
+
`))}),e.join(`
|
|
60
|
+
|
|
61
|
+
`+Lh+`
|
|
62
|
+
|
|
63
|
+
`)}function lY(n){return W(n,function(e){var t=e.getRawData(),i=[e.name],o=[];return t.each(t.dimensions,function(){for(var r=arguments.length,a=arguments[r-1],s=t.getName(a),l=0;l<r-1;l++)o[l]=arguments[l];i.push((s?s+Pa:"")+o.join(Pa))}),i.join(`
|
|
64
|
+
`)}).join(`
|
|
65
|
+
|
|
66
|
+
`+Lh+`
|
|
67
|
+
|
|
68
|
+
`)}function uY(n){var e=aY(n);return{value:Lt([sY(e.seriesGroupByCategoryAxis),lY(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
69
|
+
|
|
70
|
+
`+Lh+`
|
|
71
|
+
|
|
72
|
+
`),meta:e.meta}}function Nh(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function cY(n){var e=n.slice(0,n.indexOf(`
|
|
73
|
+
`));if(e.indexOf(Pa)>=0)return!0}var Ey=new RegExp("["+Pa+"]+","g");function hY(n){for(var e=n.split(/\n+/g),t=Nh(e.shift()).split(Ey),i=[],o=W(t,function(l){return{name:l,data:[]}}),r=0;r<e.length;r++){var a=Nh(e[r]).split(Ey);i.push(a.shift());for(var s=0;s<a.length;s++)o[s]&&(o[s].data[r]=a[s])}return{series:o,categories:i}}function pY(n){for(var e=n.split(/\n+/g),t=Nh(e.shift()),i=[],o=0;o<e.length;o++){var r=Nh(e[o]);if(r){var a=r.split(Ey),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);l.length===1&&(u?i[o].value=l[0]:i[o]=l[0])}}return{name:t,data:i}}function dY(n,e){var t=n.split(new RegExp(`
|
|
74
|
+
*`+Lh+`
|
|
75
|
+
*`,"g")),i={series:[]};return C(t,function(o,r){if(cY(o)){var a=hY(o),s=e[r],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{var a=pY(o);i.series.push(a)}}),i}var fY=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var o=i.getDom(),r=this.model;this._dom&&o.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=r.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin:10px 20px",s.style.color=r.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=r.get("optionToContent"),p=r.get("contentToOption"),d=uY(t);if(Q(h)){var f=h(i.getOption());X(f)?u.innerHTML=f:kr(f)&&u.appendChild(f)}else{c.readOnly=r.get("readOnly");var g=c.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=r.get("textColor"),g.borderColor=r.get("textareaBorderColor"),g.backgroundColor=r.get("textareaColor"),c.value=d.value,u.appendChild(c)}var v=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var w=this;function b(){o.removeChild(a),w._dom=null}dp(x,"click",b),dp(_,"click",function(){if(p==null&&h!=null||p!=null&&h==null){process.env.NODE_ENV!=="production"&&Zt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var S;try{Q(p)?S=p(u,i.getOption()):S=dY(c.value,v)}catch(M){throw b(),new Error("Data view format error "+M)}S&&i.dispatchAction({type:"changeDataView",newOption:S}),b()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=m,!r.get("readOnly")&&y.appendChild(_),y.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(y),u.style.height=o.clientHeight-80+"px",o.appendChild(a),this._dom=a},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},e}(_n);function gY(n,e){return W(n,function(t,i){var o=e&&e[i];if(tt(o)&&!G(o)){var r=tt(t)&&!G(t);r||(t={value:t});var a=o.name!=null&&t.name==null;return t=nt(t,o),a&&delete t.name,t}else return t})}Qn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,e){var t=[];C(n.newOption.series,function(i){var o=e.getSeriesByName(i.name)[0];if(!o)t.push(z({type:"scatter"},i));else{var r=o.get("data");t.push({name:i.name,data:gY(i.data,r)})}}),e.mergeOption(nt({series:t},n.newOption))});const vY=fY;var ZT=C,jT=Mt();function yY(n,e){var t=Oy(n);ZT(e,function(i,o){for(var r=t.length-1;r>=0;r--){var a=t[r];if(a[o])break}if(r<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:o})[0];if(s){var l=s.getPercentRange();t[0][o]={dataZoomId:o,start:l[0],end:l[1]}}}}),t.push(e)}function mY(n){var e=Oy(n),t=e[e.length-1];e.length>1&&e.pop();var i={};return ZT(t,function(o,r){for(var a=e.length-1;a>=0;a--)if(o=e[a][r],o){i[r]=o;break}}),i}function xY(n){jT(n).snapshots=null}function _Y(n){return Oy(n).length}function Oy(n){var e=jT(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var bY=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){xY(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(_n);Qn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const wY=bY;var SY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MY=function(){function n(e,t,i){var o=this;this._targetInfoList=[];var r=qT(t,e);C(IY,function(a,s){(!i||!i.include||yt(i.include,s)>=0)&&a(r,o._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,o,r){if((i.coordRanges||(i.coordRanges=[])).push(o),!i.coordRange){i.coordRange=o;var a=Ry[i.brushType](0,r,o);i.__rangeOffset={offset:JT[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,i){C(e,function(o){var r=this.findTargetInfo(o,t);r&&r!==!0&&C(r.coordSyses,function(a){var s=Ry[o.brushType](1,a,o.range,!0);i(o,s.values,a,t)})},this)},n.prototype.setInputRanges=function(e,t){C(e,function(i){var o=this.findTargetInfo(i,t);if(process.env.NODE_ENV!=="production"&&(et(!o||o===!0||i.coordRange,"coordRange must be specified when coord index specified."),et(!o||o!==!0||i.range,"range must be specified in global brush.")),i.range=i.range||[],o&&o!==!0){i.panelId=o.panelId;var r=Ry[i.brushType](0,o.coordSys,i.coordRange),a=i.__rangeOffset;i.range=a?JT[i.brushType](r.values,a.offset,DY(r.xyMinMax,a.xyMinMax)):r.values}},this)},n.prototype.makePanelOpts=function(e,t){return W(this._targetInfoList,function(i){var o=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:U2(o),isTargetByCursor:j2(o,e,i.coordSysModel),getLinearBrushOtherExtent:Z2(o)}})},n.prototype.controlSeries=function(e,t,i){var o=this.findTargetInfo(e,i);return o===!0||o&&yt(o.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,o=qT(t,e),r=0;r<i.length;r++){var a=i[r],s=e.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<KT.length;l++)if(KT[l](o,a))return a}return!0},n}();function Py(n){return n[0]>n[1]&&n.reverse(),n}function qT(n,e){return rs(n,e,{includeMainTypes:SY})}var IY={grid:function(n,e){var t=n.xAxisModels,i=n.yAxisModels,o=n.gridModels,r=K(),a={},s={};!t&&!i&&!o||(C(t,function(l){var u=l.axis.grid.model;r.set(u.id,u),a[u.id]=!0}),C(i,function(l){var u=l.axis.grid.model;r.set(u.id,u),s[u.id]=!0}),C(o,function(l){r.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),r.each(function(l){var u=l.coordinateSystem,c=[];C(u.getCartesians(),function(h,p){(yt(t,h.getAxis("x").model)>=0||yt(i,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:$T.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){C(n.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:$T.geo})})}},KT=[function(n,e){var t=n.xAxisModel,i=n.yAxisModel,o=n.gridModel;return!o&&t&&(o=t.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],$T={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Uo(n)),e}},Ry={lineX:lt(QT,0),lineY:lt(QT,1),rect:function(n,e,t,i){var o=n?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),r=n?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),a=[Py([o[0],r[0]]),Py([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(n,e,t,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=W(t,function(a){var s=n?e.pointToData(a,i):e.dataToPoint(a,i);return o[0][0]=Math.min(o[0][0],s[0]),o[1][0]=Math.min(o[1][0],s[1]),o[0][1]=Math.max(o[0][1],s[0]),o[1][1]=Math.max(o[1][1],s[1]),s});return{values:r,xyMinMax:o}}};function QT(n,e,t,i){process.env.NODE_ENV!=="production"&&et(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var o=t.getAxis(["x","y"][n]),r=Py(W([0,1],function(s){return e?o.coordToData(o.toLocalCoord(i[s]),!0):o.toGlobalCoord(o.dataToCoord(i[s]))})),a=[];return a[n]=r,a[1-n]=[NaN,NaN],{values:r,xyMinMax:a}}var JT={lineX:lt(tC,0),lineY:lt(tC,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return W(n,function(i,o){return[i[0]-t[0]*e[o][0],i[1]-t[1]*e[o][1]]})}};function tC(n,e,t,i){return[e[0]-i[n]*t[0],e[1]-i[n]*t[1]]}function DY(n,e){var t=eC(n),i=eC(e),o=[t[0]/i[0],t[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function eC(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const Vy=MY;var zy=C,TY=qL("toolbox-dataZoom_"),CY=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){this._brushController||(this._brushController=new Uv(o.getZr()),this._brushController.on("brush",Z(this._onBrush,this)).mount()),LY(t,i,this,r,o),kY(t,i)},e.prototype.onclick=function(t,i,o){AY[o].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var o={},r=this.ecModel;this._brushController.updateCovers([]);var a=new Vy(By(this.model),r,{include:["grid"]});a.matchOutputRanges(i,r,function(u,c,h){if(h.type==="cartesian2d"){var p=u.brushType;p==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[p],h,c)}}),yY(r,o),this._dispatchZoomAction(o);function s(u,c,h){var p=c.getAxis(u),d=p.model,f=l(u,d,r),g=f.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=wr(0,h.slice(),p.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),f&&(o[f.id]={dataZoomId:f.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var p;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var f=d.getAxisModel(u,c.componentIndex);f&&(p=d)}),p}},e.prototype._dispatchZoomAction=function(t){var i=[];zy(t,function(o,r){i.push(it(o))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(_n),AY={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(mY(this.ecModel))}};function By(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function kY(n,e){n.setIconStatus("back",_Y(e)>1?"emphasis":"normal")}function LY(n,e,t,i,o){var r=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(r=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=r,n.setIconStatus("zoom",r?"emphasis":"normal");var a=new Vy(By(n),e,{include:["grid"]}),s=a.makePanelOpts(o,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(r&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}AO("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),o=[],r=By(i),a=rs(n,r);zy(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),zy(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:TY+u+h};p[c]=h,o.push(p)}return o});const NY=CY;function EY(n){n.registerComponentModel(K9),n.registerComponentView(tY),Oa("saveAsImage",nY),Oa("magicType",rY),Oa("dataView",vY),Oa("dataZoom",NY),Oa("restore",wY),mt(j9)}var OY=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(wt);const PY=OY;function nC(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function iC(n){if(St.domSupported){for(var e=document.documentElement.style,t=0,i=n.length;t<i;t++)if(n[t]in e)return n[t]}}var oC=iC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),RY=iC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rC(n,e){if(!n)return e;e=Qx(e,!0);var t=n.indexOf(e);return n=t===-1?e:"-"+n.slice(0,t)+"-"+e,n.toLowerCase()}function VY(n,e){var t=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return t?e?t[e]:t:null}var zY=rC(RY,"transition"),Fy=rC(oC,"transform"),BY="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(St.transform3dSupported?"will-change:transform;":"");function FY(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function GY(n,e,t){if(!X(t)||t==="inside")return"";var i=n.get("backgroundColor"),o=n.get("borderWidth");e=jo(e);var r=FY(t),a=Math.max(Math.round(o)*1.5,6),s="",l=Fy+":",u;yt(["left","right"],r)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=r==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=r==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+o,p=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*o)/2+Math.SQRT2*o-(p-h)/2)*100)/100;s+=";"+r+":-"+d+"px";var f=e+" solid "+o+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function WY(n,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+t,o="opacity"+i+",visibility"+i;return e||(i=" "+n+"s "+t,o+=St.transformSupported?","+Fy+i:",left"+i+",top"+i),zY+":"+o}function aC(n,e,t){var i=n.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!St.transformSupported)return t?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=St.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return t?"top:0;left:0;"+Fy+":"+a+";":[["top",0],["left",0],[oC,a]]}function HY(n){var e=[],t=n.get("fontSize"),i=n.getTextColor();i&&e.push("color:"+i),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var o=n.get("textShadowColor"),r=n.get("textShadowBlur")||0,a=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return o&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),C(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function YY(n,e,t){var i=[],o=n.get("transitionDuration"),r=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),h=ob(n,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&o&&i.push(WY(o,t)),r&&i.push("background-color:"+r),C(["width","color","radius"],function(d){var f="border-"+d,g=Qx(f),v=n.get(g);v!=null&&i.push(f+":"+v+(d==="color"?"":"px"))}),i.push(HY(c)),h!=null&&i.push("padding:"+na(h).join("px ")+"px"),i.join(";")+";"}function sC(n,e,t,i,o){var r=e&&e.painter;if(t){var a=r&&r.getViewportRoot();a&&mk(n,a,document.body,i,o)}else{n[0]=i,n[1]=o;var s=r&&r.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var XY=function(){function n(e,t,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,St.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var r=this._zr=t.getZr(),a=this._appendToBody=i&&i.appendToBody;sC(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(o):e.appendChild(o),this._container=e;var s=this;o.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},o.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=r.handler,c=r.painter.getViewportRoot();tn(c,l,!0),u.dispatch("mousemove",l)}},o.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,i=VY(t,"position"),o=t.style;o.position!=="absolute"&&i!=="absolute"&&(o.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,r=this._styleCoord;i.innerHTML?o.cssText=BY+YY(e,!this._firstShow,this._longHide)+aC(r[0],r[1],!0)+("border-color:"+jo(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,i,o,r){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(X(r)&&i.get("trigger")==="item"&&!nC(i)&&(s=GY(i,o,r)),X(e))a.innerHTML=e+s;else if(e){a.innerHTML="",G(e)||(e=[e]);for(var l=0;l<e.length;l++)kr(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},n.prototype.moveTo=function(e,t){var i=this._styleCoord;if(sC(i,this._zr,this._appendToBody,e,t),i[0]!=null&&i[1]!=null){var o=this.el.style,r=aC(i[0],i[1]);C(r,function(a){o[a[0]]=a[1]})}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",St.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},n}();const UY=XY;var ZY=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),uC(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(e,t,i,o,r){var a=this;tt(e)&&At(process.env.NODE_ENV!=="production"?"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 Tt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:o,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:ob(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),C(["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(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=lC(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},n.prototype.moveTo=function(e,t){var i=this.el;if(i){var o=this._styleCoord;uC(o,this._zr,e,t),e=o[0],t=o[1];var r=i.style,a=co(r.borderWidth||0),s=lC(r);i.x=e+a+s.left,i.y=t+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function co(n){return Math.max(0,n)}function lC(n){var e=co(n.shadowBlur||0),t=co(n.shadowOffsetX||0),i=co(n.shadowOffsetY||0);return{left:co(e-t),right:co(e+t),top:co(e-i),bottom:co(e+i)}}function uC(n,e,t,i){n[0]=t,n[1]=i,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}const jY=ZY;var qY=new It({shape:{x:-1,y:-1,width:2,height:2}}),KY=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(St.node||!i.getDom())){var o=t.getComponent("tooltip"),r=this._renderMode=nN(o.get("renderMode"));this._tooltipContent=r==="richText"?new jY(i):new UY(i.getDom(),i,{appendToBody:o.get("appendToBody",!0)})}},e.prototype.render=function(t,i,o){if(!(St.node||!o.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=o;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?ha(this,"_updatePosition",50,"fixRate"):Ps(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");fT("itemTooltip",this._api,Z(function(o,r,a){i!=="none"&&(i.indexOf(o)>=0?this._tryShow(r,a):o==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,o=this._api,r=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&r!=="none"&&r!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&a.manuallyShowTip(t,i,o,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,o,r){if(!(r.from===this.uid||St.node||!o.getDom())){var a=cC(r,o);this._ticket="";var s=r.dataByCoordSys,l=tX(r,i,o);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:r.position,positionDefault:"bottom"},a)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=qY;c.x=r.x,c.y=r.y,c.update(),st(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},a)}else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:s,tooltipOption:r.tooltipOption},a);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,o,r))return;var h=vT(r,i),p=h.point[0],d=h.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:h.el,position:r.position,positionDefault:"bottom"},a)}else r.x!=null&&r.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:o.getZr().findHover(r.x,r.y).target},a))}},e.prototype.manuallyHideTip=function(t,i,o,r){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(cC(r,o))},e.prototype._manuallyAxisShowTip=function(t,i,o,r){var a=r.seriesIndex,s=r.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var c=u.getData(),h=Cl([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:r.position}),!0}}},e.prototype._tryShow=function(t,i){var o=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(o){this._lastDataByCoordSys=null;var s,l;tr(o,function(u){if(st(u).dataIndex!=null)return s=u,!0;if(st(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,i):l?this._showComponentItemTooltip(t,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var o=t.get("showDelay");i=Z(i,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(i,o):i()},e.prototype._showAxisTooltip=function(t,i){var o=this._ecModel,r=this._tooltipModel,a=[i.offsetX,i.offsetY],s=Cl([i.tooltipOption],r),l=this._renderMode,u=[],c=ce("section",{blocks:[],noHeader:!0}),h=[],p=new If;C(t,function(m){C(m.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!_||w==null)){var b=lT(w,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),S=ce("section",{header:b,noHeader:!wn(b),sortBlocks:!0,blocks:[]});c.blocks.push(S),C(x.seriesDataIndices,function(M){var D=o.getSeriesByIndex(M.seriesIndex),T=M.dataIndexInside,I=D.getDataParams(T);if(!(I.dataIndex<0)){I.axisDim=x.axisDim,I.axisIndex=x.axisIndex,I.axisType=x.axisType,I.axisId=x.axisId,I.axisValue=lg(_.axis,{value:w}),I.axisValueLabel=b,I.marker=p.makeTooltipMarker("item",jo(I.color),l);var A=z_(D.formatTooltip(T,!0,null)),k=A.frag;if(k){var L=Cl([D],r).get("valueFormatter");S.blocks.push(L?z({valueFormatter:L},k):k)}A.text&&h.push(A.text),u.push(I)}})}})}),c.blocks.reverse(),h.reverse();var d=i.position,f=s.get("order"),g=eb(c,p,l,f,o.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var v=l==="richText"?`
|
|
76
|
+
|
|
77
|
+
`:"<br/>",y=h.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],d,null,p)})},e.prototype._showSeriesItemTooltip=function(t,i,o){var r=this._ecModel,a=st(i),s=a.seriesIndex,l=r.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,p=u.getData(h),d=this._renderMode,f=t.positionDefault,g=Cl([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var y=u.getDataParams(c,h),m=new If;y.marker=m.makeTooltipMarker("item",jo(y.color),d);var x=z_(u.formatTooltip(c,!1,h)),_=g.get("order"),w=g.get("valueFormatter"),b=x.frag,S=b?eb(w?z({valueFormatter:w},b):b,m,d,_,r.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,M,t.offsetX,t.offsetY,t.position,t.target,m)}),o({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,o){var r=st(i),a=r.tooltipConfig,s=a.option||{};if(X(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(r.componentMainType,r.componentIndex);c&&u.push(c),u.push({formatter:s.content});var h=t.positionDefault,p=Cl(u,this._tooltipModel,h?{position:h}:null),d=p.get("content"),f=Math.random()+"",g=new If;this._showOrMove(p,function(){var v=it(p.get("formatterParams")||{});this._showTooltipContent(p,d,v,f,t.offsetX,t.offsetY,t.position,i,g)}),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,o,r,a,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var d=i,f=this._getNearestPoint([a,s],o,t.get("trigger"),t.get("borderColor")),g=f.color;if(p)if(X(p)){var v=t.ecModel.get("useUTC"),y=G(o)?o[0]:o,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=p,m&&(d=Ku(y.axisValue,d,v)),d=t_(d,o,!0)}else if(Q(p)){var x=Z(function(_,w){_===this._ticket&&(h.setContent(w,c,t,g,l),this._updatePosition(t,l,a,s,h,o,u))},this);this._ticket=r,d=p(o,r,x)}else d=p;h.setContent(d,c,t,g,l),h.show(t,g),this._updatePosition(t,l,a,s,h,o,u)}},e.prototype._getNearestPoint=function(t,i,o,r){if(o==="axis"||G(i))return{color:r||(this._renderMode==="html"?"#fff":"none")};if(!G(i))return{color:r||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,o,r,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||t.get("position");var h=a.getSize(),p=t.get("align"),d=t.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),Q(i)&&(i=i([o,r],s,a.el,f,{viewSize:[u,c],contentSize:h.slice()})),G(i))o=H(i[0],u),r=H(i[1],c);else if(tt(i)){var g=i;g.width=h[0],g.height=h[1];var v=ae(g,{width:u,height:c});o=v.x,r=v.y,p=null,d=null}else if(X(i)&&l){var y=JY(i,f,h,t.get("borderWidth"));o=y[0],r=y[1]}else{var y=$Y(o,r,a,u,c,p?null:20,d?null:20);o=y[0],r=y[1]}if(p&&(o-=hC(p)?h[0]/2:p==="right"?h[0]:0),d&&(r-=hC(d)?h[1]/2:d==="bottom"?h[1]:0),nC(t)){var y=QY(o,r,a,u,c);o=y[0],r=y[1]}a.moveTo(o,r)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var o=this._lastDataByCoordSys,r=this._cbParamsList,a=!!o&&o.length===t.length;return a&&C(o,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&C(u,function(p,d){var f=h[d]||{},g=p.seriesDataIndices||[],v=f.seriesDataIndices||[];a=a&&p.value===f.value&&p.axisType===f.axisType&&p.axisId===f.axisId&&g.length===v.length,a&&C(g,function(y,m){var x=v[m];a=a&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),r&&C(p.seriesDataIndices,function(y){var m=y.seriesIndex,x=i[m],_=r[m];x&&_&&_.data!==x.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){St.node||!i.getDom()||(Ps(this,"_updatePosition"),this._tooltipContent.dispose(),by("itemTooltip",i))},e.type="tooltip",e}(qt);function Cl(n,e,t){var i=e.ecModel,o;t?(o=new Vt(t,i,i),o=new Vt(e.option,o,i)):o=e;for(var r=n.length-1;r>=0;r--){var a=n[r];a&&(a instanceof Vt&&(a=a.get("tooltip",!0)),X(a)&&(a={formatter:a}),a&&(o=new Vt(a,o,i)))}return o}function cC(n,e){return n.dispatchAction||Z(e.dispatchAction,e)}function $Y(n,e,t,i,o,r,a){var s=t.getSize(),l=s[0],u=s[1];return r!=null&&(n+l+r+2>i?n-=l+r:n+=r),a!=null&&(e+u+a>o?e-=u+a:e+=a),[n,e]}function QY(n,e,t,i,o){var r=t.getSize(),a=r[0],s=r[1];return n=Math.min(n+a,i)-a,e=Math.min(e+s,o)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function JY(n,e,t,i){var o=t[0],r=t[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}function hC(n){return n==="center"||n==="middle"}function tX(n,e,t){var i=id(n).queryOptionMap,o=i.keys()[0];if(!(!o||o==="series")){var r=as(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s=t.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=st(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:o,componentIndex:a.componentIndex,el:l}}}}const eX=KY;function nX(n){mt(Dl),n.registerComponentModel(PY),n.registerComponentView(eX),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}var iX=["rect","polygon","keep","clear"];function oX(n,e){var t=Nt(n?n.brush:[]);if(t.length){var i=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var o=n&&n.toolbox;G(o)&&(o=o[0]),o||(o={feature:{}},n.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),rX(s),e&&!s.length&&s.push.apply(s,iX)}}function rX(n){var e={};C(n,function(t){e[t]=1}),n.length=0,C(e,function(t,i){n.push(i)})}var pC=C;function dC(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function Gy(n,e,t){var i={};return pC(e,function(r){var a=i[r]=o();pC(n[r],function(s,l){if(xe.isValidType(l)){var u={type:l,visual:s};t&&t(u,r),a[l]=new xe(u),l==="opacity"&&(u=it(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new xe(u))}})}),i;function o(){var r=function(){};r.prototype.__hidden=r.prototype;var a=new r;return a}}function fC(n,e,t){var i;C(t,function(o){e.hasOwnProperty(o)&&dC(e[o])&&(i=!0)}),i&&C(t,function(o){e.hasOwnProperty(o)&&dC(e[o])?n[o]=it(e[o]):delete n[o]})}function aX(n,e,t,i,o,r){var a={};C(n,function(h){var p=xe.prepareVisualTypes(e[h]);a[h]=p});var s;function l(h){return Lf(t,s,h)}function u(h,p){Db(t,s,h,p)}r==null?t.each(c):t.each([r],c);function c(h,p){s=r==null?h:p;var d=t.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=i.call(o,h),g=e[f],v=a[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(h,l,u)}}}function sX(n,e,t,i){var o={};return C(n,function(r){var a=xe.prepareVisualTypes(e[r]);o[r]=a}),{progress:function(r,a){var s;i!=null&&(s=a.getDimensionIndex(i));function l(_){return Lf(a,c,_)}function u(_,w){Db(a,c,_,w)}for(var c,h=a.getStore();(c=r.next())!=null;){var p=a.getRawDataItem(c);if(!(p&&p.visualMap===!1))for(var d=i!=null?h.get(s,c):c,f=t(d),g=e[f],v=o[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(d,l,u)}}}}}function lX(n){var e=n.brushType,t={point:function(i){return gC[e].point(i,t,n)},rect:function(i){return gC[e].rect(i,t,n)}};return t}var gC={lineX:vC(0),lineY:vC(1),rect:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])},rect:function(n,e,t){return n&&t.boundingRect.intersect(n)}},polygon:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])&&ar(t.range,n[0],n[1])},rect:function(n,e,t){var i=t.range;if(!n||i.length<=1)return!1;var o=n.x,r=n.y,a=n.width,s=n.height,l=i[0];if(ar(i,o,r)||ar(i,o+a,r)||ar(i,o,r+s)||ar(i,o+a,r+s)||dt.create(n).contain(l[0],l[1])||bs(o,r,o+a,r,i)||bs(o,r,o,r+s,i)||bs(o+a,r,o+a,r+s,i)||bs(o,r+s,o+a,r+s,i))return!0}}};function vC(n){var e=["x","y"],t=["width","height"];return{point:function(i,o,r){if(i){var a=r.range,s=i[n];return Al(s,a)}},rect:function(i,o,r){if(i){var a=r.range,s=[i[e[n]],i[e[n]]+i[t[n]]];return s[1]<s[0]&&s.reverse(),Al(s[0],a)||Al(s[1],a)||Al(a[0],s)||Al(a[1],s)}}}}function Al(n,e){return e[0]<=n&&n<=e[1]}var yC=["inBrush","outOfBrush"],Wy="__ecBrushSelect",Hy="__ecInBrushSelectEvent";function mC(n){n.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Vy(e.option,n);t.setInputRanges(e.areas,n)})}function uX(n,e,t){var i=[],o,r;n.eachComponent({mainType:"brush"},function(a){t&&t.type==="takeGlobalCursor"&&a.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),mC(n),n.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:it(a.areas),selected:[]};i.push(l);var u=a.option,c=u.brushLink,h=[],p=[],d=[],f=!1;s||(o=u.throttleType,r=u.throttleDelay);var g=W(a.areas,function(w){var b=dX[w.brushType],S=nt({boundingRect:b?b(w):void 0},w);return S.selectors=lX(S),S}),v=Gy(a.option,yC,function(w){w.mappingMethod="fixed"});G(c)&&C(c,function(w){h[w]=1});function y(w){return c==="all"||!!h[w]}function m(w){return!!w.length}n.eachSeries(function(w,b){var S=d[b]=[];w.subType==="parallel"?x(w,b):_(w,b,S)});function x(w,b){var S=w.coordinateSystem;f=f||S.hasAxisBrushed(),y(b)&&S.eachActiveState(w.getData(),function(M,D){M==="active"&&(p[D]=1)})}function _(w,b,S){if(!(!w.brushSelector||pX(a,b))&&(C(g,function(D){a.brushTargetManager.controlSeries(D,w,n)&&S.push(D),f=f||m(S)}),y(b)&&m(S))){var M=w.getData();M.each(function(D){xC(w,S,M,D)&&(p[D]=1)})}}n.eachSeries(function(w,b){var S={seriesId:w.id,seriesIndex:b,seriesName:w.name,dataIndex:[]};l.selected.push(S);var M=d[b],D=w.getData(),T=y(b)?function(I){return p[I]?(S.dataIndex.push(D.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return xC(w,M,D,I)?(S.dataIndex.push(D.getRawIndex(I)),"inBrush"):"outOfBrush"};(y(b)?f:m(M))&&aX(yC,v,D,T)})}),cX(e,o,r,i,t)}function cX(n,e,t,i,o){if(o){var r=n.getZr();if(!r[Hy]){r[Wy]||(r[Wy]=hX);var a=ha(r,Wy,t,e);a(n,i)}}}function hX(n,e){if(!n.isDisposed()){var t=n.getZr();t[Hy]=!0,n.dispatchAction({type:"brushSelect",batch:e}),t[Hy]=!1}}function xC(n,e,t,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(n.brushSelector(i,t,a.selectors,a))return!0}}function pX(n,e){var t=n.option.seriesIndex;return t!=null&&t!=="all"&&(G(t)?yt(t,e)<0:e!==t)}var dX={rect:function(n){return _C(n.range)},polygon:function(n){for(var e,t=n.range,i=0,o=t.length;i<o;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var r=t[i];r[0]<e[0][0]&&(e[0][0]=r[0]),r[0]>e[0][1]&&(e[0][1]=r[0]),r[1]<e[1][0]&&(e[1][0]=r[1]),r[1]>e[1][1]&&(e[1][1]=r[1])}return e&&_C(e)}};function _C(n){return new dt(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var fX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new Uv(i.getZr())).on("brush",Z(this._onBrush,this)).mount()},e.prototype.render=function(t,i,o,r){this.model=t,this._updateController(t,i,o,r)},e.prototype.updateTransform=function(t,i,o,r){mC(i),this._updateController(t,i,o,r)},e.prototype.updateVisual=function(t,i,o,r){this.updateTransform(t,i,o,r)},e.prototype.updateView=function(t,i,o,r){this._updateController(t,i,o,r)},e.prototype._updateController=function(t,i,o,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(o)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,o=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:it(o),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:it(o),$from:i})},e.type="brush",e}(qt);const gX=fX;var vX="#ddd",yX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&fC(o,t,["inBrush","outOfBrush"]);var r=o.inBrush=o.inBrush||{};o.outOfBrush=o.outOfBrush||{color:vX},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(et(G(t)),C(t,function(i){et(i.brushType,"Illegal areas")})),t&&(this.areas=W(t,function(i){return bC(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=bC(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(wt);function bC(n,e){return pt({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Vt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const mX=yX;var xX=["rect","polygon","lineX","lineY","keep","clear"],_X=function(n){R(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o){var r,a,s;i.eachComponent({mainType:"brush"},function(l){r=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=r,this._brushMode=a,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===r)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,o){this.render(t,i,o)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),o={};return C(t.get("type",!0),function(r){i[r]&&(o[r]=i[r])}),o},e.prototype.onclick=function(t,i,o){var r=this._brushType,a=this._brushMode;o==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:o==="keep"?r:r===o?!1:o,brushMode:o==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(t){var i={show:!0,type:xX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(_n);const bX=_X;function wX(n){n.registerComponentView(gX),n.registerComponentModel(mX),n.registerPreprocessor(oX),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,uX),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$t),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$t),Oa("brush",bX)}var SX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(wt),MX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){if(this.group.removeAll(),!!t.get("show")){var r=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ct(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Tt({style:Rt(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),p=t.get("subtext"),d=new Tt({style:Rt(s,{text:p,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),v=t.get("triggerEvent",!0);c.silent=!f&&!v,d.silent=!g&&!v,f&&c.on("click",function(){ec(f,"_"+t.get("target"))}),g&&d.on("click",function(){ec(g,"_"+t.get("subtarget"))}),st(c).eventData=st(d).eventData=v?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(c),p&&r.add(d);var y=r.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var x=ae(m,{width:o.getWidth(),height:o.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),r.x=x.x,r.y=x.y,r.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),d.setStyle(_),y=r.getBoundingRect();var w=x.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var S=new It({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(S)}},e.type="title",e}(qt);function IX(n){n.registerComponentModel(SX),n.registerComponentView(MX)}var DX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],o=t.axisType,r=this._names=[],a;o==="category"?(a=[],C(i,function(u,c){var h=re(Gr(u),""),p;tt(u)?(p=it(u),p.value=c):p=c,a.push(p),r.push(h)})):a=i;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",l=this._data=new Ne([{name:"value",type:s}],this);l.initData(a,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(wt);const wC=DX;var SC=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Ui(wC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(wC);Jt(SC,xf.prototype);const TX=SC;var CX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(qt);const AX=CX;var kX=function(n){R(e,n);function e(t,i,o,r){var a=n.call(this,t,i,o)||this;return a.type=r||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(On);const LX=kX;var Yy=Math.PI,MC=Mt(),NX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,o){if(this.model=t,this.api=o,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,o),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(r,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return ce("nameValue",{noName:!0,value:c})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](r,a,l,t)},this),this._renderAxisLabel(r,s,l,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var o=t.get(["label","position"]),r=t.get("orient"),a=OX(t,i),s;o==null||o==="auto"?s=r==="horizontal"?a.y+a.height/2<i.getHeight()/2?"-":"+":a.x+a.width/2<i.getWidth()/2?"+":"-":X(o)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][o]:s=o;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Yy/2},h=r==="vertical"?a.height:a.width,p=t.getModel("controlStyle"),d=p.get("show",!0),f=d?p.get("itemSize"):0,g=d?p.get("itemGap"):0,v=f+g,y=t.get(["label","rotate"])||0;y=y*Yy/180;var m,x,_,w=p.get("position",!0),b=d&&p.get("showPlayBtn",!0),S=d&&p.get("showPrevBtn",!0),M=d&&p.get("showNextBtn",!0),D=0,T=h;w==="left"||w==="bottom"?(b&&(m=[0,0],D+=v),S&&(x=[D,0],D+=v),M&&(_=[T-f,0],T-=v)):(b&&(m=[T-f,0],T-=v),S&&(x=[0,0],D+=v),M&&(_=[T-f,0],T-=v));var I=[D,T];return t.get("inverse")&&I.reverse(),{viewRect:a,mainLength:h,orient:r,rotation:c[r],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[r],playPosition:m,prevBtnPosition:x,nextBtnPosition:_,axisExtent:I,controlSize:f,controlGap:g}},e.prototype._position=function(t,i){var o=this._mainGroup,r=this._labelGroup,a=t.viewRect;if(t.orient==="vertical"){var s=en(),l=a.x,u=a.y+a.height;zn(s,s,[-l,-u]),xo(s,s,-Yy/2),zn(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=m(a),h=m(o.getBoundingRect()),p=m(r.getBoundingRect()),d=[o.x,o.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var g=t.labelPosOpt;if(g==null||X(g)){var v=g==="+"?0:1;x(d,h,c,1,v),x(f,p,c,1,1-v)}else{var v=g>=0?0:1;x(d,h,c,1,v),f[1]=d[1]+g}o.setPosition(d),r.setPosition(f),o.rotation=r.rotation=t.rotation,y(o),y(r);function y(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,w,b,S,M){_[S]+=b[S][M]-w[S][M]}},e.prototype._createAxis=function(t,i){var o=i.getData(),r=i.get("axisType"),a=EX(i,r);a.getTicks=function(){return o.mapArray(["value"],function(u){return{value:u}})};var s=o.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new LX("value",a,t.axisExtent,r);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new ot;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,o,r){var a=o.getExtent();if(r.get(["lineStyle","show"])){var s=new de({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:z({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new de({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:nt({lineCap:"round",lineWidth:s.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,o,r){var a=this,s=r.getData(),l=o.scale.getTicks();this._tickSymbols=[],C(l,function(u){var c=o.dataToCoord(u.value),h=s.getItemModel(u.value),p=h.getModel("itemStyle"),d=h.getModel(["emphasis","itemStyle"]),f=h.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Z(a._changeTimeline,a,u.value)},v=IC(h,p,i,g);v.ensureState("emphasis").style=d.getItemStyle(),v.ensureState("progress").style=f.getItemStyle(),Go(v);var y=st(v);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=r):y.dataIndex=y.dataModel=null,a._tickSymbols.push(v)})},e.prototype._renderAxisLabel=function(t,i,o,r){var a=this,s=o.getLabelModel();if(s.get("show")){var l=r.getData(),u=o.getViewLabels();this._tickLabels=[],C(u,function(c){var h=c.tickValue,p=l.getItemModel(h),d=p.getModel("label"),f=p.getModel(["emphasis","label"]),g=p.getModel(["progress","label"]),v=o.dataToCoord(c.tickValue),y=new Tt({x:v,y:0,rotation:t.labelRotation-t.rotation,onclick:Z(a._changeTimeline,a,h),silent:!1,style:Rt(d,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Rt(f),y.ensureState("progress").style=Rt(g),i.add(y),Go(y),MC(y).dataIndex=h,a._tickLabels.push(y)})}},e.prototype._renderControl=function(t,i,o,r){var a=t.controlSize,s=t.rotation,l=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),c=r.getPlayState(),h=r.get("inverse",!0);p(t.nextBtnPosition,"next",Z(this._changeTimeline,this,h?"-":"+")),p(t.prevBtnPosition,"prev",Z(this._changeTimeline,this,h?"+":"-")),p(t.playPosition,c?"stop":"play",Z(this._handlePlayClick,this,!c),!0);function p(d,f,g,v){if(d){var y=In(ct(r.get(["controlStyle",f+"BtnSize"]),a),a),m=[0,-y/2,y,y],x=PX(r,f+"Icon",m,{x:d[0],y:d[1],originX:a/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,i.add(x),Go(x)}}},e.prototype._renderCurrentPointer=function(t,i,o,r){var a=r.getData(),s=r.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=Z(u._handlePointerDrag,u),h.ondragend=Z(u._handlePointerDragend,u),DC(h,u._progressLine,s,o,r,!0)},onUpdate:function(h){DC(h,u._progressLine,s,o,r)}};this._currentPointer=IC(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var o=this._toAxisCoord(t)[0],r=this._axis,a=rn(r.getExtent().slice());o>a[1]&&(o=a[1]),o<a[0]&&(o=a[0]),this._currentPointer.x=o,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=o,s.dirty());var l=this._findNearestTick(o),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return Ln(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),o=1/0,r,a=this._axis;return i.each(["value"],function(s,l){var u=a.dataToCoord(s),c=Math.abs(u-t);c<o&&(o=c,r=l)}),r},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,o=this._tickLabels;if(i)for(var r=0;r<i.length;r++)i&&i[r]&&i[r].toggleState("progress",r<t);if(o)for(var r=0;r<o.length;r++)o&&o[r]&&o[r].toggleState("progress",MC(o[r]).dataIndex<=t)},e.type="timeline.slider",e}(AX);function EX(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new ig({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new Ww({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new to}}function OX(n,e){return ae(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},n.get("padding"))}function PX(n,e,t,i){var o=i.style,r=_s(n.get(["controlStyle",e]),i||{},new dt(t[0],t[1],t[2],t[3]));return o&&r.setStyle(o),r}function IC(n,e,t,i,o,r){var a=e.get("color");if(o)o.setColor(a),t.add(o),r&&r.onUpdate(o);else{var s=n.get("symbol");o=oe(s,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),t.add(o),r&&r.onCreate(o)}var l=e.getItemStyle(["color"]);o.setStyle(l),i=pt({rectHover:!0,z2:100},i,!0);var u=da(n.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=er(n.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=n.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function DC(n,e,t,i,o,r){if(!n.dragging){var a=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",t));if(r||!a.get("animation",!0))n.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const RX=NX;function VX(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var o=t.getComponent("timeline");return o&&e.currentIndex!=null&&(o.setCurrentIndex(e.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),nt({currentIndex:o.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function zX(n){var e=n&&n.timeline;G(e)||(e=e?[e]:[]),C(e,function(t){t&&BX(t)})}function BX(n){var e=n.type,t={number:"value",time:"time"};if(t[e]&&(n.axisType=t[e],delete n.type),TC(n),Tr(n,"controlPosition")){var i=n.controlStyle||(n.controlStyle={});Tr(i,"position")||(i.position=n.controlPosition),i.position==="none"&&!Tr(i,"show")&&(i.show=!1,delete i.position),delete n.controlPosition}C(n.data||[],function(o){tt(o)&&!G(o)&&(!Tr(o,"value")&&Tr(o,"name")&&(o.value=o.name),TC(o))})}function TC(n){var e=n.itemStyle||(n.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=n.label||n.label||{},o=i.normal||(i.normal={}),r={normal:1,emphasis:1};C(i,function(a,s){!r[s]&&!Tr(o,s)&&(o[s]=a)}),t.label&&!Tr(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Tr(n,e){return n.hasOwnProperty(e)}function FX(n){n.registerComponentModel(TX),n.registerComponentView(RX),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),VX(n),n.registerPreprocessor(zX)}function Xy(n,e){if(!n)return!1;for(var t=G(n)?n:[n],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function Eh(n){To(n,"label",["show"])}var Oh=Mt(),CC=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,i,o){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,o),this._mergeOption(t,o,!1,!0)},e.prototype.isAnimationEnabled=function(){if(St.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,o,r){var a=this.mainType;o||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Oh(s)[a];if(!l||!l.data){Oh(s)[a]=null;return}u?u._mergeOption(l,i,!0):(r&&Eh(l),C(l.data,function(c){c instanceof Array?(Eh(c[0]),Eh(c[1])):Eh(c)}),u=this.createMarkerModelFromSeries(l,this,i),z(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Oh(s)[a]=u},this)},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.getRawValue(t),s=r.getName(t);return ce("section",{header:this.name,blocks:[ce("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,i){return Oh(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(wt);Jt(CC,xf.prototype);const ho=CC;var GX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ho);const WX=GX;function Uy(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function HX(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function Ph(n,e,t,i,o,r){var a=[],s=Ji(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=jy(e,l,n),c=e.indicesOfNearest(l,u)[0];a[o]=e.get(t,c),a[r]=e.get(l,c);var h=e.get(i,c),p=Gn(e.get(i,c));return p=Math.min(p,20),p>=0&&(a[r]=+a[r].toFixed(p)),[a,h]}var Zy={min:lt(Ph,"min"),max:lt(Ph,"max"),average:lt(Ph,"average"),median:lt(Ph,"median")};function kl(n,e){if(e){var t=n.getData(),i=n.coordinateSystem,o=i&&i.dimensions;if(!HX(e)&&!G(e.coord)&&G(o)){var r=AC(e,t,i,n);if(e=it(e),e.type&&Zy[e.type]&&r.baseAxis&&r.valueAxis){var a=yt(o,r.baseAxis.dim),s=yt(o,r.valueAxis.dim),l=Zy[e.type](t,r.baseDataDim,r.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!G(o))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Zy[u[c]]&&(u[c]=jy(t,t.mapDimension(o[c]),u[c]));return e}}function AC(n,e,t,i){var o={};return n.valueIndex!=null||n.valueDim!=null?(o.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,o.valueAxis=t.getAxis(YX(i,o.valueDataDim)),o.baseAxis=t.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=t.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function YX(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Ll(n,e){return n&&n.containData&&e.coord&&!Uy(e)?n.containData(e.coord):!0}function XX(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!Uy(e)&&!Uy(t)?n.containZone(e.coord,t.coord):!0}function kC(n,e){return n?function(t,i,o,r){var a=r<2?t.coord&&t.coord[r]:t.value;return qi(a,e[r])}:function(t,i,o,r){return qi(t.value,e[r])}}function jy(n,e,t){if(t==="average"){var i=0,o=0;return n.each(e,function(r,a){isNaN(r)||(i+=r,o++)}),i/o}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var qy=Mt(),UX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=K()},e.prototype.render=function(t,i,o){var r=this,a=this.markerGroupMap;a.each(function(s){qy(s).keep=!1}),i.eachSeries(function(s){var l=ho.getMarkerModelFromSeries(s,r.type);l&&r.renderSeries(s,l,i,o)}),a.each(function(s){!qy(s).keep&&r.group.remove(s.group)})},e.prototype.markKeep=function(t){qy(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var o=this;C(t,function(r){var a=ho.getMarkerModelFromSeries(r,o.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(i?F1(l):Td(l))})}})},e.type="marker",e}(qt);const Ky=UX;function LC(n,e,t){var i=e.coordinateSystem;n.each(function(o){var r=n.getItemModel(o),a,s=H(r.get("x"),t.getWidth()),l=H(r.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(n.getValues(n.dimensions,o));else if(i){var u=n.get(i.dimensions[0],o),c=n.get(i.dimensions[1],o);a=i.dataToPoint([u,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),n.setItemLayout(o,a)})}var ZX=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=ho.getMarkerModelFromSeries(r,"markPoint");a&&(LC(a.getData(),r,o),this.markerGroupMap.get(r.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new ol),h=jX(a,t,i);i.setData(h),LC(i.getData(),t,r),h.each(function(p){var d=h.getItemModel(p),f=d.getShallow("symbol"),g=d.getShallow("symbolSize"),v=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),m=d.getShallow("symbolKeepAspect");if(Q(f)||Q(g)||Q(v)||Q(y)){var x=i.getRawValue(p),_=i.getDataParams(p);Q(f)&&(f=f(x,_)),Q(g)&&(g=g(x,_)),Q(v)&&(v=v(x,_)),Q(y)&&(y=y(x,_))}var w=d.getModel("itemStyle").getItemStyle(),b=zs(l,"color");w.fill||(w.fill=b),h.setItemVisual(p,{symbol:f,symbolSize:g,symbolRotate:v,symbolOffset:y,symbolKeepAspect:m,style:w})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(p){p.traverse(function(d){st(d).dataModel=i})}),this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(Ky);function jX(n,e,t){var i;n?i=W(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return z(z({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var o=new Ne(i,t),r=W(t.get("data"),lt(kl,e));n&&(r=Lt(r,lt(Ll,n)));var a=kC(!!n,i);return o.initData(r,null,a),o}const qX=ZX;function KX(n){n.registerComponentModel(WX),n.registerComponentView(qX),n.registerPreprocessor(function(e){Xy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var $X=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ho);const QX=$X;var Rh=Mt(),JX=function(n,e,t,i){var o=n.getData(),r;if(G(i))r=i;else{var a=i.type;if(a==="min"||a==="max"||a==="average"||a==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=te(i.yAxis,i.xAxis);else{var u=AC(i,o,e,n);s=u.valueAxis;var c=Dw(o,u.valueDataDim);l=jy(o,c,a)}var h=s.dim==="x"?0:1,p=1-h,d=it(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=t.get("precision");g>=0&&Dt(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[h]=f.coord[h]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&bn("Invalid markLine data."),r=[]}var v=[kl(n,r[0]),kl(n,r[1]),z({},r[2])];return v[2].type=v[2].type||null,pt(v[2],v[0]),pt(v[2],v[1]),v};function Vh(n){return!isNaN(n)&&!isFinite(n)}function NC(n,e,t,i){var o=1-n,r=i.dimensions[n];return Vh(e[o])&&Vh(t[o])&&e[n]===t[n]&&i.getAxis(r).containData(e[n])}function tU(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(NC(1,t,i,n)||NC(0,t,i,n)))return!0}return Ll(n,e[0])&&Ll(n,e[1])}function $y(n,e,t,i,o){var r=i.coordinateSystem,a=n.getItemModel(e),s,l=H(a.get("x"),o.getWidth()),u=H(a.get("y"),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=r.dimensions,h=n.get(c[0],e),p=n.get(c[1],e);s=r.dataToPoint([h,p])}if(dr(r,"cartesian2d")){var d=r.getAxis("x"),f=r.getAxis("y"),c=r.dimensions;Vh(n.get(c[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[t?0:1]):Vh(n.get(c[1],e))&&(s[1]=f.toGlobalCoord(f.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var eU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=ho.getMarkerModelFromSeries(r,"markLine");if(a){var s=a.getData(),l=Rh(a).from,u=Rh(a).to;l.each(function(c){$y(l,c,!0,r,o),$y(u,c,!1,r,o)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(r.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Dv);this.group.add(c.group);var h=nU(a,t,i),p=h.from,d=h.to,f=h.line;Rh(i).from=p,Rh(i).to=d,i.setData(f);var g=i.get("symbol"),v=i.get("symbolSize"),y=i.get("symbolRotate"),m=i.get("symbolOffset");G(g)||(g=[g,g]),G(v)||(v=[v,v]),G(y)||(y=[y,y]),G(m)||(m=[m,m]),h.from.each(function(_){x(p,_,!0),x(d,_,!1)}),f.each(function(_){var w=f.getItemModel(_).getModel("lineStyle").getLineStyle();f.setItemLayout(_,[p.getItemLayout(_),d.getItemLayout(_)]),w.stroke==null&&(w.stroke=p.getItemVisual(_,"style").fill),f.setItemVisual(_,{fromSymbolKeepAspect:p.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(_,"symbolOffset"),fromSymbolRotate:p.getItemVisual(_,"symbolRotate"),fromSymbolSize:p.getItemVisual(_,"symbolSize"),fromSymbol:p.getItemVisual(_,"symbol"),toSymbolKeepAspect:d.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(_,"symbolOffset"),toSymbolRotate:d.getItemVisual(_,"symbolRotate"),toSymbolSize:d.getItemVisual(_,"symbolSize"),toSymbol:d.getItemVisual(_,"symbol"),style:w})}),c.updateData(f),h.line.eachItemGraphicEl(function(_){st(_).dataModel=i,_.traverse(function(w){st(w).dataModel=i})});function x(_,w,b){var S=_.getItemModel(w);$y(_,w,b,t,r);var M=S.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=zs(l,"color")),_.setItemVisual(w,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:ct(S.get("symbolOffset",!0),m[b?0:1]),symbolRotate:ct(S.get("symbolRotate",!0),y[b?0:1]),symbolSize:ct(S.get("symbolSize"),v[b?0:1]),symbol:ct(S.get("symbol",!0),g[b?0:1]),style:M})}this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(Ky);function nU(n,e,t){var i;n?i=W(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return z(z({},c),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var o=new Ne(i,t),r=new Ne(i,t),a=new Ne([],t),s=W(t.get("data"),lt(JX,e,n,t));n&&(s=Lt(s,lt(tU,n)));var l=kC(!!n,i);return o.initData(W(s,function(u){return u[0]}),null,l),r.initData(W(s,function(u){return u[1]}),null,l),a.initData(W(s,function(u){return u[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}const iU=eU;function oU(n){n.registerComponentModel(QX),n.registerComponentView(iU),n.registerPreprocessor(function(e){Xy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var rU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ho);const aU=rU;var zh=Mt(),sU=function(n,e,t,i){var o=i[0],r=i[1];if(!(!o||!r)){var a=kl(n,o),s=kl(n,r),l=a.coord,u=s.coord;l[0]=te(l[0],-1/0),l[1]=te(l[1],-1/0),u[0]=te(u[0],1/0),u[1]=te(u[1],1/0);var c=tp([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function Bh(n){return!isNaN(n)&&!isFinite(n)}function EC(n,e,t,i){var o=1-n;return Bh(e[o])&&Bh(t[o])}function lU(n,e){var t=e.coord[0],i=e.coord[1],o={coord:t,x:e.x0,y:e.y0},r={coord:i,x:e.x1,y:e.y1};return dr(n,"cartesian2d")?t&&i&&(EC(1,t,i)||EC(0,t,i))?!0:XX(n,o,r):Ll(n,o)||Ll(n,r)}function OC(n,e,t,i,o){var r=i.coordinateSystem,a=n.getItemModel(e),s,l=H(a.get(t[0]),o.getWidth()),u=H(a.get(t[1]),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var c=n.getValues(["x0","y0"],e),h=n.getValues(["x1","y1"],e),p=r.clampData(c),d=r.clampData(h),f=[];t[0]==="x0"?f[0]=p[0]>d[0]?h[0]:c[0]:f[0]=p[0]>d[0]?c[0]:h[0],t[1]==="y0"?f[1]=p[1]>d[1]?h[1]:c[1]:f[1]=p[1]>d[1]?c[1]:h[1],s=i.getMarkerPosition(f,t,!0)}else{var g=n.get(t[0],e),v=n.get(t[1],e),y=[g,v];r.clampData&&r.clampData(y,y),s=r.dataToPoint(y,!0)}if(dr(r,"cartesian2d")){var m=r.getAxis("x"),x=r.getAxis("y"),g=n.get(t[0],e),v=n.get(t[1],e);Bh(g)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Bh(v)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var PC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],uU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=ho.getMarkerModelFromSeries(r,"markArea");if(a){var s=a.getData();s.each(function(l){var u=W(PC,function(h){return OC(s,l,h,r,o)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ot});this.group.add(c.group),this.markKeep(c);var h=cU(a,t,i);i.setData(h),h.each(function(p){var d=W(PC,function(M){return OC(h,p,M,t,r)}),f=a.getAxis("x").scale,g=a.getAxis("y").scale,v=f.getExtent(),y=g.getExtent(),m=[f.parse(h.get("x0",p)),f.parse(h.get("x1",p))],x=[g.parse(h.get("y0",p)),g.parse(h.get("y1",p))];rn(m),rn(x);var _=!(v[0]>m[1]||v[1]<m[0]||y[0]>x[1]||y[1]<x[0]),w=!_;h.setItemLayout(p,{points:d,allClipped:w});var b=h.getItemModel(p).getModel("itemStyle").getItemStyle(),S=zs(l,"color");b.fill||(b.fill=S,X(b.fill)&&(b.fill=nu(b.fill,.4))),b.stroke||(b.stroke=S),h.setItemVisual(p,"style",b)}),h.diff(zh(c).data).add(function(p){var d=h.getItemLayout(p);if(!d.allClipped){var f=new Ge({shape:{points:d.points}});h.setItemGraphicEl(p,f),c.group.add(f)}}).update(function(p,d){var f=zh(c).data.getItemGraphicEl(d),g=h.getItemLayout(p);g.allClipped?f&&c.group.remove(f):(f?Ct(f,{shape:{points:g.points}},i,p):f=new Ge({shape:{points:g.points}}),h.setItemGraphicEl(p,f),c.group.add(f))}).remove(function(p){var d=zh(c).data.getItemGraphicEl(p);c.group.remove(d)}).execute(),h.eachItemGraphicEl(function(p,d){var f=h.getItemModel(d),g=h.getItemVisual(d,"style");p.useStyle(h.getItemVisual(d,"style")),ye(p,ue(f),{labelFetcher:i,labelDataIndex:d,defaultText:h.getName(d)||"",inheritColor:X(g.fill)?nu(g.fill,1):"#000"}),ve(p,f),jt(p,null,null,f.get(["emphasis","disabled"])),st(p).dataModel=i}),zh(c).data=h,c.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e}(Ky);function cU(n,e,t){var i,o,r=["x0","y0","x1","y1"];if(n){var a=W(n&&n.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return z(z({},h),{name:u,ordinalMeta:null})});o=W(r,function(u,c){return{name:u,type:a[c%2].type}}),i=new Ne(o,t)}else o=[{name:"value",type:"float"}],i=new Ne(o,t);var s=W(t.get("data"),lt(sU,e,n,t));n&&(s=Lt(s,lt(lU,n)));var l=n?function(u,c,h,p){var d=u.coord[Math.floor(p/2)][p%2];return qi(d,o[p])}:function(u,c,h,p){return qi(u.value,o[p])};return i.initData(s,null,l),i.hasItemOption=!0,i}const hU=uU;function pU(n){n.registerComponentModel(aU),n.registerComponentView(hU),n.registerPreprocessor(function(e){Xy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var dU=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},fU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,o=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),G(i)&&C(i,function(r,a){X(r)&&(r={type:r}),i[a]=pt(r,dU(o,r.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,o=0;o<t.length;o++){var r=t[o].get("name");if(this.isSelected(r)){this.select(r),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],o=[];t.eachRawSeries(function(l){var u=l.name;o.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,p=h.getAllNames();t.isSeriesFiltered(l)||(o=o.concat(p)),p.length?i=i.concat(p):c=!0}else c=!0;c&&nd(l)&&i.push(l.name)}),this._availableNames=o;var r=this.get("data")||i,a=K(),s=W(r,function(l){return(X(l)||Dt(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Vt(l,this,this.ecModel))},this);this._data=Lt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,o=this.get("selectedMode");if(o==="single"){var r=this._data;C(r,function(a){i[a.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;C(t,function(o){i[o.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;C(t,function(o){var r=o.get("name",!0);i.hasOwnProperty(r)||(i[r]=!0),i[r]=!i[r]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&yt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}},e}(wt);const Qy=fU;var Ra=lt,Jy=C,Fh=ot,gU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fh),this.group.add(this._selectorGroup=new Fh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,o){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||a==="auto")&&(a=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,t,i,o,l,s,u);var c=t.getBoxLayoutParams(),h={width:o.getWidth(),height:o.getHeight()},p=t.get("padding"),d=ae(c,h,p),f=this.layoutInner(t,a,d,r,l,u),g=ae(nt({width:f.width,height:f.height},c),h,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YT(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this.getContentGroup(),c=K(),h=i.get("selectedMode"),p=[];o.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),Jy(i.getData(),function(d,f){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
78
|
+
`)){var v=new Fh;v.newline=!0,u.add(v);return}var y=o.getSeriesByName(g)[0];if(!c.get(g)){if(y){var m=y.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,g,f,d,i,t,x,w,_,h,r);b.on("click",Ra(RC,g,null,r,p)).on("mouseover",Ra(tm,y.name,null,r,p)).on("mouseout",Ra(em,y.name,null,r,p)),c.set(g,!0)}else o.eachRawSeries(function(S){if(!c.get(g)&&S.legendVisualProvider){var M=S.legendVisualProvider;if(!M.containName(g))return;var D=M.indexOfName(g),T=M.getItemVisual(D,"style"),I=M.getItemVisual(D,"legendIcon"),A=Ze(T.fill);A&&A[3]===0&&(A[3]=.2,T=z(z({},T),{fill:ui(A,"rgba")}));var k=this._createItem(S,g,f,d,i,t,{},T,I,h,r);k.on("click",Ra(RC,null,g,r,p)).on("mouseover",Ra(tm,null,g,r,p)).on("mouseout",Ra(em,null,g,r,p)),c.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(c.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,r,s,l)},e.prototype._createSelector=function(t,i,o,r,a){var s=this.getSelectorGroup();Jy(t,function(l){var u=l.type,c=new Tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=i.getModel("selectorLabel"),p=i.getModel(["emphasis","selectorLabel"]);ye(c,{normal:h,emphasis:p},{defaultText:l.title}),Go(c)})},e.prototype._createItem=function(t,i,o,r,a,s,l,u,c,h,p){var d=t.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),y=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),x=r.get("icon");c=x||c||"roundRect";var _=vU(c,r,l,u,d,v,p),w=new Fh,b=r.getModel("textStyle");if(Q(t.getLegendIcon)&&(!x||x==="inherit"))w.add(t.getLegendIcon({itemWidth:f,itemHeight:g,icon:c,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var S=x==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(yU({itemWidth:f,itemHeight:g,icon:c,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var M=s==="left"?f+5:-5,D=s,T=a.get("formatter"),I=i;X(T)&&T?I=T.replace("{name}",i??""):Q(T)&&(I=T(i));var A=v?b.getTextColor():r.get("inactiveColor");w.add(new Tt({style:Rt(b,{text:I,x:M,y:g/2,fill:A,align:D,verticalAlign:"middle"},{inheritColor:A})}));var k=new It({shape:w.getBoundingRect(),invisible:!0}),L=r.getModel("tooltip");return L.get("show")&&$r({el:k,componentModel:a,itemName:i,itemTooltipOption:L.option}),w.add(k),w.eachChild(function(N){N.silent=!0}),k.silent=!h,this.getContentGroup().add(w),Go(w),w.__legendDataIndex=o,w},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ko(t.get("orient"),l,t.get("itemGap"),o.width,o.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){Ko("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],f=t.get("selectorButtonGap",!0),g=t.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?d[g]+=c[v]+f:h[g]+=p[v]+f,d[1-g]+=c[y]/2-p[y]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var x={x:0,y:0};return x[v]=c[v]+f+p[v],x[y]=Math.max(c[y],p[y]),x[m]=Math.min(0,p[m]+d[1-g]),x}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(qt);function vU(n,e,t,i,o,r,a){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),Jy(v,function(m,x){v[x]==="inherit"&&(v[x]=y[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:ga(h,a),u.fill==="inherit"&&(u.fill=i[o]),u.stroke==="inherit"&&(u.stroke=i[c]),u.opacity==="inherit"&&(u.opacity=(o==="fill"?i:t).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),d.stroke==="auto"&&(d.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=f==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function yU(n){var e=n.icon||"roundRect",t=oe(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function RC(n,e,t,i){em(n,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:n??e}),tm(n,e,t,i)}function VC(n){for(var e=n.getZr().storage.getDisplayList(),t,i=0,o=e.length;i<o&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function tm(n,e,t,i){VC(t)||t.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:i})}function em(n,e,t,i){VC(t)||t.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:i})}const zC=gU;function mU(n){var e=n.findComponents({mainType:"legend"});e&&e.length&&n.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Nl(n,e,t){var i={},o=n==="toggleSelected",r;return t.eachComponent("legend",function(a){o&&r!=null?a[r?"select":"unSelect"](e.name):n==="allSelect"||n==="inverseSelect"?a[n]():(a[n](e.name),r=a.isSelected(e.name));var s=a.getData();C(s,function(l){var u=l.get("name");if(!(u===`
|
|
79
|
+
`||u==="")){var c=a.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&c:i[u]=c}})}),n==="allSelect"||n==="inverseSelect"?{selected:i}:{name:e.name,selected:i}}function xU(n){n.registerAction("legendToggleSelect","legendselectchanged",lt(Nl,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",lt(Nl,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",lt(Nl,"inverseSelect")),n.registerAction("legendSelect","legendselected",lt(Nl,"select")),n.registerAction("legendUnSelect","legendunselected",lt(Nl,"unSelect"))}function BC(n){n.registerComponentModel(Qy),n.registerComponentView(zC),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,mU),n.registerSubTypeDefaulter("legend",function(){return"plain"}),xU(n)}var _U=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,o){var r=ia(t);n.prototype.init.call(this,t,i,o),FC(this,t,r)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),FC(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Ui(Qy.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}),e}(Qy);function FC(n,e,t){var i=n.getOrient(),o=[1,1];o[i.index]=0,ji(e,t,{type:"box",ignoreSize:!!o})}const bU=_U;var GC=ot,nm=["width","height"],im=["x","y"],wU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new GC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GC)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this;n.prototype.renderInner.call(this,t,i,o,r,a,s,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),p=G(h)?h:[h,h];f("pagePrev",0);var d=i.getModel("pageTextStyle");c.add(new Tt({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1);function f(g,v){var y=g+"DataIndex",m=_s(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:Z(u._pageGo,u,y,i,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});m.name=g,c.add(m)}},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=nm[u],h=im[u],p=nm[1-u],d=im[1-u];a&&Ko("horizontal",l,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],y=it(o);a&&(y[c]=o[c]-g[c]-f);var m=this._layoutContentAndController(t,r,y,u,c,p,d,h);if(a){if(s==="end")v[u]+=m[c]+f;else{var x=g[c]+f;v[u]-=x,m[h]-=x}m[c]+=g[c]+f,v[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]+v[1-u]),l.x=v[0],l.y=v[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,i,o,r,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;Ko(t.get("orient"),c,t.get("itemGap"),r?o.width:null,r?null:o.height),Ko("horizontal",p,t.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),f=p.getBoundingRect(),g=this._showController=d[a]>o[a],v=[-d.x,-d.y];i||(v[r]=c[u]);var y=[0,0],m=[-f.x,-f.y],x=ct(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var _=t.get("pageButtonPosition",!0);_==="end"?m[r]+=o[a]-f[a]:y[r]+=f[a]+x}m[1-r]+=d[s]/2-f[s]/2,c.setPosition(v),h.setPosition(y),p.setPosition(m);var w={x:0,y:0};if(w[a]=g?o[a]:d[a],w[s]=Math.max(d[s],f[s]),w[l]=Math.min(0,f[l]+m[1-r]),h.__rectSize=o[a],g){var b={x:0,y:0};b[a]=Math.max(o[a]-f[a]-x,0),b[s]=w[s],h.setClipPath(new It({shape:b})),h.__rectSize=b[a]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return S.pageIndex!=null&&Ct(c,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),w},e.prototype._pageGo=function(t,i,o){var r=this._getPageInfo(i)[t];r!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var o=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=i[h]!=null,d=o.childOfName(c);d&&(d.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var r=o.childOfName("pageText"),a=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;r&&a&&r.setStyle("text",X(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,a=t.getOrient().index,s=nm[a],l=im[a],u=this._findTargetItemIndex(i),c=o.children(),h=c[u],p=c.length,d=p?1:0,f={contentPosition:[o.x,o.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=_(h);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,x=null;v<=p;++v)x=_(c[v]),(!x&&m.e>y.s+r||x&&!w(x,y.s))&&(m.i>y.i?y=m:y=x,y&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=y.i),++f.pageCount)),m=x;for(var v=u-1,y=g,m=g,x=null;v>=-1;--v)x=_(c[v]),(!x||!w(m,x.s))&&y.i<m.i&&(m=y,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=x;return f;function _(b){if(b){var S=b.getBoundingRect(),M=S[l]+b[l];return{s:M,e:M+S[s],i:b.__legendDataIndex}}}function w(b,S){return b.e>=S&&b.s<=S+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,o=this.getContentGroup(),r;return o.eachChild(function(a,s){var l=a.__legendDataIndex;r==null&&l!=null&&(r=s),l===t&&(i=s)}),i??r},e.type="legend.scroll",e}(zC);const SU=wU;function MU(n){n.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(i)})})}function IU(n){mt(BC),n.registerComponentModel(bU),n.registerComponentView(SU),MU(n)}function DU(n){mt(BC),mt(IU)}var TU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Ui(Tl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Tl);const CU=TU;var om=Mt();function AU(n,e,t){om(n).coordSysRecordMap.each(function(i){var o=i.dataZoomInfoMap.get(e.uid);o&&(o.getRange=t)})}function kU(n,e){for(var t=om(n).coordSysRecordMap,i=t.keys(),o=0;o<i.length;o++){var r=i[o],a=t.get(r),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||WC(t,a))}}}function WC(n,e){if(e){n.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function LU(n,e){var t={model:e,containsPoint:lt(EU,e),dispatchAction:lt(NU,n),dataZoomInfoMap:null,controller:null},i=t.controller=new cl(n.getZr());return C(["pan","zoom","scrollMove"],function(o){i.on(o,function(r){var a=[];t.dataZoomInfoMap.each(function(s){if(r.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[o],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,r);!s.model.get("disabled",!0)&&u&&a.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),a.length&&t.dispatchAction(a)})}),t}function NU(n,e){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function EU(n,e,t,i){return n.coordinateSystem.containPoint([t,i])}function OU(n){var e,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return n.each(function(r){var a=r.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[t+s]>i[t+e]&&(e=s),o=o&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function PU(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=om(t),o=i.coordSysRecordMap||(i.coordSysRecordMap=K());o.each(function(r){r.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(r){var a=zT(r);C(a.infoList,function(s){var l=s.model.uid,u=o.get(l)||o.set(l,LU(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());c.set(r.uid,{dzReferCoordSysInfo:s,model:r,getRange:null})})}),o.each(function(r){var a=r.controller,s,l=r.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){WC(o,r);return}var c=OU(l);a.enable(c.controlType,c.opt),a.setPointerChecker(r.containsPoint),ha(r,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var RU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,o){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),AU(o,t,{pan:Z(rm.pan,this),zoom:Z(rm.zoom,this),scrollMove:Z(rm.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){kU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ly),rm={zoom:function(n,e,t,i){var o=this.range,r=o.slice(),a=n.axisModels[0];if(a){var s=am[e](null,[i.originX,i.originY],a,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wr(0,r,[0,100],0,c.minSpan,c.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1])return r}},pan:HC(function(n,e,t,i,o,r){var a=am[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,t);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:HC(function(n,e,t,i,o,r){var a=am[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,t);return a.signal*(n[1]-n[0])*r.scrollDelta})};function HC(n){return function(e,t,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=n(a,s,e,t,i,o);if(wr(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}}}var am={grid:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem.getRect();return n=n||[0,0],r.dim==="x"?(a.pixel=e[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(a.pixel=e[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(n,e,t,i,o){var r=t.axis,a=o.model.coordinateSystem.getRect(),s={};return n=n||[0,0],r.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const VU=RU;function YC(n){Ny(n),n.registerComponentModel(CU),n.registerComponentView(VU),PU(n)}var zU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ui(Tl.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"}}}),e}(Tl);const BU=zU;var El=It,XC=7,FU=1,sm=30,GU=7,Ol="horizontal",UC="vertical",WU=5,HU=["line","bar","candlestick","scatter"],YU={easing:"cubicOut",duration:100,delay:0},XU=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},e.prototype.render=function(t,i,o,r){if(n.prototype.render.apply(this,arguments),ha(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!r||r.type!=="dataZoom"||r.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ps(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ot;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,o=t.get("brushSelect"),r=o?GU:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Ol?{right:s.width-a.x-a.width,top:s.height-sm-XC-r,width:a.width,height:sm}:{right:XC,top:a.y,width:sm,height:a.height},u=ia(t.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=ae(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===UC&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,o=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Ol&&!a?{scaleY:l?1:-1,scaleX:1}:o===Ol&&a?{scaleY:l?1:-1,scaleX:-1}:o===UC&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,o=this._displayables.sliderGroup,r=t.get("brushSelect");o.add(new El({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var a=new El({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();r?(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)),o.add(a)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,o=this._shadowSize||[],r=t.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),l=s&&a.getDimensionInfo(s)?r.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==o[0]||i[1]!==o[1]){var h=a.getDataExtent(l),p=(h[1]-h[0])*.3;h=[h[0]-p,h[1]+p];var d=[0,i[1]],f=[0,i[0]],g=[[i[0],0],[0,0]],v=[],y=f[1]/(a.count()-1),m=0,x=Math.round(a.count()/i[0]),_;a.each([l],function(D,T){if(x>0&&T%x){m+=y;return}var I=D==null||isNaN(D)||D==="",A=I?0:kt(D,h,d,!0);I&&!_&&T?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!I&&_&&(g.push([m,0]),v.push([m,0])),g.push([m,A]),v.push([m,A]),m+=y,_=I}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function b(D){var T=w.getModel(D?"selectedDataBackground":"dataBackground"),I=new ot,A=new Ge({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new We({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(A),I.add(k),I}for(var S=0;S<3;S++){var M=b(S===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var o,r=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a,s).getTargetSeriesModels();C(l,function(u){if(!o&&!(i!==!0&&yt(HU,u.get("type"))<0)){var c=r.getComponent(uo(a),s).axis,h=UU(a),p,d=u.coordinateSystem;h!=null&&d.getOtherAxis&&(p=d.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),o={thisAxis:c,series:u,thisDim:a,otherDim:h,otherAxisInverse:p}}},this)},this),o}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,o=i.handles=[null,null],r=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),p=i.filler=new El({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new El({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:FU,fill:"rgba(0,0,0,0)"}})),C([0,1],function(x){var _=l.get("handleIcon");!gc[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_,process.env.NODE_ENV!=="production"&&Dn("handleIcon now needs 'path://' prefix when using a path string"));var w=oe(_,-1,0,2,2,null,!0);w.attr({cursor:ZC(this._orient),draggable:!0,drift:Z(this._onDragMove,this,x),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),S=l.get("handleSize");this._handleHeight=H(S,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Go(w);var M=l.get("handleColor");M!=null&&(w.style.fill=M),a.add(o[x]=w);var D=l.getModel("textStyle");t.add(r[x]=new Tt({silent:!0,invisible:!0,style:Rt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var d=p;if(h){var f=H(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new It({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),v=f*.8,y=i.moveHandleIcon=oe(l.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);y.silent=!0,y.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 It({invisible:!0,shape:{y:s[1]-m,height:f+m}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(y),a.add(d)}d.attr({draggable:!0,cursor:ZC(this._orient),drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[kt(t[0],[0,100],i,!0),kt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var o=this.dataZoomModel,r=this._handleEnds,a=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wr(i,r,a,o.get("zoomLock")?"all":t,s.minSpan!=null?kt(s.minSpan,l,a,!0):null,s.maxSpan!=null?kt(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=rn([kt(r[0],a,l,!0),kt(r[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,r=rn(o.slice()),a=this._size;C([0,1],function(d){var f=i.handles[d],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:o[d]+(d?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]});var s={x:r[0],width:r[1]-r[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,r[0],r[1],a[0]],c=0;c<l.length;c++){var h=l[c],p=h.getClipPath();p||(p=new It,h.setClipPath(p)),p.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:a[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var p=rn(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(f){var g=Uo(o.handles[f].parent,this.group),v=Yu(f===0?"right":"left",g),y=this._handleWidth/2+WU,m=Ln([p[f]+(f===0?-y:y),this._size[1]/2],g);r[f].setStyle({x:m[0],y:m[1],verticalAlign:a===Ol?"middle":v,align:a===Ol?v:"center",text:s[f]})}},e.prototype._formatLabel=function(t,i){var o=this.dataZoomModel,r=o.get("labelFormatter"),a=o.get("labelPrecision");(a==null||a==="auto")&&(a=i.getPixelPrecision());var s=t==null||isNaN(t)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(a,20));return Q(r)?r(t,s):X(r)?r.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var i=this._displayables,o=i.handleLabels;o[0].attr("invisible",!t),o[1].attr("invisible",!t),i.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},e.prototype._onDragMove=function(t,i,o,r){this._dragging=!0,si(r.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=Ln([i,o],a,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,o=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(o[0]<0||o[0]>i[0]||o[1]<0||o[1]>i[1])){var r=this._handleEnds,a=(r[0]+r[1])/2,s=this._updateInterval("all",o[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,o=t.offsetY;this._brushStart=new ht(i,o),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var o=i.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(o.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=rn([kt(o.x,a,s,!0),kt(o.x+o.width,a,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(si(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var o=this._displayables,r=this.dataZoomModel,a=o.brushRect;a||(a=o.brushRect=new El({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?YU:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=zT(this.dataZoomModel).infoList;if(!t&&i.length){var o=i[0].model.coordinateSystem;t=o.getRect&&o.getRect()}if(!t){var r=this.api.getWidth(),a=this.api.getHeight();t={x:r*.2,y:a*.2,width:r*.6,height:a*.6}}return t},e.type="dataZoom.slider",e}(Ly);function UU(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function ZC(n){return n==="vertical"?"ns-resize":"ew-resize"}const ZU=XU;function jC(n){n.registerComponentModel(BU),n.registerComponentView(ZU),Ny(n)}function jU(n){mt(YC),mt(jC)}var qU={get:function(n,e,t){var i=it((KU[n]||{})[e]);return t&&G(i)?i[i.length-1]:i}},KU={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 qC=qU;var KC=xe.mapVisual,$U=xe.eachVisual,QU=G,$C=C,JU=rn,tZ=kt,eZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&fC(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=Z(t,this),this.controllerVisuals=Gy(this.option.controller,i,t),this.targetVisuals=Gy(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(o,r){i.push(r)}):i=Nt(t),i},e.prototype.eachTargetSeries=function(t,i){C(this.getTargetSeriesIndices(),function(o){var r=this.ecModel.getSeriesByIndex(o);r&&t.call(i,r)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(o){o===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,o){var r=this.option,a=r.precision,s=this.dataBound,l=r.formatter,u;o=o||["<",">"],G(t)&&(t=t.slice(),u=!0);var c=i?t:u?[h(t[0]),h(t[1])]:h(t);if(X(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?o[0]+" "+c[1]:t[1]===s[1]?o[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,i=JU([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var o=t.dimensions,r=o.length-1;r>=0;r--){var a=o[r],s=t.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},r=i.target||(i.target={}),a=i.controller||(i.controller={});pt(r,o),pt(a,o);var s=this.isCategory();l.call(this,r),l.call(this,a),u.call(this,r,"inRange","outOfRange"),c.call(this,a);function l(h){QU(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,p,d){var f=h[p],g=h[d];f&&!g&&(g=h[d]={},$C(f,function(v,y){if(xe.isValidType(y)){var m=qC.get(y,"inactive",s);m!=null&&(g[y]=m,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(h){var p=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,d=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,f=this.get("inactiveColor"),g=this.getItemSymbol(),v=g||"roundRect";$C(this.stateList,function(y){var m=this.itemSize,x=h[y];x||(x=h[y]={color:s?f:[f]}),x.symbol==null&&(x.symbol=p&&it(p)||(s?v:[v])),x.symbolSize==null&&(x.symbolSize=d&&it(d)||(s?m[0]:[m[0],m[0]])),x.symbol=KC(x.symbol,function(b){return b==="none"?v:b});var _=x.symbolSize;if(_!=null){var w=-1/0;$U(_,function(b){b>w&&(w=b)}),x.symbolSize=KC(_,function(b){return tZ(b,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(wt);const Gh=eZ;var QC=[20,140],nZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=QC[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=QC[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):G(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=rn((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,o=this.getExtent();return(i[0]<=o[0]||i[0]<=t)&&(i[1]>=o[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(o){var r=[],a=o.getData();a.each(this.getDataDimensionIndex(a),function(s,l){t[0]<=s&&s<=t[1]&&r.push(l)},this),i.push({seriesId:o.id,dataIndex:r})},this),i},e.prototype.getVisualMeta=function(t){var i=JC(this,"outOfRange",this.getExtent()),o=JC(this,"inRange",this.option.range.slice()),r=[];function a(d,f){r.push({value:d,color:t(d,f)})}for(var s=0,l=0,u=o.length,c=i.length;l<c&&(!o.length||i[l]<=o[0]);l++)i[l]<o[s]&&a(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&r.length&&a(o[s],"outOfRange"),a(o[s],"inRange");for(var h=1;l<c;l++)(!o.length||o[o.length-1]<i[l])&&(h&&(r.length&&a(r[r.length-1].value,"outOfRange"),h=0),a(i[l],"outOfRange"));var p=r.length;return{stops:r,outerColors:[p?r[0].color:"transparent",p?r[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ui(Gh.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)"}}),e}(Gh);function JC(n,e,t){if(t[0]===t[1])return t.slice();for(var i=200,o=(t[1]-t[0])/i,r=t[0],a=[],s=0;s<=i&&r<t[1];s++)a.push(r),r+=o;return a.push(t[1]),a}const iZ=nZ;var oZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,o,r){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,o,r)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,o=na(i.get("padding")||0),r=t.getBoundingRect();t.add(new It({z2:-1,silent:!0,shape:{x:r.x-o[3],y:r.y-o[0],width:r.width+o[3]+o[1],height:r.height+o[0]+o[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,o){o=o||{};var r=o.forceState,a=this.visualMapModel,s={};if(i==="color"){var l=a.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,f){s[d]=f}var h=a.controllerVisuals[r||a.getValueState(t)],p=xe.prepareVisualTypes(h);return C(p,function(d){var f=h[d];o.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",f=h.__alphaForOpacity),xe.dependsOn(d,i)&&f&&f.applyVisual(t,u,c)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,o=this.api;ic(t,i.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})},e.prototype.doRender=function(t,i,o,r){},e.type="visualMap",e}(qt);const tA=oZ;var eA=[["left","right","width"],["top","bottom","height"]];function nA(n,e,t){var i=n.option,o=i.align;if(o!=null&&o!=="auto")return o;for(var r={width:e.getWidth(),height:e.getHeight()},a=i.orient==="horizontal"?1:0,s=eA[a],l=[0,null,10],u={},c=0;c<3;c++)u[eA[1-a][c]]=l[c],u[s[c]]=c===2?t[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],p=ae(u,r,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+p[h[1]]*.5<r[h[1]]*.5?0:1]}function Wh(n,e){return C(n||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var oi=kt,rZ=C,iA=Math.min,lm=Math.max,aZ=12,sZ=6,lZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,i,o,r){this._api=o,(!r||r.type!=="selectDataRange"||r.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var o=t.get("text");this._renderEndsText(i,o,0),this._renderEndsText(i,o,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,o){if(i){var r=i[1-o];r=r!=null?r+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,o===0?-s:l[1]+s],u),h=this._applyTransform(o===0?"bottom":"top",u),p=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Tt({style:Rt(d,{x:c[0],y:c[1],verticalAlign:p==="horizontal"?"middle":h,align:p==="horizontal"?h:"center",text:r})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,o=this._shapes,r=i.itemSize,a=this._orient,s=this._useHandle,l=nA(i,this.api,r),u=o.mainGroup=this._createBarGroup(l),c=new ot;u.add(c),c.add(o.outOfRange=oA()),c.add(o.inRange=oA(null,s?aA(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),c.setClipPath(new It({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var h=i.textStyleModel.getTextRect("\u56FD"),p=lm(h.width,h.height);s&&(o.handleThumbs=[],o.handleLabels=[],o.handleLabelPoints=[],this._createHandle(i,u,0,r,p,a),this._createHandle(i,u,1,r,p,a)),this._createIndicator(i,u,r,p,a),t.add(u)},e.prototype._createHandle=function(t,i,o,r,a,s){var l=Z(this._dragHandle,this,o,!1),u=Z(this._dragHandle,this,o,!0),c=In(t.get("handleSize"),r[0]),h=oe(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),p=aA(this._orient);h.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){si(y.event)}}),h.x=r[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Wo(h,!0),i.add(h);var d=this.visualMapModel.textStyleModel,f=new Tt({cursor:p,draggable:!0,drift:l,onmousemove:function(y){si(y.event)},ondragend:u,style:Rt(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var g=[c,0],v=this._shapes;v.handleThumbs[o]=h,v.handleLabelPoints[o]=g,v.handleLabels[o]=f},e.prototype._createIndicator=function(t,i,o,r,a){var s=In(t.get("indicatorSize"),o[0]),l=oe(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:o[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof ge){var c=l.style;l.useStyle(z({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,p=new Tt({silent:!0,invisible:!0,style:Rt(h,{x:0,y:0,text:""})});this.group.add(p);var d=[(a==="horizontal"?r/2:sZ)+o[0]/2,0],f=this._shapes;f.indicator=l,f.indicatorLabel=p,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,o,r){if(this._useHandle){if(this._dragging=!i,!i){var a=this._applyTransform([o,r],this._shapes.mainGroup,!0);this._updateInterval(t,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():rA(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),o=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[oi(i[0],o,r,!0),oi(i[1],o,r,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var o=this.visualMapModel,r=this._handleEnds,a=[0,o.itemSize[1]];wr(i,r,a,t,0);var s=o.getExtent();this._dataInterval=[oi(r[0],a,s,!0),oi(r[1],a,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,o=i.getExtent(),r=this._shapes,a=[0,i.itemSize[1]],s=t?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,o,s,"inRange"),u=this._createBarVisual(o,o,a,"outOfRange");r.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),r.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,o,r){var a={forceState:r,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,a),l=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],u=this._createBarPoints(o,l);return{barColor:new ys(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var o=100,r=[],a=(t[1]-t[0])/o;r.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<o;s++){var l=t[0]+a*s;if(l>t[1])break;r.push({color:this.getControllerVisual(l,"color",i),offset:s/o})}return r.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),r},e.prototype._createBarPoints=function(t,i){var o=this.visualMapModel.itemSize;return[[o[0]-i[0],t[0]],[o[0],t[0]],[o[0],t[1]],[o[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,o=this.visualMapModel.get("inverse");return new ot(i==="horizontal"&&!o?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&o?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!o?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,a=o.handleThumbs,s=o.handleLabels,l=r.itemSize,u=r.getExtent();rZ([0,1],function(c){var h=a[c];h.setStyle("fill",i.handlesColor[c]),h.y=t[c];var p=oi(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var f=Ln(o.handleLabelPoints[c],Uo(h,this.group));s[c].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,o,r){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var p={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",p),f=this.getControllerVisual(t,"symbolSize"),g=oi(t,s,u,!0),v=l[0]-f/2,y={x:h.x,y:h.y};h.y=g,h.x=v;var m=Ln(c.indicatorLabelPoint,Uo(h,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),w=this._orient,b=w==="horizontal";x.setStyle({text:(o||"")+a.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var S={x:v,y:g,style:{fill:d}},M={style:{x:m[0],y:m[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(S,D),x.animateTo(M,D)}else h.attr(S),x.attr(M);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var I=0;I<T.length;I++)this._api.enterBlur(T[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var o=t.visualMapModel.itemSize,r=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);r[1]=iA(lm(0,r[1]),o[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=o[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var o=this.visualMapModel,r=o.itemSize;if(o.option.hoverLink){var a=[0,r[1]],s=o.getExtent();t=iA(lm(a[0],t),a[1]);var l=uZ(o,s,a),u=[t-l,t+l],c=oi(t,a,s,!0),h=[oi(u[0],a,s,!0),oi(u[1],a,s,!0)];u[0]<a[0]&&(h[0]=-1/0),u[1]>a[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var p=this._hoverLinkDataIndices,d=[];(i||rA(o))&&(d=this._hoverLinkDataIndices=o.findTargetDataIndices(h));var f=QL(p,d);this._dispatchHighDown("downplay",Wh(f[0],o)),this._dispatchHighDown("highlight",Wh(f[1],o))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(tr(t.target,function(l){var u=st(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var o=this.ecModel.getSeriesByIndex(i.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(o)){var a=o.getData(i.dataType),s=a.getStore().get(r.getDataDimensionIndex(a),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var o=0;o<i.length;o++)this._api.leaveBlur(i[o])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Wh(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,o,r){var a=Uo(i,r?null:this.group);return G(t)?Ln(t,a,o):Yu(t,a,o)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(tA);function oA(n,e,t,i){return new Ge({shape:{points:n},draggable:!!t,cursor:e,drift:t,onmousemove:function(o){si(o.event)},ondragend:i})}function uZ(n,e,t){var i=aZ/2,o=n.get("hoverLinkDataSize");return o&&(i=oi(o,e,t,!0)/2),i}function rA(n){var e=n.get("hoverLinkOnHandle");return!!(e??n.get("realtime"))}function aA(n){return n==="vertical"?"ns-resize":"ew-resize"}const cZ=lZ;var hZ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},pZ=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},dZ=[{createOnAllSeries:!0,reset:function(n,e){var t=[];return e.eachComponent("visualMap",function(i){var o=n.pipelineContext;!i.isTargetSeries(n)||o&&o.large||t.push(sX(i.stateList,i.targetVisuals,Z(i.getValueState,i),i.getDataDimensionIndex(n.getData())))}),t}},{createOnAllSeries:!0,reset:function(n,e){var t=n.getData(),i=[];e.eachComponent("visualMap",function(o){if(o.isTargetSeries(n)){var r=o.getVisualMeta(Z(fZ,null,n,o))||{stops:[],outerColors:[]},a=o.getDataDimensionIndex(t);a>=0&&(r.dimension=a,i.push(r))}}),n.getData().setVisual("visualMeta",i)}}];function fZ(n,e,t,i){for(var o=e.targetVisuals[i],r=xe.prepareVisualTypes(o),a={color:zs(n.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],c=o[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,p)}return a.color;function h(d){return a[d]}function p(d,f){a[d]=f}}var sA=C;function gZ(n){var e=n&&n.visualMap;G(e)||(e=e?[e]:[]),sA(e,function(t){if(t){Va(t,"splitList")&&!Va(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;i&&G(i)&&sA(i,function(o){tt(o)&&(Va(o,"start")&&!Va(o,"min")&&(o.min=o.start),Va(o,"end")&&!Va(o,"max")&&(o.max=o.end))})}})}function Va(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var lA=!1;function uA(n){lA||(lA=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(hZ,pZ),C(dZ,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(gZ))}function cA(n){n.registerComponentModel(iZ),n.registerComponentView(cZ),uA(n)}var vZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],yZ[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var r=this.option.categories;this.resetVisual(function(a,s){o==="categories"?(a.mappingMethod="category",a.categories=it(r)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=W(this._pieceList,function(l){return l=it(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},o=xe.listVisualTypes(),r=this.isCategory();C(t.pieces,function(s){C(o,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),C(i,function(s,l){var u=!1;C(this.stateList,function(c){u=u||a(t,c,l)||a(t.target,c,l)},this),!u&&C(this.stateList,function(c){(t[c]||(t[c]={}))[l]=qC.get(l,c==="inRange"?"active":"inactive",r)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var o=this.option,r=this._pieceList,a=(i?o:t).selected||{};if(o.selected=a,C(r,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),o.selectedMode==="single"){var s=!1;C(r,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=it(t)},e.prototype.getValueState=function(t){var i=xe.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],o=this._pieceList;return this.eachTargetSeries(function(r){var a=[],s=r.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=xe.findPieceIndex(l,o);c===t&&a.push(u)},this),i.push({seriesId:r.id,dataIndex:a})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var o=t.interval||[];i=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],o=["",""],r=this;function a(c,h){var p=r.getRepresentValue({interval:c});h||(h=r.getValueState(p));var d=t(p,h);c[0]===-1/0?o[0]=d:c[1]===1/0?o[1]=d:i.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(c){var h=c.interval;h&&(h[0]>u&&a([u,h[0]],"outOfRange"),a(h.slice()),u=h[1])},this),{stops:i,outerColors:o}},e.type="visualMap.piecewise",e.defaultOption=Ui(Gh.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}),e}(Gh),yZ={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(t)!==r&&t<5;)t++;e.precision=t,r=+r.toFixed(t),e.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;n.push({interval:[s,l],close:[1,1]})}e.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),R0(n),C(n,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var e=this.option;C(e.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this),hA(e,n)},pieces:function(n){var e=this.option;C(e.pieces,function(t,i){tt(t)||(t={value:t});var o={text:"",index:i};if(t.label!=null&&(o.text=t.label),t.hasOwnProperty("value")){var r=o.value=t.value;o.interval=[r,r],o.close=[1,1]}else{for(var a=o.interval=[],s=o.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var p=[["gte","gt","min"],["lte","lt","max"]][h],d=0;d<3&&a[h]==null;d++)a[h]=t[p[d]],s[h]=l[d],c[h]=d===2;a[h]==null&&(a[h]=u[h])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&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]&&(o.value=a[0])}o.visual=xe.retrieveVisuals(t),n.push(o)},this),hA(e,n),R0(n),C(n,function(t){var i=t.close,o=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,o)},this)}};function hA(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const mZ=vZ;var xZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,o=i.get("textGap"),r=i.textStyleModel,a=r.getFont(),s=r.getTextColor(),l=this._getItemAlign(),u=i.itemSize,c=this._getViewData(),h=c.endsText,p=te(i.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,p,l),C(c.viewPieceList,function(d){var f=d.piece,g=new ot;g.onclick=Z(this._onItemClick,this,f),this._enableHoverLink(g,d.indexInModelPieceList);var v=i.getRepresentValue(f);if(this._createItemSymbol(g,v,[0,0,u[0],u[1]]),p){var y=this.visualMapModel.getValueState(v);g.add(new Tt({style:{x:l==="right"?-o:u[0]+o,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,p,l),Ko(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var o=this;t.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(a){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:a,batch:Wh(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return nA(t,this.api,t.itemSize);var o=i.align;return(!o||o==="auto")&&(o="left"),o},e.prototype._renderEndsText=function(t,i,o,r,a){if(i){var s=new ot,l=this.visualMapModel.textStyleModel;s.add(new Tt({style:Rt(l,{x:r?a==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:r?a:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=W(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),o=t.get("text"),r=t.get("orient"),a=t.get("inverse");return(r==="horizontal"?a:!a)?i.reverse():o&&(o=o.slice().reverse()),{viewPieceList:i,endsText:o}},e.prototype._createItemSymbol=function(t,i,o){t.add(oe(this.getControllerVisual(i,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,o=i.option,r=o.selectedMode;if(r){var a=it(o.selected),s=i.getSelectedMapKey(t);r==="single"||r===!0?(a[s]=!0,C(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})}},e.type="visualMap.piecewise",e}(tA);const _Z=xZ;function pA(n){n.registerComponentModel(mZ),n.registerComponentView(_Z),uA(n)}function bZ(n){mt(cA),mt(pA)}var wZ={label:{enabled:!0},decal:{show:!1}},dA=Mt(),SZ={};function MZ(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var i=it(wZ);pt(i.label,n.getLocaleModel().get("aria"),!1),pt(t.option,i,!1),o(),r();function o(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=K();n.eachSeries(function(p){if(!p.isColorBySeries()){var d=h.get(p.type);d||(d={},h.set(p.type,d)),dA(p).scope=d}}),n.eachRawSeries(function(p){if(n.isSeriesFiltered(p))return;if(Q(p.enableAriaDecal)){p.enableAriaDecal();return}var d=p.getData();if(p.isColorBySeries()){var f=uf(p.ecModel,p.name,SZ,n.getSeriesCount()),g=d.getVisual("decal");d.setVisual("decal",_(g,f))}else{var v=p.getRawData(),y={},m=dA(p).scope;d.each(function(w){var b=d.getRawIndex(w);y[b]=w});var x=v.count();v.each(function(w){var b=y[w],S=v.getName(w)||w+"",M=uf(p.ecModel,S,m,x),D=d.getItemVisual(b,"decal");d.setItemVisual(b,"decal",_(D,M))})}function _(w,b){var S=w?z(z({},b),w):b;return S.dirty=!0,S}})}}function r(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=nt(c.option,u),!!c.get("enabled")){var h=e.getZr().dom;if(c.get("description")){h.setAttribute("aria-label",c.get("description"));return}var p=n.getSeriesCount(),d=c.get(["data","maxCount"])||10,f=c.get(["series","maxCount"])||10,g=Math.min(p,f),v;if(!(p<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);v=a(m,{title:y})}else v=c.get(["general","withoutTitle"]);var x=[],_=p>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);v+=a(_,{seriesCount:p}),n.eachSeries(function(M,D){if(D<g){var T=void 0,I=M.get("name"),A=I?"withName":"withoutName";T=p>1?c.get(["series","multiple",A]):c.get(["series","single",A]),T=a(T,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var k=M.getData();if(k.count()>d){var L=c.get(["data","partialData"]);T+=a(L,{displayCnt:d})}else T+=c.get(["data","allData"]);for(var N=c.get(["data","separator","middle"]),E=c.get(["data","separator","end"]),P=[],O=0;O<k.count();O++)if(O<d){var V=k.getName(O),F=k.getValues(O),B=c.get(["data",V?"withName":"withoutName"]);P.push(a(B,{name:V,value:F.join(N)}))}T+=P.join(N)+E,x.push(T)}});var w=c.getModel(["series","multiple","separator"]),b=w.get("middle"),S=w.get("end");v+=x.join(b)+S,h.setAttribute("aria-label",v)}}}function a(u,c){if(!X(u))return u;var h=u;return C(c,function(p,d){h=h.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),p)}),h}function s(){var u=n.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return n.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function IZ(n){if(!(!n||!n.aria)){var e=n.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},C(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function DZ(n){n.registerPreprocessor(IZ),n.registerVisual(n.PRIORITY.VISUAL.ARIA,MZ)}var fA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},TZ=function(){function n(e){var t=this._condVal=X(e)?new RegExp(e):Im(e)?e:null;if(t==null){var i="";process.env.NODE_ENV!=="production"&&(i=Ce("Illegal regexp",e,"in")),At(i)}}return n.prototype.evaluate=function(e){var t=typeof e;return X(t)?this._condVal.test(e):Dt(t)?this._condVal.test(e+""):!1},n}(),CZ=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),AZ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},n}(),kZ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},n}(),LZ=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),NZ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),o=e?this.valueParser(i):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?o:i))return!1;return!0},n}();function um(n,e){if(n===!0||n===!1){var t=new CZ;return t.value=n,t}var i="";return vA(n)||(process.env.NODE_ENV!=="production"&&(i=Ce("Illegal config. Expect a plain object but actually",n)),At(i)),n.and?gA("and",n,e):n.or?gA("or",n,e):n.not?EZ(n,e):OZ(n,e)}function gA(n,e,t){var i=e[n],o="";process.env.NODE_ENV!=="production"&&(o=Ce('"and"/"or" condition should only be `'+n+": [...]` and must not be empty array.","Illegal condition:",e)),G(i)||At(o),i.length||At(o);var r=n==="and"?new AZ:new kZ;return r.children=W(i,function(a){return um(a,t)}),r.children.length||At(o),r}function EZ(n,e){var t=n.not,i="";process.env.NODE_ENV!=="production"&&(i=Ce('"not" condition should only be `not: {}`.',"Illegal condition:",n)),vA(t)||At(i);var o=new LZ;return o.child=um(t,e),o.child||At(i),o}function OZ(n,e){for(var t="",i=e.prepareGetValue(n),o=[],r=_t(n),a=n.parser,s=a?F_(a):null,l=0;l<r.length;l++){var u=r[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=U(fA,u)?fA[u]:u,h=n[u],p=s?s(h):h,d=gP(c,p)||c==="reg"&&new TZ(p);d||(process.env.NODE_ENV!=="production"&&(t=Ce('Illegal relational operation: "'+u+'" in condition:',n)),At(t)),o.push(d)}}o.length||(process.env.NODE_ENV!=="production"&&(t=Ce("Relational condition must have at least one operator.","Illegal condition:",n)),At(t));var f=new NZ;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=o,f}function vA(n){return tt(n)&&!be(n)}var PZ=function(){function n(e,t){this._cond=um(e,t)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function RZ(n,e){return new PZ(n,e)}var VZ={type:"echarts:filter",transform:function(n){for(var e=n.upstream,t,i=RZ(n.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;U(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=Ce('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),At(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=Ce("Can not find dimension info via: "+u+`.
|
|
80
|
+
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
|
81
|
+
`,"Illegal condition:",s,`.
|
|
82
|
+
`)),At(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),o=[],r=0,a=e.count();r<a;r++)t=e.getRawDataItem(r),i.evaluate()&&o.push(t);return{data:o}}},cm="";process.env.NODE_ENV!=="production"&&(cm=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var zZ={type:"echarts:sort",transform:function(n){var e=n.upstream,t=n.config,i="",o=Nt(t);o.length||(process.env.NODE_ENV!=="production"&&(i="Empty `config` in sort transform."),At(i));var r=[];C(o,function(c){var h=c.dimension,p=c.order,d=c.parser,f=c.incomparable;if(h==null&&(process.env.NODE_ENV!=="production"&&(i='Sort transform config must has "dimension" specified.'+cm),At(i)),p!=="asc"&&p!=="desc"&&(process.env.NODE_ENV!=="production"&&(i='Sort transform config must has "order" specified.'+cm),At(i)),f&&f!=="min"&&f!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+f+'".'),At(g)}if(p!=="asc"&&p!=="desc"){var v="";process.env.NODE_ENV!=="production"&&(v='order must be "asc" or "desc" rather than "'+p+'".'),At(v)}var y=e.getDimensionInfo(h);y||(process.env.NODE_ENV!=="production"&&(i=Ce("Can not find dimension info via: "+h+`.
|
|
83
|
+
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
|
84
|
+
`,"Illegal config:",c,`.
|
|
85
|
+
`)),At(i));var m=d?F_(d):null;d&&!m&&(process.env.NODE_ENV!=="production"&&(i=Ce("Invalid parser name "+d+`.
|
|
86
|
+
`,"Illegal config:",c,`.
|
|
87
|
+
`)),At(i)),r.push({dimIdx:y.index,parser:m,comparator:new W_(p,f)})});var a=e.sourceFormat;a!==Me&&a!==hn&&(process.env.NODE_ENV!=="production"&&(i='sourceFormat "'+a+'" is not supported yet'),At(i));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,h){for(var p=0;p<r.length;p++){var d=r[p],f=e.retrieveValueFromItem(c,d.dimIdx),g=e.retrieveValueFromItem(h,d.dimIdx);d.parser&&(f=d.parser(f),g=d.parser(g));var v=d.comparator.evaluate(f,g);if(v!==0)return v}return 0}),{data:s}}};function BZ(n){n.registerTransform(VZ),n.registerTransform(zZ)}var FZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,o){n.prototype.init.call(this,t,i,o),this._sourceManager=new j_(this),q_(this)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),q_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:$n},e}(wt),GZ=function(n){R(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(qt);function WZ(n){n.registerComponentModel(FZ),n.registerComponentView(GZ)}var ri=Zn.CMD;function za(n,e){return Math.abs(n-e)<1e-5}function hm(n){var e=n.data,t=n.len(),i=[],o,r=0,a=0,s=0,l=0;function u(k,L){o&&o.length>2&&i.push(o),o=[k,L]}function c(k,L,N,E){za(k,N)&&za(L,E)||o.push(k,L,N,E,N,E)}function h(k,L,N,E,P,O){var V=Math.abs(L-k),F=Math.tan(V/4)*4/3,B=L<k?-1:1,Y=Math.cos(k),$=Math.sin(k),j=Math.cos(L),ft=Math.sin(L),ut=Y*P+N,gt=$*O+E,J=j*P+N,vt=ft*O+E,rt=P*F*B,q=O*F*B;o.push(ut-rt*$,gt+q*Y,J+rt*ft,vt-q*j,J,vt)}for(var p,d,f,g,v=0;v<t;){var y=e[v++],m=v===1;switch(m&&(r=e[v],a=e[v+1],s=r,l=a,(y===ri.L||y===ri.C||y===ri.Q)&&(o=[s,l])),y){case ri.M:r=s=e[v++],a=l=e[v++],u(s,l);break;case ri.L:p=e[v++],d=e[v++],c(r,a,p,d),r=p,a=d;break;case ri.C:o.push(e[v++],e[v++],e[v++],e[v++],r=e[v++],a=e[v++]);break;case ri.Q:p=e[v++],d=e[v++],f=e[v++],g=e[v++],o.push(r+2/3*(p-r),a+2/3*(d-a),f+2/3*(p-f),g+2/3*(d-g),f,g),r=f,a=g;break;case ri.A:var x=e[v++],_=e[v++],w=e[v++],b=e[v++],S=e[v++],M=e[v++]+S;v+=1;var D=!e[v++];p=Math.cos(S)*w+x,d=Math.sin(S)*b+_,m?(s=p,l=d,u(s,l)):c(r,a,p,d),r=Math.cos(M)*w+x,a=Math.sin(M)*b+_;for(var T=(D?-1:1)*Math.PI/2,I=S;D?I>M:I<M;I+=T){var A=D?Math.max(I+T,M):Math.min(I+T,M);h(I,A,x,_,w,b)}break;case ri.R:s=r=e[v++],l=a=e[v++],p=s+e[v++],d=l+e[v++],u(p,l),c(p,l,p,d),c(p,d,s,d),c(s,d,s,l),c(s,l,p,l);break;case ri.Z:o&&c(r,a,s,l),r=s,a=l;break}}return o&&o.length>2&&i.push(o),i}function pm(n,e,t,i,o,r,a,s,l,u){if(za(n,t)&&za(e,i)&&za(o,a)&&za(r,s)){l.push(a,s);return}var c=2/u,h=c*c,p=a-n,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=t-n,v=i-e,y=o-a,m=r-s,x=g*g+v*v,_=y*y+m*m;if(x<h&&_<h){l.push(a,s);return}var w=p*g+d*v,b=-p*y-d*m,S=x-w*w,M=_-b*b;if(S<h&&w>=0&&M<h&&b>=0){l.push(a,s);return}var D=[],T=[];Ri(n,t,o,a,.5,D),Ri(e,i,r,s,.5,T),pm(D[0],T[0],D[1],T[1],D[2],T[2],D[3],T[3],l,u),pm(D[4],T[4],D[5],T[5],D[6],T[6],D[7],T[7],l,u)}function HZ(n,e){var t=hm(n),i=[];e=e||1;for(var o=0;o<t.length;o++){var r=t[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var u=2;u<r.length;){var c=r[u++],h=r[u++],p=r[u++],d=r[u++],f=r[u++],g=r[u++];pm(s,l,c,h,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}function yA(n,e,t){var i=n[e],o=n[1-e],r=Math.abs(i/o),a=Math.ceil(Math.sqrt(r*t)),s=Math.floor(t/a);s===0&&(s=1,a=t);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,h=t-c;if(h>0)for(var u=0;u<h;u++)l[u%a]+=1;return l}function mA(n,e,t){for(var i=n.r0,o=n.r,r=n.startAngle,a=n.endAngle,s=Math.abs(a-r),l=s*o,u=o-i,c=l>Math.abs(u),h=yA([l,u],c?0:1,e),p=(c?s:u)/h.length,d=0;d<h.length;d++)for(var f=(c?u:s)/h[d],g=0;g<h[d];g++){var v={};c?(v.startAngle=r+p*d,v.endAngle=r+p*(d+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=r+f*g,v.endAngle=r+f*(g+1),v.r0=i+p*d,v.r=i+p*(d+1)),v.clockwise=n.clockwise,v.cx=n.cx,v.cy=n.cy,t.push(v)}}function YZ(n,e,t){for(var i=n.width,o=n.height,r=i>o,a=yA([i,o],r?0:1,e),s=r?"width":"height",l=r?"height":"width",u=r?"x":"y",c=r?"y":"x",h=n[s]/a.length,p=0;p<a.length;p++)for(var d=n[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*h,g[c]=f*d,g[s]=h,g[l]=d,g.x+=n.x,g.y+=n.y,t.push(g)}}function xA(n,e,t,i){return n*i-t*e}function XZ(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,c=a-o,h=s-r,p=xA(c,h,l,u);if(Math.abs(p)<1e-6)return null;var d=n-o,f=e-r,g=xA(d,f,c,h)/p;return g<0||g>1?null:new ht(g*l+n,g*u+e)}function UZ(n,e,t){var i=new ht;ht.sub(i,t,e),i.normalize();var o=new ht;ht.sub(o,n,e);var r=o.dot(i);return r}function Ba(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function ZZ(n,e,t){for(var i=n.length,o=[],r=0;r<i;r++){var a=n[r],s=n[(r+1)%i],l=XZ(a[0],a[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&o.push({projPt:UZ(l,e,t),pt:l,idx:r})}if(o.length<2)return[{points:n},{points:n}];o.sort(function(v,y){return v.projPt-y.projPt});var u=o[0],c=o[o.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var p=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],f=[p],g=[d],r=u.idx+1;r<=c.idx;r++)Ba(f,n[r].slice());Ba(f,d),Ba(f,p);for(var r=c.idx+1;r<=u.idx+i;r++)Ba(g,n[r%i].slice());return Ba(g,p),Ba(g,d),[{points:f},{points:g}]}function _A(n){var e=n.points,t=[],i=[];Iu(e,t,i);var o=new dt(t[0],t[1],i[0]-t[0],i[1]-t[1]),r=o.width,a=o.height,s=o.x,l=o.y,u=new ht,c=new ht;return r>a?(u.x=c.x=s+r/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+r),ZZ(e,u,c)}function Hh(n,e,t,i){if(t===1)i.push(e);else{var o=Math.floor(t/2),r=n(e);Hh(n,r[0],o,i),Hh(n,r[1],t-o,i)}return i}function jZ(n,e){for(var t=[],i=0;i<e;i++)t.push(Pd(n));return t}function qZ(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function KZ(n){for(var e=[],t=0;t<n.length;)e.push([n[t++],n[t++]]);return e}function $Z(n,e){var t=[],i=n.shape,o;switch(n.type){case"rect":YZ(i,e,t),o=It;break;case"sector":mA(i,e,t),o=Fe;break;case"circle":mA({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),o=Fe;break;default:var r=n.getComputedTransform(),a=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,s=W(HZ(n.getUpdatedPathProxy(),a),function(y){return KZ(y)}),l=s.length;if(l===0)Hh(_A,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,h=W(s,function(y){var m=[],x=[];Iu(y,m,x);var _=(x[1]-m[1])*(x[0]-m[0]);return c+=_,{poly:y,area:_}});h.sort(function(y,m){return m.area-y.area});for(var p=e,u=0;u<l;u++){var d=h[u];if(p<=0)break;var f=u===l-1?p:Math.ceil(d.area/c*e);f<0||(Hh(_A,{points:d.poly},f,t),p-=f)}}o=Ge;break}if(!o)return jZ(n,e);for(var g=[],u=0;u<t.length;u++){var v=new o;v.setShape(t[u]),qZ(n,v),g.push(v)}return g}function QZ(n,e){var t=n.length,i=e.length;if(t===i)return[n,e];for(var o=[],r=[],a=t<i?n:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],p=l,d=2;d<s;){var f=a[d-2],g=a[d-1],v=a[d++],y=a[d++],m=a[d++],x=a[d++],_=a[d++],w=a[d++];if(p<=0){h.push(v,y,m,x,_,w);continue}for(var b=Math.min(p,c-1)+1,S=1;S<=b;S++){var M=S/b;Ri(f,v,m,_,M,o),Ri(g,y,x,w,M,r),f=o[3],g=r[3],h.push(o[1],r[1],o[2],r[2],f,g),v=o[5],y=r[5],m=o[6],x=r[6]}p-=b-1}return a===n?[h,e]:[n,h]}function bA(n,e){for(var t=n.length,i=n[t-2],o=n[t-1],r=[],a=0;a<e.length;)r[a++]=i,r[a++]=o;return r}function JZ(n,e){for(var t,i,o,r=[],a=[],s=0;s<Math.max(n.length,e.length);s++){var l=n[s],u=e[s],c=void 0,h=void 0;l?u?(t=QZ(l,u),c=t[0],h=t[1],i=c,o=h):(h=bA(o||l,l),c=l):(c=bA(i||u,u),h=u),r.push(c),a.push(h)}return[r,a]}function wA(n){for(var e=0,t=0,i=0,o=n.length,r=0,a=o-2;r<o;a=r,r+=2){var s=n[a],l=n[a+1],u=n[r],c=n[r+1],h=s*c-u*l;e+=h,t+=(s+u)*h,i+=(l+c)*h}return e===0?[n[0]||0,n[1]||0]:[t/e/3,i/e/3,e]}function tj(n,e,t,i){for(var o=(n.length-2)/6,r=1/0,a=0,s=n.length,l=s-2,u=0;u<o;u++){for(var c=u*6,h=0,p=0;p<s;p+=2){var d=p===0?c:(c+p-2)%l+2,f=n[d]-t[0],g=n[d+1]-t[1],v=e[p]-i[0],y=e[p+1]-i[1],m=v-f,x=y-g;h+=m*m+x*x}h<r&&(r=h,a=u)}return a}function ej(n){for(var e=[],t=n.length,i=0;i<t;i+=2)e[i]=n[t-i-2],e[i+1]=n[t-i-1];return e}function nj(n,e,t,i){for(var o=[],r,a=0;a<n.length;a++){var s=n[a],l=e[a],u=wA(s),c=wA(l);r==null&&(r=u[2]<0!=c[2]<0);var h=[],p=[],d=0,f=1/0,g=[],v=s.length;r&&(s=ej(s));for(var y=tj(s,l,u,c)*6,m=v-2,x=0;x<m;x+=2){var _=(y+x)%m+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],t>0)for(var w=i/t,b=-i/2;b<=i/2;b+=w){for(var S=Math.sin(b),M=Math.cos(b),D=0,x=0;x<s.length;x+=2){var T=h[x],I=h[x+1],A=l[x]-c[0],k=l[x+1]-c[1],L=A*M-k*S,N=A*S+k*M;g[x]=L,g[x+1]=N;var E=L-T,P=N-I;D+=E*E+P*P}if(D<f){f=D,d=b;for(var O=0;O<g.length;O++)p[O]=g[O]}}else for(var V=0;V<v;V+=2)p[V]=l[V]-c[0],p[V+1]=l[V+1]-c[1];o.push({from:h,to:p,fromCp:u,toCp:c,rotation:-d})}return o}function Yh(n){return n.__isCombineMorphing}var SA="__mOriginal_";function Xh(n,e,t){var i=SA+e,o=n[i]||n[e];n[i]||(n[i]=n[e]);var r=t.replace,a=t.after,s=t.before;n[e]=function(){var l=arguments,u;return s&&s.apply(this,l),r?u=r.apply(this,l):u=o.apply(this,l),a&&a.apply(this,l),u}}function Pl(n,e){var t=SA+e;n[t]&&(n[e]=n[t],n[t]=null)}function MA(n,e){for(var t=0;t<n.length;t++)for(var i=n[t],o=0;o<i.length;){var r=i[o],a=i[o+1];i[o++]=e[0]*r+e[2]*a+e[4],i[o++]=e[1]*r+e[3]*a+e[5]}}function IA(n,e){var t=n.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),o=JZ(hm(t),hm(i)),r=o[0],a=o[1],s=n.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&MA(r,s),l&&MA(a,l),Xh(e,"updateTransform",{replace:u}),e.transform=null;var c=nj(r,a,10,Math.PI),h=[];Xh(e,"buildPath",{replace:function(p){for(var d=e.__morphT,f=1-d,g=[],v=0;v<c.length;v++){var y=c[v],m=y.from,x=y.to,_=y.rotation*d,w=y.fromCp,b=y.toCp,S=Math.sin(_),M=Math.cos(_);Xl(g,w,b,d);for(var D=0;D<m.length;D+=2){var T=m[D],I=m[D+1],A=x[D],k=x[D+1],L=T*f+A*d,N=I*f+k*d;h[D]=L*M-N*S+g[0],h[D+1]=L*S+N*M+g[1]}var E=h[0],P=h[1];p.moveTo(E,P);for(var D=2;D<m.length;){var A=h[D++],k=h[D++],O=h[D++],V=h[D++],F=h[D++],B=h[D++];E===A&&P===k&&O===F&&V===B?p.lineTo(F,B):p.bezierCurveTo(A,k,O,V,F,B),E=F,P=B}}}})}function dm(n,e,t){if(!n||!e)return e;var i=t.done,o=t.during;IA(n,e),e.__morphT=0;function r(){Pl(e,"buildPath"),Pl(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},nt({during:function(a){e.dirtyShape(),o&&o(a)},done:function(){r(),i&&i()}},t)),e}function ij(n,e,t,i,o,r){var a=16;n=o===t?0:Math.round(32767*(n-t)/(o-t)),e=r===i?0:Math.round(32767*(e-i)/(r-i));for(var s=0,l,u=(1<<a)/2;u>0;u/=2){var c=0,h=0;(n&u)>0&&(c=1),(e&u)>0&&(h=1),s+=u*u*(3*c^h),h===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function Uh(n){var e=1/0,t=1/0,i=-1/0,o=-1/0,r=W(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(h,t),i=Math.max(c,i),o=Math.max(h,o),[c,h]}),a=W(r,function(s,l){return{cp:s,z:ij(s[0],s[1],e,t,i,o),path:n[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function DA(n){return $Z(n.path,n.count)}function fm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function oj(n,e,t){var i=[];function o(w){for(var b=0;b<w.length;b++){var S=w[b];Yh(S)?o(S.childrenRef()):S instanceof xt&&i.push(S)}}o(n);var r=i.length;if(!r)return fm();var a=t.dividePath||DA,s=a({path:e,count:r});if(s.length!==r)return console.error("Invalid morphing: unmatched splitted path"),fm();i=Uh(i),s=Uh(s);for(var l=t.done,u=t.during,c=t.individualDelay,h=new hi,p=0;p<r;p++){var d=i[p],f=s[p];f.parent=e,f.copyTransform(h),c||IA(d,f)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(w){for(var b=0;b<s.length;b++)s[b].addSelfToZr(w)}Xh(e,"addSelfToZr",{after:function(w){g(w)}}),Xh(e,"removeSelfFromZr",{after:function(w){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(w)}});function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Pl(e,"addSelfToZr"),Pl(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,x=function(){m--,m===0&&(v(),l&&l())},p=0;p<y;p++){var _=c?nt({delay:(t.delay||0)+c(p,y,i[p],s[p]),done:x},t):t;dm(i[p],s[p],_)}else e.__morphT=0,e.animateTo({__morphT:1},nt({during:function(w){for(var b=0;b<y;b++){var S=s[b];S.__morphT=e.__morphT,S.dirtyShape()}u&&u(w)},done:function(){v();for(var w=0;w<n.length;w++)Pl(n[w],"updateTransform");l&&l()}},t));return e.__zr&&g(e.__zr),{fromIndividuals:i,toIndividuals:s,count:y}}function rj(n,e,t){var i=e.length,o=[],r=t.dividePath||DA;function a(d){for(var f=0;f<d.length;f++){var g=d[f];Yh(g)?a(g.childrenRef()):g instanceof xt&&o.push(g)}}if(Yh(n)){a(n.childrenRef());var s=o.length;if(s<i)for(var l=0,u=s;u<i;u++)o.push(Pd(o[l++%s]));o.length=i}else{o=r({path:n,count:i});for(var c=n.getComputedTransform(),u=0;u<o.length;u++)o[u].setLocalTransform(c);if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),fm()}o=Uh(o),e=Uh(e);for(var h=t.individualDelay,u=0;u<i;u++){var p=h?nt({delay:(t.delay||0)+h(u,i,o[u],e[u])},t):t;dm(o[u],e[u],p)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}function TA(n){return G(n[0])}function CA(n,e){for(var t=[],i=n.length,o=0;o<i;o++)t.push({one:n[o],many:[]});for(var o=0;o<e.length;o++){var r=e[o].length,a=void 0;for(a=0;a<r;a++)t[a%i].many.push(e[o][a])}for(var s=0,o=i-1;o>=0;o--)if(!t[o].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var r=l.length,u=Math.ceil(r/2);t[o].many=l.slice(u,r),t[s].many=l.slice(0,u),s++}return t}var aj={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),i=0;i<n.count;i++){var o=Pd(n.path);o.setStyle("opacity",t),e.push(o)}return e},split:null};function gm(n,e,t,i,o,r){if(!n.length||!e.length)return;var a=jr("update",i,o);if(!(a&&a.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,c;TA(n)&&(u=n,c=e),TA(e)&&(u=e,c=n);function h(y,m,x,_,w){var b=y.many,S=y.one;if(b.length===1&&!w){var M=m?b[0]:S,D=m?S:b[0];if(Yh(M))h({many:[M],one:D},!0,x,_,!0);else{var T=s?nt({delay:s(x,_)},l):l;dm(M,D,T),r(M,D,M,D,T)}}else for(var I=nt({dividePath:aj[t],individualDelay:s&&function(P,O,V,F){return s(P+x,_)}},l),A=m?oj(b,S,I):rj(S,b,I),k=A.fromIndividuals,L=A.toIndividuals,N=k.length,E=0;E<N;E++){var T=s?nt({delay:s(E,N)},l):l;r(k[E],L[E],m?b[E]:y.one,m?y.one:b[E],T)}}for(var p=u?u===n:n.length>e.length,d=u?CA(c,u):CA(p?e:n,[p?n:e]),f=0,g=0;g<d.length;g++)f+=d[g].many.length;for(var v=0,g=0;g<d.length;g++)h(d[g],p,v,f),v+=d[g].many.length}function Cr(n){if(!n)return[];if(G(n)){for(var e=[],t=0;t<n.length;t++)e.push(Cr(n[t]));return e}var i=[];return n.traverse(function(o){o instanceof xt&&!o.disableMorphing&&!o.invisible&&!o.ignore&&i.push(o)}),i}var AA=1e4,sj=Mt();function lj(n){for(var e=n.dimensions,t=0;t<e.length;t++){var i=n.getDimensionInfo(e[t]);if(i&&i.otherDims.itemGroupId===0)return e[t]}}function kA(n){var e=[];return C(n,function(t){var i=t.data;if(i.count()>AA){process.env.NODE_ENV!=="production"&&Zt("Universal transition is disabled on large data > 10k.");return}for(var o=i.getIndices(),r=lj(i),a=0;a<o.length;a++)e.push({dataGroupId:t.dataGroupId,data:i,dim:t.dim||r,divide:t.divide,dataIndex:a})}),e}function vm(n,e,t){n.traverse(function(i){i instanceof xt&&Yt(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function ym(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function Fa(n){n.stopAnimation(),n.isGroup&&n.traverse(function(e){e.stopAnimation()})}function uj(n,e,t){var i=jr("update",t,e);i&&n.traverse(function(o){if(o instanceof an){var r=UE(o);r&&o.animateFrom({style:r},i)}})}function cj(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var o=n[i],r=e[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}function LA(n,e,t){var i=kA(n),o=kA(e);function r(y,m,x,_,w){(x||y)&&m.animateFrom({style:x&&x!==y?z(z({},x.style),y.style):y.style},w)}function a(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=a(i),l=a(o),u=!1;function c(y,m){return function(x){var _=x.data,w=x.dataIndex;if(m)return _.getId(w);var b=x.dataGroupId,S=y?s||l:l||s,M=S&&_.getDimensionInfo(S),D=M&&M.ordinalMeta;if(M){var T=_.get(M.name,w);return D&&D.categories[T]||T+""}var I=_.getRawDataItem(w);return I&&I.groupId?I.groupId+"":b||_.getId(w)}}var h=cj(i,o),p={};if(!h)for(var d=0;d<o.length;d++){var f=o[d],g=f.data.getItemGraphicEl(f.dataIndex);g&&(p[g.id]=!0)}function v(y,m){var x=i[m],_=o[y],w=_.data.hostModel,b=x.data.getItemGraphicEl(x.dataIndex),S=_.data.getItemGraphicEl(_.dataIndex);if(b===S){S&&uj(S,_.dataIndex,w);return}b&&p[b.id]||S&&(Fa(S),b?(Fa(b),ym(b),u=!0,gm(Cr(b),Cr(S),_.divide,w,y,r)):vm(S,w,y))}new _i(i,o,c(!0,h),c(!1,h),null,"multiple").update(v).updateManyToOne(function(y,m){var x=o[y],_=x.data,w=_.hostModel,b=_.getItemGraphicEl(x.dataIndex),S=Lt(W(m,function(M){return i[M].data.getItemGraphicEl(i[M].dataIndex)}),function(M){return M&&M!==b&&!p[M.id]});b&&(Fa(b),S.length?(C(S,function(M){Fa(M),ym(M)}),u=!0,gm(Cr(S),Cr(b),x.divide,w,y,r)):vm(b,w,x.dataIndex))}).updateOneToMany(function(y,m){var x=i[m],_=x.data.getItemGraphicEl(x.dataIndex);if(!(_&&p[_.id])){var w=Lt(W(y,function(S){return o[S].data.getItemGraphicEl(o[S].dataIndex)}),function(S){return S&&S!==_}),b=o[y[0]].data.hostModel;w.length&&(C(w,function(S){return Fa(S)}),_?(Fa(_),ym(_),u=!0,gm(Cr(_),Cr(w),x.divide,b,y[0],r)):C(w,function(S){return vm(S,b,y[0])}))}}).updateManyToMany(function(y,m){new _i(m,y,function(x){return i[x].data.getId(i[x].dataIndex)},function(x){return o[x].data.getId(o[x].dataIndex)}).update(function(x,_){v(y[x],m[_])}).execute()}).execute(),u&&C(e,function(y){var m=y.data,x=m.hostModel,_=x&&t.getViewOfSeriesModel(x),w=jr("update",x,0);_&&x.isAnimationEnabled()&&w&&w.duration>0&&_.group.traverse(function(b){b instanceof xt&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function NA(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function EA(n){return G(n)?n.sort().join(","):n}function po(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function hj(n,e){var t=K(),i=K(),o=K();C(n.oldSeries,function(a,s){var l=n.oldDataGroupIds[s],u=n.oldData[s],c=NA(a),h=EA(c);i.set(h,{dataGroupId:l,data:u}),G(c)&&C(c,function(p){o.set(p,{key:h,dataGroupId:l,data:u})})});function r(a){t.get(a)&&Zt("Duplicated seriesKey in universalTransition "+a)}return C(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var s=a.get("dataGroupId"),l=a.getData(),u=NA(a),c=EA(u),h=i.get(c);if(h)process.env.NODE_ENV!=="production"&&r(c),t.set(c,{oldSeries:[{dataGroupId:h.dataGroupId,divide:po(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:po(l),data:l}]});else if(G(u)){process.env.NODE_ENV!=="production"&&r(c);var p=[];C(u,function(g){var v=i.get(g);v.data&&p.push({dataGroupId:v.dataGroupId,divide:po(v.data),data:v.data})}),p.length&&t.set(c,{oldSeries:p,newSeries:[{dataGroupId:s,data:l,divide:po(l)}]})}else{var d=o.get(u);if(d){var f=t.get(d.key);f||(f={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:po(d.data)}],newSeries:[]},t.set(d.key,f)),f.newSeries.push({dataGroupId:s,data:l,divide:po(l)})}}}}),t}function OA(n,e){for(var t=0;t<n.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===n[t].seriesIndex||e.seriesId!=null&&e.seriesId===n[t].id;if(i)return t}}function pj(n,e,t,i){var o=[],r=[];C(Nt(n.from),function(a){var s=OA(e.oldSeries,a);s>=0&&o.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:po(e.oldData[s]),dim:a.dimension})}),C(Nt(n.to),function(a){var s=OA(t.updatedSeries,a);if(s>=0){var l=t.updatedSeries[s].getData();r.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:po(l),dim:a.dimension})}}),o.length>0&&r.length>0&&LA(o,r,i)}function dj(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){C(Nt(i.seriesTransition),function(o){C(Nt(o.to),function(r){for(var a=i.updatedSeries,s=0;s<a.length;s++)(r.seriesIndex!=null&&r.seriesIndex===a[s].seriesIndex||r.seriesId!=null&&r.seriesId===a[s].id)&&(a[s][uc]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(e,t,i){var o=sj(t);if(o.oldSeries&&i.updatedSeries&&i.optionChanged){var r=i.seriesTransition;if(r)C(Nt(r),function(d){pj(d,o,i,t)});else{var a=hj(o,i);C(a.keys(),function(d){var f=a.get(d);LA(f.oldSeries,f.newSeries,t)})}C(i.updatedSeries,function(d){d[uc]&&(d[uc]=!1)})}for(var s=e.getSeries(),l=o.oldSeries=[],u=o.oldDataGroupIds=[],c=o.oldData=[],h=0;h<s.length;h++){var p=s[h].getData();p.count()<AA&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(p))}})}mt([Lz]),mt([Mz]),mt([eB,xB,NB,x3,R3,kF,sG,ZG,b4,k4,G4,XW,mH,LH,$H,o6,w6,N6,X6,J6,p8,K8]),mt(x7),mt(J7),mt(DI),mt(v9),mt(q2),mt(S9),mt(N9),mt(EY),mt(nX),mt(Dl),mt(wX),mt(IX),mt(FX),mt(KX),mt(oU),mt(pU),mt(DU),mt(jU),mt(YC),mt(jC),mt(bZ),mt(cA),mt(pA),mt(DZ),mt(BZ),mt(WZ),mt(dj),mt(Y5);var fj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},PA={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(fj,function(){return function(t){var i={};function o(r){if(i[r])return i[r].exports;var a=i[r]={exports:{},id:r,loaded:!1};return t[r].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}return o.m=t,o.c=i,o.p="",o(0)}([function(t,i,o){var r;r=function(a){return{clustering:o(1),regression:o(5),statistics:o(6),histogram:o(15),transform:{regression:o(18),histogram:o(21),clustering:o(22)}}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(2),l=s.dataPreprocess,u=s.normalizeDimensions,c=o(3),g=o(4),h=c.size,p=c.sumOfColumn,d=c.sum,f=c.zeros,g=o(4),v=g.isNumber,y=Math.pow,m={SINGLE:"single",MULTIPLE:"multiple"};function x(I,A,k){for(var L=f(I.length,2),N=S(A,T(I,k.dimensions)),E=!0,P,O,V,F;E;){E=!1;for(var B=0;B<I.length;B++){P=1/0,O=-1;for(var Y=0;Y<A;Y++)V=M(I[B],N[Y],k),V<P&&(P=V,O=Y);L[B][0]!==O&&(E=!0),L[B][0]=O,L[B][1]=P}for(var B=0;B<A;B++){F=[];for(var Y=0;Y<L.length;Y++)L[Y][0]===B&&F.push(I[Y]);N[B]=_(F,k)}}var $={centroids:N,clusterAssigned:L};return $}function _(I,A){for(var k=[],L,N,E=0;E<A.dimensions.length;E++){var P=A.dimensions[E];L=0;for(var O=0;O<I.length;O++)L+=I[O][P];N=L/I.length,k.push(N)}return k}function w(I,A,k){var L=(v(A)?{clusterCount:A,stepByStep:k}:A)||{clusterCount:2},N=L.clusterCount;if(N<2)return;var E=D(I,L),P=E.outputType===m.SINGLE,O=l(I,{dimensions:E.dimensions}),V=f(O.length,2),F,B,Y;function $(Ot,Pe){V[Ot][1]=Pe}function j(Ot){return V[Ot][1]}if(P){F=[];var ft=E.outputClusterIndexDimension;B=function(Ot,Pe){F[Ot][ft]=Pe},Y=function(Ot){return F[Ot][ft]};for(var ut=0;ut<O.length;ut++)F.push(O[ut].slice()),$(ut,0),B(ut,0)}else B=function(Ot,Pe){V[Ot][0]=Pe},Y=function(Ot){return V[Ot][0]};for(var gt=_(O,E),J=[gt],ut=0;ut<O.length;ut++){var vt=M(O[ut],gt,E);$(ut,vt)}var rt,q,at,Et,bt,Gt,Wt=1,Xt={data:F,centroids:J,isEnd:!1};P||(Xt.clusterAssment=V);function $e(){if(Wt<N){rt=1/0;for(var Ot,Pe,_e,se=0;se<J.length;se++){q=[],at=[];for(var Ht=0;Ht<O.length;Ht++)Y(Ht)===se?q.push(O[Ht]):at.push(j(Ht));Et=x(q,2,E),bt=p(Et.clusterAssigned,1),Gt=d(at),bt+Gt<rt&&(rt=Gt+bt,Ot=se,Pe=Et.centroids,_e=Et.clusterAssigned)}for(var Ht=0;Ht<_e.length;Ht++)_e[Ht][0]===0?_e[Ht][0]=Ot:_e[Ht][0]===1&&(_e[Ht][0]=J.length);J[Ot]=Pe[0],J.push(Pe[1]);for(var Ht=0,se=0;Ht<O.length&&se<_e.length;Ht++)Y(Ht)===Ot&&(B(Ht,_e[se][0]),$(Ht,_e[se++][1]));var Zh=[];if(!P){for(var Ht=0;Ht<J.length;Ht++){Zh[Ht]=[];for(var se=0;se<O.length;se++)Y(se)===Ht&&Zh[Ht].push(O[se])}Xt.pointsInCluster=Zh}Wt++}else Xt.isEnd=!0}if(L.stepByStep)Xt.next=function(){return $e(),b(Xt,E),Xt};else for(;$e(),!Xt.isEnd;);return b(Xt,E),Xt}function b(I,A){var k=A.outputCentroidDimensions;if(!(A.outputType!==m.SINGLE||k==null))for(var L=I.data,N=I.centroids,E=0;E<L.length;E++)for(var P=L[E],O=P[A.outputClusterIndexDimension],V=N[O],F=Math.min(V.length,k.length),B=0;B<F;B++)P[k[B]]=V[B]}function S(I,A){for(var k=f(I,A.length),L=0;L<A.length;L++)for(var N=A[L],E=0;E<I;E++)k[E][L]=N.min+N.span*Math.random();return k}function M(I,A,k){for(var L=0,N=k.dimensions,E=k.rawExtents,P=0;P<N.length;P++){var O=E[P].span;if(O){var V=N[P],F=(I[V]-A[P])/O;L+=y(F,2)}}return L}function D(I,A){var k=h(I);if(k.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=k[1],N=[],E=0;E<L;E++)N.push(E);var P=u(A.dimensions,N),O=A.outputType||m.MULTIPLE,V=A.outputClusterIndexDimension;if(O===m.SINGLE&&!g.isNumber(V))throw new Error("outputClusterIndexDimension is required as a number.");var F=T(I,P);return{dimensions:P,rawExtents:F,outputType:O,outputClusterIndexDimension:V,outputCentroidDimensions:A.outputCentroidDimensions}}function T(I,A){for(var k=[],L=A.length,N=0;N<L;N++)k.push({min:1/0,max:-1/0});for(var N=0;N<I.length;N++)for(var E=I[N],P=0;P<L;P++){var O=k[P],V=E[A[P]];O.min>V&&(O.min=V),O.max<V&&(O.max=V)}for(var N=0;N<L;N++)k[N].span=k[N].max-k[N].min;return k}return{OutputType:m,hierarchicalKMeans:w}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(3),l=s.isArray,u=s.size,c=o(4),h=c.isNumber;function p(g,v){return typeof g=="number"?[g]:g??v}function d(g,v){v=v||{};var y=v.dimensions,m={};if(y!=null)for(var x=0;x<y.length;x++)m[y[x]]=!0;var _=v.toOneDimensionArray?y?y[0]:0:null;function w(I){return!y||m.hasOwnProperty(I)}if(!l(g))throw new Error("Invalid data type, you should input an array");var b=[],S=u(g);if(S.length===1)for(var x=0;x<S[0];x++){var M=g[x];h(M)&&b.push(M)}else if(S.length===2)for(var x=0;x<S[0];x++){for(var D=!0,M=g[x],T=0;T<S[1];T++)w(T)&&!h(M[T])&&(D=!1);D&&b.push(_!=null?M[_]:M)}return b}function f(g){var v=g.toString(),y=v.indexOf(".");return y<0?0:v.length-1-y}return{normalizeDimensions:p,dataPreprocess:d,getPrecision:f}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=Object.prototype.toString,l=Array.prototype,u=l.map;function c(m){for(var x=[];h(m);)x.push(m.length),m=m[0];return x}function h(m){return s.call(m)==="[object Array]"}function p(m,x){for(var _=[],w=0;w<m;w++){_[w]=[];for(var b=0;b<x;b++)_[w][b]=0}return _}function d(m){for(var x=0,_=0;_<m.length;_++)x+=m[_];return x}function f(m,x){for(var _=0,w=0;w<m.length;w++)_+=m[w][x];return _}function g(m,x){return m>x?1:m<x?-1:m===x?0:NaN}function v(m,x,_,w){for(_==null&&(_=0),w==null&&(w=m.length);_<w;){var b=Math.floor((_+w)/2),S=g(m[b],x);if(S>0)w=b;else if(S<0)_=b+1;else return b+1}return _}function y(m,x,_){if(m&&x){if(m.map&&m.map===u)return m.map(x,_);for(var w=[],b=0,S=m.length;b<S;b++)w.push(x.call(_,m[b],b,m));return w}}return{size:c,isArray:h,zeros:p,sum:d,sumOfColumn:f,ascending:g,bisect:v,map:y}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){function s(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function l(c){return isFinite(c)&&c===Math.round(c)}function u(c){if(c===0)return 0;var h=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,h)>=10&&h++,h}return{isNumber:s,isInteger:l,quantityExponent:u}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(2),l=s.dataPreprocess,u=s.normalizeDimensions,c={linear:function(d,f){for(var g=f.dimensions[0],v=f.dimensions[1],y=0,m=0,x=0,_=0,w=d.length,b=0;b<w;b++){var S=d[b];y+=S[g],m+=S[v],x+=S[g]*S[v],_+=S[g]*S[g]}for(var M=(w*x-y*m)/(w*_-y*y),D=m/w-M*y/w,T=[],I=0;I<d.length;I++){var S=d[I],A=S.slice();A[g]=S[g],A[v]=M*S[g]+D,T.push(A)}var k="y = "+Math.round(M*100)/100+"x + "+Math.round(D*100)/100;return{points:T,parameter:{gradient:M,intercept:D},expression:k}},linearThroughOrigin:function(d,f){for(var g=f.dimensions[0],v=f.dimensions[1],y=0,m=0,x=0;x<d.length;x++){var _=d[x];y+=_[g]*_[g],m+=_[g]*_[v]}for(var w=m/y,b=[],S=0;S<d.length;S++){var _=d[S],M=_.slice();M[g]=_[g],M[v]=_[g]*w,b.push(M)}var D="y = "+Math.round(w*100)/100+"x";return{points:b,parameter:{gradient:w},expression:D}},exponential:function(d,f){for(var g=f.dimensions[0],v=f.dimensions[1],y=0,m=0,x=0,_=0,w=0,b=0,S=0;S<d.length;S++){var M=d[S];y+=M[g],m+=M[v],b+=M[g]*M[v],x+=M[g]*M[g]*M[v],_+=M[v]*Math.log(M[v]),w+=M[g]*M[v]*Math.log(M[v])}for(var D=m*x-b*b,T=Math.pow(Math.E,(x*_-b*w)/D),I=(m*w-b*_)/D,A=[],k=0;k<d.length;k++){var M=d[k],L=M.slice();L[g]=M[g],L[v]=T*Math.pow(Math.E,I*M[g]),A.push(L)}var N="y = "+Math.round(T*100)/100+"e^("+Math.round(I*100)/100+"x)";return{points:A,parameter:{coefficient:T,index:I},expression:N}},logarithmic:function(d,f){for(var g=f.dimensions[0],v=f.dimensions[1],y=0,m=0,x=0,_=0,w=0;w<d.length;w++){var b=d[w];y+=Math.log(b[g]),m+=b[v]*Math.log(b[g]),x+=b[v],_+=Math.pow(Math.log(b[g]),2)}for(var S=(w*m-x*y)/(w*_-y*y),M=(x-S*y)/w,D=[],T=0;T<d.length;T++){var b=d[T],I=b.slice();I[g]=b[g],I[v]=S*Math.log(b[g])+M,D.push(I)}var A="y = "+Math.round(M*100)/100+" + "+Math.round(S*100)/100+"ln(x)";return{points:D,parameter:{gradient:S,intercept:M},expression:A}},polynomial:function(d,f){var g=f.dimensions[0],v=f.dimensions[1],y=f.order;y==null&&(y=2);for(var m=[],x=[],_=y+1,w=0;w<_;w++){for(var b=0,S=0;S<d.length;S++){var M=d[S];b+=M[v]*Math.pow(M[g],w)}x.push(b);for(var D=[],T=0;T<_;T++){for(var I=0,A=0;A<d.length;A++)I+=Math.pow(d[A][g],w+T);D.push(I)}m.push(D)}m.push(x);for(var k=h(m,_),L=[],w=0;w<d.length;w++){for(var N=0,M=d[w],S=0;S<k.length;S++)N+=k[S]*Math.pow(M[g],S);var E=M.slice();E[g]=M[g],E[v]=N,L.push(E)}for(var P="y = ",w=k.length-1;w>=0;w--)w>1?P+=Math.round(k[w]*Math.pow(10,w+1))/Math.pow(10,w+1)+"x^"+w+" + ":w===1?P+=Math.round(k[w]*100)/100+"x + ":P+=Math.round(k[w]*100)/100;return{points:L,parameter:k,expression:P}}};function h(d,f){for(var g=0;g<d.length-1;g++){for(var v=g,y=g+1;y<d.length-1;y++)Math.abs(d[g][y])>Math.abs(d[g][v])&&(v=y);for(var m=g;m<d.length;m++){var x=d[m][g];d[m][g]=d[m][v],d[m][v]=x}for(var _=g+1;_<d.length-1;_++)for(var w=d.length-1;w>=g;w--)d[w][_]-=d[w][g]/d[g][g]*d[g][_]}for(var b=new Array(f),S=d.length-1,y=d.length-2;y>=0;y--){for(var x=0,g=y+1;g<d.length-1;g++)x+=d[g][y]*b[g];b[y]=(d[S][y]-x)/d[y][y]}return b}var p=function(d,f,g){var v=typeof g=="number"?{order:g}:g||{},y=u(v.dimensions,[0,1]),m=l(f,{dimensions:y}),x=c[d](m,{order:v.order,dimensions:y}),_=y[0];return x.points.sort(function(w,b){return w[_]-b[_]}),x};return p}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s={};return s.max=o(7),s.deviation=o(8),s.mean=o(10),s.median=o(12),s.min=o(14),s.quantile=o(13),s.sampleVariance=o(9),s.sum=o(11),s}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(4),l=s.isNumber;function u(c){for(var h=-1/0,p=0;p<c.length;p++)l(c[p])&&c[p]>h&&(h=c[p]);return h}return u}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(9);return function(l){var u=s(l);return u&&Math.sqrt(u)}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(4),l=s.isNumber,u=o(10);function c(h){var p=h.length;if(!p||p<2)return 0;if(h.length>=2){for(var d=u(h),f=0,g,v=0;v<h.length;v++)l(h[v])&&(g=h[v]-d,f+=g*g);return f/(h.length-1)}}return c}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(11);function l(u){var c=u.length;return c?s(u)/u.length:0}return l}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(4),l=s.isNumber;function u(c){var h=c.length;if(!h)return 0;for(var p=0,d=0;d<h;d++)l(c[d])&&(p+=c[d]);return p}return u}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(13);function l(u){return s(u,.5)}return l}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){return function(s,l){var u=s.length;if(!u)return 0;if(l<=0||u<2)return s[0];if(l>=1)return s[u-1];var c=(u-1)*l,h=Math.floor(c),p=s[h],d=s[h+1];return p+(d-p)*(c-h)}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(4),l=s.isNumber;function u(c){for(var h=1/0,p=0;p<c.length;p++)l(c[p])&&c[p]<h&&(h=c[p]);return h}return u}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(7),l=o(14),u=o(13),c=o(8),h=o(2),p=h.dataPreprocess,d=h.normalizeDimensions,f=o(3),g=f.ascending,v=f.map,y=o(16),m=f.bisect,x=o(17);function _(Y,S){for(var M=typeof S=="string"?{method:S}:S||{},D=M.method==null?w.squareRoot:w[M.method],T=d(M.dimensions),I=p(Y,{dimensions:T,toOneDimensionArray:!0}),A=s(I),k=l(I),L=D(I,k,A),N=x(k,A,L),E=N.step,P=N.toFixedPrecision,O=y(+(Math.ceil(k/E)*E).toFixed(P),+(Math.floor(A/E)*E).toFixed(P),E,P),V=O.length,F=new Array(V+1),B=0;B<=V;B++)F[B]={},F[B].sample=[],F[B].x0=B>0?O[B-1]:O[B]-k===E?k:O[B]-E,F[B].x1=B<V?O[B]:A-O[B-1]===E?A:O[B-1]+E;for(var B=0;B<I.length;B++)k<=I[B]&&I[B]<=A&&F[m(O,I[B],0,V)].sample.push(I[B]);var Y=v(F,function(j){return[+((j.x0+j.x1)/2).toFixed(P),j.sample.length,j.x0,j.x1,j.x0+" - "+j.x1]}),$=v(F,function(j){return[j.x0,j.x1,j.sample.length]});return{bins:F,data:Y,customData:$}}var w={squareRoot:function(b){var S=Math.ceil(Math.sqrt(b.length));return S>50?50:S},scott:function(b,S,M){return Math.ceil((M-S)/(3.5*c(b)*Math.pow(b.length,-1/3)))},freedmanDiaconis:function(b,S,M){return b.sort(g),Math.ceil((M-S)/(2*(u(b,.75)-u(b,.25))*Math.pow(b.length,-1/3)))},sturges:function(b){return Math.ceil(Math.log(b.length)/Math.LN2)+1}};return _}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(2),l=s.getPrecision;return function(u,c,h,p){var d=arguments.length;d<2?(c=u,u=0,h=1):d<3?h=1:d<4?(h=+h,p=l(h)):p=+p;for(var f=Math.ceil(((c-u)/h).toFixed(p)),g=new Array(f+1),v=0;v<f+1;v++)g[v]=+(u+v*h).toFixed(p);return g}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(4);return function(l,u,c){var h=Math.abs(u-l)/c,p=s.quantityExponent(h),d=Math.pow(10,p),f=h/d;f>=Math.sqrt(50)?d*=10:f>=Math.sqrt(10)?d*=5:f>=Math.sqrt(2)&&(d*=2);var g=p<0?-p:0,v=+(u>=l?d:-d).toFixed(g);return{step:v,toFixedPrecision:g}}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(5),l=o(19),u=2;return{type:"ecStat:regression",transform:function(c){var h=c.upstream,p=c.config||{},d=p.method||"linear",f=s(d,h.cloneRawData(),{order:p.order,dimensions:l.normalizeExistingDimensions(c,p.dimensions)}),g=f.points,v=p.formulaOn;v==null&&(v="end");var y;if(v!=="none"){for(var m=0;m<g.length;m++)g[m][u]=v==="start"&&m===0||v==="all"||v==="end"&&m===g.length-1?f.expression:"";y=h.cloneAllDimensionInfo(),y[u]={}}return[{dimensions:y,data:g}]}}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(3),l=o(4),u=o(20);function c(p,d){if(d==null)return;var f=p.upstream;if(s.isArray(d)){for(var g=[],v=0;v<d.length;v++){var y=f.getDimensionInfo(d[v]);m(y,d[v]),g[v]=y.index}return g}else{var y=f.getDimensionInfo(d);return m(y,d),y.index}function m(x,_){if(!x)throw new Error("Can not find dimension by "+_)}}function h(p){if(s.isArray(p)){for(var d=[],f=[],g=0;g<p.length;g++){var v=y(p[g]);d.push(v.name),f.push(v.index)}return{name:d,index:f}}else if(p!=null)return y(p);function y(m){if(l.isNumber(m))return{index:m};if(u.isObject(m)&&l.isNumber(m.index))return m;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:h}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){function s(u,c){if(Object.assign)Object.assign(u,c);else for(var h in c)c.hasOwnProperty(h)&&(u[h]=c[h]);return u}function l(u){const c=typeof u;return c==="function"||!!u&&c==="object"}return{extend:s,isObject:l}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(15),l=o(19);return{type:"ecStat:histogram",transform:function(u){var c=u.upstream,h=u.config||{},p=s(c.cloneRawData(),{method:h.method,dimensions:l.normalizeExistingDimensions(u,h.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:p.data},{data:p.customData}]}}}.call(i,o,i,t),r!==void 0&&(t.exports=r)},function(t,i,o){var r;r=function(a){var s=o(1),l=o(4),u=o(19),c=l.isNumber;return{type:"ecStat:clustering",transform:function(h){var p=h.upstream,d=h.config||{},f=d.clusterCount;if(!c(f)||f<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(f===1)return[{},{data:[]}];var g=u.normalizeNewDimensions(d.outputClusterIndexDimension),v=u.normalizeNewDimensions(d.outputCentroidDimensions);if(g==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var y=s.hierarchicalKMeans(p.cloneRawData(),{clusterCount:f,stepByStep:!1,dimensions:u.normalizeExistingDimensions(h,d.dimensions),outputType:s.OutputType.SINGLE,outputClusterIndexDimension:g.index,outputCentroidDimensions:(v||{}).index}),m=p.cloneAllDimensionInfo(),x=[],_=0;_<m.length;_++){var w=m[_];x.push(w.name)}if(x[g.index]=g.name,v)for(var _=0;_<v.index.length;_++)v.name[_]!=null&&(x[v.index[_]]=v.name[_]);return[{dimensions:x,data:y.data},{data:y.centroids}]}}}.call(i,o,i,t),r!==void 0&&(t.exports=r)}])})})(PA);var gj=PA.exports,vj=gj;function yj(n){let e;return{c(){e=GA("div"),WA(e,"id","chart"),jh(e,"width","100%"),jh(e,"height","100%"),jh(e,"border","1px solid red")},m(t,i){HA(t,e,i)},p:qh,i:qh,o:qh,d(t){t&&YA(e)}}}function mj(n,e,t){let{type:i}=e,{service:o=window.GaReportService}=e,r=[{name:"mature",csvPerc:"G0percentile",csvScore:"G0yourscore"},{name:"youth",csvPerc:"G2percentile",csvScore:"G2yourscore"},{name:"shield",csvPerc:"Spercentile",csvScore:"Syourscore"},{name:"lifestyle",csvPerc:"Bpercentile",csvScore:"Byourscore"},{name:"median",csvPerc:"G1percentile",csvScore:"G1yourscore"}],a,s,l={},u="";const c=r.find(p=>p.name===i);function h(){const p=document.getElementById("chart");p?l=aV(p):console.error("Chart element not found.");var d=44,f=s.data.findIndex(x=>x.x===d),g=s.data[f].x,v=s.data[f].y;vw(vj.transform.regression);var y={animation:!1,backgroundColor:"transparent",dataset:[{source:s.data.map(x=>[x.x,x.y])},{transform:{type:"ecStat:regression",config:{method:"polynomial",order:3}}}],tooltip:{show:!1},xAxis:{min:0,max:100,interval:20,name:"Age",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!0,color:"black",formatter(x){return x===0||x===100?"":x}},splitLine:{show:!1}},yAxis:{min:0,max:.5,name:"Index score",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!0,color:"black",formatter(x){return x===0?"":x}},splitLine:{show:!1}},series:[{type:"scatter",tooltip:{},itemStyle:{color:"#D3D3D3",opacity:.5,borderWidth:1},showInLegend:!1},{name:"Measured result",type:"scatter",data:[{x:g,y:v}],symbolSize:10,itemStyle:{color:"rgb(17,153,153)"},showSymbol:!0},{name:"Population average",type:"line",smooth:!0,datasetIndex:1,symbol:"none",color:"#D3D3D3",z:5,lineStyle:{name:"line",type:"line",color:"#808080",symbol:"none",width:5,opacity:.7},showSymbol:!1}],graphic:[],legend:{show:!0,right:"50%",top:"5%",left:"70%",textStyle:{color:"black"},selected:{"Measured result":!0,"Population average":!0},inactiveColor:"#fff"}};l.setOption(y),y.graphic.push({type:"line",shape:{x1:l.convertToPixel("xAxis",g),y1:l.convertToPixel("yAxis",0),x2:l.convertToPixel("xAxis",g),y2:l.convertToPixel("yAxis",v)},style:{stroke:"rgb(17,153,153)",lineDash:[8,8],lineWidth:3},z:8}),y.graphic.push({type:"line",shape:{x1:l.convertToPixel("xAxis",0),y1:l.convertToPixel("yAxis",v),x2:l.convertToPixel("xAxis",g),y2:l.convertToPixel("yAxis",v)},style:{stroke:"rgb(17,153,153)",lineDash:[8,8],lineWidth:3},z:8}),y.graphic.push({type:"text",style:{x:l.convertToPixel("xAxis",g)+25,y:l.convertToPixel("yAxis",v)-10,text:`${Number.parseFloat(v).toFixed(5)}`,fill:"white",font:"bold 17px sans-serif",borderColor:"rgb(17,153,153)",borderWidth:10,borderRadius:2,backgroundColor:"rgb(17,153,153)"},z:10});const m=7;y.graphic.push({name:"Measured result",type:"circle",shape:{cx:l.convertToPixel("xAxis",g),cy:l.convertToPixel("yAxis",v),r:m},style:{fill:"rgb(17,153,153)"},z:15}),l.setOption(y)}return XA(async()=>{a=await o.getReport(),u=a.sex,s=await o.getScatterData(i,u),console.log("reportData:",a),console.log("scatterData",s.data),c&&(Number(a[c.csvPerc]),Number(a[c.csvScore])),h()}),n.$$set=p=>{"type"in p&&t(0,i=p.type),"service"in p&&t(1,o=p.service)},[i,o]}class RA extends zA{constructor(e){super(),BA(this,e,mj,yj,FA,{type:0,service:1})}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),mm()}get service(){return this.$$.ctx[1]}set service(e){this.$$set({service:e}),mm()}}customElements.define("ga-scatter-plot",VA(RA,{type:{},service:{}},[],[],!1));export{RA as default};
|