@kubex/zinc 1.1.32 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/zn.4YKYUIHS.js +3 -0
- package/dist/chunks/zn.6RARZYEJ.js +22 -0
- package/dist/chunks/zn.7VCR5ZZL.js +1 -0
- package/dist/chunks/zn.AI3T35DX.js +1 -0
- package/dist/chunks/zn.CU5HCKLN.js +1 -0
- package/dist/chunks/zn.EHO4QQOL.js +1 -0
- package/dist/chunks/zn.GBBMMHHG.js +8 -0
- package/dist/chunks/zn.GRJSS6IO.js +1 -0
- package/dist/chunks/zn.HPUEBV7K.js +1 -0
- package/dist/chunks/zn.J2JOUV3V.js +8 -0
- package/dist/chunks/zn.NKUIXDNI.js +1 -0
- package/dist/chunks/zn.S4ZVBYAS.js +3 -0
- package/dist/chunks/zn.UBLZO6CI.js +1 -0
- package/dist/chunks/zn.XO7QERPZ.js +716 -0
- package/dist/chunks/zn.ZGI3WHSG.js +4 -0
- package/dist/custom-elements.json +134 -75
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/web-types.json +23 -23
- package/dist/zn.d.ts +21 -0
- package/dist/zn.min.js +1309 -2041
- package/index.html +1 -1
- package/package.json +3 -3
- package/scripts/build.js +10 -5
- package/src/components/chart/chart.component.ts +20 -27
- package/src/components/chart/echarts-loader.ts +30 -0
- package/src/components/editor/modules/emoji/emoji-mart-loader.ts +28 -0
- package/src/components/editor/modules/emoji/emoji.ts +3 -9
- package/src/components/editor/modules/emoji/headless/headless-emoji.ts +2 -9
- package/src/components/icon/icon.component.ts +34 -2
- package/src/components/icon-picker/icon-picker.component.ts +35 -35
- package/src/components/settings-container/settings-container.scss +2 -2
- package/src/components/simple-chart/simple-chart.component.ts +15 -6
- package/src/zinc-autoloader.ts +0 -2
- package/tsconfig.json +2 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{$a as an,$c as aa,Ac as Ke,Ae as zn,B as Fo,Bc as vn,Be,Cb as Kt,Cc as Ie,Ce as Qe,D as Yo,Da as qi,Db as qt,De as Bn,E as Ho,Ea as Gr,Eb as jr,Ee as Un,Fa as Fr,Fb as ea,Fc as mn,Fe as ir,Gb as Qt,Gc as tr,Ge as ii,Hb as ta,Hc as $r,He as Tt,Ib as $t,Ie as ua,J as _t,Ja as bt,Jc as ve,Je as Vn,Kc as D,Ke as Gn,L as je,Lb as Jr,M as Wo,Mb as Kr,Mc as hn,Me as Fn,Oa as Jo,Od as An,Pa as Ko,Pb as Ct,Pe as Yn,Qa as Yr,Qb as Ae,Qc as ia,Qe as $e,Ra as qo,Rb as ra,Re as Hn,Se as Et,Ta as Qo,U as K,Ua as De,Ue as Wn,Va as Ne,Ve as Lt,Wa as _e,X as ue,Xa as $o,Xb as er,Xc as dn,Xe as Xn,Yb as Le,Yc as gn,Ye as ar,Za as tn,Zb as qr,_ as Br,_a as rn,_d as Cn,a as P,ae as wn,bb as Hr,bc as fn,be as Tn,bf as Zn,c as Yi,cb as ke,cc as Je,cf as jn,d as Ee,db as Wr,de as En,df as Jn,e as yt,eb as Qi,ef as et,f as Bo,fd as yn,ff as Kn,g as xt,gb as on,gd as me,gf as qn,h as Ir,hb as ge,he as Ln,hf as Mt,i as Uo,ib as be,ie as oa,j as St,jb as Xr,je as ei,k as oe,kd as xn,ke as Mn,l as Hi,ld as Sn,le as na,m as Vo,me as wt,n as J,na as Xo,ne as Rn,oa as Se,oe as sa,p as zr,pe as On,qa as ji,qb as $i,qd as _n,qe as Pn,ra as Jt,rc as pn,sb as At,sc as cn,se as la,t as Go,tc as Qr,te as Dn,ub as nn,ud as ze,ue as ti,vb as sn,vd as rr,ve as ri,w as Ze,wa as Ji,wb as ln,wd as qe,we as Nn,x as Wi,xa as jo,xb as Zr,xd as bn,xe as kn,y as Xi,yb as un,ye as In,z as Zt,za as Ki}from"./zn.GBBMMHHG.js";import{$ as Vi,$a as Pr,$b as Ur,Aa as Or,B as Tr,Ba as mt,Bb as we,C as ae,Ca as Oo,Cb as Xe,Da as We,Db as gt,Eb as Te,Fb as kr,Ga as ht,Ha as Wt,I as wo,Ia as Xt,J as vt,Ja as Po,K as B,Ka as Do,Kb as N,L as Bi,La as No,Na as F,O as Ht,P as To,R as k,Sb as jt,U as T,V as Er,Z as Ui,_a as ko,ac as Zo,bb as Dr,bc as Vr,ca as Eo,db as Nr,eb as Io,fa as Lr,fb as dt,fc as q,g as j,h as V,i as bo,ic as Zi,j as G,jc as en,k as I,ka as re,l as ce,la as Lo,ma as Mo,n as pt,o as Ao,oa as Mr,p as g,q as U,r as wr,s as Oe,t as Co,u as $,ua as Gi,v as X,va as Fi,w as le,wa as ee,x as H,xa as Ro,y as ct,ya as Rr,z as W,za as Pe,zb as zo}from"./zn.J2JOUV3V.js";var fa={left:0,right:0,top:0,bottom:0},or=["25%","25%"],Rt="cartesian2d",Yu=(function(r){P(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var a=$r(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&tr(t.outerBounds,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&tr(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:fa,outerBoundsContain:"all",outerBoundsClampWidth:or[0],outerBoundsClampHeight:or[1],backgroundColor:D.color.transparent,borderWidth:1,borderColor:D.color.neutral30},e})(ve),Qn=Yu;var ai=(function(r){P(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ue).models[0]},e.type="cartesian2dAxis",e})(ve);pt(ai,Tt);var $n={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:D.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:D.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:D.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[D.color.backgroundTint,D.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:D.color.neutral00,borderColor:D.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Hu=V({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},$n),pa=V({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:D.color.axisMinorSplitLine,width:1}}},$n),Wu=V({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},pa),Xu=I({logBase:10},pa),oi={category:Hu,value:pa,time:Wu,log:Xu};var Zu=null;function tt(){return Zu}function Ot(r,e,t,i){g(Dn,function(a,o){var n=V(V({},oi[o],!0),i,!0),s=(function(l){P(f,l);function f(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=e+"Axis."+o,u}return f.prototype.mergeDefaultAndTheme=function(u,p){var c=mn(this),v=c?$r(u):{},m=p.getTheme();V(u,m.get(o+"Axis")),V(u,this.getDefaultOption()),u.type=es(u),c&&tr(u,v,c)},f.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Ln.createByAxisModel(this))},f.prototype.getCategories=function(u){var p=this.option;if(p.type==="category")return u?p.data:this.__ordinalMeta.categories},f.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},f.prototype.updateAxisBreaks=function(u){var p=tt();return p?p.updateModelAxisBreak(this,u):{breaks:[]}},f.type=e+"Axis."+o,f.defaultOption=n,f})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",es)}function es(r){return r.type||(r.data?"category":"value")}var ju=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Oe(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),ts=ju;var nr=["x","y"];function rs(r){return(r.type==="interval"||r.type==="time")&&!Je(r)}var Ju=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Rt,t.dimensions=nr,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!rs(t)||!rs(i))){var a=oa(t,null),o=oa(i,null),n=this.dataToPoint([a[0],o[0]]),s=this.dataToPoint([a[1],o[1]]),l=a[1]-a[0],f=o[1]-o[0];if(!(!l||!f)){var u=(s[0]-n[0])/l,p=(s[1]-n[1])/f,c=n[0]-a[0]*u,v=n[1]-o[0]*p,m=this._transform=[u,0,0,p,c,v];this._invTransform=We([],m)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var a=this.dataToPoint(t),o=this.dataToPoint(i),n=this.getArea(),s=new F(a[0],a[1],o[0]-a[0],o[1]-a[1]);return n.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var o=t[0],n=t[1];if(this._transform&&o!=null&&isFinite(o)&&n!=null&&isFinite(n))return re(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(o,i)),a[1]=l.toGlobalCoord(l.dataToCoord(n,i)),a},e.prototype.clampData=function(t,i){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,n=a.getExtent(),s=o.getExtent(),l=a.parse(t[0]),f=o.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(n[0],n[1]),l),Math.max(n[0],n[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),f),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i,a){if(a=a||[],this._invTransform)return re(a,t,this._invTransform);var o=this.getAxis("x"),n=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(t[0]),i),a[1]=n.coordToData(n.toLocalCoord(t[1]),i),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-t,n=Math.min(a[0],a[1])-t,s=Math.max(i[0],i[1])-o+t,l=Math.max(a[0],a[1])-n+t;return new F(o,n,s,l)},e})(ts),is=Ju;var Ku=(function(r){P(e,r);function e(t,i,a,o,n){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=o||"value",s.position=n||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(Mt),as=Ku;var os=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],qu=1,ni=2,ss=qu|ni;function sr(r,e,t){t=t||ss,e?r.dirty|=t:r.dirty&=~t}function ls(r,e){return e=e||ss,r.dirty==null||!!(r.dirty&e)}function ye(r){if(r)return ls(r)&&Qu(r,r.label,r),r}function Qu(r,e,t){var i=e.getComputedTransform();r.transform=ta(r.transform,i);var a=r.localRect=Qt(r.localRect,e.getBoundingRect()),o=e.style,n=o.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,f=t&&t.marginDefault,u=o.__marginType;u==null&&f&&(n=f,u=er.textMargin);for(var p=0;p<4;p++)ca[p]=u===er.minMargin&&l&&l[p]!=null?l[p]:s&&s[p]!=null?s[p]:n?n[p]:0;u===er.textMargin&&Kt(a,ca,!1,!1);var c=r.rect=Qt(r.rect,a);return i&&c.applyTransform(i),u===er.minMargin&&Kt(c,ca,!1,!1),r.axisAligned=ea(i),(r.label=r.label||{}).ignore=e.ignore,sr(r,!1),sr(r,!0,ni),r}var ca=[0,0,0,0];function us(r,e,t){return r.transform=ta(r.transform,t),r.localRect=Qt(r.localRect,e),r.rect=Qt(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=ea(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function fs(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var i=r.rect;i&&(i.x+=e.x,i.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function va(r,e){for(var t=0;t<os.length;t++){var i=os[t];r[i]==null&&(r[i]=e[i])}return ye(r)}function ns(r){var e=r.obb;return(!e||ls(r,ni))&&(r.obb=e=e||new an,e.fromBoundingRect(r.localRect,r.transform),sr(r,!1,ni)),e}function _v(r,e,t,i,a){var o=r.length,n=ge[e],s=be[e];if(o<2)return!1;r.sort(function(L,A){return L.rect[n]-A.rect[n]});for(var l=0,f,u=!1,p=0,c=0;c<o;c++){var v=r[c],m=v.rect;f=m[n]-l,f<0&&(m[n]-=f,v.label[n]-=f,u=!0);var h=Math.max(-f,0);p+=h,l=m[n]+m[s]}p>0&&a&&b(-p/o,0,o);var d=r[0],y=r[o-1],x,S;_(),x<0&&C(-x,.8),S<0&&C(S,.8),_(),E(x,S,1),E(S,x,-1),_(),x<0&&O(-x),S<0&&O(S);function _(){x=d.rect[n]-t,S=i-y.rect[n]-y.rect[s]}function E(L,A,w){if(L<0){var M=Math.min(A,-L);if(M>0){b(M*w,0,o);var R=M+L;R<0&&C(-R*w,1)}else C(-L*w,1)}}function b(L,A,w){L!==0&&(u=!0);for(var M=A;M<w;M++){var R=r[M],z=R.rect;z[n]+=L,R.label[n]+=L}}function C(L,A){for(var w=[],M=0,R=1;R<o;R++){var z=r[R-1].rect,Y=Math.max(r[R].rect[n]-z[n]-z[s],0);w.push(Y),M+=Y}if(M){var te=Math.min(Math.abs(L)/M,A);if(L>0)for(var R=0;R<o-1;R++){var Q=w[R]*te;b(Q,0,R+1)}else for(var R=o-1;R>0;R--){var Q=w[R-1]*te;b(-Q,R,o)}}}function O(L){var A=L<0?-1:1;L=Math.abs(L);for(var w=Math.ceil(L/(o-1)),M=0;M<o-1;M++)if(A>0?b(w,0,M+1):b(-w,o-M-1,o),L-=w,L<=0)return}return u}function ps(r){var e=[];r.sort(function(f,u){return(u.suggestIgnore?1:0)-(f.suggestIgnore?1:0)||u.priority-f.priority});function t(f){if(!f.ignore){var u=f.ensureState("emphasis");u.ignore==null&&(u.ignore=!1)}f.ignore=!0}for(var i=0;i<r.length;i++){var a=ye(r[i]);if(!a.label.ignore){for(var o=a.label,n=a.labelLine,s=!1,l=0;l<e.length;l++)if(si(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(o),n&&t(n)):e.push(a)}}}function si(r,e,t,i){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,i)?!1:r.axisAligned&&e.axisAligned?!0:ns(r).intersect(ns(e),t,i)}var cs="expandAxisBreak";var Ue=Math.PI,$u=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],ef=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ve=K(),ds=K(),ha=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,a=this.recordMap,o=a[t]||(a[t]=[]);return o[i]||(o[i]={ready:{}})},r})();function tf(r,e,t,i){var a=t.axis,o=e.ensureRecord(t),n=[],s,l=ya(r.axisName)&&Be(r.nameLocation);g(i,function(m){var h=ye(m);if(!(!h||h.label.ignore)){n.push(h);var d=o.transGroup;l&&(d.transform?We(lr,d.transform):Ro(lr),h.transform&&Pe(lr,lr,h.transform),F.copy(li,h.localRect),li.applyTransform(lr),s?s.union(li):F.copy(s=new F(0,0,0,0),li))}});var f=Math.abs(o.dirVec.x)>.1?"x":"y",u=o.transGroup[f];if(n.sort(function(m,h){return Math.abs(m.label[f]-u)-Math.abs(h.label[f]-u)}),l&&s){var p=a.getExtent(),c=Math.min(p[0],p[1]),v=Math.max(p[0],p[1])-c;s.union(new F(c,0,v,1))}o.stOccupiedRect=s,o.labelInfoList=n}var lr=ee(),li=new F(0,0,0,0),da=function(r,e,t,i,a,o){if(Be(r.nameLocation)){var n=o.stOccupiedRect;n&&gs(us({},n,o.transGroup.transform),i,a)}else ga(o.labelInfoList,o.dirVec,i,a)};function gs(r,e,t){var i=new ht;si(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&fs(e,i)}function ga(r,e,t,i){for(var a=ht.dot(i,e)>=0,o=0,n=r.length;o<n;o++){var s=r[a?o:n-1-o];s.label.ignore||gs(s,t,i)}}var rt=(function(){function r(e,t,i,a){this.group=new N,this._axisModel=e,this._api=t,this._local={},this._shared=a||new ha(da),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(e){if(0)var t;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,i=t.getDefaultOption?t.getDefaultOption():{},a=B(e.axisName,t.get("name")),o=t.get("nameMoveOverlap");(o==null||o==="auto")&&(o=B(e.defaultNameMoveOverlap,!0));var n={raw:e,position:e.position,rotation:e.rotation,nameDirection:B(e.nameDirection,1),tickDirection:B(e.tickDirection,1),labelDirection:B(e.labelDirection,1),labelOffset:B(e.labelOffset,0),silent:B(e.silent,!0),axisName:a,nameLocation:Bi(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:ya(a)&&o,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=n;var s=new N({x:n.position[0],y:n.position[1],rotation:n.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ht(Math.cos(-n.rotation),Math.sin(-n.rotation))},r.prototype.build=function(e,t){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),g(rf,function(a){e[a]&&af[a](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var a=Xi(t-e),o,n;return Zt(a)?(n=i>0?"top":"bottom",o="center"):Zt(a-Ue)?(n=i>0?"bottom":"top",o="center"):(n="middle",a>0&&a<Ue?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:n}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),rf=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],af={axisLine:function(r,e,t,i,a,o,n){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var f=i.axis.getExtent(),u=o.transform,p=[f[0],0],c=[f[1],0],v=p[0]>c[0];u&&(re(p,p,u),re(c,c,u));var m=G({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),h={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(i.get(["axisLine","breakLine"])&&Je(i.axis.scale))tt().buildAxisBreakLine(i,a,o,h);else{var d=new _e(G({shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]}},h));At(d.shape,d.style.lineWidth),d.anid="line",a.add(d)}var y=i.get(["axisLine","symbol"]);if(y!=null){var x=i.get(["axisLine","symbolSize"]);W(y)&&(y=[y,y]),(W(x)||Tr(x))&&(x=[x,x]);var S=qe(i.get(["axisLine","symbolOffset"])||0,x),_=x[0],E=x[1];g([{rotate:r.rotation+Math.PI/2,offset:S[0],r:0},{rotate:r.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((p[0]-c[0])*(p[0]-c[0])+(p[1]-c[1])*(p[1]-c[1]))}],function(b,C){if(y[C]!=="none"&&y[C]!=null){var O=ze(y[C],-_/2,-E/2,_,E,m.stroke,!0),L=b.r+b.offset,A=v?c:p;O.attr({rotation:b.rotate,x:A[0]+L*Math.cos(r.rotation),y:A[1]-L*Math.sin(r.rotation),silent:!0,z2:11}),a.add(O)}})}}},axisTickLabelEstimate:function(r,e,t,i,a,o,n,s){if(0)var l;var f=ms(e,a,s);f&&vs(r,e,t,i,a,o,n,et.estimate)},axisTickLabelDetermine:function(r,e,t,i,a,o,n,s){if(0)var l;var f=ms(e,a,s);f&&vs(r,e,t,i,a,o,n,et.determine);var u=lf(r,a,o,i);sf(r,e.labelLayoutList,u),uf(r,a,o,i,r.tickDirection)},axisName:function(r,e,t,i,a,o,n,s){var l=t.ensureRecord(i);if(0)var f;e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(ya(u)){var p=r.nameLocation,c=r.nameDirection,v=i.getModel("nameTextStyle"),m=i.get("nameGap")||0,h=i.axis.getExtent(),d=i.axis.inverse?-1:1,y=new ht(0,0),x=new ht(0,0);p==="start"?(y.x=h[0]-d*m,x.x=-d):p==="end"?(y.x=h[1]+d*m,x.x=d):(y.x=(h[0]+h[1])/2,y.y=r.labelOffset+c*m,x.y=c);var S=ee();x.transform(mt(S,S,r.rotation));var _=i.get("nameRotate");_!=null&&(_=_*Ue/180);var E,b;Be(p)?E=rt.innerTextLayout(r.rotation,_??r.rotation,c):(E=of(r.rotation,p,_||0,h),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(E.rotation)),!isFinite(b)&&(b=null)));var C=v.getFont(),O=i.get("nameTruncate",!0)||{},L=O.ellipsis,A=vt(r.raw.nameTruncateMaxWidth,O.maxWidth,b),w=s.nameMarginLevel||0,M=new Zi({x:y.x,y:y.y,rotation:E.rotation,silent:rt.isLabelSilent(i),style:ra(v,{text:u,font:C,overflow:"truncate",width:A,ellipsis:L,fill:v.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:v.get("align")||E.textAlign,verticalAlign:v.get("verticalAlign")||E.textVerticalAlign}),z2:1});if(qt({el:M,componentModel:i,itemName:u}),M.__fullText=u,M.anid="name",i.get("triggerEvent")){var R=rt.makeAxisEventDataBase(i);R.targetType="axisName",R.name=u,Se(M).eventData=R}o.add(M),M.updateTransform(),e.nameEl=M;var z=l.nameLayout=ye({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:Be(p)?$u[w]:ef[w]});if(l.nameLocation=p,a.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&z){var Y=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,z,x,Y)}}}};function vs(r,e,t,i,a,o,n,s){xs(e)||ff(r,e,a,s,i,n);var l=e.labelLayoutList;pf(r,i,l,o),mf(i,r.rotation,l);var f=r.optionHideOverlap;nf(i,l,f),f&&ps(Oe(l,function(u){return u&&!u.label.ignore})),tf(r,t,i,l)}function of(r,e,t,i){var a=Xi(t-r),o,n,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Zt(a-Ue/2)?(n=l?"bottom":"top",o="center"):Zt(a-Ue*1.5)?(n=l?"top":"bottom",o="center"):(n="middle",a<Ue*1.5&&a>Ue/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:n}}function nf(r,e,t){var i=r.axis,a=r.get(["axisLabel","customValues"]);if(zn(i))return;function o(f,u,p){var c=ye(e[u]),v=ye(e[p]),m=i.scale;if(!(!c||!v)){if(f==null){if(!t&&a)return;var h=Ve(c.label).labelInfo.tick;if(Mn(m)&&h.notNice||wt(m)&&h.offInterval){Pt(c.label);return}}if(f===!1||c.suggestIgnore){Pt(c.label);return}if(v.suggestIgnore){Pt(v.label);return}var d=.1;if(!t){var y=[0,0,0,0];c=va({marginForce:y},c),v=va({marginForce:y},v)}si(c,v,null,{touchThreshold:d})&&Pt(f?v.label:c.label)}}var n=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;o(n,0,1),o(s,l-1,l-2)}function sf(r,e,t){r.showMinorTicks||g(e,function(i){if(i&&i.label.ignore)for(var a=0;a<t.length;a++){var o=t[a],n=ds(o),s=Ve(i.label);if(n.tickValue!=null&&!n.onBand&&n.tickValue===s.labelInfo.tick.value){Pt(o);return}}})}function Pt(r){r&&(r.ignore=!0)}function ys(r,e,t,i,a){for(var o=[],n=[],s=[],l=0;l<r.length;l++){var f=r[l].coord;n[0]=f,n[1]=0,s[0]=f,s[1]=t,e&&(re(n,n,e),re(s,s,e));var u=new _e({shape:{x1:n[0],y1:n[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});At(u.shape,u.style.lineWidth),u.anid=a+"_"+r[l].tickValue,o.push(u);var p=ds(u);p.onBand=!!r[l].onBand,p.tickValue=r[l].tickValue}return o}function lf(r,e,t,i){var a=i.axis,o=i.getModel("axisTick"),n=o.get("show");if(n==="auto"&&(n=!0,r.raw.axisTickAutoShow!=null&&(n=!!r.raw.axisTickAutoShow)),!n||a.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),f=a.getTicksCoords(),u=ys(f,t.transform,l,I(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<u.length;p++)e.add(u[p]);return u}function uf(r,e,t,i,a){var o=i.axis,n=i.getModel("minorTick");if(!(!r.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=n.getModel("lineStyle"),f=a*n.get("length"),u=I(l.getLineStyle(),I(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),p=0;p<s.length;p++)for(var c=ys(s[p],t.transform,f,u,"minorticks_"+p),v=0;v<c.length;v++)e.add(c[v])}}function ms(r,e,t){if(xs(r)){var i=r.axisLabelsCreationContext,a=i.out.noPxChangeTryDetermine;if(t.noPxChange){for(var o=!0,n=0;n<a.length;n++)o=o&&a[n]();if(o)return!1}a.length&&(e.remove(r.labelGroup),ma(r,null,null,null))}return!0}function ff(r,e,t,i,a,o){var n=a.axis,s=vt(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new N;t.add(l);var f=Kn(i);if(!s||n.scale.isBlank()){ma(e,[],l,f);return}var u=a.getModel("axisLabel"),p=n.getViewLabels(f),c=(vt(r.raw.labelRotate,u.get("rotate"))||0)*Ue/180,v=rt.innerTextLayout(r.rotation,c,r.labelDirection),m=a.getCategories&&a.getCategories(!0),h=[],d=a.get("triggerEvent"),y=1/0,x=-1/0;g(p,function(_,E){var b,C=_.tick,O=_.formattedLabel,L=_.rawLabel,A=u,w=ir(n.scale,C);if(m&&m[w]){var M=m[w];ae(M)&&M.textStyle&&(A=new Le(M.textStyle,u,a.ecModel))}var R=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),z=A.getShallow("align",!0)||v.textAlign,Y=B(A.getShallow("alignMinLabel",!0),z),te=B(A.getShallow("alignMaxLabel",!0),z),Q=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,xe=B(A.getShallow("verticalAlignMinLabel",!0),Q),Cr=B(A.getShallow("verticalAlignMaxLabel",!0),Q),Ft=10+(((b=C.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,Ft),x=Math.max(x,Ft);var de=new Zi({x:0,y:0,rotation:0,silent:rt.isLabelSilent(a),z2:Ft,style:ra(A,{text:O,align:E===0?Y:E===p.length-1?te:z,verticalAlign:E===0?xe:E===p.length-1?Cr:Q,fill:ct(R)?R(n.type==="category"?L:n.type==="value"?w+"":w,E):R})});de.anid="label_"+w;var He=Ve(de);if(He.labelInfo=_,He.layoutRotation=v.rotation,qt({el:de,componentModel:a,itemName:O,formatterParamsExtra:{isTruncated:function(){return de.isTruncated},value:L,tickIndex:E}}),d){var ne=rt.makeAxisEventDataBase(a);ne.targetType="axisLabel",ne.value=L,ne.tickIndex=E;var se=_.tick.break;if(se){var Yt=se.parsedBreak;ne.break={start:Yt.vmin,end:Yt.vmax}}n.type==="category"&&(ne.dataIndex=w),Se(de).eventData=ne,se&&vf(a,o,de,se)}h.push(de),l.add(de)});var S=U(h,function(_){return{label:_,priority:Ve(_).labelInfo.tick.break?_.z2+(x-y+1):_.z2,defaultAttr:{ignore:_.ignore}}});ma(e,S,l,f)}function xs(r){return!!r.labelLayoutList}function ma(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function pf(r,e,t,i){var a=e.get(["axisLabel","margin"]);g(t,function(o,n){var s=ye(o);if(s){var l=s.label,f=Ve(l);s.suggestIgnore=l.ignore,l.ignore=!1,Te(Me,cf);var u=e.axis;Me.x=u.dataToCoord(ir(u.scale,f.labelInfo.tick)),Me.y=r.labelOffset+r.labelDirection*a,Me.rotation=f.layoutRotation,i.add(Me),Me.updateTransform(),i.remove(Me),Me.decomposeTransform(),Te(l,Me),l.markRedraw(),sr(s,!0),ye(s)}})}var Me=new q,cf=new q;function ya(r){return!!r}function vf(r,e,t,i){t.on("click",function(a){var o={type:cs,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};o[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(o)})}function mf(r,e,t){var i=fn();if(i){var a=i.retrieveAxisBreakPairs(t,function(n){return n&&Ve(n.label).labelInfo.tick.break},!0),o=r.get(["breakLabelLayout","moveOverlap"],!0);(o===!0||o==="auto")&&g(a,function(n){tt().adjustBreakLabelPair(r.axis.inverse,e,[ye(t[n[0]]),ye(t[n[1]])])})}}var Dt=rt;function Ss(r,e,t){t=t||{};var i=e.axis,a={},o=i.getAxesOnZeroOf()[0],n=i.position,s=o?"onZero":n,l=i.dim,f=[r.x,r.x+r.width,r.y,r.y+r.height],u={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,c=l==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));c[u.onZero]=Math.max(Math.min(v,c[1]),c[0])}a.position=[l==="y"?c[u[s]]:f[0],l==="x"?c[u[s]]:f[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[n],a.labelOffset=o?c[u[n]]-c[u.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),vt(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-h:h,a.z2=1,a}function Zv(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function _s(r){var e={xAxisModel:null,yAxisModel:null};return g(e,function(t,i){var a=i.replace(/Model$/,""),o=r.getReferringComponents(a,ue).models[0];e[i]=o}),e}function bs(r,e,t,i,a,o){for(var n=Ss(r,t),s=!1,l=!1,f=0;f<e.length;f++)ei(e[f].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return n.axisLineAutoShow=s,n.axisTickAutoShow=l,n.defaultNameMoveOverlap=o,new Dt(t,i,n,a)}function As(r,e,t){var i=Ss(e,t);if(0)var a;r.updateCfg(i)}function jv(r){return r.dim+"_"+r.index}function ui(r,e){var t=r.scale,i=r.model,a=Xn(t,i,i.ecModel,r,null),o=na(t),n=na(e)?e.intervalStub:e,s=o?t.intervalStub:t,l=t.base,f=n.getTicks(),u=n.getTicks({expandToNicedExtent:!0}),p=f.length-1,c,v,m;if(p===1)c=v=0,m=1;else if(p===2){var h=yt(f[0].value-f[1].value),d=yt(f[1].value-f[2].value);c=v=0,h===d?m=2:(m=1,h<d?c=h/d:v=d/h)}else{var y=n.getConfig().interval;c=(1-(f[0].value-u[0].value)/y)%1,v=(1-(u[p].value-f[p].value)/y)%1,m=p-(c?1:0)-(v?1:0)}var x=a.zoomFixMM,S=x[0]||x[1],_=[a.fixMM[0]||S,a.fixMM[1]||S],E=t.getExtent(),b=s.getExtent(),C=On(b,_),O,L,A,w,M,R;function z(He){for(var ne=50,se=0;se<ne&&!He();se++)A=o?A*Ee(l,2):Rn(A),w=sa(A)}function Y(){O=J(R-A*c,w)}function te(){L=J(M+A*v,w)}function Q(){R=c?J(O+A*c,w):O}function xe(){M=v?J(L-A*v,w):L}if(_[0]&&_[1]){O=C[0],L=C[1],A=(L-O)/(m+c+v);var Cr=r.getExtent(),Ft=yt(Cr[1]-Cr[0]);w=Go([L,O],Ft,.5/m),Q(),xe(),_t(w)&&(A=J(A,w))}else{var de=C[1]-C[0];A=o?Ee(Fo(de),1):Ho(de/m,Yo),w=sa(A),_[0]?(O=C[0],z(function(){if(Q(),M=J(R+A*m,w),te(),L>=C[1])return!0})):_[1]?(L=C[1],z(function(){if(xe(),R=J(M-A*m,w),Y(),O<=C[0])return!0})):z(function(){R=J(Ir(C[0]/A)*A,w),M=J(xt(C[1]/A)*A,w);var He=Bo((M-R)/A);if(He<=m){var ne=m-He,se=void 0,Yt=a.incl0||o;if(Yt&&C[0]===0)se=[0,ne];else if(Yt&&C[1]===0)se=[ne,0];else{var ft=xt(ne/2);se=ne%2===0?[ft,ft]:O+L<C[0]+C[1]?[ft,ft+1]:[ft+1,ft]}if(R=J(R-A*se[0],w),M=J(M+A*se[1],w),Y(),te(),O<=C[0]&&L>=C[1])return!0}})}Un(t,_,b,[O,L],E,{interval:A,intervalCount:m,intervalPrecision:w,niceExtent:[R,M]})}var Cs=[[3,1],[0,2]],hf=(function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nr,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;g(this._axesList,function(n){Lt(n,Et);var s=n.scale;wt(s)&&s.setSortInfo(n.model.get("categorySortInfo"))});function a(n){for(var s=$(n),l=[],f=s.length-1;f>=0;f--){var u=n[+s[f]];u.__alignTo?l.push(u):ar(u)}g(l,function(p){gf(p,p.__alignTo)?ar(p):ui(p,p.__alignTo.scale)})}a(i.x),a(i.y);var o={};g(i.x,function(n){ws(i,"y",n,o)}),g(i.y,function(n){ws(i,"x",n,o)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=Ie(e,t),o=this._rect=Ke(e.getBoxLayoutParams(),a.refContainer),n=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(xa(n,o),!i){var f=xf(o,s,n,l,t),u=void 0;if(l)Ms?(Ms(this._axesList,o),xa(n,o)):u=Rs(o.clone(),"axisLabel",null,o,n,f,a);else{var p=Sf(e,o,a),c=p.outerBoundsRect,v=p.parsedOuterBoundsContain,m=p.outerBoundsClamp;c&&(u=Rs(c,v,m,o,n,f,a))}Os(o,n,et.determine,null,u,a),g(this._coordsList,function(h){h.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}ae(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===e||o[a].getAxis("y").index===t)return o[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",ue).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",ue).models[0],o=e.gridModel,n=this._coordsList,s,l;if(t)s=t.coordinateSystem,ce(n,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(o){var f=o.coordinateSystem;f===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var a=this,o=this,n={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",f("x"),this),t.eachComponent("yAxis",f("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,g(s.x,function(u,p){g(s.y,function(c,v){var m="x"+p+"y"+v,h=new is(m);h.master=a,h.model=e,a._coordsMap[m]=h,a._coordsList.push(h),h.addAxis(u),h.addAxis(c)})}),Es(s.x),Es(s.y);function f(u){return function(p,c){if(df(p,e)){var v=p.get("position");u==="x"?v!=="top"&&v!=="bottom"&&(v=n.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=n.left?"right":"left"),n[v]=!0;var m=ti(p),h=new as(u,ri(p,m,!0),[0,0],m,v);h.onBand=ii(h.scale,p),h.inverse=p.get("inverse"),p.axis=h,h.model=p,h.grid=o,h.index=c,o._axesList.push(h),s[u][c]=h,l[u]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return g(this.getCartesians(),function(a){var o=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),n=a.getOtherAxis(o);ce(t,o)<0&&t.push(o),ce(i,n)<0&&i.push(n)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(a,o){var n=new r(a,e,t);n.name="grid_"+o,n.resize(a,t,!0),a.coordinateSystem=n,i.push(n),g(n._axesList,function(s){Wn(s,r.dimIdxMap)})}),e.eachSeries(function(a){var o,n;Qr({targetModel:a,coordSysType:Rt,coordSysProvider:s});function s(){var l=_s(a),f=l.xAxisModel,u=l.yAxisModel;o=f.axis,n=u.axis;var p=f.getCoordSysModel(),c=p.coordinateSystem;return c.getCartesian(f.componentIndex,u.componentIndex)}o&&n&&($e(o,a,Rt),$e(n,a,Rt))},this),i},r.dimensions=nr,r.dimIdxMap=wn(nr),r})();function df(r,e){return r.getCoordSysModel()===e}function ws(r,e,t,i){t.getAxesOnZeroOf=function(){return o?[o]:[]};var a=r[e],o,n=t.model,s=n.get(["axisLine","onZero"]),l=n.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Ts(s,a[l])&&(o=a[l]);else for(var f in a)if(T(a,f)&&Ts(s,a[f])&&!i[u(a[f])]){o=a[f];break}o&&(i[u(o)]=!0);function u(p){return p.dim+"_"+p.index}}function Ts(r,e){if(!e)return!1;var t=e.scale,i=Nn(t,0,!1),a=e&&e.type!=="category"&&e.type!=="time"&&i!==kn;return a&&r==="auto"&&In(e)&&(a=!1),a}function Es(r){for(var e=$(r),t,i=[],a=e.length-1;a>=0;a--){var o=r[+e[a]];ei(o.scale)&&Bn(o.model,o.type,!0)==null&&(o.model.get("alignTicks")&&o.model.get("interval")==null?i.push(o):t=o)}t||(t=i.pop()),t&&g(i,function(n){n.__alignTo=t})}function gf(r,e){return Je(r.scale)||Je(e.scale)||e.scale.getTicks().length<2}function yf(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return i-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return i-a+e}}function xa(r,e){g(r.x,function(t){return Ls(t,e.x,e.width)}),g(r.y,function(t){return Ls(t,e.y,e.height)})}function Ls(r,e,t){var i=[0,t],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),yf(r,e)}var Ms;function Rs(r,e,t,i,a,o,n){Os(i,a,et.estimate,e,!1,n);var s=[0,0,0,0];f(0),f(1),u(i,0,NaN),u(i,1,NaN);var l=Co(s,function(c){return c>0})==null;return Kt(i,s,!0,!0,t),xa(a,i),l;function f(c){g(a[ge[c]],function(v){if(Qe(v.model)){var m=o.ensureRecord(v.model),h=m.labelInfoList;if(h)for(var d=0;d<h.length;d++){var y=h[d],x=v.scale.normalize(ir(v.scale,Ve(y.label).labelInfo.tick));x=c===1?1-x:x,u(y.rect,c,x),u(y.rect,1-c,NaN)}var S=m.nameLayout;if(S){var x=Be(m.nameLocation)?.5:NaN;u(S.rect,c,x),u(S.rect,1-c,NaN)}}})}function u(c,v,m){var h=r[ge[v]]-c[ge[v]],d=c[be[v]]+c[ge[v]]-(r[be[v]]+r[ge[v]]);h=p(h,1-m),d=p(d,m);var y=Cs[v][0],x=Cs[v][1];s[y]=Ee(s[y],h),s[x]=Ee(s[x],d)}function p(c,v){return c>0&&!wo(v)&&v>1e-4&&(c/=v),c}}function xf(r,e,t,i,a){var o=new ha(_f);return g(t,function(n){return g(n,function(s){if(Qe(s.model)){var l=!i;s.axisBuilder=bs(r,e,s.model,a,o,l)}})}),o}function Os(r,e,t,i,a,o){var n=t===et.determine;g(e,function(f){return g(f,function(u){Qe(u.model)&&(As(u.axisBuilder,r,u.model),u.axisBuilder.build(n?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(f){s[ge[1-f]]=r[be[f]]<=o.refContainer[be[f]]*.5?0:1-f===1?2:1}g(e,function(f,u){return g(f,function(p){Qe(p.model)&&((i==="all"||n)&&p.axisBuilder.build({axisName:!0},{nameMarginLevel:s[u]}),n&&p.axisBuilder.build({axisLine:!0}))})})}function Sf(r,e,t){var i,a=r.get("outerBoundsMode",!0);a==="same"?i=e.clone():(a==null||a==="auto")&&(i=Ke(r.get("outerBounds",!0)||fa,t.refContainer));var o=r.get("outerBoundsContain",!0),n;o==null||o==="auto"||ce(["all","axisLabel"],o)<0?n="all":n=o;var s=[Hi(B(r.get("outerBoundsClampWidth",!0),or[0]),e.width),Hi(B(r.get("outerBoundsClampHeight",!0),or[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:n,outerBoundsClamp:s}}var _f=function(r,e,t,i,a,o){var n=t.axis.dim==="x"?"y":"x";da(r,e,t,i,a,o),Be(r.nameLocation)||g(e.recordMap[n],function(s){s&&s.labelInfoList&&s.dirVec&&ga(s.labelInfoList,s.dirVec,i,a)})},Ps=hf;function Tm(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return bf(t,r,e),t.seriesInvolved&&Cf(t,r),t}function bf(r,e,t){var i=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),o=a.get("link",!0)||[],n=[];g(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fi(s.model),f=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var u=s.model,p=u.getModel("tooltip",i);if(g(s.getAxes(),le(h,!1,null)),s.getTooltipAxes&&i&&p.get("show")){var c=p.get("trigger")==="axis",v=p.get(["axisPointer","type"])==="cross",m=s.getTooltipAxes(p.get(["axisPointer","axis"]));(c||v)&&g(m.baseAxes,le(h,v?"cross":!0,c)),v&&g(m.otherAxes,le(h,"cross",!1))}function h(d,y,x){var S=x.model.getModel("axisPointer",a),_=S.get("show");if(!(!_||_==="auto"&&!d&&!_a(S))){y==null&&(y=S.get("triggerTooltip")),S=d?Af(x,p,a,e,d,y):S;var E=S.get("snap"),b=S.get("triggerEmphasis"),C=fi(x.model),O=y||E||x.type==="category",L=r.axesInfo[C]={key:C,axis:x,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:b,involveSeries:O,snap:E,useHandle:_a(S),seriesModels:[],linkGroup:null};f[C]=L,r.seriesInvolved=r.seriesInvolved||O;var A=wf(o,x);if(A!=null){var w=n[A]||(n[A]={axesInfo:{}});w.axesInfo[C]=L,w.mapper=o[A].mapper,L.linkGroup=w}}}})}function Af(r,e,t,i,a,o){var n=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};g(s,function(c){l[c]=j(n.get(c))}),l.snap=r.type!=="category"&&!!o,n.get("type")==="cross"&&(l.type="line");var f=l.label||(l.label={});if(f.show==null&&(f.show=!1),a==="cross"){var u=n.get(["label","show"]);if(f.show=u??!0,!o){var p=l.lineStyle=n.get("crossStyle");p&&I(f,p.textStyle)}}return r.model.getModel("axisPointer",new Le(l,t,i))}function Cf(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);!i||!i.model||a==="none"||a===!1||a==="item"||o===!1||t.get(["axisPointer","show"],!0)===!1||g(r.coordSysAxesInfo[fi(i.model)],function(n){var s=n.axis;i.getAxis(s.dim)===s&&(n.seriesModels.push(t),n.seriesDataCount==null&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})}function wf(r,e){for(var t=e.model,i=e.dim,a=0;a<r.length;a++){var o=r[a]||{};if(Sa(o[i+"AxisId"],t.id)||Sa(o[i+"AxisIndex"],t.componentIndex)||Sa(o[i+"AxisName"],t.name))return a}}function Sa(r,e){return r==="all"||H(r)&&ce(r,e)>=0||r===e}function Ds(r){var e=Ns(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,o=t.get("status"),n=t.get("value");n!=null&&(n=i.parse(n));var s=_a(t);o==null&&(a.status=s?"show":"hide");var l=i.getExtent();(n==null||n>l[1])&&(n=l[1]),n<l[0]&&(n=l[0]),a.value=n,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Ns(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fi(r)]}function ks(r){var e=Ns(r);return e&&e.axisPointerModel}function _a(r){return!!r.get(["handle","show"])}function fi(r){return r.type+"||"+r.id}var Is={},Ef=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,o){this.axisPointerClass&&Ds(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,i,a,o){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,i){var a=this._axisPointer;a&&a.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,a){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var n=ks(t);n?(this._axisPointer||(this._axisPointer=new o)).render(t,n,i,a):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){Is[t]=i},e.getAxisPointerClass=function(t){return t&&Is[t]},e.type="axis",e})(me),zs=Ef;var ba=K();function Bs(r,e,t,i){var a=t.axis;if(!a.scale.isBlank()){var o=t.getModel("splitArea"),n=o.getModel("areaStyle"),s=n.get("color"),l=i.coordinateSystem.getRect(),f=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(f.length){var u=s.length,p=ba(r).splitAreaColors,c=k(),v=0;if(p)for(var m=0;m<f.length;m++){var h=p.get(f[m].tickValue);if(h!=null){v=(h+(u-1)*m)%u;break}}var d=a.toGlobalCoord(f[0].coord),y=n.getAreaStyle();s=H(s)?s:[s];for(var m=1;m<f.length;m++){var x=a.toGlobalCoord(f[m].coord),S=void 0,_=void 0,E=void 0,b=void 0;a.isHorizontal()?(S=d,_=l.y,E=x-S,b=l.height,d=S+E):(S=l.x,_=d,E=l.width,b=x-_,d=_+b);var C=f[m-1].tickValue;C!=null&&c.set(C,v),e.add(new q({anid:C!=null?"area_"+C:null,shape:{x:S,y:_,width:E,height:b},style:I({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%u}ba(r).splitAreaColors=c}}}function Us(r){ba(r).splitAreaColors=null}var Lf=["splitArea","splitLine","minorSplitLine","breakArea"],Vs=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,a,o){this.group.removeAll();var n=this._axisGroup;if(this._axisGroup=new N,this.group.add(this._axisGroup),!!Qe(t)){this._axisGroup.add(t.axis.axisBuilder.group),g(Lf,function(l){t.get([l,"show"])&&Mf[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||Zr(n,this._axisGroup,t),r.prototype.render.call(this,t,i,a,o)}},e.prototype.remove=function(){Us(this)},e.type="cartesianAxis",e})(zs),Mf={splitLine:function(r,e,t,i,a){var o=t.axis;if(!o.scale.isBlank()){var n=t.getModel("splitLine"),s=n.getModel("lineStyle"),l=s.get("color"),f=n.get("showMinLine")!==!1,u=n.get("showMaxLine")!==!1;l=H(l)?l:[l];for(var p=i.coordinateSystem.getRect(),c=o.isHorizontal(),v=0,m=o.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),h=[],d=[],y=s.getLineStyle(),x=0;x<m.length;x++){var S=o.toGlobalCoord(m[x].coord);if(!(x===0&&!f||x===m.length-1&&!u)){var _=m[x].tickValue;c?(h[0]=S,h[1]=p.y,d[0]=S,d[1]=p.y+p.height):(h[0]=p.x,h[1]=S,d[0]=p.x+p.width,d[1]=S);var E=v++%l.length,b=new _e({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:I({stroke:l[E]},y),silent:!0});At(b.shape,y.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,i,a){var o=t.axis,n=t.getModel("minorSplitLine"),s=n.getModel("lineStyle"),l=i.coordinateSystem.getRect(),f=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var p=[],c=[],v=s.getLineStyle(),m=0;m<u.length;m++)for(var h=0;h<u[m].length;h++){var d=o.toGlobalCoord(u[m][h].coord);f?(p[0]=d,p[1]=l.y,c[0]=d,c[1]=l.y+l.height):(p[0]=l.x,p[1]=d,c[0]=l.x+l.width,c[1]=d);var y=new _e({anid:"minor_line_"+u[m][h].tickValue,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]},style:v,silent:!0});At(y.shape,v.lineWidth),e.add(y)}},splitArea:function(r,e,t,i,a){Bs(r,e,t,i)},breakArea:function(r,e,t,i,a){var o=tt(),n=t.axis.scale;o&&n.type!=="ordinal"&&o.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),a)}},Aa=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(Vs);var Gs=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Aa.type,t}return e.type="yAxis",e})(Vs);var Rf=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new q({shape:t.coordinateSystem.getRect(),style:I({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(me),Fs={offset:0};function Zm(r){r.registerComponentView(Rf),r.registerComponentModel(Qn),r.registerCoordinateSystem("cartesian2d",Ps),Ot(r,"x",ai,Fs),Ot(r,"y",ai,Fs),r.registerComponentView(Aa),r.registerComponentView(Gs),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var ur=oi.value,Nt="radar",Ca=Nt,Ys=Nt,wa=5;function pi(r,e){return I({show:e},r)}var Of=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),a=this.get("clockwise"),o=this.get("scale"),n=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),f=this.get("axisName"),u=this.get(["axisName","show"]),p=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),v=this.get("triggerEvent"),m=U(this.get("indicator")||[],function(h){h.max!=null&&h.max>0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var d=f;h.color!=null&&(d=I({color:h.color},f));var y=V(j(h),{boundaryGap:t,splitNumber:i,clockwise:a,scale:o,axisLine:n,axisTick:s,axisLabel:l,name:h.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:v},!1);if(W(p)){var x=y.name;y.name=p.replace("{value}",x??"")}else ct(p)&&(y.name=p(y.name,y));var S=new Le(y,null,this.ecModel);return pt(S,Tt.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S.uid=qr("ec_radar"),S},this);this._indicatorModels=m},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=Ca,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:D.color.axisLabel},boundaryGap:[0,0],splitNumber:wa,axisNameGap:15,scale:!1,shape:"polygon",axisLine:V({lineStyle:{color:D.color.neutral20}},ur.axisLine),axisLabel:pi(ur.axisLabel,!1),axisTick:pi(ur.axisTick,!1),splitLine:pi(ur.splitLine,!0),splitArea:pi(ur.splitArea,!0),indicator:[]},e})(ve),Hs=Of;var Pf=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var o=this.group;o.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,i){var a=t.coordinateSystem,o=a.getIndicatorAxes(),n=U(o,function(s){var l=s.model.get("showName")?s.name:"",f=new Dt(s.model,i,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return f});g(n,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var o=t.get("shape"),n=t.getModel("splitLine"),s=t.getModel("splitArea"),l=n.getModel("lineStyle"),f=s.getModel("areaStyle"),u=n.get("show"),p=s.get("show"),c=l.get("color"),v=f.get("color"),m=H(c)?c:[c],h=H(v)?v:[v],d=[],y=[];function x(Y,te,Q){var xe=Q%te.length;return Y[xe]=Y[xe]||[],xe}if(o==="circle")for(var S=a[0].getTicksCoords(),_=i.cx,E=i.cy,b=0;b<S.length;b++){if(u){var C=x(d,m,b);d[C].push(new Yr({shape:{cx:_,cy:E,r:S[b].coord}}))}if(p&&b<S.length-1){var C=x(y,h,b);y[C].push(new Qo({shape:{cx:_,cy:E,r0:S[b].coord,r:S[b+1].coord}}))}}else for(var O,L=U(a,function(Y,te){var Q=Y.getTicksCoords();return O=O==null?Q.length-1:Math.min(Q.length-1,O),U(Q,function(xe){return i.coordToPoint(xe.coord,te)})}),A=[],b=0;b<=O;b++){for(var w=[],M=0;M<a.length;M++)w.push(L[M][b]);if(w[0]&&w.push(w[0].slice()),u){var C=x(d,m,b);d[C].push(new Ne({shape:{points:w}}))}if(p&&A){var C=x(y,h,b-1);y[C].push(new De({shape:{points:w.concat(A)}}))}A=w.slice().reverse()}var R=l.getLineStyle(),z=f.getAreaStyle();g(y,function(Y,te){this.group.add($i(Y,{style:I({stroke:"none",fill:h[te%h.length]},z),silent:!0}))},this),g(d,function(Y,te){this.group.add($i(Y,{style:I({fill:"none",stroke:m[te%m.length]},R),silent:!0}))},this)},e.type="radar",e})(me),Ws=Pf;var Df=(function(r){P(e,r);function e(t,i,a){var o=r.call(this,t,i,a)||this;return o.type="value",o.angle=0,o.name="",o}return e})(Mt),Xs=Df;var Nf=(function(){function r(e,t,i){this.type=Nt,this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(a,o){var n="indicator_"+o,s=new Xs(n,new la);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(n),s},this),this.resize(e,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],a=i.angle,o=this.cx+e*Math.cos(a),n=this.cy-e*Math.sin(a);return[o,n]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=Math.sqrt(t*t+i*i);t/=a,i/=a;for(var o=Math.atan2(-i,t),n=1/0,s,l=-1,f=0;f<this._indicatorAxes.length;f++){var u=this._indicatorAxes[f],p=Math.abs(o-u.angle);p<n&&(s=u,l=f,n=p)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var i=Ie(e,t).refContainer,a=e.get("center"),o=e.get("clockwise")||!1,n=Math.min(i.width,i.height)/2;this.cx=oe(a[0],i.width)+i.x,this.cy=oe(a[1],i.height)+i.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(W(s)||Tr(s))&&(s=[0,s]),this.r0=oe(s[0],n),this.r=oe(s[1],n);var l=o?-1:1;g(this._indicatorAxes,function(f,u){f.setExtent(this.r0,this.r);var p=this.startAngle+l*u*Math.PI*2/this._indicatorAxes.length;p=Math.atan2(Math.sin(p),Math.cos(p)),f.angle=p},this)},r.prototype.update=function(e,t){var i=this._indicatorAxes,a=this._model,o=Pn(a.get("splitNumber"),wa),n=new la;n.setExtent(0,o),n.setConfig({interval:1}),g(i,function(s){Lt(s,Et),ui(s,n)})},r.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var i=[];return e.eachComponent(Ca,function(a){var o=new r(a,e,t);i.push(o),a.coordinateSystem=o}),e.eachSeriesByType(Ys,function(a){if(a.get("coordinateSystem")===Nt){var o=a.coordinateSystem=i[a.get("radarIndex")||0];o&&g(o.getIndicatorAxes(),function(n){$e(n,a,Nt)})}}),i},r.dimensions=[],r})(),js=Nf;function Ah(r){r.registerCoordinateSystem("radar",js),r.registerComponentModel(Hs),r.registerComponentView(Ws),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var it=0,Fe=1,hi=2;var kf="view",If=(function(r){P(e,r);function e(t,i,a){var o=r.call(this)||this;o.type=kf,o.dimensions=["x","y"];var n=o;n.invertY=t,n.lgCt=i,n.lgGeo=a;var s=n.trans=[];return s[it]=Xe(),s[Fe]=Xe(),s[hi]=Xe(),n.mtRaw=ee(),n.mtRawInv=ee(),n.mtOverall=ee(),n.mtOverallInv=ee(),n.zoom=1,o}return e.prototype.getBoundingRect=function(){return zf(null,this)},e.prototype.getViewRect=function(){return cr(null,this)},e.prototype.getRoamTransform=function(){return we(this.trans[Fe])},e.prototype.dataToPoint=function(t,i,a){var o=i?this.mtRaw:this.mtOverall;return a=a||[],o?re(a,t,o):Ui(a,t)},e.prototype.pointToData=function(t,i,a){a=a||[];var o=this.mtOverallInv;return o?re(a,t,o):Ui(a,t)},e.prototype.convertToPixel=function(t,i,a){var o=$s(i);return o===this?o.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var o=$s(i);return o===this?o.pointToData(a):null},e.prototype.containPoint=function(t){var i=this;return Xt(ci,i.dataRect),Do(ci,ci,i.mtOverall),No(ci,t[0],t[1])},e.dimensions=["x","y"],e})(kr),ci=Wt();function kh(r,e){return Rr(r||[],e.mtOverall)}function Ih(r){return r.zoom}function zf(r,e){return Xt(r||Wt(),e.dataRect)}function cr(r,e){return Xt(r||Wt(),e.viewRect)}function pr(r,e,t){return Te(r||Xe(),e.trans[t])}function Ma(r){return!!(r.dataRect&&r.viewRect)}function Bf(r,e,t,i){i===Fe?rl(r,e.trans[it],t):Te(r,t)}function Js(r,e,t){we(t,vi),Pe(vi,vi,e.mtRawInv),Kr(r,vi)}var vi=ee();function vr(r,e){var t=r;t.centerOption=e.getShallow("center");var i=t.zoomLimit=e.getShallow("scaleLimit"),a=e.getShallow("zoom");t.zoom=ol(a||1,i)||1,Ma(t)&&Ra(t)}function kt(r,e,t,i,a){var o=r;o.dataRect=new F(e,t,i,a),Ma(o)&&Ra(o)}function mr(r,e,t,i,a){var o=r;o.viewRect=new F(e,t,i,a),Ma(o)&&Ra(o)}function Ra(r){Uf(r),Gf(r),Ff(r)}function Uf(r){var e=r.dataRect,t=r.viewRect,i=r.trans[it],a=r.invertY;a&&(e=Xt(Vf,e),e.y=-e.y-e.height),Po(Ks,e,t),Kr(i,Ks),a&&(i.scaleY=-i.scaleY);var o=we(i,r.mtRaw);We(r.mtRawInv,o)}var Ks=ee(),Vf=Wt();function Gf(r){var e=il(r),t=Wf(Ta,r,r.centerOption)?re(Ta,Ta,r.mtRaw):e,i=r.zoom,a=r.trans[Fe];a.x=e[0]-i*t[0],a.y=e[1]-i*t[1],a.scaleX=a.scaleY=i}var Ta=[];function Ff(r){var e=r.trans,t=e[Fe],i=e[it],a=e[hi];rl(a,i,t);var o=we(a,r.mtOverall),n=We(r.mtOverallInv,o);qs(r,a,o,n),qs(r.lgGeo,a,o,n)}function qs(r,e,t,i){r&&(Te(r,e),Rr(r.transform||(r.transform=[]),t),Rr(r.invTransform||(r.invTransform=[]),i))}function rl(r,e,t){we(e,Qs),we(t,mi),Pe(mi,mi,Qs),Kr(r,mi)}var Qs=ee(),mi=ee();function $s(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function il(r){var e=r.viewRect;return Ea[0]=e.x+e.width/2,Ea[1]=e.y+e.height/2,Ea}var Ea=[];function zh(r){return r&&r.type==="view"}function Oa(r,e,t,i){var a=t;a.syncBackEl=r,a.syncBackType=e,i?ke(r,pr(null,t,e),i):(pr(r,t,e),r.dirty())}function Yf(r,e,t,i){var a=r,o=a.syncBackEl;o?(o.stopAnimation(),Bf(Ge,a,o,a.syncBackType)):Te(Ge,a.trans[hi]),Js(La,a,Ge),i?Hf(Ge,La,a,i):Te(Ge,La),Js(Ge,a,Ge),Zf(a,e,t,Ge)}var Ge=Xe(),La=Xe();function di(r,e,t){var i=Pa(e);i&&(Yf(i,e,t,r),vr(i,e))}function Pa(r){return r.__ownRoamView?r.__ownRoamView():null}function gi(r,e,t,i){t.setUpdatePayload(Jr(r));var a=jo(i,e);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,e,i)}function Hf(r,e,t,i){i.dx!=null&&i.dy!=null&&(r.x+=i.dx,r.y+=i.dy);var a=i.zoom;if(a!=null){var o=al(e),n=ol(o*a,t.zoomLimit),s=n/o;r.x-=(i.originX-r.x)*(s-1),r.y-=(i.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function al(r){return r.scaleX}function Wf(r,e,t){var i=e.dataRect;if(!t)return!1;var a=e.lgCt;return a?Vi(r,oe(t[0],a.w),oe(t[1],a.h)):i&&Vi(r,oe(t[0],i.width,i.x),oe(t[1],i.height,i.y)),!0}function Xf(r,e){var t=r.centerOption,i=r.dataRect;return!t||r.lgCt?e.slice():[el(0,e,t,i),el(1,e,t,i)]}function el(r,e,t,i){return t&&i&&i[be[r]]&&Vo(t[r])?(e[r]-i[ge[r]])/i[be[r]]*100+"%":e[r]}function yi(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function Zf(r,e,t,i){var a=il(r),o=al(i),n=yt(o)>1e-6;fr[0]=n?(a[0]-i.x)/o:a[0],fr[1]=n?(a[1]-i.y)/o:a[1],re(fr,fr,r.mtRawInv);var s=Xf(r,fr);tl(e,s,o),g(t,function(l){l!==e&&tl(l,s.slice(),o)})}var fr=[];function tl(r,e,t){var i=r.option;i.center=e,i.zoom=t}function ol(r,e){if(e){var t=e.min||0,i=e.max||1/0;r=Math.max(Math.min(i,r),t)}return r}function Bh(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,i=r;return((i.zoom-1)*t+1)/(i.trans[hi].scaleX||1)}var xi=If;function Si(r){if(W(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Da,_i={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},nl=$(_i),bi={"alignment-baseline":"textBaseline","stop-color":"stopColor"},sl=$(bi),Jf=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=Si(e);this._defsUsePending=[];var a=new N;this._root=a;var o=[],n=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),pe(i,a,null,!0,!1);for(var f=i.firstChild;f;)this._parseNode(f,a,o,null,!1,!1),f=f.nextSibling;Qf(this._defs,this._defsUsePending),this._defsUsePending=[];var u,p;if(n){var c=Ai(n);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&s!=null&&l!=null&&(p=ka(u,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new N,a.add(v),v.scaleX=v.scaleY=p.scale,v.x=p.x,v.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new q({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:u,viewBoxTransform:p,named:o}},r.prototype._parseNode=function(e,t,i,a,o,n){var s=e.nodeName.toLowerCase(),l,f=a;if(s==="defs"&&(o=!0),s==="text"&&(n=!0),s==="defs"||s==="switch")l=t;else{if(!o){var u=Da[s];if(u&&T(Da,s)){l=u.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(f=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=ll[s];if(v&&T(ll,s)){var m=v.call(this,e),h=e.getAttribute("id");h&&(this._defs[h]=m)}}if(l&&l.isGroup)for(var d=e.firstChild;d;)d.nodeType===1?this._parseNode(d,l,i,f,o,n):d.nodeType===3&&n&&this._parseText(d,l),d=d.nextSibling},r.prototype._parseText=function(e,t){var i=new Zo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});he(t,i),pe(e,i,this._defsUsePending,!1,!1),Kf(i,t);var a=i.style,o=a.fontSize;o&&o<9&&(a.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var n=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=n;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=(function(){Da={g:function(e,t){var i=new N;return he(t,i),pe(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new q;return he(t,i),pe(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new Yr;return he(t,i),pe(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new _e;return he(t,i),pe(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new qo;return he(t,i),pe(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=pl(i));var o=new De({shape:{points:a||[]},silent:!0});return he(t,o),pe(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=pl(i));var o=new Ne({shape:{points:a||[]},silent:!0});return he(t,o),pe(e,o,this._defsUsePending,!1,!1),o},image:function(e,t){var i=new Vr;return he(t,i),pe(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",n=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(a)+parseFloat(n);var s=new N;return he(t,s),pe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var o=e.getAttribute("dx")||"0",n=e.getAttribute("dy")||"0",s=new N;return he(t,s),pe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(n),s},path:function(e,t){var i=e.getAttribute("d")||"",a=Ko(i);return he(t,a),pe(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),ll={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),o=new tn(e,t,i,a);return ul(r,o),fl(r,o),o},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new rn(e,t,i);return ul(r,a),fl(r,a),a}};function ul(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function fl(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var o={};ml(t,o,o);var n=o.stopColor||t.getAttribute("stop-color")||"#000000",s=o.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Pr(n),f=l&&l[3];f&&(l[3]*=ko(s),n=dt(l,"rgba"))}e.colorStops.push({offset:a,color:n})}t=t.nextSibling}}function he(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),I(e.__inheritedStyle,r.__inheritedStyle))}function pl(r){for(var e=Ai(r),t=[],i=0;i<e.length;i+=2){var a=parseFloat(e[i]),o=parseFloat(e[i+1]);t.push([a,o])}return t}function pe(r,e,t,i,a){var o=e,n=o.__inheritedStyle=o.__inheritedStyle||{},s={};r.nodeType===1&&(tp(r,e),ml(r,n,s),i||rp(r,n,s)),o.style=o.style||{},n.fill!=null&&(o.style.fill=cl(o,"fill",n.fill,t)),n.stroke!=null&&(o.style.stroke=cl(o,"stroke",n.stroke,t)),g(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){n[l]!=null&&(o.style[l]=parseFloat(n[l]))}),g(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){n[l]!=null&&(o.style[l]=n[l])}),a&&(o.__selfStyle=s),n.lineDash&&(o.style.lineDash=U(Ai(n.lineDash),function(l){return parseFloat(l)})),(n.visibility==="hidden"||n.visibility==="collapse")&&(o.invisible=!0),n.display==="none"&&(o.ignore=!0)}function Kf(r,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,a=i;!i||i==="auto"||i==="baseline"?a="alphabetic":i==="before-edge"||i==="text-before-edge"?a="top":i==="after-edge"||i==="text-after-edge"?a="bottom":(i==="central"||i==="mathematical")&&(a="middle"),r.style.textBaseline=a}var o=e.__inheritedStyle;if(o){var n=o.textAlign,s=n;n&&(n==="middle"&&(s="center"),r.style.textAlign=s)}}var qf=/^url\(\s*#(.*?)\)/;function cl(r,e,t,i){var a=t&&t.match(qf);if(a){var o=To(a[1]);i.push([r,e,o]);return}return t==="none"&&(t=null),t}function Qf(r,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=r[i[2]]}}var $f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ai(r){return r.match($f)||[]}var ep=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Na=Math.PI/180;function tp(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],a=null;t.replace(ep,function(p,c,v){return i.push(c,v),""});for(var o=i.length-1;o>0;o-=2){var n=i[o],s=i[o-1],l=Ai(n);switch(a=a||ee(),s){case"translate":Or(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Oo(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":mt(a,a,-parseFloat(l[0])*Na,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var f=Math.tan(parseFloat(l[0])*Na);Pe(a,[1,0,f,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Na);Pe(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var vl=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ml(r,e,t){var i=r.getAttribute("style");if(i){vl.lastIndex=0;for(var a;(a=vl.exec(i))!=null;){var o=a[1],n=T(_i,o)?_i[o]:null;n&&(e[n]=a[2]);var s=T(bi,o)?bi[o]:null;s&&(t[s]=a[2])}}}function rp(r,e,t){for(var i=0;i<nl.length;i++){var a=nl[i],o=r.getAttribute(a);o!=null&&(e[_i[a]]=o)}for(var i=0;i<sl.length;i++){var a=sl[i],o=r.getAttribute(a);o!=null&&(t[bi[a]]=o)}}function ka(r,e){var t=e.width/r.width,i=e.height/r.height,a=Math.min(t,i);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function hl(r,e){var t=new Jf;return t.parse(r,e)}var ip=k(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),dl=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=k(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Si(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=op(e.named),i=t.regions,a=t.regionsMap;this._regions=i,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,i;try{t=e&&hl(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,Ht(i!=null)}catch(d){throw new Error(`Invalid svg format
|
|
2
|
+
`+d.message)}var a=new N;a.add(i),a.isGeoSVGGraphicRoot=!0;var o=t.width,n=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var f=void 0,u=void 0,p=void 0,c=void 0;if(o!=null?(f=0,p=o):s&&(f=s.x,p=s.width),n!=null?(u=0,c=n):s&&(u=s.y,c=s.height),f==null||u==null){var v=i.getBoundingRect();f==null&&(f=v.x,p=v.width),u==null&&(u=v.y,c=v.height)}l=this._boundingRect=new F(f,u,p,c)}if(s){var m=ka(s,l);i.scaleX=i.scaleY=m.scale,i.x=m.x,i.y=m.y}a.setClipPath(new q({shape:l.plain()}));var h=[];return g(t.named,function(d){ip.get(d.svgNodeTagLower)!=null&&(h.push(d),ap(d.el))}),{root:a,boundingRect:l,named:h}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},r})();function ap(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function op(r){var e=[],t=k();return g(r,function(i){if(i.namedFrom==null){var a=new jn(i.name,i.el);e.push(a),t.set(i.name,a)}}),{regions:e,regionsMap:t}}var Ia=[126,25],gl="\u5357\u6D77\u8BF8\u5C9B",ot=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(Ye=0;Ye<ot.length;Ye++)for(at=0;at<ot[Ye].length;at++)ot[Ye][at][0]/=10.5,ot[Ye][at][1]/=-10.5/.75,ot[Ye][at][0]+=Ia[0],ot[Ye][at][1]+=Ia[1];var at,Ye;function za(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===gl)return;e.push(new Zn(gl,U(ot,function(i){return{type:"polygon",exterior:i}}),Ia))}}var np={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function Ba(r,e){if(r==="china"){var t=np[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var sp=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Ua(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:sp[0]})}var lp="name",yl=(function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=k(),this._mapName=e,this._specialAreas=i,this._geoJSON=fp(t)}return r.prototype.load=function(e,t){t=t||lp;var i=this._parsedMap.get(t);if(!i){var a=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:a,boundingRect:up(a)})}var o=k(),n=[];return g(i.regions,function(s){var l=s.name;e&&T(e,l)&&(s=s.cloneShallow(l=e[l])),n.push(s),o.set(l,s)}),{regions:n,boundingRect:i.boundingRect||new F(0,0,0,0),regionsMap:o}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,a;try{a=i?Jn(i,e):[]}catch(o){throw new Error(`Invalid geoJson format
|
|
3
|
+
`+o.message)}return za(t,a),g(a,function(o){var n=o.name;Ba(t,o),Ua(t,o);var s=this._specialAreas&&this._specialAreas[n];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function up(r){for(var e,t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function fp(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var hr=k(),ie={registerMap:function(r,e,t){if(e.svg){var i=new dl(r,e.svg);hr.set(r,i)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var i=new yl(r,a,t);hr.set(r,i)}},getGeoResource:function(r){return hr.get(r)},getMapForUser:function(r){var e=hr.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=hr.get(r);if(i)return i.load(e,t)}};var pp={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Va=["lng","lat"],cp=(function(r){P(e,r);function e(t,i,a){var o=r.call(this)||this;o.dimensions=Va,o.type="geo",o._nameCoordMap=k(),o.name=t;var n=a.projection,s=ie.load(i,a.nameMap,a.nameProperty),l=ie.getGeoResource(i),f=o.resourceType=l?l.type:null,u=o.regions=s.regions,p=pp[l.type];o._clip=a.clip;var c=n?!1:p.invertLongitute;o.view=new xi(c,yi(a.ecModel,a.api),o),o.map=i,o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=n;var v;if(n)for(var m=0;m<u.length;m++){var h=u[m].getBoundingRect(n);v=v||h.clone(),v.union(h)}else v=s.boundingRect;return kt(o.view,v.x,v.y,v.width,v.height),o.aspectScale=n?1:B(a.aspectScale,p.aspectScale),o}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,a=0;a<i.length;a++){var o=i[a];if(o.type==="geoJSON"&&o.contain(t))return i[a]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,a){if(W(t)&&(t=this.getGeoCoord(t)),t){var o=this.projection;return o&&(t=o.project(t)),t&&this.view.dataToPoint(t,i,a)}},e.prototype.pointToData=function(t,i,a){var o=this.projection;return o&&(t=o.unproject(t)),t&&this.view.pointToData(t,a)},e.prototype.convertToPixel=function(t,i,a){var o=xl(i);return o===this?o.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var o=xl(i);return o===this?o.pointToData(a):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var i=cr(null,this.view);return i.x-=t,i.y-=t,i.width+=2*t,i.height+=2*t,i},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(kr);function xl(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ue).models[0]||{}).coordinateSystem:null}var Ga=cp;function Fa(r,e,t){e=H(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=En(i,e).dimensions,o=new Tn(a,r);return o.initData(i,t),o}var Ci="map",vp=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(i){if(i!=null){var a=this.getData().getName(i),o=this.coordinateSystem,n=o.getRegion(a);return n&&o.dataToPoint(n.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=Fa(this,{coordDimensions:["value"],encodeDefaulter:le(hn,this)}),a=k(),o=[],n=0,s=i.count();n<s;n++){var l=i.getName(n);a.set(l,n)}var f=ie.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return g(f.regions,function(u){var p=u.name,c=a.get(p),v=u.properties&&u.properties.echartsStyle,m;c==null?(m={name:p},o.push(m)):m=i.getRawDataItem(c),v&&V(m,v)}),i.appendData(o),i},e.prototype.getHostGeoModel=function(){if(cn(this).kind!==pn)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,a){var o=this.getData(),n=this.getRawValue(t),s=o.getName(t),l=[];return g(this.seriesGroup.f,function(f){var u=f.originalData.indexOfName(s),p=o.mapDimension("value");isNaN(f.originalData.get(p,u))||l.push(f.name)}),aa("section",{header:l.join(", "),noHeader:!l.length,blocks:[aa("nameValue",{name:s,value:n})]})},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",a=ze(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",i.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=D.color.neutral00,a.style.lineWidth=2),a},e.prototype.__ownRoamView=function(){return Ya(this)?this.coordinateSystem.view:null},e.type="series."+Ci,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:D.color.tertiary},itemStyle:{borderWidth:.5,borderColor:D.color.border,areaColor:D.color.background},emphasis:{label:{show:!0,color:D.color.primary},itemStyle:{areaColor:D.color.highlight}},select:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},nameProperty:"name"},e})(yn);function Sl(r){return r.indexOf("i")===0}function Ya(r){return mp(r.seriesGroup)===r&&!r.getHostGeoModel()}function mp(r){return r.f[0]}function _l(r,e){var t={};return r.eachRawSeriesByType(Ci,function(i){var a=i.getHostGeoModel(),o=a?"o"+a.id:"i"+i.getMapType(),n=t[o]=t[o]||{f:[],r:[]};!r.isSeriesFiltered(i)&&!e&&n.f.push(i),n.r.push(i)}),t}var Wd=vp;function bl(r,e){var t=this.view,i=r.get("boundingCoords");if(i!=null){var a=i[0],o=i[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(o[0])&&isFinite(o[1])){var n=this.projection;if(n){var s=a[0],l=a[1],f=o[0],u=o[1];a=[1/0,1/0],o=[-1/0,-1/0];var p=function(b,C,O,L){for(var A=O-b,w=L-C,M=0;M<=100;M++){var R=M/100,z=n.project([b+A*R,C+w*R]);Lo(a,a,z),Mo(o,o,z)}};p(s,l,f,l),p(f,l,f,u),p(f,u,s,u),p(s,u,f,l)}kt(t,a[0],a[1],o[0]-a[0],o[1]-a[1])}}var c=t.getBoundingRect(),v=r.get("layoutCenter"),m=r.get("layoutSize"),h=Ie(r,e).refContainer,d=c.width/c.height*this.aspectScale,y=!1,x,S;v&&m&&(x=[oe(v[0],h.width)+h.x,oe(v[1],h.height)+h.y],S=oe(m,Math.min(h.width,h.height)),!isNaN(x[0])&&!isNaN(x[1])&&!isNaN(S)&&(y=!0));var _;if(y)_={},d>1?(_.width=S,_.height=S/d):(_.height=S,_.width=S*d),_.y=x[1]-_.height/2,_.x=x[0]-_.width/2;else{var E=r.getBoxLayoutParams();E.aspect=d,_=Ke(E,h),_=vn(r,_,d)}mr(t,_.x,_.y,_.width,_.height),vr(t,r)}function dp(r,e){g(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var gp=(function(){function r(){this.dimensions=Va}return r.prototype.create=function(e,t){var i=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection"),clip:o.getShallow("clip",!0)}}return e.eachComponent("geo",function(o,n){var s=o.get("map"),l=new Ga(s+n,s,G({nameMap:o.get("nameMap"),api:t,ecModel:e},a(o)));i.push(l),o.coordinateSystem=l,l.model=o,l.resize=bl,l.resize(o,t)}),e.eachSeries(function(o){Qr({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var n=o.subType===Ci?o.getHostGeoModel():o.getReferringComponents("geo",ue).models[0];return n&&n.coordinateSystem},allowNotFound:!0})}),g(_l(e,!0),function(o,n){if(Sl(n)){var s=o.r[0],l=[];g(o.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var f=n.slice(1),u=new Ga(f,f,G({nameMap:bo(l),api:t,ecModel:e},a(s))),p;g(o.r,function(c){p=B(p,c.get("scaleLimit"))}),i.push(u),u.resize=bl,u.resize(s,t),g(o.r,function(c){c.coordinateSystem=u,dp(u,c)})}}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var o=(e||[]).slice(),n=k(),s=0;s<o.length;s++)n.set(o[s].name,o[s]);var l=ie.load(t,i,a);return g(l.regions,function(f){var u=f.name,p=n.get(u),c=f.properties&&f.properties.echartsStyle;p||(p={name:u},o.push(p)),c&&V(p,c)}),o},r})(),yp=new gp,wi=yp;var Sp=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a);var o=ie.getGeoResource(t.map);if(o&&o.type==="geoJSON"){var n=t.itemStyle=t.itemStyle||{};"color"in n||(n.color=t.defaultItemStyleColor||D.color.backgroundTint)}Wo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=wi.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var a={};this._optionModelMap=wr(i.regions||[],function(o,n){var s=n.name;return s&&(o.set(s,new Le(n,t,t.ecModel)),n.selected&&(a[s]=!0)),o},k()),i.selectedMap||(i.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Le(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var a=this.getRegionModel(t),o=i==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),n={name:t};if(ct(o))return n.status=i,o(n);if(W(o))return o.replace("{a}",t??"")},e.prototype.select=function(t){var i=this.option,a=i.selectedMode;if(a){a!=="multiple"&&(i.selectedMap=null);var o=i.selectedMap||(i.selectedMap={});o[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:D.color.tertiary},itemStyle:{borderWidth:.5,borderColor:D.color.border},emphasis:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},select:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},regions:[]},e})(ve),Cl=Sp;var Ha=K();function wl(r,e,t){Ha(r)[e]=t}function Tl(r,e,t){var i=Ha(r),a=i[e];a===t&&(i[e]=null)}function Wa(r,e){return!!Ha(r)[e]}An({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Er);var _p={axisPointer:1,tooltip:1,brush:1};function Ti(r,e,t){var i=e.getComponentByElement(r.topTarget);if(!i||i===t||_p.hasOwnProperty(i.mainType))return!1;var a=i.coordinateSystem;if(!a||a.model===t)return!1;var o=$t(i),n=$t(t);return!((o.zlevel-n.zlevel||o.z-n.z)<=0)}var bp=(function(r){P(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var a=X(i._mousedownHandler,i),o=X(i._mousemoveHandler,i),n=X(i._mouseupHandler,i),s=X(i._mousewheelHandler,i),l=X(i._pinchHandler,i);return i.enable=function(f,u){var p=u.zInfo,c=$t(p.component),v=c.z,m=c.zlevel,h={component:p.component,z:v,zlevel:m,z2:B(p.z2,-1/0)},d=G({},u.triggerInfo);this._opt=I(G({},u),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:h,triggerInfo:d,cursorGrab:"grab",cursorGrabbing:"grabbing"}),f==null&&(f=!0),(!this._enabled||this._controlType!==f)&&(this.disable(),this._enabled=!0,(f===!0||f==="move"||f==="pan")&&(gr(t,"mousedown",a,h),gr(t,"mousemove",o,h),gr(t,"mouseup",n,h)),(f===!0||f==="scale"||f==="zoom")&&(gr(t,"mousewheel",s,h),gr(t,"pinch",l,h)))},i.disable=function(){this._enabled&&(this._enabled=!1,yr(t,"mousedown",a),yr(t,"mousemove",o),yr(t,"mouseup",n),yr(t,"mousewheel",s),yr(t,"pinch",l))},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,i,a){var o=this._opt,n=o.zInfoParsed;if(Ti(t,o.api,n.component))return!1;var s=o.triggerInfo,l=s.roamTrigger,f=!1;return l==="global"&&(f=!0),f||(f=s.isInSelf(t,i,a)),f&&s.isInClip&&!s.isInClip(t,i,a)&&(f=!1),f},e.prototype._decideCursorStyle=function(t,i,a,o){var n=t.target;if(!n&&this._checkPointer(t,i,a))return this._opt.cursorGrab;if(o)return n&&n.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(Fi(t)||dr(t))){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var a=t.offsetX,o=t.offsetY;this._checkPointer(t,a,o)&&(this._x=a,this._y=o,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var i=this._zr;if(!(t.gestureEvent==="pinch"||Wa(i,"globalPan")||dr(t))){var a=t.offsetX,o=t.offsetY;if(!this._dragging||!Ei("moveOnMouseMove",t,this._opt)){var n=this._decideCursorStyle(t,a,o,!1);n&&i.setCursorStyle(n);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,f=a-s,u=o-l;this._x=a,this._y=o,this._opt.preventDefaultMouseMove&&Gi(t.event),t.__ecRoamConsumed=!0,Ll(this,"pan","moveOnMouseMove",t,{dx:f,dy:u,oldX:s,oldY:l,newX:a,newY:o,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!dr(t)){var i=this._zr;if(!Fi(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&i.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!dr(t)){var i=Ei("zoomOnMouseWheel",t,this._opt),a=Ei("moveOnMouseWheel",t,this._opt),o=t.wheelDelta,n=Math.abs(o),s=t.offsetX,l=t.offsetY;if(!(o===0||!i&&!a)){if(i){var f=n>3?1.4:n>1?1.2:1.1,u=o>0?f:1/f;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:u,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(o),c=(o>0?1:-1)*(p>3?.4:p>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Wa(this._zr,"globalPan")||dr(t))){var i=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,i,a,o,n){t._checkPointer(o,n.originX,n.originY)&&(Gi(o.event),o.__ecRoamConsumed=!0,Ll(t,i,a,o,n))},e})(Mr);function dr(r){return r.__ecRoamConsumed}var Ap=K();function Li(r){var e=Ap(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function gr(r,e,t,i){for(var a=Li(r),o=a.roam,n=o[e]=o[e]||[],s=0;s<n.length;s++){var l=n[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}n.splice(s,0,{listener:t,zInfoParsed:i}),Cp(r,e)}function yr(r,e,t){for(var i=Li(r),a=i.roam[e]||[],o=0;o<a.length;o++)if(a[o].listener===t){a.splice(o,1),a.length||wp(r,e);return}}function Cp(r,e){var t=Li(r);t.uniform[e]||r.on(e,t.uniform[e]=function(i){var a=t.roam[e];if(a)for(var o=0;o<a.length;o++)a[o].listener(i)})}function wp(r,e){var t=Li(r),i=t.uniform;i[e]&&(r.off(e,i[e]),i[e]=null)}function Ll(r,e,t,i,a){a.isAvailableBehavior=X(Ei,null,t,i),r.trigger(e,a)}function Ei(r,e,t){var i=t[r];return!r||i&&(!W(i)||e.event[i+"Key"])}var Ml=bp;function Rl(r,e,t,i,a,o,n,s){var l=Pa(r);if(!l){t.disable();return}t.enable(B(r.get("roam"),n),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:i,isInClip:function(u,p,c){return!a||a.contain(p,c)}}});function f(u){var p=r.mainType,c=Jr(I({type:Ol(p,r.subType,Ji)},u));s&&(c.componentType=p),c[p+"Id"]=r.id,e.dispatchAction(c)}t.off("pan").off("zoom").on("pan",function(u){o&&o("pan"),f({dx:u.dx,dy:u.dy})}).on("zoom",function(u){o&&o("zoom"),f({zoom:u.scale,originX:u.originX,originY:u.originY})})}function wg(r){return function(e,t,i){return Xa.copy(r.getBoundingRect()),Xa.applyTransform(r.getComputedTransform()),Xa.contain(t,i)}}var Xa=new F(0,0,0,0);function Tg(r,e,t){var i=Ol(e,t,Ji);r.registerAction({type:i,event:i,update:"none"},function(a,o,n){o.eachComponent(Br(a,e,t),function(s){di(a,s),gi(a,s,o,n)})})}function Ol(r,e,t){return(r!==Jt?r:e==="map"?"geo":e)+t}function Eg(r){return r.zoom!=null}function Lg(r,e,t,i,a,o,n){var s=new xi(null,yi(r.ecModel,e));return kt(s,t,i,a,o),n?mr(s,n.x,n.y,n.width,n.height):mr(s,t,i,a,o),vr(s,r),s}var Za=["rect","circle","line","ellipse","polygon","polyline","path"],Tp=k(Za),Ep=k(Za.concat(["g"])),Lp=k(Za.concat(["g"])),Ul=K();function Mi(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Pl(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Mp=(function(){function r(e){var t=this.group=new N,i=this._transformGroup=new N;t.add(i),this.uid=qr("ec_map_draw"),this._controller=new Ml(e.getZr()),i.add(this._regionsGroup=new N),i.add(this._svgGroup=new N)}return r.prototype.draw=function(e,t,i,a,o){var n=this,s=e.getData&&e.getData();It(e)&&t.eachComponent({mainType:"series",subType:"map"},function(h){!s&&h.getHostGeoModel()===e&&(s=h.getData())});var l=e.coordinateSystem,f=l.view,u=this._regionsGroup,p=this._transformGroup,c=!u.childAt(0)||o,v;l.shouldClip()?(v=cr(null,f),this.group.setClipPath(new q({shape:v.clone()}))):this.group.removeClipPath(),Oa(p,Fe,f,c?null:e);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(f,i,l,e,s,m):l.resourceType==="geoSVG"&&this._buildSVG(f,i,l,e,s,m),Rl(e,i,this._controller,function(h,d,y){return e.coordinateSystem.containPoint([d,y])},v,function(){n._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,u,i,a)},r.prototype.__updateOnOwnRoam=function(e){Oa(this._transformGroup,Fe,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,i,a,o,n){var s=this._regionsGroupByName=k(),l=k(),f=this._regionsGroup,u=i.projection,p=u&&u.stream,c=we(pr(null,e,it));function v(d,y){return y&&(d=y(d)),d&&re([],d,c)}function m(d){for(var y=[],x=!p&&u&&u.project,S=0;S<d.length;++S){var _=v(d[S],x);_&&y.push(_)}return y}function h(d){return{shape:{points:m(d)}}}f.removeAll(),g(i.regions,function(d){var y=d.name,x=s.get(y),S=l.get(y)||{},_=S.dataIdx,E=S.regionModel;if(!x){x=s.set(y,new N),f.add(x),_=o?o.indexOfName(y):null,E=It(a)?a.getRegionModel(y):o?o.getItemModel(_):null;var b=E.get("silent",!0);b!=null&&(x.silent=b),l.set(y,{dataIdx:_,regionModel:E})}var C=[],O=[];g(d.geometries,function(w){if(w.type==="polygon"){var M=[w.exterior].concat(w.interiors||[]);p&&(M=Bl(M,p)),g(M,function(z){C.push(new De(h(z)))})}else{var R=w.points;p&&(R=Bl(R,p,!0)),g(R,function(z){O.push(new Ne(h(z)))})}});var L=v(d.getCenter(),u&&u.project);function A(w,M){if(w.length){var R=new en({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});x.add(R),Dl(t,o,n,R,_,E),Nl(a,o,R,y,E,_,L),M&&(Pl(R),g(R.states,Pl))}}A(C),A(O,!0)}),s.each(function(d,y){var x=l.get(y),S=x.dataIdx,_=x.regionModel;kl(a,o,d,y,_,S),Il(a,o,d,y,_),zl(a,d,y,_)},this)},r.prototype._buildSVG=function(e,t,i,a,o,n){var s=i.map;pr(this._svgGroup,e,it),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=k(),f=!1;g(this._svgGraphicRecord.named,function(u){var p=u.name,c=u.svgNodeTagLower,v=u.el,m=o?o.indexOfName(p):null,h=a.getRegionModel(p);Tp.get(c)!=null&&v instanceof jt&&Dl(t,o,n,v,m,h),v instanceof jt&&(v.culling=!0);var d=h.get("silent",!0);if(d!=null&&(v.silent=d),v.z2EmphasisLift=0,!u.namedFrom&&(Lp.get(c)!=null&&Nl(a,o,v,p,h,m,null),kl(a,o,v,p,h,m),Il(a,o,v,p,h),Ep.get(c)!=null)){var y=zl(a,v,p,h);y==="self"&&(f=!0);var x=l.get(p)||l.set(p,[]);x.push(v)}},this),this._enableBlurEntireSVG(f,a)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&It(t)){var i=t.getModel(["blur","itemStyle"]).getItemStyle(),a=i.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){qi(o);var n=o.ensureState("blur").style||{};n.opacity==null&&a!=null&&(n.opacity=a),o.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var o=a.get(e);return o?[o]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=ie.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ie.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Ul(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,i,a){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){o._mouseDownFlag=!0}),t.on("click",function(n){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},r})();function Dl(r,e,t,i,a,o){var n=o.getModel("itemStyle"),s=o.getModel(["emphasis","itemStyle"]),l=o.getModel(["blur","itemStyle"]),f=o.getModel(["select","itemStyle"]),u=Mi(n),p=Mi(s),c=Mi(f),v=Mi(l);if(e){var m=e.getItemVisual(a,"style"),h=e.getItemVisual(a,"decal");t&&m.fill&&(u.fill=m.fill),h&&(u.decal=bn(h,r))}i.setStyle(u),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=p,i.ensureState("select").style=c,i.ensureState("blur").style=v,qi(i)}function Nl(r,e,t,i,a,o,n){var s=e&&isNaN(e.get(e.mapDimension("value"),o)),l=e&&e.getItemLayout(o);if(It(r)||s||l&&l.showLabel){var f=It(r)?i:o,u=void 0;(!e||o>=0)&&(u=r);var p=n?{normal:{align:"center",verticalAlign:"middle"}}:null;Ct(t,Ae(a),{labelFetcher:u,labelDataIndex:f,defaultText:i},p);var c=t.getTextContent();if(c&&(Ul(c).ignore=c.ignore,t.textConfig&&n)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(n[0]-v.x)/v.width*100+"%",(n[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function kl(r,e,t,i,a,o){e?e.setItemGraphicEl(o,t):Se(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:i,region:a&&a.option||{}}}function Il(r,e,t,i,a){e||qt({el:t,componentModel:r,itemName:i,itemTooltipOption:a.get("tooltip")})}function zl(r,e,t,i){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return bt(e,o,a.get("blurScope"),a.get("disabled")),It(r)&&Jo(e,r,t),o}function Bl(r,e,t){var i=[],a;function o(){a=[]}function n(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:o,polygonEnd:n,lineStart:o,lineEnd:n,point:function(l,f){isFinite(l)&&isFinite(f)&&a.push([l,f])},sphere:function(){}});return!t&&s.polygonStart(),g(r,function(l){s.lineStart();for(var f=0;f<l.length;f++)s.point(l[f][0],l[f][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}function It(r){return r.mainType==="geo"}var Vl=Mp;var Rp=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,a,o){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Vl(a));var n=this._mapDraw;n.draw(t,i,a,this,o),n.group.on("click",this._handleRegionClick,this),n.group.silent=t.get("silent"),this.group.add(n.group),this.updateSelectStatus(t,i,a)},e.prototype.__updateOnOwnRoam=function(t,i,a){var o=this._mapDraw;o&&o.__updateOnOwnRoam(i)},e.prototype._handleRegionClick=function(t){var i;_n(t.target,function(a){return(i=Se(a).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,a){var o=this;this._mapDraw.group.traverse(function(n){var s=Se(n).eventData;if(s)return o._model.isSelected(s.name)?a.enterSelect(n):a.leaveSelect(n),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(me),Gl=Rp;function Op(r,e,t){ie.registerMap(r,e,t)}function oy(r){r.registerCoordinateSystem("geo",wi),r.registerComponentModel(Cl),r.registerComponentView(Gl),r.registerImpl("registerMap",Op),r.registerImpl("getMap",function(t){return ie.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(a,o){var n={},s=[];return o.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var f=l.coordinateSystem;g(f.regions,function(p){n[p.name]=l.isSelected(p.name)||!1});var u=[];g(n,function(p,c){n[c]&&u.push(c)}),s.push({geoIndex:l.componentIndex,name:u})}),{selected:n,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,a){var o=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":Jt),n=o===Jt;if(!(o!=="geo"&&!n)){var s=n?"map":null;i.eachComponent(Br(t,o,s),function(l){n&&!Ya(l)||(di(t,l,n?l.seriesGroup.r:null),gi(t,l,i,a))})}})}function ja(r){Pp(r),Dp(r)}function Pp(r){if(!r.parallel){var e=!1;g(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function Dp(r){var e=je(r.parallelAxis);g(e,function(t){if(ae(t)){var i=t.parallelIndex||0,a=je(r.parallel)[i];a&&a.parallelAxisDefault&&V(t,a.parallelAxisDefault,!1)}})}var Np=5,kp=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this._model=t,this._api=a,this._handlers||(this._handlers={},g(Ip,function(o,n){a.getZr().on(n,this._handlers[n]=X(o,this))},this)),xn(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Sn(this,"_throttledDispatchExpand"),g(this._handlers,function(a,o){i.getZr().off(o,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(G({type:"parallelAxisExpand"},t))},e.type="parallel",e})(me),Ip={mousedown:function(r){Ja(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Ja(this,"click")&&e){var t=[r.offsetX,r.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>Np)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Ja(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function Ja(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Fl=kp;var zt="parallel",Ri=zt,zp=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&V(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){g(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=Oe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);g(a,function(o){t.push("dim"+o.get("dim")),i.push(o.componentIndex)})},e.type=Ri,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(ve),Yl=zp;var Bp=(function(r){P(e,r);function e(t,i,a,o,n){var s=r.call(this,t,i,a)||this;return s.type=o||"value",s.axisIndex=n,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(Mt),Hl=Bp;function qa(r,e,t,i,a,o){r=r||0;var n=Ze(t[1],-t[0]);if(a!=null&&(a=Bt(a,[0,n])),o!=null&&(o=Math.max(o,a??0)),i==="all"){var s=Math.abs(Ze(e[1],-e[0]));s=Bt(s,[0,n]),a=o=Bt(s,[a,o]),i=0}e[0]=Bt(e[0],t),e[1]=Bt(e[1],t);var l=Ka(e,i);e[i]+=r;var f=a||0,u=t.slice();l.sign<0?u[0]=Ze(u[0],f):u[1]=Ze(u[1],-f),e[i]=Bt(e[i],u);var p;return p=Ka(e,i),a!=null&&(p.sign!==l.sign||p.span<a)&&(e[1-i]=Ze(e[i],l.sign*a)),p=Ka(e,i),o!=null&&p.span>o&&(e[1-i]=Ze(e[i],p.sign*o)),e}function Ka(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Bt(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Up=(function(){function r(e,t,i){this.type=zt,this._axesMap=k(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,o=e.parallelAxisIndex;g(a,function(n,s){var l=o[s],f=t.getComponent("parallelAxis",l),u=ti(f),p=this._axesMap.set(n,new Hl(n,ri(f,u,!1),[0,0],u,l));p.onBand=ii(p.scale,f),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.coordinateSystem=f.coordinateSystem=this},this)},r.prototype.update=function(e,t){g(this.dimensions,function(i){var a=this._axesMap.get(i);Lt(a,Et),ar(a)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,o=t.pixelDimIndex,n=e[1-o],s=e[o];return n>=i&&n<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var i=Ie(e,t).refContainer;this._rect=Ke(e.getBoxLayoutParams(),i),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],o=e.get("layout"),n=o==="horizontal"?0:1,s=t[a[n]],l=[0,s],f=this.dimensions.length,u=Oi(e.get("axisExpandWidth"),l),p=Oi(e.get("axisExpandCount")||0,[0,f]),c=e.get("axisExpandable")&&f>3&&f>p&&p>1&&u>0&&s>0,v=e.get("axisExpandWindow"),m;if(v)m=Oi(v[1]-v[0],l),v[1]=v[0]+m;else{m=Oi(u*(p-1),l);var h=e.get("axisExpandCenter")||xt(f/2);v=[u*h-m/2],v[1]=v[0]+m}var d=(s-m)/(f-p);d<3&&(d=0);var y=[xt(J(v[0]/u,1))+1,Ir(J(v[1]/u,1))-1],x=d/u*v[0];return{layout:o,pixelDimIndex:n,layoutBase:t[i[n]],layoutLength:s,axisBase:t[i[1-n]],axisLength:t[a[1-n]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:d,axisExpandWindow:v,axisCount:f,winInnerIndices:y,axisExpandWindow0Pos:x}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),o=a.layout;t.each(function(n){var s=[0,a.axisLength],l=n.inverse?1:0;n.setExtent(s[l],s[1-l])}),g(i,function(n,s){var l=(a.axisExpandable?Gp:Vp)(s,a),f={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},u={horizontal:Uo/2,vertical:0},p=[f[o].x+e.x,f[o].y+e.y],c=u[o],v=ee();mt(v,v,c),Or(v,v,p),this._axesLayout[n]={position:p,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var o=this._axesMap,n=this.dimensions,s=[],l=[];g(n,function(d){s.push(e.mapDimension(d)),l.push(o.get(d).model)});for(var f=this.hasAxisBrushed(),u=i;u<a;u++){var p=void 0;if(!f)p="normal";else{p="active";for(var c=e.getValues(s,u),v=0,m=n.length;v<m;v++){var h=l[v].getActiveState(c[v]);if(h==="inactive"){p="inactive";break}}}t(p,u)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,a=0,o=e.length;a<o;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return sn([e,0],i.transform)},r.prototype.getAxisLayout=function(e){return j(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,a=t.axisExpandWindow.slice(),o=a[1]-a[0],n=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,f="slide",u=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),c=p[0]!=null;if(u)c&&u&&s<o*p[0]?(f="jump",l=s-o*p[2]):c&&u&&s>o*(1-p[0])?(f="jump",l=s-o*(1-p[2])):(l=s-o*p[1])>=0&&(l=s-o*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/u,l?qa(l,a,n,"all"):f="none";else{var v=a[1]-a[0],m=n[1]*s/v;a=[Ee(0,m-v/2)],a[1]=Yi(n[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:f}},r})();function Oi(r,e){return Yi(Ee(r,e[0]),e[1])}function Vp(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Gp(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,o=e.axisCollapseWidth,n=e.winInnerIndices,s,l=o,f=!1,u;return r<n[0]?(s=r*o,u=o):r<=n[1]?(s=e.axisExpandWindow0Pos+r*i-e.axisExpandWindow[0],l=i,f=!0):(s=t-(a-1-r)*o,u=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:f,nameTruncateMaxWidth:u}}var Wl=Up;function Fp(r,e){var t=[];return r.eachComponent(Ri,function(i,a){var o=new Wl(i,r,e);o.name="parallel_"+a,o.resize(i,e),i.coordinateSystem=o,o.model=i,t.push(o)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===zt){var a=i.getReferringComponents(Ri,ue).models[0],o=i.coordinateSystem=a.coordinateSystem;o&&g(o.dimensions,function(n){$e(o.getAxis(n),i,zt)})}}),t}var Yp={create:Fp},Xl=Yp;var Zl=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Xo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=j(t);if(i)for(var a=i.length-1;a>=0;a--)zr(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var o=0,n=i.length;o<n;o++)if(i[o][0]<=t&&t<=i[o][1])return"active";return"inactive"},e})(ve);pt(Zl,Tt);var Qa=Zl;var nt=!0,xr=Math.min,Ut=Math.max,Hp=Math.pow,Wp=1e4,Xp=6,Zp=6,jl="globalPan",jp={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Jp={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Jl={brushStyle:{lineWidth:2,stroke:D.color.backgroundTint,fill:D.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Kp=0,qp=(function(r){P(e,r);function e(t){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new N,i._uid="brushController_"+Kp++,g(ac,function(a,o){this._handlers[o]=X(a,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||wl(i,jl,this._uid),g(this._handlers,function(a,o){i.on(o,a)}),this._brushType=t.brushType,this._brushOption=V(j(Jl),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Tl(t,jl,this._uid),g(this._handlers,function(i,a){t.off(a,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};g(t,function(a){i[a.panelId]=j(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=U(t,function(c){return V(j(Jl),c,!0)});var i="\0-brush-index-",a=this._covers,o=this._covers=[],n=this,s=this._creatingCover;return new Cn(a,t,f,l).add(u).update(u).remove(p).execute(),this;function l(c,v){return(c.id!=null?c.id:i+v)+"-"+c.brushType}function f(c,v){return l(c.__brushOption,v)}function u(c,v){var m=t[c];if(v!=null&&a[v]===s)o[c]=a[v];else{var h=o[c]=v!=null?(a[v].__brushOption=m,a[v]):tu(n,eu(n,m));ao(n,h)}}function p(c){a[c]!==s&&n.group.remove(a[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),$a(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Mr);function eu(r,e){var t=Pi[e.brushType].createCover(r,e);return t.__brushOption=e,iu(t,e),r.group.add(t),t}function tu(r,e){var t=oo(e);return t.endCreating&&(t.endCreating(r,e),iu(e,e.__brushOption)),e}function ru(r,e){var t=e.__brushOption;oo(e).updateCoverShape(r,e,t.range,t)}function iu(r,e){var t=e.z;t==null&&(t=Wp),r.traverse(function(i){i.z=t,i.z2=t})}function ao(r,e){oo(e).updateCommon(r,e),ru(r,e)}function oo(r){return Pi[r.__brushOption.brushType]}function no(r,e,t){var i=r._panels;if(!i)return nt;var a,o=r._transform;return g(i,function(n){n.isTargetByCursor(e,t,o)&&(a=n)}),a}function au(r,e){var t=r._panels;if(!t)return nt;var i=e.__brushOption.panelId;return i!=null?t[i]:nt}function $a(r){var e=r._covers,t=e.length;return g(e,function(i){r.group.remove(i)},r),e.length=0,!!t}function st(r,e){var t=U(r._covers,function(i){var a=i.__brushOption,o=j(a.range);return{brushType:a.brushType,panelId:a.panelId,range:o}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Qp(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],a=t[0]-i[0],o=t[1]-i[1],n=Hp(a*a+o*o,.5);return n>Xp}function ou(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function nu(r,e,t,i){var a=new N;return a.add(new q({name:"main",style:so(t),silent:!0,draggable:!0,cursor:"move",drift:le(Kl,r,e,a,["n","s","w","e"]),ondragend:le(st,e,{isEnd:!0})})),g(i,function(o){a.add(new q({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:le(Kl,r,e,a,o),ondragend:le(st,e,{isEnd:!0})}))}),a}function su(r,e,t,i){var a=i.brushStyle.lineWidth||0,o=Ut(a,Zp),n=t[0][0],s=t[1][0],l=n-a/2,f=s-a/2,u=t[0][1],p=t[1][1],c=u-o+a/2,v=p-o+a/2,m=u-n,h=p-s,d=m+a,y=h+a;Re(r,e,"main",n,s,m,h),i.transformable&&(Re(r,e,"w",l,f,o,y),Re(r,e,"e",c,f,o,y),Re(r,e,"n",l,f,d,o),Re(r,e,"s",l,v,d,o),Re(r,e,"nw",l,f,o,o),Re(r,e,"ne",c,f,o,o),Re(r,e,"sw",l,v,o,o),Re(r,e,"se",c,v,o,o))}function eo(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(so(t)),a.attr({silent:!i,cursor:i?"move":"default"}),g([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var n=e.childOfName(o.join("")),s=o.length===1?to(r,o[0]):ec(r,o);n&&n.attr({silent:!i,invisible:!i,cursor:i?Jp[s]+"-resize":null})})}function Re(r,e,t,i,a,o,n){var s=e.childOfName(t);s&&s.setShape(rc(lo(r,e,[[i,a],[i+o,a+n]])))}function so(r){return I({strokeNoScale:!0},r.brushStyle)}function lu(r,e,t,i){var a=[xr(r,t),xr(e,i)],o=[Ut(r,t),Ut(e,i)];return[[a[0],o[0]],[a[1],o[1]]]}function $p(r){return nn(r.group)}function to(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=ln(t[e],$p(r));return i[a]}function ec(r,e){var t=[to(r,e[0]),to(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Kl(r,e,t,i,a,o){var n=t.__brushOption,s=r.toRectRange(n.range),l=uu(e,a,o);g(i,function(f){var u=jp[f];s[u[0]][u[1]]+=l[u[0]]}),n.range=r.fromRectRange(lu(s[0][0],s[1][0],s[0][1],s[1][1])),ao(e,t),st(e,{isEnd:!1})}function tc(r,e,t,i){var a=e.__brushOption.range,o=uu(r,t,i);g(a,function(n){n[0]+=o[0],n[1]+=o[1]}),ao(r,e),st(r,{isEnd:!1})}function uu(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),o=i.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function lo(r,e,t){var i=au(r,e);return i&&i!==nt?i.clipPath(t,r._transform):j(t)}function rc(r){var e=xr(r[0][0],r[1][0]),t=xr(r[0][1],r[1][1]),i=Ut(r[0][0],r[1][0]),a=Ut(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function ic(r,e,t){if(!(!r._brushType||oc(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,o=no(r,e,t);if(!r._dragging)for(var n=0;n<a.length;n++){var s=a[n].__brushOption;if(o&&(o===nt||s.panelId===o.panelId)&&Pi[s.brushType].contain(a[n],t[0],t[1]))return}o&&i.setCursorStyle("crosshair")}}function ro(r){var e=r.event;e.preventDefault&&e.preventDefault()}function io(r,e,t){return r.childOfName("main").contain(e,t)}function fu(r,e,t,i){var a=r._creatingCover,o=r._creatingPanel,n=r._brushOption,s;if(r._track.push(t.slice()),Qp(r)||a){if(o&&!a){n.brushMode==="single"&&$a(r);var l=j(n);l.brushType=ql(l.brushType,o),l.panelId=o===nt?null:o.panelId,a=r._creatingCover=eu(r,l),r._covers.push(a)}if(a){var f=Pi[ql(r._brushType,o)],u=a.__brushOption;u.range=f.getCreatingRange(lo(r,a,r._track)),i&&(tu(r,a),f.updateCommon(r,a)),ru(r,a),s={isEnd:i}}}else i&&n.brushMode==="single"&&n.removeOnClick&&no(r,e,t)&&$a(r)&&(s={isEnd:i,removeOnClick:!0});return s}function ql(r,e){return r==="auto"?e.defaultBrushType:r}var ac={mousedown:function(r){if(this._dragging)Ql(this,r);else if(!r.target||!r.target.draggable){ro(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=no(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,i=this.group.transformCoordToLocal(e,t);if(ic(this,r,i),this._dragging){ro(r);var a=fu(this,r,i,!1);a&&st(this,a)}},mouseup:function(r){Ql(this,r)}};function Ql(r,e){if(r._dragging){ro(e);var t=e.offsetX,i=e.offsetY,a=r.group.transformCoordToLocal(t,i),o=fu(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,o&&st(r,o)}}function oc(r,e,t){var i=r._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var Pi={lineX:$l(0),lineY:$l(1),rect:{createCover:function(r,e){function t(i){return i}return nu({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=ou(r);return lu(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){su(r,e,t,i)},updateCommon:eo,contain:io},polygon:{createCover:function(r,e){var t=new N;return t.add(new Ne({name:"main",style:so(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new De({name:"main",draggable:!0,drift:le(tc,r,e),ondragend:le(st,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:lo(r,e,t)})},updateCommon:eo,contain:io}};function $l(r){return{createCover:function(e,t){return nu({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=ou(e),i=xr(t[0][r],t[1][r]),a=Ut(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var o,n=au(e,t);if(n!==nt&&n.getLinearBrushOtherExtent)o=n.getLinearBrushOtherExtent(r);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,o];r&&l.reverse(),su(e,t,l,a)},updateCommon:eo,contain:io}}var pu=qp;function cu(r){return r=uo(r),function(e){return un(e,r)}}function vu(r,e){return r=uo(r),function(t){var i=e??t,a=i?r.width:r.height,o=i?r.x:r.y;return[o,o+(a||0)]}}function mu(r,e,t){var i=uo(r);return function(a,o){return i.contain(o[0],o[1])&&!Ti(a,e,t)}}function uo(r){return F.create(r)}var sc=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new pu(i.getZr())).on("brush",X(this._onBrush,this))},e.prototype.render=function(t,i,a,o){if(!lc(t,i,o)){this.axisModel=t,this.api=a,this.group.removeAll();var n=this._axisGroup;if(this._axisGroup=new N,this.group.add(this._axisGroup),!!t.get("show")){var s=fc(t,i),l=s.coordinateSystem,f=t.getAreaSelectStyle(),u=f.width,p=t.axis.dim,c=l.getAxisLayout(p),v=G({strokeContainThreshold:u},c),m=new Dt(t,a,v);m.build(),this._axisGroup.add(m.group),this._refreshBrushController(v,f,t,s,u,a),Zr(n,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,o,n,s){var l=a.axis.getExtent(),f=l[1]-l[0],u=Math.min(30,Math.abs(f)*.1),p=F.create({x:l[0],y:-n/2,width:f,height:n});p.x-=u,p.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:cu(p),isTargetByCursor:mu(p,s,o),getLinearBrushOtherExtent:vu(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(uc(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,o=a.axis,n=U(i,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:n})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(me);function lc(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function uc(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function fc(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var hu=sc;var pc={type:"axisAreaSelect",event:"axisAreaSelected"};function du(r){r.registerAction(pc,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var cc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fx(r){r.registerComponentView(Fl),r.registerComponentModel(Yl),r.registerCoordinateSystem("parallel",Xl),r.registerPreprocessor(ja),r.registerComponentModel(Qa),r.registerComponentView(hu),Ot(r,"parallel",Qa,cc),du(r)}var vc=typeof Float32Array!==ji?Float32Array:void 0,gu=typeof Float64Array!==ji?Float64Array:void 0;function mx(r){return Di({ctor:vc},r).arr}function Di(r,e){var t=r.arr,i=r.ctor;if(e>Wi&&(e=Wi),!t||r.typed&&t.length<e){var a=void 0;if(i)try{a=new i(e),r.typed=!0,t&&a.set(t)}catch{}if(!a&&(a=[],r.typed=!1,t))for(var o=0,n=t.length;o<n;o++)a[o]=t[o];r.arr=a}return r}function yu(){Yn("liPosMinGap",mc)}function mc(r,e,t){var i=k(),a=t.serUids,o=t.liPosMinGap,n,s=e.axis,l=s.scale,f=l.needTransform(),u=l.getFilter?l.getFilter():null,p=dn(u);function c(S){Fn(r,e.sers,function(_){var E=_.getRawData(),b=E.getDimensionIndex(E.mapDimension(s.dim));b>=0&&S(b,_,E.getStore())})}var v=0;if(c(function(S,_,E){i.set(_.uid,1),(!a||!a.hasKey(_.uid))&&(n=!0),v+=E.count()}),(!a||a.keys().length!==i.keys().length)&&(n=!0),!n&&o!=null){e.liPosMinGap=o;return}Di(lt,v);var m=0;c(function(S,_,E){for(var b=0,C=E.count();b<C;++b){var O=E.get(S,b);isFinite(O)&&(!u||gn(p,O))&&(f&&(O=l.transformIn(O,null)),lt.arr[m++]=O)}});var h=lt.typed?lt.arr.subarray(0,m):(lt.arr.length=m,lt.arr);lt.typed?h.sort():zr(h);for(var d=1/0,y=1;y<m;++y){var x=h[y]-h[y-1];x>0&&x<d&&(d=x)}t.liPosMinGap=e.liPosMinGap=_t(d)?d:m>0?Vn:Gn,t.serUids=i}var lt=Di({ctor:gu},50);function Ex(r){return function(e,t){var i=qn(e,{fromStat:{key:r}});if(_t(i.w2))return[-i.w2/2,i.w2/2]}}function Lx(r){return r+ua}function Mx(r,e){return r+ua+e}function xu(r){return yu(),{liPosMinGap:!wt(r.scale)}}var Dx="bar",Nx="pictorialBar";function kx(r,e,t,i){Hn(r,{key:e,seriesType:t,coordSysType:i,getMetrics:xu})}function Ix(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}function Su(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=ia(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var o=[],n=0;n<t.length;n++)o.push(ia(r,e,t[n]));return o.join(" ")}}function Vx(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!H(e))return e+"";for(var i=[],a=0;a<t.length;a++){var o=r.getDimensionIndex(t[a]);o>=0&&i.push(e[o])}return i.join(" ")}var hc=(function(r){P(e,r);function e(t,i,a,o){var n=r.call(this)||this;return n.updateData(t,i,a,o),n}return e.prototype._createSymbol=function(t,i,a,o,n,s){this.removeAll();var l=ze(t,-1,-1,2,2,null,s);l.attr({z2:B(n,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=dc,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Gr(this.childAt(0))},e.prototype.downplay=function(){Fr(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,o){this.silent=!1;var n=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),f=e.getSymbolZ2(t,i),u=n!==this._symbolType,p=o&&o.disableAnimation;if(u){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(n,t,i,l,f,c)}else{var v=this.childAt(0);v.silent=!1;var m={scaleX:l[0]/2,scaleY:l[1]/2};p?v.attr(m):ke(v,m,s,i),on(v)}if(this._updateCommon(t,i,l,a,o),u){var v=this.childAt(0);if(!p){var m={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Wr(v,m,s,i)}}p&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,o,n){var s=this.childAt(0),l=t.hostModel,f,u,p,c,v,m,h,d,y;if(o&&(f=o.emphasisItemStyle,u=o.blurItemStyle,p=o.selectItemStyle,c=o.focus,v=o.blurScope,h=o.labelStatesModels,d=o.hoverScale,y=o.cursorStyle,m=o.emphasisDisabled),!o||t.hasItemOption){var x=o&&o.itemModel?o.itemModel:t.getItemModel(i),S=x.getModel("emphasis");f=S.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),u=x.getModel(["blur","itemStyle"]).getItemStyle(),c=S.get("focus"),v=S.get("blurScope"),m=S.get("disabled"),h=Ae(x),d=S.getShallow("scale"),y=x.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var E=qe(t.getItemVisual(i,"symbolOffset"),a);E&&(s.x=E[0],s.y=E[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(i,"style"),C=b.fill;if(s instanceof Vr){var O=s.style;s.useStyle(G({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},b))}else s.__isEmptyBrush?s.useStyle(G({},b)):s.useStyle(b),s.style.decal=null,s.setColor(C,n&&n.symbolInnerColor),s.style.strokeNoScale=!0;var L=t.getItemVisual(i,"liftZ"),A=this._z2;L!=null?A==null&&(this._z2=s.z2,s.z2+=L):A!=null&&(s.z2=A,this._z2=null);var w=n&&n.useNameLabel;Ct(s,h,{labelFetcher:l,labelDataIndex:i,defaultText:M,inheritColor:C,defaultOpacity:b.opacity});function M(Y){return w?t.getName(Y):Su(t,Y)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=f,s.ensureState("select").style=p,s.ensureState("blur").style=u;var z=d==null||d===!0?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;R.scaleX=this._sizeX*z,R.scaleY=this._sizeY*z,this.setSymbolScale(1),bt(this,c,v,m)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var o=this.childAt(0),n=Se(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&Qi(l,{style:{opacity:0}},i,{dataIndex:n,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Qi(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:n,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return rr(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e})(N);function dc(r,e){this.parent.drift(r,e)}var _u=hc;function Ni(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(t))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function bu(r){return r!=null&&!ae(r)&&(r={isIgnore:r}),r||{}}function Au(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Ae(e),cursorStyle:e.get("cursor")}}function Cu(r,e,t,i,a,o,n){var s=new r(e,t,i,a);return s.setPosition(o),e.setItemGraphicEl(t,s),n.add(s),s}var gc=(function(){function r(e){this.group=new N,this._SymbolCtor=e||_u}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=bu(t);var i=this.group,a=e.hostModel,o=this._data,n=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=Au(e),f={disableAnimation:s},u=t.getSymbolPoint||function(p){return e.getItemLayout(p)};o||i.removeAll(),e.diff(o).add(function(p){var c=u(p);Ni(e,c,p,t)&&Cu(n,e,p,l,f,c,i)}).update(function(p,c){var v=o.getItemGraphicEl(c),m=u(p);if(!Ni(e,m,p,t)){i.remove(v);return}var h=e.getItemVisual(p,"symbol")||"circle",d=v&&v.getSymbolType&&v.getSymbolType();if(!v||d&&d!==h)i.remove(v),v=new n(e,p,l,f),v.setPosition(m);else{v.updateData(e,p,l,f);var y={x:m[0],y:m[1]};s?v.attr(y):ke(v,y,a)}i.add(v),e.setItemGraphicEl(p,v)}).remove(function(p){var c=o.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var i=this,a=t.getStore(),o=0,n=a.count();o<n;o++){var s=t.getItemGraphicEl(o),l=i._getSymbolPoint(o);Ni(t,l,o,e)?(s=s||Cu(i._SymbolCtor,t,o,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),t.setItemGraphicEl(o,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Au(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,a){this._progressiveEls=[],a=bu(a);function o(f){f.isGroup||(f.incremental=i,f.ensureState("emphasis").hoverLayer=Xr)}for(var n=e.start;n<e.end;n++){var s=t.getItemLayout(n);if(Ni(t,s,n,a)){var l=new this._SymbolCtor(t,n,this._seriesScope);l.traverse(o),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(n,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){jr(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},i.hostModel)}):t.removeAll()},r})(),tS=gc;function iS(r,e){return r.type===e}function aS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function lS(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||T(r,"text")))}function uS(r,e,t){var i=r,a,o,n;if(e==="text")n=i;else{n={},T(i,"text")&&(n.text=i.text),T(i,"rich")&&(n.rich=i.rich),T(i,"textFill")&&(n.fill=i.textFill),T(i,"textStroke")&&(n.stroke=i.textStroke),T(i,"fontFamily")&&(n.fontFamily=i.fontFamily),T(i,"fontSize")&&(n.fontSize=i.fontSize),T(i,"fontStyle")&&(n.fontStyle=i.fontStyle),T(i,"fontWeight")&&(n.fontWeight=i.fontWeight),o={type:"text",style:n,silent:!0},a={};var s=T(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),T(i,"textPosition")&&(a.position=i.textPosition),T(i,"textOffset")&&(a.offset=i.textOffset),T(i,"textRotation")&&(a.rotation=i.textRotation),T(i,"textDistance")&&(a.distance=i.textDistance)}return wu(n,r),g(n.rich,function(l){wu(l,l)}),{textConfig:a,textContent:o}}function wu(r,e){e&&(e.font=e.textFont||e.font,T(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),T(e,"textAlign")&&(r.align=e.textAlign),T(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),T(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),T(e,"textWidth")&&(r.width=e.textWidth),T(e,"textHeight")&&(r.height=e.textHeight),T(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),T(e,"textPadding")&&(r.padding=e.textPadding),T(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),T(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),T(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),T(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),T(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),T(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),T(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function fS(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,o=r.fill||D.color.neutral99;Tu(i,e);var n=i.textFill==null;return a?n&&(i.textFill=t.insideFill||D.color.neutral00,!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=o),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(n&&(i.textFill=r.fill||t.outsideFill||D.color.neutral00),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,g(e.rich,function(s){Tu(s,s)}),i}function Tu(r,e){e&&(T(e,"fill")&&(r.textFill=e.fill),T(e,"stroke")&&(r.textStroke=e.fill),T(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),T(e,"font")&&(r.font=e.font),T(e,"fontStyle")&&(r.fontStyle=e.fontStyle),T(e,"fontWeight")&&(r.fontWeight=e.fontWeight),T(e,"fontSize")&&(r.fontSize=e.fontSize),T(e,"fontFamily")&&(r.fontFamily=e.fontFamily),T(e,"align")&&(r.textAlign=e.align),T(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),T(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),T(e,"width")&&(r.textWidth=e.width),T(e,"height")&&(r.textHeight=e.height),T(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),T(e,"padding")&&(r.textPadding=e.padding),T(e,"borderColor")&&(r.textBorderColor=e.borderColor),T(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),T(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),T(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),T(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),T(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),T(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),T(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),T(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),T(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),T(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var br=g,yc=ae,zi=-1,vo=(function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=j(e);this.type=i,this.mappingMethod=t,this._normalizeData=_c[t];var o=r.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[t],t==="piecewise"?(fo(a),xc(a)):t==="category"?a.categories?Sc(a):fo(a,!0):(Ht(t!=="linear"||a.dataExtent),fo(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return X(this._normalizeData,this)},r.listVisualTypes=function(){return $(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){ae(e)?g(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,o=H(e)?[]:ae(e)?{}:(a=!0,null);return r.eachVisual(e,function(n,s){var l=t.call(i,n,s);a?o=l:o[s]=l}),o},r.retrieveVisuals=function(e){var t={},i;return e&&br(r.visualHandlers,function(a,o){e.hasOwnProperty(o)&&(t[o]=e[o],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(H(e))e=e.slice();else if(yc(e)){var t=[];br(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,o=1/0,n=0,s=t.length;n<s;n++){var l=t[n].value;if(l!=null){if(l===e||W(l)&&l===e+"")return n;i&&c(l,n)}}for(var n=0,s=t.length;n<s;n++){var f=t[n],u=f.interval,p=f.close;if(u){if(u[0]===-1/0){if(Ii(p[1],e,u[1]))return n}else if(u[1]===1/0){if(Ii(p[0],u[0],e))return n}else if(Ii(p[0],u[0],e)&&Ii(p[1],e,u[1]))return n;i&&c(u[0],n),i&&c(u[1],n)}}if(i)return e===1/0?t.length-1:e===-1/0?0:a;function c(v,m){var h=Math.abs(v-e);h<o&&(o=h,a=m)}},r.visualHandlers={color:{applyVisual:Sr("color"),getColorMapper:function(){var e=this.option;return X(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),_r.call(this,t)}:function(t,i,a){var o=!!a;return!i&&(t=this._normalizeData(t)),a=Dr(t,e.parsedVisual,a),o?a:dt(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return dt(Dr(e,this.option.parsedVisual),"rgba")},category:_r,piecewise:function(e,t){var i=co.call(this,t);return i==null&&(i=dt(Dr(e,this.option.parsedVisual),"rgba")),i},fixed:ut}},colorHue:ki(function(e,t){return Nr(e,t)}),colorSaturation:ki(function(e,t){return Nr(e,null,t)}),colorLightness:ki(function(e,t){return Nr(e,null,null,t)}),colorAlpha:ki(function(e,t){return Io(e,t)}),decal:{applyVisual:Sr("decal"),_normalizedToVisual:{linear:null,category:_r,piecewise:null,fixed:null}},opacity:{applyVisual:Sr("opacity"),_normalizedToVisual:po([0,1])},liftZ:{applyVisual:Sr("liftZ"),_normalizedToVisual:{linear:ut,category:ut,piecewise:ut,fixed:ut}},symbol:{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("symbol",a)},_normalizedToVisual:{linear:Eu,category:_r,piecewise:function(e,t){var i=co.call(this,t);return i==null&&(i=Eu.call(this,e)),i},fixed:ut}},symbolSize:{applyVisual:Sr("symbolSize"),_normalizedToVisual:po([0,1])}},r})();function xc(r){var e=r.pieceList;r.hasSpecialVisual=!1,g(e,function(t,i){t.originIndex=i,t.visual!=null&&(r.hasSpecialVisual=!0)})}function Sc(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(br(e,function(n,s){t[n]=s}),!H(i)){var a=[];ae(i)?br(i,function(n,s){var l=t[s];a[l??zi]=n}):a[zi]=i,i=Lu(r,a)}for(var o=e.length-1;o>=0;o--)i[o]==null&&(delete t[e[o]],e.pop())}function fo(r,e){var t=r.visual,i=[];ae(t)?br(t,function(o){i.push(o)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),Lu(r,i)}function ki(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:po([0,1])}}function Eu(r){var e=this.option.visual;return e[Math.round(St(r,[0,1],[0,e.length-1],!0))]||{}}function Sr(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function _r(r){var e=this.option.visual;return e[this.option.loop&&r!==zi?r%e.length:r]}function ut(){return this.option.visual[0]}function po(r){return{linear:function(e){return St(e,r,this.option.visual,!0)},category:_r,piecewise:function(e,t){var i=co.call(this,t);return i==null&&(i=St(e,r,this.option.visual,!0)),i},fixed:ut}}function co(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=vo.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function Lu(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var i=Pr(t);return i||[0,0,0,1]})),e}var _c={linear:function(r){return St(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=vo.findPieceIndex(r,e,!0);if(t!=null)return St(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??zi},fixed:Er};function Ii(r,e,t){return r?e<=t:e<t}var vS=vo;var Mu=_e.prototype,mo=$o.prototype,Ru=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),gS=(function(r){P(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Ru);function ho(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var bc=(function(r){P(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:D.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Ru},e.prototype.buildPath=function(t,i){ho(i)?Mu.buildPath.call(this,t,i):mo.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return ho(this.shape)?Mu.pointAt.call(this,t):mo.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,a=ho(i)?[i.x2-i.x1,i.y2-i.y1]:mo.tangentAt.call(this,t);return Lr(a,a)},e})(Ur),Ou=bc;var go=["fromSymbol","toSymbol"];function Pu(r){return"_"+r+"Type"}function Du(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return i;var a=e.getItemVisual(t,r+"Size"),o=e.getItemVisual(t,r+"Rotate"),n=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=rr(a),f=qe(n||0,l);return i+l+f+(o||"")+(s||"")}function Nu(r,e,t){var i=e.getItemVisual(t,r);if(!(!i||i==="none")){var a=e.getItemVisual(t,r+"Size"),o=e.getItemVisual(t,r+"Rotate"),n=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=rr(a),f=qe(n||0,l),u=ze(i,-l[0]/2+f[0],-l[1]/2+f[1],l[0],l[1],null,s);return u.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=r,u}}function Ac(r){var e=new Ou({name:"line",subPixelOptimize:!0});return yo(e.shape,r),e}function yo(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var Cc=(function(r){P(e,r);function e(t,i,a){var o=r.call(this)||this;return o._createLine(t,i,a),o}return e.prototype._createLine=function(t,i,a){var o=t.hostModel,n=t.getItemLayout(i),s=t.getItemVisual(i,"z2"),l=Ac(n);l.shape.percent=0,Wr(l,{z2:B(s,0),shape:{percent:1}},o,i),this.add(l),g(go,function(f){var u=Nu(f,t,i);this.add(u),this[Pu(f)]=Du(f,t,i)},this),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var o=t.hostModel,n=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};yo(l.shape,s),ke(n,l,o,i),g(go,function(f){var u=Du(f,t,i),p=Pu(f);if(this[p]!==u){this.remove(this.childOfName(f));var c=Nu(f,t,i);this.add(c)}this[p]=u},this),this._updateCommonStl(t,i,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,a){var o=t.hostModel,n=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,f=a&&a.selectLineStyle,u=a&&a.labelStatesModels,p=a&&a.emphasisDisabled,c=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var m=t.getItemModel(i),h=m.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),l=m.getModel(["blur","lineStyle"]).getLineStyle(),f=m.getModel(["select","lineStyle"]).getLineStyle(),p=h.get("disabled"),c=h.get("focus"),v=h.get("blurScope"),u=Ae(m)}var d=t.getItemVisual(i,"style"),y=d.stroke;n.useStyle(d),n.style.fill=null,n.style.strokeNoScale=!0,n.ensureState("emphasis").style=s,n.ensureState("blur").style=l,n.ensureState("select").style=f,g(go,function(b){var C=this.childOfName(b);if(C){C.setColor(y),C.style.opacity=d.opacity;for(var O=0;O<Ki.length;O++){var L=Ki[O],A=n.getState(L);if(A){var w=A.style||{},M=C.ensureState(L),R=M.style||(M.style={});w.stroke!=null&&(R[C.__isEmptyBrush?"stroke":"fill"]=w.stroke),w.opacity!=null&&(R.opacity=w.opacity)}}C.markRedraw()}},this);var x=o.getRawValue(i);Ct(this,u,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,C){return o.getFormattedLabel(b,C,t.dataType)}},inheritColor:y||D.color.neutral99,defaultOpacity:d.opacity,defaultText:(x==null?t.getName(i):isFinite(x)?J(x,10):x)+""});var S=this.getTextContent();if(S){var _=u.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=_.get("position")||"middle";var E=_.get("distance");H(E)||(E=[E,E]),S.__labelDistance=E}this.setTextConfig({position:null,local:!0,inside:!1}),bt(this,c,v,p)},e.prototype.highlight=function(){Gr(this)},e.prototype.downplay=function(){Fr(this)},e.prototype.updateLayout=function(t,i){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");yo(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),o=t.getTextContent();if(!i&&!a&&(!o||o.ignore))return;for(var n=1,s=this.parent;s;)s.scaleX&&(n/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var f=l.shape.percent,u=l.pointAt(0),p=l.pointAt(f),c=Eo([],p,u);Lr(c,c);function v(A,w){var M=A.__specifiedRotation;if(M==null){var R=l.tangentAt(w);A.attr("rotation",(w===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else A.attr("rotation",M)}if(i&&(i.setPosition(u),v(i,0),i.scaleX=i.scaleY=n*f,i.markRedraw()),a&&(a.setPosition(p),v(a,1),a.scaleX=a.scaleY=n*f,a.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var m=void 0,h=void 0,d=o.__labelDistance,y=d[0]*n,x=d[1]*n,S=f/2,_=l.tangentAt(S),E=[_[1],-_[0]],b=l.pointAt(S);E[1]>0&&(E[0]=-E[0],E[1]=-E[1]);var C=_[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var O=-Math.atan2(_[1],_[0]);p[0]<u[0]&&(O=Math.PI+O),o.rotation=O}var L=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":L=-x,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":L=x,h="top";break;default:L=0,h="middle"}switch(o.__position){case"end":o.x=c[0]*y+p[0],o.y=c[1]*x+p[1],m=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":o.x=-c[0]*y+u[0],o.y=-c[1]*x+u[1],m=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*C+u[0],o.y=u[1]+L,m=_[0]<0?"right":"left",o.originX=-y*C,o.originY=-L;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=b[0],o.y=b[1]+L,m="center",o.originY=-L;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*C+p[0],o.y=p[1]+L,m=_[0]>=0?"right":"left",o.originX=y*C,o.originY=-L;break}o.scaleX=o.scaleY=n,o.setStyle({verticalAlign:o.__verticalAlign||h,align:o.__align||m})}},e})(N),ku=Cc;var wc=(function(){function r(e){this.group=new N,this._LineCtor=e||ku}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,o=i._lineData;i._lineData=e,o||a.removeAll();var n=Iu(e);e.diff(o).add(function(s){t._doAdd(e,s,n)}).update(function(s,l){t._doUpdate(o,e,l,s,n)}).remove(function(s){a.remove(o.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Iu(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[];function a(l){!l.isGroup&&!Tc(l)&&(l.incremental=i,l.ensureState("emphasis").hoverLayer=Xr)}for(var o=e.start;o<e.end;o++){var n=t.getItemLayout(o);if(xo(n)){var s=new this._LineCtor(t,o,this._seriesScope);s.traverse(a),this.group.add(s),t.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){jr(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,i){var a=e.getItemLayout(t);if(xo(a)){var o=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,o),this.group.add(o)}},r.prototype._doUpdate=function(e,t,i,a,o){var n=e.getItemGraphicEl(i);if(!xo(t.getItemLayout(a))){this.group.remove(n);return}n?n.updateData(t,a,o):n=new this._LineCtor(t,a,o),t.setItemGraphicEl(a,n),this.group.add(n)},r})();function Tc(r){return r.animators&&r.animators.length>0}function Iu(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Ae(e)}}function zu(r){return isNaN(r[0])||isNaN(r[1])}function xo(r){return r&&!zu(r[0])&&!zu(r[1])}var RS=wc;var Bu=K();function DS(r){if(r)return Bu(r).bridge}function NS(r,e){r&&(Bu(r).bridge=e)}var Gu={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Uu=$(Gu),WS=wr(gt,function(r,e){return r[e]=1,r},{}),XS=gt.join(", "),Ar=["","style","shape","extra"],Gt=K();function _o(r,e,t,i,a){var o=r+"Animation",n=Hr(r,i,a)||{},s=Gt(e).userDuring;return n.duration>0&&(n.during=s?X(Pc,{el:e,userDuring:s}):null,n.setToFinal=!0,n.scope=r),G(n,t[o]),n}function ZS(r,e,t,i){i=i||{};var a=i.dataIndex,o=i.isInit,n=i.clearStyle,s=t.isAnimationEnabled(),l=Gt(r),f=e.style;l.userDuring=e.during;var u={},p={};if(Nc(r,e,p),r.type==="compound")for(var c=r.shape.paths,v=e.shape.paths,m=0;m<v.length;m++){var h=v[m];So("shape",h,c[m])}else So("shape",e,p),So("extra",e,p);if(!o&&s&&(Dc(r,e,u),Vu("shape",r,e,u),Vu("extra",r,e,u),kc(r,e,f,u)),p.style=f,Lc(r,p,n),Rc(r,e),s)if(o){var d={};g(Ar,function(x){var S=x?e[x]:e;S&&S.enterFrom&&(x&&(d[x]=d[x]||{}),G(x?d[x]:d,S.enterFrom))});var y=_o("enter",r,e,t,a);y.duration>0&&r.animateFrom(d,y)}else Mc(r,e,a||0,t,u);Ec(r,e),f?r.dirty():r.markRedraw()}function Ec(r,e){for(var t=Gt(r).leaveToProps,i=0;i<Ar.length;i++){var a=Ar[i],o=a?e[a]:e;o&&o.leaveTo&&(t||(t=Gt(r).leaveToProps={}),a&&(t[a]=t[a]||{}),G(a?t[a]:t,o.leaveTo))}}function jS(r,e,t,i){if(r){var a=r.parent,o=Gt(r).leaveToProps;if(o){var n=_o("update",r,e,t,0);n.done=function(){a&&a.remove(r),i&&i()},r.animateTo(o,n)}else a&&a.remove(r),i&&i()}}function Vt(r){return r==="all"}function Lc(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});for(var a=r.animators,o=0;o<a.length;o++){var n=a[o];n.targetName==="style"&&n.changeTarget(r.style)}}r.setStyle(i)}e&&(e.style=null,e&&r.attr(e),e.style=i)}function Mc(r,e,t,i,a){if(a){var o=_o("update",r,e,i,t);o.duration>0&&r.animateFrom(a,o)}}function Rc(r,e){T(e,"silent")&&(r.silent=e.silent),T(e,"ignore")&&(r.ignore=e.ignore),r instanceof jt&&T(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ur&&T(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ce={},Oc={setTransform:function(r,e){return Ce.el[r]=e,this},getTransform:function(r){return Ce.el[r]},setShape:function(r,e){var t=Ce.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Ce.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Ce.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Ce.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Ce.el.extra||(Ce.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Ce.el.extra;if(e)return e[r]}};function Pc(){var r=this,e=r.el;if(e){var t=Gt(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}Ce.el=e,i(Oc)}}function Vu(r,e,t,i){var a=t[r];if(a){var o=e[r],n;if(o){var s=t.transition,l=a.transition;if(l)if(!n&&(n=i[r]={}),Vt(l))G(n,o);else for(var f=je(l),u=0;u<f.length;u++){var p=f[u],c=o[p];n[p]=c}else if(Vt(s)||ce(s,r)>=0){!n&&(n=i[r]={});for(var v=$(o),u=0;u<v.length;u++){var p=v[u],c=o[p];Ic(a[p],c)&&(n[p]=c)}}}}}function So(r,e,t){var i=e[r];if(i)for(var a=t[r]={},o=$(i),n=0;n<o.length;n++){var s=o[n];a[s]=zo(i[s])}}function Dc(r,e,t){for(var i=e.transition,a=Vt(i)?gt:je(i||[]),o=0;o<a.length;o++){var n=a[o];if(!(n==="style"||n==="shape"||n==="extra")){var s=r[n];t[n]=s}}}function Nc(r,e,t){for(var i=0;i<Uu.length;i++){var a=Uu[i],o=Gu[a],n=e[a];n&&(t[o[0]]=n[0],t[o[1]]=n[1])}for(var i=0;i<gt.length;i++){var s=gt[i];e[s]!=null&&(t[s]=e[s])}}function kc(r,e,t,i){if(t){var a=r.style,o;if(a){var n=t.transition,s=e.transition;if(n&&!Vt(n)){var l=je(n);!o&&(o=i.style={});for(var f=0;f<l.length;f++){var u=l[f],p=a[u];o[u]=p}}else if(r.getAnimationStyleProps&&(Vt(s)||Vt(n)||ce(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!o&&(o=i.style={});for(var m=$(t),f=0;f<m.length;f++){var u=m[f];if(v[u]){var p=a[u];o[u]=p}}}}}}}function Ic(r,e){return Ao(r)?r!==e:r!=null&&isFinite(r)}var Fu=K(),zc=["percent","easing","shape","style","extra"];function e_(r){r.stopAnimation("keyframe"),r.attr(Fu(r))}function Bc(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(H(e)){g(e,function(s){Bc(r,s,t)});return}var i=e.keyframes,a=e.duration;if(t&&a==null){var o=Hr("enter",t,0);a=o&&o.duration}if(!(!i||!a)){var n=Fu(r);g(Ar,function(s){if(!(s&&!r[s])){var l,f=!1;i.sort(function(u,p){return u.percent-p.percent}),g(i,function(u){var p=r.animators,c=s?u[s]:u;if(c){var v=$(c);if(s||(v=Oe(v,function(d){return ce(zc,d)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var m=0;m<p.length;m++)p[m]!==l&&p[m].targetName===l.targetName&&p[m].stopTracks(v);s&&(n[s]=n[s]||{});var h=s?n[s]:n;g(v,function(d){h[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(a*u.percent,c,v,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}export{Qu as a,_v as b,Su as c,Vx as d,_u as e,tS as f,mx as g,iS as h,aS as i,lS as j,uS as k,fS as l,tt as m,Dt as n,Ss as o,Zv as p,jv as q,Ex as r,Lx as s,Mx as t,xu as u,Dx as v,Nx as w,kx as x,Ix as y,Rt as z,Fa as A,Ot as B,Tm as C,Ns as D,fi as E,zs as F,Bs as G,Us as H,Zm as I,Ah as J,Ml as K,it as L,hi as M,kh as N,Ih as O,zf as P,pr as Q,kt as R,mr as S,zh as T,Oa as U,Pa as V,ol as W,Bh as X,xi as Y,Rl as Z,wg as _,Tg as $,Eg as aa,Lg as ba,Vl as ca,Ci as da,Sl as ea,Ya as fa,mp as ga,_l as ha,Wd as ia,oy as ja,vS as ka,Ou as la,ku as ma,RS as na,DS as oa,NS as pa,qa,pu as ra,cu as sa,vu as ta,mu as ua,fx as va,ZS as wa,Ec as xa,jS as ya,Vt as za,e_ as Aa,Bc as Ba};
|