2023-02-03 17:09:06 +08:00
|
|
|
var dn=(r,e,t)=>new Promise((a,n)=>{var i=l=>{try{s(t.next(l))}catch(u){n(u)}},o=l=>{try{s(t.throw(l))}catch(u){n(u)}},s=l=>l.done?a(l.value):Promise.resolve(l.value).then(i,o);s((t=t.apply(r,e)).next())});import{_ as Ir,d as dr,I as OM,i as ya,s as ur,r as Zt,o as mt,e as Cr,w as Ht,b as Pt,c as Et,E as vf,F as vi,a as O,l as fe,g as Ft,O as NM,C as vo,T as cf,Q as BM,p as fh,q as hh,j as xw,m as $r,R as VM,H as zM,u as Si,U as FM,k as GM,h as py,V as HM,N as ww,W as $M,B as WM,n as UM,X as YM,Y as gy}from"./index.js?v=acacf0dc";const bw=r=>(fh("data-v-37664f80"),r=r(),hh(),r),ZM=bw(()=>O("div",{class:"app-content"},[O("div",{class:"app-icon",style:{background:"none",padding:"0"}},[O("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[O("title",null,"\u5E94\u7528\u5546\u5E97"),O("g",{id:"\u5E94\u7528\u5546\u5E97",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),O("g",{id:"Group-4",transform:"translate(100.000000, 110.000000)"},[O("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,295.333333 27,290 L27,70 C27,64.6666668 31.6725001,60 37.0125,60 L283.9875,60 C289.3275,60 294,64.6666668 294,70 L294,290 C294,295.333333 289.995,300 283.9875,300 Z",id:"Path",fill:"#F4F4F4","fill-rule":"nonzero"}),O("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,298.852778 27,297.541667 L27,243.458333 C27,242.147222 31.6725001,241 37.0125,241 L283.9875,241 C289.3275,241 294,242.147222 294,243.458333 L294,297.541667 C294,298.852778 289.995,300 283.9875,300 Z",id:"Path",fill:"#CACACA","fill-rule":"nonzero"}),O("g",{id:"Group"},[O("g",{id:"Group-3"},[O("path",{d:"M95,0 L80,135 C80,157.09139 62.09139,175 40,175 C17.90861,175 0,157.09139 0,135 L34,0 L95,0 Z",id:"Path",fill:"#C0FFEA"}),O("path",{d:"M160,0 L160,135 C160,157.09139 142.09139,175 120,175 C97.90861,175 80,157.09139 80,135 C80,131.957009 80.3397951,128.993381 80.9835121,126.14499 L95,0 L160,0 Z",id:"Path",fill:"#01DE96"}),O("path",{d:"M160,0 L227,0 L239.258077,127.292436 C239.744914,129.78649 240,132.363456 240,135 C240,157.09139 222.09139,175 200,175 C177.90861,175 160,157.09139 160,135 L160,135 L160,0 Z",id:"Combined-Shape",fill:"#C0FFEA"}),O("path",{d:"M227,0 L288,0 L320,135 C320,157.09139 302.09139,175 280,175 C258.129524,175 240.35859,157.447771 240.005359,135.661473 L240,135 L227,0 Z",id:"Path",fill:"#01DE96"})]),O("g",{id:"Group-2",transform:"translate(0.000000, 135.000000)"},[O("path",{d:"M80,0 C80,22.09139 62.09139,40 40,40 C17.90861,40 0,22.09139 0,0 L80,0 Z",id:"Path",fill:"#B3F1DD"}),O("path",{d:"M160,0 C160,22.09139 142.09139,40 120,40 C97.90861,40 80,22.09139 80,0 L160,0 Z",id:"Path",fill:"#02C485"}),O("path",{d:"M240,0 C240,22.09139 222.09139,40 200,40 C178.129524,40 160.35859,22.4477713 160.005359,0.66147314 L160,0 L240,0 Z",id:"Path",fill:"#B3F1DD"}),O("path",{d:"M320,0 C320,22.09139 302.09139,40 280,40 C258.129524,40 240.35859,22.4477713 240.005359,0.66147314 L240,0 L320,0 Z",id:"Path",fill:"#02C485"})])])])])])]),O("div",{class:"app-name"}," \u5E94\u7528\u5546\u5E97 ")],-1)),XM=bw(()=>O("div",{class:"app-content"},[O("div",{class:"app-icon",style:{background:"none",padding:"0"}},[O("svg",{t:"1667208366992",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2669",width:"128",height:"128"},[O("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z",fill:"#E8EFF8","p-id":"2670"}),O("path",{d:"M141.637818 405.643636A23.272727 23.272727 0 0 0 160.814545 442.181818h350.487273a23.272727 23.272727 0 0 0 18.455273-37.469091L364.683636 190.161455a46.545455 46.545455 0 0 0-75.170909 1.88509l-147.874909 213.620364z",fill:"#69CB91","p-id":"2671"}),O("path",{d:"M337.454545 884.363636a174.545455 174.545455 0
|
2022-11-01 20:28:57 +08:00
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
2022-11-18 19:07:18 +08:00
|
|
|
***************************************************************************** */var xd=function(r,e){return xd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},xd(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");xd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var PD=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),RD=function(){function r(){this.browser=new PD,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!="undefined"}return r}(),Fn=new RD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fn.wxa=!0,Fn.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Fn.worker=!0:typeof navigator=="undefined"?(Fn.node=!0,Fn.svgSupported=!0):ED(navigator.userAgent,Fn);function ED(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",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!="undefined";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}var Mt=Fn,sg=12,Tw="sans-serif",rn=sg+"px "+Tw,kD=20,OD=100,ND="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function BD(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-kD)/OD;e[a]=n}return e}var VD=BD(ND),ma={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=ma.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||rn),r.measureText(t);t=t||"",a=a||rn;var i=/^([0-9]*?)px$/.exec(a),o=+(i&&i[1])||sg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=VD[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},Cw=qr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Aw=qr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),To=Object.prototype.toString,ch=Array.prototype,zD=ch.forEach,FD=ch.filter,lg=ch.slice,GD=ch.map,my=function(){}.constructor,Hl=my?my.prototype:null,ug="__proto__",HD=2311;function Mw(){return HD++}function fg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function tt(r){if(r==null||typeof r!="object")return r;var e=r,t=To.call(r);if(t==="[object Array]"){if(!Ms(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=tt(r[a])}}else if(Aw[t]){if(!Ms(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!Cw[t]&&!Ms(r)&&!$s(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==ug&&(e[o]=tt(r[o]))}return e}function lt(r,e,t){if(!j(e)||!j(r))return t?tt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==ug){var n=r[a],i=e[a];j(i)&&j(n)&&!F(i)&&!F(n)&&!$s(i)&&!
|
|
|
|
`),i=n.length;if(i===1)return $y(n[0],e,t,a);for(var o=new ft(0,0,0,0),s=0;s<n.length;s++){var l=$y(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function ys(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Qi(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function mh(r){return Ze("\u56FD",r)}function Dr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function wf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Dr(a[0],t.width),u+=Dr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var yv="__zr_normal__",mv=Qr.concat(["ignore"]),lL=qr(Qr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ri={},uL=new ft(0,0,0,0),_g=function(){function r(e){this.id=Mw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=uL;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ri,a,f):wf(Ri,a,f),i.x=Ri.x,i.y=Ri.y,o=Ri.align,s=Ri.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Dr(h[0],f.width),c=Dr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Ue,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$d:Hd},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Ye(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,ca(a,"rgba")},r.prototype.traverse=f
|
2022-11-01 20:28:57 +08:00
|
|
|
* ZRender, a high performance 2d drawing library.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* LICENSE
|
|
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
2022-11-18 19:07:18 +08:00
|
|
|
*/var Ju={},ab={};function dL(r){delete ab[r]}function pL(r){if(!r)return!1;if(typeof r=="string")return _f(r,1)<Gd;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=_f(e[n].color,1);return t/=a,t<Gd}return!1}var gL=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new x4,o=a.renderer||"canvas";Ju[o]||(o=_t(Ju)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Ju[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Mt.node&&!Mt.worker&&!l?new rL(s.getViewportRoot(),s.root):null;this.handler=new g4(i,s,u,s.root),this.animation=new X4({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},r.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=pL(e)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(e){var t,a=eo();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=eo();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof at&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.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,dL(this.id)},r}();function Wy(r,e){var t=new gL(Mw(),r,e);return ab[t.id]=t,t}function yL(r,e){Ju[r]=e}var Uy=1e-4,nb=20;function mL(r){return r.replace(/^\s+|\s+$/g,"")}function Rt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[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,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?mL(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null
|
|
|
|
`);n=_b(e,t,a,n);for(var o=0,s=i.length;o<s;o++)i[o]=Sb(i[o],n);return i.join(`
|
|
|
|
`)}function _b(r,e,t,a){a=a||{};var n=z({},a);n.font=e,t=dt(t,"..."),n.maxIterations=dt(a.maxIterations,2);var i=n.minChar=dt(a.minChar,0);n.cnCharWidth=Ze("\u56FD",e);var o=n.ascCharWidth=Ze("a",e);n.placeholder=dt(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ze(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Sb(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=Ze(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?JL(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=Ze(r,a)}return r===""&&(r=e.placeholder),r}function JL(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function jL(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=mh(n),s=dt(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?xb(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
|
|
|
|
`):[];var v=h.length*s,c=dt(e.height,v);if(v>c&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var p=_b(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<h.length;g++)h[g]=Sb(h[g],p);for(var y=c,m=0,g=0;g<h.length;g++)m=Math.max(Ze(h[g],n),m);f==null&&(f=m);var _=m;return a&&(y+=a[0]+a[2],_+=a[1]+a[3],f+=a[1]+a[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}var t7=function(){function r(){}return r}(),Jy=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),e7=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function r7(r,e){var t=new e7;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=wv.lastIndex=0,l;(l=wv.exec(r))!=null;){var u=l.index;u>s&&bv(t,r.substring(s,u),e,o),bv(t,l[2],e,o,l[1]),s=wv.lastIndex}s<r.length&&bv(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,d=i==="truncate",p=e.lineOverflow==="truncate";function g(N,V,H){N.width=V,N.lineHeight=H,h+=H,v=Math.max(v,V)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,w=0;w<m.tokens.length;w++){var x=m.tokens[w],b=x.styleName&&e.rich[x.styleName]||{},T=x.textPadding=b.padding,C=T?T[1]+T[3]:0,M=x.font=b.font||e.font;x.contentHeight=mh(M);var D=dt(b.height,x.contentHeight);if(x.innerHeight=D,T&&(D+=T[0]+T[2]),x.height=D,x.lineHeight=ha(b.lineHeight,e.lineHeight,D),x.align=b&&b.align||e.align,x.verticalAlign=b&&b.verticalAlign||"middle",p&&n!=null&&h+x.lineHeight>n){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=b.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=Ze(x.text,M);else{if(I){var P=b.backgroundColor,R=P&&P.image;R&&(R=KL(R),Sh(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=d&&a!=null?a-S:null;E!=null&&E<x.width?!I||E<C?(x.text="",x.width=x.contentWidth=0):(x.text=QL(x.text,E-C,M,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=Ze(x.text,M)):x.contentWidth=Ze(x.text,M)}x.width+=C,S+=x.width,b&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}t.outerWidth=t.width=dt(a,v),t.outerHeight=t.height=dt(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var y=0;y<f.length;y++){var x=f[y],B=x.percentWidth;x.width=parseInt(B,10)/100*t.width}return t}function bv(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Dr(o.width,a.width)+c;s.length>0&&d+a.accumWidth>a.width&&(f=e.split(`
|
|
|
|
`),u=!0),a.accumWidth=d}else{var p=xb(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=e.split(`
|
|
|
|
`);for(var g=0;g<f.length;g++){var y=f[g],m=new t7;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ze(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Jy)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new Jy([m]))}}function a7(r){var e=r.charCodeAt(0);return e>=33&&e<=383}var n7=qr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function i7(r){return a7(r)?!!n7[r]:!0}function xb(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
|
|
|
|
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Ze(v,e),d=a?!1:!i7(v);if(i.length?f+c>t:n+f+c>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Yd="__zr_style_"+Math.round(Math.random()*10),ni={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},xh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ni[Yd]=!0;var jy=["z","z2","invisible"],o7=["invisible"],s7=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}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,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&l7(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ft(0,0,0,0)),a?ft.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));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 ft(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,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:z(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=ps,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ps)},e.prototype.styleUpdated=function(){this.__dirty&=~ps},e.prototype.createStyle=function(t){return ph(ni,t)},e.prototype.useStyle=function(t){t[Yd]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Yd]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,jy)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if
|
2022-11-01 20:28:57 +08:00
|
|
|
`,`
|
|
|
|
|
|
|
|
`,`
|
|
|
|
|
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`];function le(r,e){return e.type=r,e}function lp(r){return r.type==="section"}function s5(r){return lp(r)?c8:d8}function l5(r){if(lp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=l5(n);i>=e&&(e=i+ +(a&&(!i||lp(n)&&!n.noHeader)))}),e}return 0}function c8(r,e,t,a){var n=e.noHeader,i=p8(l5(e)),o=[],s=e.blocks||[];Pe(!s||F(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new t5(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=e.valueFormatter,y=s5(d)(g?z(z({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):up(o.join(""),n?t:i.html);if(n)return h;var v=ap(e.header,"ordinal",r.useUTC),c=o5(a,r.renderMode).nameStyle;return r.renderMode==="richText"?u5(r,v,c)+i.richText+h:up('<div style="'+c+";"+i5+';">'+We(v)+"</div>"+h,t)}function d8(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],G(S,function(w,x){return ap(w,F(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":ap(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value),p=!s||!i,g=!s&&i,y=o5(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":u5(r,v,m))+(o?"":m8(r,d,p,g,_)):up((s?"":h)+(i?"":g8(v,!s,m))+(o?"":y8(d,p,g,_)),t)}}function u1(r,e,t,a,n,i){if(!!r){var o=s5(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function p8(r){return{html:h8[r],richText:v8[r]}}function up(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+i5+';">'+r+t+"</div>"}function g8(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+We(r)+"</span>"}function y8(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=F(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return We(o)}).join(" ")+"</span>"}function u5(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function m8(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,i)}function f5(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return yi(a)}function h5(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Zv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=ub()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=oI({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};F(t)?A(t,function(i){return z(a,i)}):z(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function v5(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=F(s),u=f5(e,t),f,h,v,c;if(o>1||l&&!o){var d=_8(s,e,t,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);c=f=go(n,t,i[0]),h=p.type}else c=f=l?s[0]:s;var g=xg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return le("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[le("nameValue",{markerType:"item",markerColor:u,name:_,noName:!br(_),value:f,valueType:h})].concat(v||[])})}function _8(r,e,t,a,n){var i=e.getData(),o=qr(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(go(i,t,h),h)}):A(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(le("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,v
|
|
|
|
`+g.message)}var n=new at;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new ft(u,f,h,v)}if(s){var d=iA(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new xt({shape:l.plain()}));var p=[];return A(t.named,function(g){Uk.get(g.svgNodeTagLower)!=null&&(p.push(g),Zk(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function Zk(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Xk(r){var e=[],t=K();return A(r,function(a){if(a.namedFrom==null){var n=new rR(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var Ap=[126,25],Y_="\u5357\u6D77\u8BF8\u5C9B",Gn=[[[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 Bn=0;Bn<Gn.length;Bn++)for(var Gi=0;Gi<Gn[Bn].length;Gi++)Gn[Bn][Gi][0]/=10.5,Gn[Bn][Gi][1]/=-10.5/.75,Gn[Bn][Gi][0]+=Ap[0],Gn[Bn][Gi][1]+=Ap[1];function qk(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Y_)return;e.push(new gC(Y_,G(Gn,function(a){return{type:"polygon",exterior:a}}),Ap))}}var Kk={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function Qk(r,e){if(r==="china"){var t=Kk[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var Jk=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function jk(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:Jk[0]})}var tO="name",eO=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=a,this._geoJSON=aO(t)}return r.prototype.load=function(e,t){t=t||tO;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:rO(n)})}var i=K(),o=[];return A(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ft(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?nR(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
|
|
`+i.message)}return qk(t,n),A(n,function(i){var o=i.name;Qk(t,i),jk(t,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 rO(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function aO(r){return U(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var os=K(),Ca={registerMap:function(r,e,t){if(e.svg){var a=new Yk(r,e.svg);os.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new eO(r,n,t);os.set(r,a)}},getGeoResource:function(r){return os.get(r)},getMapForUser:function(r){var e=os.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=os.get(r);if(!!a)return a.load(e,t)}},_0=["rect","circle","line","ellipse","polygon","polyline","path"],nO=K(_0),iO=K(_0.concat(["g"])),oO=K(_0.concat(["g"])),oA=Ct();function Du(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Z_(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var sO=function(){function r(e){var t=new at;this.uid=Po("ec_map_draw"),this._controller=new Bl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,d=!u.childAt(0)||i;d?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Tt(f,c,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=K(),a=K(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,d){return d&&(c=d(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],p);y&&d.push(y)}return d}function v(c){return{shape:{points:h(c)}}}n.removeAll(),A(e.geo.regions,function(c){var d=c.name,p=t.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=t.set(d,new at),n.add(p),y=s?s.indexOfName(d):null,m=e.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];A(c.geometries,function(b){if(b.type==="polygon"){var T=[b.exterior].concat(b.interiors||[]);u&&(T=j_(T,u)),A(T,function(M){_.push(new Fe(v(M)))})}else{var C=b.points;u&&(C=j_(C,u,!0)),A(C,function(M){S.push(new Ge(v(M)))})}});var w=f(c.getCenter(),l&&l.project);function x(b,T){if(!!b.length){var C=new Eg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:b}});p.add(C),X_(e,C,y,m),q_(e,C,d,m,o,y,w),T&&(Z_(C),A(C.states,Z_))}}x(_),x(S,!0)}),t.each(function(c,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;K_(e,c,d,y,o,g),Q_(e,c,d,y,o),J_(e,c,d,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=K(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);if(nO.get(f)!=null&&h instanceof cr&&X_(e,h,v,c),h instanceof cr&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(oO.get(f)!=null&&q_(e,h,s,c,l,v,null),K_(e,h,s,c,l,v),Q_(e,h,s,c,l),iO.get(f)!=null)){var d=J_(e,h,s,c,l);d==="self"&&(i=!0);var p=n.get(s)||n.set(s,[]);p.push(h)
|
|
|
|
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs;return tH(o,s)+(n.text||"")+(i?""+t+G(i,function(l){return a(l)}).join(t)+t:"")+eH(o)}return a(r)}function rH(r,e,t){t=t||{};var a=t.newline?`
|
|
|
|
`:"",n=" {"+a,i=a+"}",o=G(_t(r),function(l){return l+n+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(_t(e),function(l){return"@keyframes "+l+n+G(_t(e[l]),function(u){return u+n+G(_t(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function $p(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _S(r,e,t,a){return se("svg","root",{width:r,height:e,xmlns:M3,"xmlns:xlink":D3,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var SS={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"},Un="transform-origin";function aH(r,e,t){var a=z({},r.shape);z(a,e),r.buildPath(t,a);var n=new A3;return n.reset(Xw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function nH(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Un]=t+"px "+a+"px")}var iH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function I3(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function oH(r,e,t){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=$p(t.zrId);u.animation=!0,Qh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(!!c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=I3(n,t);return i.replace(o,s)}}function xS(r){return U(r)?SS[r]?"cubic-bezier("+SS[r]+")":pg(r)?r:"":""}function Qh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Eg){var s=oH(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],v=xS(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,w={},x={},b={},T="animation-timing-function";function C(rt,yt,ut){for(var q=rt.getTracks(),ot=rt.getMaxTime(),Gt=0;Gt<q.length;Gt++){var St=q[Gt];if(St.needsAnimate()){var qt=St.keyframes,Yt=St.propName;if(ut&&(Yt=ut(Yt)),Yt)for(var _e=0;_e<qt.length;_e++){var aa=qt[_e],Ee=Math.round(aa.time/ot*100)+"%",Gl=xS(aa.easing),La=aa.rawValue;(U(La)||bt(La))&&(yt[Ee]=yt[Ee]||{},yt[Ee][Yt]=aa.rawValue,Gl&&(yt[Ee][T]=Gl))}}}}for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L?L==="shape"&&C(D,x):!a&&C(D,w)}for(var I in w){var P={};jw(P,r),z(P,w[I]);var R=qw(P),E=w[I][T];b[I]=R?{transform:R}:{},nH(b[I],P),E&&(b[I][T]=E)}var B,N=!0;for(var I in x){b[I]=b[I]||{};var V=!B,E=x[I][T];V&&(B=new jr);var H=B.len();B.reset(),b[I].d=aH(r,x[I],B);var W=B.len();if(!V&&H!==W){N=!1;break}E&&(b[I][T]=E)}if(!N)for(var I in b)delete b[I].d;if(!a)for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L==="style"&&C(D,b,function(q){return iH[q]})}for(var X=_t(b),et=!0,vt,M=1;M<X.length;M++){var It=X[M-1],Dt=X[M];if(b[It][Un]!==b[Dt][Un]){et=!1;break}vt=b[It][Un]}if(et&&vt){for(var I in b)b[I][Un]&&delete b[I][Un];e[Un]=vt}if(kt(X,function(rt){return _t(b[rt]).length>0}).length){var pt=I3(b,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var vl=Math.round;function P3(r){return r&&U(r.src)}function R3(r){return r&&Q(r.toDataURL)}function U0(r,e,t,a){QG(function(n,i){var o=n==
|
2022-11-01 20:28:57 +08:00
|
|
|
`))}),e.join(`
|
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`+Jh+`
|
2022-11-01 20:28:57 +08:00
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`)}function HW(r){return G(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+bo:"")+n.join(bo))}),a.join(`
|
2022-11-01 20:28:57 +08:00
|
|
|
`)}).join(`
|
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`+Jh+`
|
2022-11-01 20:28:57 +08:00
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`)}function $W(r){var e=FW(r);return{value:kt([GW(e.seriesGroupByCategoryAxis),HW(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
2022-11-01 20:28:57 +08:00
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`+Jh+`
|
2022-11-01 20:28:57 +08:00
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`),meta:e.meta}}function rh(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function WW(r){var e=r.slice(0,r.indexOf(`
|
|
|
|
`));if(e.indexOf(bo)>=0)return!0}var Xp=new RegExp("["+bo+"]+","g");function UW(r){for(var e=r.split(/\n+/g),t=rh(e.shift()).split(Xp),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=rh(e[i]).split(Xp);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 YW(r){for(var e=r.split(/\n+/g),t=rh(e.shift()),a=[],n=0;n<e.length;n++){var i=rh(e[n]);if(!!i){var o=i.split(Xp),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 f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function ZW(r,e){var t=r.split(new RegExp(`
|
|
|
|
*`+Jh+`
|
|
|
|
*`,"g")),a={series:[]};return A(t,function(n,i){if(WW(n)){var o=UW(n),s=e[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=YW(n);a.series.push(o)}}),a}var XW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,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"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=$W(t);if(Q(h)){var d=h(a.getOption());U(d)?u.innerHTML=d:$s(d)&&u.appendChild(d)}else{f.readOnly=i.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.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"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function x(){n.removeChild(o),w._dom=null}Ld(_,"click",x),Ld(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var b;try{Q(v)?b=v(u,a.getOption()):b=ZW(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}b&&a.dispatchAction({type:"changeDataView",newOption:b}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){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: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 a},e}(or);function qW(r,e){return G(r,function(t,a){var n=e&&e[a];if(j(n)&&!F(n)){var i=j(t)&&!F(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=J(t,n),o&&delete t.name,t}else return t})}ra({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(z({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:qW(a.data,i)})}}),e.mergeOption(J({series:t},r.newOption))});var KW=XW,eM=A,rM=Ct();function QW(r,e){var t=ny(r);eM(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[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();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function JW(r){var e=ny(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return eM(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function jW(r){rM(r).snapshots=null}function tU(r){return ny(r).length}function ny(r){var e=rM(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var eU=function(r){k(e,r);function e(){retur
|
2022-11-01 20:28:57 +08:00
|
|
|
|
2022-11-18 19:07:18 +08:00
|
|
|
`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=t.positionDefault,p=fs([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Zv;y.marker=m.makeTooltipMarker("item",yi(y.color),c);var _=a1(u.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?u1(w?z({valueFormatter:w},x):x,m,c,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=nt(a),o=i.tooltipConfig,s=o.option||{};if(U(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=fs(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",p=new Zv;this._showOrMove(v,function(){var g=tt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,d,t.offsetX,t.offsetY,t.position,a,p)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(v)if(U(v)){var g=t.ecModel.get("useUTC"),y=F(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Ih(y.axisValue,c,g)),c=IT(c,n,!0)}else if(Q(v)){var _=Y(function(S,w){S===this._ticket&&(h.setContent(w,f,t,p,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,p,l),h.show(t,p),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||F(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!F(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(a))n=$(a[0],u),i=$(a[1],f);else if(j(a)){var p=a;p.width=h[0],p.height=h[1];var g=ie(p,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(U(a)&&l){var y=EU(a,d,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=PU(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=_x(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=_x(c)?h[1]/2:c==="bottom"?h[1]:0),aM(t)){var y=RU(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var d=h[c]||{},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&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Mt.node||!a.getDom()||(rl(this,"_updatePosition"),this._tooltipC
|
|
|
|
`)){var g=new Wu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,c,a,t,_,w,S,h,i);x.on("click",Yi(zx,p,null,i,v)).on("mouseover",Yi(rg,y.name,null,i,v)).on("mouseout",Yi(ag,y.name,null,i,v)),f.set(p,!0)}else n.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=Ye(M.fill);L&&L[3]===0&&(L[3]=.2,M=z(z({},M),{fill:ca(L,"rgba")}));var I=this._createItem(b,p,d,c,a,t,{},M,D,h,i);I.on("click",Yi(zx,null,p,i,v)).on("mouseover",Yi(rg,null,p,i,v)).on("mouseout",Yi(ag,null,p,i,v)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();eg(t,function(u){var f=u.type,h=new At({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);Ce(h,{normal:v,emphasis:c},{defaultText:u.title}),oi(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=XY(f,i,l,u,c,g,v),w=new Wu,x=i.getModel("textStyle");if(Q(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(qY({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;U(M)&&M?D=M.replace("{name}",a!=null?a:""):Q(M)&&(D=M(a));var L=i.get("inactiveColor");w.add(new At({style:Wt(x,{text:D,x:T,y:p/2,fill:g?x.getTextColor():L,align:C,verticalAlign:"middle"})}));var I=new xt({shape:w.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Lo({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),w.add(I),w.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(w),oi(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();li(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){li("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[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}(Xt);function XY(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),eg(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:yo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c
|
|
|
|
`||u==="")){var f=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&f:a[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:e.name,selected:a}}function QY(r){r.registerAction("legendToggleSelect","legendselectchanged",it(vs,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",it(vs,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",it(vs,"inverseSelect")),r.registerAction("legendSelect","legendselected",it(vs,"select")),r.registerAction("legendUnSelect","legendunselected",it(vs,"unSelect"))}function yM(r){r.registerComponentModel(tg),r.registerComponentView(gM),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,KY),r.registerSubTypeDefaulter("legend",function(){return"plain"}),QY(r)}var JY=function(r){k(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,a,n){var i=Eo(t);r.prototype.init.call(this,t,a,n),Fx(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Fx(this,this.option,t)},e.type="legend.scroll",e.defaultOption=cn(tg.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}(tg);function Fx(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,on(e,t,{type:"box",ignoreSize:!!n})}var jY=JY,Gx=at,vd=["width","height"],cd=["x","y"],tZ=function(r){k(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 Gx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Gx)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=F(h)?h:[h,h];d("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new At({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Tl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Y(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=vd[u],h=cd[u],v=vd[1-u],c=cd[1-u];o&&li("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=tt(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[c]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[c]=Math.min(m[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;li(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),li("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=dt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n
|