+
+
+
+
+
++`,A(),Ft(()=>{p.content=s.value.getContent(),p.subject=v.subject,p.receiveEmail=v.receiveEmail,p.sendType=v.sendType})})}function x(K){K=K||"";const V=a.settings.r2Domain;return K.replace(/{{domain}}/g,V+"/")}function A(){i.currentAccount.email?(v.sendEmail=i.currentAccount.email,v.accountId=i.currentAccount.accountId,v.name=i.currentAccount.name):(v.sendEmail=l.user.email,v.accountId=l.user.accountId,v.name=l.user.name),u.value=!0,s.value.focus()}function P(K){Object.assign(v,{...K}),h.value="",setTimeout(()=>h.value=v.content),u.value=!0,s.value.focus()}const B=K=>{K.key==="Escape"&&q()};Yt(()=>{window.addEventListener("keydown",B)}),Qi(()=>{window.removeEventListener("keydown",B)});function q(){if(v.draftId){r.setDraft={...sn(v)},u.value=!1,T();return}if(!(v.content||v.subject||v.receiveEmail.length>0)){u.value=!1,T();return}if(p.sendType==="reply"){let K=v.subject===p.subject,V=s.value.getContent()===p.content,R=v.receiveEmail.length===1&&v.receiveEmail[0]===p.receiveEmail[0];if(K&&V&&R){T(),q();return}}Ta.confirm(n("saveDraftConfirm"),{confirmButtonText:n("confirm"),cancelButtonText:n("cancel"),type:"warning",distinguishCancelAndClose:!0}).then(async()=>{const K={...sn(v)};delete K.draftId,delete K.attachments,K.createTime=Et().utc().format("YYYY-MM-DD HH:mm:ss");const V=await To.value.draft.add({...K});To.value.att.add({draftId:V,attachments:sn(v.attachments)}),r.refreshList++,u.value=!1}).catch(K=>{K==="cancel"&&(u.value=!1,T())})}return(K,V)=>{const R=oE,F=Ir,N=qr;return $t((L(),re("div",dde,[D("div",{class:"write-box",onClick:V[2]||(V[2]=Pt(()=>{},["stop"]))},[D("div",hde,[D("div",pde,[D("span",vde,[H(y(ot),{icon:"hugeicons:quill-write-01",width:"28",height:"28"})]),D("span",mde,ne(K.$t("sender"))+":",1),D("span",gde,ne(v.name),1),D("span",yde,"<"+ne(v.sendEmail)+">",1)]),D("div",{onClick:q,style:{cursor:"pointer"}},[H(y(ot),{icon:"material-symbols-light:close-rounded",width:"22",height:"22"})])]),D("div",bde,[H(R,{onAddTag:g,"tag-type":"primary",size:"default",modelValue:v.receiveEmail,"onUpdate:modelValue":V[0]||(V[0]=I=>v.receiveEmail=I),placeholder:K.$t("ruleEmailsInputDesc")},{prefix:Z(()=>[D("div",_de,ne(K.$t("recipient")),1)]),suffix:Z(()=>[D("span",{class:J(["distribute",v.manyType?"checked":""]),onClick:Pt(m,["stop"])},ne(K.$t("sendSeparately")),3)]),_:1},8,["modelValue","placeholder"]),H(F,{modelValue:v.subject,"onUpdate:modelValue":V[1]||(V[1]=I=>v.subject=I),placeholder:K.$t("subjectInputDesc")},{prefix:Z(()=>[D("div",wde,ne(K.$t("subject")),1)]),_:1},8,["modelValue","placeholder"]),H(jfe,{"def-value":h.value,ref_key:"editor",ref:s,onChange:E},null,8,["def-value"]),D("div",Sde,[D("div",{class:"att-add",onClick:_},[H(y(ot),{icon:"iconamoon:attachment-fill",width:"24",height:"24"})]),D("div",{class:"att-clear",onClick:b},[H(y(ot),{icon:"icon-park-outline:clear-format",width:"24",height:"24 "})]),D("div",Cde,[(L(!0),re(gt,null,nn(v.attachments,(I,U)=>(L(),re("div",{class:"att-item",key:U},[H(y(ot),{icon:y(D4)(I.filename),width:"20",height:"20"},null,8,["icon"]),D("span",Tde,ne(I.filename),1),D("span",Ede,ne(y(x4)(I.size)),1),H(y(ot),{style:{cursor:"pointer"},icon:"material-symbols-light:close-rounded",onClick:X=>w(U),width:"22",height:"22"},null,8,["onClick"])]))),128))]),D("div",null,[v.sendType==="reply"?(L(),ve(N,{key:0,type:"primary",onClick:S},{default:Z(()=>[Je(ne(K.$t("reply")),1)]),_:1})):(L(),ve(N,{key:1,type:"primary",onClick:S},{default:Z(()=>[Je(ne(K.$t("send")),1)]),_:1}))])])])])],512)),[[Nn,u.value]])}}},xde=lr(kde,[["__scopeId","data-v-b6266946"]]),Mde={__name:"index",setup(e){const t=eu(),n=G({}),r=G(window.innerWidth<1025),a=()=>{r.value=window.innerWidth<1025,t.asideShow=window.innerWidth>1024};return Yt(()=>{t.writerRef=n,window.addEventListener("resize",a),a()}),ar(()=>{window.removeEventListener("resize",a)}),(o,i)=>{const s=oZ,l=iZ,u=sZ,c=aZ;return L(),re(gt,null,[H(c,{class:"layout"},{default:Z(()=>[H(s,{class:J(["aside",y(t).asideShow?"aside-show":"el-aside-hide"])},{default:Z(()=>[H(Dce)]),_:1},8,["class"]),D("div",{class:J(y(t).asideShow&&r.value?"overlay-show":"overlay-hide"),onClick:i[0]||(i[0]=f=>y(t).asideShow=!1)},null,2),H(c,{class:"main-container"},{default:Z(()=>[H(u,null,{default:Z(()=>[H(l,null,{default:Z(()=>[H(tfe)]),_:1}),H(wfe)]),_:1})]),_:1})]),_:1}),H(xde,{ref_key:"writerRef",ref:n},null,512)],64)}}},Ade=lr(Mde,[["__scopeId","data-v-1e33df0c"]]),Dde=Object.freeze(Object.defineProperty({__proto__:null,default:Ade},Symbol.toStringTag,{value:"Module"})),Ide={class:"email-container"},Pde={class:"header-actions"},Ode={class:"header-right"},Lde={key:0,class:"email-count"},Rde={class:"scroll-box","infinite-scroll-immediate":!1,"infinite-scroll-distance":"600"},$de=["data-checked","onClick"],Nde=["onClick"],Fde={key:1},Bde={key:0,class:"email-status"},Vde={key:1},zde={class:"name"},Hde={class:"phone-time"},Ude={class:"email-text"},Wde={class:"email-subject"},Kde={class:"email-content"},jde={key:0,class:"user-info"},Gde={class:"user"},Yde={class:"account"},qde={key:0,class:"del-status"},Xde={class:"email-time"},Zde={key:0,class:"follow-loading"},Jde={key:1,class:"noLoading"},Qde={key:2,class:"empty"},ehe={__name:"index",props:{getEmailList:Function,emailDelete:Function,starAdd:Function,starCancel:Function,cancelSuccess:Function,starSuccess:Function,actionLeft:{type:String,default:"0"},timeSort:{type:Number,default:0},showStatus:{type:Boolean,default:!1},showAccountIcon:{type:Boolean,default:!0},showUserInfo:{type:Boolean,default:!1},showStar:{type:Boolean,default:!0},allowStar:{type:Boolean,default:!0},type:{type:String,default:""}},emits:["jump","refresh-before","delete-draft"],setup(e,{expose:t,emit:n}){const r=e,a=n,{t:o}=Hr(),i=Lr(),s=eu(),l=tu(),u=G(!1),c=G(!1),f=G(!1),d=jt([]),h=G(0),p=G(!1),v=G(!1),g=G(null),m=G(!0);let b=0;const w=G(null),_=G(null);let S=!1,T=window.innerWidth<1025;const E=jt({emailId:0,size:30});t({refreshList:be,deleteEmail:V,addItem:R,emailList:d,firstLoad:m,latestEmail:w,noLoading:f,total:h}),Pp(()=>{g.value.scrollTop=b}),te(),cse(()=>{b=g.value.scrollTop}),Xe(()=>d.map(le=>le.checked),()=>{d.length>0&&U()},{deep:!0}),Xe(()=>l.deleteIds,()=>{l.deleteIds&&V(l.deleteIds)}),Xe(()=>l.cancelStarEmailId,()=>{d.forEach(le=>{le.emailId===l.cancelStarEmailId&&(le.isStar=0)})}),Xe(()=>l.addStarEmailId,()=>{d.forEach(le=>{le.emailId===l.addStarEmailId&&(le.isStar=1)})});const M=Y(()=>s.accountShow&&i.settings.manyEmail===0);function x(le){}function A(le){if(le.content){const de=document.createElement("div");de.innerHTML=le.content.replace(/<(img|iframe|object|embed|video|audio|source|link)[^>]*>/gi,""),de.querySelectorAll("script, style, title").forEach(He=>He.remove());let me=de.textContent||de.innerText||"";return me=me.replace(/\s+/g," ").trim(),P(me)}return le.text?P(le.text):""}function P(le){return le.replace(/[\u200B-\u200F\uFEFF\u034F\u200B-\u200F\u00A0\u3000\u00AD]/g,"").replace(/\s+/g," ").trim()}function B(le){if(le.isStar)le.isStar=0,r.starCancel(le.emailId).then(()=>{le.isStar=0,r.cancelSuccess?.(le)}).catch(de=>{console.error(de),le.isStar=1});else{if(!r.allowStar)return;le.isStar=1,r.starAdd(le.emailId).then(()=>{le.isStar=1,r.starSuccess(le)}).catch(de=>{console.error(de),le.isStar=0})}}function q(){s.accountShow=!s.accountShow}const K=()=>{Ta.confirm(o("delEmailsConfirm"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning"}).then(()=>{if(r.type==="draft"){const de=I();a("delete-draft",de);return}const le=N();r.emailDelete(le).then(()=>{xt({message:o("delSuccessMsg"),type:"success",plain:!0}),l.deleteIds=le})})};function V(le){le.forEach(de=>{d.forEach((xe,me)=>{de===xe.emailId&&d.splice(me,1)})}),d.length+ ${x(K.content)||` ${K.text}`} + +
0&&p+r.accumWidth>r.width&&(c=t.split(` +`),u=!0),r.accumWidth=p}else{var v=R8(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` +`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Cbe=Zi(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Tbe(e){return Sbe(e)?!!Cbe[e]:!0}function R8(e,t,n,r,a){for(var o=[],i=[],s="",l="",u=0,c=0,f=0;f n:a+c+h>n){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),i.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(c),s=d,c=h)):p?(o.push(l),i.push(u),l=d,u=h):(o.push(d),i.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),i.push(c)),o.length===1&&(c+=a),{accumWidth:c,lines:o,linesWidths:i}}var uC="__zr_style_"+Math.round(Math.random()*10),rc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},sb={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rc[uC]=!0;var AI=["z","z2","invisible"],Ebe=["invisible"],rv=function(e){Yn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=nr(n),a=0;a 1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(lm[0]=T1(a)*n+e,lm[1]=C1(a)*r+t,um[0]=T1(o)*n+e,um[1]=C1(o)*r+t,u(s,lm,um),c(l,lm,um),a=a%Cu,a<0&&(a=a+Cu),o=o%Cu,o<0&&(o=o+Cu),a>o&&!i?o+=Cu:a a&&(cm[0]=T1(h)*n+e,cm[1]=C1(h)*r+t,u(s,cm,s),c(l,cm,l))}var Rn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Tu=[],Eu=[],Mi=[],Qs=[],Ai=[],Di=[],E1=Math.min,k1=Math.max,ku=Math.cos,xu=Math.sin,ps=Math.abs,cC=Math.PI,cl=cC*2,x1=typeof Float32Array<"u",Rd=[];function M1(e){var t=Math.round(e/cC*1e8)/1e8;return t%2*cC}function i2(e,t){var n=M1(e[0]);n<0&&(n+=cl);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=cl?a=n+cl:t&&n-a>=cl?a=n-cl:!t&&n>a?a=n+(cl-M1(n-a)):t&&n0&&(this._ux=ps(r/My/t)||0,this._uy=ps(r/My/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(Rn.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ps(t-this._xi),a=ps(n-this._yi),o=r>this._ux||a>this._uy;if(this.addData(Rn.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var i=r*r+a*a;i>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,o,i){return this._drawPendingPt(),this.addData(Rn.C,t,n,r,a,o,i),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(Rn.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,o,i){this._drawPendingPt(),Rd[0]=a,Rd[1]=o,i2(Rd,i),a=Rd[0],o=Rd[1];var s=o-a;return this.addData(Rn.A,t,n,r,r,a,s,0,i?0:1),this._ctx&&this._ctx.arc(t,n,r,a,o,i),this._xi=ku(o)*r+t,this._yi=xu(o)*r+n,this},e.prototype.arcTo=function(t,n,r,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,o),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(Rn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Rn.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&x1&&(this.data=new Float32Array(n));for(var r=0;r c.length&&(this._expandData(),c=this.data);for(var f=0;f 0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n 11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Mi[0]=Mi[1]=Ai[0]=Ai[1]=Number.MAX_VALUE,Qs[0]=Qs[1]=Di[0]=Di[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,o=0,i;for(i=0;i r||ps(w)>a||d===n-1)&&(v=Math.sqrt(b*b+w*w),o=g,i=m);break}case Rn.C:{var _=t[d++],S=t[d++],g=t[d++],m=t[d++],T=t[d++],E=t[d++];v=Vye(o,i,_,S,g,m,T,E,10),o=T,i=E;break}case Rn.Q:{var _=t[d++],S=t[d++],g=t[d++],m=t[d++];v=Uye(o,i,_,S,g,m,10),o=g,i=m;break}case Rn.A:var M=t[d++],x=t[d++],A=t[d++],P=t[d++],B=t[d++],q=t[d++],K=q+B;d+=1,p&&(s=ku(B)*A+M,l=xu(B)*P+x),v=k1(A,P)*E1(cl,Math.abs(q)),o=ku(K)*A+M,i=xu(K)*P+x;break;case Rn.R:{s=o=t[d++],l=i=t[d++];var V=t[d++],R=t[d++];v=V*2+R*2;break}case Rn.Z:{var b=s-o,w=l-i;v=Math.sqrt(b*b+w*w),o=s,i=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,o=this._uy,i=this._len,s,l,u,c,f,d,h=n<1,p,v,g=0,m=0,b,w=0,_,S;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,b=n*v,!b)))e:for(var T=0;T0&&(t.lineTo(_,S),w=0),E){case Rn.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case Rn.L:{f=r[T++],d=r[T++];var x=ps(f-u),A=ps(d-c);if(x>a||A>o){if(h){var P=p[m++];if(g+P>b){var B=(b-g)/P;t.lineTo(u*(1-B)+f*B,c*(1-B)+d*B);break e}g+=P}t.lineTo(f,d),u=f,c=d,w=0}else{var q=x*x+A*A;q>w&&(_=f,S=d,w=q)}break}case Rn.C:{var K=r[T++],V=r[T++],R=r[T++],F=r[T++],N=r[T++],I=r[T++];if(h){var P=p[m++];if(g+P>b){var B=(b-g)/P;ky(u,K,R,N,B,Tu),ky(c,V,F,I,B,Eu),t.bezierCurveTo(Tu[1],Eu[1],Tu[2],Eu[2],Tu[3],Eu[3]);break e}g+=P}t.bezierCurveTo(K,V,R,F,N,I),u=N,c=I;break}case Rn.Q:{var K=r[T++],V=r[T++],R=r[T++],F=r[T++];if(h){var P=p[m++];if(g+P>b){var B=(b-g)/P;xy(u,K,R,B,Tu),xy(c,V,F,B,Eu),t.quadraticCurveTo(Tu[1],Eu[1],Tu[2],Eu[2]);break e}g+=P}t.quadraticCurveTo(K,V,R,F),u=R,c=F;break}case Rn.A:var U=r[T++],X=r[T++],te=r[T++],se=r[T++],be=r[T++],Te=r[T++],le=r[T++],de=!r[T++],xe=te>se?te:se,me=ps(te-se)>.001,He=be+Te,Ke=!1;if(h){var P=p[m++];g+P>b&&(He=be+Te*(b-g)/P,Ke=!0),g+=P}if(me&&t.ellipse?t.ellipse(U,X,te,se,le,be,He,de):t.arc(U,X,xe,be,He,de),Ke)break e;M&&(s=ku(be)*te+U,l=xu(be)*se+X),u=ku(He)*te+U,c=xu(He)*se+X;break;case Rn.R:s=u=r[T],l=c=r[T+1],f=r[T++],d=r[T++];var Q=r[T++],ie=r[T++];if(h){var P=p[m++];if(g+P>b){var he=b-g;t.moveTo(f,d),t.lineTo(f+E1(he,Q),d),he-=Q,he>0&&t.lineTo(f+Q,d+E1(he,ie)),he-=ie,he>0&&t.lineTo(f+k1(Q-he,0),d+ie),he-=Q,he>0&&t.lineTo(f,d+k1(ie-he,0));break e}g+=P}t.rect(f,d,Q,ie);break;case Rn.Z:if(h){var P=p[m++];if(g+P>b){var B=(b-g)/P;t.lineTo(u*(1-B)+s*B,c*(1-B)+l*B);break e}g+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Rn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Hc(e,t,n,r,a,o,i){if(a===0)return!1;var s=a,l=0,u=e;if(i>t+s&&i>r+s||i e+s&&o>n+s||o t+f&&c>r+f&&c>o+f&&c>s+f||c e+f&&u>n+f&&u>a+f&&u>i+f||u t+u&&l>r+u&&l>o+u||l e+u&&s>n+u&&s>a+u||s n||c+u a&&(a+=$d);var d=Math.atan2(l,s);return d<0&&(d+=$d),d>=r&&d<=a||d+$d>=r&&d+$d<=a}function bs(e,t,n,r,a,o){if(o>t&&o>r||o a?s:0}var el=hc.CMD,Mu=Math.PI*2,Obe=1e-4;function Lbe(e,t){return Math.abs(e-t) t&&u>r&&u>o&&u>s||u 1&&Rbe(),h=jr(t,r,o,s,So[0]),d>1&&(p=jr(t,r,o,s,So[1]))),d===2?g t&&s>r&&s>o||s =0&&u<=1){for(var c=0,f=Fa(t,r,o,u),d=0;d n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ya[0]=-l,ya[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Mu-1e-4){r=0,a=Mu;var c=o?1:-1;return i>=ya[0]+e&&i<=ya[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Mu,a+=Mu);for(var d=0,h=0;h<2;h++){var p=ya[h];if(p+e>i){var v=Math.atan2(s,p),c=o?1:-1;v<0&&(v=Mu+v),(v>=r&&v<=a||v+Mu>=r&&v+Mu<=a)&&(v>Math.PI/2&&v 1&&(n||(s+=bs(l,u,c,f,r,a))),g&&(l=o[p],u=o[p+1],c=l,f=u),v){case el.M:c=o[p++],f=o[p++],l=c,u=f;break;case el.L:if(n){if(Hc(l,u,o[p],o[p+1],t,r,a))return!0}else s+=bs(l,u,o[p],o[p+1],r,a)||0;l=o[p++],u=o[p++];break;case el.C:if(n){if(Dbe(l,u,o[p++],o[p++],o[p++],o[p++],o[p],o[p+1],t,r,a))return!0}else s+=$be(l,u,o[p++],o[p++],o[p++],o[p++],o[p],o[p+1],r,a)||0;l=o[p++],u=o[p++];break;case el.Q:if(n){if(Ibe(l,u,o[p++],o[p++],o[p],o[p+1],t,r,a))return!0}else s+=Nbe(l,u,o[p++],o[p++],o[p],o[p+1],r,a)||0;l=o[p++],u=o[p++];break;case el.A:var m=o[p++],b=o[p++],w=o[p++],_=o[p++],S=o[p++],T=o[p++];p+=1;var E=!!(1-o[p++]);d=Math.cos(S)*w+m,h=Math.sin(S)*_+b,g?(c=d,f=h):s+=bs(l,u,d,h,r,a);var M=(r-m)*_/w+m;if(n){if(Pbe(m,b,_,S,S+T,E,t,M,a))return!0}else s+=Fbe(m,b,_,S,S+T,E,M,a);l=Math.cos(S+T)*w+m,u=Math.sin(S+T)*_+b;break;case el.R:c=l=o[p++],f=u=o[p++];var x=o[p++],A=o[p++];if(d=c+x,h=f+A,n){if(Hc(c,f,d,f,t,r,a)||Hc(d,f,d,h,t,r,a)||Hc(d,h,c,h,t,r,a)||Hc(c,h,c,f,t,r,a))return!0}else s+=bs(d,f,d,h,r,a),s+=bs(c,h,c,f,r,a);break;case el.Z:if(n){if(Hc(l,u,c,f,t,r,a))return!0}else s+=bs(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!Lbe(u,f)&&(s+=bs(l,u,c,f,r,a)||0),s!==0}function Bbe(e,t,n){return $8(e,0,!1,t,n)}function Vbe(e,t,n,r){return $8(e,t,!0,n,r)}var N8=In({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rc),zbe={style:In({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},sb.style)},A1=gp.concat(["invisible","culling","z","z2","zlevel","parent"]),Vn=function(e){Yn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var o=a.style;for(var i in r)o[i]!==r[i]&&(o[i]=r[i]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s .5?rC:r>.2?g0e:aC}else if(n)return aC}return rC},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Bt(r)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=mp(n,0) 0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var i=this.path;(o||this.__dirty&nh)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),n=i.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),i=this.style;if(n=a[0],r=a[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Vbe(s,l/u,n,r)))return!0}if(this.hasFill())return Bbe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=nh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:pt(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&nh)},t.prototype.createStyle=function(n){return Zp(N8,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=pt({},this.shape))},t.prototype._applyStateObj=function(n,r,a,o,i,s){e.prototype._applyStateObj.call(this,n,r,a,o,i,s);var l=!(r&&o),u;if(r&&r.shape?i?o?u=r.shape:(u=pt({},a.shape),pt(u,r.shape)):(u=pt({},o?this.shape:a.shape),pt(u,r.shape)):l&&(u=a.shape),u)if(i){this.shape=pt({},this.shape);for(var c={},f=nr(u),d=0;d 0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return Zp(Hbe,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=QE(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(rv);Dy.prototype.type="tspan";var Ube=In({x:0,y:0},rc),Wbe={style:In({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},sb.style)};function Kbe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ns=function(e){Yn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return Zp(Ube,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var o=Kbe(r.image)?r.image:this.__image;if(!o)return 0;var i=n==="width"?"height":"width",s=r[i];return s==null?o[n]:o[n]/o[i]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Wbe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new kn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(rv);ns.prototype.type="image";function jbe(e,t){var n=t.x,r=t.y,a=t.width,o=t.height,i=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),o<0&&(r=r+o,o=-o),typeof i=="number"?s=l=u=c=i:i instanceof Array?i.length===1?s=l=u=c=i[0]:i.length===2?(s=u=i[0],l=c=i[1]):i.length===3?(s=i[0],l=c=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],c=i[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+o-u),u!==0&&e.arc(n+a-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var sf=Math.round;function F8(e,t,n){if(t){var r=t.x1,a=t.x2,o=t.y1,i=t.y2;e.x1=r,e.x2=a,e.y1=o,e.y2=i;var s=n&&n.lineWidth;return s&&(sf(r*2)===sf(a*2)&&(e.x1=e.x2=Ku(r,s,!0)),sf(o*2)===sf(i*2)&&(e.y1=e.y2=Ku(o,s,!0))),e}}function B8(e,t,n){if(t){var r=t.x,a=t.y,o=t.width,i=t.height;e.x=r,e.y=a,e.width=o,e.height=i;var s=n&&n.lineWidth;return s&&(e.x=Ku(r,s,!0),e.y=Ku(a,s,!0),e.width=Math.max(Ku(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Ku(a+i,s,!1)-e.y,i===0?0:1)),e}}function Ku(e,t,n){if(!t)return e;var r=sf(e*2);return(r+sf(t))%2===0?r/2:(r+(n?1:-1))/2}var Gbe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ybe={},xr=function(e){Yn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Gbe},t.prototype.buildPath=function(n,r){var a,o,i,s;if(this.subPixelOptimize){var l=B8(Ybe,r,this.style);a=l.x,o=l.y,i=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,o=r.y,i=r.width,s=r.height;r.r?jbe(n,r):n.rect(a,o,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Vn);xr.prototype.type="rect";var LI={fill:"#000"},RI=2,qbe={style:In({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},sb.style)},wr=function(e){Yn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=LI,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n 0,B=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),q=i.calculatedLineHeight,K=0;K =0&&(K=T[q],K.align==="right");)this._placeToken(K,n,M,m,B,"right",w),x-=K.width,B-=K.width,q--;for(P+=(o-(P-g)-(b-B)-x)/2;A<=q;)K=T[A],this._placeToken(K,n,M,m,P+K.width/2,"center",w),P+=K.width,A++;m+=M}},t.prototype._placeToken=function(n,r,a,o,i,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+a/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+a-n.height/2);var d=!n.isLineHolder&&D1(u);d&&this._renderBackground(u,r,s==="right"?i-n.width:s==="center"?i-n.width/2:i,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,p=n.textPadding;p&&(i=zI(i,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(Dy),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,b=!1,w=0,_=VI("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),S=BI("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||b)?(w=RI,m.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=i,g.y=f,T&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||fc,g.opacity=hf(u.opacity,r.opacity,1),NI(g,u),S&&(g.lineWidth=hf(u.lineWidth,r.lineWidth,w),g.lineDash=dn(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=S),_&&(g.fill=_);var E=n.contentWidth,M=n.contentHeight;v.setBoundingRect(new kn(ah(g.x,E,g.textAlign),af(g.y,M,g.textBaseline),E,M))},t.prototype._renderBackground=function(n,r,a,o,i,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(xr),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=a,m.y=o,m.width=i,m.height=s,m.r=h,v.dirtyShape()}if(d){var b=v.style;b.fill=l||null,b.fillOpacity=dn(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(ns),g.onload=function(){p.dirtyStyle()};var w=g.style;w.image=l.image,w.x=a,w.y=o,w.width=i,w.height=s}if(u&&c){var b=v.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=dn(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var _=(v||g).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=hf(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Qbe(n)&&(r=[n.fontStyle,n.fontWeight,Jbe(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&ai(r)||n.textFont||n.font},t}(rv),Xbe={left:!0,right:1,center:1},Zbe={top:1,bottom:1,middle:1},$I=["fontStyle","fontWeight","fontSize","fontFamily"];function Jbe(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?BE+"px":e+"px"}function NI(e,t){for(var n=0;n<$I.length;n++){var r=$I[n],a=t[r];a!=null&&(e[r]=a)}}function Qbe(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function e_e(e){return FI(e),_e(e.rich,FI),e}function FI(e){if(e){e.font=wr.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Xbe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||Zbe[n]?n:"top";var r=e.padding;r&&(e.padding=WE(e.padding))}}function BI(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function VI(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function zI(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function HI(e){var t=e.text;return t!=null&&(t+=""),t}function D1(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Dn=Cr(),fC=function(e,t,n,r){if(r){var a=Dn(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",r.type==="group"&&r.traverse(function(o){var i=Dn(o);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},UI=1,WI={},V8=Cr(),s2=Cr(),l2=0,lb=1,ub=2,Vo=["emphasis","blur","select"],Iy=["normal","emphasis","blur","select"],t_e=10,n_e=9,ac="highlight",kg="downplay",Ph="select",xg="unselect",Oh="toggleSelect";function Uc(e){return e!=null&&e!=="none"}function cb(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function z8(e){cb(e,"emphasis",ub)}function H8(e){e.hoverState===ub&&cb(e,"normal",l2)}function u2(e){cb(e,"blur",lb)}function U8(e){e.hoverState===lb&&cb(e,"normal",l2)}function r_e(e){e.selected=!0}function a_e(e){e.selected=!1}function KI(e,t,n){t(e,n)}function Ws(e,t,n){KI(e,t,n),e.isGroup&&e.traverse(function(r){KI(r,t,n)})}function jI(e,t){switch(t){case"emphasis":e.hoverState=ub;break;case"normal":e.hoverState=l2;break;case"blur":e.hoverState=lb;break;case"select":e.selected=!0}}function o_e(e,t,n,r){for(var a=e.style,o={},i=0;i =0,o=!1;if(e instanceof Vn){var i=V8(e),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(Uc(s)||Uc(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=pt({},r),u=pt({},u),u.fill=s):!Uc(u.fill)&&Uc(s)?(o=!0,r=pt({},r),u=pt({},u),u.fill=XS(s)):!Uc(u.stroke)&&Uc(l)&&(o||(r=pt({},r),u=pt({},u)),u.stroke=XS(l)),r.style=u}}if(r&&r.z2==null){o||(r=pt({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??t_e)}return r}function s_e(e,t,n){if(n&&n.z2==null){n=pt({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??n_e)}return n}function l_e(e,t,n){var r=Fn(e.currentStates,t)>=0,a=e.style.opacity,o=r?null:o_e(e,["opacity"],t,{opacity:1});n=n||{};var i=n.style||{};return i.opacity==null&&(n=pt({},n),i=pt({opacity:r?a:o.opacity*.1},i),n.style=i),n}function I1(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return i_e(this,e,t,n);if(e==="blur")return l_e(this,e,n);if(e==="select")return s_e(this,e,n)}return n}function u_e(e){e.stateProxy=I1;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=I1),n&&(n.stateProxy=I1)}function GI(e,t){!G8(e,t)&&!e.__highByOuter&&Ws(e,z8)}function YI(e,t){!G8(e,t)&&!e.__highByOuter&&Ws(e,H8)}function Py(e,t){e.__highByOuter|=1<<(t||0),Ws(e,z8)}function Oy(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ws(e,H8)}function c_e(e){Ws(e,u2)}function W8(e){Ws(e,U8)}function K8(e){Ws(e,r_e)}function j8(e){Ws(e,a_e)}function G8(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Y8(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,o){var i=s2(o),s=a==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),i.isBlured&&(l.group.traverse(function(u){U8(u)}),s&&n.push(o)),i.isBlured=!1}),_e(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function dC(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f 0){var s={dataIndex:i,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Ly(e,t,n){q8(e,!0),Ws(e,u_e),g_e(e,t,n)}function m_e(e){q8(e,!1)}function pc(e,t,n,r){r?m_e(e):Ly(e,t,n)}function g_e(e,t,n){var r=Dn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var XI=["emphasis","blur","select"],y_e={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Hf(e,t,n,r){n=n||"itemStyle";for(var a=0;a 1&&(i*=P1(p),s*=P1(p));var v=(a===o?-1:1)*P1((i*i*(s*s)-i*i*(h*h)-s*s*(d*d))/(i*i*(h*h)+s*s*(d*d)))||0,g=v*i*h/s,m=v*-s*d/i,b=(e+n)/2+hm(f)*g-dm(f)*m,w=(t+r)/2+dm(f)*g+hm(f)*m,_=eP([1,0],[(d-g)/i,(h-m)/s]),S=[(d-g)/i,(h-m)/s],T=[(-1*d-g)/i,(-1*h-m)/s],E=eP(S,T);if(mC(S,T)<=-1&&(E=Nd),mC(S,T)>=1&&(E=0),E<0){var M=Math.round(E/Nd*1e6)/1e6;E=Nd*2+M%2*Nd}c.addData(u,b,w,i,s,_,E,f,o)}var T_e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,E_e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function k_e(e){var t=new hc;if(!e)return t;var n=0,r=0,a=n,o=r,i,s=hc.CMD,l=e.match(T_e);if(!l)return t;for(var u=0;u K*K+V*V&&(M=A,x=P),{cx:M,cy:x,x0:-c,y0:-f,x1:M*(a/S-1),y1:x*(a/S-1)}}function L_e(e){var t;if(It(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function R_e(e,t){var n,r=oh(t.r,0),a=oh(t.r0||0,0),o=r>0,i=a>0;if(!(!o&&!i)){if(o||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=nP(u-l),p=h>O1&&h%O1;if(p>Xo&&(h=p),!(r>Xo))e.moveTo(c,f);else if(h>O1-Xo)e.moveTo(c+r*Kc(l),f+r*Au(l)),e.arc(c,f,r,l,u,!d),a>Xo&&(e.moveTo(c+a*Kc(u),f+a*Au(u)),e.arc(c,f,a,u,l,d));else{var v=void 0,g=void 0,m=void 0,b=void 0,w=void 0,_=void 0,S=void 0,T=void 0,E=void 0,M=void 0,x=void 0,A=void 0,P=void 0,B=void 0,q=void 0,K=void 0,V=r*Kc(l),R=r*Au(l),F=a*Kc(u),N=a*Au(u),I=h>Xo;if(I){var U=t.cornerRadius;U&&(n=L_e(U),v=n[0],g=n[1],m=n[2],b=n[3]);var X=nP(r-a)/2;if(w=Ii(X,m),_=Ii(X,b),S=Ii(X,v),T=Ii(X,g),x=E=oh(w,_),A=M=oh(S,T),(E>Xo||M>Xo)&&(P=r*Kc(u),B=r*Au(u),q=a*Kc(l),K=a*Au(l),h Xo){var me=Ii(m,x),He=Ii(b,x),Ke=pm(q,K,V,R,r,me,d),Q=pm(P,B,F,N,r,He,d);e.moveTo(c+Ke.cx+Ke.x0,f+Ke.cy+Ke.y0),x 0&&e.arc(c+Ke.cx,f+Ke.cy,me,ea(Ke.y0,Ke.x0),ea(Ke.y1,Ke.x1),!d),e.arc(c,f,r,ea(Ke.cy+Ke.y1,Ke.cx+Ke.x1),ea(Q.cy+Q.y1,Q.cx+Q.x1),!d),He>0&&e.arc(c+Q.cx,f+Q.cy,He,ea(Q.y1,Q.x1),ea(Q.y0,Q.x0),!d))}else e.moveTo(c+V,f+R),e.arc(c,f,r,l,u,!d);if(!(a>Xo)||!I)e.lineTo(c+F,f+N);else if(A>Xo){var me=Ii(v,A),He=Ii(g,A),Ke=pm(F,N,P,B,a,-He,d),Q=pm(V,R,q,K,a,-me,d);e.lineTo(c+Ke.cx+Ke.x0,f+Ke.cy+Ke.y0),A 0&&e.arc(c+Ke.cx,f+Ke.cy,He,ea(Ke.y0,Ke.x0),ea(Ke.y1,Ke.x1),!d),e.arc(c,f,a,ea(Ke.cy+Ke.y1,Ke.cx+Ke.x1),ea(Q.cy+Q.y1,Q.cx+Q.x1),d),me>0&&e.arc(c+Q.cx,f+Q.cy,me,ea(Q.y1,Q.x1),ea(Q.y0,Q.x0),!d))}else e.lineTo(c+F,f+N),e.arc(c,f,a,u,l,d)}e.closePath()}}}var $_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),hi=function(e){Yn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new $_e},t.prototype.buildPath=function(n,r){R_e(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Vn);hi.prototype.type="sector";var N_e=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),db=function(e){Yn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new N_e},t.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,i=Math.PI*2;n.moveTo(a+r.r,o),n.arc(a,o,r.r,0,i,!1),n.moveTo(a+r.r0,o),n.arc(a,o,r.r0,0,i,!0)},t}(Vn);db.prototype.type="ring";function F_e(e,t,n,r){var a=[],o=[],i=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d =2){if(r){var o=F_e(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var i=a.length,s=0;s<(n?i:i-1);s++){var l=o[s*2],u=o[s*2+1],c=a[(s+1)%i];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s Iu[1]){if(s=!1,o)return s;var c=Math.abs(Iu[0]-Du[1]),f=Math.abs(Du[0]-Iu[1]);Math.min(c,f)>a.len()&&(c 0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!i,setToFinal:!u,scope:e,during:i};s?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!s&&t.attr(n),i&&i(1),o&&o()}function Or(e,t,n,r,a,o){d2("update",e,t,n,r,a,o)}function fa(e,t,n,r,a,o){d2("enter",e,t,n,r,a,o)}function Rh(e){if(!e.__zr)return!0;for(var t=0;t Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function oP(e){return!e.isGroup}function J_e(e){return e.shape!=null}function fB(e,t,n){if(!e||!t)return;function r(i){var s={};return i.traverse(function(l){oP(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return J_e(i)&&(s.shape=pt({},i.shape)),s}var o=r(e);t.traverse(function(i){if(oP(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),Or(i,l,n,Dn(i).dataIndex)}}})}function dB(e,t){return Ht(e,function(n){var r=n[0];r=Fy(r,t.x),r=By(r,t.x+t.width);var a=n[1];return a=Fy(a,t.y),a=By(a,t.y+t.height),[r,a]})}function hB(e,t){var n=Fy(e.x,t.x),r=By(e.x+e.width,t.x+t.width),a=Fy(e.y,t.y),o=By(e.y+e.height,t.y+t.height);if(r>=n&&o>=a)return{x:n,y:a,width:r-n,height:o-a}}function mb(e,t,n){var r=pt({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),In(a,n),new ns(r)):vb(e.replace("path://",""),r,n,"center")}function Q_e(e,t,n,r,a){for(var o=0,i=a[a.length-1];o 1)return!1;var g=L1(h,p,c,f)/d;return!(g<0||g>1)}function L1(e,t,n,r){return e*r-n*t}function e1e(e){return e<=1e-6&&e>=-1e-6}function gb(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=Bt(t)?{formatter:t}:t,o=n.mainType,i=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=i;var l=e.formatterParamsExtra;l&&_e(nr(l),function(c){Ul(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Dn(e.el);u.componentMainType=o,u.componentIndex=i,u.tooltipConfig={name:r,option:In({content:r,encodeHTMLContent:!0,formatterParams:s},a)}}function iP(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function yb(e,t){if(e)if(It(e))for(var n=0;n =0&&s.push(l)}),s}}function bB(e,t){return En(En({},e,!0),t,!0)}const v1e={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},m1e={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Vy="ZH",g2="EN",mf=g2,Mg={},y2={},_B=en.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||mf).toUpperCase();return e.indexOf(Vy)>-1?Vy:mf}():mf;function b2(e,t){e=e.toUpperCase(),y2[e]=new tr(t),Mg[e]=t}function g1e(e){if(Bt(e)){var t=Mg[e.toUpperCase()]||{};return e===Vy||e===g2?wn(t):En(wn(t),wn(Mg[mf]),!1)}else return En(wn(e),wn(Mg[mf]),!1)}function y1e(e){return y2[e]}function b1e(){return y2[mf]}b2(g2,v1e);b2(Vy,m1e);var _2=1e3,w2=_2*60,$h=w2*60,Ao=$h*24,dP=Ao*365,ih={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gm="{yyyy}-{MM}-{dd}",hP={year:"{yyyy}",month:"{yyyy}-{MM}",day:gm,hour:gm+" "+ih.hour,minute:gm+" "+ih.minute,second:gm+" "+ih.second,millisecond:ih.none},N1=["year","month","day","hour","minute","second","millisecond"],wB=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ba(e,t){return e+="","0000".substr(0,t-e.length)+e}function gf(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function _1e(e){return e===gf(e)}function w1e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function uv(e,t,n,r){var a=Bo(e),o=a[S2(n)](),i=a[yf(n)]()+1,s=Math.floor((i-1)/3)+1,l=a[wb(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[Cp(n)](),f=(c-1)%12+1,d=a[Sb(n)](),h=a[Cb(n)](),p=a[Tb(n)](),v=c>=12?"pm":"am",g=v.toUpperCase(),m=r instanceof tr?r:y1e(r||_B)||b1e(),b=m.getModel("time"),w=b.get("month"),_=b.get("monthAbbr"),S=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,v+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ba(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[i-1]).replace(/{MMM}/g,_[i-1]).replace(/{MM}/g,ba(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,ba(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ba(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ba(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ba(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ba(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,ba(p,3)).replace(/{S}/g,p+"")}function S1e(e,t,n,r,a){var o=null;if(Bt(n))o=n;else if(rn(n))o=n(e.value,t,{level:e.level});else{var i=pt({},ih);if(e.level>0)for(var s=0;s =0;--s)if(l[u]){o=l[u];break}o=o||i.none}if(It(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return uv(new Date(e.value),o,a,r)}function SB(e,t){var n=Bo(e),r=n[yf(t)]()+1,a=n[wb(t)](),o=n[Cp(t)](),i=n[Sb(t)](),s=n[Cb(t)](),l=n[Tb(t)](),u=l===0,c=u&&s===0,f=c&&i===0,d=f&&o===0,h=d&&a===1,p=h&&r===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function pP(e,t,n){var r=Wn(e)?Bo(e):e;switch(t=t||SB(e,n),t){case"year":return r[S2(n)]();case"half-year":return r[yf(n)]()>=6?1:0;case"quarter":return Math.floor((r[yf(n)]()+1)/4);case"month":return r[yf(n)]();case"day":return r[wb(n)]();case"half-day":return r[Cp(n)]()/24;case"hour":return r[Cp(n)]();case"minute":return r[Sb(n)]();case"second":return r[Cb(n)]();case"millisecond":return r[Tb(n)]()}}function S2(e){return e?"getUTCFullYear":"getFullYear"}function yf(e){return e?"getUTCMonth":"getMonth"}function wb(e){return e?"getUTCDate":"getDate"}function Cp(e){return e?"getUTCHours":"getHours"}function Sb(e){return e?"getUTCMinutes":"getMinutes"}function Cb(e){return e?"getUTCSeconds":"getSeconds"}function Tb(e){return e?"getUTCMilliseconds":"getMilliseconds"}function C1e(e){return e?"setUTCFullYear":"setFullYear"}function CB(e){return e?"setUTCMonth":"setMonth"}function TB(e){return e?"setUTCDate":"setDate"}function EB(e){return e?"setUTCHours":"setHours"}function kB(e){return e?"setUTCMinutes":"setMinutes"}function xB(e){return e?"setUTCSeconds":"setSeconds"}function MB(e){return e?"setUTCMilliseconds":"setMilliseconds"}function T1e(e,t,n,r,a,o,i,s){var l=new wr({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:o,overflow:i?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function C2(e){if(!S8(e))return Bt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function T2(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var cv=WE;function bC(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&ai(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?Bo(e):e;if(isNaN(+l)){if(s)return"-"}else return uv(l,r,n)}if(t==="ordinal")return by(e)?a(e):Wn(e)&&o(e)?e+"":"-";var u=bp(e);return o(u)?C2(u):by(e)?a(e):typeof e=="boolean"?e+"":"-"}var vP=["a","b","c","d","e","f","g"],F1=function(e,t){return"{"+e+(t??"")+"}"};function E2(e,t,n){It(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],o=0;o ':'';var i=n.markerId||"markerX";return{renderMode:o,content:"{"+i+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function E1e(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd +yyyy`);var r=Bo(t),a=n?"getUTC":"get",o=r[a+"FullYear"](),i=r[a+"Month"]()+1,s=r[a+"Date"](),l=r[a+"Hours"](),u=r[a+"Minutes"](),c=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return e=e.replace("MM",ba(i,2)).replace("M",i).replace("yyyy",o).replace("yy",ba(o%100+"",2)).replace("dd",ba(s,2)).replace("d",s).replace("hh",ba(l,2)).replace("h",l).replace("mm",ba(u,2)).replace("m",u).replace("ss",ba(c,2)).replace("s",c).replace("SSS",ba(f,3)),e}function k1e(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function vc(e,t){return t=t||"transparent",Bt(e)?e:Kt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Ag=_e,x1e=["left","right","top","bottom","width","height"],ym=[["width","left","right"],["height","top","bottom"]];function k2(e,t,n,r,a){var o=0,i=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=o+v,h>r||l.newline?(o=0,h=v,i+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=i+g,p>a||l.newline?(o+=s+n,i=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),e==="horizontal"?o=h+n:i=p+n)})}var Nh=k2;cr(k2,"vertical");cr(k2,"horizontal");function Uf(e,t,n){n=cv(n||0);var r=t.width,a=t.height,o=fn(e.left,r),i=fn(e.top,a),s=fn(e.right,r),l=fn(e.bottom,a),u=fn(e.width,r),c=fn(e.height,a),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=a-l-f-i),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-d),isNaN(i)&&(i=a-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":i=a/2-c/2-n[0];break;case"bottom":i=a-c-f;break}o=o||0,i=i||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=a-f-i-(l||0));var p=new kn(o+n[3],i+n[0],u,c);return p.margin=n,p}function Tp(e){var t=e.layoutMode||e.constructor.layoutMode;return Kt(t)?t:t?{type:t}:null}function Wf(e,t,n){var r=n&&n.ignoreSize;!It(r)&&(r=[r,r]);var a=i(ym[0],0),o=i(ym[1],1);u(ym[0],e,a),u(ym[1],e,o);function i(c,f){var d={},h=0,p={},v=0,g=2;if(Ag(c,function(w){p[w]=e[w]}),Ag(c,function(w){s(t,w)&&(d[w]=p[w]=t[w]),l(d,w)&&h++,l(p,w)&&v++}),r[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m =0;l--)s=En(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",o=n+"Id";return nv(this.ecModel,n,{index:this.get(a,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(tr);D8(On,tr);ob(On);h1e(On);p1e(On,D1e);function D1e(e){var t=[];return _e(On.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Ht(t,function(n){return Bi(n).main}),e!=="dataset"&&Fn(t,"dataset")<=0&&t.unshift("dataset"),t}var DB="";typeof navigator<"u"&&(DB=navigator.platform||"");var jc="rgba(0, 0, 0, 0.2)";const I1e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:jc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:jc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:jc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:jc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:jc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:jc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:DB.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var IB=hn(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),jo="original",Ya="arrayRows",wi="objectRows",rs="keyedColumns",Pl="typedArray",PB="unknown",Ds="column",sd="row",Wr={Must:1,Might:2,Not:3},OB=Cr();function P1e(e){OB(e).datasetMap=hn()}function O1e(e,t,n){var r={},a=x2(t);if(!a||!e)return r;var o=[],i=[],s=t.ecModel,l=OB(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),_e(e,function(v,g){var m=Kt(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});_e(e,function(v,g){var m=v.name,b=p(v);if(c==null){var w=d.valueWayDim;h(r[m],w,b),h(i,w,b),d.valueWayDim+=b}else if(c===g)h(r[m],0,b),h(o,0,b);else{var w=d.categoryWayDim;h(r[m],w,b),h(i,w,b),d.categoryWayDim+=b}});function h(v,g,m){for(var b=0;b t)return e[r];return e[n-1]}function B1e(e,t,n,r,a,o,i){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=i==null||!r?n:F1e(r,i);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function V1e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var bm,Fd,gP,yP="\0_ec_inner",z1e=1,A2=function(e){Xt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,o,i,s){o=o||{},this.option=null,this._theme=new tr(o),this._locale=new tr(i),this._optionManager=s},t.prototype.setOption=function(n,r,a){var o=wP(r);this._optionManager.setOption(n,a,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,wP(r))},t.prototype._resetOption=function(n,r){var a=!1,o=this._optionManager;if(!n||n==="recreate"){var i=o.mountOption(n==="recreate");!this.option||n==="recreate"?gP(this,i):(this.restoreData(),this._mergeOption(i,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&_e(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,o=this._componentsMap,i=this._componentsCount,s=[],l=hn(),u=r&&r.replaceMergeMainTypeMap;P1e(this),_e(n,function(f,d){f!=null&&(On.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?wn(f):En(a[d],f,!0))}),u&&u.each(function(f,d){On.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),On.topologicalTravel(s,On.getAllClassMainTypes(),c,this);function c(f){var d=N1e(this,f,Ma(n[f])),h=o.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=j0e(h,d,p);Q0e(v,f,On),a[f]=null,o.set(f,null),i.set(f,0);var g=[],m=[],b=0,w;_e(v,function(_,S){var T=_.existing,E=_.newOption;if(!E)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var M=f==="series",x=On.getClass(f,_.keyInfo.subType,!M);if(!x)return;if(f==="tooltip"){if(w)return;w=!0}if(T&&T.constructor===x)T.name=_.keyInfo.name,T.mergeOption(E,this),T.optionUpdated(E,!1);else{var A=pt({componentIndex:S},_.keyInfo);T=new x(E,this,this,A),pt(T,A),_.brandNew&&(T.__requireNewView=!0),T.init(E,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),m.push(T),b++):(g.push(void 0),m.push(void 0))},this),a[f]=g,o.set(f,m),i.set(f,b),f==="series"&&bm(this)}this._seriesIndices||bm(this)},t.prototype.getOption=function(){var n=wn(this.option);return _e(n,function(r,a){if(On.hasClass(a)){for(var o=Ma(r),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!_p(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,n[a]=o}}),delete n[yP],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var o=a[r||0];if(o)return o;if(r==null){for(var i=0;i =t:n==="max"?e<=t:e===t}function X1e(e,t){return e.join(",")===t.join(",")}var Go=_e,Ep=Kt,SP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function V1(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=SP.length;n =0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var b=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=B0e(d,b),v=b;break}}}return r[0]=d,r[1]=v,r})})}var xb=function(){function e(t){this.data=t.data||(t.sourceFormat===rs?{}:[]),this.sourceFormat=t.sourceFormat||PB,this.seriesLayoutBy=t.seriesLayoutBy||Ds,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r v&&(v=w)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};AP=(t={},t[Ya+"_"+Ds]={pure:!0,appendData:o},t[Ya+"_"+sd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wi]={pure:!0,appendData:o},t[rs]={pure:!0,appendData:function(i){var s=this._data;_e(i,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[jo]={appendData:o},t[Pl]={persistent:!1,pure:!0,appendData:function(i){this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(i){for(var s=0;s =0&&(v=i.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,n){return Kf(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function OP(e){var t,n;return Kt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Fh(e){return new pwe(e)}var pwe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var i=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(o="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h 1&&r>0?s:i}};return o;function i(){return t
=e?null:l a?-this._resultLT:0},e}(),mwe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Dg(t,n)},e}();function gwe(e,t){var n=new mwe,r=e.data,a=n.sourceFormat=e.sourceFormat,o=e.startIndex,i="";e.seriesLayoutBy!==Ds&&Ba(i);var s=[],l={},u=e.dimensionsDefine;if(u)_e(u,function(v,g){var m=v.name,b={index:g,name:m,displayName:v.displayName};if(s.push(b),m!=null){var w="";Ul(l,m)&&Ba(w),l[m]=b}});else for(var c=0;c 65535?Ewe:kwe}function Yc(){return[1/0,-1/0]}function xwe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function $P(e,t,n,r,a){var o=YB[n||"float"];if(a){var i=e[t],s=i&&i.length;if(s!==r){for(var l=new o(r),u=0;u