moreShopAdmin/dist/admin/assets/echarts.5016c48c.js

31 lines
590 KiB
JavaScript
Raw Normal View History

2024-06-08 15:20:34 +08:00
import{i as G,r as la,m as N,c as F,e as S,a as H,b as et,d as de,f as Hs,g as k,h as ie,j as ge,k as _0,l as O,n as Z,L as Ld,o as Rn,p as De,P as Ie,q as ic,s as x0,t as ce,u as S0,T as aa,v as En,w as tt,x as K,Z as zt,y as j,z as b0,A as w0,B as T0,C as A0,D as Vl,E as Ei,F as Nt,G as Pd,S as Gt,R as ao,H as hr,I as At,J as oe,K as Ze,M as Rd,N as zl,O as C0,Q,U as ne,V as M0,W as Ed,X as Gl,Y as D0,_ as ye,$ as ki,a0 as we,a1 as kn,a2 as q,a3 as U,a4 as Xe,a5 as I0,a6 as Ye,a7 as ee,a8 as rt,a9 as ve,aa as z,ab as Us,ac as L0,ad as bt,ae as $s,af as P0,ag as kd,ah as R0,ai as ma,aj as oc,ak as ko,al as E0,am as ua,an as Ys,ao as k0,ap as sc,aq as Od,ar as Bd,as as no,at as Nd,au as lc,av as Oo,aw as O0,ax as B0,ay as qa,az as uc,aA as cc,aB as N0,aC as V0,aD as or,aE as On,aF as z0,aG as fc,aH as sr,aI as G0,aJ as F0,aK as W0,aL as fn,aM as H0,aN as Bn,aO as U0,aP as $0,aQ as Bo,aR as Si,aS as No,aT as Y0,aU as Vd,aV as hn,aW as vn,aX as Z0,aY as zd,aZ as hc,a_ as X0,a$ as K0,b0 as q0,b1 as j0,b2 as J0,b3 as Q0,b4 as e_,b5 as t_}from"./zrender.58d022a1.js";import{_ as P}from"./tslib.60310f1a.js";var vc=1e-4,Gd=20;function r_(r){return r.replace(/^\s+|\s+$/g,"")}function he(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function $(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?r_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function xe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Gd),r=(+r).toFixed(t),e?r:+r}function Rt(r){return r.sort(function(t,e){return t-e}),r}function Et(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return a_(r)}function a_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Fd(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function n_(r,t){var e=la(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=N(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=N(n,function(h){return Math.floor(h)}),s=la(o,function(h,d){return h+d},0),l=N(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,v=l.length;f<v;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return N(o,function(h){return h/a})}function i_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>Gd?a:xe(a,e)}function Wd(r){var t=Math.PI*2;return(r%t+t)%t}function Oi(r){return r>-vc&&r<vc}var o_=/^(?:(\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 wt(r){if(r instanceof Date)return r;if(G(r)){var t=o_.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function s_(r){return Math.pow(10,Fl(r))}function Fl(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Hd(r,t){var e=Fl(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function dc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.clo
`,`
`,`
`];function Tt(r,t){return t.type=r,t}function il(r){return r.type==="section"}function sg(r){return il(r)?zS:GS}function lg(r){if(il(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=lg(n);i>=t&&(t=i+ +(a&&(!i||il(n)&&!n.noHeader)))}),t}return 0}function zS(r,t,e,a){var n=t.noHeader,i=FS(lg(t)),o=[],s=t.blocks||[];et(!s||k(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(j(u,l)){var c=new wS(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(d,p){var g=t.valueFormatter,y=sg(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):ol(o.join(""),n?e:i.html);if(n)return f;var v=tl(t.header,"ordinal",r.useUTC),h=og(a,r.renderMode).nameStyle;return r.renderMode==="richText"?ug(r,v,h)+i.richText+f:ol('<div style="'+h+";"+ig+';">'+Ye(v)+"</div>"+f,e)}function GS(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=k(x)?x:[x],N(x,function(w,b){return tl(w,k(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":tl(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=og(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":ug(r,v,m))+(o?"":US(r,d,p,g,_)):ol((s?"":f)+(i?"":WS(v,!s,m))+(o?"":HS(d,p,g,_)),e)}}function ff(r,t,e,a,n,i){if(!!r){var o=sg(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function FS(r){return{html:NS[r],richText:VS[r]}}function ol(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+ig+';">'+r+e+"</div>"}function WS(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ye(r)+"</span>"}function HS(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=k(r)?r:[r],'<span style="'+i+";"+a+'">'+N(r,function(o){return Ye(o)}).join("&nbsp;&nbsp;")+"</span>"}function ug(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function US(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,i)}function cg(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Nr(a)}function fg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Ko=function(){function r(){this.richTextStyles={},this._nextStyleNameId=$d()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=kx({color:e,type:t,renderMode:a,markerId:n});return G(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};k(e)?S(e,function(i){return O(a,i)}):O(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function $S(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=k(s),u=cg(t,e),c,f,v,h;if(o>1||l&&!o){var d=YS(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=c=da(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Wl(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Tt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Tt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!kn(_),value:c,valueType:f})].concat(v||[])})}function YS(r,t,e,a,n){var i=t.getData(),o=la(r,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?S(a,function(f){c(da(i,e,f),f)}):S(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Tt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,v
`+g.message)}var n=new Q;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,v=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var h=a.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,v=h.height)}l=this._boundingRect=new ye(u,c,f,v)}if(s){var d=W0(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new oe({shape:l.plain()}));var p=[];return S(e.named,function(g){KA.get(g.svgNodeTagLower)!=null&&(p.push(g),jA(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function jA(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function JA(r){var t=[],e=F();return S(r,function(a){if(a.namedFrom==null){var n=new vw(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var xl=[126,25],Lh="\u5357\u6D77\u8BF8\u5C9B",br=[[[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 Sr=0;Sr<br.length;Sr++)for(var jr=0;jr<br[Sr].length;jr++)br[Sr][jr][0]/=10.5,br[Sr][jr][1]/=-10.5/.75,br[Sr][jr][0]+=xl[0],br[Sr][jr][1]+=xl[1];function QA(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Lh)return;t.push(new hy(Lh,N(br,function(a){return{type:"polygon",exterior:a}}),xl))}}var eC={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function tC(r,t){if(r==="china"){var e=eC[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var rC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function aC(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:rC[0]})}var nC="name",iC=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=F(),this._mapName=t,this._specialAreas=a,this._geoJSON=sC(e)}return r.prototype.load=function(t,e){e=e||nC;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:oC(n)})}var i=F(),o=[];return S(a.regions,function(s){var l=s.name;t&&j(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ye(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?pw(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return QA(e,n),S(n,function(i){var o=i.name;tC(e,i),aC(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function oC(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function sC(r){return G(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ha=F();const Vt={registerMap:function(r,t,e){if(t.svg){var a=new qA(r,t.svg);Ha.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new iC(r,n,e);Ha.set(r,a)}},getGeoResource:function(r){return Ha.get(r)},getMapForUser:function(r){var t=Ha.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Ha.get(r);if(!!a)return a.load(t,e)}};var Vu=["rect","circle","line","ellipse","polygon","polyline","path"],lC=F(Vu),uC=F(Vu.concat(["g"])),cC=F(Vu.concat(["g"])),rm=ae();function vi(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Ph(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var fC=function(){function r(t){var e=new Q;this.uid=wa("ec_map_draw"),this._controller=new em(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Q),e.add(this._svgGroup=new Q)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),v=f.raw,h=f.roam,d=!u.childAt(0)||i;d?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):pe(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=F(),a=F(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],p);y&&d.push(y)}return d}function v(h){return{shape:{points:f(h)}}}n.removeAll(),S(t.geo.regions,function(h){var d=h.name,p=e.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new Q),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],x=[];S(h.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=Nh(A,u)),S(A,function(D){_.push(new hr(v(D)))})}else{var C=T.points;u&&(C=Nh(C,u,!0)),S(C,function(D){x.push(new At(v(D)))})}});var w=c(h.getCenter(),l&&l.project);function b(T,A){if(!!T.length){var C=new Ed({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),Rh(t,C,y,m),Eh(t,C,d,m,o,y,w),A&&(Ph(C),S(C.states,Ph))}}b(_),b(x,!0)}),e.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;kh(t,h,d,y,o,g),Oh(t,h,d,y,o),Bh(t,h,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=F(),i=!1;S(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,v=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(lC.get(c)!=null&&f instanceof fn&&Rh(t,f,v,h),f instanceof fn&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(cC.get(c)!=null&&Eh(t,f,s,h,l,v,null),kh(t,f,s,h,l,v),Oh(t,f,s,h,l),uC.get(c)!=null)){var d=Bh(t,f,s,h,l);d==="self"&&(i=!0);var p=n.get(s)||n.set(s,[]);p.push(f)}},
`))}),t.join(`
`+Ro+`
`)}function UI(r){return N(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+ya:"")+n.join(ya))}),a.join(`
`)}).join(`
`+Ro+`
`)}function $I(r){var t=WI(r);return{value:ve([HI(t.seriesGroupByCategoryAxis),UI(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+Ro+`
`),meta:t.meta}}function to(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function YI(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ya)>=0)return!0}var Pl=new RegExp("["+ya+"]+","g");function ZI(r){for(var t=r.split(/\n+/g),e=to(t.shift()).split(Pl),a=[],n=N(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=to(t[i]).split(Pl);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function XI(r){for(var t=r.split(/\n+/g),e=to(t.shift()),a=[],n=0;n<t.length;n++){var i=to(t[n]);if(!!i){var o=i.split(Pl),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function KI(r,t){var e=r.split(new RegExp(`
*`+Ro+`
*`,"g")),a={series:[]};return S(e,function(n,i){if(YI(n)){var o=ZI(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=XI(n);a.series.push(o)}}),a}var qI=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.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=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),v=i.get("contentToOption"),h=$I(e);if(Z(f)){var d=f(a.getOption());G(d)?u.innerHTML=d:zd(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.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",_=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function b(){n.removeChild(o),w._dom=null}hc(_,"click",b),hc(x,"click",function(){if(v==null&&f!=null||v!=null&&f==null){b();return}var T;try{Z(v)?T=v(u,a.getOption()):T=KI(c.value,g)}catch(A){throw b(),new Error("Data view format error "+A)}T&&a.dispatchAction({type:"changeDataView",newOption:T}),b()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(ct);function jI(r,t){return N(r,function(e,a){var n=t&&t[a];if(H(n)&&!k(n)){var i=H(e)&&!k(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=K(e,n),o&&delete e.name,e}else return e})}Mt({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];S(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(O({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:jI(a.data,i)})}}),t.mergeOption(K({series:e},r.newOption))});const JI=qI;var Qm=S,e0=ae();function QI(r,t){var e=ec(r);Qm(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function eL(r){var t=ec(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return Qm(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function tL(r){e0(r).snapshots=null}function rL(r){return ec(r).length}function ec(r){var t=e0(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var aL=function(r){P(t,r);function t()
`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=J(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=e.positionDefault,p=Ya([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new Ko;y.marker=m.makeTooltipMarker("item",Nr(y.color),h);var _=of(u.formatTooltip(c,!1,f)),x=p.get("order"),w=p.get("valueFormatter"),b=_.frag,T=b?ff(w?O({valueFormatter:w},b):b,m,h,x,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,T,y,A,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=J(a),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,v=Ya(u,this._tooltipModel,f?{position:f}:null),h=v.get("content"),d=Math.random()+"",p=new Ko;this._showOrMove(v,function(){var g=U(v.get("formatterParams")||{});this._showTooltipContent(v,h,g,d,e.offsetX,e.offsetY,e.position,a,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(G(v)){var g=e.ecModel.get("useUTC"),y=k(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=po(y.axisValue,h,g)),h=Ep(h,n,!0)}else if(Z(v)){var _=z(function(x,w){x===this._ticket&&(f.setContent(w,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;f.setContent(h,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||k(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!k(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),k(a))n=$(a[0],u),i=$(a[1],c);else if(H(a)){var p=a;p.width=f[0],p.height=f[1];var g=Ue(p,{width:u,height:c});n=g.x,i=g.y,v=null,h=null}else if(G(a)&&l){var y=kL(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=RL(n,i,o,u,c,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=Kv(v)?f[0]/2:v==="right"?f[0]:0),h&&(i-=Kv(h)?f[1]/2:h==="bottom"?f[1]:0),r0(e)){var y=EL(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&S(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&S(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&S(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&S(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],x=i[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){ge.node||!a.getDom()||(bn(this,"_updatePosition"),this._tooltipCont
`)){var g=new xi;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!c.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,p,d,h,a,e,_,w,x,f,i);b.on("click",Qr(nd,p,null,i,v)).on("mouseover",Qr(Bl,y.name,null,i,v)).on("mouseout",Qr(Nl,y.name,null,i,v)),c.set(p,!0)}else n.eachRawSeries(function(T){if(!c.get(p)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),D=A.getItemVisual(C,"style"),M=A.getItemVisual(C,"legendIcon"),I=Vd(D.fill);I&&I[3]===0&&(I[3]=.2,D=O(O({},D),{fill:Si(I,"rgba")}));var L=this._createItem(T,p,d,h,a,e,{},D,M,f,i);L.on("click",Qr(nd,null,p,i,v)).on("mouseover",Qr(Bl,null,p,i,v)).on("mouseout",Qr(Nl,null,p,i,v)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();Ol(e,function(u){var c=u.type,f=new ne({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Wt(f,{normal:v,emphasis:h},{defaultText:u.title}),Lr(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=nP(c,i,l,u,h,g,v),w=new xi,b=i.getModel("textStyle");if(Z(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(iP({itemWidth:d,itemHeight:p,icon:c,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var A=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;G(D)&&D?M=D.replace("{name}",a!=null?a:""):Z(D)&&(M=D(a));var I=g?b.getTextColor():i.get("inactiveColor");w.add(new ne({style:Te(b,{text:M,x:A,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new oe({shape:w.getBoundingRect(),invisible:!0}),R=i.getModel("tooltip");return R.get("show")&&Sa({el:L,componentModel:o,itemName:a,itemTooltipOption:R.option}),w.add(L),w.eachChild(function(E){E.silent=!0}),L.silent=!f,this.getContentGroup().add(w),Lr(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Rr(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Rr("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+d:f[p]+=v[g]+d,h[1-p]+=c[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+v[g],_[y]=Math.max(c[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ae);function nP(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Ol(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:Yi(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inacti
`||u==="")){var c=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&c:a[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function sP(r){r.registerAction("legendToggleSelect","legendselectchanged",ee(Za,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ee(Za,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ee(Za,"inverseSelect")),r.registerAction("legendSelect","legendselected",ee(Za,"select")),r.registerAction("legendUnSelect","legendunselected",ee(Za,"unSelect"))}function u0(r){r.registerComponentModel(kl),r.registerComponentView(l0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,oP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),sP(r)}var lP=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=Ta(e);r.prototype.init.call(this,e,a,n),id(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),id(this,this.option,e)},t.type="legend.scroll",t.defaultOption=vr(kl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(kl);function id(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,ur(t,e,{type:"box",ignoreSize:!!n})}const uP=lP;var od=Q,ks=["width","height"],Os=["x","y"],cP=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new od),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new od)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),v=k(f)?f:[f,f];d("pagePrev",0);var h=a.getModel("pageTextStyle");c.add(new ne({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Vn(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:z(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=ks[u],f=Os[u],v=ks[1-u],h=Os[1-u];o&&Rr("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=U(n);o&&(y[c]=n[c]-p[c]-d);var m=this._layoutContentAndController(e,i,y,u,c,v,h,f);if(o){if(s==="end")g[u]+=m[c]+d;else{var _=p[c]+d;g[u]-=_,m[f]-=_}m[c]+=p[c]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Rr(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Rr("horizontal",v,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=ce(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,c.setPosition(g),f.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),f.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.m