Files
aiot-platform-ui/apps/web-antd/dist/js/use-echarts-C2aELJCl.js

39 lines
1.3 MiB
JavaScript
Raw Normal View History

2026-03-09 13:05:46 +08:00
var Fg=Object.defineProperty;var La=Object.getOwnPropertySymbols;var Vg=Object.prototype.hasOwnProperty,Gg=Object.prototype.propertyIsEnumerable;var Pa=(r,e,t)=>e in r?Fg(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,lr=(r,e)=>{for(var t in e||(e={}))Vg.call(e,t)&&Pa(r,t,e[t]);if(La)for(var t of La(e))Gg.call(e,t)&&Pa(r,t,e[t]);return r};var ur=(r,e,t)=>new Promise((n,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(r,e)).next())});import{m as Hg,ad as Wg,b2 as Ug,aQ as Yg,aa as Zg,w as Ra,dm as Xg,cN as $g,dn as fr,n as qg,ca as Kg,dp as Jg}from"../jse/index-index-CMeVxoEG.js";import{u as Qg}from"./bootstrap-CRjSNGHY.js";var Z6=function(r,e){return Z6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Z6(r,e)};function B(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Z6(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Rn=12,jg="sans-serif",Ce=Rn+"px "+jg,em=20,tm=100,rm="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nm(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-em)/tm;e[n]=i}return e}var im=nm(rm),S2={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var i=S2.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Ce),r.measureText(t);t=t||"",n=n||Ce;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Rn,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=im[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}};function Kf(r){for(var e in S2)r[e]&&(S2[e]=r[e])}var Jf=i3(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Qf=i3(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),C0=Object.prototype.toString,R8=Array.prototype,am=R8.forEach,om=R8.filter,En=R8.slice,sm=R8.map,Ea=function(){}.constructor,b9=Ea?Ea.prototype:null,kn="__proto__",lm=2311;function On(){return lm++}function E8(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function Q(r){if(r==null||typeof r!="object")return r;var e=r,t=C0.call(r);if(t==="[object Array]"){if(!h0(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=Q(r[n])}}else if(Qf[t]){if(!h0(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!Jf[t]&&!h0(r)&&!Mt(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==kn&&(e[o]=Q(r[o]))}return e}function o1(r,e,t){if(!K(e)||!K(r))return t?Q(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==kn){var i=r[n],a=e[n];K(a)&&K(i)&&!W(a)&&!W(i)&&!Mt(a)&&!Mt(i)&&!X6(a)&&!X6(i)&&!h0(a)&&!h0(i)?o1(i,a,t):(t||!(n in r))&&(r[n]=Q(e[n]))}return r}function jf(r,e){for(var t=r[0],n=1,i=r.length;n<i;n++)t=o1(t,r[n],e);return t}function H(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==kn&&(r[t]=e[t]);return r}function n1(r,e,t){for(var n=T1(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var um=S2.createCanvas;function f1(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function Nn(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function b2(r,e,t){if(r="prototype"in r?r.p
2026-01-25 22:37:53 +08:00
`),a=i.length;if(a===1)return za(i[0],e,t,n);for(var o=new r1(0,0,0,0),s=0;s<i.length;s++){var l=za(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function m0(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function gt(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function z8(r){return M3(r).stWideCharWidth}function D3(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function z5(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",h="top";if(n instanceof Array)l+=D3(n[0],t.width),u+=D3(n[1],t.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var vr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Bm(r,e,t,n,i){var a={};return ch(a,r,e,t,n,i),a.text}function ch(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
`);a=dh(t,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ph(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function dh(r,e,t,n){n=n||{};var i=H({},n);t=e1(t,"..."),i.maxIterations=e1(n.maxIterations,2);var a=i.minChar=e1(n.minChar,0),o=i.fontMeasureInfo=M3(e),s=o.asciiCharWidth;i.placeholder=e1(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=C3(o,t);return f>l&&(t="",f=0),l=r-f,i.ellipsis=t,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=r,i}function ph(r,e,t){var n=t.containerWidth,i=t.contentWidth,a=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=C3(a,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?zm(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=C3(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function zm(r,e,t){for(var n=0,i=0,a=r.length;i<a&&n<e;i++)n+=vh(t,r.charCodeAt(i));return i}function Fm(r,e,t,n){var i=Hn(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",h=z8(u),c=e1(e.lineHeight,h),v=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(a==="break"||a==="breakAll")?m=i?gh(i,e.font,p,a==="breakAll",0).lines:[]:m=i?i.split(`
`):[];var y=m.length*c;if(g==null&&(g=y),y>g&&v){var _=Math.floor(g/c);d=d||m.length>_,m=m.slice(0,_),y=m.length*c}if(i&&f&&p!=null)for(var S=dh(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},b=0;b<m.length;b++)ph(x,m[b],S),m[b]=x.textLine,d=d||x.isTruncated;for(var w=g,T=0,C=M3(u),b=0;b<m.length;b++)T=Math.max(C3(C,m[b]),T);p==null&&(p=T);var D=p;return w+=l,D+=s,{lines:m,height:g,outerWidth:D,outerHeight:w,lineHeight:c,calculatedLineHeight:h,contentWidth:T,contentHeight:y,width:p,isTruncated:d}}var Vm=function(){function r(){}return r}(),Fa=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),Gm=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function Hm(r,e,t,n,i){var a=new Gm,o=Hn(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var h=e.height;h==null&&n!=null&&(h=n-u);for(var c=e.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=vr.lastIndex=0,p;(p=vr.exec(o))!=null;){var g=p.index;g>d&&cr(a,o.substring(d,g),e,v),cr(a,p[2],e,v,p[1]),d=vr.lastIndex}d<o.length&&cr(a,o.substring(d,o.length),e,v);var m=[],y=0,_=0,S=c==="truncate",x=e.lineOverflow==="truncate",b={};function w(L1,J1,G1){L1.width=J1,L1.lineHeight=G1,y+=G1,_=Math.max(_,J1)}e:for(var T=0;T<a.lines.length;T++){for(var C=a.lines[T],D=0,A=0,L=0;L<C.tokens.length;L++){var I=C.tokens[L],P=I.styleName&&e.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,N=I.font=P.font||e.font;I.contentHeight=z8(N);var k=e1(P.height,I.contentHeight);if(I.innerHeight=k,R&&(k+=R[0]+R[2]),I.height=k,I.lineHeight=be(P.lineHeight,e.lineHeight,k),I.align=P&&P.align||i,I.verticalAlign=P&&P.verticalAlign||"middle",x&&h!=null&&y+I.lineHeight>h){var z=a.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),w(C,A,D),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<z;break e}var F=P.width,V=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")I.percentWidth=F,m.push(I),I.contentWidth=C3(M3(N),I.text);else{if(V){var G=P.backgroundColor,q=G&&G.image;q&&(q=Lm(q),B8(q)&&(I.width=Math.max(I.width,q.width*k/q.height)))}var i1=S&&f!=null?f-A:null;i1!=null&&i1<I.width?!V||i1<E?(I.text="",I.width=I.contentWidth=0):(ch(b,I.text,i1-E,N,e.ellipsis,{minChar:e.truncateMinChar}),I.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,I.width=I.contentWidth=C3(M3(N),I.text)):I.contentWidth=C3(M3(N),I.text)}I.width+=E,A+=I.width,P&&(D=Math.max(D,I.lineHeight))}w(C,A,D)}a.outerWidth=a.width=e1(f,_),a.outerHeight=a.height=e1(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var T=0;T<m.length;T++){var I=m[T],h1=I.percentWidth;I.width=parseInt(h1,10)/100*a.width}return a}function cr(r,e,t,n,i){var a=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=D3(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
`),u=!0),n.accumWidth=d}else{var p=gh(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}f||(f=e.split(`
`));for(var g=M3(l),m=0;m<f.length;m++){var y=f[m],_=new Vm;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[m]:C3(g,y),!m&&!u){var S=(s[s.length-1]||(s[0]=new Fa)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(y||!x||a)&&S.push(_)}else s.push(new Fa([_]))}}function Wm(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Um=i3(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function Ym(r){return Wm(r)?!!Um[r]:!0}function gh(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=M3(e),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=vh(h,v.charCodeAt(0)),p=n?!1:!Ym(v);if(a.length?f+d>t:i+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):p?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Va(r,e,t,n,i,a){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;r1.set(Ga,m0(t,o,i),gt(n,s,a),o,s),r1.intersect(e,Ga,null,Ha);var l=Ha.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=m0(l.x,l.width,i,!0),r.baseY=gt(l.y,l.height,a,!0)}}var Ga=new r1(0,0,0,0),Ha={outIntersectRect:{},clamp:!0};function Hn(r){return r!=null?r+="":r=""}function Zm(r){var e=Hn(r.text),t=r.font,n=C3(M3(t),e),i=z8(t);return J6(r,n,i,null)}function J6(r,e,t,n){var i=new r1(m0(r.x||0,e,r.textAlign),gt(r.y||0,t,r.textBaseline),e,t),a=n!=null?n:mh(r)?r.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function mh(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}function Et(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function yh(r,e){return r[0]=e[0],r[1]=e[1],r}function _h(r){return[r[0],r[1]]}function Xm(r,e,t){return r[0]=e,r[1]=t,r}function Q6(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function $m(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Sh(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Wn(r){return Math.sqrt(Un(r))}var qm=Wn;function Un(r){return r[0]*r[0]+r[1]*r[1]}var Km=Un;function Jm(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function Qm(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function jm(r,e){return r[0]*e[0]+r[1]*e[1]}function y5(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function bh(r,e){var t=Wn(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function F5(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var V5=F5;function xh(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var mt=xh;function ey(r,e){return r[0]=-e[0],r[1]=-e[1],r}function _4(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function K1(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function z3(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function F3(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const ty=Object.freeze(Object.defineProperty({__proto__:null,add:Q6,applyTransform:K1,clone:_h,copy:yh,create:Et,dist:V5,distSquare:mt,distance:F5,distanceSquare:xh,div:Qm,dot:jm,len:Wn,lenSquare:Un,length:qm,lengthSquare:Km,lerp:_4,max:F3,min:z3,mul:Jm,negate:ey,normalize:bh,scale:y5,scaleAndAdd:$m,set:Xm,sub:Sh},Symbol.toStringTag,{value:"Module"}));var Wa=o9,Ua=5e-5;function Ve(r){return r>Ua||r<-Ua}var Ge=[],Nt=[],dr=D2(),pr=Math.abs,V3=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ve(this.rotation)||Ve(this.x)||Ve(this.y)||Ve(this.scaleX-1)||Ve(this.scaleY-1)||Ve(this.skewX)||Ve(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Wa(n),this.invTransform=null);return}n=n||D2(),t?this.getLocalTransform(n):Wa(n),e&&(t?Y3(n,e,n):s9(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ge);var n=Ge[0]<0?-1:1,i=Ge[1]<0?-1:1,a=((Ge[0]-n)*t+n)/Ge[0]||0,o=((Ge[1]-i)*t+i)/Ge[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||D2(),ee(this.inv
yyyy`);var n=te(e),i=t?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",h2(o,2)).replace("M",o).replace("yyyy",a).replace("yy",h2(a%100+"",2)).replace("dd",h2(s,2)).replace("d",s).replace("hh",h2(l,2)).replace("h",l).replace("mm",h2(u,2)).replace("m",u).replace("ss",h2(f,2)).replace("s",f).replace("SSS",h2(h,3)),r}function qb(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function It(r,e){return e=e||"transparent",Y(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function ts(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var I5=M,Kb=["left","right","top","bottom","width","height"],W9=[["width","left","right"],["height","top","bottom"]];function Oi(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+t:o=d+t)})}var xt=Oi;d1(Oi,"vertical");d1(Oi,"horizontal");function Jb(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function Qb(r,e){var t=I3(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),i,a;if(t.type===c4.point)a=t.refPoint,i=o2(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=W(o)?o:[o,o];i=o2(n,t.refContainer),a=t.boxCoordFrom===D7.coord2?t.refPoint:[J(s[0],i.width)+i.x,J(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function jb(r,e){var t=Qb(r,e),n=t.viewRect,i=t.center,a=r.get("radius");W(a)||(a=[0,a]);var o=J(n.width,e.getWidth()),s=J(n.height,e.getHeight()),l=Math.min(o,s),u=J(a[0],l/2),f=J(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function o2(r,e,t){t=R0(t||0);var n=e.width,i=e.height,a=J(r.left,n),o=J(r.top,i),s=J(r.right,n),l=J(r.bottom,i),u=J(r.width,n),f=J(r.height,i),h=t[2]+t[0],c=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new r1((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function ex(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var i=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(i))<1e-9)return e;var a=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=n==="cover";return i>t&&!l||i<t&&l?(s.width=e.height*t,a==="left"?s.left=0:a==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),o2(s,e)}var c4={rect:1,point:2};function I3(r,e,t){var n,i,a,o=r.boxCoordinateSystem,s;if(o){var l=cb(r),u=l.coord,f=l.from;if(o.dataToLayout){a=c4.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=c4.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=c4.rect),a===c4.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function _c(r,e,t,n,i,a){a=a||r,a.x=r.x,a.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=o2(n1({width:o.width,height:o.height},e),t,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===r&&r.markRedraw(),!0}function Z4(r){var e=r.layoutMode||r.con
`,`
`,`
`];function J3(r,e){return e.type=r,e}function P7(r){return r.type==="section"}function Tc(r){return P7(r)?xx:Tx}function Mc(r){if(P7(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return M(r.blocks,function(i){var a=Mc(i);a>=e&&(e=a+ +(n&&(!a||P7(i)&&!i.noHeader)))}),e}return 0}function xx(r,e,t,n){var i=e.noHeader,a=Mx(Mc(e)),o=[],s=e.blocks||[];A2(!s||W(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(z1(u,l)){var f=new Kv(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tc(p)(m?H(H({},r),{valueFormatter:m}):r,p,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):R7(n,o.join(""),i?t:a.html);if(i)return h;var c=L7(e.header,"ordinal",r.useUTC),v=wc(n,r.renderMode).nameStyle,d=xc(n);return r.renderMode==="richText"?Cc(r,c,v)+a.richText+h:R7(n,'<div style="'+v+";"+d+';">'+c2(c)+"</div>"+h,t)}function Tx(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=W(S)?S:[S],U(S,function(x,b){return L7(x,W(v)?v[b]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||O.color.secondary,i),c=a?"":L7(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!a,g=!s&&a,m=wc(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":Cc(r,c,y))+(o?"":Ax(r,d,p,g,_)):R7(n,(s?"":h)+(a?"":Cx(c,!s,y))+(o?"":Dx(d,p,g,_)),t)}}function ls(r,e,t,n,i,a){if(r){var o=Tc(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Mx(r){return{html:Sx[r],richText:bx[r]}}function R7(r,e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0",a=xc(r);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function Cx(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+c2(r)+"</span>"}function Dx(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=W(r)?r:[r],'<span style="'+a+";"+n+'">'+U(r,function(o){return c2(o)}).join("&nbsp;&nbsp;")+"</span>"}function Cc(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Ax(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function Dc(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return It(n)}function Ac(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Xr=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Yh()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=yc({color:t,type:e,renderMode:n,markerId:i});return Y(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};W(t)?M(t,function(a){return H(n,a)}):H(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function Ix(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=W(s),u=Dc(e,t),f,h,c,v;if(o>1||l&&!o){var d=Lx(s,e,t,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=x0(i,t,a[0]),h=p.type}else v=f=l?s[0]:s;var g=Jn(e),m=g&&e.name||"",y=i.getName(t),_=n?m:y;return J3("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[J3("nameValue",{markerType:"item",markerColor:u,name:_,noName:!H2(_),value:f,valueType:h,dataIndex:t})].concat(c||[])})}function Lx(r,e,t,n,i){var a=e.getData(),o=i3(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(h){f(x0(a,t,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(J3("nameValue",{markerT
`+g.message)}var i=new u1;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(a!=null?(u=0,h=a):s&&(u=s.x,h=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new r1(u,f,h,c)}if(s){var d=Op(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new v1({shape:l.plain()}));var p=[];return M(t.named,function(g){PA.get(g.svgNodeTagLower)!=null&&(p.push(g),EA(g.el))}),{root:i,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function EA(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function kA(r){var e=[],t=$();return M(r,function(n){if(n.namedFrom==null){var i=new LA(n.name,n.el);e.push(i),t.set(n.name,i)}}),{regions:e,regionsMap:t}}function OA(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return M(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=zp(s,o,t);break;case"Polygon":D6(s,o,t);break;case"MultiLineString":D6(s,o,t);break;case"MultiPolygon":M(s,function(l,u){return D6(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function D6(r,e,t){for(var n=0;n<r.length;n++)r[n]=zp(r[n],e[n],t)}function zp(r,e,t){for(var n=[],i=e[0],a=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/t,l/t])}return n}function hn(r,e){return r=OA(r),U(C1(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new fu(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new fu(l[0],l.slice(1)))});break;case"LineString":a.push(new hu([i.coordinates]));break;case"MultiLineString":a.push(new hu(i.coordinates))}var s=new Bp(n[e||"name"],a,n.cp);return s.properties=n,s})}var vn=[126,25],vu="南海诸岛",ot=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var it=0;it<ot.length;it++)for(var Qt=0;Qt<ot[it].length;Qt++)ot[it][Qt][0]/=10.5,ot[it][Qt][1]/=-10.5/.75,ot[it][Qt][0]+=vn[0],ot[it][Qt][1]+=vn[1];function NA(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===vu)return;e.push(new Bp(vu,U(ot,function(n){return{type:"polygon",exterior:n}}),vn))}}var BA={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function zA(r,e){if(r==="china"){var t=BA[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var FA=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function VA(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:FA[0]})}var GA="name",HA=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=$(),this._mapName=e,this._specialAreas=n,this._geoJSON=UA(t)}return r.prototype.load=function(e,t){t=t||GA;var n=this._parsedMap.get(t);if(!n){var i=
`+a.message)}return NA(t,i),M(i,function(a){var o=a.name;zA(t,a),VA(t,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function WA(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function UA(r){return Y(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var r4=$();const j3={registerMap:function(r,e,t){if(e.svg){var n=new RA(r,e.svg);r4.set(r,n)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var n=new HA(r,i,t);r4.set(r,n)}},getGeoResource:function(r){return r4.get(r)},getMapForUser:function(r){var e=r4.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=r4.get(r);if(n)return n.load(e,t)}};var pa=["rect","circle","line","ellipse","polygon","polyline","path"],YA=$(pa),ZA=$(pa.concat(["g"])),XA=$(pa.concat(["g"])),Fp=S1();function f5(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function cu(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Vp=function(){function r(e){var t=this.group=new u1,n=this._transformGroup=new u1;t.add(n),this.uid=L0("ec_map_draw"),this._controller=new Pp(e.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new u1),n.add(this._svgGroup=new u1)}return r.prototype.draw=function(e,t,n,i,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===e&&(s=_.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this._transformGroup,h=l.getTransformInfo(),c=h.raw,v=h.roam,d=!u.childAt(0)||a,p=e.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new v1({shape:g.clone()}))):this.group.removeClipPath(),d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):A1(f,v,e);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,g,t,n),this._updateMapSelectHandler(e,u,n,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),n=$(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function h(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var m=f(v[g],p);m&&d.push(m)}return d}function c(v){return{shape:{points:h(v)}}}i.removeAll(),M(e.geo.regions,function(v){var d=v.name,p=t.get(d),g=n.get(d)||{},m=g.dataIdx,y=g.regionModel;if(!p){p=t.set(d,new u1),i.add(p),m=s?s.indexOfName(d):null,y=e.isGeo?o.getRegionModel(d):s?s.getItemModel(m):null;var _=y.get("silent",!0);_!=null&&(p.silent=_),n.set(d,{dataIdx:m,regionModel:y})}var S=[],x=[];M(v.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=_u(C,u)),M(C,function(A){S.push(new L2(c(A)))})}else{var D=T.points;u&&(D=_u(D,u,!0)),M(D,function(A){x.push(new P2(c(A)))})}});var b=f(v.getCenter(),l&&l.project);function w(T,C){if(T.length){var D=new si({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(D),du(e,D,m,y),pu(e,D,d,y,o,m,b),C&&(cu(D),M(D.states,cu))}}w(S),w(x,!0)}),t.each(function(v,d){var p=n.get(d),g=p.dataIdx,m=p.regionModel;gu(e,v,d,m,o,g),mu(e,v,d,m,o),yu(e,v,d,m,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=$(),a=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);YA.get(f)!=null&&h instanceof Ae&&du(
`))}),e.join(`
`+ar+`
`)}function FL(r){return U(r,function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=t.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+M0:"")+i.join(M0))}),n.join(`
`)}).join(`
`+ar+`
`)}function VL(r){var e=BL(r);return{value:C1([zL(e.seriesGroupByCategoryAxis),FL(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+ar+`
`),meta:e.meta}}function C8(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function GL(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(M0)>=0)return!0}var xn=new RegExp("["+M0+"]+","g");function HL(r){for(var e=r.split(/\n+/g),t=C8(e.shift()).split(xn),n=[],i=U(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=C8(e[a]).split(xn);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function WL(r){for(var e=r.split(/\n+/g),t=C8(e.shift()),n=[],i=0;i<e.length;i++){var a=C8(e[i]);if(a){var o=a.split(xn),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:t,data:n}}function UL(r,e){var t=r.split(new RegExp(`
*`+ar+`
*`,"g")),n={series:[]};return M(t,function(i,a){if(GL(i)){var o=HL(i),s=e[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=WL(i);n.series.push(o)}}),n}var YL=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||O.color.neutral00;var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=VL(t);if(j(h)){var d=h(n.getOption());Y(d)?u.innerHTML=d:Mt(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.style;p.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",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var x=this;function b(){i.removeChild(o),x._dom=null}F7(_,"click",b),F7(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){b();return}var w;try{j(c)?w=c(u,n.getOption()):w=UL(f.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=y,!a.get("readOnly")&&m.appendChild(S),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={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:O.color.background,textColor:O.color.primary,textareaColor:O.color.background,textareaBorderColor:O.color.border,buttonColor:O.color.accent50,buttonTextColor:O.color.neutral00};return n},e}(j2);function ZL(r,e){return U(r,function(t,n){var i=e&&e[n];if(K(i)&&!W(i)){var a=K(t)&&!W(t);a||(t={value:t});var o=i.name!=null&&t.name==null;return t=n1(t,i),o&&delete t.name,t}else return t})}u3({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];M(r.newOption.series,function(n){var i=e.getSeriesByName(n.name)[0];if(!i)t.push(H({type:"scatter"},n));else{var a=i.get("data");t.push({name:n.name,data:ZL(n.data,a)})}}),e.mergeOption(n1({series:t},r.newOption))});var cg=M,dg=S1();function XL(r,e){var t=Ta(r);cg(e,function(n,i){for(var a=t.length-1;a>=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function $L(r){var e=Ta(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return cg(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function qL(r){dg(r).snapshots=null}function KL(r){return Ta(r).length}function Ta(r){var e=dg(r);return e.snapshots||(e.snapsh
`:"<br/>",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=l1(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=t.positionDefault,p=a4([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,h),y=new Xr;m.marker=y.makeTooltipMarker("item",It(m.color),v);var _=ns(u.formatTooltip(f,!1,h)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?ls(x?H({valueFormatter:x},b):b,y,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,T,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=l1(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Q(l),l.content=c2(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=t.positionDefault,d=a4(h,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new Xr;this._showOrMove(d,function(){var y=Q(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,t.offsetX,t.offsetY,t.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(Y(c)){var g=t.ecModel.get("useUTC"),m=W(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=c,y&&(v=y9(m.axisValue,v,g)),v=ki(v,i,!0)}else if(j(c)){var _=X(function(S,x){S===this._ticket&&(h.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,t,p,l),h.show(t,p),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var h=o.getSize(),c=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),j(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),W(n))i=J(n[0],u),a=J(n[1],f);else if(K(n)){var p=n;p.width=h[0],p.height=h[1];var g=o2(p,{width:u,height:f});i=g.x,a=g.y,c=null,v=null}else if(Y(n)&&l){var m=wP(n,d,h,t.get("borderWidth"));i=m[0],a=m[1]}else{var m=bP(i,a,o,u,f,c?null:20,v?null:20);i=m[0],a=m[1]}if(c&&(i-=sf(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=sf(v)?h[1]/2:v==="bottom"?h[1]:0),gg(t)){var m=xP(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&M(u,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&M(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e
`)){var y=new d5;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,m,p,d,n,t,x,w,b,h,a);T.on("click",e0(hf,m,null,a,v)).on("mouseover",e0(Dn,_.name,null,a,v)).on("mouseout",e0(An,_.name,null,a,v)),i.ssr&&T.eachChild(function(C){var D=l1(C);D.seriesIndex=_.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),c&&T.eachChild(function(C){g.packEventData(C,n,_,p,m)}),f.set(m,!0)}else i.eachRawSeries(function(C){var D=this;if(!f.get(m)&&C.legendVisualProvider){var A=C.legendVisualProvider;if(!A.containName(m))return;var L=A.indexOfName(m),I=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),R=d2(I.fill);R&&R[3]===0&&(R[3]=.2,I=H(H({},I),{fill:W2(R,"rgba")}));var E=this._createItem(C,m,p,d,n,t,{},I,P,h,a);E.on("click",e0(hf,null,m,a,v)).on("mouseover",e0(Dn,null,m,a,v)).on("mouseout",e0(An,null,m,a,v)),i.ssr&&E.eachChild(function(N){var k=l1(N);k.seriesIndex=C.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),c&&E.eachChild(function(N){D.packEventData(N,n,C,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(t,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};l1(t).eventData=s},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();Cn(t,function(u){var f=u.type,h=new b1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);A3(h,{normal:c,emphasis:v},{defaultText:u.title}),G4(h)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,h,c){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=RP(f,a,l,u,v,g,c),x=new d5,b=a.getModel("textStyle");if(j(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;x.add(EP({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),A=n;Y(D)&&D?A=D.replace("{name}",n!=null?n:""):j(D)&&(A=D(n));var L=g?b.getTextColor():a.get("inactiveColor");x.add(new b1({style:U1(b,{text:A,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new v1({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&A0({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(x),G4(x),x.__legendDataIndex=i,x},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xt(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xt("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[m]/2-c[m]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[m]=Math.max(f[m],c[m]),_[y]=Math.min(0,c[y]+v[1-p]),_}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}(V1);function RP(r,e,t,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Cn(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getSha
`||i==="")){var a=r.isSelected(i);z1(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function OP(r){r.registerAction("legendToggleSelect","legendselectchanged",d1(o4,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",d1(o4,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",d1(o4,"inverseSelect")),r.registerAction("legendSelect","legendselected",d1(o4,"select")),r.registerAction("legendUnSelect","legendunselected",d1(o4,"unSelect"))}function xg(r){r.registerComponentModel(Mn),r.registerComponentView(Sg),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,kP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),OP(r)}var NP=function(r){B(e,r);function e(){var t=r!==null&&r.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,n,i){var a=E0(t);r.prototype.init.call(this,t,n,i),cf(this,t,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),cf(this,this.option,t)},e.type="legend.scroll",e.defaultOption=P0(Mn.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:O.color.accent50,pageIconInactiveColor:O.color.accent10,pageIconSize:15,pageTextStyle:{color:O.color.tertiary},animationDurationUpdate:800}),e}(Mn);function cf(r,e,t){var n=r.getOrient(),i=[1,1];i[n.index]=0,Ie(e,t,{type:"box",ignoreSize:!!i})}var df=u1,k6=["width","height"],O6=["x","y"],BP=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new df),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new df)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=W(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new b1({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=d9(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:X(u._pageGo,u,m,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=k6[u],h=O6[u],c=k6[1-u],v=O6[1-u];o&&xt("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Q(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(t,a,m,u,f,c,v,h);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[h]-=_}y[f]+=p[f]+d,g[1-u]+=y[v]+y[c]/2-p[c]/2,y[c]=Math.max(y[c],p[c]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;xt(t.get("orient"),f,t.get("itemGap"),a?i.width:null,a?null:i.height),xt("horizontal",c,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=e1(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),c.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=x[s],h.setClipPath(new v1({shape:b})),h.__rectSi