You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 MiB

(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();var U0={exports:{}},Kc={};var vC;function OV(){if(vC)return Kc;vC=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var s in n)s!=="key"&&(i[s]=n[s])}else i=n;return n=i.ref,{$$typeof:r,type:a,key:o,ref:n!==void 0?n:null,props:i}}return Kc.Fragment=e,Kc.jsx=t,Kc.jsxs=t,Kc}var dC;function zV(){return dC||(dC=1,U0.exports=OV()),U0.exports}var z=zV(),F0={exports:{}},Xt={};var pC;function kV(){if(pC)return Xt;pC=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),d=Symbol.iterator;function p(U){return U===null||typeof U!="object"?null:(U=d&&U[d]||U["@@iterator"],typeof U=="function"?U:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function S(U,W,rt){this.props=U,this.context=W,this.refs=_,this.updater=rt||y}S.prototype.isReactComponent={},S.prototype.setState=function(U,W){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,W,"setState")},S.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function b(){}b.prototype=S.prototype;function w(U,W,rt){this.props=U,this.context=W,this.refs=_,this.updater=rt||y}var A=w.prototype=new b;A.constructor=w,m(A,S.prototype),A.isPureReactComponent=!0;var M=Array.isArray;function C(){}var L={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function R(U,W,rt){var ot=rt.ref;return{$$typeof:r,type:U,key:W,ref:ot!==void 0?ot:null,props:rt}}function N(U,W){return R(U.type,W,U.props)}function O(U){return typeof U=="object"&&U!==null&&U.$$typeof===r}function k(U){var W={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(rt){return W[rt]})}var G=/\/+/g;function H(U,W){return typeof U=="object"&&U!==null&&U.key!=null?k(""+U.key):W.toString(36)}function F(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(C,C):(U.status="pending",U.then(function(W){U.status==="pending"&&(U.status="fulfilled",U.value=W)},function(W){U.status==="pending"&&(U.status="rejected",U.reason=W)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function B(U,W,rt,ot,ht){var gt=typeof U;(gt==="undefined"||gt==="boolean")&&(U=null);var mt=!1;if(U===null)mt=!0;else switch(gt){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(U.$$typeof){case r:case e:mt=!0;break;case f:return mt=U._init,B(mt(U._payload),W,rt,ot,ht)}}if(mt)return ht=ht(U),mt=ot===""?"."+H(U,0):ot,M(ht)?(rt="",mt!=null&&(rt=mt.replace(G,"$&/")+"/"),B(ht,W,rt,"",function(Lt){return Lt})):ht!=null&&(O(ht)&&(ht=N(ht,rt+(ht.key==null||U&&U.key===ht.key?"":(""+ht.key).replace(G,"$&/")+"/")+mt)),W.push(ht)),1;mt=0;var yt=ot===""?".":ot+":";if(M(U))for(var St=0;St<U.lengt
at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Et+c+ge}var Ce=!1;function be(c,h){if(!c||Ce)return"";Ce=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(h){var ct=function(){throw Error()};if(Object.defineProperty(ct.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ct,[])}catch(at){var tt=at}Reflect.construct(c,[],ct)}else{try{ct.call()}catch(at){tt=at}c.call(ct.prototype)}}else{try{throw Error()}catch(at){tt=at}(ct=c())&&typeof ct.catch=="function"&&ct.catch(function(){})}}catch(at){if(at&&tt&&typeof at.stack=="string")return[at.stack,tt.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=x.DetermineComponentFrameRoot(),I=D[0],V=D[1];if(I&&V){var X=I.split(`
`),J=V.split(`
`);for(T=x=0;x<X.length&&!X[x].includes("DetermineComponentFrameRoot");)x++;for(;T<J.length&&!J[T].includes("DetermineComponentFrameRoot");)T++;if(x===X.length||T===J.length)for(x=X.length-1,T=J.length-1;1<=x&&0<=T&&X[x]!==J[T];)T--;for(;1<=x&&0<=T;x--,T--)if(X[x]!==J[T]){if(x!==1||T!==1)do if(x--,T--,0>T||X[x]!==J[T]){var lt=`
`+X[x].replace(" at new "," at ");return c.displayName&&lt.includes("<anonymous>")&&(lt=lt.replace("<anonymous>",c.displayName)),lt}while(1<=x&&0<=T);break}}}finally{Ce=!1,Error.prepareStackTrace=g}return(g=c?c.displayName||c.name:"")?Gt(g):""}function or(c,h){switch(c.tag){case 26:case 27:case 5:return Gt(c.type);case 16:return Gt("Lazy");case 13:return c.child!==h&&h!==null?Gt("Suspense Fallback"):Gt("Suspense");case 19:return Gt("SuspenseList");case 0:case 15:return be(c.type,!1);case 11:return be(c.type.render,!1);case 1:return be(c.type,!0);case 31:return Gt("Activity");default:return""}}function pa(c){try{var h="",g=null;do h+=or(c,g),g=c,c=c.return;while(c);return h}catch(x){return`
Error generating stack: `+x.message+`
`+x.stack}}var sr=Object.prototype.hasOwnProperty,Ci=r.unstable_scheduleCallback,ga=r.unstable_cancelCallback,ev=r.unstable_shouldYield,nc=r.unstable_requestPaint,Jr=r.unstable_now,pB=r.unstable_getCurrentPriorityLevel,dw=r.unstable_ImmediatePriority,pw=r.unstable_UserBlockingPriority,rv=r.unstable_NormalPriority,gB=r.unstable_LowPriority,gw=r.unstable_IdlePriority,yB=r.log,mB=r.unstable_setDisableYieldValue,ic=null,ta=null;function Mi(c){if(typeof yB=="function"&&mB(c),ta&&typeof ta.setStrictMode=="function")try{ta.setStrictMode(ic,c)}catch{}}var ea=Math.clz32?Math.clz32:SB,_B=Math.log,xB=Math.LN2;function SB(c){return c>>>=0,c===0?32:31-(_B(c)/xB|0)|0}var av=256,nv=262144,iv=4194304;function ko(c){var h=c&42;if(h!==0)return h;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return c&261888;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function ov(c,h,g){var x=c.pendingLanes;if(x===0)return 0;var T=0,D=c.suspendedLanes,I=c.pingedLanes;c=c.warmLanes;var V=x&134217727;return V!==0?(x=V&~D,x!==0?T=ko(x):(I&=V,I!==0?T=ko(I):g||(g=V&~c,g!==0&&(T=ko(g))))):(V=x&~D,V!==0?T=ko(V):I!==0?T=ko(I):g||(g=x&~c,g!==0&&(T=ko(g)))),T===0?0:h!==0&&h!==T&&(h&D)===0&&(D=T&-T,g=h&-h,D>=g||D===32&&(g&4194048)!==0)?h:T}function oc(c,h){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&h)===0}function bB(c,h){switch(c){case 1:case 2:case 4:case 8:case 64:return h+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yw(){var c=iv;return iv<<=1,(iv&62914560)===0&&(iv=4194304),c}function Ey(c){for(var h=[],g=0;31>g;g++)h.push(c);return h}function sc(c,h){c.pendingLanes|=h,h!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function wB(c,h,g,x,T,D){var I=c.pendingLanes;c.pendingLanes=g,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=g,c.entangledLanes&=g,c.errorRecoveryDisabledLanes&=g,c.shellSuspendCounter=0;var V=c.entanglements,X=c.expirationTimes,J=c.hiddenUpdates;for(g=I&~g;0<g;){var lt=31-ea(g),ct=1<<lt;V[lt]=0,X[lt]=-1;var tt=J[lt];if(tt!==null)for(J[lt]=null,lt=0;lt<tt.length;lt++){var at=tt[lt];at!==null&&(at.lane&=-536870913)}g&=~ct}x!==0&&mw(c,x,0),D!==0&&T===0&&c.tag!==0&&(c.suspendedLanes|=D&~(I&~h))}function mw(c,h,g){c.pendingLanes|=h,c.suspendedLanes&=~h;var x=31-ea(h);c.entangledLanes|=h,c.entanglements[x]=c.entanglements[x]|1073741824|g&261930}function _w(c,h){var g=c.entangledLanes|=h;for(c=c.entanglements;g;){var x=31-ea(g),T=1<<x;T&h|c[x]&h&&(c[x]|=h),g&=~T}}function xw(c,h){var g=h&-h;return g=(g&42)!==0?1:Ry(g),(g&(c.suspendedLanes|h))!==0?0:g}function Ry(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Iy(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function Sw(){var c=j.p;return c!==0?c:(c=window.event,c===void 0?32:oC(c.type))}function bw(c,h){var g=j.p;try{return j.p=c,h()}finally{j.p=g}}var Li=Math.random().toString(36).slice(2),vr="__reactFiber$"+Li,Hr="__reactProps$"+Li,vl="__reactContainer$"+Li,Ny="__reactEvents$"+Li,TB="__reactListeners$"+Li,AB="__reactHandles$"+Li,ww="__reactResources$"+Li,lc="__reactM
`).replace(aV,"")}function PD(c,h){return h=ND(h),ND(c)===h}function Te(c,h,g,x,T,D){switch(g){case"children":typeof x=="string"?h==="body"||h==="textarea"&&x===""||_l(c,x):(typeof x=="number"||typeof x=="bigint")&&h!=="body"&&_l(c,""+x);break;case"className":lv(c,"class",x);break;case"tabIndex":lv(c,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":lv(c,g,x);break;case"style":Pw(c,x,D);break;case"data":if(h!=="object"){lv(c,"data",x);break}case"src":case"href":if(x===""&&(h!=="a"||g!=="href")){c.removeAttribute(g);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(g);break}x=cv(""+x),c.setAttribute(g,x);break;case"action":case"formAction":if(typeof x=="function"){c.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(g==="formAction"?(h!=="input"&&Te(c,h,"name",T.name,T,null),Te(c,h,"formEncType",T.formEncType,T,null),Te(c,h,"formMethod",T.formMethod,T,null),Te(c,h,"formTarget",T.formTarget,T,null)):(Te(c,h,"encType",T.encType,T,null),Te(c,h,"method",T.method,T,null),Te(c,h,"target",T.target,T,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(g);break}x=cv(""+x),c.setAttribute(g,x);break;case"onClick":x!=null&&(c.onclick=Un);break;case"onScroll":x!=null&&ee("scroll",c);break;case"onScrollEnd":x!=null&&ee("scrollend",c);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(g=x.__html,g!=null){if(T.children!=null)throw Error(a(60));c.innerHTML=g}}break;case"multiple":c.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":c.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){c.removeAttribute("xlink:href");break}g=cv(""+x),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(g,""+x):c.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(g,""):c.removeAttribute(g);break;case"capture":case"download":x===!0?c.setAttribute(g,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(g,x):c.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?c.setAttribute(g,x):c.removeAttribute(g);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?c.removeAttribute(g):c.setAttribute(g,x);break;case"popover":ee("beforetoggle",c),ee("toggle",c),sv(c,"popover",x);break;case"xlinkActuate":Hn(c,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Hn(c,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Hn(c,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Hn(c,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Hn(c,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Hn(c,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Hn(c,"http://www.w3.org/XML/1998/namespace","xml:ba
`),i=n.length;if(i===1)return JC(n[0],e,t,a);for(var o=new kt(0,0,0,0),s=0;s<n.length;s++){var l=JC(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Rf(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function _u(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Zg(r){return va("国",r)}function ln(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function tg(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",v="top";if(a instanceof Array)l+=ln(a[0],t.width),u+=ln(a[1],t.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="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,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var f1="__zr_normal__",h1=On.concat(["ignore"]),s8=Nn(On,function(r,e){return r[e]=!0,r},{ignore:!1}),tu={},l8=new kt(0,0,0,0),Wg=(function(){function r(e){this.id=BN(),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=l8;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tu,a,f):tg(tu,a,f),i.x=tu.x,i.y=tu.y,o=tu.align,s=tu.verticalAlign;var v=a.origin;if(v&&a.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=f.width*.5,p=f.height*.5):(d=ln(v[0],f.width),p=ln(v[1],f.height)),u=!0,i.originX=-i.x+d+(n?0:f.x),i.originY=-i.y+p+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var y=a.offset;y&&(i.x+=y[0],i.y+=y[1],u||(i.originX=-y[0],i.originY=-y[1]));var m=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),S=void 0,b=void 0,w=void 0;m&&this.canBeInsideText()?(S=a.insideFill,b=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=a.outsideFill,b=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==_.fill||b!==_.stroke||w!==_.autoStroke||o!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=S,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=s,t.setDefaultTextStyle(_)),t.__dirty|=fa,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()?Ux:Hx},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&ha(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,di(a,"rgba")},r.prototype.traverse=fun
`);n=M3(e,t,a,n);for(var o=0,s=i.length;o<s;o++)i[o]=L3(i[o],n);return i.join(`
`)}function M3(r,e,t,a){a=a||{};var n=et({},a);n.font=e,t=Ot(t,"..."),n.maxIterations=Ot(a.maxIterations,2);var i=n.minChar=Ot(a.minChar,0);n.cnCharWidth=va("国",e);var o=n.ascCharWidth=va("a",e);n.placeholder=Ot(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=va(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 L3(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=va(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?K8(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=va(r,a)}return r===""&&(r=e.placeholder),r}function K8(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 Q8(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Zg(n),s=Ot(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,v;f!=null&&(t==="break"||t==="breakAll")?v=r?E3(r,e.font,f,t==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var d=v.length*s,p=Ot(e.height,d);if(d>p&&u){var y=Math.floor(p/s);v=v.slice(0,y)}if(r&&i&&f!=null)for(var m=M3(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),_=0;_<v.length;_++)v[_]=L3(v[_],m);for(var S=p,b=0,_=0;_<v.length;_++)b=Math.max(va(v[_],n),b);f==null&&(f=b);var w=b;return a&&(S+=a[0]+a[2],w+=a[1]+a[3],f+=a[1]+a[3]),l&&(w=f),{lines:v,height:p,outerWidth:w,outerHeight:S,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:f}}var J8=(function(){function r(){}return r})(),lM=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),tH=(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 eH(r,e){var t=new tH;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=g1.lastIndex=0,l;(l=g1.exec(r))!=null;){var u=l.index;u>s&&y1(t,r.substring(s,u),e,o),y1(t,l[2],e,o,l[1]),s=g1.lastIndex}s<r.length&&y1(t,r.substring(s,r.length),e,o);var f=[],v=0,d=0,p=e.padding,y=i==="truncate",m=e.lineOverflow==="truncate";function _(Y,K,nt){Y.width=K,Y.lineHeight=nt,v+=nt,d=Math.max(d,K)}t:for(var S=0;S<t.lines.length;S++){for(var b=t.lines[S],w=0,A=0,M=0;M<b.tokens.length;M++){var C=b.tokens[M],L=C.styleName&&e.rich[C.styleName]||{},E=C.textPadding=L.padding,R=E?E[1]+E[3]:0,N=C.font=L.font||e.font;C.contentHeight=Zg(N);var O=Ot(L.height,C.contentHeight);if(C.innerHeight=O,E&&(O+=E[0]+E[2]),C.height=O,C.lineHeight=Rn(L.lineHeight,e.lineHeight,O),C.align=L&&L.align||e.align,C.verticalAlign=L&&L.verticalAlign||"middle",m&&n!=null&&v+C.lineHeight>n){M>0?(b.tokens=b.tokens.slice(0,M),_(b,A,w),t.lines=t.lines.slice(0,S+1)):t.lines=t.lines.slice(0,S);break t}var k=L.width,G=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")C.percentWidth=k,f.push(C),C.contentWidth=va(C.text,N);else{if(G){var H=L.backgroundColor,F=H&&H.image;F&&(F=q8(F),$g(F)&&(C.width=Math.max(C.width,F.width*O/F.height)))}var B=y&&a!=null?a-A:null;B!=null&&B<C.width?!G||B<R?(C.text="",C.width=C.contentWidth=0):(C.text=$8(C.text,B-R,N,e.ellipsis,{minChar:e.truncateMinChar}),C.width=C.contentWidth=va(C.text,N)):C.contentWidth=va(C.text,N)}C.width+=R,A+=C.width,L&&(w=Math.max(w,C.lineHeight))}_(b,A,w)}t.outerWidth=t.width=Ot(a,d),t.outerHeight=t.height=Ot(n,v),t.contentHeight=v,t.contentWidth=d,p&&(t.outerWidth+=p[1]+p[3],t.outerHeight+=p[0]+p[2]);for(var S=0;S<f.length;S++){var C=f[S],j=C.percentWidth;C.width=parseInt(j,10)/100*t.width}return t}function y1(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,v;if(a){var d=o.padding,p=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var y=ln(o.width,a.width)+p;s.length>0&&y+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=y}else{var m=E3(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=m.accumWidth+p,v=m.linesWidths,f=m.lines}}else f=e.split(`
`);for(var _=0;_<f.length;_++){var S=f[_],b=new J8;if(b.styleName=n,b.text=S,b.isLineHolder=!S&&!i,typeof o.width=="number"?b.width=o.width:b.width=v?v[_]:va(S,l),!_&&!u){var w=(s[s.length-1]||(s[0]=new lM)).tokens,A=w.length;A===1&&w[0].isLineHolder?w[0]=b:(S||!A||i)&&w.push(b)}else s.push(new lM([b]))}}function rH(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var aH=Nn(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function nH(r){return rH(r)?!!aH[r]:!0}function E3(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=0;v<r.length;v++){var d=r.charAt(v);if(d===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var p=va(d,e),y=a?!1:!nH(d);if(i.length?f+p>t:n+f+p>t){f?(s||l)&&(y?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=d,u+=p,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=d,f=p)):y?(i.push(l),o.push(u),l=d,u=p):(i.push(d),o.push(p));continue}f+=p,y?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}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 Yx="__zr_style_"+Math.round(Math.random()*10),Ys={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kg={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ys[Yx]=!0;var uM=["z","z2","invisible"],iH=["invisible"],Fa=(function(r){De(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Yt(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&&oH(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 kt(0,0,0,0)),a?kt.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 kt(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:et(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Lf,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Lf)},e.prototype.styleUpdated=function(){this.__dirty&=~Lf},e.prototype.createStyle=function(t){return jg(Ys,t)},e.prototype.useStyle=function(t){t[Yx]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Yx]},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,uM)},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
`,`
`,`
`];function ir(r,e){return e.type=r,e}function sS(r){return r.type==="section"}function eO(r){return sS(r)?KU:QU}function rO(r){if(sS(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return P(r.blocks,function(n){var i=rO(n);i>=e&&(e=i+ +(a&&(!i||sS(n)&&!n.noHeader)))}),e}return 0}function KU(r,e,t,a){var n=e.noHeader,i=JU(rO(e)),o=[],s=e.blocks||[];zr(!s||it(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(pt(u,l)){var f=new WP(u[l],null);s.sort(function(y,m){return f.evaluate(y.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(y,m){var _=e.valueFormatter,S=eO(y)(_?et(et({},r),{valueFormatter:_}):r,y,m>0?i.html:0,a);S!=null&&o.push(S)});var v=r.renderMode==="richText"?o.join(i.richText):lS(o.join(""),n?t:i.html);if(n)return v;var d=rS(e.header,"ordinal",r.useUTC),p=tO(a,r.renderMode).nameStyle;return r.renderMode==="richText"?aO(r,d,p)+i.richText+v:lS('<div style="'+p+";"+JP+';">'+ca(d)+"</div>"+v,t)}function QU(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(A){return A=it(A)?A:[A],st(A,function(M,C){return rS(M,it(p)?p[C]:p,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),d=i?"":rS(l,"ordinal",u),p=e.valueType,y=o?[]:f(e.value),m=!s||!i,_=!s&&i,S=tO(a,n),b=S.nameStyle,w=S.valueStyle;return n==="richText"?(s?"":v)+(i?"":aO(r,d,b))+(o?"":rF(r,y,m,_,w)):lS((s?"":v)+(i?"":tF(d,!s,b))+(o?"":eF(y,m,_,w)),t)}}function _L(r,e,t,a,n,i){if(r){var o=eO(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function JU(r){return{html:qU[r],richText:$U[r]}}function lS(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+JP+';">'+r+t+"</div>"}function tF(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+ca(r)+"</span>"}function eF(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=it(r)?r:[r],'<span style="'+i+";"+a+'">'+st(r,function(o){return ca(o)}).join("&nbsp;&nbsp;")+"</span>"}function aO(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function rF(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(it(e)?e.join(" "):e,i)}function nO(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return al(a)}function iO(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var H1=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=m3()}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=Z9({color:t,type:e,renderMode:a,markerId:n});return vt(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};it(t)?P(t,function(i){return et(a,i)}):et(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function oO(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=it(s),u=nO(e,t),f,v,d,p;if(o>1||l&&!o){var y=aF(s,e,t,i,u);f=y.inlineValues,v=y.inlineValueTypes,d=y.blocks,p=y.inlineValues[0]}else if(o){var m=n.getDimensionInfo(i[0]);p=f=Pu(n,t,i[0]),v=m.type}else p=f=l?s[0]:s;var _=Tb(e),S=_&&e.name||"",b=n.getName(t),w=a?S:b;return ir("section",{header:S,noHeader:a||!_,sortParam:p,blocks:[ir("nameValue",{markerType:"item",markerColor:u,name:w,noName:!rn(w),value:f,valueType:v})].concat(d||[])})}function aF(r,e,t,a,n){var i=e.getData(),o=Nn(r,function(v,d,p){var y=i.getDimensionInfo(p);return v=v||y&&y.tooltip!==!1&&y.displayName!=null},!1),s=[],l=[],u=[];a.length?P(a,function(v){f(Pu(i,t,v),v)}):P(r,f);function f(v,d){var p=i.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(ir("nameValue",{markerType:"subItem",markerColor:n,name:p.displayName
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return uX(o,s)+(o!=="style"?ca(l):l||"")+(i?""+t+st(i,function(u){return a(u)}).join(t)+t:"")+cX(o)}return a(r)}function fX(r,e,t){t=t||{};var a=t.newline?`
`:"",n=" {"+a,i=a+"}",o=st(Yt(r),function(l){return l+n+st(Yt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=st(Yt(e),function(l){return"@keyframes "+l+n+st(Yt(e[l]),function(u){return u+n+st(Yt(e[l][u]),function(f){var v=e[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xS(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function pE(r,e,t,a){return rr("svg","root",{width:r,height:e,xmlns:b4,"xmlns:xlink":w4,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var gE={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"},As="transform-origin";function hX(r,e,t){var a=et({},r.shape);et(a,e),r.buildPath(t,a);var n=new S4;return n.reset(i3(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function vX(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[As]=t+"px "+a+"px")}var dX={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function A4(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function pX(r,e,t){var a=r.shape.paths,n={},i,o;if(P(a,function(l){var u=xS(t.zrId);u.animation=!0,xy(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,d=Yt(f),p=d.length;if(p){o=d[p-1];var y=f[o];for(var m in y){var _=y[m];n[m]=n[m]||{d:""},n[m].d+=_.d||""}for(var S in v){var b=v[S].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=A4(n,t);return i.replace(o,s)}}function yE(r){return vt(r)?gE[r]?"cubic-bezier("+gE[r]+")":xb(r)?r:"":""}function xy(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Pb){var s=pX(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],v=[f.getMaxTime()/1e3+"s"],d=yE(f.getClip().easing),p=f.getDelay();d?v.push(d):v.push("linear"),p&&v.push(p/1e3+"s"),f.getLoop()&&v.push("infinite");var y=v.join(" ");l[y]=l[y]||[y,[]],l[y][1].push(f)}function m(b){var w=b[1],A=w.length,M={},C={},L={},E="animation-timing-function";function R(yt,St,Lt){for(var _t=yt.getTracks(),Et=yt.getMaxTime(),ge=0;ge<_t.length;ge++){var Gt=_t[ge];if(Gt.needsAnimate()){var Ce=Gt.keyframes,be=Gt.propName;if(Lt&&(be=Lt(be)),be)for(var or=0;or<Ce.length;or++){var pa=Ce[or],sr=Math.round(pa.time/Et*100)+"%",Ci=yE(pa.easing),ga=pa.rawValue;(vt(ga)||Qt(ga))&&(St[sr]=St[sr]||{},St[sr][be]=pa.rawValue,Ci&&(St[sr][E]=Ci))}}}}for(var N=0;N<A;N++){var O=w[N],k=O.targetName;k?k==="shape"&&R(O,C):!a&&R(O,M)}for(var G in M){var H={};c3(H,r),et(H,M[G]);var F=o3(H),B=M[G][E];L[G]=F?{transform:F}:{},vX(L[G],H),B&&(L[G][E]=B)}var j,Y=!0;for(var G in C){L[G]=L[G]||{};var K=!j,B=C[G][E];K&&(j=new kn);var nt=j.len();j.reset(),L[G].d=hX(r,C[G],j);var U=j.len();if(!K&&nt!==U){Y=!1;break}B&&(L[G][E]=B)}if(!Y)for(var G in L)delete L[G].d;if(!a)for(var N=0;N<A;N++){var O=w[N],k=O.targetName;k==="style"&&R(O,L,function(_t){return dX[_t]})}for(var W=Yt(L),rt=!0,ot,N=1;N<W.length;N++){var ht=W[N-1],gt=W[N];if(L[ht][As]!==L[gt][As]){rt=!1;break}ot=L[ht][As]}if(rt&&ot){for(var G in L)L[G][As]&&delete L[G][As];e[As]=ot}if(le(W,function(yt){return Yt(L[yt]).length>0}).length){var mt=A4(L,t);return mt+" "+b[0]+" both"}}for(var _ in l){var s=m(l[_]);s&&o.push(s)}if(o.length){var S=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+S]={animation:o.join(",")},e.class=S}}var xh=Math.round;function D4(r){return r&&vt(r.src)}function C4(r){return r&&bt(r.toDataURL)}function p2(r,e,t,a){oX(functi
`+_.message)}var n=new Ct;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,v=void 0,d=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,d=o):s&&(f=s.y,d=s.height),u==null||f==null){var p=a.getBoundingRect();u==null&&(u=p.x,v=p.width),f==null&&(f=p.y,d=p.height)}l=this._boundingRect=new kt(u,f,v,d)}if(s){var y=sz(s,l);a.scaleX=a.scaleY=y.scale,a.x=y.x,a.y=y.y}n.setClipPath(new Wt({shape:l.plain()}));var m=[];return P(t.named,function(_){RW.get(_.svgNodeTagLower)!=null&&(m.push(_),NW(_.el))}),{root:n,boundingRect:l,named:m}},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 NW(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function PW(r){var e=[],t=xt();return P(r,function(a){if(a.namedFrom==null){var n=new EY(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var MS=[126,25],gR="南海诸岛",Ds=[[[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 Ts=0;Ts<Ds.length;Ts++)for(var uu=0;uu<Ds[Ts].length;uu++)Ds[Ts][uu][0]/=10.5,Ds[Ts][uu][1]/=-10.5/.75,Ds[Ts][uu][0]+=MS[0],Ds[Ts][uu][1]+=MS[1];function OW(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===gR)return;e.push(new o4(gR,st(Ds,function(a){return{type:"polygon",exterior:a}}),MS))}}var zW={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function kW(r,e){if(r==="china"){var t=zW[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 BW=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function VW(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:BW[0]})}var GW="name",HW=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=xt(),this._mapName=e,this._specialAreas=a,this._geoJSON=FW(t)}return r.prototype.load=function(e,t){t=t||GW;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:UW(n)})}var i=xt(),o=[];return P(a.regions,function(s){var l=s.name;e&&pt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new kt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?IY(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return OW(t,n),P(n,function(i){var o=i.name;kW(t,i),VW(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 UW(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 FW(r){return vt(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var xf=xt();const wi={registerMap:function(r,e,t){if(e.svg){var a=new IW(r,e.svg);xf.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new HW(r,n,t);xf.set(r,a)}},getGeoResource:function(r){return xf.get(r)},getMapForUser:function(r){var e=xf.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=xf.get(r);if(a)return a.load(e,t)}};var w2=["rect","circle","line","ellipse","polygon","polyline","path"],jW=xt(w2),YW=xt(w2.concat(["g"])),XW=xt(w2.concat(["g"])),lz=Kt();function op(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function yR(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var uz=(function(){function r(e){var t=new Ct;this.uid=$u("ec_map_draw"),this._controller=new Qh(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Ct),t.add(this._svgGroup=new Ct)}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(S){!s&&S.getHostGeoModel()===e&&(s=S.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,v=l.getTransformInfo(),d=v.raw,p=v.roam,y=!u.childAt(0)||i;y?(f.x=p.x,f.y=p.y,f.scaleX=p.scaleX,f.scaleY=p.scaleY,f.dirty()):Jt(f,p,e);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,_={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(_):l.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=xt(),a=xt(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(p,y){return y&&(p=y(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function v(p){for(var y=[],m=!u&&l&&l.project,_=0;_<p.length;++_){var S=f(p[_],m);S&&y.push(S)}return y}function d(p){return{shape:{points:v(p)}}}n.removeAll(),P(e.geo.regions,function(p){var y=p.name,m=t.get(y),_=a.get(y)||{},S=_.dataIdx,b=_.regionModel;m||(m=t.set(y,new Ct),n.add(m),S=s?s.indexOfName(y):null,b=e.isGeo?o.getRegionModel(y):s?s.getItemModel(S):null,a.set(y,{dataIdx:S,regionModel:b}));var w=[],A=[];P(p.geometries,function(L){if(L.type==="polygon"){var E=[L.exterior].concat(L.interiors||[]);u&&(E=wR(E,u)),P(E,function(N){w.push(new Vr(d(N)))})}else{var R=L.points;u&&(R=wR(R,u,!0)),P(R,function(N){A.push(new Gr(d(N)))})}});var M=f(p.getCenter(),l&&l.project);function C(L,E){if(L.length){var R=new Pb({culling:!0,segmentIgnoreThreshold:1,shape:{paths:L}});m.add(R),mR(e,R,S,b),_R(e,R,y,b,o,S,M),E&&(yR(R),P(R.states,yR))}}C(w),C(A,!0)}),t.each(function(p,y){var m=a.get(y),_=m.dataIdx,S=m.regionModel;xR(e,p,y,S,o,_),SR(e,p,y,S,o),bR(e,p,y,S,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=xt(),i=!1;P(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,v=o.el,d=u?u.indexOfName(s):null,p=l.getRegionModel(s);if(jW.get(f)!=null&&v instanceof Fa&&mR(e,v,d,p),v instanceof Fa&&(v.culling=!0),v.z2EmphasisLift=0,!o.namedFrom&&(XW.get(f)!=null&&_R(e,v,s,p,l,d,null),xR(e,v,s,p,l,d),SR(e,v,s,p,l),YW.get(f)!=null)){var y=bR(e,v,s,p,l);y==="self"&&(i=!0);var m=n.get(s)||n.set(s,[]);m.
`))}),e.join(`
`+My+`
`)}function ort(r){return st(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+Hu:"")+n.join(Hu))}),a.join(`
`)}).join(`
`+My+`
`)}function srt(r){var e=nrt(r);return{value:le([irt(e.seriesGroupByCategoryAxis),ort(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+My+`
`),meta:e.meta}}function Ng(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lrt(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(Hu)>=0)return!0}var qS=new RegExp("["+Hu+"]+","g");function urt(r){for(var e=r.split(/\n+/g),t=Ng(e.shift()).split(qS),a=[],n=st(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Ng(e[i]).split(qS);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 crt(r){for(var e=r.split(/\n+/g),t=Ng(e.shift()),a=[],n=0;n<e.length;n++){var i=Ng(e[n]);if(i){var o=i.split(qS),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 frt(r,e){var t=r.split(new RegExp(`
*`+My+`
*`,"g")),a={series:[]};return P(t,function(n,i){if(lrt(n)){var o=urt(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=crt(n);a.series.push(o)}}),a}var hrt=(function(r){$(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 v=i.get("optionToContent"),d=i.get("contentToOption"),p=srt(t);if(bt(v)){var y=v(a.getOption());vt(y)?u.innerHTML=y:ah(y)&&u.appendChild(y)}else{f.readOnly=i.get("readOnly");var m=f.style;m.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",m.color=i.get("textColor"),m.borderColor=i.get("textareaBorderColor"),m.backgroundColor=i.get("textareaColor"),f.value=p.value,u.appendChild(f)}var _=p.meta,S=document.createElement("div");S.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),A=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var M=this;function C(){n.removeChild(o),M._dom=null}Lx(w,"click",C),Lx(A,"click",function(){if(d==null&&v!=null||d!=null&&v==null){C();return}var L;try{bt(d)?L=d(u,a.getOption()):L=frt(f.value,_)}catch(E){throw C(),new Error("Data view format error "+E)}L&&a.dispatchAction({type:"changeDataView",newOption:L}),C()}),w.innerHTML=l[1],A.innerHTML=l[2],A.style.cssText=w.style.cssText=b,!i.get("readOnly")&&S.appendChild(A),S.appendChild(w),o.appendChild(s),o.appendChild(u),o.appendChild(S),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})(ka);function vrt(r,e){return st(r,function(t,a){var n=e&&e[a];if(Tt(n)&&!it(n)){var i=Tt(t)&&!it(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=wt(t,n),o&&delete t.name,t}else return t})}Vn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];P(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(et({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:vrt(a.data,i)})}}),e.mergeOption(wt({series:t},r.newOption))});var Vk=P,Gk=Kt();function drt(r,e){var t=nw(r);Vk(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 prt(r){var e=nw(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return Vk(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 grt(r){Gk(r).snapshots=null}function yrt(r){return nw(r).length}function nw(r){var e=Gk(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var mrt=(function(r){$(e,
`:"<br/>",S=v.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,S,u,Math.random()+"",o[0],o[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=Rt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,d=u.getData(v),p=this._renderMode,y=t.positionDefault,m=Tf([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),_=m.get("trigger");if(!(_!=null&&_!=="item")){var S=u.getDataParams(f,v),b=new H1;S.marker=b.makeTooltipMarker("item",al(S.color),p);var w=vL(u.formatTooltip(f,!1,v)),A=m.get("order"),M=m.get("valueFormatter"),C=w.frag,L=C?_L(M?et({valueFormatter:M},C):C,b,p,A,i.get("useUTC"),m.get("textStyle")):w.text,E="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,L,S,E,t.offsetX,t.offsetY,t.position,t.target,b)}),n({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=Rt(a),o=i.tooltipConfig,s=o.option||{};if(vt(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 v=t.positionDefault,d=Tf(u,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",m=new H1;this._showOrMove(d,function(){var _=Dt(d.get("formatterParams")||{});this._showTooltipContent(d,p,_,y,t.offsetX,t.offsetY,t.position,a,m)}),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 v=this._tooltipContent;v.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var p=a,y=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),m=y.color;if(d)if(vt(d)){var _=t.ecModel.get("useUTC"),S=it(n)?n[0]:n,b=S&&S.axisType&&S.axisType.indexOf("time")>=0;p=d,b&&(p=oy(S.axisValue,p,_)),p=DP(p,n,!0)}else if(bt(d)){var w=dt(function(A,M){A===this._ticket&&(v.setContent(M,f,t,m,l),this._updatePosition(t,l,o,s,v,n,u))},this);this._ticket=i,p=d(n,i,w)}else p=d;v.setContent(p,f,t,m,l),v.show(t,m),this._updatePosition(t,l,o,s,v,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||it(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!it(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 v=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),y=l&&l.getBoundingRect().clone();if(l&&y.applyTransform(l.transform),bt(a)&&(a=a([n,i],s,o.el,y,{viewSize:[u,f],contentSize:v.slice()})),it(a))n=ft(a[0],u),i=ft(a[1],f);else if(Tt(a)){var m=a;m.width=v[0],m.height=v[1];var _=Qe(m,{width:u,height:f});n=_.x,i=_.y,d=null,p=null}else if(vt(a)&&l){var S=jrt(a,y,v,t.get("borderWidth"));n=S[0],i=S[1]}else{var S=Urt(n,i,o,u,f,d?null:20,p?null:20);n=S[0],i=S[1]}if(d&&(n-=CI(d)?v[0]/2:d==="right"?v[0]:0),p&&(i-=CI(p)?v[1]/2:p==="bottom"?v[1]:0),Hk(t)){var S=Frt(n,i,o,u,f);n=S[0],i=S[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&&P(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&P(u,function(d,p){var y=v[p]||{},m=d.seriesDataIndices||[],_=y.seriesDataIndices||[];o=o&&d.value===y.value&&d.axisType===y.axisType&&d.axisId===y.axisId&&m.length===_.length,o&&P(m,function(S,b){var w=_[b];o=o&&S.seriesIndex===w.seriesIndex&&S.dataIndex===w.dataIndex}),i&&P(d.seriesDataIndices,function(S){var b=S.seriesIndex,w=a[b],A=i[b];w&&A&&A.data!==w.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){Ft.node||!a.getDom()||(gh(this,"_updatePosition
`)){var _=new Sp;_.newline=!0,u.add(_);return}var S=n.getSeriesByName(m)[0];if(!f.get(m))if(S){var b=S.getData(),w=b.getVisual("legendLineStyle")||{},A=b.getVisual("legendIcon"),M=b.getVisual("style"),C=this._createItem(S,m,y,p,a,t,w,M,A,v,i);C.on("click",du(XI,m,null,i,d)).on("mouseover",du(ab,S.name,null,i,d)).on("mouseout",du(nb,S.name,null,i,d)),f.set(m,!0)}else n.eachRawSeries(function(L){if(!f.get(m)&&L.legendVisualProvider){var E=L.legendVisualProvider;if(!E.containName(m))return;var R=E.indexOfName(m),N=E.getItemVisual(R,"style"),O=E.getItemVisual(R,"legendIcon"),k=ha(N.fill);k&&k[3]===0&&(k[3]=.2,N=et(et({},N),{fill:di(k,"rgba")}));var G=this._createItem(L,m,y,p,a,t,{},N,O,v,i);G.on("click",du(XI,null,m,i,d)).on("mouseover",du(ab,null,m,i,d)).on("mouseout",du(nb,null,m,i,d)),f.set(m,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();rb(t,function(u){var f=u.type,v=new $t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(v);var d=a.getModel("selectorLabel"),p=a.getModel(["emphasis","selectorLabel"]);Sr(v,{normal:d,emphasis:p},{defaultText:u.title}),Zs(v)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,v,d){var p=t.visualDrawType,y=o.get("itemWidth"),m=o.get("itemHeight"),_=o.isSelected(a),S=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),w=i.get("icon");f=w||f||"roundRect";var A=Fat(f,i,l,u,p,_,d),M=new Sp,C=i.getModel("textStyle");if(bt(t.getLegendIcon)&&(!w||w==="inherit"))M.add(t.getLegendIcon({itemWidth:y,itemHeight:m,icon:f,iconRotate:S,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:b}));else{var L=w==="inherit"&&t.getData().getVisual("symbol")?S==="inherit"?t.getData().getVisual("symbolRotate"):S:0;M.add(jat({itemWidth:y,itemHeight:m,icon:f,iconRotate:L,itemStyle:A.itemStyle,symbolKeepAspect:b}))}var E=s==="left"?y+5:-5,R=s,N=o.get("formatter"),O=a;vt(N)&&N?O=N.replace("{name}",a??""):bt(N)&&(O=N(a));var k=_?C.getTextColor():i.get("inactiveColor");M.add(new $t({style:xe(C,{text:O,x:E,y:m/2,fill:k,align:R,verticalAlign:"middle"},{inheritColor:k})}));var G=new Wt({shape:M.getBoundingRect(),invisible:!0}),H=i.getModel("tooltip");return H.get("show")&&Wu({el:G,componentModel:o,itemName:a,itemTooltipOption:H.option}),M.add(G),M.eachChild(function(F){F.silent=!0}),G.silent=!v,this.getContentGroup().add(M),Zs(M),M.__legendDataIndex=n,M},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();qs(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){qs("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],y=t.get("selectorButtonGap",!0),m=t.getOrient().index,_=m===0?"width":"height",S=m===0?"height":"width",b=m===0?"y":"x";s==="end"?p[m]+=f[_]+y:v[m]+=d[_]+y,p[1-m]+=f[S]/2-d[S]/2,u.x=p[0],u.y=p[1],l.x=v[0],l.y=v[1];var w={x:0,y:0};return w[_]=f[_]+y+d[_],w[S]=Math.max(f[S],d[S]),w[b]=Math.min(0,d[b]+p[1-m]),w}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Ee);function Fat(r,e,t,a,n,i,o){function s(_,S){_.lineWidth==="auto"&&(_.lineWidth=S.lineWidth>0?2:0),rb(_,function(b,w){_[w]==="inherit"&&(_[w]=S[w])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:Ou(v,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 d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),p.stroke==="auto"&&(p.stroke=a.fill),!i){var y=e.get("inactiveBorderWidth"),m=u[f];u.lineWidth=y==="auto"?a.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.st
`||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 Xat(r){r.registerAction("legendToggleSelect","legendselectchanged",It(Df,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",It(Df,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",It(Df,"inverseSelect")),r.registerAction("legendSelect","legendselected",It(Df,"select")),r.registerAction("legendUnSelect","legendunselected",It(Df,"unSelect"))}function Qk(r){r.registerComponentModel(eb),r.registerComponentView($k),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Yat),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Xat(r)}var Zat=(function(r){$(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=Qu(t);r.prototype.init.call(this,t,a,n),ZI(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),ZI(this,this.option,t)},e.type="legend.scroll",e.defaultOption=zo(eb.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})(eb);function ZI(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Ro(e,t,{type:"box",ignoreSize:!!n})}var WI=Ct,sx=["width","height"],lx=["x","y"],Wat=(function(r){$(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 WI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WI)},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,v=a.get("pageIconSize",!0),d=it(v)?v:[v,v];y("pagePrev",0);var p=a.getModel("pageTextStyle");f.add(new $t({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(m,_){var S=m+"DataIndex",b=Gh(a.get("pageIcons",!0)[a.getOrient().name][_],{onclick:dt(u._pageGo,u,S,a,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=m,f.add(b)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=sx[u],v=lx[u],d=sx[1-u],p=lx[1-u];o&&qs("horizontal",l,t.get("selectorItemGap",!0));var y=t.get("selectorButtonGap",!0),m=l.getBoundingRect(),_=[-m.x,-m.y],S=Dt(n);o&&(S[f]=n[f]-m[f]-y);var b=this._layoutContentAndController(t,i,S,u,f,d,p,v);if(o){if(s==="end")_[u]+=b[f]+y;else{var w=m[f]+y;_[u]-=w,b[v]-=w}b[f]+=m[f]+y,_[1-u]+=b[p]+b[d]/2-m[d]/2,b[d]=Math.max(b[d],m[d]),b[p]=Math.min(b[p],m[p]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return b},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,d=this._controllerGroup;qs(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),qs("horizontal",d,t.get("pageButtonItemGap",!0));var p=f.getBoundingRect(),y=d.getBoundingRect(),m=this._showController=p[o]>n[o],_=[-p.x,-p.y];a||(_[i]=f[u]);var S=[0,0],b=[-y.x,-y.y],w=Ot(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(m){var A=t.get("pageButtonPosition",!0);A==="end"?b[i]+=n[o]-y[o]:S[i]+=y[o]+w}b[1-i]+=p[s]/2-y[s]/2,f.setPosition(_),v.setPosition(S),d.setPosition(b);var M={x:0,y:0};if(M[o]=m?n[o]:p[o],M[s]=Math.max(p[s],y[s]),M[l]=Math.min(0,y[l]+b[1-i]),v.__rectSize=n[o],m){var C={x:0,y:0};C[o]=Math.m
<div style="padding: 8px;">
<div style="font-weight: bold; margin-bottom: 8px; color: #e6e6e6;">${E.axisValue}</div>
<div style="display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: 12px;">
<span style="color: #a1a1aa;">开盘:</span><span style="color: #fff;">${k.toFixed(2)}</span>
<span style="color: #a1a1aa;">最高:</span><span style="color: #fff;">${F.toFixed(2)}</span>
<span style="color: #a1a1aa;">最低:</span><span style="color: #fff;">${H.toFixed(2)}</span>
<span style="color: #a1a1aa;">收盘:</span><span style="color: ${j};">${G.toFixed(2)} (${B}%)</span>
${R?`<span style="color: #a1a1aa;">成交量:</span><span style="color: #fff;">${R.data.toLocaleString()}</span>`:""}
${N?`<span style="color: #a1a1aa;">MACD:</span><span style="color: ${N.data>=0?"#7dd75a":"#ef4444"};">${N.data.toFixed(4)}</span>`:""}
</div>
</div>
`}},axisPointer:{link:[{xAxisIndex:"all"}],label:{backgroundColor:"#0d5d1b"}},grid:[{left:"3%",right:"3%",top:"5%",height:"50%",containLabel:!0},{left:"3%",right:"3%",top:"58%",height:"15%",containLabel:!0},{left:"3%",right:"3%",top:"76%",height:"18%",containLabel:!0}],xAxis:[{type:"category",data:f,boundaryGap:!0,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},axisTick:{show:!1},splitLine:{show:!1}},{type:"category",gridIndex:1,data:f,boundaryGap:!0,axisLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},{type:"category",gridIndex:2,data:f,boundaryGap:!0,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{scale:!0,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},splitLine:{lineStyle:{color:"#27272a",type:"dashed"}},position:"right"},{scale:!0,gridIndex:1,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},{scale:!0,gridIndex:2,axisLine:{lineStyle:{color:"#3f3f46"}},axisLabel:{color:"#a1a1aa",fontSize:10},splitLine:{lineStyle:{color:"#27272a",type:"dashed"}},position:"right"}],dataZoom:[{type:"inside",xAxisIndex:[0,1,2],start:50,end:100},{type:"slider",xAxisIndex:[0,1,2],start:50,end:100,height:20,bottom:0,borderColor:"#3f3f46",fillerColor:"rgba(125, 215, 90, 0.2)",handleStyle:{color:"#7dd75a"},textStyle:{color:"#a1a1aa"}}],series:[{name:"K线",type:"candlestick",data:v,itemStyle:{color:"#7dd75a",color0:"#ef4444",borderColor:"#7dd75a",borderColor0:"#ef4444"},markLine:{symbol:"none",data:_,animation:!0}},{name:"MA5",type:"line",data:b,smooth:!0,showSymbol:!1,lineStyle:{color:"#fbbf24",width:1}},{name:"MA10",type:"line",data:w,smooth:!0,showSymbol:!1,lineStyle:{color:"#60a5fa",width:1}},{name:"MA20",type:"line",data:A,smooth:!0,showSymbol:!1,lineStyle:{color:"#c084fc",width:1}},{name:"成交量",type:"bar",xAxisIndex:1,yAxisIndex:1,data:d,itemStyle:{color:L=>{const E=L.dataIndex,R=r[E]?.close,N=r[E]?.open;return R>=N?"rgba(125, 215, 90, 0.6)":"rgba(239, 68, 68, 0.6)"}}},{name:"MACD",type:"bar",xAxisIndex:2,yAxisIndex:2,data:m},{name:"DIF",type:"line",xAxisIndex:2,yAxisIndex:2,data:p,smooth:!0,showSymbol:!1,lineStyle:{color:"#fbbf24",width:1.5}},{name:"DEA",type:"line",xAxisIndex:2,yAxisIndex:2,data:y,smooth:!0,showSymbol:!1,lineStyle:{color:"#60a5fa",width:1.5}}]};u.setOption(M),l(!1);const C=()=>{u.resize()};return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[r,e,t,a]),z.jsxs("div",{"code-path":"src/components/KLineChart.tsx:361:5",className:"relative",children:[s&&z.jsx("div",{"code-path":"src/components/KLineChart.tsx:363:9",className:"absolute inset-0 flex items-center justify-center bg-[#09090b]/80 z-10",children:z.jsxs("div",{"code-path":"src/components/KLineChart.tsx:364:11",className:"flex items-center gap-2 text-[#7dd75a]",children:[z.jsx("div",{"code-path":"src/components/KLineChart.tsx:365:13",className:"w-5 h-5 border-2 border-[#7dd75a] border-t-transparent rounded-full animate-spin"}),z.jsx("span",{"code-path":"src/components/KLineChart.tsx:366:13",className:"text-sm",children:"加载中..."})]})}),z.jsx("div",{"code-path":"src/components/KLineChart.tsx:370:7",ref:i,style:{height:`${n}px`},className:"w-full"})]})}const Lit={heatIndex:78.5,heatChange:5.2,upCount:156,downCount:89,capitalFlow:28.5,volatilityIndex:23.8,volatilityChange:-1.2},gx=[{id:"1",title:"地缘政治风险升级",time:"2025-03-02",summary:'美以袭伊朗,"海上油阀"被关,中东局势紧张升级',affectedProducts:["原油","黄金","白银","燃油"],impact:"bullish",impactLevel:5,analysis:"地缘政治风险急剧升温,霍尔木兹海峡封锁风险上升。原油供应中断担忧推动油价上涨,避险资产黄金、白银同步走强。短期油价易涨难跌,建议关注原油、黄金相关品种做多机会。",risks:["冲突升级可能","供应中断风险","波动率激增"]},{id:"2",title:"黄金价格创历史新高",time:"2025-03-01",summary:"COMEX黄金突破3100美元关口避险需求强劲"