x-print-designer 0.0.1

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.
@@ -0,0 +1 @@
1
+ import{g as S,e as x,i as y,c as C,n as P,a as b,M as r,A as v,b as M,d as _,f as T,h,j as R,k as O,l as D,m as j,o as I,p as A,q as z,r as k,s as w,t as E,u as L,v as c,w as B,x as G,y as V,z as q,B as N,C as F,D as H,E as Z,F as J,G as U,H as $,I as K,J as W,K as X,L as Y,N as Q,P as ee,O as ae,R as se,Q as te,S as re,T as ne,U as ie,V as oe,W as le,X as ce,Y as de,Z as me,_ as ue,$ as ge,a0 as pe,a1 as fe,a2 as Se,a3 as xe,a4 as ye,a5 as Ce,a6 as Pe,a7 as be,a8 as ve,a9 as Me,aa as _e,ab as Te,ac as n,ad as i,ae as o,af as l}from"./Axis-hDyHms34.js";import{ag as Ca,ah as Pa,ai as ba,aj as va,ak as Ma,al as _a,am as Ta,an as ha,ao as Ra,ap as Oa,aq as Da,ar as ja,as as Ia,at as Aa,au as za,au as ka,av as wa,aw as Ea,ax as La,ay as Ba,az as Ga,aA as Va,aB as qa,aC as Na,aD as Fa,aE as Ha,aF as Za,aG as Ja,aH as Ua,aI as $a,aJ as Ka,aK as Wa,aL as Xa,aM as Ya,aN as Qa}from"./Axis-hDyHms34.js";import{Z as d,m as he,B as Re,C as Oe,G as De,a as je,R as Ie,e as Ae,t as ze,b as ke,c as we,d as Ee,f as Le,g as Be,h as Ge,i as Ve,j as qe,k as Ne,l as Fe,n as He,o as Ze,p as Je,q as Ue,r as $e,s as Ke}from"./graphic-Cay9kDL2.js";import{u as as,v as ss,w as ts,x as rs,y as ns,z as is,A as os,D as ls}from"./graphic-Cay9kDL2.js";import{c as We,a as Xe}from"./createSeriesData-DY7MF9QR.js";function Ye(a,e,s,t,m,u,g,p){var f=new d({style:{text:a,font:e,align:s,verticalAlign:t,padding:m,rich:u,overflow:g?"truncate":null,lineHeight:p}});return f.getBoundingRect()}function Qe(a){return We(null,a)}var ea={isDimensionStacked:y,enableDataStack:x,getStackedDimension:S};function aa(a,e){var s=e;e instanceof r||(s=new r(e));var t=C(s);return t.setExtent(a[0],a[1]),P(t,s),t}function sa(a){he(a,v)}function ta(a,e){return e=e||{},b(a,null,null,e.state!=="normal")}const oa=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Xe,createList:Qe,createScale:aa,createSymbol:M,createTextStyle:ta,dataStack:ea,enableHoverEmphasis:_,getECData:T,getLayoutRect:h,mixinAxisModelCommonMethods:sa},Symbol.toStringTag,{value:"Module"})),la=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:R,asc:O,getPercentWithPrecision:D,getPixelPrecision:j,getPrecision:I,getPrecisionSafe:A,isNumeric:z,isRadianAroundZero:k,linearMap:w,nice:E,numericToNumber:L,parseDate:c,parsePercent:B,quantile:G,quantity:V,quantityExponent:q,reformIntervals:N,remRadian:F,round:H},Symbol.toStringTag,{value:"Module"})),ca=Object.freeze(Object.defineProperty({__proto__:null,format:Z,parse:c,roundTime:J},Symbol.toStringTag,{value:"Module"})),da=Object.freeze(Object.defineProperty({__proto__:null,Arc:U,BezierCurve:$,BoundingRect:Re,Circle:K,CompoundPath:Oe,Ellipse:W,Group:De,Image:je,IncrementalDisplayable:X,Line:Y,LinearGradient:Q,Polygon:ee,Polyline:ae,RadialGradient:se,Rect:Ie,Ring:te,Sector:re,Text:d,clipPointsByRect:ne,clipRectByRect:ie,createIcon:oe,extendPath:le,extendShape:ce,getShapeClass:de,getTransform:me,initProps:ue,makeImage:ge,makePath:pe,mergePath:fe,registerShape:Se,resizePath:xe,updateProps:ye},Symbol.toStringTag,{value:"Module"})),ma=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Ce,capitalFirst:Pe,encodeHTML:Ae,formatTime:be,formatTpl:ve,getTextRect:Ye,getTooltipMarker:Me,normalizeCssArray:_e,toCamelCase:Te,truncateText:ze},Symbol.toStringTag,{value:"Module"})),ua=Object.freeze(Object.defineProperty({__proto__:null,bind:ke,clone:we,curry:Ee,defaults:Le,each:Be,extend:Ge,filter:Ve,indexOf:qe,inherits:Ne,isArray:Fe,isFunction:He,isObject:Ze,isString:Je,map:Ue,merge:$e,reduce:Ke},Symbol.toStringTag,{value:"Module"}));function ga(a){var e=i.extend(a);return i.registerClass(e),e}function pa(a){var e=o.extend(a);return o.registerClass(e),e}function fa(a){var e=l.extend(a);return l.registerClass(e),e}function Sa(a){var e=n.extend(a);return n.registerClass(e),e}export{Ca as Axis,n as ChartView,i as ComponentModel,o as ComponentView,Pa as List,r as Model,ba as PRIORITY,l as SeriesModel,as as color,va as connect,Ma as dataTool,_a as dependencies,Ta as disConnect,ha as disconnect,Ra as dispose,ss as env,Sa as extendChartView,ga as extendComponentModel,pa as extendComponentView,fa as extendSeriesModel,ma as format,Oa as getCoordinateSystemDimensions,Da as getInstanceByDom,ja as getInstanceById,Ia as getMap,da as graphic,oa as helper,Aa as init,ts as innerDrawElementOnCanvas,rs as matrix,la as number,za as parseGeoJSON,ka as parseGeoJson,wa as registerAction,Ea as registerCoordinateSystem,La as registerCustomSeries,Ba as registerLayout,Ga as registerLoading,Va as registerLocale,qa as registerMap,Na as registerPostInit,Fa as registerPostUpdate,Ha as registerPreprocessor,Za as registerProcessor,Ja as registerTheme,Ua as registerTransform,$a as registerUpdateLifecycle,Ka as registerVisual,Wa as setCanvasCreator,ns as setPlatformAPI,Xa as throttle,ca as time,Ya as use,ua as util,is as vector,Qa as version,os as zrUtil,ls as zrender};
@@ -0,0 +1 @@
1
+ import{V as U,p as L,g as O,h as P,f as j,o as k,n as X,d as Y,q as $,l as Q}from"./graphic-Cay9kDL2.js";import{bV as I,bW as Z,bX as ee,bY as ae,bZ as ne,b_ as ie,bs as W,b$ as re,c0 as oe,c1 as te,c2 as se,c3 as le,bP as R,c4 as q,bK as fe,e as de,ah as ce,bC as ue,bJ as me,c5 as ve}from"./Axis-hDyHms34.js";function be(a,e){return z(a,e).dimensions}function z(a,e){I(a)||(a=Z(a)),e=e||{};var o=e.coordDimensions||[],n=e.dimensionsDefine||a.dimensionsDefine||[],r=U(),i=[],s=De(a,o,n,e.dimensionsCount),u=e.canOmitUnusedDimensions&&ee(s),c=n===a.dimensionsDefine,C=c?ae(a):ne(n),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(a,s));for(var x=U(h),S=new ie(s),g=0;g<S.length;g++)S[g]=-1;function M(l){var f=S[l];if(f<0){var d=n[l],v=k(d)?d:{name:d},t=new le,p=v.name;p!=null&&C.get(p)!=null&&(t.name=t.displayName=p),v.type!=null&&(t.type=v.type),v.displayName!=null&&(t.displayName=v.displayName);var m=i.length;return S[l]=m,t.storeDimIndex=l,i.push(t),t}return i[f]}if(!u)for(var g=0;g<s;g++)M(g);x.each(function(l,f){var d=W(l).slice();if(d.length===1&&!L(d[0])&&d[0]<0){x.set(f,!1);return}var v=x.set(f,[]);O(d,function(t,p){var m=L(t)?C.get(t):t;m!=null&&m<s&&(v[p]=m,V(M(m),f,p))})});var D=0;O(o,function(l){var f,d,v,t;if(L(l))f=l,t={};else{t=l,f=t.name;var p=t.ordinalMeta;t.ordinalMeta=null,t=P({},t),t.ordinalMeta=p,d=t.dimsDef,v=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var m=x.get(f);if(m!==!1){if(m=W(m),!m.length)for(var B=0;B<(d&&d.length||1);B++){for(;D<s&&M(D).coordDim!=null;)D++;D<s&&m.push(D++)}O(m,function(J,K){var N=M(J);if(c&&t.type!=null&&(N.type=t.type),V(j(N,t),f,K),N.name==null&&d){var F=d[K];!k(F)&&(F={name:F}),N.name=N.displayName=F.name,N.defaultTooltip=F.defaultTooltip}v&&j(N.otherDims,v)})}});function V(l,f,d){re.get(f)!=null?l.otherDims[f]=d:(l.coordDim=f,l.coordDimIndex=d,r.set(f,!0))}var E=e.generateCoord,A=e.generateCoordCount,_=A!=null;A=E?A||1:0;var G=E||"value";function w(l){l.name==null&&(l.name=l.coordDim)}if(u)O(i,function(l){w(l)}),i.sort(function(l,f){return l.storeDimIndex-f.storeDimIndex});else for(var T=0;T<s;T++){var y=M(T),H=y.coordDim;H==null&&(y.coordDim=ye(G,r,_),y.coordDimIndex=0,(!E||A<=0)&&(y.isExtraCoord=!0),A--),w(y),y.type==null&&(oe(a,T)===te.Must||y.isExtraCoord&&(y.otherDims.itemName!=null||y.otherDims.seriesName!=null))&&(y.type="ordinal")}return ge(i),new se({source:a,dimensions:i,fullDimensionCount:s,dimensionOmitted:u})}function ge(a){for(var e=U(),o=0;o<a.length;o++){var n=a[o],r=n.name,i=e.get(r)||0;i>0&&(n.name=r+(i-1)),i++,e.set(r,i)}}function De(a,e,o,n){var r=Math.max(a.dimensionsDetectedCount||1,e.length,o.length,n||0);return O(e,function(i){var s;k(i)&&(s=i.dimsDef)&&(r=Math.max(r,s.length))}),r}function ye(a,e,o){if(o||e.hasKey(a)){for(var n=0;e.hasKey(a+n);)n++;a+=n}return e.set(a,!0),a}var xe=(function(){function a(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return a})();function Ce(a){var e=a.get("coordinateSystem"),o=new xe(e),n=he[e];if(n)return n(a,o,o.axisMap,o.categoryAxisMap),o}var he={cartesian2d:function(a,e,o,n){var r=a.getReferringComponents("xAxis",R).models[0],i=a.getReferringComponents("yAxis",R).models[0];e.coordSysDims=["x","y"],o.set("x",r),o.set("y",i),b(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),b(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(a,e,o,n){var r=a.getReferringComponents("singleAxis",R).models[0];e.coordSysDims=["single"],o.set("single",r),b(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(a,e,o,n){var r=a.getReferringComponents("polar",R).models[0],i=r.findAxisModel("radiusAxis"),s=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],o.set("radius",i),o.set("angle",s),b(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),b(s)&&(n.set("angle",s),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(a,e,o,n){e.coordSysDims=["lng","lat"]},parallel:function(a,e,o,n){var r=a.ecModel,i=r.getComponent("parallel",a.get("parallelIndex")),s=e.coordSysDims=i.dimensions.slice();O(i.parallelAxisIndex,function(u,c){var C=r.getComponent("parallelAxis",u),h=s[c];o.set(h,C),b(C)&&(n.set(h,C),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=c))})},matrix:function(a,e,o,n){var r=a.getReferringComponents("matrix",R).models[0];e.coordSysDims=["x","y"];var i=r.getDimensionModel("x"),s=r.getDimensionModel("y");o.set("x",i),o.set("y",s),n.set("x",i),n.set("y",s)}};function b(a){return a.get("type")==="category"}function pe(a,e){var o=a.get("coordinateSystem"),n=ue.get(o),r;return e&&e.coordSysDims&&(r=$(e.coordSysDims,function(i){var s={name:i},u=e.axisMap.get(i);if(u){var c=u.get("type");s.type=me(c)}return s})),r||(r=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),r}function Se(a,e,o){var n,r;return o&&O(a,function(i,s){var u=i.coordDim,c=o.categoryAxisMap.get(u);c&&(n==null&&(n=s),i.ordinalMeta=c.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(r=!0)}),!r&&n!=null&&(a[n].otherDims.itemName=0),n}function Ee(a,e,o){o=o||{};var n=e.getSourceManager(),r,i=!1;a?(i=!0,r=Z(a)):(r=n.getSource(),i=r.sourceFormat===q);var s=Ce(e),u=pe(e,s),c=o.useEncodeDefaulter,C=X(c)?c:c?Y(fe,u,e):null,h={coordDimensions:u,generateCoord:o.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:C,canOmitUnusedDimensions:!i},x=z(r,h),S=Se(x.dimensions,o.createInvertedIndices,s),g=i?null:n.getSharedDataStore(x),M=de(e,{schema:x,store:g}),D=new ce(x,e);D.setCalculationInfo(M);var V=S!=null&&Me(r)?function(E,A,_,G){return G===S?_:this.defaultDimValueGetter(E,A,_,G)}:null;return D.hasItemOption=!1,D.initData(i?r:g,null,V),D}function Me(a){if(a.sourceFormat===q){var e=Ae(a.data||[]);return!Q(ve(e))}}function Ae(a){for(var e=0;e<a.length&&a[e]==null;)e++;return a[e]}export{be as a,Ee as c,z as p};
@@ -0,0 +1,3 @@
1
+ import{db as fn,dc as pt,dd as at,cj as tr,de as cn,cl as me,cm as Ye,df as Ri,dg as Jr,aQ as P,b as Lr,bG as vn,bH as pn,a4 as wt,b4 as Di,_ as hn,aZ as tt,bO as Tt,aY as Cr,aV as Mr,f as Le,bn as $r,bg as Er,b2 as gn,ce as dn,cg as rr,aR as D,ad as Re,bP as xe,A as Pr,dh as ki,cp as Oi,ag as Rr,b9 as oe,di as Ce,a as yn,cb as Dr,L as Me,cd as ht,C as mn,M as Xe,dj as Bi,dk as Gi,r as gt,dl as Ue,dm as ar,cS as nr,dn as Ii,dp as zi,dq as Vi,dr as It,D as We,bq as Lt,h as Ct,c as xn,ca as Fi,bA as bn,n as ir,ds as He,cn as Kr,ct as qr,dt as Ni,ae as De,cc as _n,I as Sn,Q as Wi,O as Mt,P as Et,a1 as Qr,w as J,av as Yi,cX as or,du as Xi,J as Ui,R as Hi,N as Zi,dv as ji,dw as Ji,au as $i,cA as Ki,bo as An,bQ as qi,dx as Qi,bB as eo,bc as to,cH as ro,s as Ze,H as ao,aP as ea,bs as je,c6 as no,c7 as io,c8 as oo,bz as so,k as lo,bu as uo,d0 as fo,Z as co,T as vo,dy as wn}from"./Axis-hDyHms34.js";import{l as $,E as G,a as Tn,h as F,G as O,o as ne,m as Pt,f as N,r as W,g as b,q as V,i as Rt,ay as kr,B as z,aI as ie,T as po,P as Je,av as Or,a7 as $e,Z as Ln,p as q,a4 as rt,n as Br,aL as ta,R as Q,aM as ho,aH as sr,I as Cn,j as fe,_ as se,U as go,ak as yo,d as re,c as H,V as I,$ as Mn,b as U,aN as ra,au as aa,aO as En,at as w,aP as mo,aF as Pn,aQ as xo,aG as ct,aE as bo,a1 as _o,a0 as Rn,Y as Dn,C as So,a3 as lr,aR as nt,aS as Ao,af as wo,ap as To,aT as Lo,aU as Co,s as kn,aV as zt,a6 as Mo,a5 as Vt,a9 as On,L as Bn,ac as Eo,aW as Ke,aX as Po,aJ as Ro}from"./graphic-Cay9kDL2.js";var na=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Do=1,dt=2,Gn=Do|dt;function yt(r,e,t){t=t||Gn,e?r.dirty|=t:r.dirty&=~t}function In(r,e){return e=e||Gn,r.dirty==null||!!(r.dirty&e)}function ce(r){if(r)return In(r)&&ko(r,r.label,r),r}function ko(r,e,t){var a=e.getComputedTransform();r.transform=fn(r.transform,a);var n=r.localRect=pt(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=at.textMargin);for(var c=0;c<4;c++)Ft[c]=f===at.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===at.textMargin&&tr(n,Ft,!1,!1);var p=r.rect=pt(r.rect,n);return a&&p.applyTransform(a),f===at.minMargin&&tr(p,Ft,!1,!1),r.axisAligned=cn(a),(r.label=r.label||{}).ignore=e.ignore,yt(r,!1),yt(r,!0,dt),r}var Ft=[0,0,0,0];function Oo(r,e,t){return r.transform=fn(r.transform,t),r.localRect=pt(r.localRect,e),r.rect=pt(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=cn(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Bo(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 a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function ia(r,e){for(var t=0;t<na.length;t++){var a=na[t];r[a]==null&&(r[a]=e[a])}return ce(r)}function oa(r){var e=r.obb;return(!e||In(r,dt))&&(r.obb=e=e||new Ri,e.fromBoundingRect(r.localRect,r.transform),yt(r,!1,dt)),e}function Du(r,e,t,a,n){var i=r.length,o=me[e],s=Ye[e];if(i<2)return!1;r.sort(function(_,E){return _.rect[o]-E.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var p=r[c],v=p.rect;u=v[o]-l,u<0&&(v[o]-=u,p.label[o]-=u,f=!0),l=v[o]+v[s]}var h=r[0],g=r[i-1],d,y;m(),d<0&&L(-d,.8),y<0&&L(y,.8),m(),x(d,y,1),x(y,d,-1),m(),d<0&&C(-d),y<0&&C(y);function m(){d=h.rect[o]-t,y=a-g.rect[o]-g.rect[s]}function x(_,E,M){if(_<0){var T=Math.min(E,-_);if(T>0){S(T*M,0,i);var A=T+_;A<0&&L(-A*M,1)}else L(-_*M,1)}}function S(_,E,M){_!==0&&(f=!0);for(var T=E;T<M;T++){var A=r[T],R=A.rect;R[o]+=_,A.label[o]+=_}}function L(_,E){for(var M=[],T=0,A=1;A<i;A++){var R=r[A-1].rect,k=Math.max(r[A].rect[o]-R[o]-R[s],0);M.push(k),T+=k}if(T){var Z=Math.min(Math.abs(_)/T,E);if(_>0)for(var A=0;A<i-1;A++){var B=M[A]*Z;S(B,0,A+1)}else for(var A=i-1;A>0;A--){var B=M[A-1]*Z;S(-B,A,i)}}}function C(_){var E=_<0?-1:1;_=Math.abs(_);for(var M=Math.ceil(_/(i-1)),T=0;T<i-1;T++)if(E>0?S(M,0,T+1):S(-M,i-T-1,i),_-=M,_<=0)return}return f}function Go(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=ce(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Gr(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(n)}}}function Gr(r,e,t,a){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a)?!1:r.axisAligned&&e.axisAligned?!0:oa(r).intersect(oa(e),t,a)}function Io(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=Jr(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(Jr(r,e,t[o]));return i.join(" ")}}function ku(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!$(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var zo=(function(r){P(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o,s){this.removeAll();var l=Lr(t,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Vo,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(){vn(this.childAt(0))},e.prototype.downplay=function(){pn(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var p=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,p)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(h):wt(v,h,s,a),Di(v)}if(this._updateCommon(t,a,l,n,i),f){var v=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,hn(v,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,c,p,v,h,g,d,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,p=i.focus,v=i.blurScope,g=i.labelStatesModels,d=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),v=x.get("blurScope"),h=x.get("disabled"),g=tt(m),d=x.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var L=Tt(t.getItemVisual(a,"symbolOffset"),n);L&&(s.x=L[0],s.y=L[1]),y&&s.attr("cursor",y);var C=t.getItemVisual(a,"style"),_=C.fill;if(s instanceof Tn){var E=s.style;s.useStyle(F({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},C))}else s.__isEmptyBrush?s.useStyle(F({},C)):s.useStyle(C),s.style.decal=null,s.setColor(_,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=t.getItemVisual(a,"liftZ"),T=this._z2;M!=null?T==null&&(this._z2=s.z2,s.z2+=M):T!=null&&(s.z2=T,this._z2=null);var A=o&&o.useNameLabel;Cr(s,g,{labelFetcher:l,labelDataIndex:a,defaultText:R,inheritColor:_,defaultOpacity:C.opacity});function R(B){return A?t.getName(B):Io(t,B)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var Z=d==null||d===!0?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;k.scaleX=this._sizeX*Z,k.scaleY=this._sizeY*Z,this.setSymbolScale(1),Mr(this,p,v,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=Le(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&$r(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();$r(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Er(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e})(O);function Vo(r,e){this.parent.drift(r,e)}function Nt(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function sa(r){return r!=null&&!ne(r)&&(r={isIgnore:r}),r||{}}function la(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:tt(e),cursorStyle:e.get("cursor")}}var Ou=(function(){function r(e){this.group=new O,this._SymbolCtor=e||zo}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=sa(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=la(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||a.removeAll(),e.diff(i).add(function(c){var p=f(c);if(Nt(e,p,c,t)){var v=new o(e,c,l,u);v.setPosition(p),e.setItemGraphicEl(c,v),a.add(v)}}).update(function(c,p){var v=i.getItemGraphicEl(p),h=f(c);if(!Nt(e,h,c,t)){a.remove(v);return}var g=e.getItemVisual(c,"symbol")||"circle",d=v&&v.getSymbolType&&v.getSymbolType();if(!v||d&&d!==g)a.remove(v),v=new o(e,c,l,u),v.setPosition(h);else{v.updateData(e,c,l,u);var y={x:h[0],y:h[1]};s?v.attr(y):wt(v,y,n)}a.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var p=i.getItemGraphicEl(c);p&&p.fadeOut(function(){a.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=la(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=sa(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Nt(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){gn(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function Bu(r,e){return r.type===e}var zn={left:0,right:0,top:0,bottom:0},mt=["25%","25%"],Fo=(function(r){P(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var n=dn(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&rr(t.outerBounds,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&rr(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:zn,outerBoundsContain:"all",outerBoundsClampWidth:mt[0],outerBoundsClampHeight:mt[1],backgroundColor:D.color.transparent,borderWidth:1,borderColor:D.color.neutral30},e})(Re),ur=(function(r){P(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",xe).models[0]},e.type="cartesian2dAxis",e})(Re);Pt(ur,Pr);var Vn={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:!0,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"}},No=W({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Vn),Ir=W({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}}},Vn),Wo=W({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ir),Yo=N({logBase:10},Ir);const Fn={category:No,value:Ir,time:Wo,log:Yo};var Xo={value:1,category:1,time:1,log:1},Uo=null;function Ho(){return Uo}function fr(r,e,t,a){b(Xo,function(n,i){var o=W(W({},Fn[i],!0),a,!0),s=(function(l){P(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=ki(this),v=p?dn(f):{},h=c.getTheme();W(f,h.get(i+"Axis")),W(f,this.getDefaultOption()),f.type=ua(f),p&&rr(f,v,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Oi.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",ua)}function ua(r){return r.type||(r.data?"category":"value")}var Zo=(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 V(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Rt(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})(),cr=["x","y"];function fa(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var jo=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=cr,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!fa(t)||!fa(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,v=o[1]-i[0]*c,h=this._transform=[f,0,0,c,p,v];this._invTransform=kr([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.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,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new z(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ie(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a,n){if(n=n||[],this._invTransform)return ie(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new z(i,o,s,l)},e})(Zo),Jo=(function(r){P(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(Rr),$o="expandAxisBreak",ue=Math.PI,Ko=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],qo=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],qe=oe(),Nn=oe(),Wn=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[t]||(n[t]=[]);return i[a]||(i[a]={ready:{}})},r})();function Qo(r,e,t,a){var n=t.axis,i=e.ensureRecord(t),o=[],s,l=zr(r.axisName)&&Ce(r.nameLocation);b(a,function(h){var g=ce(h);if(!(!g||g.label.ignore)){o.push(g);var d=i.transGroup;l&&(d.transform?kr(ke,d.transform):ho(ke),g.transform&&sr(ke,ke,g.transform),z.copy(it,g.localRect),it.applyTransform(ke),s?s.union(it):z.copy(s=new z(0,0,0,0),it))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(h,g){return Math.abs(h.label[u]-f)-Math.abs(g.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-p;s.union(new z(p,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var ke=rt(),it=new z(0,0,0,0),Yn=function(r,e,t,a,n,i){if(Ce(r.nameLocation)){var o=i.stOccupiedRect;o&&Xn(Oo({},o,i.transGroup.transform),a,n)}else Un(i.labelInfoList,i.dirVec,a,n)};function Xn(r,e,t){var a=new Je;Gr(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Bo(e,a)}function Un(r,e,t,a){for(var n=Je.dot(a,e)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||Xn(s,t,a)}}var ae=(function(){function r(e,t,a,n){this.group=new O,this._axisModel=e,this._api=t,this._local={},this._shared=n||new Wn(Yn),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},n=G(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=G(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:n,nameLocation:po(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:zr(n)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new O({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new Je(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(es,function(n){e[n]&&ts[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var n=mn(t-e),i,o;return gt(n)?(o=a>0?"top":"bottom",i="center"):gt(n-ue)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<ue?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},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})(),es=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],ts={axisLine:function(r,e,t,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],p=f[0]>c[0];u&&(ie(f,f,u),ie(c,c,u));var v=F({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),h={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())Ho().buildAxisBreakLine(a,n,i,h);else{var g=new Me(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},h));ht(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var d=a.get(["axisLine","symbol"]);if(d!=null){var y=a.get(["axisLine","symbolSize"]);q(d)&&(d=[d,d]),(q(y)||Cn(y))&&(y=[y,y]);var m=Tt(a.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];b([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(L,C){if(d[C]!=="none"&&d[C]!=null){var _=Lr(d[C],-x/2,-S/2,x,S,v.stroke,!0),E=L.r+L.offset,M=p?c:f;_.attr({rotation:L.rotate,x:M[0]+E*Math.cos(r.rotation),y:M[1]-E*Math.sin(r.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabelEstimate:function(r,e,t,a,n,i,o,s){var l=va(e,n,s);l&&ca(r,e,t,a,n,i,o,Ue.estimate)},axisTickLabelDetermine:function(r,e,t,a,n,i,o,s){var l=va(e,n,s);l&&ca(r,e,t,a,n,i,o,Ue.determine);var u=is(r,n,i,a);ns(r,e.labelLayoutList,u),os(r,n,i,a,r.tickDirection)},axisName:function(r,e,t,a,n,i,o,s){var l=t.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(zr(u)){var f=r.nameLocation,c=r.nameDirection,p=a.getModel("nameTextStyle"),v=a.get("nameGap")||0,h=a.axis.getExtent(),g=a.axis.inverse?-1:1,d=new Je(0,0),y=new Je(0,0);f==="start"?(d.x=h[0]-g*v,y.x=-g):f==="end"?(d.x=h[1]+g*v,y.x=g):(d.x=(h[0]+h[1])/2,d.y=r.labelOffset+c*v,y.y=c);var m=rt();y.transform(Or(m,m,r.rotation));var x=a.get("nameRotate");x!=null&&(x=x*ue/180);var S,L;Ce(f)?S=ae.innerTextLayout(r.rotation,x??r.rotation,c):(S=rs(r.rotation,f,x||0,h),L=r.raw.axisNameAvailableWidth,L!=null&&(L=Math.abs(L/Math.sin(S.rotation)),!isFinite(L)&&(L=null)));var C=p.getFont(),_=a.get("nameTruncate",!0)||{},E=_.ellipsis,M=$e(r.raw.nameTruncateMaxWidth,_.maxWidth,L),T=s.nameMarginLevel||0,A=new Ln({x:d.x,y:d.y,rotation:S.rotation,silent:ae.isLabelSilent(a),style:yn(p,{text:u,font:C,overflow:"truncate",width:M,ellipsis:E,fill:p.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:p.get("align")||S.textAlign,verticalAlign:p.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Dr({el:A,componentModel:a,itemName:u}),A.__fullText=u,A.anid="name",a.get("triggerEvent")){var R=ae.makeAxisEventDataBase(a);R.targetType="axisName",R.name=u,Le(A).eventData=R}i.add(A),A.updateTransform(),e.nameEl=A;var k=l.nameLayout=ce({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Ce(f)?Ko[T]:qo[T]});if(l.nameLocation=f,n.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&k){var Z=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,k,y,Z)}}}};function ca(r,e,t,a,n,i,o,s){Zn(e)||ss(r,e,n,s,a,o);var l=e.labelLayoutList;ls(r,a,l,i),r.rotation;var u=r.optionHideOverlap;as(a,l,u),u&&Go(Rt(l,function(f){return f&&!f.label.ignore})),Qo(r,t,a,l)}function rs(r,e,t,a){var n=mn(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return gt(n-ue/2)?(o=l?"bottom":"top",i="center"):gt(n-ue*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<ue*1.5&&n>ue/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function as(r,e,t){if(Bi(r.axis))return;function a(s,l,u){var f=ce(e[l]),c=ce(e[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Fe(f.label);return}if(c.suggestIgnore){Fe(c.label);return}var p=.1;if(!t){var v=[0,0,0,0];f=ia({marginForce:v},f),c=ia({marginForce:v},c)}Gr(f,c,null,{touchThreshold:p})&&Fe(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;a(n,0,1),a(i,o-1,o-2)}function ns(r,e,t){r.showMinorTicks||b(e,function(a){if(a&&a.label.ignore)for(var n=0;n<t.length;n++){var i=t[n],o=Nn(i),s=qe(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Fe(i);return}}})}function Fe(r){r&&(r.ignore=!0)}function Hn(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ie(o,o,e),ie(s,s,e));var f=new Me({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});ht(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var c=Nn(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function is(r,e,t,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=Hn(u,t.transform,l,N(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function os(r,e,t,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=N(l.getLineStyle(),N(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=Hn(s[c],t.transform,u,f,"minorticks_"+c),v=0;v<p.length;v++)e.add(p[v])}}function va(r,e,t){if(Zn(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(r.labelGroup),vr(r,null,null,null))}return!0}function ss(r,e,t,a,n,i){var o=n.axis,s=$e(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new O;t.add(l);var u=Gi(a);if(!s||o.scale.isBlank()){vr(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=($e(r.raw.labelRotate,f.get("rotate"))||0)*ue/180,v=ae.innerTextLayout(r.rotation,p,r.labelDirection),h=n.getCategories&&n.getCategories(!0),g=[],d=n.get("triggerEvent"),y=1/0,m=-1/0;b(c,function(S,L){var C,_=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,E=S.formattedLabel,M=S.rawLabel,T=f;if(h&&h[_]){var A=h[_];ne(A)&&A.textStyle&&(T=new Xe(A.textStyle,f,n.ecModel))}var R=T.getTextColor()||n.get(["axisLine","lineStyle","color"]),k=T.getShallow("align",!0)||v.textAlign,Z=G(T.getShallow("alignMinLabel",!0),k),B=G(T.getShallow("alignMaxLabel",!0),k),j=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||v.textVerticalAlign,pe=G(T.getShallow("verticalAlignMinLabel",!0),j),he=G(T.getShallow("verticalAlignMaxLabel",!0),j),Bt=10+(((C=S.time)===null||C===void 0?void 0:C.level)||0);y=Math.min(y,Bt),m=Math.max(m,Bt);var le=new Ln({x:0,y:0,rotation:0,silent:ae.isLabelSilent(n),z2:Bt,style:yn(T,{text:E,align:L===0?Z:L===c.length-1?B:k,verticalAlign:L===0?pe:L===c.length-1?he:j,fill:Br(R)?R(o.type==="category"?M:o.type==="value"?_+"":_,L):R})});le.anid="label_"+_;var Gt=qe(le);if(Gt.break=S.break,Gt.tickValue=_,Gt.layoutRotation=v.rotation,Dr({el:le,componentModel:n,itemName:E,formatterParamsExtra:{isTruncated:function(){return le.isTruncated},value:M,tickIndex:L}}),d){var Se=ae.makeAxisEventDataBase(n);Se.targetType="axisLabel",Se.value=M,Se.tickIndex=L,S.break&&(Se.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(Se.dataIndex=_),Le(le).eventData=Se,S.break&&fs(n,i,le,S.break)}g.push(le),l.add(le)});var x=V(g,function(S){return{label:S,priority:qe(S).break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});vr(e,x,l,u)}function Zn(r){return!!r.labelLayoutList}function vr(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}function ls(r,e,t,a){var n=e.get(["axisLabel","margin"]);b(t,function(i,o){var s=ce(i);if(s){var l=s.label,u=qe(l);s.suggestIgnore=l.ignore,l.ignore=!1,ta(ee,us),ee.x=e.axis.dataToCoord(u.tickValue),ee.y=r.labelOffset+r.labelDirection*n,ee.rotation=u.layoutRotation,a.add(ee),ee.updateTransform(),a.remove(ee),ee.decomposeTransform(),ta(l,ee),l.markRedraw(),yt(s,!0),ce(s)}})}var ee=new Q,us=new Q;function zr(r){return!!r}function fs(r,e,t,a){t.on("click",function(n){var i={type:$o,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function jn(r,e,t){t=t||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));p[f.onZero]=Math.max(Math.min(v,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=h[o],n.labelOffset=i?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),$e(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-g:g,n.z2=1,n}function cs(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function pa(r){var e={xAxisModel:null,yAxisModel:null};return b(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,xe).models[0];e[a]=i}),e}function vs(r,e,t,a,n,i){for(var o=jn(r,t),s=!1,l=!1,u=0;u<e.length;u++)ar(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new ae(t,a,o,n)}function ps(r,e,t){var a=jn(e,t);r.updateCfg(a)}function Jn(r,e,t){var a=nr.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(t),l=Ii(r,e),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=zi(r.base,u,!0)),r.setBreaksFromOption(Vi(e)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var p=a.getExtent.call(r);f&&(u[0]=p[0]),c&&(u[1]=p[1]);var v=a.getInterval.call(r),h=u[0],g=u[1];if(f&&c)v=(g-h)/o;else if(f)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=It(v),g=u[0]+v*o;else if(c)for(h=u[1]-v*o;h>u[0]&&isFinite(h)&&isFinite(u[0]);)v=It(v),h=u[1]-v*o;else{var d=r.getTicks().length-1;d>o&&(v=It(v));var y=v*o;g=Math.ceil(u[1]/v)*v,h=We(g-y),h<0&&u[0]>=0?(h=0,g=We(y)):g>0&&u[1]<=0&&(g=0,h=-We(y))}var m=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,h+v*m,g+v*x),a.setInterval.call(r,v),(m||x)&&a.setNiceExtent.call(r,h+v,g-v)}var ha=[[3,1],[0,2]],hs=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cr,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=se(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var p=+l[c],v=o[p],h=v.model,g=v.scale;ar(g)&&h.get("alignTicks")&&h.get("interval")==null?f.push(v):(ir(g,h),ar(g)&&(s=v))}f.length&&(s||(s=f.pop(),ir(s.scale,s.model)),b(f,function(d){Jn(d.scale,d.model,s.scale)}))}}n(a.x),n(a.y);var i={};b(a.x,function(o){ga(a,"y",o,i)}),b(a.y,function(o){ga(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=Lt(e,t),i=this._rect=Ct(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if($n(o,i),!a){var u=ds(i,s,o,l,t),f=void 0;if(l)f=ma(i.clone(),"axisLabel",null,i,o,u,n);else{var c=ys(e,i,n),p=c.outerBoundsRect,v=c.parsedOuterBoundsContain,h=c.outerBoundsClamp;p&&(f=ma(p,v,h,i,o,u,n))}Kn(i,o,Ue.determine,null,f,n)}b(this._coordsList,function(g){g.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}ne(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",xe).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",xe).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,fe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===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,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,c){b(s.y,function(p,v){var h="x"+c+"y"+v,g=new jo(h);g.master=n,g.model=e,n._coordsMap[h]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(p)})});function u(f){return function(c,p){if(Wt(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var h=new Jo(f,xn(c),[0,0],c.get("type"),v),g=h.type==="category";h.onBand=g&&c.get("boundaryGap"),h.inverse=c.get("inverse"),c.axis=h,h.model=c,h.grid=i,h.index=p,i._axesList.push(h),s[f][p]=h,l[f]++}}}},r.prototype._updateScale=function(e,t){b(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(cs(n)){var i=pa(n),o=i.xAxisModel,s=i.yAxisModel;if(!Wt(o,t)||!Wt(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),c=l.getAxis("y");a(u,f),a(u,c)}},this);function a(n,i){b(Fi(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return b(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);fe(t,i)<0&&t.push(i),fe(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){bn({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=pa(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=cr,r})();function Wt(r,e){return r.getCoordSysModel()===e}function ga(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)da(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&da(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function da(r){return r&&r.type!=="category"&&r.type!=="time"&&Ni(r)}function gs(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function $n(r,e){b(r.x,function(t){return ya(t,e.x,e.width)}),b(r.y,function(t){return ya(t,e.y,e.height)})}function ya(r,e,t){var a=[0,t],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),gs(r,e)}function ma(r,e,t,a,n,i,o){Kn(a,n,Ue.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=go(s,function(p){return p>0})==null;return tr(a,s,!0,!0,t),$n(n,a),l;function u(p){b(n[me[p]],function(v){if(He(v.model)){var h=i.ensureRecord(v.model),g=h.labelInfoList;if(g)for(var d=0;d<g.length;d++){var y=g[d],m=v.scale.normalize(qe(y.label).tickValue);m=p===1?1-m:m,f(y.rect,p,m),f(y.rect,1-p,NaN)}var x=h.nameLayout;if(x){var m=Ce(h.nameLocation)?.5:NaN;f(x.rect,p,m),f(x.rect,1-p,NaN)}}})}function f(p,v,h){var g=r[me[v]]-p[me[v]],d=p[Ye[v]]+p[me[v]]-(r[Ye[v]]+r[me[v]]);g=c(g,1-h),d=c(d,h);var y=ha[v][0],m=ha[v][1];s[y]=Kr(s[y],g),s[m]=Kr(s[m],d)}function c(p,v){return p>0&&!yo(v)&&v>1e-4&&(p/=v),p}}function ds(r,e,t,a,n){var i=new Wn(ms);return b(t,function(o){return b(o,function(s){if(He(s.model)){var l=!a;s.axisBuilder=vs(r,e,s.model,n,i,l)}})}),i}function Kn(r,e,t,a,n,i){var o=t===Ue.determine;b(e,function(u){return b(u,function(f){He(f.model)&&(ps(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[me[1-u]]=r[Ye[u]]<=i.refContainer[Ye[u]]*.5?0:1-u===1?2:1}b(e,function(u,f){return b(u,function(c){He(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function ys(r,e,t){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=Ct(r.get("outerBounds",!0)||zn,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||fe(["all","axisLabel"],i)<0?o="all":o=i;var s=[qr(G(r.get("outerBoundsClampWidth",!0),mt[0]),e.width),qr(G(r.get("outerBoundsClampHeight",!0),mt[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var ms=function(r,e,t,a,n,i){var o=t.axis.dim==="x"?"y":"x";Yn(r,e,t,a,n,i),Ce(r.nameLocation)||b(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Un(s.labelInfoList,s.dirVec,a,n)})};function Gu(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xs(t,r,e),t.seriesInvolved&&_s(t,r),t}function xs(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];b(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=xt(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(b(s.getAxes(),re(g,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var p=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||v)&&b(h.baseAxes,re(g,v?"cross":!0,p)),v&&b(h.otherAxes,re(g,"cross",!1))}function g(d,y,m){var x=m.model.getModel("axisPointer",n),S=x.get("show");if(!(!S||S==="auto"&&!d&&!pr(x))){y==null&&(y=x.get("triggerTooltip")),x=d?bs(m,c,n,e,d,y):x;var L=x.get("snap"),C=x.get("triggerEmphasis"),_=xt(m.model),E=y||L||m.type==="category",M=r.axesInfo[_]={key:_,axis:m,coordSys:s,axisPointerModel:x,triggerTooltip:y,triggerEmphasis:C,involveSeries:E,snap:L,useHandle:pr(x),seriesModels:[],linkGroup:null};u[_]=M,r.seriesInvolved=r.seriesInvolved||E;var T=Ss(i,m);if(T!=null){var A=o[T]||(o[T]={axesInfo:{}});A.axesInfo[_]=M,A.mapper=i[T].mapper,M.linkGroup=A}}}})}function bs(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(p){l[p]=H(o.get(p))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&N(u,c.textStyle)}}return r.model.getModel("axisPointer",new Xe(l,t,a))}function _s(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||b(r.coordSysAxesInfo[xt(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Ss(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Yt(i[a+"AxisId"],t.id)||Yt(i[a+"AxisIndex"],t.componentIndex)||Yt(i[a+"AxisName"],t.name))return n}}function Yt(r,e){return r==="all"||$(r)&&fe(r,e)>=0||r===e}function As(r){var e=qn(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=pr(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function qn(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xt(r)]}function ws(r){var e=qn(r);return e&&e.axisPointerModel}function pr(r){return!!r.get(["handle","show"])}function xt(r){return r.type+"||"+r.id}var xa={},Ts=(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,a,n,i){this.axisPointerClass&&As(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=ws(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){xa[t]=a},e.getAxisPointerClass=function(t){return t&&xa[t]},e.type="axis",e})(De),hr=oe();function Ls(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=hr(r).splitAreaColors,p=I(),v=0;if(c)for(var h=0;h<u.length;h++){var g=c.get(u[h].tickValue);if(g!=null){v=(g+(f-1)*h)%f;break}}var d=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=$(s)?s:[s];for(var h=1;h<u.length;h++){var m=n.toGlobalCoord(u[h].coord),x=void 0,S=void 0,L=void 0,C=void 0;n.isHorizontal()?(x=d,S=l.y,L=m-x,C=l.height,d=x+L):(x=l.x,S=d,L=l.width,C=m-S,d=S+C);var _=u[h-1].tickValue;_!=null&&p.set(_,v),e.add(new Q({anid:_!=null?"area_"+_:null,shape:{x,y:S,width:L,height:C},style:N({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}hr(r).splitAreaColors=p}}}function Cs(r){hr(r).splitAreaColors=null}var Ms=["splitArea","splitLine","minorSplitLine","breakArea"],Qn=(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,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new O,this.group.add(this._axisGroup),!!He(t)){this._axisGroup.add(t.axis.axisBuilder.group),b(Ms,function(l){t.get([l,"show"])&&Es[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||_n(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){Cs(this)},e.type="cartesianAxis",e})(Ts),Es={splitLine:function(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=$(l)?l:[l];for(var c=a.coordinateSystem.getRect(),p=i.isHorizontal(),v=0,h=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],d=[],y=s.getLineStyle(),m=0;m<h.length;m++){var x=i.toGlobalCoord(h[m].coord);if(!(m===0&&!u||m===h.length-1&&!f)){var S=h[m].tickValue;p?(g[0]=x,g[1]=c.y,d[0]=x,d[1]=c.y+c.height):(g[0]=c.x,g[1]=x,d[0]=c.x+c.width,d[1]=x);var L=v++%l.length,C=new Me({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:d[0],y2:d[1]},style:N({stroke:l[L]},y),silent:!0});ht(C.shape,y.lineWidth),e.add(C)}}}},minorSplitLine:function(r,e,t,a,n){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],p=[],v=s.getLineStyle(),h=0;h<f.length;h++)for(var g=0;g<f[h].length;g++){var d=i.toGlobalCoord(f[h][g].coord);u?(c[0]=d,c[1]=l.y,p[0]=d,p[1]=l.y+l.height):(c[0]=l.x,c[1]=d,p[0]=l.x+l.width,p[1]=d);var y=new Me({anid:"minor_line_"+f[h][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:v,silent:!0});ht(y.shape,v.lineWidth),e.add(y)}},splitArea:function(r,e,t,a,n){Ls(r,e,t,a)},breakArea:function(r,e,t,a,n){t.axis.scale}},ei=(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})(Qn),Ps=(function(r){P(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ei.type,t}return e.type="yAxis",e})(Qn),Rs=(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,a){this.group.removeAll(),t.get("show")&&this.group.add(new Q({shape:t.coordinateSystem.getRect(),style:N({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(De),ba={offset:0};function Iu(r){r.registerComponentView(Rs),r.registerComponentModel(Fo),r.registerCoordinateSystem("cartesian2d",hs),fr(r,"x",ur,ba),fr(r,"y",ur,ba),r.registerComponentView(ei),r.registerComponentView(Ps),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Oe=Fn.value;function ot(r,e){return N({show:e},r)}var Ds=(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"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),p=this.get("triggerEvent"),v=V(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 g=l;h.color!=null&&(g=N({color:h.color},l));var d=W(H(h),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:p},!1);if(q(f)){var y=d.name;d.name=f.replace("{value}",y??"")}else Br(f)&&(d.name=f(d.name,d));var m=new Xe(d,null,this.ecModel);return Pt(m,Pr.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:D.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:W({lineStyle:{color:D.color.neutral20}},Oe.axisLine),axisLabel:ot(Oe.axisLabel,!1),axisTick:ot(Oe.axisTick,!1),splitLine:ot(Oe.splitLine,!0),splitArea:ot(Oe.splitArea,!0),indicator:[]},e})(Re),ks=(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,a,n){var i=this.group;i.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var n=t.coordinateSystem,i=n.getIndicatorAxes(),o=V(i,function(s){var l=s.model.get("showName")?s.name:"",u=new ae(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});b(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),p=l.get("color"),v=u.get("color"),h=$(p)?p:[p],g=$(v)?v:[v],d=[],y=[];function m(B,j,pe){var he=pe%j.length;return B[he]=B[he]||[],he}if(i==="circle")for(var x=n[0].getTicksCoords(),S=a.cx,L=a.cy,C=0;C<x.length;C++){if(f){var _=m(d,h,C);d[_].push(new Sn({shape:{cx:S,cy:L,r:x[C].coord}}))}if(c&&C<x.length-1){var _=m(y,g,C);y[_].push(new Wi({shape:{cx:S,cy:L,r0:x[C].coord,r:x[C+1].coord}}))}}else for(var E,M=V(n,function(B,j){var pe=B.getTicksCoords();return E=E==null?pe.length-1:Math.min(pe.length-1,E),V(pe,function(he){return a.coordToPoint(he.coord,j)})}),T=[],C=0;C<=E;C++){for(var A=[],R=0;R<n.length;R++)A.push(M[R][C]);if(A[0]&&A.push(A[0].slice()),f){var _=m(d,h,C);d[_].push(new Mt({shape:{points:A}}))}if(c&&T){var _=m(y,g,C-1);y[_].push(new Et({shape:{points:A.concat(T)}}))}T=A.slice().reverse()}var k=l.getLineStyle(),Z=u.getAreaStyle();b(y,function(B,j){this.group.add(Qr(B,{style:N({stroke:"none",fill:g[j%g.length]},Z),silent:!0}))},this),b(d,function(B,j){this.group.add(Qr(B,{style:N({fill:"none",stroke:h[j%h.length]},k),silent:!0}))},this)},e.type="radar",e})(De),Os=(function(r){P(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(Rr),Bs=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=V(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new Os(o,new nr);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=Lt(e,t).refContainer,n=e.get("center"),i=Math.min(a.width,a.height)/2;this.cx=J(n[0],a.width)+a.x,this.cy=J(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(q(o)||Cn(o))&&(o=[0,o]),this.r0=J(o[0],i),this.r=J(o[1],i),b(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;b(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();b(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new nr;o.setExtent(0,i),o.setInterval(1),b(a,function(s,l){Jn(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function zu(r){r.registerCoordinateSystem("radar",Bs),r.registerComponentModel(Ds),r.registerComponentView(ks),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var Vr=oe();function Gs(r,e,t){Vr(r)[e]=t}function Is(r,e,t){var a=Vr(r),n=a[e];n===t&&(a[e]=null)}function _a(r,e){return!!Vr(r)[e]}Yi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Mn);var zs={axisPointer:1,tooltip:1,brush:1};function ti(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||zs.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===t)return!1;var i=or(a),o=or(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Vs=(function(r){P(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=U(a._mousedownHandler,a),i=U(a._mousemoveHandler,a),o=U(a._mouseupHandler,a),s=U(a._mousewheelHandler,a),l=U(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,p=or(c.component),v=p.z,h=p.zlevel,g={component:c.component,z:v,zlevel:h,z2:G(c.z2,-1/0)},d=F({},f.triggerInfo);this._opt=N(F({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:d}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Ge(t,"mousedown",n,g),Ge(t,"mousemove",i,g),Ge(t,"mouseup",o,g)),(u===!0||u==="scale"||u==="zoom")&&(Ge(t,"mousewheel",s,g),Ge(t,"pinch",l,g)))},a.disable=function(){this._enabled=!1,Ie(t,"mousedown",n),Ie(t,"mousemove",i),Ie(t,"mouseup",o),Ie(t,"mousewheel",s),Ie(t,"pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,n){var i=this._opt,o=i.zInfoParsed;if(ti(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,a,n)),u&&s.isInClip&&!s.isInClip(t,a,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,n,i){var o=t.target;if(!o&&this._checkPointer(t,a,n))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(ra(t)||Be(t))){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if(!(t.gestureEvent==="pinch"||_a(a,"globalPan")||Be(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!vt("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&aa(t.event),t.__ecRoamConsumed=!0,Sa(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Be(t)){var a=this._zr;if(!ra(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&a.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!Be(t)){var a=vt("zoomOnMouseWheel",t,this._opt),n=vt("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),p=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(_a(this._zr,"globalPan")||Be(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(aa(i.event),i.__ecRoamConsumed=!0,Sa(t,a,n,i,o))},e})(En);function Be(r){return r.__ecRoamConsumed}var Fs=oe();function Dt(r){var e=Fs(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Ge(r,e,t,a){for(var n=Dt(r),i=n.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),Ns(r,e)}function Ie(r,e,t){for(var a=Dt(r),n=a.roam[e]||[],i=0;i<n.length;i++)if(n[i].listener===t){n.splice(i,1),n.length||Ws(r,e);return}}function Ns(r,e){var t=Dt(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var n=t.roam[e];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function Ws(r,e){var t=Dt(r),a=t.uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function Sa(r,e,t,a,n){n.isAvailableBehavior=U(vt,null,t,a),r.trigger(e,n)}function vt(r,e,t){var a=t[r];return!r||a&&(!q(a)||e.event[a+"Key"])}function ri(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function ai(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=Fr(o,i);var s=o/r.zoom;r.zoom=o,ni(n,t,a,s),n.dirty()}function Vu(r,e,t,a,n,i){var o=new z(0,0,0,0);a.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(u,f,c){return o.copy(t.getBoundingRect()),o.applyTransform(t.getComputedTransform()),o.contain(f,c)},isInClip:function(u,f,c){return!i||i.contain(f,c)}}}),n.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;n.zoom=s?s.getZoom():1;var l=r.subType+"Roam";a.off("pan").off("zoom").on("pan",function(u){ri(n,u.dx,u.dy),e.dispatchAction({seriesId:r.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){ai(n,u.scale,u.originX,u.originY),e.dispatchAction({seriesId:r.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),e.updateLabelLayout()})}function Aa(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Ys(r,e,t){var a=r.getZoom(),n=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(Aa(r,o))),i!=null&&(i=Fr(a*i,t)/a,ni(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(Aa(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function ni(r,e,t,a){r.x-=(e-r.x)*(a-1),r.y-=(t-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function Fr(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}function ii(r){if(q(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 Xt,bt={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"},wa=se(bt),_t={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Ta=se(_t),Xs=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=ii(e);this._defsUsePending=[];var n=new O;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Y(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Zs(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var p=kt(o);p.length>=4&&(f={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(f&&s!=null&&l!=null&&(c=si(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=n;n=new O,n.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Q({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=Xt[s];if(f&&w(Xt,s)){l=f.call(this,e,t);var c=e.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:s,el:l};a.push(p),s==="g"&&(u=p)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var v=La[s];if(v&&w(La,s)){var h=v.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=h)}}if(l&&l.isGroup)for(var d=e.firstChild;d;)d.nodeType===1?this._parseNode(d,l,a,u,i,o):d.nodeType===3&&o&&this._parseText(d,l),d=d.nextSibling},r.prototype._parseText=function(e,t){var a=new mo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});X(t,a),Y(e,a,this._defsUsePending,!1,!1),Us(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){Xt={g:function(e,t){var a=new O;return X(t,a),Y(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Q;return X(t,a),Y(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(e,t){var a=new Sn;return X(t,a),Y(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Me;return X(t,a),Y(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(e,t){var a=new Ui;return X(t,a),Y(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Ea(a));var i=new Et({shape:{points:n||[]},silent:!0});return X(t,i),Y(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Ea(a));var i=new Mt({shape:{points:n||[]},silent:!0});return X(t,i),Y(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new Tn;return X(t,a),Y(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new O;return X(t,s),Y(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new O;return X(t,s),Y(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=Xi(a);return X(t,n),Y(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),La={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Zi(e,t,a,n);return Ca(r,i),Ma(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Hi(e,t,a);return Ca(r,n),Ma(r,n),n}};function Ca(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Ma(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};oi(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Pn(o),u=l&&l[3];u&&(l[3]*=xo(s),o=ct(l,"rgba"))}e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function X(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),N(e.__inheritedStyle,r.__inheritedStyle))}function Ea(r){for(var e=kt(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function Y(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&($s(r,e),oi(r,o,s),a||Ks(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Pa(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Pa(i,"stroke",o.stroke,t)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=V(kt(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Us(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Hs=/^url\(\s*#(.*?)\)/;function Pa(r,e,t,a){var n=t&&t.match(Hs);if(n){var i=bo(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Zs(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var js=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kt(r){return r.match(js)||[]}var Js=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ut=Math.PI/180;function $s(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(Js,function(c,p,v){return a.push(p,v),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=kt(o);switch(n=n||rt(),s){case"translate":Rn(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_o(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Or(n,n,-parseFloat(l[0])*Ut,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ut);sr(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Ut);sr(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Ra=/([^\s:;]+)\s*:\s*([^:;]+)/g;function oi(r,e,t){var a=r.getAttribute("style");if(a){Ra.lastIndex=0;for(var n;(n=Ra.exec(a))!=null;){var i=n[1],o=w(bt,i)?bt[i]:null;o&&(e[o]=n[2]);var s=w(_t,i)?_t[i]:null;s&&(t[s]=n[2])}}}function Ks(r,e,t){for(var a=0;a<wa.length;a++){var n=wa[a],i=r.getAttribute(n);i!=null&&(e[bt[n]]=i)}for(var a=0;a<Ta.length;a++){var n=Ta[a],i=r.getAttribute(n);i!=null&&(t[_t[n]]=i)}}function si(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function qs(r,e){var t=new Xs;return t.parse(r,e)}var Qs=I(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),el=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=I(),this._freedGraphics=[],this._mapName=e,this._parsedXML=ii(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=rl(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&qs(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Dn(a!=null)}catch(d){throw new Error(`Invalid svg format
2
+ `+d.message)}var n=new O;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,p=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,p=o):s&&(f=s.y,p=s.height),u==null||f==null){var v=a.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,p=v.height)}l=this._boundingRect=new z(u,f,c,p)}if(s){var h=si(s,l);a.scaleX=a.scaleY=h.scale,a.x=h.x,a.y=h.y}n.setClipPath(new Q({shape:l.plain()}));var g=[];return b(t.named,function(d){Qs.get(d.svgNodeTagLower)!=null&&(g.push(d),tl(d.el))}),{root:n,boundingRect:l,named:g}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function tl(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function rl(r){var e=[],t=I();return b(r,function(a){if(a.namedFrom==null){var n=new ji(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var gr=[126,25],Da="南海诸岛",de=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var ge=0;ge<de.length;ge++)for(var Ae=0;Ae<de[ge].length;Ae++)de[ge][Ae][0]/=10.5,de[ge][Ae][1]/=-10.5/.75,de[ge][Ae][0]+=gr[0],de[ge][Ae][1]+=gr[1];function al(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Da)return;e.push(new Ji(Da,V(de,function(a){return{type:"polygon",exterior:a}}),gr))}}var nl={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function il(r,e){if(r==="china"){var t=nl[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var ol=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function sl(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:ol[0]})}var ll="name",ul=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=I(),this._mapName=e,this._specialAreas=a,this._geoJSON=cl(t)}return r.prototype.load=function(e,t){t=t||ll;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:fl(n)})}var i=I(),o=[];return b(a.regions,function(s){var l=s.name;e&&w(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new z(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?$i(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
3
+ `+i.message)}return al(t,n),b(n,function(i){var o=i.name;il(t,i),sl(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function fl(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function cl(r){return q(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ze=I();const ve={registerMap:function(r,e,t){if(e.svg){var a=new el(r,e.svg);ze.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new ul(r,n,t);ze.set(r,a)}},getGeoResource:function(r){return ze.get(r)},getMapForUser:function(r){var e=ze.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=ze.get(r);if(a)return a.load(e,t)}};var Nr=["rect","circle","line","ellipse","polygon","polyline","path"],vl=I(Nr),pl=I(Nr.concat(["g"])),hl=I(Nr.concat(["g"])),li=oe();function st(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function ka(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var gl=(function(){function r(e){var t=this.group=new O,a=this._transformGroup=new O;t.add(a),this.uid=Ki("ec_map_draw"),this._controller=new Vs(e.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new O),a.add(this._svgGroup=new O)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(x){!s&&x.getHostGeoModel()===e&&(s=x.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this._transformGroup,c=l.getTransformInfo(),p=c.raw,v=c.roam,h=!u.childAt(0)||i,g=e.getShallow("clip",!0),d;g?(d=l.getViewRect().clone(),this.group.setClipPath(new Q({shape:d.clone()}))):this.group.removeClipPath(),h?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):wt(f,v,e);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,d,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=I(),a=I(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,h){return h&&(v=h(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var h=[],g=!u&&l&&l.project,d=0;d<v.length;++d){var y=f(v[d],g);y&&h.push(y)}return h}function p(v){return{shape:{points:c(v)}}}n.removeAll(),b(e.geo.regions,function(v){var h=v.name,g=t.get(h),d=a.get(h)||{},y=d.dataIdx,m=d.regionModel;if(!g){g=t.set(h,new O),n.add(g),y=s?s.indexOfName(h):null,m=e.isGeo?o.getRegionModel(h):s?s.getItemModel(y):null;var x=m.get("silent",!0);x!=null&&(g.silent=x),a.set(h,{dataIdx:y,regionModel:m})}var S=[],L=[];b(v.geometries,function(E){if(E.type==="polygon"){var M=[E.exterior].concat(E.interiors||[]);u&&(M=Va(M,u)),b(M,function(A){S.push(new Et(p(A)))})}else{var T=E.points;u&&(T=Va(T,u,!0)),b(T,function(A){L.push(new Mt(p(A)))})}});var C=f(v.getCenter(),l&&l.project);function _(E,M){if(E.length){var T=new So({culling:!0,segmentIgnoreThreshold:1,shape:{paths:E}});g.add(T),Oa(e,T,y,m),Ba(e,T,h,m,o,y,C),M&&(ka(T),b(T.states,ka))}}_(S),_(L,!0)}),t.each(function(v,h){var g=a.get(h),d=g.dataIdx,y=g.regionModel;Ga(e,v,h,y,o,d),Ia(e,v,h,y,o),za(e,v,h,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=I(),i=!1;b(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,c=o.el,p=u?u.indexOfName(s):null,v=l.getRegionModel(s);vl.get(f)!=null&&c instanceof lr&&Oa(e,c,p,v),c instanceof lr&&(c.culling=!0);var h=v.get("silent",!0);if(h!=null&&(c.silent=h),c.z2EmphasisLift=0,!o.namedFrom&&(hl.get(f)!=null&&Ba(e,c,s,v,l,p,null),Ga(e,c,s,v,l,p),Ia(e,c,s,v,l),pl.get(f)!=null)){var g=za(e,c,s,v,l);g==="self"&&(i=!0);var d=n.get(s)||n.set(s,[]);d.push(c)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){An(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.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=ve.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ve.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a,n){var i=e.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=e.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(e.get("roam")||!1,{api:n,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(f,c,p){return i.containPoint([c,p])},isInClip:function(f,c,p){return!t||t.contain(c,p)}}});var l=e.mainType;function u(){var f={type:"geoRoam",componentType:l};return f[l+"Id"]=e.id,f}o.off("pan").on("pan",function(f){this._mouseDownFlag=!1,ri(s,f.dx,f.dy),n.dispatchAction(F(u(),{dx:f.dx,dy:f.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(f){this._mouseDownFlag=!1,ai(s,f.scale,f.originX,f.originY),n.dispatchAction(F(u(),{totalZoom:s.zoom,zoom:f.scale,originX:f.originX,originY:f.originY,animation:{duration:0}}))},this)},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=li(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function Oa(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=st(n),u=st(i),f=st(s),c=st(o),p=r.data;if(p){var v=p.getItemVisual(t,"style"),h=p.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),h&&(l.decal=qi(h,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=c,An(e)}function Ba(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var c=l?t:i,p=void 0;(!s||i>=0)&&(p=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Cr(e,tt(a),{labelFetcher:p,labelDataIndex:c,defaultText:t},v);var h=e.getTextContent();if(h&&(li(h).ignore=h.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Ga(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):Le(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function Ia(r,e,t,a,n){r.data||Dr({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function za(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Mr(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&Qi(e,n,t),o}function Va(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),b(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var Fa=ie,ui=(function(r){P(e,r);function e(t,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new nt,n._rawTransformable=new nt,n.name=t,n._opt=a,n}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new z(t,a,n,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new z(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new z(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[J(t[0],a.api.getWidth()),J(t[1],a.api.getWidth())]),this._centerOption=H(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=Fr(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,a=this._rect;t&&a&&(this._center=[J(t[0],a.width,a.x),J(t[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=ie([],s,n),o=ie([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),Ao(this.transform||(this.transform=[]),a.transform||rt()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],kr(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new nt;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Fa(n,t,i):wo(n,t)},e.prototype.pointToData=function(t,a,n){n=n||[];var i=this.invTransform;return i?Fa(n,t,i):(n[0]=t[0],n[1]=t[1],n)},e.prototype.convertToPixel=function(t,a,n){var i=Na(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=Na(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(nt);function Na(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var dl={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},fi=["lng","lat"],dr=(function(r){P(e,r);function e(t,a,n){var i=r.call(this,t,{api:n.api,ecModel:n.ecModel})||this;i.dimensions=fi,i.type="geo",i._nameCoordMap=I(),i.map=a;var o=n.projection,s=ve.load(a,n.nameMap,n.nameProperty),l=ve.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=dl[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var p=0;p<u.length;p++){var v=u[p].getBoundingRect(o);c=c||v.clone(),c.union(v)}else c=s.boundingRect;return i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:G(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new z(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(q(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t,a,n){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t,n)},e.prototype.pointToProjected=function(t,a){return r.prototype.pointToData.call(this,t,0,a)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=Wa(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=Wa(a);return i===this?i.pointToData(n):null},e})(ui);Pt(dr,ui);function Wa(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",xe).models[0]||{}).coordinateSystem:null}function Ya(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(L,C,_,E){for(var M=_-L,T=E-C,A=0;A<=100;A++){var R=A/100,k=i.project([L+M*R,C+T*R]);Lo(a,a,k),Co(n,n,k)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var c=this.getBoundingRect(),p=r.get("layoutCenter"),v=r.get("layoutSize"),h=Lt(r,e).refContainer,g=c.width/c.height*this.aspectScale,d=!1,y,m;p&&v&&(y=[J(p[0],h.width)+h.x,J(p[1],h.height)+h.y],m=J(v,Math.min(h.width,h.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(m)&&(d=!0));var x;if(d)x={},g>1?(x.width=m,x.height=m/g):(x.height=m,x.width=m*g),x.y=y[1]-x.height/2,x.x=y[0]-x.width/2;else{var S=r.getBoxLayoutParams();S.aspect=g,x=Ct(S,h),x=eo(r,x,g)}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function yl(r,e){b(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var ml=(function(){function r(){this.dimensions=fi}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new dr(l+s,l,F({nameMap:o.get("nameMap"),api:t,ecModel:e},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=Ya,u.resize(o,t)}),e.eachSeries(function(o){bn({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",xe).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),b(i,function(o,s){var l=V(o,function(f){return f.get("nameMap")}),u=new dr(s,s,F({nameMap:To(l),api:t,ecModel:e},n(o[0])));u.zoomLimit=$e.apply(null,V(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=Ya,u.resize(o[0],t),b(o,function(f){f.coordinateSystem=u,yl(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=I(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ve.load(t,a,n);return b(l.regions,function(u){var f=u.name,c=o.get(f),p=u.properties&&u.properties.echartsStyle;c||(c={name:f},i.push(c)),p&&W(c,p)}),i},r})(),ci=new ml,xl=(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,a,n){this.mergeDefaultAndTheme(t,n);var i=ve.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||D.color.backgroundTint)}to(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=ci.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=kn(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Xe(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},I()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Xe(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(Br(i))return o.status=a,i(o);if(q(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},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})(Re),bl=(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,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new gl(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;ro(t.target,function(n){return(a=Le(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=Le(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!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})(De);function _l(r,e,t){ve.registerMap(r,e,t)}function Fu(r){r.registerCoordinateSystem("geo",ci),r.registerComponentModel(xl),r.registerComponentView(bl),r.registerImpl("registerMap",_l),r.registerImpl("getMap",function(t){return ve.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;b(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];b(o,function(c,p){o[p]&&f.push(p)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.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,a,n){var i=t.componentType;i||(t.geoId!=null?i="geo":t.seriesId!=null&&(i="series")),i||(i="series"),a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Ys(s,t,o.get("scaleLimit"));o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&b(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}var Qe=b,Sl=ne,St=-1,vi=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=H(e);this.type=a,this.mappingMethod=t,this._normalizeData=Tl[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(Ht(n),Al(n)):t==="category"?n.categories?wl(n):Ht(n,!0):(Dn(t!=="linear"||n.dataExtent),Ht(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return se(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){ne(e)?b(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=$(e)?[]:ne(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Qe(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if($(e))e=e.slice();else if(Sl(e)){var t=[];Qe(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.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,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||q(l)&&l===e+"")return o;a&&p(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(ut(c[1],e,f[1]))return o}else if(f[1]===1/0){if(ut(c[0],f[0],e))return o}else if(ut(c[0],f[0],e)&&ut(c[1],e,f[1]))return o;a&&p(f[0],o),a&&p(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function p(v,h){var g=Math.abs(v-e);g<i&&(i=g,n=h)}},r.visualHandlers={color:{applyVisual:Ve("color"),getColorMapper:function(){var e=this.option;return U(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Ne.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=zt(t,e.parsedVisual,n),i?n:ct(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ct(zt(e,this.option.parsedVisual),"rgba")},category:Ne,piecewise:function(e,t){var a=mr.call(this,t);return a==null&&(a=ct(zt(e,this.option.parsedVisual),"rgba")),a},fixed:ye}},colorHue:lt(function(e,t){return Vt(e,t)}),colorSaturation:lt(function(e,t){return Vt(e,null,t)}),colorLightness:lt(function(e,t){return Vt(e,null,null,t)}),colorAlpha:lt(function(e,t){return Mo(e,t)}),decal:{applyVisual:Ve("decal"),_normalizedToVisual:{linear:null,category:Ne,piecewise:null,fixed:null}},opacity:{applyVisual:Ve("opacity"),_normalizedToVisual:yr([0,1])},liftZ:{applyVisual:Ve("liftZ"),_normalizedToVisual:{linear:ye,category:ye,piecewise:ye,fixed:ye}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:Xa,category:Ne,piecewise:function(e,t){var a=mr.call(this,t);return a==null&&(a=Xa.call(this,e)),a},fixed:ye}},symbolSize:{applyVisual:Ve("symbolSize"),_normalizedToVisual:yr([0,1])}},r})();function Al(r){var e=r.pieceList;r.hasSpecialVisual=!1,b(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function wl(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Qe(e,function(o,s){t[o]=s}),!$(a)){var n=[];ne(a)?Qe(a,function(o,s){var l=t[s];n[l??St]=o}):n[St]=a,a=pi(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function Ht(r,e){var t=r.visual,a=[];ne(t)?Qe(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),pi(r,a)}function lt(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:yr([0,1])}}function Xa(r){var e=this.option.visual;return e[Math.round(Ze(r,[0,1],[0,e.length-1],!0))]||{}}function Ve(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Ne(r){var e=this.option.visual;return e[this.option.loop&&r!==St?r%e.length:r]}function ye(){return this.option.visual[0]}function yr(r){return{linear:function(e){return Ze(e,r,this.option.visual,!0)},category:Ne,piecewise:function(e,t){var a=mr.call(this,t);return a==null&&(a=Ze(e,r,this.option.visual,!0)),a},fixed:ye}}function mr(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=vi.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function pi(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=V(e,function(t){var a=Pn(t);return a||[0,0,0,1]})),e}var Tl={linear:function(r){return Ze(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=vi.findPieceIndex(r,e,!0);if(t!=null)return Ze(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??St},fixed:Mn};function ut(r,e,t){return r?e<=t:e<t}var Ua=Me.prototype,Zt=ao.prototype,hi=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){P(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(hi);function jt(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Ll=(function(r){P(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:D.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new hi},e.prototype.buildPath=function(t,a){jt(a)?Ua.buildPath.call(this,t,a):Zt.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return jt(this.shape)?Ua.pointAt.call(this,t):Zt.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=jt(a)?[a.x2-a.x1,a.y2-a.y1]:Zt.tangentAt.call(this,t);return On(n,n)},e})(Bn),Jt=["fromSymbol","toSymbol"];function Ha(r){return"_"+r+"Type"}function Za(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Er(n),u=Tt(o||0,l);return a+l+u+(i||"")+(s||"")}function ja(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Er(n),u=Tt(o||0,l),f=Lr(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function Cl(r){var e=new Ll({name:"line",subPixelOptimize:!0});return xr(e.shape,r),e}function xr(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 Ml=(function(r){P(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=Cl(o);l.shape.percent=0,hn(l,{z2:G(s,0),shape:{percent:1}},i,a),this.add(l),b(Jt,function(u){var f=ja(u,t,a);this.add(f),this[Ha(u)]=Za(u,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};xr(l.shape,s),wt(o,l,i,a),b(Jt,function(u){var f=Za(u,t,a),c=Ha(u);if(this[c]!==f){this.remove(this.childOfName(u));var p=ja(u,t,a);this.add(p)}this[c]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,p=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var h=t.getItemModel(a),g=h.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),p=g.get("focus"),v=g.get("blurScope"),f=tt(h)}var d=t.getItemVisual(a,"style"),y=d.stroke;o.useStyle(d),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,b(Jt,function(C){var _=this.childOfName(C);if(_){_.setColor(y),_.style.opacity=d.opacity;for(var E=0;E<ea.length;E++){var M=ea[E],T=o.getState(M);if(T){var A=T.style||{},R=_.ensureState(M),k=R.style||(R.style={});A.stroke!=null&&(k[_.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(k.opacity=A.opacity)}}_.markRedraw()}},this);var m=i.getRawValue(a);Cr(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(C,_){return i.getFormattedLabel(C,_,t.dataType)}},inheritColor:y||D.color.neutral99,defaultOpacity:d.opacity,defaultText:(m==null?t.getName(a):isFinite(m)?We(m):m)+""});var x=this.getTextContent();if(x){var S=f.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=S.get("position")||"middle";var L=S.get("distance");$(L)||(L=[L,L]),x.__labelDistance=L}this.setTextConfig({position:null,local:!0,inside:!1}),Mr(this,p,v,c)},e.prototype.highlight=function(){vn(this)},e.prototype.downplay=function(){pn(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");xr(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),p=Eo([],c,f);On(p,p);function v(T,A){var R=T.__specifiedRotation;if(R==null){var k=l.tangentAt(A);T.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(k[1],k[0]))}else T.attr("rotation",R)}if(a&&(a.setPosition(f),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(c),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,g=void 0,d=i.__labelDistance,y=d[0]*o,m=d[1]*o,x=u/2,S=l.tangentAt(x),L=[S[1],-S[0]],C=l.pointAt(x);L[1]>0&&(L[0]=-L[0],L[1]=-L[1]);var _=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(E=Math.PI+E),i.rotation=E}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-m,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=m,g="top";break;default:M=0,g="middle"}switch(i.__position){case"end":i.x=p[0]*y+c[0],i.y=p[1]*m+c[1],h=p[0]>.8?"left":p[0]<-.8?"right":"center",g=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":i.x=-p[0]*y+f[0],i.y=-p[1]*m+f[1],h=p[0]>.8?"right":p[0]<-.8?"left":"center",g=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*_+f[0],i.y=f[1]+M,h=S[0]<0?"right":"left",i.originX=-y*_,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+M,h="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*_+c[0],i.y=c[1]+M,h=S[0]>=0?"right":"left",i.originX=y*_,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||h})}},e})(O),Nu=(function(){function r(e){this.group=new O,this._LineCtor=e||Ml}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=Ja(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ja(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!El(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if($t(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){gn(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if($t(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!$t(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function El(r){return r.animators&&r.animators.length>0}function Ja(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:tt(e)}}function $a(r){return isNaN(r[0])||isNaN(r[1])}function $t(r){return r&&!$a(r[0])&&!$a(r[1])}var gi=oe();function Wu(r){if(r)return gi(r).bridge}function Yu(r,e){r&&(gi(r).bridge=e)}function Pl(r){Rl(r),Dl(r)}function Rl(r){if(!r.parallel){var e=!1;b(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function Dl(r){var e=je(r.parallelAxis);b(e,function(t){if(ne(t)){var a=t.parallelIndex||0,n=je(r.parallel)[a];n&&n.parallelAxisDefault&&W(t,n.parallelAxisDefault,!1)}})}var kl=5,Ol=(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,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},b(Bl,function(i,o){n.getZr().on(o,this._handlers[o]=U(i,this))},this)),no(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){io(this,"_throttledDispatchExpand"),b(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(F({type:"parallelAxisExpand"},t))},e.type="parallel",e})(De),Bl={mousedown:function(r){Kt(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Kt(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>kl)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Kt(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Kt(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Gl=(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 a=this.option;t&&W(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){b(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Rt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);b(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",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})(Re),Il=(function(r){P(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(Rr);function zl(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=we(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=we(s,[0,o]),n=i=we(s,[n,i]),a=0}e[0]=we(e[0],t),e[1]=we(e[1],t);var l=qt(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=we(e[a],f);var c;return c=qt(e,a),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-a]=e[a]+l.sign*n),c=qt(e,a),i!=null&&c.span>i&&(e[1-a]=e[a]+c.sign*i),e}function qt(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 we(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Qt=b,di=Math.min,yi=Math.max,Ka=Math.floor,Vl=Math.ceil,qa=We,Fl=Math.PI,Nl=(function(){function r(e,t,a){this.type="parallel",this._axesMap=I(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;Qt(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new Il(o,xn(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();Qt(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ir(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){var a=Lt(e,t).refContainer;this._rect=Ct(e.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=ft(e.get("axisExpandWidth"),l),c=ft(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=e.get("axisExpandWindow"),h;if(v)h=ft(v[1]-v[0],l),v[1]=v[0]+h;else{h=ft(f*(c-1),l);var g=e.get("axisExpandCenter")||Ka(u/2);v=[f*g-h/2],v[1]=v[0]+h}var d=(s-h)/(u-c);d<3&&(d=0);var y=[Ka(qa(v[0]/f,1))+1,Vl(qa(v[1]/f,1))-1],m=d/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:p,axisExpandWidth:f,axisCollapseWidth:d,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Qt(a,function(o,s){var l=(n.axisExpandable?Yl:Wl)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:Fl/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],p=f[i],v=rt();Or(v,v,p),Rn(v,v,c),this._axesLayout[o]={position:c,rotation:p,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,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];b(o,function(d){s.push(e.mapDimension(d)),l.push(i.get(d).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var p=e.getValues(s,f),v=0,h=o.length;v<h;v++){var g=l[v].getActiveState(p[v]);if(g==="inactive"){c="inactive";break}}}t(c,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return oo([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return H(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),p=c[0]!=null;if(f)p&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):p&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?zl(l,n,o,"all"):u="none";else{var v=n[1]-n[0],h=o[1]*s/v;n=[yi(0,h-v/2)],n[1]=di(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r})();function ft(r,e){return di(yi(r,e[0]),e[1])}function Wl(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Yl(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function Xl(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new Nl(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",xe).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var Ul={create:Xl},br=(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 so([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=H(t);if(a)for(var n=a.length-1;n>=0;n--)lo(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(Re);Pt(br,Pr);var be=!0,et=Math.min,Ee=Math.max,Hl=Math.pow,Zl=1e4,jl=6,Jl=6,Qa="globalPan",$l={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Kl={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},en={brushStyle:{lineWidth:2,stroke:D.color.backgroundTint,fill:D.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},ql=0,Ql=(function(r){P(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new O,a._uid="brushController_"+ql++,b(ou,function(n,i){this._handlers[i]=U(n,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||Gs(a,Qa,this._uid),b(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=W(H(en),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Is(t,Qa,this._uid),b(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};b(t,function(n){a[n.panelId]=H(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=V(t,function(p){return W(H(en),p,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new uo(n,t,u,l).add(f).update(f).remove(c).execute(),this;function l(p,v){return(p.id!=null?p.id:a+v)+"-"+p.brushType}function u(p,v){return l(p.__brushOption,v)}function f(p,v){var h=t[p];if(v!=null&&n[v]===s)i[p]=n[v];else{var g=i[p]=v!=null?(n[v].__brushOption=h,n[v]):xi(o,mi(o,h));Wr(o,g)}}function c(p){n[p]!==s&&o.group.remove(n[p])}},e.prototype.unmount=function(){return this.enableBrush(!1),_r(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(En);function mi(r,e){var t=Ot[e.brushType].createCover(r,e);return t.__brushOption=e,_i(t,e),r.group.add(t),t}function xi(r,e){var t=Yr(e);return t.endCreating&&(t.endCreating(r,e),_i(e,e.__brushOption)),e}function bi(r,e){var t=e.__brushOption;Yr(e).updateCoverShape(r,e,t.range,t)}function _i(r,e){var t=e.z;t==null&&(t=Zl),r.traverse(function(a){a.z=t,a.z2=t})}function Wr(r,e){Yr(e).updateCommon(r,e),bi(r,e)}function Yr(r){return Ot[r.__brushOption.brushType]}function Xr(r,e,t){var a=r._panels;if(!a)return be;var n,i=r._transform;return b(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function Si(r,e){var t=r._panels;if(!t)return be;var a=e.__brushOption.panelId;return a!=null?t[a]:be}function _r(r){var e=r._covers,t=e.length;return b(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function _e(r,e){var t=V(r._covers,function(a){var n=a.__brushOption,i=H(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function eu(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=Hl(n*n+i*i,.5);return o>jl}function Ai(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function wi(r,e,t,a){var n=new O;return n.add(new Q({name:"main",style:Ur(t),silent:!0,draggable:!0,cursor:"move",drift:re(tn,r,e,n,["n","s","w","e"]),ondragend:re(_e,e,{isEnd:!0})})),b(a,function(i){n.add(new Q({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:re(tn,r,e,n,i),ondragend:re(_e,e,{isEnd:!0})}))}),n}function Ti(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Ee(n,Jl),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],c=t[1][1],p=f-i+n/2,v=c-i+n/2,h=f-o,g=c-s,d=h+n,y=g+n;te(r,e,"main",o,s,h,g),a.transformable&&(te(r,e,"w",l,u,i,y),te(r,e,"e",p,u,i,y),te(r,e,"n",l,u,d,i),te(r,e,"s",l,v,d,i),te(r,e,"nw",l,u,i,i),te(r,e,"ne",p,u,i,i),te(r,e,"sw",l,v,i,i),te(r,e,"se",p,v,i,i))}function Sr(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Ur(t)),n.attr({silent:!a,cursor:a?"move":"default"}),b([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Ar(r,i[0]):ru(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?Kl[s]+"-resize":null})})}function te(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(nu(Hr(r,e,[[a,n],[a+i,n+o]])))}function Ur(r){return N({strokeNoScale:!0},r.brushStyle)}function Li(r,e,t,a){var n=[et(r,t),et(e,a)],i=[Ee(r,t),Ee(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function tu(r){return co(r.group)}function Ar(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=fo(t[e],tu(r));return a[n]}function ru(r,e){var t=[Ar(r,e[0]),Ar(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function tn(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=Ci(e,n,i);b(a,function(u){var f=$l[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Li(s[0][0],s[1][0],s[0][1],s[1][1])),Wr(e,t),_e(e,{isEnd:!1})}function au(r,e,t,a){var n=e.__brushOption.range,i=Ci(r,t,a);b(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Wr(r,e),_e(r,{isEnd:!1})}function Ci(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Hr(r,e,t){var a=Si(r,e);return a&&a!==be?a.clipPath(t,r._transform):H(t)}function nu(r){var e=et(r[0][0],r[1][0]),t=et(r[0][1],r[1][1]),a=Ee(r[0][0],r[1][0]),n=Ee(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function iu(r,e,t){if(!(!r._brushType||su(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=Xr(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===be||s.panelId===i.panelId)&&Ot[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function wr(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Tr(r,e,t){return r.childOfName("main").contain(e,t)}function Mi(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),eu(r)||n){if(i&&!n){o.brushMode==="single"&&_r(r);var l=H(o);l.brushType=rn(l.brushType,i),l.panelId=i===be?null:i.panelId,n=r._creatingCover=mi(r,l),r._covers.push(n)}if(n){var u=Ot[rn(r._brushType,i)],f=n.__brushOption;f.range=u.getCreatingRange(Hr(r,n,r._track)),a&&(xi(r,n),u.updateCommon(r,n)),bi(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Xr(r,e,t)&&_r(r)&&(s={isEnd:a,removeOnClick:!0});return s}function rn(r,e){return r==="auto"?e.defaultBrushType:r}var ou={mousedown:function(r){if(this._dragging)an(this,r);else if(!r.target||!r.target.draggable){wr(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=Xr(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(iu(this,r,a),this._dragging){wr(r);var n=Mi(this,r,a,!1);n&&_e(this,n)}},mouseup:function(r){an(this,r)}};function an(r,e){if(r._dragging){wr(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=Mi(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&_e(r,i)}}function su(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var Ot={lineX:nn(0),lineY:nn(1),rect:{createCover:function(r,e){function t(a){return a}return wi({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Ai(r);return Li(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){Ti(r,e,t,a)},updateCommon:Sr,contain:Tr},polygon:{createCover:function(r,e){var t=new O;return t.add(new Mt({name:"main",style:Ur(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Et({name:"main",draggable:!0,drift:re(au,r,e),ondragend:re(_e,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Hr(r,e,t)})},updateCommon:Sr,contain:Tr}};function nn(r){return{createCover:function(e,t){return wi({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Ai(e),a=et(t[0][r],t[1][r]),n=Ee(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=Si(e,t);if(o!==be&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),Ti(e,t,l,n)},updateCommon:Sr,contain:Tr}}function lu(r){return r=Zr(r),function(e){return vo(e,r)}}function uu(r,e){return r=Zr(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function fu(r,e,t){var a=Zr(r);return function(n,i){return a.contain(i[0],i[1])&&!ti(n,e,t)}}function Zr(r){return z.create(r)}var cu=(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,a){r.prototype.init.apply(this,arguments),(this._brushController=new Ql(a.getZr())).on("brush",U(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!vu(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new O,this.group.add(this._axisGroup),!!t.get("show")){var s=hu(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=t.axis.dim,p=l.getAxisLayout(c),v=F({strokeContainThreshold:f},p),h=new ae(t,n,v);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(v,u,t,s,f,n),_n(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=z.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:lu(c),isTargetByCursor:fu(c,s,i),getLinearBrushOtherExtent:uu(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(pu(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=V(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(De);function vu(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function pu(r){var e=r.axis;return V(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function hu(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var gu={type:"axisAreaSelect",event:"axisAreaSelected"};function du(r){r.registerAction(gu,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var yu={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Xu(r){r.registerComponentView(Ol),r.registerComponentModel(Gl),r.registerCoordinateSystem("parallel",Ul),r.registerPreprocessor(Pl),r.registerComponentModel(br),r.registerComponentView(cu),fr(r,"parallel",br,yu),du(r)}function Uu(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||w(r,"text")))}function Hu(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},w(a,"text")&&(o.text=a.text),w(a,"rich")&&(o.rich=a.rich),w(a,"textFill")&&(o.fill=a.textFill),w(a,"textStroke")&&(o.stroke=a.textStroke),w(a,"fontFamily")&&(o.fontFamily=a.fontFamily),w(a,"fontSize")&&(o.fontSize=a.fontSize),w(a,"fontStyle")&&(o.fontStyle=a.fontStyle),w(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=w(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),w(a,"textPosition")&&(n.position=a.textPosition),w(a,"textOffset")&&(n.offset=a.textOffset),w(a,"textRotation")&&(n.rotation=a.textRotation),w(a,"textDistance")&&(n.distance=a.textDistance)}return on(o,r),b(o.rich,function(l){on(l,l)}),{textConfig:n,textContent:i}}function on(r,e){e&&(e.font=e.textFont||e.font,w(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),w(e,"textAlign")&&(r.align=e.textAlign),w(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),w(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),w(e,"textWidth")&&(r.width=e.textWidth),w(e,"textHeight")&&(r.height=e.textHeight),w(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),w(e,"textPadding")&&(r.padding=e.textPadding),w(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),w(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),w(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),w(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),w(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),w(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),w(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Zu(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||D.color.neutral99;sn(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||D.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||D.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,b(e.rich,function(s){sn(s,s)}),a}function sn(r,e){e&&(w(e,"fill")&&(r.textFill=e.fill),w(e,"stroke")&&(r.textStroke=e.fill),w(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),w(e,"font")&&(r.font=e.font),w(e,"fontStyle")&&(r.fontStyle=e.fontStyle),w(e,"fontWeight")&&(r.fontWeight=e.fontWeight),w(e,"fontSize")&&(r.fontSize=e.fontSize),w(e,"fontFamily")&&(r.fontFamily=e.fontFamily),w(e,"align")&&(r.textAlign=e.align),w(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),w(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),w(e,"width")&&(r.textWidth=e.width),w(e,"height")&&(r.textHeight=e.height),w(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),w(e,"padding")&&(r.textPadding=e.padding),w(e,"borderColor")&&(r.textBorderColor=e.borderColor),w(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),w(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),w(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),w(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),w(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),w(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),w(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),w(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),w(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),w(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var Ei={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ln=se(Ei);kn(Ke,function(r,e){return r[e]=1,r},{});Ke.join(", ");var At=["","style","shape","extra"],Pe=oe();function jr(r,e,t,a,n){var i=r+"Animation",o=wn(r,a,n)||{},s=Pe(e).userDuring;return o.duration>0&&(o.during=s?U(Au,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[i]),o}function ju(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Pe(r),u=e.style;l.userDuring=e.during;var f={},c={};if(Tu(r,e,c),r.type==="compound")for(var p=r.shape.paths,v=e.shape.paths,h=0;h<v.length;h++){var g=v[h];er("shape",g,p[h])}else er("shape",e,c),er("extra",e,c);if(!i&&s&&(wu(r,e,f),un("shape",r,e,f),un("extra",r,e,f),Lu(r,e,u,f)),c.style=u,xu(r,c,o),_u(r,e),s)if(i){var d={};b(At,function(m){var x=m?e[m]:e;x&&x.enterFrom&&(m&&(d[m]=d[m]||{}),F(m?d[m]:d,x.enterFrom))});var y=jr("enter",r,e,t,n);y.duration>0&&r.animateFrom(d,y)}else bu(r,e,n||0,t,f);mu(r,e),u?r.dirty():r.markRedraw()}function mu(r,e){for(var t=Pe(r).leaveToProps,a=0;a<At.length;a++){var n=At[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Pe(r).leaveToProps={}),n&&(t[n]=t[n]||{}),F(n?t[n]:t,i.leaveTo))}}function Ju(r,e,t,a){if(r){var n=r.parent,i=Pe(r).leaveToProps;if(i){var o=jr("update",r,e,t,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function Te(r){return r==="all"}function xu(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function bu(r,e,t,a,n){if(n){var i=jr("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function _u(r,e){w(e,"silent")&&(r.silent=e.silent),w(e,"ignore")&&(r.ignore=e.ignore),r instanceof lr&&w(e,"invisible")&&(r.invisible=e.invisible),r instanceof Bn&&w(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var K={},Su={setTransform:function(r,e){return K.el[r]=e,this},getTransform:function(r){return K.el[r]},setShape:function(r,e){var t=K.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=K.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=K.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=K.el.style;if(e)return e[r]},setExtra:function(r,e){var t=K.el.extra||(K.el.extra={});return t[r]=e,this},getExtra:function(r){var e=K.el.extra;if(e)return e[r]}};function Au(){var r=this,e=r.el;if(e){var t=Pe(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}K.el=e,a(Su)}}function un(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Te(l))F(o,i);else for(var u=je(l),f=0;f<u.length;f++){var c=u[f],p=i[c];o[c]=p}else if(Te(s)||fe(s,r)>=0){!o&&(o=a[r]={});for(var v=se(i),f=0;f<v.length;f++){var c=v[f],p=i[c];Cu(n[c],p)&&(o[c]=p)}}}}}function er(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=se(a),o=0;o<i.length;o++){var s=i[o];n[s]=Po(a[s])}}function wu(r,e,t){for(var a=e.transition,n=Te(a)?Ke:je(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function Tu(r,e,t){for(var a=0;a<ln.length;a++){var n=ln[a],i=Ei[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<Ke.length;a++){var s=Ke[a];e[s]!=null&&(t[s]=e[s])}}function Lu(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!Te(o)){var l=je(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=n[f];i[f]=c}}else if(r.getAnimationStyleProps&&(Te(s)||Te(o)||fe(s,"style")>=0)){var p=r.getAnimationStyleProps(),v=p?p.style:null;if(v){!i&&(i=a.style={});for(var h=se(t),u=0;u<h.length;u++){var f=h[u];if(v[f]){var c=n[f];i[f]=c}}}}}}}function Cu(r,e){return Ro(r)?r!==e:r!=null&&isFinite(r)}var Pi=oe(),Mu=["percent","easing","shape","style","extra"];function $u(r){r.stopAnimation("keyframe"),r.attr(Pi(r))}function Eu(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if($(e)){b(e,function(s){Eu(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=wn("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=Pi(r);b(At,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),b(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var p=se(c);if(s||(p=Rt(p,function(g){return fe(Mu,g)<0})),!!p.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(p);s&&(o[s]=o[s]||{});var h=s?o[s]:o;b(p,function(g){h[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*u.percent,c,p,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}export{ae as A,jn as B,xt as C,Ts as D,Ll as E,Gu as F,fr as G,Cs as H,Ls as I,mu as J,Te as K,Nu as L,gl as M,zl as N,uu as O,fu as P,lu as Q,Vs as R,Ou as S,Ql as T,Yu as U,ui as V,zo as a,Io as b,ko as c,Iu as d,zu as e,ve as f,ku as g,Fu as h,Bu as i,Ys as j,vi as k,ri as l,ai as m,Wu as n,Xu as o,Ml as p,Ju as q,Zu as r,Du as s,$u as t,Vu as u,ju as v,Eu as w,Uu as x,Hu as y,qn as z};
@@ -0,0 +1 @@
1
+ import{g as i}from"./canvg-ChoTXRpY.js";import{r as f}from"./pdf-Cjgn4CZy.js";function s(o,n){for(var t=0;t<n.length;t++){const e=n[t];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in o)){const m=Object.getOwnPropertyDescriptor(e,r);m&&Object.defineProperty(o,r,m.get?m:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=f();const g=i(a),u=s({__proto__:null,default:g},[a]);export{u as d};
Binary file