@perses-dev/trace-table-plugin 0.7.0 → 0.8.0

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.
Files changed (79) hide show
  1. package/__mf/css/async/263.3d4493d2.css +1 -0
  2. package/__mf/js/TraceTable.845c8aa8.js +5 -0
  3. package/__mf/js/async/109.0d6c2876.js +22 -0
  4. package/__mf/js/async/109.0d6c2876.js.LICENSE.txt +25 -0
  5. package/__mf/js/async/173.085e8c1f.js +2 -0
  6. package/__mf/js/async/175.ba9a4640.js +147 -0
  7. package/__mf/js/async/214.0bac5b59.js +1 -0
  8. package/__mf/js/async/224.51c57ceb.js +1 -0
  9. package/__mf/js/async/235.be067e8a.js +28 -0
  10. package/__mf/js/async/238.ccd6c3b2.js +1 -0
  11. package/__mf/js/async/251.b73e9968.js +7 -0
  12. package/__mf/js/async/251.b73e9968.js.LICENSE.txt +21 -0
  13. package/__mf/js/async/292.d26d57c4.js +1 -0
  14. package/__mf/js/async/409.d01a441f.js +1 -0
  15. package/__mf/js/async/488.1ae7b913.js +1 -0
  16. package/__mf/js/async/62.724a7239.js +1 -0
  17. package/__mf/js/async/651.996aef16.js +1 -0
  18. package/__mf/js/async/69.0b1487b7.js +2 -0
  19. package/__mf/js/async/69.0b1487b7.js.LICENSE.txt +24 -0
  20. package/__mf/js/async/{770.6cac4f4b.js → 694.5d60f324.js} +1 -1
  21. package/__mf/js/async/738.4eaf0328.js +1 -0
  22. package/__mf/js/async/740.3195ce93.js +1 -0
  23. package/__mf/js/async/75.8f589ac7.js +1 -0
  24. package/__mf/js/async/770.06030c80.js +1 -0
  25. package/__mf/js/async/812.f87960e5.js +53 -0
  26. package/__mf/js/async/83.16406283.js +1 -0
  27. package/__mf/js/async/834.67d500ed.js +2 -0
  28. package/__mf/js/async/834.67d500ed.js.LICENSE.txt +21 -0
  29. package/__mf/js/async/863.17535c71.js +2 -0
  30. package/__mf/js/async/960.3373bed4.js +2 -0
  31. package/__mf/js/async/964.1165a855.js +2 -0
  32. package/__mf/js/async/981.92685962.js +2 -0
  33. package/__mf/js/async/981.92685962.js.LICENSE.txt +8 -0
  34. package/__mf/js/async/__federation_expose_TraceTable.a8f48497.js +1 -0
  35. package/__mf/js/async/lib-router.5b98a3da.js +2 -0
  36. package/__mf/js/main.34c90ec4.js +5 -0
  37. package/lib/DataTable.d.ts +0 -1
  38. package/lib/DataTable.d.ts.map +1 -1
  39. package/lib/DataTable.js +14 -9
  40. package/lib/DataTable.js.map +1 -1
  41. package/lib/TraceTablePanel.d.ts +2 -14
  42. package/lib/TraceTablePanel.d.ts.map +1 -1
  43. package/lib/TraceTablePanel.js +2 -17
  44. package/lib/TraceTablePanel.js.map +1 -1
  45. package/lib/cjs/DataTable.js +14 -9
  46. package/lib/cjs/TraceTablePanel.js +5 -28
  47. package/lib/cjs/trace-table-model.js +1 -1
  48. package/lib/trace-table-model.d.ts +8 -0
  49. package/lib/trace-table-model.d.ts.map +1 -1
  50. package/lib/trace-table-model.js +1 -1
  51. package/lib/trace-table-model.js.map +1 -1
  52. package/mf-manifest.json +100 -60
  53. package/mf-stats.json +113 -64
  54. package/package.json +15 -5
  55. package/__mf/js/152.20a64e89.js +0 -5
  56. package/__mf/js/TraceTable.d244402d.js +0 -5
  57. package/__mf/js/async/156.525f3a44.js +0 -1
  58. package/__mf/js/async/173.f0db00ba.js +0 -2
  59. package/__mf/js/async/377.d6e7ba1a.js +0 -2
  60. package/__mf/js/async/51.a8d0a55c.js +0 -147
  61. package/__mf/js/async/620.006d05f8.js +0 -2
  62. package/__mf/js/async/651.4fdbe698.js +0 -1
  63. package/__mf/js/async/694.3c3c415f.js +0 -1
  64. package/__mf/js/async/740.fe5d3770.js +0 -1
  65. package/__mf/js/async/75.c1d82ca8.js +0 -1
  66. package/__mf/js/async/764.102c33d3.js +0 -7
  67. package/__mf/js/async/764.102c33d3.js.LICENSE.txt +0 -68
  68. package/__mf/js/async/902.129cd5da.js +0 -80
  69. package/__mf/js/async/960.dc16b984.js +0 -2
  70. package/__mf/js/async/964.01c67113.js +0 -2
  71. package/__mf/js/async/__federation_expose_TraceTable.0bcb874f.js +0 -1
  72. package/__mf/js/main.b975eef1.js +0 -1
  73. /package/__mf/js/async/{173.f0db00ba.js.LICENSE.txt → 173.085e8c1f.js.LICENSE.txt} +0 -0
  74. /package/__mf/js/async/{51.a8d0a55c.js.LICENSE.txt → 175.ba9a4640.js.LICENSE.txt} +0 -0
  75. /package/__mf/js/async/{902.129cd5da.js.LICENSE.txt → 812.f87960e5.js.LICENSE.txt} +0 -0
  76. /package/__mf/js/async/{620.006d05f8.js.LICENSE.txt → 863.17535c71.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{960.dc16b984.js.LICENSE.txt → 960.3373bed4.js.LICENSE.txt} +0 -0
  78. /package/__mf/js/async/{964.01c67113.js.LICENSE.txt → 964.1165a855.js.LICENSE.txt} +0 -0
  79. /package/__mf/js/async/{377.d6e7ba1a.js.LICENSE.txt → lib-router.5b98a3da.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_TraceTable=self.chunk_TraceTable||[]).push([["409"],{71932:function(e,t,n){n.r(t),n.d(t,{registerMap:()=>p.je,List:()=>m.Z,helper:()=>o,disConnect:()=>p.eU,getMap:()=>p.FU,ComponentView:()=>f.Z,registerPostInit:()=>p.sq,Axis:()=>eC.Z,dispose:()=>p.B9,color:()=>S,registerTransform:()=>p.OB,registerProcessor:()=>p.Pu,registerCoordinateSystem:()=>p.RS,registerUpdateLifecycle:()=>p.YK,registerLoading:()=>p.yn,getInstanceByDom:()=>p.JE,ChartView:()=>v.Z,throttle:()=>M.P2,registerVisual:()=>p.Og,registerLocale:()=>p.I2,registerPostUpdate:()=>p.Br,dataTool:()=>p.Ok,setCanvasCreator:()=>p.jQ,dependencies:()=>p.HO,PRIORITY:()=>p.Hr,vector:()=>b,use:()=>h.D,zrUtil:()=>w,Model:()=>D.Z,graphic:()=>u,registerAction:()=>p.zl,registerLayout:()=>p.qR,env:()=>eL.Z,registerTheme:()=>p.aW,extendComponentModel:()=>eN,extendComponentView:()=>eZ,parseGeoJson:()=>ei,innerDrawElementOnCanvas:()=>eP.RV,init:()=>p.S1,time:()=>l,zrender:()=>x,getCoordinateSystemDimensions:()=>p.wL,matrix:()=>_,util:()=>c,extendChartView:()=>eR,extendSeriesModel:()=>ek,setPlatformAPI:()=>B.g2,SeriesModel:()=>y.Z,format:()=>d,ComponentModel:()=>g.Z,registerPreprocessor:()=>p.ds,parseGeoJSON:()=>ei,getInstanceById:()=>p.rp,disconnect:()=>p.zP,connect:()=>p.$j,number:()=>s,version:()=>p.i8});var i,r,a,o={};n.r(o),n.d(o,{createDimensions:()=>Z.q,createList:()=>E,createScale:()=>G,createSymbol:()=>k.th,createTextStyle:()=>O,dataStack:()=>V,enableHoverEmphasis:()=>R.vF,getECData:()=>P.A,getLayoutRect:()=>L.ME,mixinAxisModelCommonMethods:()=>z});var s={};n.r(s),n.d(s,{MAX_SAFE_INTEGER:()=>er.YM,asc:()=>er.dt,getPercentWithPrecision:()=>er.eJ,getPixelPrecision:()=>er.M9,getPrecision:()=>er.p8,getPrecisionSafe:()=>er.ZB,isNumeric:()=>er.kE,isRadianAroundZero:()=>er.mW,linearMap:()=>er.NU,nice:()=>er.kx,numericToNumber:()=>er.FK,parseDate:()=>er.sG,quantile:()=>er.VR,quantity:()=>er.Xd,quantityExponent:()=>er.xW,reformIntervals:()=>er.nR,remRadian:()=>er.wW,round:()=>er.NM});var l={};n.r(l),n.d(l,{format:()=>ea.WU,parse:()=>er.sG});var u={};n.r(u),n.d(u,{Arc:()=>e_.Z,BezierCurve:()=>ex.Z,BoundingRect:()=>W.Z,Circle:()=>ec.Z,CompoundPath:()=>ew.Z,Ellipse:()=>eh.Z,Group:()=>el.Z,Image:()=>eu.ZP,IncrementalDisplayable:()=>eb.Z,Line:()=>em.Z,LinearGradient:()=>eS.Z,Polygon:()=>ef.Z,Polyline:()=>ey.Z,RadialGradient:()=>eM.Z,Rect:()=>ev.Z,Ring:()=>eg.Z,Sector:()=>ep.C,Text:()=>ed.ZP,clipPointsByRect:()=>eo.clipPointsByRect,clipRectByRect:()=>eo.clipRectByRect,createIcon:()=>eo.createIcon,extendPath:()=>eo.extendPath,extendShape:()=>eo.extendShape,getShapeClass:()=>eo.getShapeClass,getTransform:()=>eo.getTransform,initProps:()=>es.KZ,makeImage:()=>eo.makeImage,makePath:()=>eo.makePath,mergePath:()=>eo.mergePath,registerShape:()=>eo.registerShape,resizePath:()=>eo.resizePath,updateProps:()=>es.D});var d={};n.r(d),n.d(d,{addCommas:()=>eI.OD,capitalFirst:()=>eI.ew,encodeHTML:()=>eT.F1,formatTime:()=>eI.mr,formatTpl:()=>eI.kF,getTextRect:()=>eD,getTooltipMarker:()=>eI.A0,normalizeCssArray:()=>eI.MY,toCamelCase:()=>eI.zW,truncateText:()=>eA.aF});var c={};n.r(c),n.d(c,{bind:()=>w.bind,clone:()=>w.clone,curry:()=>w.curry,defaults:()=>w.defaults,each:()=>w.each,extend:()=>w.extend,filter:()=>w.filter,indexOf:()=>w.indexOf,inherits:()=>w.inherits,isArray:()=>w.isArray,isFunction:()=>w.isFunction,isObject:()=>w.isObject,isString:()=>w.isString,map:()=>w.map,merge:()=>w.merge,reduce:()=>w.reduce});var h=n(36232),p=n(59161),g=n(45352),f=n(64292),y=n(2021),v=n(58050),m=n(83208),x=n(6573),_=n(49634),b=n(77605),w=n(67975),S=n(54411),M=n(19774),I=n(30984),T=n(16035),A=n(66365),D=n(16505),L=n(50651),C=n(97384),P=n(10428),N=n(33361),Z=n(56904),k=n(5965),R=n(98306);function E(e){return(0,I.Z)(null,e)}var V={isDimensionStacked:C.M,enableDataStack:C.BM,getStackedDimension:C.IR};function G(e,t){var n=t;t instanceof D.Z||(n=new D.Z(t));var i=T.aG(n);return i.setExtent(e[0],e[1]),T.Jk(i,n),i}function z(e){w.mixin(e,A.W)}function O(e,t){return t=t||{},(0,N.Lr)(e,null,null,"normal"!==t.state)}var B=n(49906),F=n(69988),W=n(9495),H=n(48562);function Y(e,t){return 1e-8>Math.abs(e-t)}function X(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var a=1;a<e.length;a++){var o=e[a];i+=(0,H.Z)(r[0],r[1],o[0],o[1],t,n),r=o}var s=e[0];return Y(r[0],s[0])&&Y(r[1],s[1])||(i+=(0,H.Z)(r[0],r[1],s[0],s[1],t,n)),0!==i}var U=[];function j(e,t){for(var n=0;n<e.length;n++)b.applyTransform(e[n],e[n],t)}function q(e,t,n,i){for(var r=0;r<e.length;r++){var a=e[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(b.min(t,t,a),b.max(n,n,a))}}var J=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),K=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},$=function(e){this.type="linestring",this.points=e},Q=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,F.ZT)(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],a=r.exterior,o=a&&a.length;o>n&&(e=r,n=o)}if(e)return function(e){for(var t=0,n=0,i=0,r=e.length,a=e[r-1][0],o=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],d=a*u-l*o;t+=d,n+=(a+l)*d,i+=(o+u)*d,a=l,o=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return(0,w.each)(r,function(t){"polygon"===t.type?q(t.exterior,n,i,e):(0,w.each)(t.points,function(t){q(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new W.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var a=n[i];if("polygon"===a.type){var o=a.exterior,s=a.interiors;if(X(o,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(X(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var o=new W.Z(e,t,n,i),s=r.calculateTransform(o),l=this.geometries,u=0;u<l.length;u++){var d=l[u];"polygon"===d.type?(j(d.exterior,s),(0,w.each)(d.interiors,function(e){j(e,s)})):(0,w.each)(d.points,function(e){j(e,s)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(J),ee=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,F.ZT)(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=_.identity(U),r=e;r&&!r.isGeoSVGGraphicRoot;)_.mul(i,r.getLocalTransform(),i),r=r.parent;return _.invert(i,i),b.applyTransform(n,n,i),n},t}(J);function et(e,t,n){for(var i=0;i<e.length;i++)e[i]=en(e[i],t[i],n)}function en(e,t,n){for(var i=[],r=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;l=l>>1^-(1&l),s=(s>>1^-(1&s))+r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function ei(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);var n=e.features;return w.each(n,function(e){var n=e.geometry,i=n.encodeOffsets,r=n.coordinates;if(i)switch(n.type){case"LineString":n.coordinates=en(r,i,t);break;case"Polygon":case"MultiLineString":et(r,i,t);break;case"MultiPolygon":w.each(r,function(e,n){return et(e,i[n],t)})}}),e.UTF8Encoding=!1,e}(e),w.map(w.filter(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var a=i.coordinates;r.push(new K(a[0],a.slice(1)));break;case"MultiPolygon":w.each(i.coordinates,function(e){e[0]&&r.push(new K(e[0],e.slice(1)))});break;case"LineString":r.push(new $([i.coordinates]));break;case"MultiLineString":r.push(new $(i.coordinates))}var o=new Q(n[t||"name"],r,n.cp);return o.properties=n,o})}var er=n(82517),ea=n(10926),eo=n(29790),es=n(99858),el=n(37293),eu=n(63287),ed=n(76150),ec=n(27266),eh=n(91021),ep=n(53511),eg=n(22260),ef=n(24484),ey=n(61099),ev=n(31969),em=n(72859),ex=n(20121),e_=n(70222),eb=n(99880),ew=n(10690),eS=n(44235),eM=n(64382),eI=n(40814),eT=n(99708),eA=n(16137);function eD(e,t,n,i,r,a,o,s){return new ed.ZP({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:a,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}var eL=n(4647),eC=n(11532),eP=n(3093);function eN(e){var t=g.Z.extend(e);return g.Z.registerClass(t),t}function eZ(e){var t=f.Z.extend(e);return f.Z.registerClass(t),t}function ek(e){var t=y.Z.extend(e);return y.Z.registerClass(t),t}function eR(e){var t=v.Z.extend(e);return v.Z.registerClass(t),t}var eE=n(86571),eV=n(44066),eG=n(9655),ez=n(67285),eO=n(66790),eB=["align","verticalAlign","width","height","fontSize"],eF=new eV.ZP,eW=(0,eE.Yf)(),eH=(0,eE.Yf)();function eY(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var eX=["x","y","rotation"],eU=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var a,o=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();W.Z.applyTransform(u,u,l),l?eF.setLocalTransform(l):(eF.x=eF.y=eF.rotation=eF.originX=eF.originY=0,eF.scaleX=eF.scaleY=1),eF.rotation=(0,eO.m)(eF.rotation);var d=i.__hostTarget;if(d){a=d.getBoundingRect().plain();var c=d.getComputedTransform();W.Z.applyTransform(a,a,c)}var h=a&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:eF.x,y:eF.y,scaleX:eF.scaleX,scaleY:eF.scaleY,rotation:eF.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");((0,w.isFunction)(i)||(0,w.keys)(i).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var r=e.getTextContent(),a=(0,P.A)(e);r&&!r.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,r,i)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],a=r.label,o=a.__hostTarget,s=r.defaultAttr,l=void 0;l=(l=(0,w.isFunction)(r.layoutOption)?r.layoutOption(function(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(i&&i.shape.points)}}(r,o)):r.layoutOption)||{},r.computedLayoutOption=l;var u=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var d=!1;if(null!=l.x?(a.x=(0,er.GM)(l.x,t),a.setStyle("x",0),d=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=(0,er.GM)(l.y,n),a.setStyle("y",0),d=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var c=o.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),d=!1)}eW(a).needsUpdateLabelLine=d,a.rotation=null!=l.rotate?l.rotate*u:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var h=0;h<eB.length;h++){var p=eB[h];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var g=r.seriesModel;null!=r.dataIndex&&(g=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),a.on("drag",function(e,t){return function(){(0,eG.d)(e,t)}}(o,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=(0,ez.VT)(this._labelList),r=(0,w.filter)(i,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=(0,w.filter)(i,function(e){return"shiftY"===e.layoutOption.moveOverlap});(0,ez.WE)(r,0,t),(0,ez.GI)(a,0,n);var o=(0,w.filter)(i,function(e){return e.layoutOption.hideOverlap});(0,ez.yl)(o)},e.prototype.processLabelsOverall=function(){var e=this;(0,w.each)(this._chartViewList,function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!i,o=t.getTextContent();!a&&o&&(a=eW(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=(0,P.A)(e),r=i.dataIndex;if(n&&null!=r){var a=t.getData(i.dataType),o=a.getItemModel(r),s={},l=a.getItemVisual(r,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var u=o.getModel("labelLine");(0,eG.Iu)(e,(0,eG.$x)(o),s),(0,eG.d)(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!(0,es.eq)(e))){var r=eW(n),a=r.oldLayout,o=(0,P.A)(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(a){n.attr(a);var d=e.prevStates;d&&((0,w.indexOf)(d,"select")>=0&&n.attr(r.oldLayoutSelect),(0,w.indexOf)(d,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),(0,es.D)(n,l,t,s)}else if(n.attr(l),!(0,N.qA)(n).valueAnimation){var c=(0,w.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,es.KZ)(n,{style:{opacity:c}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};eY(h,l,eX),eY(h,n.states.select,eX)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};eY(p,l,eX),eY(p,n.states.emphasis,eX)}(0,N.tD)(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){var r=eH(i),a=r.oldLayout,g={points:i.shape.points};a?(i.attr({shape:a}),(0,es.D)(i,{shape:g},t)):(i.setShape(g),i.style.strokePercent=0,(0,es.KZ)(i,{style:{strokePercent:1}},t)),r.oldLayout=g}},e}(),ej=(0,eE.Yf)();function eq(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var i=ej(t).labelManager;i||(i=ej(t).labelManager=new eU),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var i=ej(t).labelManager;n.updatedSeries.forEach(function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}(0,h.D)(eq);var eJ=n(50378),eK=n(26785),e$=n(7185),eQ=n(12666),e0=n(37755),e1=Math.sin,e2=Math.cos,e5=Math.PI,e3=2*Math.PI,e4=180/e5,e6=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,a){this._add("C",e,t,n,i,r,a)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,a){this.ellipse(e,t,n,n,0,i,r,a)},e.prototype.ellipse=function(e,t,n,i,r,a,o,s){var l=o-a,u=!s,d=Math.abs(l),c=(0,eK.zT)(d-e3)||(u?l>=e3:-l>=e3),h=l>0?l%e3:l%e3+e3,p=!1;p=!!c||!(0,eK.zT)(d)&&h>=e5==!!u;var g=e+n*e2(a),f=t+i*e1(a);this._start&&this._add("M",g,f);var y=Math.round(r*e4);if(c){var v=1/this._p,m=(u?1:-1)*(e3-v);this._add("A",n,i,y,1,+u,e+n*e2(a+m),t+i*e1(a+m)),v>.01&&this._add("A",n,i,y,0,+u,g,f)}else{var x=e+n*e2(o),_=t+i*e1(o);this._add("A",n,i,y,+p,+u,x,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,a,o,s,l){for(var u=[],d=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*d)/d)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),e9=n(66009),e7="none",e8=Math.round,te=["lineCap","miterLimit","lineJoin"],tt=(0,w.map)(te,function(e){return"stroke-"+e.toLowerCase()}),tn="http://www.w3.org/2000/svg",ti="http://www.w3.org/1999/xlink",tr="ecmeta_";function ta(e){return document.createElementNS(tn,e)}function to(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function ts(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var i=t.children,r=t.tag,a=t.attrs,o=t.text;return function(e,t){var n=[];if(t)for(var i in t){var r=t[i],a=i;!1!==r&&(!0!==r&&null!=r&&(a+='="'+r+'"'),n.push(a))}return"<"+e+" "+n.join(" ")+">"}(r,a)+("style"!==r?(0,eT.F1)(o):o||"")+(i?""+n+(0,w.map)(i,function(t){return e(t)}).join(n)+n:"")+"</"+r+">"}(e)}function tl(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tu(e,t,n,i){return to("svg","root",{width:e,height:t,xmlns:tn,"xmlns:xlink":ti,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var td=n(31109),tc=n(97694),th=n(69265),tp=0,tg={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tf="transform-origin",ty={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tv(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function tm(e){return(0,w.isString)(e)?tg[e]?"cubic-bezier("+tg[e]+")":(0,th.H)(e)?e:"":""}function tx(e,t,n,i){var r=e.animators,a=r.length,o=[];if(e instanceof ew.Z){var s=function(e,t,n){var i,r,a=e.shape.paths,o={};if((0,w.each)(a,function(e){var t=tl(n.zrId);t.animation=!0,tx(e,{},t,!0);var a=t.cssAnims,s=t.cssNodes,l=(0,w.keys)(a),u=l.length;if(u){var d=a[r=l[u-1]];for(var c in d){var h=d[c];o[c]=o[c]||{d:""},o[c].d+=h.d||""}for(var p in s){var g=s[p].animation;g.indexOf(r)>=0&&(i=g)}}}),i){t.d=!1;var s=tv(o,n);return i.replace(r,s)}}(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var d=r[u],c=[d.getMaxTime()/1e3+"s"],h=tm(d.getClip().easing),p=d.getDelay();h?c.push(h):c.push("linear"),p&&c.push(p/1e3+"s"),d.getLoop()&&c.push("infinite");var g=c.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(d)}for(var f in l){var s=function(r){var a,o,s=r[1],l=s.length,u={},d={},c={},h="animation-timing-function";function p(e,t,n){for(var i=e.getTracks(),r=e.getMaxTime(),a=0;a<i.length;a++){var o=i[a];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var d=s[u],c=Math.round(d.time/r*100)+"%",p=tm(d.easing),g=d.rawValue;((0,w.isString)(g)||(0,w.isNumber)(g))&&(t[c]=t[c]||{},t[c][l]=d.rawValue,p&&(t[c][h]=p))}}}}for(var g=0;g<l;g++){var f=s[g],y=f.targetName;y?"shape"===y&&p(f,d):i||p(f,u)}for(var v in u){var m={};(0,eV.kY)(m,e),(0,w.extend)(m,u[v]);var x=(0,eK.gA)(m),_=u[v][h];c[v]=x?{transform:x}:{},function(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[tf]=n+"px "+i+"px")}(c[v],m),_&&(c[v][h]=_)}var b=!0;for(var v in d){c[v]=c[v]||{};var S=!a,_=d[v][h];S&&(a=new tc.Z);var M=a.len();a.reset(),c[v].d=function(e,t,n){var i=(0,w.extend)({},e.shape);(0,w.extend)(i,t),e.buildPath(n,i);var r=new e6;return r.reset((0,eK.Gk)(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}(e,d[v],a);var I=a.len();if(!S&&M!==I){b=!1;break}_&&(c[v][h]=_)}if(!b)for(var v in c)delete c[v].d;if(!i)for(var g=0;g<l;g++){var f=s[g],y=f.targetName;"style"===y&&p(f,c,function(e){return ty[e]})}for(var T=(0,w.keys)(c),A=!0,g=1;g<T.length;g++){var D=T[g-1],L=T[g];if(c[D][tf]!==c[L][tf]){A=!1;break}o=c[D][tf]}if(A&&o){for(var v in c)c[v][tf]&&delete c[v][tf];t[tf]=o}if((0,w.filter)(T,function(e){return(0,w.keys)(c[e]).length>0}).length)return tv(c,n)+" "+r[0]+" both"}(l[f]);s&&o.push(s)}if(o.length){var y=n.zrId+"-cls-"+tp++;n.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function t_(e,t,n,i){var r=JSON.stringify(e),a=n.cssStyleCache[r];a||(a=n.zrId+"-cls-"+tp++,n.cssStyleCache[r]=a,n.cssNodes["."+a+(i?":hover":"")]=e),t.class=t.class?t.class+" "+a:a}var tb=Math.round;function tw(e){return e&&(0,w.isString)(e.src)}function tS(e){return e&&(0,w.isFunction)(e.toDataURL)}function tM(e,t,n,i){!function(e,t,n,i){var r,a,o=null==t.opacity?1:t.opacity;if(n instanceof eu.ZP)return e("opacity",o);if(null!=(r=t.fill)&&r!==e7){var s=(0,eK.ut)(t.fill);e("fill",s.color);var l=null!=t.fillOpacity?t.fillOpacity*s.opacity*o:s.opacity*o;(i||l<1)&&e("fill-opacity",l)}else e("fill",e7);if(null!=(a=t.stroke)&&a!==e7){var u=(0,eK.ut)(t.stroke);e("stroke",u.color);var d=t.strokeNoScale?n.getLineScale():1,c=d?(t.lineWidth||0)/d:0,h=null!=t.strokeOpacity?t.strokeOpacity*u.opacity*o:u.opacity*o,p=t.strokeFirst;if((i||1!==c)&&e("stroke-width",c),(i||p)&&e("paint-order",p?"stroke":"fill"),(i||h<1)&&e("stroke-opacity",h),t.lineDash){var g=(0,e9.a)(n),f=g[0],y=g[1];f&&(y=e8(y||0),e("stroke-dasharray",f.join(",")),(y||i)&&e("stroke-dashoffset",y))}else i&&e("stroke-dasharray",e7);for(var v=0;v<te.length;v++){var m=te[v];if(i||t[m]!==e$.$t[m]){var x=t[m]||e$.$t[m];x&&e(tt[v],x)}}}else i&&e("stroke",e7)}(function(r,a){var o="fill"===r||"stroke"===r;o&&(0,eK.H3)(a)?tZ(t,e,r,i):o&&(0,eK.R)(a)?tk(n,e,r,i):o&&"none"===a?e[r]="transparent":e[r]=a},t,n,!1),function(e,t,n){var i=e.style;if((0,eK.i2)(i)){var r=(0,eK.n1)(e),a=n.shadowCache,o=a[r];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var d=i.shadowOffsetX||0,c=i.shadowOffsetY||0,h=i.shadowBlur,p=(0,eK.ut)(i.shadowColor),g=p.opacity,f=p.color;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=to("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[to("feDropShadow","",{dx:d/l,dy:c/u,stdDeviation:h/2/l+" "+h/2/u,"flood-color":f,"flood-opacity":g})]),a[r]=o}t.filter=(0,eK.m1)(o)}}(n,e,i)}function tI(e,t){var n=(0,x.getElementSSRData)(t);n&&(n.each(function(t,n){null!=t&&(e[(tr+n).toLowerCase()]=t+"")}),t.isSilent()&&(e[tr+"silent"]="true"))}function tT(e){return(0,eK.zT)(e[0]-1)&&(0,eK.zT)(e[1])&&(0,eK.zT)(e[2])&&(0,eK.zT)(e[3]-1)}function tA(e,t,n){if(t&&!((0,eK.zT)(t[4])&&(0,eK.zT)(t[5])&&tT(t))){var i=n?10:1e4;e.transform=tT(t)?"translate("+tb(t[4]*i)/i+" "+tb(t[5]*i)/i+")":(0,eK.qV)(t)}}function tD(e,t,n){for(var i=e.points,r=[],a=0;a<i.length;a++)r.push(tb(i[a][0]*n)/n),r.push(tb(i[a][1]*n)/n);t.points=r.join(" ")}function tL(e){return!e.smooth}var tC={circle:[(i=["cx","cy","r"],r=(0,w.map)(i,function(e){return"string"==typeof e?[e,e]:e}),function(e,t,n){for(var i=0;i<r.length;i++){var a=r[i],o=e[a[0]];null!=o&&(t[a[1]]=tb(o*n)/n)}})],polyline:[tD,tL],polygon:[tD,tL]};function tP(e,t){var n=e.style,i=e.shape,r=tC[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&(0,eK.Gk)(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||o&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var c=e.path;d&&(c.beginPath(),e.buildPath(c,e.shape),e.pathUpdated());var h=c.getVersion(),p=e.__svgPathBuilder;e.__svgPathVersion===h&&p&&l===e.__svgPathStrokePercent||(p||(p=e.__svgPathBuilder=new e6),p.reset(u),c.rebuildPath(p,l),p.generateStr(),e.__svgPathVersion=h,e.__svgPathStrokePercent=l),a.d=p.getStr()}else{s=e.type;var g=Math.pow(10,u);r[0](i,a,g)}return tA(a,e.transform),tM(a,n,e,t),tI(a,e),t.animation&&tx(e,a,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent()){var i={"pointer-events":"none"};t_(i,t,n,!0)}else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=r.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=(0,S.liftColor)(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var i={cursor:"pointer"};a&&(i.fill=a),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),t_(i,t,n,!0)}}(e,a,t),to(s,e.id+"",a)}function tN(e,t){return e instanceof e$.ZP?tP(e,t):e instanceof eu.ZP?function(e,t){var n=e.style,i=n.image;if(i&&!(0,w.isString)(i)&&(tw(i)?i=i.src:tS(i)&&(i=i.toDataURL())),i){var r=n.x||0,a=n.y||0,o={href:i,width:n.width,height:n.height};return r&&(o.x=r),a&&(o.y=a),tA(o,e.transform),tM(o,n,e,t),tI(o,e),t.animation&&tx(e,o,t),to("image",e.id+"",o)}}(e,t):e instanceof e0.Z?function(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r=n.font||B.Uo,a=n.x||0,o=(0,eK.mU)(n.y||0,(0,eQ.Dp)(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":eK.jY[n.textAlign]||n.textAlign};if((0,ed.Y1)(n)){var l="",u=n.fontStyle,d=(0,ed.VG)(n.fontSize);if(!parseFloat(d))return;var c=n.fontFamily||B.rk,h=n.fontWeight;l+="font-size:"+d+";font-family:"+c+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),h&&"normal"!==h&&(l+="font-weight:"+h+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),a&&(s.x=a),o&&(s.y=o),tA(s,e.transform),tM(s,n,e,t),tI(s,e),t.animation&&tx(e,s,t),to("text",e.id+"",s,void 0,i)}}(e,t):void 0}function tZ(e,t,n,i){var r,a=e[n],o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if((0,eK.I1)(a))r="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!(0,eK.gO)(a))return;r="radialGradient",o.cx=(0,w.retrieve2)(a.x,.5),o.cy=(0,w.retrieve2)(a.y,.5),o.r=(0,w.retrieve2)(a.r,.5)}for(var s=a.colorStops,l=[],u=0,d=s.length;u<d;++u){var c=100*(0,eK.Pn)(s[u].offset)+"%",h=s[u].color,p=(0,eK.ut)(h),g=p.color,f=p.opacity,y={offset:c};y["stop-color"]=g,f<1&&(y["stop-opacity"]=f),l.push(to("stop",u+"",y))}var v=ts(to(r,"",o,l)),m=i.gradientCache,x=m[v];x||(x=i.zrId+"-g"+i.gradientIdx++,m[v]=x,o.id=x,i.defs[x]=to(r,x,o,l)),t[n]=(0,eK.m1)(x)}function tk(e,t,n,i){var r,a,o,s=e.style[n],l=e.getBoundingRect(),u={},d=s.repeat,c="no-repeat"===d,h="repeat-x"===d,p="repeat-y"===d;if((0,eK.Cv)(s)){var g=s.imageWidth,f=s.imageHeight,y=void 0,v=s.image;if((0,w.isString)(v)?y=v:tw(v)?y=v.src:tS(v)&&(y=v.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";(0,w.assert)(g,m),(0,w.assert)(f,m)}else if(null==g||null==f){var x=function(e,t){if(e){var n=e.elm,i=g||t.width,r=f||t.height;"pattern"===e.tag&&(h?(r=1,i/=l.width):p&&(i=1,r/=l.height)),e.attrs.width=i,e.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},_=(0,td.Gq)(y,null,e,function(e){c||x(S,e),x(r,e)});_&&_.width&&_.height&&(g=g||_.width,f=f||_.height)}r=to("image","img",{href:y,width:g,height:f}),u.width=g,u.height=f}else s.svgElement&&(r=(0,w.clone)(s.svgElement),u.width=s.svgWidth,u.height=s.svgHeight);if(r){c?a=o=1:h?(o=1,a=u.width/l.width):p?(a=1,o=u.height/l.height):u.patternUnits="userSpaceOnUse",null==a||isNaN(a)||(u.width=a),null==o||isNaN(o)||(u.height=o);var b=(0,eK.gA)(s);b&&(u.patternTransform=b);var S=to("pattern","",u,[r]),M=ts(S),I=i.patternCache,T=I[M];T||(T=i.zrId+"-p"+i.patternIdx++,I[M]=T,u.id=T,S=i.defs[T]=to("pattern",T,u,[r])),t[n]=(0,eK.m1)(T)}}function tR(e){return document.createTextNode(e)}function tE(e,t,n){e.insertBefore(t,n)}function tV(e,t){e.removeChild(t)}function tG(e,t){e.appendChild(t)}function tz(e){return e.parentNode}function tO(e){return e.nextSibling}function tB(e,t){e.textContent=t}var tF=to("","");function tW(e){return void 0===e}function tH(e){return void 0!==e}function tY(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function tX(e){var t,n=e.children,i=e.tag;if(tH(i)){var r=e.elm=ta(i);if(tq(tF,e),(0,w.isArray)(n))for(t=0;t<n.length;++t){var a=n[t];null!=a&&tG(r,tX(a))}else tH(e.text)&&!(0,w.isObject)(e.text)&&tG(r,tR(e.text))}else e.elm=tR(e.text);return e.elm}function tU(e,t,n,i,r){for(;i<=r;++i){var a=n[i];null!=a&&tE(e,tX(a),t)}}function tj(e,t,n,i){for(;n<=i;++n){var r=t[n];null!=r&&(tH(r.tag)?tV(tz(r.elm),r.elm):tV(e,r.elm))}}function tq(e,t){var n,i=t.elm,r=e&&e.attrs||{},a=t.attrs||{};if(r!==a){for(n in a){var o=a[n];r[n]!==o&&(!0===o?i.setAttribute(n,""):!1===o?i.removeAttribute(n):"style"===n?i.style.cssText=o:120!==n.charCodeAt(0)?i.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,o):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):58===n.charCodeAt(5)?i.setAttributeNS(ti,n,o):i.setAttribute(n,o))}for(n in r)n in a||i.removeAttribute(n)}}var tJ=n(71687),tK=0,t$=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=tQ("refreshHover"),this.configLayer=tQ("configLayer"),this.storage=t,this._opts=n=(0,w.extend)({},n),this.root=e,this._id="zr"+tK++,this._oldVNode=tu(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=ta("svg");tq(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(tY(e,t))!function e(t,n){var i=n.elm=t.elm,r=t.children,a=n.children;t!==n&&(tq(t,n),tW(n.text)?tH(r)&&tH(a)?r!==a&&function(t,n,i){for(var r,a,o,s=0,l=0,u=n.length-1,d=n[0],c=n[u],h=i.length-1,p=i[0],g=i[h];s<=u&&l<=h;)null==d?d=n[++s]:null==c?c=n[--u]:null==p?p=i[++l]:null==g?g=i[--h]:tY(d,p)?(e(d,p),d=n[++s],p=i[++l]):tY(c,g)?(e(c,g),c=n[--u],g=i[--h]):tY(d,g)?(e(d,g),tE(t,d.elm,tO(c.elm)),d=n[++s],g=i[--h]):(tY(c,p)?(e(c,p),tE(t,c.elm,d.elm),c=n[--u]):(tW(r)&&(r=function(e,t,n){for(var i={},r=t;r<=n;++r){var a=e[r].key;void 0!==a&&(i[a]=r)}return i}(n,s,u)),tW(a=r[p.key])||(o=n[a]).tag!==p.tag?tE(t,tX(p),d.elm):(e(o,p),n[a]=void 0,tE(t,o.elm,d.elm))),p=i[++l]);(s<=u||l<=h)&&(s>u?tU(t,null==i[h+1]?null:i[h+1].elm,i,l,h):tj(t,n,s,u))}(i,r,a):tH(a)?(tH(t.text)&&tB(i,""),tU(i,null,a,0,a.length-1)):tH(r)?tj(i,r,0,r.length-1):tH(t.text)&&tB(i,""):t.text!==n.text&&(tH(r)&&tj(i,r,0,r.length-1),tB(i,n.text)))}(e,t);else{var n=e.elm,i=tz(n);tX(t),null!==i&&(tE(i,t.elm,tO(n)),tj(i,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return tN(e,tl(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=tl(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var a=[],o=this._bgVNode=function(e,t,n,i){var r;if(n&&"none"!==n)if(r=to("rect","bg",{width:e,height:t,x:"0",y:"0"}),(0,eK.H3)(n))tZ({fill:n},r.attrs,"fill",i);else if((0,eK.R)(n))tk({style:{fill:n},dirty:w.noop,getBoundingRect:function(){return{width:e,height:t}}},r.attrs,"fill",i);else{var a=(0,eK.ut)(n),o=a.color,s=a.opacity;r.attrs.fill=o,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);o&&a.push(o);var s=e.compress?null:this._mainVNode=to("g","main",{},[]);this._paintList(t,r,s?s.children:a),s&&a.push(s);var l=(0,w.map)((0,w.keys)(r.defs),function(e){return r.defs[e]});if(l.length&&a.push(to("defs","defs",{},l)),e.animation){var u,d,c,h,p,g,f,y,v=(u=r.cssNodes,d=r.cssAnims,p=" {"+(h=(c={newline:!0}).newline?"\n":""),g=h+"}",f=(0,w.map)((0,w.keys)(u),function(e){return e+p+(0,w.map)((0,w.keys)(u[e]),function(t){return t+":"+u[e][t]+";"}).join(h)+g}).join(h),y=(0,w.map)((0,w.keys)(d),function(e){return"@keyframes "+e+p+(0,w.map)((0,w.keys)(d[e]),function(t){return t+p+(0,w.map)((0,w.keys)(d[e][t]),function(n){var i=d[e][t][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(h)+g}).join(h)+g}).join(h),f||y?["<![CDATA[",f,y,"]]>"].join(h):"");if(v){var m=to("style","stl",{},[],v);a.push(m)}}return tu(n,i,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ts(this.renderToVNode({animation:(0,w.retrieve2)(e.cssAnimation,!0),emphasis:(0,w.retrieve2)(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,w.retrieve2)(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,a=e.length,o=[],s=0,l=0,u=0;u<a;u++){var d=e[u];if(!d.invisible){var c=d.__clipPaths,h=c&&c.length||0,p=r&&r.length||0,g=void 0;for(g=Math.max(h-1,p-1);g>=0&&(!c||!r||c[g]!==r[g]);g--);for(var f=p-1;f>g;f--)i=o[--s-1];for(var y=g+1;y<h;y++){var v={};!function(e,t,n){var i=n.clipPathCache,r=n.defs,a=i[e.id];if(!a){var o={id:a=n.zrId+"-c"+n.clipPathIdx++};i[e.id]=a,r[a]=to("clipPath",a,o,[tP(e,n)])}t["clip-path"]=(0,eK.m1)(a)}(c[y],v,t);var m=to("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),o[s++]=m,i=m}r=c;var x=tN(d,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=(0,tJ.ap)(i,0,n),t=(0,tJ.ap)(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var a=r.style;a.width=e+"px",a.height=t+"px"}if((0,eK.R)(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",e),o.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=(0,eK.oF)(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function tQ(e){return function(){}}var t0=n(44811),t1=n(508),t2=n(85731),t5=n(8890);function t3(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();w.each(r,function(e,a){t.each(t.mapDimension(r[a].dim),function(e,t){n[t]=n[t]||[];var r,o=i.dataToPoint(e,a);n[t][a]=t4(o)?o:[(r=i).cx,r.cy]})}),t.each(function(e){var r,a=w.find(n[e],function(e){return t4(e)})||[(r=i).cx,r.cy];n[e].push(a.slice()),t.setItemLayout(e,n[e])})}})}function t4(e){return!isNaN(e[0])&&!isNaN(e[1])}var t6=n(31260);function t9(e){var t=e.polar;if(t){w.isArray(t)||(t=[t]);var n=[];w.each(t,function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],w.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}w.each(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var t7=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,a=e.getData(),o=this._data;function s(t,n,i,r,a,o){i.removeAll();for(var s=0;s<n.length-1;s++){var l=function(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=k.zp(e.getItemVisual(t,"symbolSize")),r=k.th(n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:a*Math.PI/180||0}),r}}(r,a);l&&(l.__dimIdx=s,t[s]?(l.setPosition(t[s]),eo[o?"initProps":"updateProps"](l,{x:n[s][0],y:n[s][1]},e,a)):l.setPosition(n[s]),i.add(l))}}function l(e){return w.map(e,function(e){return[i.cx,i.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var i=new ef.Z,r=new ey.Z,o={shape:{points:n}};i.shape.points=l(n),r.shape.points=l(n),es.KZ(i,o,e,t),es.KZ(r,o,e,t);var u=new el.Z,d=new el.Z;u.add(r),u.add(i),u.add(d),s(r.shape.points,n,d,a,t,!0),a.setItemGraphicEl(t,u)}}).update(function(t,n){var i=o.getItemGraphicEl(n),r=i.childAt(0),l=i.childAt(1),u=i.childAt(2),d={shape:{points:a.getItemLayout(t)}};d.shape.points&&(s(r.shape.points,d.shape.points,u,a,t,!1),(0,es.Zi)(l),(0,es.Zi)(r),es.D(r,d,e),es.D(l,d,e),a.setItemGraphicEl(t,i))}).remove(function(e){r.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),i=e.childAt(0),o=e.childAt(1),s=e.childAt(2),l=a.getItemVisual(t,"style"),u=l.fill;r.add(e),i.useStyle(w.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,R.WO)(i,n,"lineStyle"),(0,R.WO)(o,n,"areaStyle");var d=n.getModel("areaStyle"),c=d.isEmpty()&&d.parentModel.isEmpty();o.ignore=c,w.each(["emphasis","select","blur"],function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&c}),o.useStyle(w.defaults(d.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();s.eachChild(function(e){if(e instanceof eu.ZP){var i=e.style;e.useStyle(w.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=w.clone(p);var r=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(null==r||isNaN(r))&&(r=""),(0,N.ni)(e,(0,N.k3)(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})}),(0,R.k5)(e,h.get("focus"),h.get("blurScope"),h.get("disabled"))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(v.Z),t8=n(78939),ne=n(26435),nt=n(31481),nn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,F.ZT)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ne.Z(w.bind(this.getData,this),w.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return(0,t8.Z)(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=""===a?this.name:a,s=(0,nt.jT)(this,e);return(0,nt.TX)("section",{header:o,sortBlocks:!0,blocks:w.map(r,function(t){var n=i.get(i.mapDimension(t.dim),e);return(0,nt.TX)("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(null!=e){for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(w.map(n.dimensions,function(e){return t.mapDimension(e)}),e),r=0,a=i.length;r<a;r++)if(!isNaN(i[r])){var o=n.getIndicatorAxes();return n.coordToPoint(o[r].dataToCoord(i[r]),r)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(y.Z),ni=n(11295).Z.value;function nr(e,t){return w.defaults({show:t},e)}var na=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),d=this.get("triggerEvent"),c=w.map(this.get("indicator")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var h=o;null!=c.color&&(h=w.defaults({color:c.color},o));var p=w.merge(w.clone(c),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:a,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:d},!1);if(w.isString(l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else w.isFunction(l)&&(p.name=l(p.name,p));var f=new D.Z(p,null,this.ecModel);return w.mixin(f,A.W.prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f},this);this._indicatorModels=c},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:w.merge({lineStyle:{color:"#bbb"}},ni.axisLine),axisLabel:nr(ni.axisLabel,!1),axisTick:nr(ni.axisTick,!1),splitLine:nr(ni.splitLine,!0),splitArea:nr(ni.splitArea,!0),indicator:[]},t}(g.Z),no=n(63914),ns=["axisLine","axisTickLabel","axisName"],nl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=w.map(n,function(e){var n=e.model.get("showName")?e.name:"";return new no.Z(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});w.each(i,function(e){w.each(ns,e.add,e),this.group.add(e.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),a=e.getModel("splitArea"),o=r.getModel("lineStyle"),s=a.getModel("areaStyle"),l=r.get("show"),u=a.get("show"),d=o.get("color"),c=s.get("color"),h=w.isArray(d)?d:[d],p=w.isArray(c)?c:[c],g=[],f=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=t.cx,m=t.cy,x=0;x<y.length;x++){if(l){var _=L(g,h,x);g[_].push(new ec.Z({shape:{cx:v,cy:m,r:y[x].coord}}))}if(u&&x<y.length-1){var _=L(f,p,x);f[_].push(new eg.Z({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}}else for(var b,S=w.map(n,function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),w.map(i,function(e){return t.coordToPoint(e.coord,n)})}),M=[],x=0;x<=b;x++){for(var I=[],T=0;T<n.length;T++)I.push(S[T][x]);if(I[0]&&I.push(I[0].slice()),l){var _=L(g,h,x);g[_].push(new ey.Z({shape:{points:I}}))}if(u&&M){var _=L(f,p,x-1);f[_].push(new ef.Z({shape:{points:I.concat(M)}}))}M=I.slice().reverse()}var A=o.getLineStyle(),D=s.getAreaStyle();w.each(f,function(e,t){this.group.add(eo.mergePath(e,{style:w.defaults({stroke:"none",fill:p[t%p.length]},D),silent:!0}))},this),w.each(g,function(e,t){this.group.add(eo.mergePath(e,{style:w.defaults({fill:"none",stroke:h[t%h.length]},A),silent:!0}))},this)}function L(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(f.Z),nu=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,F.ZT)(t,e),t}(eC.Z),nd=n(48911),nc=n(16854),nh=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=(0,w.map)(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,i=new nu(n,new nd.Z);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t,n=e[0]-this.cx,i=e[1]-this.cy,r=Math.sqrt(n*n+i*i);n/=r;for(var a=Math.atan2(-(i/=r),n),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],d=Math.abs(a-u.angle);d<o&&(t=u,s=l,o=d)}return[s,+(t&&t.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),a=Math.min(i,r)/2;this.cx=er.GM(n[0],i),this.cy=er.GM(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");((0,w.isString)(o)||(0,w.isNumber)(o))&&(o=[0,o]),this.r0=er.GM(o[0],a),this.r=er.GM(o[1],a),(0,w.each)(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;e.angle=Math.atan2(Math.sin(n),Math.cos(n))},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;(0,w.each)(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var a=t.getData();(0,w.each)(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var r=i.get("splitNumber"),a=new nd.Z;a.setExtent(0,r),a.setInterval(1),(0,w.each)(n,function(e,t){(0,nc.z)(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",function(r){var a=new e(r,t,n);i.push(a),r.coordinateSystem=a}),t.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])}),i},e.dimensions=[],e}();function np(e){e.registerCoordinateSystem("radar",nh),e.registerComponentModel(na),e.registerComponentView(nl),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var ng=n(37892);function nf(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function ny(e,t,n,i){var r=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0;o=Math.max(Math.min(a.max||1/0,o),s)}var l=o/e.zoom;e.zoom=o,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var nv=n(70226),nm=n(41149);function nx(e){(0,w.isString)(e)&&(e=new DOMParser().parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var n_={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"},nb=(0,w.keys)(n_),nw={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nS=(0,w.keys)(nw),nM=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n,i,r=nx(e);this._defsUsePending=[];var a=new el.Z;this._root=a;var o=[],s=r.getAttribute("viewBox")||"",l=parseFloat(r.getAttribute("width")||t.width),u=parseFloat(r.getAttribute("height")||t.height);isNaN(l)&&(l=null),isNaN(u)&&(u=null),nC(r,a,null,!0,!1);for(var d=r.firstChild;d;)this._parseNode(d,a,o,null,!1,!1),d=d.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],s){var c=nk(s);c.length>=4&&(n={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(n&&null!=l&&null!=u&&(i=nz(n,{x:0,y:0,width:l,height:u}),!t.ignoreViewBox)){var h=a;(a=new el.Z).add(h),h.scaleX=h.scaleY=i.scale,h.x=i.x,h.y=i.y}return t.ignoreRootClip||null==l||null==u||a.setClipPath(new ev.Z({shape:{x:0,y:0,width:l,height:u}})),{root:a,width:l,height:u,viewBoxRect:n,viewBoxTransform:i,named:o}},e.prototype._parseNode=function(e,t,n,i,r,o){var s,l=e.nodeName.toLowerCase(),u=i;if("defs"===l&&(r=!0),"text"===l&&(o=!0),"defs"===l||"switch"===l)s=t;else{if(!r){var d=a[l];if(d&&(0,w.hasOwn)(a,l)){s=d.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:l,el:s};n.push(h),"g"===l&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:s});t.add(s)}}var p=nI[l];if(p&&(0,w.hasOwn)(nI,l)){var g=p.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=g)}}if(s&&s.isGroup)for(var y=e.firstChild;y;)1===y.nodeType?this._parseNode(y,s,n,u,r,o):3===y.nodeType&&o&&this._parseText(y,s),y=y.nextSibling},e.prototype._parseText=function(e,t){var n=new e0.Z({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});nD(t,n),nC(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":("central"===i||"mathematical"===i)&&(r="middle"):r="alphabetic",e.style.textBaseline=r}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),e.style.textAlign=s)}}(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=void(a={g:function(e,t){var n=new el.Z;return nD(t,n),nC(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new ev.Z;return nD(t,n),nC(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(e,t){var n=new ec.Z;return nD(t,n),nC(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new em.Z;return nD(t,n),nC(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(e,t){var n=new eh.Z;return nD(t,n),nC(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=nL(i));var r=new ef.Z({shape:{points:n||[]},silent:!0});return nD(t,r),nC(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=nL(i));var r=new ey.Z({shape:{points:n||[]},silent:!0});return nD(t,r),nC(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new eu.ZP;return nD(t,n),nC(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new el.Z;return nD(t,o),nC(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",o=new el.Z;return nD(t,o),nC(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),o},path:function(e,t){var n=e.getAttribute("d")||"",i=(0,nm.iR)(n);return nD(t,i),nC(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),e}(),nI={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),a=new eS.Z(t,n,i,r);return nT(e,a),nA(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new eM.Z(t,n,i);return nT(e,r),nA(e,r),r}};function nT(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function nA(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var a={};nG(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:o})}n=n.nextSibling}}function nD(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),(0,w.defaults)(t.__inheritedStyle,e.__inheritedStyle))}function nL(e){for(var t=nk(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),a=parseFloat(t[i+1]);n.push([r,a])}return n}function nC(e,t,n,i,r){var a=t.__inheritedStyle=t.__inheritedStyle||{},o={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(nR,function(e,t,n){return i.push(t,n),""});for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=nk(o);switch(r=r||_.create(),s){case"translate":_.translate(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_.scale(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_.rotate(r,r,-parseFloat(l[0])*nE,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*nE);_.mul(r,[1,0,u,1,0,0],r);break;case"skewY":var d=Math.tan(parseFloat(l[0])*nE);_.mul(r,[1,d,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}t.setLocalTransform(r)}}(e,t),nG(e,a,o),i||function(e,t,n){for(var i=0;i<nb.length;i++){var r=nb[i],a=e.getAttribute(r);null!=a&&(t[n_[r]]=a)}for(var i=0;i<nS.length;i++){var r=nS[i],a=e.getAttribute(r);null!=a&&(n[nw[r]]=a)}}(e,a,o)),t.style=t.style||{},null!=a.fill&&(t.style.fill=nN(t,"fill",a.fill,n)),null!=a.stroke&&(t.style.stroke=nN(t,"stroke",a.stroke,n)),(0,w.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=a[e]&&(t.style[e]=parseFloat(a[e]))}),(0,w.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(e){null!=a[e]&&(t.style[e]=a[e])}),r&&(t.__selfStyle=o),a.lineDash&&(t.style.lineDash=(0,w.map)(nk(a.lineDash),function(e){return parseFloat(e)})),("hidden"===a.visibility||"collapse"===a.visibility)&&(t.invisible=!0),"none"===a.display&&(t.ignore=!0)}var nP=/^url\(\s*#(.*?)\)/;function nN(e,t,n,i){var r=n&&n.match(nP);if(r){var a=(0,w.trim)(r[1]);i.push([e,t,a]);return}return"none"===n&&(n=null),n}var nZ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nk(e){return e.match(nZ)||[]}var nR=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,nE=Math.PI/180,nV=/([^\s:;]+)\s*:\s*([^:;]+)/g;function nG(e,t,n){var i,r=e.getAttribute("style");if(r)for(nV.lastIndex=0;null!=(i=nV.exec(r));){var a=i[1],o=(0,w.hasOwn)(n_,a)?n_[a]:null;o&&(t[o]=i[2]);var s=(0,w.hasOwn)(nw,a)?nw[a]:null;s&&(n[s]=i[2])}}function nz(e,t){var n=Math.min(t.width/e.width,t.height/e.height);return{scale:n,x:-(e.x+e.width/2)*n+(t.x+t.width/2),y:-(e.y+e.height/2)*n+(t.y+t.height/2)}}for(var nO=(0,w.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),nB=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=(0,w.createHashMap)(),this._freedGraphics=[],this._mapName=e,this._parsedXML=nx(t)}return e.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,n,i,r=(t=e.named,n=[],i=(0,w.createHashMap)(),(0,w.each)(t,function(e){if(null==e.namedFrom){var t=new ee(e.name,e.el);n.push(t),i.set(e.name,t)}}),{regions:n,regionsMap:i}),a=r.regions,o=r.regionsMap;this._regions=a,this._regionsMap=o}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){try{var t;i=(n=e&&(t={ignoreViewBox:!0,ignoreRootClip:!0},new nM().parse(e,t))||{}).root,(0,w.assert)(null!=i)}catch(e){throw Error("Invalid svg format\n"+e.message)}var n,i,r=new el.Z;r.add(i),r.isGeoSVGGraphicRoot=!0;var a=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,d=void 0,c=void 0,h=void 0;if(null!=a?(u=0,c=a):s&&(u=s.x,c=s.width),null!=o?(d=0,h=o):s&&(d=s.y,h=s.height),null==u||null==d){var p=i.getBoundingRect();null==u&&(u=p.x,c=p.width),null==d&&(d=p.y,h=p.height)}l=this._boundingRect=new W.Z(u,d,c,h)}if(s){var g=nz(s,l);i.scaleX=i.scaleY=g.scale,i.x=g.x,i.y=g.y}r.setClipPath(new ev.Z({shape:l.plain()}));var f=[];return(0,w.each)(n.named,function(e){var t;null!=nO.get(e.svgNodeTagLower)&&(f.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1}))}),{root:r,boundingRect:l,named:f}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n)),n},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}(),nF=[126,25],nW="南海诸岛",nH=[[[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]]],nY=0;nY<nH.length;nY++)for(var nX=0;nX<nH[nY].length;nX++)nH[nY][nX][0]/=10.5,nH[nY][nX][1]/=-14,nH[nY][nX][0]+=nF[0],nH[nY][nX][1]+=nF[1];var nU={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]},nj=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],nq=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=(0,w.createHashMap)(),this._mapName=e,this._specialAreas=n,this._geoJSON=(i=t,(0,w.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):Function("return ("+i+");")():i)}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:function(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}(i)})}var r=(0,w.createHashMap)(),a=[];return(0,w.each)(n.regions,function(t){var n=t.name;e&&(0,w.hasOwn)(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),r.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new W.Z(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?ei(i,e):[]}catch(e){throw Error("Invalid geoJson format\n"+e.message)}return!function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===nW)return;t.push(new Q(nW,w.map(nH,function(e){return{type:"polygon",exterior:e}}),nF))}}(n,t),(0,w.each)(t,function(e){var t=e.name;if("china"===n){var i=nU[e.name];if(i){var r=e.getCenter();r[0]+=i[0]/10.5,r[1]+=-i[1]/14,e.setCenter(r)}}"china"===n&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:nj[0]});var a=this._specialAreas&&this._specialAreas[t];a&&e.transformTo(a.left,a.top,a.width,a.height)},this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}(),nJ=(0,w.createHashMap)();let nK=function(e,t,n){if(t.svg){var i=new nB(e,t.svg);nJ.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;var i=new nq(e,r,n);nJ.set(e,i)}},n$=function(e){return nJ.get(e)},nQ=function(e){var t=nJ.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},n0=function(e,t,n){var i=nJ.get(e);return i?i.load(t,n):void 0};var n1=n(4587),n2=n(96151),n5=n(2097),n3=["rect","circle","line","ellipse","polygon","polyline","path"],n4=w.createHashMap(n3),n6=w.createHashMap(n3.concat(["g"])),n9=w.createHashMap(n3.concat(["g"])),n7=(0,eE.Yf)();function n8(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function ie(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var it=function(){function e(e){var t=new el.Z;this.uid=(0,n1.Kr)("ec_map_draw"),this._controller=new ng.Z(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new el.Z),t.add(this._svgGroup=new el.Z)}return e.prototype.draw=function(e,t,n,i,r){var a="geo"===e.mainType,o=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(t){o||t.getHostGeoModel()!==e||(o=t.getData())});var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,d=s.getTransformInfo(),c=d.raw,h=d.roam;!l.childAt(0)||r?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):es.D(u,h,e);var p=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:p,isGeo:a,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=w.createHashMap(),n=w.createHashMap(),i=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function d(e){return{shape:{points:function(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}(e)}}}i.removeAll(),w.each(e.geo.regions,function(r){var c=r.name,h=t.get(c),p=n.get(c)||{},g=p.dataIdx,f=p.regionModel;h||(h=t.set(c,new el.Z),i.add(h),g=o?o.indexOfName(c):null,f=e.isGeo?a.getRegionModel(c):o?o.getItemModel(g):null,n.set(c,{dataIdx:g,regionModel:f}));var y=[],v=[];w.each(r.geometries,function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=il(t,l)),w.each(t,function(e){y.push(new ef.Z(d(e)))})}else{var n=e.points;l&&(n=il(n,l,!0)),w.each(n,function(e){v.push(new ey.Z(d(e)))})}});var m=u(r.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new ew.Z({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(i),ii(e,i,g,f),ir(e,i,c,f,a,g,m),n&&(ie(i),w.each(i.states,ie))}}x(y),x(v,!0)}),t.each(function(t,i){var r=n.get(i),o=r.dataIdx,s=r.regionModel;ia(e,t,i,s,a,o),io(e,t,i,s,a),is(e,t,i,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=w.createHashMap(),r=!1;w.each(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,l=t.el,u=o?o.indexOfName(n):null,d=a.getRegionModel(n);null!=n4.get(s)&&l instanceof n5.ZP&&ii(e,l,u,d),l instanceof n5.ZP&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom||(null!=n9.get(s)&&ir(e,l,n,d,a,u,null),ia(e,l,n,d,a,u),io(e,l,n,d,a),null!=n6.get(s)&&("self"===is(e,l,n,d,a)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){(0,R.MA)(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=n$(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=n$(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var o=e.mainType;function s(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}r.off("pan").on("pan",function(e){this._mouseDownFlag=!1,nf(a,e.dx,e.dy),n.dispatchAction(w.extend(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,ny(a,e.scale,e.originX,e.originY),n.dispatchAction(w.extend(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(t,r,a){return i.containPoint([r,a])&&!(0,nv.l)(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=n7(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){r._mouseDownFlag=!0}),t.on("click",function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},e}();function ii(e,t,n,i){var r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=n8(r),u=n8(a),d=n8(s),c=n8(o),h=e.data;if(h){var p=h.getItemVisual(n,"style"),g=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=(0,n2.I)(g,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=d,t.ensureState("blur").style=c,(0,R.MA)(t)}function ir(e,t,n,i,r,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),d=s&&s.getItemLayout(a);if(l||u||d&&d.showLabel){var c=l?n:a,h=void 0;(!s||a>=0)&&(h=r);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,N.ni)(t,(0,N.k3)(i),{labelFetcher:h,labelDataIndex:c,defaultText:n},p);var g=t.getTextContent();if(g&&(n7(g).ignore=g.ignore,t.textConfig&&o)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(o[0]-f.x)/f.width*100+"%",(o[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function ia(e,t,n,i,r,a){e.data?e.data.setItemGraphicEl(a,t):(0,P.A)(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function io(e,t,n,i,r){e.data||eo.setTooltipConfig({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function is(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return(0,R.k5)(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&(0,R.th)(t,r,n),o}function il(e,t,n){var i,r=[];function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return n||s.polygonStart(),w.each(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),n||s.polygonEnd(),r}var iu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){var a=this._mapDraw;a&&r.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new it(n);r.add(a.group),a.draw(e,t,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),function(t,n){if(!isNaN(t)){var a=i.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new ec.Z({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:R.zr+1)});if(!s){var u=e.mainSeries.getData(),d=i.getName(n),c=u.indexOfName(d),h=i.getItemModel(n),p=h.getModel("label"),g=u.getItemGraphicEl(c);(0,N.ni)(l,(0,N.k3)(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(c,n)}},defaultText:d}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(e){(0,R.Gl)(l,e)}}r.add(l)}}})},t.type="map",t}(v.Z),id=n(86451),ic=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e){for(var t=(0,t8.Z)(this,{coordDimensions:["value"],encodeDefaulter:w.curry(id.Ss,this)}),n=w.createHashMap(),i=[],r=0,a=t.count();r<a;r++){var o=t.getName(r);n.set(o,!0)}var s=n0(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w.each(s.regions,function(e){var t=e.name;n.get(t)||i.push(t)}),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),a=i.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(a),d=i.mapDimension("value");isNaN(o[l].originalData.get(d,u))||s.push(o[l].name)}return(0,nt.TX)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,nt.TX)("nameValue",{name:a,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=(0,k.th)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(y.Z);function ih(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),w.each(t,function(e,t){for(var n,i,r,a=(n=w.map(e,function(e){return e.getData()}),i=e[0].get("mapValueCalculation"),r={},w.each(n,function(e){e.each(e.mapDimension("value"),function(t,n){var i="ec-"+e.getName(n);r[i]=r[i]||[],isNaN(t)||r[i].push(t)})}),n[0].map(n[0].mapDimension("value"),function(e,t){for(var a,o="ec-"+n[0].getName(t),s=0,l=1/0,u=-1/0,d=r[o].length,c=0;c<d;c++)l=Math.min(l,r[o][c]),u=Math.max(u,r[o][c]),s+=r[o][c];return a="min"===i?l:"max"===i?u:"average"===i?s/d:s,0===d?NaN:a})),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(var o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(a.cloneShallow()),e[o].mainSeries=e[0]})}function ip(e){var t={};e.eachSeriesByType("map",function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};w.each(n.seriesGroup,function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),function(e,t){var a=i.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=r[a]||0,l=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(t,{point:l,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!r[t],a.setItemLayout(e,n)}),t[i]=!0}})}var ig=n(52914),iy=b.applyTransform,iv=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new eV.ZP,n._rawTransformable=new eV.ZP,n.name=t,n}return(0,F.ZT)(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new W.Z(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new W.Z(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new W.Z(e,t,n,i));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[(0,er.GM)(e[0],t.getWidth()),(0,er.GM)(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=b.applyTransform([],i,e),n=b.applyTransform([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),_.copy(this.transform||(this.transform=[]),t.transform||_.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],_.invert(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new eV.ZP;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?iy(n,e,i):b.copy(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?iy([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=im(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=im(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(eV.ZP);function im(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var ix={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},i_=["lng","lat"],ib=function(e){function t(t,n,i){var r,a=e.call(this,t)||this;a.dimensions=i_,a.type="geo",a._nameCoordMap=w.createHashMap(),a.map=n;var o=i.projection,s=n0(n,i.nameMap,i.nameProperty),l=n$(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,d=ix[l.type];if(a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o,o)for(var c=0;c<u.length;c++){var h=u[c].getBoundingRect(o);(r=r||h.clone()).union(h)}else r=s.boundingRect;return a.setBoundingRect(r.x,r.y,r.width,r.height),a.aspectScale=o?1:w.retrieve2(i.aspectScale,d.aspectScale),a._invertLongitute=!o&&d.invertLongitute,a}return(0,F.ZT)(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),a=this._invertLongitute;r=r.clone(),a&&(r.y=-r.y-r.height);var o=this._rawTransformable;o.transform=r.calculateTransform(new W.Z(e,t,n,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(w.isString(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=iw(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=iw(t);return i===this?i.pointToData(n):null},t}(iv);function iw(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",eE.C6).models[0]||{}).coordinateSystem:null}function iS(e,t){var n,i,r,a=e.get("boundingCoords");if(null!=a){var o=a[0],s=a[1];if(isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])){var l=this.projection;if(l){var u=o[0],d=o[1],c=s[0],h=s[1];o=[1/0,1/0],s=[-1/0,-1/0];var p=function(e,t,n,i){for(var r=n-e,a=i-t,u=0;u<=100;u++){var d=u/100,c=l.project([e+r*d,t+a*d]);b.min(o,o,c),b.max(s,s,c)}};p(u,d,c,d),p(c,d,c,h),p(c,h,u,h),p(u,h,c,d)}this.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1])}}var g=this.getBoundingRect(),f=e.get("layoutCenter"),y=e.get("layoutSize"),v=t.getWidth(),m=t.getHeight(),x=g.width/g.height*this.aspectScale,_=!1;if(f&&y&&(n=[er.GM(f[0],v),er.GM(f[1],m)],i=er.GM(y,Math.min(v,m)),isNaN(n[0])||isNaN(n[1])||isNaN(i)||(_=!0)),_)r={},x>1?(r.width=i,r.height=i/x):(r.height=i,r.width=i*x),r.y=n[1]-r.height/2,r.x=n[0]-r.width/2;else{var w=e.getBoxLayoutParams();w.aspect=x,r=L.ME(w,{width:v,height:m})}this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}w.mixin(ib,iv);var iM=new(function(){function e(){this.dimensions=i_}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",function(e,r){var a=e.get("map"),o=new ib(a+r,a,w.extend({nameMap:e.get("nameMap")},i(e)));o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=iS,o.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}});var r={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}}),w.each(r,function(e,r){var a=w.map(e,function(e){return e.get("nameMap")}),o=new ib(r,r,w.extend({nameMap:w.mergeAll(a)},i(e[0])));o.zoomLimit=w.retrieve.apply(null,w.map(e,function(e){return e.get("scaleLimit")})),n.push(o),o.resize=iS,o.resize(e[0],t),w.each(e,function(e){e.coordinateSystem=o,w.each(e.get("geoCoord"),function(e,t){o.addGeoCoord(t,e)})})}),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),a=w.createHashMap(),o=0;o<r.length;o++)a.set(r[o].name,r[o]);var s=n0(t,n,i);return w.each(s.regions,function(e){var t=e.name;a.get(t)||r.push({name:t})}),r},e}()),iI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t,n){var i=n$(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),eE.Cc(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=iM.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=w.reduce(t.regions||[],function(t,i){var r=i.name;return r&&(t.set(r,new D.Z(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t},w.createHashMap()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new D.Z(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return w.isFunction(i)?(r.status=t,i(r)):w.isString(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.type="geo",t.layoutMode="box",t.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(g.Z);function iT(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function iA(e,t,n,i){var r=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(iT(e,s),i)),null!=o){if(n){var l=n.min||0;o=Math.max(Math.min(r*o,n.max||1/0),l)/r}e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(iT(e,s),i),e.setZoom(o*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var iD=n(26501),iL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new it(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;(0,iD.o)(e.target,function(e){return null!=(t=(0,P.A)(e).eventData)},!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse(function(e){var t=(0,P.A)(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(f.Z);function iC(e,t,n){nK(e,t,n)}function iP(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name);var a=n.coordinateSystem;(0,w.each)(a.regions,function(e){i[e.name]=n.isSelected(e.name)||!1});var o=[];(0,w.each)(i,function(e,t){i[t]&&o.push(t)}),r.push({geoIndex:n.componentIndex,name:o})}),{selected:i,allSelected:r,name:e.name}})}e.registerCoordinateSystem("geo",iM),e.registerComponentModel(iI),e.registerComponentView(iL),e.registerImpl("registerMap",iC),e.registerImpl("getMap",function(e){return nQ(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){var r=t.coordinateSystem;if("geo"===r.type){var a=iA(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===i&&(0,w.each)(t.seriesGroup,function(e){e.setCenter(a.center),e.setZoom(a.zoom)})}})})}var iN=n(3802);function iZ(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){for(var t=e.children,n=t.length,i=0,r=0;--n>=0;){var a=t[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var r=e,a=e,o=a.parentNode.children[0],s=t,l=r.hierNode.modifier,u=a.hierNode.modifier,d=o.hierNode.modifier,c=s.hierNode.modifier;s=iV(s),a=iG(a),s&&a;){r=iV(r),o=iG(o),r.hierNode.ancestor=e;var h,p,g,f=s.hierNode.prelim+c-a.hierNode.prelim-u+i(s,a);f>0&&(function(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}((h=s,p=e,g=n,h.hierNode.ancestor.parentNode===p.parentNode?h.hierNode.ancestor:g),e,f),u+=f,l+=f),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,d+=o.hierNode.modifier}s&&!iV(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),a&&!iG(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-d,n=e)}return n}(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function ik(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function iR(e){return arguments.length?e:iz}function iE(e,t){return{x:t*Math.cos(e-=Math.PI/2),y:t*Math.sin(e)}}function iV(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function iG(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function iz(e,t){return e.parentNode===t.parentNode?1:2}var iO=n(5310),iB=function(){this.parentPoint=[],this.childPoints=[]},iF=function(e){function t(t){return e.call(this,t)||this}return(0,F.ZT)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iB},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,a=n[0],o=n[i-1];if(1===i){e.moveTo(r[0],r[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,l=+("TB"!==s&&"BT"!==s),u=1-l,d=(0,er.GM)(t.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(o[u]-r[u])*d,e.moveTo(r[0],r[1]),e.lineTo(c[0],c[1]),e.moveTo(a[0],a[1]),c[l]=a[l],e.lineTo(c[0],c[1]),c[l]=o[l],e.lineTo(c[0],c[1]),e.lineTo(o[0],o[1]);for(var h=1;h<i-1;h++){var p=n[h];e.moveTo(p[0],p[1]),c[l]=p[l],e.lineTo(c[0],c[1])}},t}(e$.ZP),iW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new el.Z,n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t){this._controller=new ng.Z(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,a=this._mainGroup;"radial"===e.get("layout")?(a.x=r.x+r.width/2,a.y=r.y+r.height/2):(a.x=r.x,a.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var o=this._data;i.diff(o).add(function(t){iH(i,t)&&iY(i,t,null,a,e)}).update(function(t,n){var r=o.getItemGraphicEl(n);if(!iH(i,t)){r&&ij(o,n,r,a,e);return}iY(i,t,r,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&ij(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl(function(t,i){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each(function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])});var r=[],a=[];iO.zk(i,r,a);var o=this._min,s=this._max;a[0]-r[0]==0&&(r[0]=o?o[0]:r[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-r[1]==0&&(r[1]=o?o[1]:r[1]-1,a[1]=s?s[1]:a[1]+1);var l=e.coordinateSystem=new iv;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=a},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,a=this._controllerHost,o=this.group;r.setPointerChecker(function(t,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!(0,nv.l)(t,n,e)}),r.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){nf(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){ny(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(v.Z);function iH(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function iY(e,t,n,i,r){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:"#fff",d=e.tree.root,c=o.parentNode===d?o:o.parentNode||o,h=e.getItemGraphicEl(c.dataIndex),p=c.getLayout(),g=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,f=o.getLayout();a?((n=new iN.Z(e,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,es.D(n,{x:f.x,y:f.y},r);var y=n.getSymbolPath();if("radial"===r.get("layout")){var v=d.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(f.x===m.x&&!0===o.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(_=Math.atan2(S.y-m.y,S.x-m.x))<0&&(_=2*Math.PI+_),(b=S.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(f.y-m.y,f.x-m.x))<0&&(_=2*Math.PI+_),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(b=f.x<m.x)&&(_-=Math.PI):(b=f.x>m.x)||(_-=Math.PI);var M=b?"left":"right",I=s.getModel("label"),T=I.get("rotate"),A=Math.PI/180*T,D=y.getTextContent();D&&(y.setTextConfig({position:I.get("position")||M,rotation:null==T?-_:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),C="relative"===L?w.concatArray(o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===L?o.getAncestorsIndices():"descendant"===L?o.getDescendantIndices():null;C&&((0,P.A)(n).focus=C),function(e,t,n,i,r,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),d=e.get("layout"),c=e.getOrient(),h=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),f=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(f||(f=i.__edge=new ex.Z({shape:iq(d,c,h,r,r)})),es.D(f,{shape:iq(d,c,h,a,o)},e));else if("polyline"===u&&"orthogonal"===d&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var y=t.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}f||(f=i.__edge=new iF({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:p}})),es.D(f,{shape:{parentPoint:[o.x,o.y],childPoints:v}},e)}f&&!("polyline"===u&&!t.isExpand)&&(f.useStyle(w.defaults({strokeNoScale:!0,fill:null},g)),(0,R.WO)(f,l,"lineStyle"),(0,R.MA)(f),s.add(f))}(r,o,d,n,g,p,f,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===R.CX||(0,R.Gl)(n.__edge,t)}})}function iX(e,t,n,i,r){var a=iU(t.tree.root,e),o=a.source,s=a.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(o.dataIndex).__edge,d=l.__edge||(!1===o.isExpand||1===o.children.length?u:void 0),c=i.get("edgeShape"),h=i.get("layout"),p=i.get("orient"),g=i.get(["lineStyle","curveness"]);d&&("curve"===c?es.bX(d,{shape:iq(h,p,g,s,s),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===c&&"orthogonal"===i.get("layout")&&es.bX(d,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function iU(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function ij(e,t,n,i,r){var a=e.tree.getNodeByDataIndex(t),o=iU(e.tree.root,a).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};es.bX(n,{x:o.x+1,y:o.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),a.children.forEach(function(t){iX(t,e,i,r,s)}),iX(a,e,i,r,s)}function iq(e,t,n,i,r){if("radial"===e){u=i.rawX,c=i.rawY,d=r.rawX;var a,o,s,l,u,d,c,h=r.rawY,p=iE(u,c),g=iE(u,c+(h-c)*n),f=iE(d,h+(c-h)*n),y=iE(d,h);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:f.x||0,cpy2:f.y||0}}return u=i.x,c=i.y,d=r.x,h=r.y,("LR"===t||"RL"===t)&&(a=u+(d-u)*n,o=c,s=d+(u-d)*n,l=h),("TB"===t||"BT"===t)&&(a=u,o=c+(h-c)*n,s=d,l=h+(c-h)*n),{x1:u,y1:c,x2:d,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var iJ=(0,eE.Yf)();function iK(e,t){var n;if(n=this,iJ(n).mainData===n){var i=(0,w.extend)({},iJ(this).datas);i[this.dataType]=t,i2(t,i,e)}else i5(t,this.dataType,iJ(this).mainData,e);return t}function i$(e,t){return e.struct&&e.struct.update(),t}function iQ(e,t){return(0,w.each)(iJ(t).datas,function(n,i){n!==t&&i5(n.cloneShallow(),i,t,e)}),t}function i0(e){var t=iJ(this).mainData;return null==e||null==t?t:iJ(t).datas[e]}function i1(){var e=iJ(this).mainData;return null==e?[{data:e}]:(0,w.map)((0,w.keys)(iJ(e).datas),function(t){return{type:t,data:iJ(e).datas[t]}})}function i2(e,t,n){iJ(e).datas={},(0,w.each)(t,function(t,i){i5(t,i,e,n)})}function i5(e,t,n,i){iJ(n).datas[t]=e,iJ(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=i0,e.getLinkedDataAll=i1}let i3=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,i2(t,n,e),(0,w.each)(n,function(n){(0,w.each)(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,(0,w.curry)(iK,e))})}),t.wrapMethod("cloneShallow",(0,w.curry)(iQ,e)),(0,w.each)(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,(0,w.curry)(i$,e))}),(0,w.assert)(n[t.dataType]===t)};var i4=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){w.isFunction(e)&&(n=t,t=e,e=null),e=e||{},w.isString(e)&&(e={order:e});var i,r=e.order||"preorder",a=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var o=0;!i&&o<a.length;o++)a[o].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t}return -1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),i6=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),a=[],o=1;!function e(t,n){var i,s,l,u=t.value;o=Math.max(o,w.isArray(u)?u.length:1),a.push(t);var d=new i4((0,eE.U5)(t.name,""),r);n?(i=d,l=(s=n).children,i.parentNode!==s&&(l.push(i),i.parentNode=s)):r.root=d,r._nodes.push(d);var c=t.children;if(c)for(var h=0;h<c.length;h++)e(c[h],d)}(t),r.root.updateDepthAndHeight(0);var s=(0,Z.Z)(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,l=new m.Z(s,n);return l.initData(a),i&&i(l),i3({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},e}();function i9(e,t,n){if(e&&w.indexOf(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(w.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var a=e.targetNodeId;if(null!=a&&(r=i.getNodeById(a)))return{node:r}}}function i7(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function i8(e,t){var n=i7(e);return w.indexOf(n,t)>=0}function re(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new D.Z(n,this,this.ecModel),r=i6.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e})}),a=0;r.eachNode("preorder",function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData().tree,r=i.root.children[0],a=i.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==r;)s=a.parentNode.name+"."+s,a=a.parentNode;return(0,nt.TX)("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=re(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(y.Z);function rn(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var r=n.children;if(r.length)for(var a=r.length-1;a>=0;a--)i.push(r[a])}}function ri(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=L.ME(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});e.layoutInfo=n;var i=e.get("layout"),r=0,a=0,o=null;"radial"===i?(r=2*Math.PI,a=Math.min(n.height,n.width)/2,o=iR(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(r=n.width,a=n.height,o=iR());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,n,i=[e];t=i.pop();)if(n=t.children,t.isExpand&&n.length)for(var r=n.length,a=r-1;a>=0;a--){var o=n[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}(s),function(e,t,n){for(var i,r=[e],a=[];i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=a.pop();)t(i,n)}(l,iZ,o),s.hierNode.modifier=-l.hierNode.prelim,rn(l,ik);var u=l,d=l,c=l;rn(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>c.depth&&(c=e)});var h=u===d?1:o(u,d)/2,p=h-u.getLayout().x,g=0,f=0,y=0,v=0;if("radial"===i)g=r/(d.getLayout().x+h+p),f=a/(c.depth-1||1),rn(l,function(e){y=(e.getLayout().x+p)*g,v=(e.depth-1)*f;var t=iE(y,v);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:v},!0)});else{var m=e.getOrient();"RL"===m||"LR"===m?(f=a/(d.getLayout().x+h+p),g=r/(c.depth-1||1),rn(l,function(e){v=(e.getLayout().x+p)*f,y="LR"===m?(e.depth-1)*g:r-(e.depth-1)*g,e.setLayout({x:y,y:v},!0)})):("TB"===m||"BT"===m)&&(g=r/(d.getLayout().x+h+p),f=a/(c.depth-1||1),rn(l,function(e){y=(e.getLayout().x+p)*g,v="TB"===m?(e.depth-1)*f:a-(e.depth-1)*f,e.setLayout({x:y,y:v},!0)}))}}}(e,t)})}function rr(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");(0,w.extend)(i,n)})})}var ra=["treemapZoomToNode","treemapRender","treemapMove"],ro=n(5693);function rs(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var i=t;i&&i.depth>1;)i=i.parentNode;var r=(0,ro.i)(e.ecModel,i.name||i.dataIndex+"",n);t.setVisual("decal",r)})}var rl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;w.each(t.children,function(t){e(t);var i=t.value;w.isArray(i)&&(i=i[0]),n+=i});var i=t.value;w.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),w.isArray(t.value)?t.value[0]=i:t.value=i}(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},a=new D.Z({itemStyle:r},this,t);i=e.levels=function(e,t){var n,i,r=(0,eE.kF)(t.get("color")),a=(0,eE.kF)(t.get(["aria","decal","decals"]));if(r){e=e||[],w.each(e,function(e){var t=new D.Z(e),r=t.get("color"),a=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(t.get(["itemStyle","decal"])||a&&"none"!==a)&&(i=!0)});var o=e[0]||(e[0]={});return n||(o.color=r.slice()),!i&&a&&(o.decal=a.slice()),e}}(i,t);var o=w.map(i||[],function(e){return new D.Z(e,a,t)},this),s=i6.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=s.getNodeByDataIndex(t);return e.parentModel=(n?o[n.depth]:null)||a,e})});return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),a=i.getName(e);return(0,nt.TX)("nameValue",{name:a,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=re(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},w.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=w.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){rs(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(y.Z),ru=n(82787),rd=function(){function e(e){this.group=new el.Z,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&n){var o=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),d={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,d,l),this._renderContent(e,d,o,s,l,u,i),L.p$(a,d.pos,d.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=(0,eE.U5)(i.getModel().get("name"),""),a=Math.max(n.getTextRect(r).width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,a,o){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),d=L.lq(t.pos,t.box),c=t.totalWidth,h=t.renderList,p=i.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var f,y,v,m=h[g],x=m.node,_=m.width,b=m.text;c>d.width&&(c-=_-l,_=l,b=null);var S=new ef.Z({shape:{points:function(e,t,n,i,r,a){var o=[[r?e:e-5,0],[e+n,t],[e+n,t+i],[r?e:e-5,t+i]];return a||o.splice(2,0,[e+n+5,t+i/2]),r||o.push([e,t+i/2]),o}(s,0,_,u,g===h.length-1,0===g)},style:(0,w.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ed.ZP({style:(0,N.Lr)(r,{text:b})}),textConfig:{position:"inside"},z2:1e4*R.zr,onclick:(0,w.curry)(o,x)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=(0,N.Lr)(a,{text:b}),S.ensureState("emphasis").style=p,(0,R.k5)(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),f=S,y=e,v=x,(0,P.A)(f).eventData={componentType:"series",componentSubType:"treemap",componentIndex:y.componentIndex,seriesIndex:y.seriesIndex,seriesName:y.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:v&&v.dataIndex,name:v&&v.name},treePathInfo:v&&re(v,y)},s+=_+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),rc=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}(),rh=n(46258),rp=el.Z,rg=ev.Z,rf="label",ry="upperLabel",rv=10*R.zr,rm=2*R.zr,rx=3*R.zr,r_=(0,rh.Z)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rb=function(e){var t=r_(e);return t.stroke=t.fill=t.lineWidth=null,t},rw=(0,eE.Yf)(),rS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=rM(),n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(0>(0,w.indexOf)(r,e))){this.seriesModel=e,this.api=n,this.ecModel=t;var a=i9(i,["treemapZoomToNode","treemapRootToNode"],e),o=i&&i.type,s=e.layoutInfo,l=!this._oldTree,u=this._storage,d="treemapRootToNode"===o&&a&&u?{rootNodeGroup:u.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,c=this._giveContainerGroup(s),h=e.get("animation"),p=this._doRender(c,e,d);!h||l||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(c,p,e,d),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new rp,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i,r,a=t.getData().tree,o=this._oldTree,s=rM(),l=rM(),u=this._storage,d=[];!function e(i,r,a,o,c){function h(e){return e.getId()}function p(h,p){var g=null!=h?i[h]:null,f=null!=p?r[p]:null,y=function(e,t,n,i,r,a,o,s,l,u){if(o){var d=o.getLayout(),c=e.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,f=d.borderWidth,y=d.invisible,v=o.getRawIndex(),m=s&&s.getRawIndex(),x=o.viewChildren,_=d.upperHeight,b=x&&x.length,S=h.getModel("itemStyle"),M=h.getModel(["emphasis","itemStyle"]),I=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,D=F("nodeGroup",rp);if(D){if(l.add(D),D.x=d.x||0,D.y=d.y||0,D.markRedraw(),rw(D).nodeWidth=p,rw(D).nodeHeight=g,d.isAboveViewRoot)return D;var L=F("background",rg,u,rm);L&&function(t,n,i){var r=(0,P.A)(n);if(r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:A}),y)z(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=rb(S);l.fill=s;var u=r_(M);u.fill=M.get("borderColor");var d=r_(I);d.fill=I.get("borderColor");var c=r_(T);if(c.fill=T.get("borderColor"),i){var h=p-2*f;O(n,s,a.opacity,{x:f,y:0,width:h,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=c,(0,R.MA)(n)}t.add(n)}(D,L,b&&d.upperLabelHeight);var C=h.getModel("emphasis"),Z=C.get("focus"),k=C.get("blurScope"),E=C.get("disabled"),V="ancestor"===Z?o.getAncestorsIndices():"descendant"===Z?o.getDescendantIndices():Z;if(b)(0,R.Av)(D)&&(0,R.Nj)(D,!1),L&&((0,R.Nj)(L,!E),c.setItemGraphicEl(o.dataIndex,L),(0,R.Ib)(L,V,k));else{var G=F("content",rg,u,rx);G&&function(t,n){var i=(0,P.A)(n);i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*f,0),a=Math.max(g-2*f,0);if(n.culling=!0,n.setShape({x:f,y:f,width:r,height:a,r:A}),y)z(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=rb(S);u.fill=l,u.decal=s.decal;var d=r_(M),c=r_(I),h=r_(T);O(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=d,n.ensureState("blur").style=c,n.ensureState("select").style=h,(0,R.MA)(n)}t.add(n)}(D,G),L.disableMorphing=!0,L&&(0,R.Av)(L)&&(0,R.Nj)(L,!1),(0,R.Nj)(D,!E),c.setItemGraphicEl(o.dataIndex,D),(0,R.Ib)(D,V,k)}return D}}}function z(e){e.invisible||a.push(e)}function O(t,n,i,r){var a=h.getModel(r?ry:rf),s=(0,eE.U5)(h.get("name"),null),l=a.getShallow("show");(0,N.ni)(t,(0,N.k3)(h,r?ry:rf),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:o.dataIndex});var u=t.getTextContent();if(u){var c=u.style,p=(0,w.normalizeCssArray)(c.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);(c.width!==e||c.height!==n)&&u.setStyle({width:e,height:n})},c.truncateMinChar=2,c.lineOverflow="truncate",B(c,r,d);var g=u.getState("emphasis");B(g?g.style:null,r,d)}}function B(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+r:r}}function F(e,a,s,l){var u,d,c,h=null!=m&&n[e][m],p=r[e];return h?(n[e][m]=null,u=p,d=h,c=u[v]={},d instanceof rp?(c.oldX=d.x,c.oldY=d.y):c.oldShape=(0,w.extend)({},d.shape)):y||((h=new a)instanceof n5.ZP&&(h.z2=s*rv+l),function(e,t){var n=e[v]={},a=o.parentNode,s=t instanceof el.Z;if(a&&(!i||"drillDown"===i.direction)){var l=0,u=0,d=r.background[a.getRawIndex()];!i&&d&&d.oldShape&&(l=d.oldShape.width,u=d.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(p,h)),t[e][v]=h}}(t,l,u,n,s,d,g,f,a,c);y&&e(g&&g.viewChildren||[],f&&f.viewChildren||[],y,o,c+1)}o?(r=i,(0,w.each)(i,function(e,t){e.isRemoved()||p(t,t)})):new ru.Z(r,i,h,h).add(p).update(p).remove((0,w.curry)(p,null)).execute()}(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var c=(i=u,r=rM(),i&&(0,w.each)(i,function(e,t){var n=r[t];(0,w.each)(e,function(e){e&&(n.push(e),rw(e).willDelete=!0)})}),r);return this._oldTree=a,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:function(){(0,w.each)(c,function(e){(0,w.each)(e,function(e){e.parent&&e.parent.remove(e)})}),(0,w.each)(d,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=((0,w.isFunction)(r)?0:r)||0,s=((0,w.isFunction)(a)?null:a)||"cubicOut",l=new rc;(0,w.each)(t.willDeleteEls,function(e,t){(0,w.each)(e,function(e,n){if(!e.invisible){var r,a=e.parent,u=rw(a);if(i&&"drillDown"===i.direction)r=a===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var d=0,c=0;u.willDelete||(d=u.nodeWidth/2,c=u.nodeHeight/2),r="nodeGroup"===t?{x:d,y:c,style:{opacity:0}}:{shape:{x:d,y:c,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,o,0,s)}})}),(0,w.each)(this._storage,function(e,n){(0,w.each)(e,function(e,i){var r=t.lastsForAnimation[n][i],a={};r&&(e instanceof el.Z?null!=r.oldX&&(a.x=e.x,a.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(a.shape=(0,w.extend)({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),a.style={opacity:1}):1!==e.style.opacity&&(a.style={opacity:1})),l.add(e,a,o,0,s))})},this),this._state="animating",l.finished((0,w.bind)(function(){this._state="ready",t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new ng.Z(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",(0,w.bind)(this._onPan,this)),t.on("zoom",(0,w.bind)(this._onZoom,this)));var n=new W.Z(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,i){return n.contain(t,i)})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(t){var n=t.getLayout();n&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var a=new W.Z(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=_.create();_.translate(s,s,[-t,-n]),_.scale(s,s,[e.scale,e.scale]),_.translate(s,s,[t,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var a=r.hostTree.data.getItemModel(r.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&(0,eI.MI)(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;!n&&((n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new rd(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(i8(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rM(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(e,t),o=r.shape;if(!(o.x<=a[0])||!(a[0]<=o.x+o.width)||!(o.y<=a[1])||!(a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}},this),n},t.type="treemap",t}(v.Z);function rM(){return{nodeGroup:[],background:[],content:[]}}var rI=n(89125),rT=(0,eE.Yf)();let rA={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,n,i,r){var a=t.getModel(),o=t.getLayout(),s=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var l,u,d,c,h,p,g,f=a.getModel("itemStyle"),y=(l=f,u=n,d=r,c=(0,w.extend)({},u),h=d.designatedVisualItemStyle,(0,w.each)(["color","colorAlpha","colorSaturation"],function(e){h[e]=u[e];var t=l.get(e);h[e]=null,null!=t&&(c[e]=t)}),c),v=s.ensureUniqueItemVisual(t.dataIndex,"style"),m=f.get("borderColor"),x=f.get("borderColorSaturation");null!=x&&(p=x,m=null!=(g=rD(y))?(0,S.modifyHSL)(g,null,null,p):null),v.stroke=m;var _=t.viewChildren;if(_&&_.length){var b=function(e,t,n,i,r,a){if(a&&a.length){var o=rC(t,"color")||null!=r.color&&"none"!==r.color&&(rC(t,"colorAlpha")||rC(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var d=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};"color"===c.type&&("index"===d||"id"===d)?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new rI.Z(c);return rT(h).drColorMappingBy=d,h}}}(0,a,o,0,y,_);(0,w.each)(_,function(t,n){if(t.depth>=i.length||t===i[t.depth]){var o=function(e,t,n,i,r,a){var o=(0,w.extend)({},t);if(r){var s=r.type,l="color"===s&&rT(r).drColorMappingBy,u="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}(a,y,t,n,b,r);e(t,o,i,r)}})}else v.fill=rD(y)}}(t,{},e.getViewRoot().getAncestors(),e)}};function rD(e){var t=rL(e,"color");if(t){var n=rL(e,"colorAlpha"),i=rL(e,"colorSaturation");return i&&(t=(0,S.modifyHSL)(t,null,null,i)),n&&(t=(0,S.modifyAlpha)(t,n)),t}}function rL(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function rC(e,t){var n=e.get(t);return(0,w.isArray)(n)&&n.length?{name:t,range:n}:null}var rP=Math.max,rN=Math.min,rZ=w.retrieve,rk=w.each,rR=["itemStyle","borderWidth"],rE=["itemStyle","gapWidth"],rV=["upperLabel","show"],rG=["upperLabel","height"];let rz={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),a=n.getHeight(),o=e.option,s=L.ME(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=(0,er.GM)(rZ(s.width,l[0]),r),d=(0,er.GM)(rZ(s.height,l[1]),a),c=i&&i.type,h=i9(i,["treemapZoomToNode","treemapRootToNode"],e),p="treemapRender"===c||"treemapMove"===c?i.rootRect:null,g=e.getViewRoot(),f=i7(g);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(e,t,n,i,r){var a,o=(t||{}).node,s=[i,r];if(!o||o===n)return s;for(var l=i*r,u=l*e.option.zoomToNodeRatio;a=o.parentNode;){for(var d=0,c=a.children,h=0,p=c.length;h<p;h++)d+=c[h].getValue();var g=o.getValue();if(0===g)return s;u*=d/g;var f=a.getModel(),y=f.get(rR),v=Math.max(y,rB(f));(u+=4*y*y+(3*y+v)*Math.pow(u,.5))>er.YM&&(u=er.YM),o=a}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}(e,h,g,u,d):p?[p.width,p.height]:[u,d],v=o.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:o.squareRatio,sort:v,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),function e(t,n,i,r){if(!t.isRemoved()){var a,o,s=t.getLayout();a=s.width,o=s.height;var l=t.getModel(),u=l.get(rR),d=l.get(rE)/2,c=rB(l),h=Math.max(u,c),p=u-d,g=h-d;t.setLayout({borderWidth:u,upperHeight:h,upperLabelHeight:c},!0);var f=(a=rP(a-2*p,0))*(o=rP(o-p-g,0)),y=function(e,t,n,i,r,a){var o,s,l=e.children||[],u=i.sort;"asc"!==u&&"desc"!==u&&(u=null);var d=null!=i.leafDepth&&i.leafDepth<=a;if(r&&!d)return e.viewChildren=[];o=l=w.filter(l,function(e){return!e.isRemoved()}),(s=u)&&o.sort(function(e,t){var n="asc"===s?e.getValue()-t.getValue():t.getValue()-e.getValue();return 0===n?"asc"===s?e.dataIndex-t.dataIndex:t.dataIndex-e.dataIndex:n});var c=function(e,t,n){for(var i,r=0,a=0,o=t.length;a<o;a++)r+=t[a].getValue();var s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(i=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&i.reverse()):(i=[1/0,-1/0],rk(t,function(e){var t=e.getValue(s);t<i[0]&&(i[0]=t),t>i[1]&&(i[1]=t)})):i=[NaN,NaN],{sum:r,dataExtent:i}}(t,l,u);if(0===c.sum||(c.sum=function(e,t,n,i,r){if(!i)return n;for(var a=e.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===i?o-l-1:l].getValue();u/n*t<a&&(s=l,n-=u)}return"asc"===i?r.splice(0,o-s):r.splice(s,o-s),n}(t,n,c.sum,u,l),0===c.sum))return e.viewChildren=[];for(var h=0,p=l.length;h<p;h++){var g=l[h].getValue()/c.sum*n;l[h].setLayout({area:g})}return d&&(l.length&&e.setLayout({isLeafRoot:!0},!0),l.length=0),e.viewChildren=l,e.setLayout({dataExtent:c.dataExtent},!0),l}(t,l,f,n,i,r);if(y.length){var v={x:p,y:g,width:a,height:o},m=rN(a,o),x=1/0,_=[];_.area=0;for(var b=0,S=y.length;b<S;){var M=y[b];_.push(M),_.area+=M.getLayout().area;var I=function(e,t,n){for(var i=0,r=1/0,a=0,o=void 0,s=e.length;a<s;a++)(o=e[a].getLayout().area)&&(o<r&&(r=o),o>i&&(i=o));var l=e.area*e.area,u=t*t*n;return l?rP(u*i/l,l/(u*r)):1/0}(_,m,n.squareRatio);I<=x?(b++,x=I):(_.area-=_.pop().getLayout().area,rO(_,m,v,d,!1),m=rN(v.width,v.height),_.length=_.area=0,x=1/0)}if(_.length&&rO(_,m,v,d,!0),!i){var T=l.get("childrenVisibleMin");null!=T&&f<T&&(i=!0)}for(var b=0,S=y.length;b<S;b++)e(y[b],n,i,r+1)}}}(g,m,!1,0),x=g.getLayout(),rk(f,function(e,t){var n=(f[t+1]||g).getValue();e.setLayout(w.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))})}var _=e.getData().tree.root;_.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,a=r.getLayout();if(!a)return i;for(var o=[a.width/2,a.height/2],s=r;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}(s,p,h),!0),e.setLayoutInfo(s),function e(t,n,i,r,a){var o=t.getLayout(),s=i[a],l=s&&s===t;if((!s||l)&&(a!==i.length||t===r)){t.setLayout({isInView:!0,invisible:!l&&!n.intersect(o),isAboveViewRoot:l},!0);var u=new W.Z(n.x-o.x,n.y-o.y,n.width,n.height);rk(t.viewChildren||[],function(t){e(t,u,i,r,a+1)})}}(_,new W.Z(-s.x,-s.y,r,a),f,g,0)}};function rO(e,t,n,i,r){var a=+(t!==n.width),o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],d=t?e.area/t:0;(r||d>n[l[o]])&&(d=n[l[o]]);for(var c=0,h=e.length;c<h;c++){var p=e[c],g={},f=d?p.getLayout().area/d:0,y=g[l[o]]=rP(d-2*i,0),v=n[s[a]]+n[l[a]]-u,m=c===h-1||v<f?v:f,x=g[l[a]]=rP(m-2*i,0);g[s[o]]=n[s[o]]+rN(i,y/2),g[s[a]]=u+rN(i,x/2),u+=m,p.setLayout(g,!0)}n[s[o]]+=d,n[l[o]]-=d}function rB(e){return e.get(rV)?e.get(rG):0}function rF(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph().data,r=n.mapArray(n.getName);i.filterSelf(function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){(0,w.isNumber)(n)&&(n=r[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function rW(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each(function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(a,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var d=o.getShallow(l[u],!0);null!=d&&n.setItemVisual(i,l[u],d)}}),n.count()&&i.each(function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){(0,w.isString)(t)&&(t=r["ec-"+t]);var a=n.getItemVisual(t,"style"),o=i.ensureUniqueItemVisual(e,"style");(0,w.extend)(o,a);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(e,s[l],n.getItemVisual(t,s[l]))}})})}function rH(e){return e instanceof Array||(e=[e,e]),e}function rY(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),i=rH(e.get("edgeSymbol")),r=rH(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),a=rH(i.getShallow("symbol",!0)),o=rH(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch((0,w.extend)(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":var u=r.node2.getVisual("style");l.stroke=u&&u.fill}a[0]&&r.setVisual("fromSymbol",a[0]),a[1]&&r.setVisual("toSymbol",a[1]),o[0]&&r.setVisual("fromSymbolSize",o[0]),o[1]&&r.setVisual("toSymbolSize",o[1])})})}var rX=function(e){return e.get("autoCurveness")||null},rU=function(e,t){var n=rX(e),i=20,r=[];if(w.isNumber(n))i=n;else if(w.isArray(n)){e.__curvenessList=n;return}t>i&&(i=t);var a=i%2?i+2:i+3;r=[];for(var o=0;o<a;o++)r.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=r},rj=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join("--\x3e")},rq=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},rJ=function(e,t){var n=rj(e.node1,e.node2,t);return t.__edgeMap[n]},rK=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function r$(e,t,n,i){var r=rX(t),a=w.isArray(r);if(!r)return null;var o=rJ(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=rK(rj(e.node1,e.node2,t),t)+rK(rj(e.node2,e.node1,t),t);rU(t,u),e.lineStyle=e.lineStyle||{};var d=rj(e.node1,e.node2,t),c=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var p=rK(rq(d),t),g=c[s+p+h];return i?a?r&&0===r[0]?(p+h)%2?g:-g:((p%2?0:1)+h)%2?g:-g:(p+h)%2?g:-g:c[s+p+h]}function rQ(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),r0(n,e)}}function r0(e,t){e.eachEdge(function(e,n){var i=w.retrieve3(e.getModel().get(["lineStyle","curveness"]),-r$(e,t,n,!0),0),r=b.clone(e.node1.getLayout()),a=b.clone(e.node2.getLayout()),o=[r,a];+i&&o.push([(r[0]+a[0])/2-(r[1]-a[1])*i,(r[1]+a[1])/2-(a[0]-r[0])*i]),e.setLayout(o)})}function r1(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];(0,w.each)(n.dimensions,function(e){r=r.concat(i.mapDimensionsAll(e))});for(var a=0;a<i.count();a++){for(var o=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],a);isNaN(u)||(s=!0),o.push(u)}s?i.setItemLayout(a,n.dataToPoint(o)):i.setItemLayout(a,[NaN,NaN])}r0(i.graph,e)}else t&&"none"!==t||rQ(e)})}function r2(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function r5(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var r3=Math.PI,r4=[];function r6(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var a=r.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,d=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),c){if(n){var h=r.pointToData(i),p=[h[0]-l,h[1]-u];b.normalize(p,p),b.scale(p,p,d),n.setLayout([l+p[0],u+p[1]],!0),r7(n,e.get(["circular","rotateLabel"]),l,u)}r9[t](e,s,o,d,l,u,c),s.eachEdge(function(t,n){var i,r=w.retrieve3(t.getModel().get(["lineStyle","curveness"]),r$(t,e,n),0),a=b.clone(t.node1.getLayout()),o=b.clone(t.node2.getLayout()),s=(a[0]+o[0])/2,d=(a[1]+o[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),u*r+d*(1-r)]),t.setLayout([a,o,i])})}}}var r9={value:function(e,t,n,i,r,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);t.eachNode(function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,i,r,a,o){var s=0;r4.length=o;var l=r2(e);t.eachNode(function(e){var t=r5(e);isNaN(t)&&(t=2),t<0&&(t=0);var n=Math.asin((t*=l)/2/i);isNaN(n)&&(n=r3/2),r4[e.dataIndex]=n,s+=2*n});var u=(2*r3-s)/o/2,d=0;t.eachNode(function(e){var t=u+r4[e.dataIndex];d+=t,e.getLayout()&&e.getLayout().fixed||e.setLayout([i*Math.cos(d)+r,i*Math.sin(d)+a]),d+=t})}};function r7(e,t,n,i){var r=e.getGraphicEl();if(r){var a=e.getModel().get(["label","rotate"])||0,o=r.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var d=u?"left":"right";o.setTextConfig({rotation:-l,position:d,origin:"center"});var c=o.ensureState("emphasis");w.extend(c.textConfig||(c.textConfig={}),{position:d})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function r8(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&r6(e,"symbolSize")})}var ae=b.scaleAndAdd;function at(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,a=i.edgeData,o=e.getModel("force"),s=o.get("initLayout");e.preservedPoints?r.each(function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&r6(e,"value"):rQ(e);var l=r.getDataExtent("value"),u=a.getDataExtent("value"),d=o.get("repulsion"),c=o.get("edgeLength"),h=w.isArray(d)?d:[d,d],p=w.isArray(c)?c:[c,c];p=[p[1],p[0]];var g=r.mapArray("value",function(e,t){var n=r.getItemLayout(t),i=(0,er.NU)(e,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),f=a.mapArray("value",function(t,n){var r=i.getEdgeByIndex(n),a=(0,er.NU)(t,u,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=r.getModel(),s=w.retrieve3(r.getModel().get(["lineStyle","curveness"]),-r$(r,e,n,!0),0);return{n1:g[r.node1.dataIndex],n2:g[r.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}}),y=function(e,t,n){for(var i,r,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,d=0;d<e.length;d++){var c=e[d];c.p||(c.p=b.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=b.clone(c.p),c.edges=null}var h=null==n.friction?.6:n.friction,p=h;return{warmUp:function(){p=.8*h},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},beforeStep:function(e){i=e},afterStep:function(e){r=e},step:function(n){i&&i(e,t);for(var a=[],o=e.length,s=0;s<t.length;s++){var d=t[s];if(!d.ignoreForceLayout){var c=d.n1,h=d.n2;b.sub(a,h.p,c.p);var g=b.len(a)-d.d,f=h.w/(c.w+h.w);isNaN(f)&&(f=0),b.normalize(a,a),c.fixed||ae(c.p,c.p,a,f*g*p),h.fixed||ae(h.p,h.p,a,-(1-f)*g*p)}}for(var s=0;s<o;s++){var y=e[s];y.fixed||(b.sub(a,l,y.p),ae(y.p,y.p,a,u*p))}for(var s=0;s<o;s++)for(var c=e[s],v=s+1;v<o;v++){var h=e[v];b.sub(a,h.p,c.p);var g=b.len(a);0===g&&(b.set(a,Math.random()-.5,Math.random()-.5),g=1);var m=(c.rep+h.rep)/g/g;c.fixed||ae(c.pp,c.pp,a,m),h.fixed||ae(h.pp,h.pp,a,-m)}for(var x=[],s=0;s<o;s++){var y=e[s];y.fixed||(b.sub(x,y.p,y.pp),ae(y.p,y.p,x,p),b.copy(y.pp,y.p))}var _=(p*=.992)<.01;r&&r(e,t,_),n&&n(_)}}}(g,f,{rect:t.getBoundingRect(),gravity:o.get("gravity"),friction:o.get("friction")});y.beforeStep(function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&b.copy(e[n].p,i.getNodeByIndex(n).getLayout())}),y.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||i.getNodeByIndex(o).setLayout(e[o].p),n[r.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var l=t[o],u=i.getEdgeByIndex(o),d=l.n1.p,c=l.n2.p,h=u.getLayout();(h=h?h.slice():[])[0]=h[0]||[],h[1]=h[1]||[],b.copy(h[0],d),b.copy(h[1],c),+l.curveness&&(h[2]=[(d[0]+c[0])/2-(d[1]-c[1])*l.curveness,(d[1]+c[1])/2-(c[0]-d[0])*l.curveness]),u.setLayout(h)}}),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null})}function an(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r,a=e.getData(),o=a.mapArray(function(e){var t=a.getItemModel(e);return[+t.get("x"),+t.get("y")]}),s=[],l=[];iO.zk(o,s,l),l[0]-s[0]==0&&(l[0]+=1,s[0]-=1),l[1]-s[1]==0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),d=(r=(0,w.extend)(e.getBoxLayoutParams(),{aspect:u}),(0,L.ME)(r,{width:t.getWidth(),height:t.getHeight()}));isNaN(u)&&(s=[d.x,d.y],l=[d.x+d.width,d.y+d.height]);var c=l[0]-s[0],h=l[1]-s[1],p=d.width,g=d.height,f=e.coordinateSystem=new iv;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(s[0],s[1],c,h),f.setViewRect(d.x,d.y,p,g),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}}),n}var ai=n(5434),ar=n(9460),aa=n(99101),ao=[],as=[],al=[],au=aa.Zm,ad=b.distSquare,ac=Math.abs;function ah(e,t,n){for(var i,r=e[0],a=e[1],o=e[2],s=1/0,l=n*n,u=.1,d=.1;d<=.9;d+=.1){ao[0]=au(r[0],a[0],o[0],d),ao[1]=au(r[1],a[1],o[1],d);var c=ac(ad(ao,t)-l);c<s&&(s=c,i=d)}for(var h=0;h<32;h++){var p=i+u;as[0]=au(r[0],a[0],o[0],i),as[1]=au(r[1],a[1],o[1],i),al[0]=au(r[0],a[0],o[0],p),al[1]=au(r[1],a[1],o[1],p);var c=ad(as,t)-l;if(.01>ac(c))break;var g=ad(al,t)-l;u/=2,c<0?g>=0?i+=u:i-=u:g>=0?i-=u:i+=u}return i}function ap(e,t){var n=[],i=aa.Lx,r=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),d=e.getVisual("toSymbol");!l.__original&&(l.__original=[b.clone(l[0]),b.clone(l[1])],l[2]&&l.__original.push(b.clone(l[2])));var c=l.__original;if(null!=l[2]){if(b.copy(r[0],c[0]),b.copy(r[1],c[2]),b.copy(r[2],c[1]),u&&"none"!==u){var h=r5(e.node1),p=ah(r,c[0],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(d&&"none"!==d){var h=r5(e.node2),p=ah(r,c[1],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}b.copy(l[0],r[0]),b.copy(l[1],r[2]),b.copy(l[2],r[1])}else{if(b.copy(a[0],c[0]),b.copy(a[1],c[1]),b.sub(o,a[1],a[0]),b.normalize(o,o),u&&"none"!==u){var h=r5(e.node1);b.scaleAndAdd(a[0],a[0],o,h*t)}if(d&&"none"!==d){var h=r5(e.node2);b.scaleAndAdd(a[1],a[1],o,-h*t)}b.copy(l[0],a[0]),b.copy(l[1],a[1])}})}function ag(e){return"view"===e.type}var af=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t){var n=new ai.Z,i=new ar.Z,r=this.group;this._controller=new ng.Z(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(ag(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):es.D(s,l,e)}ap(e.getGraph(),r2(e));var u=e.getData();a.updateData(u);var d=e.getEdgeData();o.updateData(d),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var c=e.forceLayout,h=e.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,h);var p=e.get("layout");u.graph.eachNode(function(t){var n=t.dataIndex,r=t.getGraphicEl(),a=t.getModel();if(r){r.off("drag").off("dragend");var o=a.get("draggable");o&&r.on("drag",function(a){switch(p){case"force":c.warmUp(),i._layouting||i._startForceLayoutIteration(c,h),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),r6(e,"symbolSize",t,[a.offsetX,a.offsetY]),i.updateLayout(e);break;default:u.setItemLayout(n,[r.x,r.y]),r0(e.getGraph(),e),i.updateLayout(e)}}).on("dragend",function(){c&&c.setUnfixed(n)}),r.setDraggable(o,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"])&&((0,P.A)(r).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&((0,P.A)(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode(function(e){r7(e,g,f,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function i(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())})}()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,a=this._controllerHost,o=this.group;if(r.setPointerChecker(function(t,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!(0,nv.l)(t,n,e)}),!ag(e.coordinateSystem))return void r.disable();r.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){nf(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){ny(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),ap(e.getGraph(),r2(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=r2(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){ap(e.getGraph(),r2(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(v.Z);function ay(e){return"_EC_"+e}var av=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[ay(e)]){var i=new am(e,t);return i.hostGraph=this,this.nodes.push(i),n[ay(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[ay(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(w.isNumber(e)&&(e=this.nodes[e]),w.isNumber(t)&&(t=this.nodes[t]),e instanceof am||(e=i[ay(e)]),t instanceof am||(t=i[ay(t)]),e&&t){var a=e.id+"-"+t.id,o=new ax(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),r[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof am&&(e=e.id),t instanceof am&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof am||(t=this._nodesMap[ay(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(i,t,null))for(var o=[t];o.length;)for(var s=o.shift(),l=s[r],a=0;a<l.length;a++){var u=l[a],d=u.node1===s?u.node2:u.node1;if(!d.__visited){if(e.call(i,d,s))return;o.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf(function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(var r=0;r<i.length;r++){var a=i[r];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),am=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=w.createHashMap(),t=w.createHashMap(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var r=[i.node1],a=[i.node2],o=0;o<r.length;){var s=r[o];o++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(o=0;o<a.length;){var u=a[o];o++,t.set(u.dataIndex,!0);for(var l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),a.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),ax=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=w.createHashMap(),t=w.createHashMap();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var a=n[r];r++,t.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)e.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}for(r=0;r<i.length;){var s=i[r];r++,t.set(s.dataIndex,!0);for(var o=0;o<s.outEdges.length;o++)e.set(s.outEdges[o].dataIndex,!0),i.push(s.outEdges[o].node2)}return{edge:e.keys(),node:t.keys()}},e}();function a_(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}w.mixin(am,a_("hostGraph","data")),w.mixin(ax,a_("hostGraph","edgeData"));var ab=n(49801);function aw(e,t,n,i,r){for(var a,o=new av(i),s=0;s<e.length;s++)o.addNode(w.retrieve(e[s].id,e[s].name,s),s);for(var l=[],u=[],d=0,s=0;s<t.length;s++){var c=t[s],h=c.source,p=c.target;o.addEdge(h,p,d)&&(u.push(c),l.push(w.retrieve((0,eE.U5)(c.id,null),h+" > "+p)),d++)}var g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)a=(0,I.Z)(e,n);else{var f=ab.Z.get(g),y=f&&f.dimensions||[];0>w.indexOf(y,"value")&&y.concat(["value"]);var v=(0,Z.Z)(e,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(a=new m.Z(v,n)).initData(e)}var x=new m.Z(["value"],n);return x.initData(u,l),r&&r(a,x),i3({mainData:a,struct:o,structAttr:"graph",datas:{node:a,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var aS=n(93502),aM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,F.ZT)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new ne.Z(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,eE.Cc)(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){rX(this)&&(this.__curvenessList=[],this.__edgeMap={},rU(this));var a=aw(i,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=r._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=D.Z.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=a,i}function a(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",function(e){return e.resolveParentPath=a,e.getModel=i,e})});return w.each(a.edges,function(e){!function(e,t,n,i){if(rX(n)){var r=rj(e,t,n),a=n.__edgeMap,o=a[rq(r)];a[r]&&!o?a[r].isForward=!0:o&&a[r]&&(o.isForward=!0,a[r].isForward=!1),a[r]=a[r]||[],a[r].push(i)}}(e.node1,e.node2,this,e.dataIndex)},this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),(0,nt.TX)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return(0,aS.w)({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=w.map(this.option.categories||[],function(e){return null!=e.value?e:w.extend({value:0},e)}),t=new m.Z(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(y.Z),aI={type:"graphRoam",event:"graphRoam",update:"none"},aT=n(78846),aA=n(91145),aD=["itemStyle","opacity"],aL=function(e){function t(t,n){var i=e.call(this)||this,r=new ey.Z,a=new ed.ZP;return i.setTextContent(a),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return(0,F.ZT)(t,e),t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=e.getItemModel(t),a=e.getItemLayout(t),o=r.getModel("emphasis"),s=r.get(aD);s=null==s?1:s,n||(0,es.Zi)(this),this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:a.points}),this.style.opacity=0,es.KZ(this,{style:{opacity:s}},i,t)):es.D(this,{style:{opacity:s},shape:{points:a.points}},i,t),(0,R.WO)(this,r),this._updateLabel(e,t),(0,R.k5)(this,o.get("focus"),o.get("blurScope"),o.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this.getTextGuideLine(),i=this.getTextContent(),r=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),l=s.fill;(0,N.ni)(i,(0,N.k3)(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:o.textAlign,verticalAlign:o.verticalAlign}}),this.setTextConfig({local:!0,inside:!!o.inside,insideStroke:l,outsideFill:l});var u=o.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new aA.Z(u[0][0],u[0][1]):null},es.D(i,{style:{x:o.x,y:o.y}},r,t),i.attr({rotation:o.rotation,originX:o.x,originY:o.y,z2:10}),(0,eG.Iu)(this,(0,eG.$x)(a),{stroke:l})},t}(ef.Z),aC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,a=this.group;i.diff(r).add(function(e){var t=new aL(i,e);i.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),a.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){var n=r.getItemGraphicEl(t);es.XD(n,e,t)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(v.Z),aP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ne.Z(w.bind(this.getData,this),w.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return(0,t8.Z)(this,{coordDimensions:["value"],encodeDefaulter:w.curry(id.Ss,this)})},t.prototype._defaultLabelLine=function(e){(0,eE.Cc)(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),a=n.getSum(r);return i.percent=a?+(n.get(r,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(y.Z);function aN(e,t){e.eachSeriesByType("funnel",function(e){var n,i=e.getData(),r=i.mapDimension("value"),a=e.get("sort"),o=L.ME(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),s=e.get("orient"),l=o.width,u=o.height,d=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,function(e){return e}),r=[],a="ascending"===t,o=0,s=e.count();o<s;o++)r[o]=o;return(0,w.isFunction)(t)?r.sort(t):"none"!==t&&r.sort(function(e,t){return a?i[e]-i[t]:i[t]-i[e]}),r}(i,a),c=o.x,h=o.y,p="horizontal"===s?[(0,er.GM)(e.get("minSize"),u),(0,er.GM)(e.get("maxSize"),u)]:[(0,er.GM)(e.get("minSize"),l),(0,er.GM)(e.get("maxSize"),l)],g=i.getDataExtent(r),f=e.get("min"),y=e.get("max");null==f&&(f=Math.min(g[0],0)),null==y&&(y=g[1]);var v=e.get("funnelAlign"),m=e.get("gap"),x=(("horizontal"===s?l:u)-m*(i.count()-1))/i.count(),_=function(e,t){if("horizontal"===s){var n,a=i.get(r,e)||0,o=(0,er.NU)(a,[f,y],p,!0),d=void 0;switch(v){case"top":d=h;break;case"center":d=h+(u-o)/2;break;case"bottom":d=h+(u-o)}return[[t,d],[t,d+o]]}var g=i.get(r,e)||0,m=(0,er.NU)(g,[f,y],p,!0);switch(v){case"left":n=c;break;case"center":n=c+(l-m)/2;break;case"right":n=c+l-m}return[[n,t],[n+m,t]]};"ascending"===a&&(x=-x,m=-m,"horizontal"===s?c+=l:h+=u,d=d.reverse());for(var b=0;b<d.length;b++){var S=d[b],M=d[b+1],I=i.getItemModel(S);if("horizontal"===s){var T=I.get(["itemStyle","width"]);null==T?T=x:(T=(0,er.GM)(T,l),"ascending"===a&&(T=-T));var A=_(S,c),D=_(M,c+T);c+=T+m,i.setItemLayout(S,{points:A.concat(D.slice().reverse())})}else{var C=I.get(["itemStyle","height"]);null==C?C=x:(C=(0,er.GM)(C,u),"ascending"===a&&(C=-C));var A=_(S,h),D=_(M,h+C);h+=C+m,i.setItemLayout(S,{points:A.concat(D.slice().reverse())})}}n=i.hostModel.get("orient"),i.each(function(e){var t,r,a,o,s=i.getItemModel(e),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),d=i.getItemLayout(e),c=d.points,h="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(h)"insideLeft"===l?(r=(c[0][0]+c[3][0])/2+5,a=(c[0][1]+c[3][1])/2,t="left"):"insideRight"===l?(r=(c[1][0]+c[2][0])/2-5,a=(c[1][1]+c[2][1])/2,t="right"):(r=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,a=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,t="center"),o=[[r,a],[r,a]];else{var p=void 0,g=void 0,f=void 0,y=void 0,v=u.get("length");"left"===l?(p=(c[3][0]+c[0][0])/2,g=(c[3][1]+c[0][1])/2,r=(f=p-v)-5,t="right"):"right"===l?(p=(c[1][0]+c[2][0])/2,g=(c[1][1]+c[2][1])/2,r=(f=p+v)+5,t="left"):"top"===l?(p=(c[3][0]+c[0][0])/2,a=(y=(g=(c[3][1]+c[0][1])/2)-v)-5,t="center"):"bottom"===l?(p=(c[1][0]+c[2][0])/2,a=(y=(g=(c[1][1]+c[2][1])/2)+v)+5,t="center"):"rightTop"===l?(p="horizontal"===n?c[3][0]:c[1][0],g="horizontal"===n?c[3][1]:c[1][1],"horizontal"===n?(a=(y=g-v)-5,t="center"):(r=(f=p+v)+5,t="top")):"rightBottom"===l?(p=c[2][0],g=c[2][1],"horizontal"===n?(a=(y=g+v)+5,t="center"):(r=(f=p+v)+5,t="bottom")):"leftTop"===l?(p=c[0][0],g="horizontal"===n?c[0][1]:c[1][1],"horizontal"===n?(a=(y=g-v)-5,t="center"):(r=(f=p-v)-5,t="right")):"leftBottom"===l?(p="horizontal"===n?c[1][0]:c[3][0],g="horizontal"===n?c[1][1]:c[2][1],"horizontal"===n?(a=(y=g+v)+5,t="center"):(r=(f=p-v)-5,t="right")):(p=(c[1][0]+c[2][0])/2,g=(c[1][1]+c[2][1])/2,"horizontal"===n?(a=(y=g+v)+5,t="center"):(r=(f=p+v)+5,t="left")),"horizontal"===n?r=f=p:a=y=g,o=[[p,g],[f,y]]}d.label={linePoints:o,x:r,y:a,verticalAlign:"middle",textAlign:t,inside:h}})})}var aZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new el.Z,n._initialized=!1,n}return(0,F.ZT)(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,u=aE(e);if(a.diff(o).add(function(e){aV(aR(a,r,e,l,s),a,e,u)}).update(function(t,n){var i=o.getItemGraphicEl(n),r=ak(a,t,l,s);a.setItemGraphicEl(t,i),es.D(i,{shape:{points:r}},e,t),(0,es.Zi)(i),aV(i,a,t,u)}).remove(function(e){var t=o.getItemGraphicEl(e);r.remove(t)}).execute(),!this._initialized){this._initialized=!0;var d,c,h,p,g,f,y,v=(d=s,c=e,h=function(){setTimeout(function(){r.removeClipPath()})},p=d.model,g=d.getRect(),f=new ev.Z({shape:{x:g.x,y:g.y,width:g.width,height:g.height}}),y="horizontal"===p.get("layout")?"width":"height",f.setShape(y,0),es.KZ(f,{shape:{width:g.width,height:g.height}},c,h),f);r.setClipPath(v)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,a=r.dimensions,o=aE(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=aR(i,this._dataGroup,l,a,r);u.incremental=!0,aV(u,i,l,o),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(v.Z);function ak(e,t,n,i){for(var r=[],a=0;a<n.length;a++){var o,s=n[a],l=e.get(e.mapDimension(s),t);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||r.push(i.dataToPoint(l,s))}return r}function aR(e,t,n,i,r){var a=ak(e,n,i,r),o=new ey.Z({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function aE(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),t=(0,er.FK)(t),(0,w.eqNaN)(t)&&(t=0),{smooth:t}}function aV(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),a=r.getModel("emphasis");(0,R.WO)(e,r,"lineStyle"),(0,R.k5)(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}var aG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,I.Z)(null,this,{useEncodeDefaulter:(0,w.bind)(az,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,function(t,r){e===t&&i.push(n.getRawIndex(r))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(y.Z);function az(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return(0,w.each)(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}var aO=["lineStyle","opacity"];let aB={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var a=t.getItemModel(n).get(aO,!0);null!=a&&(r=a)}t.ensureUniqueItemVisual(n,"style").opacity=r},e.start,e.end)}}}};function aF(e){var t,n;(function(e){if(!e.parallel){var t=!1;w.each(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}})(e),t=e,n=eE.kF(t.parallelAxis),w.each(n,function(e){if(w.isObject(e)){var n=e.parallelIndex||0,i=eE.kF(t.parallel)[n];i&&i.parallelAxisDefault&&w.merge(e,i.parallelAxisDefault,!1)}})}var aW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},(0,w.each)(aH,function(e,t){n.getZr().on(t,this._handlers[t]=(0,w.bind)(e,this))},this)),(0,M.T9)(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){(0,M.ZH)(this,"_throttledDispatchExpand"),(0,w.each)(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction((0,w.extend)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(f.Z),aH={mousedown:function(e){aY(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(aY(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&aY(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function aY(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var aX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&w.merge(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){w.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=w.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this);w.each(n,function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t}(g.Z),aU=function(e){function t(t,n,i,r,a){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o.axisIndex=a,o}return(0,F.ZT)(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(eC.Z),aj=n(12920),aq=w.each,aJ=Math.min,aK=Math.max,a$=Math.floor,aQ=Math.ceil,a0=er.NM,a1=Math.PI,a2=function(){function e(e,t,n){this.type="parallel",this._axesMap=w.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;aq(i,function(e,n){var i=r[n],a=t.getComponent("parallelAxis",i),o=this._axesMap.set(e,new aU(e,T.aG(a),[0,0],a.get("type"),i)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],o=e[r];return a>=n&&a<=n+t.axisLength&&o>=i&&o<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var i=n.getData();aq(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),T.Jk(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=L.ME(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=t.get("layout"),o=+("horizontal"!==a),s=n[r[o]],l=[0,s],u=this.dimensions.length,d=a5(t.get("axisExpandWidth"),l),c=a5(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&d>0&&s>0,p=t.get("axisExpandWindow");p?(e=a5(p[1]-p[0],l),p[1]=p[0]+e):(e=a5(d*(c-1),l),(p=[d*(t.get("axisExpandCenter")||a$(u/2))-e/2])[1]=p[0]+e);var g=(s-e)/(u-c);g<3&&(g=0);var f=[a$(a0(p[0]/d,1))+1,aQ(a0(p[1]/d,1))-1],y=g/d*p[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:h,axisExpandWidth:d,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:f,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each(function(e){var t=[0,i.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),aq(n,function(t,n){var a=(i.axisExpandable?function(e,t){var n,i,r=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,d=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],u=a,d=!0):(n=r-(o-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:d,nameTruncateMaxWidth:i}}:function(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,i),o={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s=[o[r].x+e.x,o[r].y+e.y],l={horizontal:a1/2,vertical:0}[r],u=_.create();_.rotate(u,u,l),_.translate(u,u,s),this._axesLayout[t]={position:s,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,a=this.dimensions,o=[],s=[];w.each(a,function(t){o.push(e.mapDimension(t)),s.push(r.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var d=void 0;if(l){d="active";for(var c=e.getValues(o,u),h=0,p=a.length;h<p;h++)if("inactive"===s[h].getActiveState(c[h])){d="inactive";break}}else d="normal";t(d,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return eo.applyTransform([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return w.clone(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t,n=this._makeLayoutInfo(),i=n.pixelDimIndex,r=n.axisExpandWindow.slice(),a=r[1]-r[0],o=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var s=e[i]-n.layoutBase-n.axisExpandWindow0Pos,l="slide",u=n.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),c=null!=d[0];if(u)c&&u&&s<a*d[0]?(l="jump",t=s-a*d[2]):c&&u&&s>a*(1-d[0])?(l="jump",t=s-a*(1-d[2])):(t=s-a*d[1])>=0&&(t=s-a*(1-d[1]))<=0&&(t=0),(t*=n.axisExpandWidth/u)?(0,aj.Z)(t,r,o,"all"):l="none";else{var h=r[1]-r[0];(r=[aK(0,o[1]*s/h-h/2)])[1]=aJ(o[1],r[0]+h),r[0]=r[1]-h}return{axisExpandWindow:r,behavior:l}},e}();function a5(e,t){return aJ(aK(e,t[0]),t[1])}let a3={create:function(e,t){var n=[];return e.eachComponent("parallel",function(i,r){var a=new a2(i,e,t);a.name="parallel_"+r,a.resize(i,t),i.coordinateSystem=a,a.model=i,n.push(a)}),e.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",eE.C6).models[0];e.coordinateSystem=t.coordinateSystem}}),n}};var a4=n(7509),a6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return(0,F.ZT)(t,e),t.prototype.getAreaSelectStyle=function(){return(0,rh.Z)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=w.clone(e);if(t)for(var n=t.length-1;n>=0;n--)er.dt(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(g.Z);w.mixin(a6,A.W);var a9=n(10933),a7=n(34921),a8=["axisLine","axisTickLabel","axisName"],oe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new a9.Z(n.getZr())).on("brush",w.bind(this._onBrush,this))},t.prototype.render=function(e,t,n,i){var r,a,o;if(r=e,a=t,!(o=i)||"axisAreaSelect"!==o.type||a.findComponents({mainType:"parallelAxis",query:o})[0]!==r){this.axisModel=e,this.api=n,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new el.Z,this.group.add(this._axisGroup),e.get("show")){var l,u=(l=e,t.getComponent("parallel",l.get("parallelIndex"))),d=u.coordinateSystem,c=e.getAreaSelectStyle(),h=c.width,p=e.axis.dim,g=d.getAxisLayout(p),f=w.extend({strokeContainThreshold:h},g),y=new no.Z(e,f);w.each(a8,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(f,c,e,u,h,n),eo.groupTransition(s,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,a){var o,s,l=n.axis.getExtent(),u=l[1]-l[0],d=Math.min(30,.1*Math.abs(u)),c=W.Z.create({x:l[0],y:-r/2,width:u,height:r});c.x-=d,c.width+=2*d,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:a7.x0(c),isTargetByCursor:a7.G(c,a,i),getLinearBrushOtherExtent:a7.VM(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers((s=(o=n).axis,w.map(o.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(e[0],!0),s.dataToCoord(e[1],!0)]}})))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=w.map(t,function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(f.Z),ot={type:"axisAreaSelect",event:"axisAreaSelected"},on={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function oi(e){e.registerComponentView(aW),e.registerComponentModel(aX),e.registerCoordinateSystem("parallel",a3),e.registerPreprocessor(aF),e.registerComponentModel(a6),e.registerComponentView(oe),(0,a4.Z)(e,"parallel",a6,on),e.registerAction(ot,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}var or=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},oa=function(e){function t(t){return e.call(this,t)||this}return(0,F.ZT)(t,e),t.prototype.getDefaultShape=function(){return new or},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){(0,R.fD)(this)},t.prototype.downplay=function(){(0,R.Mh)(this)},t}(e$.ZP),oo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i,r,a,o,s=this,l=e.getGraph(),u=this.group,d=e.layoutInfo,c=d.width,h=d.height,p=e.getData(),g=e.getData("edge"),f=e.get("orient");this._model=e,u.removeAll(),u.x=d.x,u.y=d.y,l.eachEdge(function(t){var n,i,r,a,o,s,l,d,p=new oa,y=(0,P.A)(p);y.dataIndex=t.dataIndex,y.seriesIndex=e.seriesIndex,y.dataType="edge";var v=t.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),S=b.get("localX"),M=b.get("localY"),I=t.node2.getLayout(),T=t.node2.getModel(),A=T.get("localX"),D=T.get("localY"),L=t.getLayout();p.shape.extent=Math.max(1,L.dy),p.shape.orient=f,"vertical"===f?(n=(null!=S?S*c:_.x)+L.sy,i=(null!=M?M*h:_.y)+_.dy,r=(null!=A?A*c:I.x)+L.ty,a=null!=D?D*h:I.y,o=n,s=i*(1-x)+a*x,l=r,d=i*x+a*(1-x)):(n=(null!=S?S*c:_.x)+_.dx,i=(null!=M?M*h:_.y)+L.sy,r=null!=A?A*c:I.x,a=(null!=D?D*h:I.y)+L.ty,o=n*(1-x)+r*x,s=i,l=n*x+r*(1-x),d=a),p.setShape({x1:n,y1:i,x2:r,y2:a,cpx1:o,cpy1:s,cpx2:l,cpy2:d}),p.useStyle(m.getItemStyle()),os(p.style,f,t);var C=""+v.get("value"),Z=(0,N.k3)(v,"edgeLabel");(0,N.ni)(p,Z,{labelFetcher:{getFormattedLabel:function(t,n,i,r,a,o){return e.getFormattedLabel(t,n,"edge",r,(0,w.retrieve3)(a,Z.normal&&Z.normal.get("formatter"),C),o)}},labelDataIndex:t.dataIndex,defaultText:C}),p.setTextConfig({position:"inside"});var k=v.getModel("emphasis");(0,R.WO)(p,v,"lineStyle",function(e){var n=e.getItemStyle();return os(n,f,t),n}),u.add(p),g.setItemGraphicEl(t.dataIndex,p);var E=k.get("focus");(0,R.k5)(p,"adjacency"===E?t.getAdjacentDataIndices():"trajectory"===E?t.getTrajectoryDataIndices():E,k.get("blurScope"),k.get("disabled"))}),l.eachNode(function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),o=i.getModel("emphasis"),s=new ev.Z({shape:{x:null!=r?r*c:n.x,y:null!=a?a*h:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,N.ni)(s,(0,N.k3)(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),s.disableLabelAnimation=!0,s.setStyle("fill",t.getVisual("color")),s.setStyle("decal",t.getVisual("style").decal),(0,R.WO)(s,i),u.add(s),p.setItemGraphicEl(t.dataIndex,s),(0,P.A)(s).dataType="node";var l=o.get("focus");(0,R.k5)(s,"adjacency"===l?t.getAdjacentDataIndices():"trajectory"===l?t.getTrajectoryDataIndices():l,o.get("blurScope"),o.get("disabled"))}),p.eachItemGraphicEl(function(t,i){p.getItemModel(i).get("draggable")&&(t.drift=function(t,r){s._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:p.getRawIndex(i),localX:this.shape.x/c,localY:this.shape.y/h})},t.ondragend=function(){s._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&e.isAnimationEnabled()&&u.setClipPath((i=u.getBoundingRect(),r=e,a=function(){u.removeClipPath()},o=new ev.Z({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}}),es.KZ(o,{shape:{width:i.width+20}},r,a),o)),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(v.Z);function os(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,w.isString)(i)&&(0,w.isString)(r)&&(e.fill=new eS.Z(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}var ol=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var a=this.levelModels,o=0;o<r.length;o++)null!=r[o].depth&&r[o].depth>=0&&(a[r[o].depth]=new D.Z(r[o],this,t));if(i&&n)return aw(i,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,a=n.levelModels[r];a&&(e.parentModel=a)}return e}),t.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(i){var r=i.depth,a=n.levelModels[r];a&&(e.parentModel=a)}return e})}).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),a=r.data,o=r.value,s=a.source+" -- "+a.target;return(0,nt.TX)("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,n).data.name;return(0,nt.TX)("nameValue",{name:null!=u?u+"":null,value:l,noValue:i(l)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);return null==i.value&&"node"===n&&(i.value=this.getGraph().getNodeByIndex(t).getLayout().value),i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(y.Z);function ou(e,t){e.eachSeriesByType("sankey",function(e){var n,i,r,a,o,s,l,u,d,c,h,p,g,f=e.get("nodeWidth"),y=e.get("nodeGap"),v=(n=e,i=t,L.ME(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}));e.layoutInfo=v;var m=v.width,x=v.height,_=e.getGraph(),b=_.nodes,S=_.edges;r=b,w.each(r,function(e){var t=Math.max(om(e.outEdges,ov),om(e.inEdges,ov),e.getValue()||0);e.setLayout({value:t},!0)});var M=0!==w.filter(b,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations");a=b,o=S,s=f,l=y,u=m,d=x,c=M,h=e.get("orient"),function(e,t,n,i,r,a,o){for(var s,l,u,d=[],c=[],h=[],p=[],g=0,f=0;f<t.length;f++)d[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,0===c[f]&&h.push(e[f]);for(var y=-1;h.length;){for(var v=0;v<h.length;v++){var m=h[v],x=m.hostGraph.data.getRawDataItem(m.dataIndex),_=null!=x.depth&&x.depth>=0;_&&x.depth>y&&(y=x.depth),m.setLayout({depth:_?x.depth:g},!0),"vertical"===a?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var b=0;b<m.outEdges.length;b++){var S=m.outEdges[b];d[t.indexOf(S)]=0;var M=S.node2,I=e.indexOf(M);0==--c[I]&&0>p.indexOf(M)&&p.push(M)}}++g,h=p,p=[]}for(var f=0;f<d.length;f++)if(1===d[f])throw Error("Sankey is a DAG, the original data has cycle!");var T=y>g-1?y:g-1;o&&"left"!==o&&function(e,t,n,i){if("right"===t){for(var r,a,o=[],s=e,l=0;s.length;){for(var u=0;u<s.length;u++){var d=s[u];d.setLayout({skNodeHeight:l},!0);for(var c=0;c<d.inEdges.length;c++){var h=d.inEdges[c];0>o.indexOf(h.node1)&&o.push(h.node1)}}s=o,o=[],++l}w.each(e,function(e){od(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)})}else{"justify"===t&&(r=e,a=i,w.each(r,function(e){od(e)||e.outEdges.length||e.setLayout({depth:a},!0)}))}}(e,o,0,T),s=e,l="vertical"===a?(r-n)/T:(i-n)/T,u=a,w.each(s,function(e){var t=e.getLayout().depth*l;"vertical"===u?e.setLayout({y:t},!0):e.setLayout({x:t},!0)})}(a,o,s,u,d,h,e.get("nodeAlign")),function(e,t,n,i,r,a,o){var s,l,u,d,c,h,p,g,f,y,v,m=(s=e,l=[],u="vertical"===o?"y":"x",(d=(0,eE.pv)(s,function(e){return e.getLayout()[u]})).keys.sort(function(e,t){return e-t}),w.each(d.keys,function(e){l.push(d.buckets.get(e))}),l);c=m,h=t,p=n,g=i,f=r,y=o,v=1/0,w.each(c,function(e){var t=e.length,n=0;w.each(e,function(e){n+=e.getLayout().value});var i="vertical"===y?(g-(t-1)*f)/n:(p-(t-1)*f)/n;i<v&&(v=i)}),w.each(c,function(e){w.each(e,function(e,t){var n=e.getLayout().value*v;"vertical"===y?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),w.each(h,function(e){var t=e.getValue()*v;e.setLayout({dy:t},!0)}),oc(m,r,n,i,o);for(var x=1;a>0;a--)(function(e,t,n){w.each(e.slice().reverse(),function(e){w.each(e,function(e){if(e.outEdges.length){var i=om(e.outEdges,oh,n)/om(e.outEdges,ov);if(isNaN(i)){var r=e.outEdges.length;i=r?om(e.outEdges,op,n)/r:0}if("vertical"===n){var a=e.getLayout().x+(i-oy(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(i-oy(e,n))*t;e.setLayout({y:o},!0)}}})})})(m,x*=.99,o),oc(m,r,n,i,o),function(e,t,n){w.each(e,function(e){w.each(e,function(e){if(e.inEdges.length){var i=om(e.inEdges,og,n)/om(e.inEdges,ov);if(isNaN(i)){var r=e.inEdges.length;i=r?om(e.inEdges,of,n)/r:0}if("vertical"===n){var a=e.getLayout().x+(i-oy(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(i-oy(e,n))*t;e.setLayout({y:o},!0)}}})})}(m,x,o),oc(m,r,n,i,o)}(a,o,d,u,l,c,h),p=a,g="vertical"===h?"x":"y",w.each(p,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[g]-t.node2.getLayout()[g]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[g]-t.node1.getLayout()[g]})}),w.each(p,function(e){var t=0,n=0;w.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),w.each(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})})}function od(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function oc(e,t,n,i,r){var a="vertical"===r?"x":"y";w.each(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,l,u=0,d=e.length,c="vertical"===r?"dx":"dy",h=0;h<d;h++)(l=u-(s=e[h]).getLayout()[a])>0&&(o=s.getLayout()[a]+l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[c]+t;if((l=u-t-("vertical"===r?i:n))>0){o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=d-2;h>=0;--h)(l=(s=e[h]).getLayout()[a]+s.getLayout()[c]+t-u)>0&&(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}})}function oh(e,t){return oy(e.node2,t)*e.getValue()}function op(e,t){return oy(e.node2,t)}function og(e,t){return oy(e.node1,t)*e.getValue()}function of(e,t){return oy(e.node1,t)}function oy(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function ov(e){return e.getValue()}function om(e,t,n){for(var i=0,r=e.length,a=-1;++a<r;){var o=+t(e[a],n);isNaN(o)||(i+=o)}return i}function ox(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,a=-1/0;w.each(n,function(e){var t=e.getLayout().value;t<r&&(r=t),t>a&&(a=t)}),w.each(n,function(t){var n=new rI.Z({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),i=t.getModel().get(["itemStyle","color"]);null!=i?(t.setVisual("color",i),t.setVisual("style",{fill:i})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))})}i.length&&w.each(i,function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)})})}var o_=n(45521),ob=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=r.get("type"),s=a.get("type");"category"===o?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=a.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u=+("horizontal"!==e.layout),d=this._baseAxisDim=l[u],c=l[1-u],h=[r,a],p=h[u].get("type"),g=h[1-u].get("type"),f=e.data;if(f&&i){var y=[];w.each(f,function(e,t){var n;w.isArray(e)?(n=e.slice(),e.unshift(t)):w.isArray(e.value)?((n=w.extend({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,y.push(n)}),e.data=y}var v=this.defaultValueDimensions,m=[{name:d,type:(0,o_.T)(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:(0,o_.T)(g),dimsDef:v.slice()}];return(0,t8.Z)(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:w.curry(id.pY,m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),ow=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,F.ZT)(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(y.Z);(0,w.mixin)(ow,ob,!0);var oS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o=+("horizontal"===e.get("layout"));i.diff(a).add(function(e){if(i.hasValue(e)){var t=oT(i.getItemLayout(e),i,e,o,!0);i.setItemGraphicEl(e,t),r.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e))return void r.remove(n);var s=i.getItemLayout(e);n?((0,es.Zi)(n),oA(s,n,i,e)):n=oT(s,i,e,o),r.add(n),i.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type="boxplot",t}(v.Z),oM=function(){},oI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return(0,F.ZT)(t,e),t.prototype.getDefaultShape=function(){return new oM},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(e$.ZP);function oT(e,t,n,i,r){var a,o,s,l=e.ends,u=new oI({shape:{points:r?(a=l,o=i,s=e,w.map(a,function(e){return(e=e.slice())[o]=s.initBaseline,e})):l}});return oA(e,u,t,n,r),u}function oA(e,t,n,i,r){var a=n.hostModel;(0,eo[r?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var o=n.getItemModel(i),s=o.getModel("emphasis");(0,R.WO)(t,o),(0,R.k5)(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}var oD=w.each;function oL(e){var t,n;oD((t=[],n=[],e.eachSeriesByType("boxplot",function(e){var i=e.getBaseAxis(),r=w.indexOf(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)}),t),function(e){var t=e.seriesModels;t.length&&(function(e){var t,n=e.axis,i=e.seriesModels,r=i.length,a=e.boxWidthList=[],o=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;oD(i,function(e){l=Math.max(l,e.getData().count())});var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}oD(i,function(e){var n=e.get("boxWidth");w.isArray(n)||(n=[n,n]),s.push([(0,er.GM)(n[0],t)||0,(0,er.GM)(n[1],t)||0])});var d=.8*t-2,c=d/r*.3,h=(d-c*(r-1))/r,p=h/2-d/2;oD(i,function(e,t){o.push(p),p+=c+h,a.push(Math.min(Math.max(h,s[t][0]),s[t][1]))})}(e),oD(t,function(t,n){!function(e,t,n){var i=e.coordinateSystem,r=e.getData(),a=n/2,o=+("horizontal"!==e.get("layout")),s=1-o,l=["x","y"],u=r.mapDimension(l[o]),d=r.mapDimensionsAll(l[s]);if(null!=u&&!(d.length<5))for(var c=0;c<r.count();c++){var h=r.get(u,c),p=x(h,d[2],c),g=x(h,d[0],c),f=x(h,d[1],c),y=x(h,d[3],c),v=x(h,d[4],c),m=[];_(m,f,!1),_(m,y,!0),m.push(g,f,v,y),b(m,g),b(m,v),b(m,p),r.setItemLayout(c,{initBaseline:p[s],ends:m})}function x(e,n,a){var l,u=r.get(n,a),d=[];return d[o]=e,d[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(d),l[o]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[o]+=a,r[o]-=a,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[o]-=a,i[o]+=a,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}var oC=n(12159),oP=n(29484),oN={type:"echarts:boxplot",transform:function(e){var t=e.upstream;t.sourceFormat!==oP.XD&&(0,oC._y)("");var n=function(e,t){for(var n=[],i=[],r=(t=t||{}).boundIQR,a="none"===r||0===r,o=0;o<e.length;o++){var s=(0,er.dt)(e[o].slice()),l=(0,er.VR)(s,.25),u=(0,er.VR)(s,.5),d=(0,er.VR)(s,.75),c=s[0],h=s[s.length-1],p=(null==r?1.5:r)*(d-l),g=a?c:Math.max(c,l-p),f=a?h:Math.min(h,d+p),y=t.itemNameFormatter,v=(0,w.isFunction)(y)?y({value:o}):(0,w.isString)(y)?y.replace("{value}",o+""):o+"";n.push([v,g,l,u,d,f]);for(var m=0;m<s.length;m++){var x=s[m];if(x<g||x>f){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},oZ=n(21730),ok=["color","borderColor"],oR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){eo.traverseElements(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||i.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(!(a&&oz(s,o))){var l=oG(o,n,!0);es.KZ(l,{shape:{points:o.ends}},e,n),oO(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}}}).update(function(o,l){var u=n.getItemGraphicEl(l);if(!t.hasValue(o))return void i.remove(u);var d=t.getItemLayout(o);if(a&&oz(s,d))return void i.remove(u);u?(es.D(u,{shape:{points:d.ends}},e,o),(0,es.Zi)(u)):u=oG(d,o),oO(u,t,o,r),i.add(u),t.setItemGraphicEl(o,u)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),oW(e,this.group);var t=e.get("clip",!0)?(0,oZ.lQ)(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),r=i.getLayout("isSimpleBox");null!=(n=e.next());){var a=oG(i.getItemLayout(n),n);oO(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){oW(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(v.Z),oE=function(){},oV=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return(0,F.ZT)(t,e),t.prototype.getDefaultShape=function(){return new oE},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(e$.ZP);function oG(e,t,n){var i,r,a=e.ends;return new oV({shape:{points:n?(i=a,r=e,w.map(i,function(e){return(e=e.slice())[1]=r.initBaseline,e})):a},z2:100})}function oz(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function oO(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,(0,R.WO)(e,r)}var oB=function(){},oF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return(0,F.ZT)(t,e),t.prototype.getDefaultShape=function(){return new oB},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(e$.ZP);function oW(e,t,n,i){var r=e.getData(),a=r.getLayout("largePoints"),o=new oF({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new oF({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new oF({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),oH(1,o,e,r),oH(-1,s,e,r),oH(0,l,e,r),i&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function oH(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var a=n.getModel("itemStyle").getItemStyle(ok);t.useStyle(a),t.style.fill=null,t.style.stroke=r}var oY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,F.ZT)(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(y.Z);function oX(e){e&&w.isArray(e.series)&&w.each(e.series,function(e){w.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}(0,w.mixin)(oY,ob,!0);var oU=n(93149),oj=["itemStyle","borderColor"],oq=["itemStyle","borderColor0"],oJ=["itemStyle","borderColorDoji"],oK=["itemStyle","color"],o$=["itemStyle","color0"],oQ={seriesType:"candlestick",plan:(0,oU.Z)(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;null!=(n=e.next());){var i=t.getItemModel(n),r=t.getItemLayout(n).sign,a=i.getItemStyle();a.fill=i.get(r>0?oK:o$),a.stroke=i.get(0===r?oJ:r>0?oj:oq)||a.fill;var o=t.ensureUniqueItemVisual(n,"style");(0,w.extend)(o,a)}}}}},o0=n(98845),o1={seriesType:"candlestick",plan:(0,oU.Z)(),reset:function(e){var t,n,i,r,a,o,s,l,u=e.coordinateSystem,d=e.getData(),c=(t=e,n=d,a="category"===(r=t.getBaseAxis()).type?r.getBandWidth():Math.abs((i=r.getExtent())[1]-i[0])/n.count(),o=(0,er.GM)((0,w.retrieve2)(t.get("barMaxWidth"),a),a),s=(0,er.GM)((0,w.retrieve2)(t.get("barMinWidth"),1),a),null!=(l=t.get("barWidth"))?(0,er.GM)(l,a):Math.max(Math.min(a/2,o),s)),h=d.getDimensionIndex(d.mapDimension("x")),p=(0,w.map)(d.mapDimensionsAll("y"),d.getDimensionIndex,d),g=p[0],f=p[1],y=p[2],v=p[3];if(d.setLayout({candleWidth:c,isSimpleBox:c<=1.3}),!(h<0)&&!(p.length<4))return{progress:e.pipelineContext.large?function(t,n){for(var i,r,a=(0,o0.o)(4*t.count),o=0,s=[],l=[],d=n.getStore(),c=!!e.get(["itemStyle","borderColorDoji"]);null!=(r=t.next());){var p=d.get(h,r),m=d.get(g,r),x=d.get(f,r),_=d.get(y,r),b=d.get(v,r);if(isNaN(p)||isNaN(_)||isNaN(b)){a[o++]=NaN,o+=3;continue}a[o++]=o2(d,r,m,x,f,c),s[0]=p,s[1]=_,i=u.dataToPoint(s,null,l),a[o++]=i?i[0]:NaN,a[o++]=i?i[1]:NaN,s[1]=b,i=u.dataToPoint(s,null,l),a[o++]=i?i[1]:NaN}n.setLayout("largePoints",a)}:function(e,t){for(var n,i=t.getStore();null!=(n=e.next());){var r=i.get(h,n),a=i.get(g,n),o=i.get(f,n),s=i.get(y,n),l=i.get(v,n),d=Math.min(a,o),p=Math.max(a,o),m=M(d,r),x=M(p,r),_=M(s,r),b=M(l,r),w=[];I(w,x,0),I(w,m,1),w.push(T(b),T(x),T(_),T(m));var S=!!t.getItemModel(n).get(["itemStyle","borderColorDoji"]);t.setItemLayout(n,{sign:o2(i,n,a,o,f,S),initBaseline:a>o?x[1]:m[1],ends:w,brushRect:function(e,t,n){var i=M(e,n),r=M(t,n);return i[0]-=c/2,r[0]-=c/2,{x:i[0],y:i[1],width:c,height:r[1]-i[1]}}(s,l,r)})}function M(e,t){var n=[];return n[0]=t,n[1]=e,isNaN(t)||isNaN(e)?[NaN,NaN]:u.dataToPoint(n)}function I(e,t,n){var i=t.slice(),r=t.slice();i[0]=(0,eo.subPixelOptimize)(i[0]+c/2,1,!1),r[0]=(0,eo.subPixelOptimize)(r[0]-c/2,1,!0),n?e.push(i,r):e.push(r,i)}function T(e){return e[0]=(0,eo.subPixelOptimize)(e[0],1),e}}}}};function o2(e,t,n,i,r,a){return n>i?-1:n<i?1:a?0:t>0?e.get(r,t-1)<=i?1:-1:1}function o5(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})})}var o3=function(e){function t(t,n){var i=e.call(this)||this,r=new iN.Z(t,n),a=new el.Z;return i.add(r),i.add(a),i.updateData(t,n),i}return(0,F.ZT)(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),a=0;a<i;a++){var o=(0,k.th)(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/i*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(o)}o5(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var a=i[r];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}o5(n,e)},t.prototype.highlight=function(){(0,R.fD)(this)},t.prototype.downplay=function(){(0,R.Mh)(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=(0,k.zp)(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,d=a.getModel("emphasis");r.setScale(s),r.traverse(function(e){e.setStyle("fill",u)});var c=(0,k.Cq)(e.getItemVisual(t,"symbolOffset"),s);c&&(r.x=c[0],r.y=c[1]),r.rotation=(e.getItemVisual(t,"symbolRotate")||0)*Math.PI/180||0;var h={};h.showEffectOn=i.get("showEffectOn"),h.rippleScale=a.get(["rippleEffect","scale"]),h.brushType=a.get(["rippleEffect","brushType"]),h.period=1e3*a.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=o,h.color=u,h.rippleEffectColor=a.get(["rippleEffect","color"]),h.rippleNumber=a.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,(0,R.k5)(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(el.Z),o4=n(13706),o6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(){this._symbolDraw=new ai.Z(o3)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=(0,o4.Z)("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=_.clone(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(v.Z),o9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,I.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(y.Z),o7=n(2215),o8=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return(0,F.ZT)(t,e),t.prototype.createLine=function(e,t,n){return new o7.Z(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");w.isArray(i)||(i=[i,i]);var a=e.getItemVisual(t,"style"),o=n.get("color")||a&&a.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=(0,k.th)(r,-.5,-.5,1,1,o)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",o),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(o),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),a=1e3*t.get("period"),o=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=w.retrieve(t.get("delay"),function(t){return t/e.count()*a/3});if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(a=this._getLineLength(i)/l*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){i.stopAnimation();var d=void 0;d=w.isFunction(u)?u(n):u,i.__t>0&&(d=-a*i.__t),this._animateSymbol(i,a,d,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var a=this,o=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});i||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return b.dist(e.__p1,e.__cp1)+b.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=aa.Zm,l=aa.AZ;a[0]=s(t[0],i[0],n[0],r),a[1]=s(t[1],i[1],n[1],r);var u=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),d=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(d,u)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*b.dist(o,a),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*b.dist(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(el.Z),se=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return(0,F.ZT)(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new ey.Z({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};es.D(r,a,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,(0,R.k5)(this,o,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(el.Z),st=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return(0,F.ZT)(t,e),t.prototype.createLine=function(e,t,n){return new se(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var a=t[r-1],o=t[r];i+=b.dist(a,o),n.push(i)}if(0===i){this._length=0;return}for(var r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t,n=e.__t<1?e.__t:2-e.__t,i=this._points,r=this._offsets,a=i.length;if(r){var o=this._lastFrame;if(n<this._lastFramePercent){for(t=Math.min(o+1,a-1);t>=0&&!(r[t]<=n);t--);t=Math.min(t,a-2)}else{for(t=o;t<a&&!(r[t]>n);t++);t=Math.min(t-1,a-2)}var s=(n-r[t])/(r[t+1]-r[t]),l=i[t],u=i[t+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var d=e.__t<1?u[0]-l[0]:l[0]-u[0],c=e.__t<1?u[1]-l[1]:l[1]-u[1];e.rotation=-Math.atan2(c,d)-Math.PI/2,this._lastFrame=t,this._lastFramePercent=n,e.ignore=!1}},t}(o8),sn=n(22783),si=n(55205),sr=function(){this.polyline=!1,this.curveness=0,this.segs=[]},sa=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,F.ZT)(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sr},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var a=i[n++];if(a>0){e.moveTo(i[n++],i[n++]);for(var o=1;o<a;o++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],d=i[n++];if(e.moveTo(s,l),r>0){var c=(s+u)/2-(l-d)*r,h=(l+d)/2-(u-s)*r;e.quadraticCurveTo(c,h,u,d)}else e.lineTo(u,d)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],d=i[s++],c=1;c<l;c++){var h=i[s++],p=i[s++];if(sn.m(u,d,h,p,a,e,t))return o}o++}else for(var o=0,s=0;s<i.length;){var u=i[s++],d=i[s++],h=i[s++],p=i[s++];if(r>0){var g=(u+h)/2-(d-p)*r,f=(d+p)/2-(h-u)*r;if(si.m(u,d,g,f,h,p,a,e,t))return o}else if(sn.m(u,d,h,p,a,e,t))return o;o++}return -1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return(e=n[0],t=n[1],i.contain(e,t))?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,i=1/0,r=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],l=t[o++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),a=Math.max(l,a)}e=this._rect=new W.Z(n,i,r,a)}return e},t}(e$.ZP),so=function(){function e(){this.group=new el.Z}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var a=r.length,o=new Float32Array(a+i.length);o.set(r),o.set(i,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new sa({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var a=(0,P.A)(e);a.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),ss={seriesType:"lines",plan:(0,oU.Z)(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,a){var o=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,d=r.start;d<r.end;d++)u+=e.getLineCoordsCount(d);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);for(var c=0,h=[],d=r.start;d<r.end;d++){var p=e.getLineCoords(d,o);n&&(s[c++]=p);for(var g=0;g<p;g++)h=t.dataToPoint(o[g],!1,h),s[c++]=h[0],s[c++]=h[1]}a.setLayout("linesPoints",s)}else for(var d=r.start;d<r.end;d++){var f=a.getItemModel(d),p=e.getLineCoords(d,o),y=[];if(n)for(var v=0;v<p;v++)y.push(t.dataToPoint(o[v]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var m=f.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}a.setItemLayout(d,y)}}}}}},sl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),a=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&(0,oZ.lQ)(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=ss.reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),a=t.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new so:new ar.Z(r?i?st:se:i?o8:o7.Z),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(v.Z),su="undefined"==typeof Uint32Array?Array:Uint32Array,sd="undefined"==typeof Float64Array?Array:Float64Array;function sc(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=(0,w.map)(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),(0,w.mergeAll)([t,e[0],e[1]])}))}var sh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,F.ZT)(t,e),t.prototype.init=function(t){t.data=t.data||[],sc(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(sc(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=(0,w.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=(0,w.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}for(var a=this._getCoordsFromItemModel(e),r=0;r<a.length;r++)t[r]=t[r]||[],t[r][0]=a[r][0],t[r][1]=a[r][1];return a.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),(0,w.isNumber)(e[0])){for(var n=e.length,i=new su(n),r=new sd(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=e[l++];i[o++]=a+t,i[o++]=u;for(var d=0;d<u;d++){var c=e[l++],h=e[l++];r[a++]=c,r[a++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new m.Z(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(null!=a)return a instanceof Array?a[r]:a}),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),r=i.get("name");if(r)return r;var a=i.get("fromName"),o=i.get("toName"),s=[];return null!=a&&s.push(a),null!=o&&s.push(o),(0,nt.TX)("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(y.Z);function sp(e){return e instanceof Array||(e=[e,e]),e}let sg={seriesType:"lines",reset:function(e){var t=sp(e.get("symbol")),n=sp(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=sp(n.getShallow("symbol",!0)),r=sp(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}:null}}};var sf=n(27835),sy=n(16072),sv=["itemStyle","borderWidth"],sm=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],sx=new ec.Z,s_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),l=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:sm[+s],categoryDim:sm[1-s]};r.diff(a).add(function(e){if(r.hasValue(e)){var t=sD(r,e),n=sb(r,e,t,u),a=sP(r,u,n);r.setItemGraphicEl(e,a),i.add(a),sE(a,u,n)}}).update(function(e,t){var n,o,s,l,d,c,h=a.getItemGraphicEl(t);if(!r.hasValue(e))return void i.remove(h);var p=sD(r,e),g=sb(r,e,p,u),f=sZ(r,g);h&&f!==h.__pictorialShapeStr&&(i.remove(h),r.setItemGraphicEl(e,null),h=null),h?(n=h,o=u,l=(s=g).animationModel,d=s.dataIndex,c=n.__pictorialBundle,es.D(c,{x:s.bundlePosition[0],y:s.bundlePosition[1]},l,d),s.symbolRepeat?sM(n,o,s,!0):sI(n,o,s,!0),sT(n,s,!0),sA(n,o,s,!0)):h=sP(r,u,g,!0),r.setItemGraphicEl(e,h),h.__pictorialSymbolMeta=g,i.add(h),sE(h,u,g)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&sN(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var d=e.get("clip",!0)?(0,oZ.lQ)(e.coordinateSystem,!1,e):null;return d?i.setClipPath(d):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){sN(i,(0,P.A)(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}(v.Z);function sb(e,t,n,i){var r,a,o,s,l,u,d,c,h,p,g,f,y,v,m,x,_,b,S,M,I,T=e.getItemLayout(t),A=n.get("symbolRepeat"),D=n.get("symbolClip"),L=n.get("symbolPosition")||"start",C=(n.get("symbolRotate")||0)*Math.PI/180||0,P=n.get("symbolPatternSize")||2,N=n.isAnimationEnabled(),Z={dataIndex:t,layout:T,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:D,symbolRepeat:A,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:P,rotation:C,animationModel:N?n:null,hoverScale:N&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};(function(e,t,n,i,r){var a,o=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),d=1-(n[o.wh]<=0);if(w.isArray(s)){var c=[sw(l,s[0])-u,sw(l,s[1])-u];c[1]<c[0]&&c.reverse(),a=c[d]}else a=null!=s?sw(l,s)-u:t?i.coordSysExtent[o.index][d]-u:n[o.wh];r.boundingLength=a,t&&(r.repeatCutLength=n[o.wh]),r.pxSign=a>0?1:-1})(n,A,T,i,Z),r=e,a=t,o=T,s=A,l=Z.boundingLength,u=Z.pxSign,d=P,c=i,h=Z,g=c.valueDim,y=Math.abs(o[(f=c.categoryDim).wh]),v=r.getItemVisual(a,"symbolSize"),(p=w.isArray(v)?v.slice():null==v?["100%","100%"]:[v,v])[f.index]=(0,er.GM)(p[f.index],y),p[g.index]=(0,er.GM)(p[g.index],s?y:Math.abs(l)),h.symbolSize=p,m=h.symbolScale=[p[0]/d,p[1]/d],m[g.index]*=(c.isHorizontal?-1:1)*u,x=n,_=Z.symbolScale,b=C,S=i,M=Z,(I=x.get(sv)||0)&&(sx.attr({scaleX:_[0],scaleY:_[1],rotation:b}),sx.updateTransform(),I/=sx.getLineScale(),I*=_[S.valueDim.index]),M.valueLineWidth=I||0;var R=Z.symbolSize,E=(0,k.Cq)(n.get("symbolOffset"),R);return function(e,t,n,i,r,a,o,s,l,u,d,c){var h=d.categoryDim,p=d.valueDim,g=c.pxSign,f=Math.max(t[p.index]+s,0),y=f;if(i){var v=Math.abs(l),m=w.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=(0,er.GM)(m,t[p.index]),b=Math.max(f+2*_,0),S=x?0:2*_,M=(0,er.kE)(i),I=M?i:sV((v+S)/b);_=(v-I*f)/2/(x?I:Math.max(I-1,1)),b=f+2*_,S=x?0:2*_,M||"fixed"===i||(I=u?sV((Math.abs(u)+S)/b):0),y=I*b-S,c.repeatTimes=I,c.symbolMargin=_}var T=y/2*g,A=c.pathPosition=[];A[h.index]=n[h.wh]/2,A[p.index]="start"===o?T:"end"===o?l-T:l/2,a&&(A[0]+=a[0],A[1]+=a[1]);var D=c.bundlePosition=[];D[h.index]=n[h.xy],D[p.index]=n[p.xy];var L=c.barRectShape=w.extend({},n);L[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+T)),L[h.wh]=n[h.wh];var C=c.clipShape={};C[h.xy]=-n[h.xy],C[h.wh]=d.ecSize[h.wh],C[p.xy]=0,C[p.wh]=n[p.wh]}(n,R,T,A,0,E,L,Z.valueLineWidth,Z.boundingLength,Z.repeatCutLength,i,Z),Z}function sw(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function sS(e){var t=e.symbolPatternSize,n=(0,k.th)(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function sM(e,t,n,i){var r=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,d=0,c=a[t.valueDim.index]+o+2*n.symbolMargin;for(sk(e,function(e){e.__pictorialAnimationIndex=d,e.__pictorialRepeatTimes=u,d<u?sR(e,null,g(d),n,i):sR(e,null,{scaleX:0,scaleY:0},n,i,function(){r.remove(e)}),d++});d<u;d++){var h=sS(n);h.__pictorialAnimationIndex=d,h.__pictorialRepeatTimes=u,r.add(h);var p=g(d);sR(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function g(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=c*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function sI(e,t,n,i){var r=e.__pictorialBundle,a=e.__pictorialMainPath;a?sR(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=e.__pictorialMainPath=sS(n),r.add(a),sR(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function sT(e,t,n){var i=w.extend({},t.barRectShape),r=e.__pictorialBarRect;r?sR(r,null,{shape:i},t,n):((r=e.__pictorialBarRect=new ev.Z({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(r))}function sA(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,a=w.extend({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(r)es.D(r,{shape:a},s,l);else{a[o.wh]=0,r=new ev.Z({shape:a}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var u={};u[o.wh]=n.clipShape[o.wh],eo[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function sD(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=sL,n.isAnimationEnabled=sC,n}function sL(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function sC(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function sP(e,t,n,i){var r=new el.Z,a=new el.Z;return r.add(a),r.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?sM(r,t,n):sI(r,t,n),sT(r,n,i),sA(r,t,n,i),r.__pictorialShapeStr=sZ(e,n),r.__pictorialSymbolMeta=n,r}function sN(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var a=[];sk(i,function(e){a.push(e)}),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),w.each(a,function(e){es.bX(e,{scaleX:0,scaleY:0},n,t,function(){i.parent&&i.parent.remove(i)})}),e.setItemGraphicEl(t,null)}function sZ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function sk(e,t,n){w.each(e.__pictorialBundle.children(),function(i){i!==e.__pictorialBarRect&&t.call(n,i)})}function sR(e,t,n,i,r,a){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&eo[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,a)}function sE(e,t,n){var i=n.dataIndex,r=n.itemModel,a=r.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),d=a.get("focus"),c=a.get("blurScope"),h=a.get("scale");sk(e,function(e){if(e instanceof eu.ZP){var t=e.style;e.useStyle(w.extend({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=o,h&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,(0,N.ni)(g,(0,N.k3)(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:(0,sy.H)(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),(0,R.k5)(e,d,c,a.get("disabled"))}function sV(e){var t=Math.round(e);return 1e-4>Math.abs(e-t)?t:Math.ceil(e)}var sG=n(93846),sz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=(0,n1.ZL)(sG.Z.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sG.Z),sO=n(58783),sB=n(95999),sF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,a=this.group,o=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function d(e){return e.name}a.x=0,a.y=l.y+u[0];var c=new ru.Z(this._layersSeries||[],o,d,d),h=[];function p(t,n,s){var l,u,d=r._layers;if("remove"===t)return void a.remove(d[n]);for(var c=[],p=[],g=o[n].indices,f=0;f<g.length;f++){var y=i.getItemLayout(g[f]),v=y.x,m=y.y0,x=y.y;c.push(v,m),p.push(v,m+x),l=i.getItemVisual(g[f],"style")}var _=i.getItemLayout(g[0]),b=e.getModel("label").get("margin"),w=e.getModel("emphasis");if("add"===t){var S,M,I,T,A=h[n]=new el.Z;u=new sB.K({shape:{points:c,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),A.add(u),a.add(A),e.isAnimationEnabled()&&u.setClipPath((S=u.getBoundingRect(),M=e,I=function(){u.removeClipPath()},T=new ev.Z({shape:{x:S.x-10,y:S.y-10,width:0,height:S.height+20}}),es.KZ(T,{shape:{x:S.x-50,width:S.width+100,height:S.height+20}},M,I),T))}else{var A=d[s];u=A.childAt(0),a.add(A),h[n]=A,es.D(u,{shape:{points:c,stackedOnPoints:p}},e),(0,es.Zi)(u)}(0,N.ni)(u,(0,N.k3)(e),{labelDataIndex:g[f-1],defaultText:i.getName(g[f-1]),inheritColor:l.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var D=u.getTextContent();D&&(D.x=_.x-b,D.y=_.y0+_.y/2),u.useStyle(l),i.setItemGraphicEl(n,u),(0,R.WO)(u,e),(0,R.k5)(u,w.get("focus"),w.get("blurScope"),w.get("disabled"))}c.add((0,w.bind)(p,this,"add")).update((0,w.bind)(p,this,"update")).remove((0,w.bind)(p,this,"remove")).execute(),this._layersSeries=o,this._layers=h},t.type="themeRiver",t}(v.Z),sW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ne.Z(w.bind(this.getData,this),w.bind(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=(0,eE.pv)(e,function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]}),r=[];i.buckets.each(function(e,t){r.push({name:t,dataList:e})});for(var a=r.length,o=0;o<a;++o){for(var s=r[o].name,l=0;l<r[o].dataList.length;++l){var u=r[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",eE.C6).models[0].get("type"),i=w.filter(e.data,function(e){return void 0!==e[2]}),r=this.fixData(i||[]),a=[],o=this.nameMap=w.createHashMap(),s=0,l=0;l<r.length;++l)a.push(r[l][2]),!o.get(r[l][2])&&(o.set(r[l][2],s),s++);var u=(0,Z.Z)(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,o_.T)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new m.Z(u,this);return d.initData(r),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),a=(0,eE.pv)(n,function(t){return e.get("name",t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(r,t)-e.get(r,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){w.isArray(e)||(e=e?[e]:[]);for(var i,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,d=-1,c=a[l].indices.length,h=0;h<c;++h){var p=r.get(e[0],a[l].indices[h]),g=Math.abs(p-t);g<=u&&(i=p,u=g,d=a[l].indices[h])}o.push(d)}return{dataIndices:o,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),a=i.get(i.mapDimension("value"),e);return(0,nt.TX)("nameValue",{name:r,value:a})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(y.Z);function sH(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var a=e.get("boundaryGap"),o=n.getAxis();i.boundaryGap=a,"horizontal"===o.orient?(a[0]=er.GM(a[0],r.height),a[1]=er.GM(a[1],r.height),sY(t,e,r.height-a[0]-a[1])):(a[0]=er.GM(a[0],r.width),a[1]=er.GM(a[1],r.width),sY(t,e,r.width-a[0]-a[1])),t.setLayout("layoutInfo",i)})}function sY(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=w.map(a,function(t){return w.map(t.indices,function(t){var n=r.dataToPoint(e.get(o,t));return n[1]=e.get(s,t),n})}),u=function(e){for(var t=e.length,n=e[0].length,i=[],r=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(a-i[u])/2;a=0;for(var d=0;d<n;++d){var c=i[d]+r[d];c>a&&(a=c)}return{y0:r,max:a}}(l),d=u.y0,c=n/u.max,h=a.length,p=a[0].indices.length,g=0;g<p;++g){i=d[g]*c,e.setItemLayout(a[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*c});for(var f=1;f<h;++f)i+=l[f-1][g][1]*c,e.setItemLayout(a[f].indices[g],{layerIndex:f,x:l[f][g][0],y0:i,y:l[f][g][1]*c})}}var sX=n(10061),sU=function(e){function t(t,n,i,r){var a=e.call(this)||this;a.z2=2,a.textConfig={inside:!0},(0,P.A)(a).seriesIndex=n.seriesIndex;var o=new ed.ZP({z2:4,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,i,r),a}return(0,F.ZT)(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;(0,P.A)(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),u=w.extend({},l);u.label=null;var d=t.getVisual("style");d.lineJoin="bevel";var c=t.getVisual("decal");c&&(d.decal=(0,n2.I)(c,r));var h=(0,sX.T)(o.getModel("itemStyle"),u,!0);w.extend(u,h),w.each(R.L1,function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=(0,sX.T)(n,u);i&&(t.shape=i)}),e?(a.setShape(u),a.shape.r=l.r0,es.KZ(a,{shape:{r:l.r}},n,t.dataIndex)):(es.D(a,{shape:u},n),(0,es.Zi)(a)),a.useStyle(d),this._updateLabel(n);var p=o.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),f="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;(0,R.k5)(this,f,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),a=r.endAngle-r.startAngle,o=(r.startAngle+r.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,d=u.getTextContent(),c=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI;function p(e,t){var n=e.get(t);return null==n?i.get(t):n}d.ignore=!(i.get("show")&&!(null!=h&&Math.abs(a)<h)),w.each(R.qc,function(i){var h,g="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,y=f?d:d.ensureState(i),v=e.getFormattedLabel(c,i);f&&(v=v||t.node.name),y.style=(0,N.Lr)(g,{},null,"normal"!==i,!0),v&&(y.style.text=v);var m=g.get("show");null==m||f||(y.ignore=!m);var x=p(g,"position"),_=f?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===g.get("color")?b:null,inside:"outside"!==x};var S=p(g,"distance")||0,M=p(g,"align"),I=p(g,"rotate"),T=.5*Math.PI,A=1.5*Math.PI,D=(0,eO.m)("tangential"===I?Math.PI/2-o:o),L=D>T&&!(0,er.mW)(D-T)&&D<A;"outside"===x?(h=r.r+S,M=L?"right":"left"):M&&"center"!==M?"left"===M?(h=r.r0+S,M=L?"right":"left"):"right"===M&&(h=r.r-S,M=L?"left":"right"):(h=a===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,M="center"),y.style.align=M,y.style.verticalAlign=p(g,"verticalAlign")||"middle",y.x=h*s+r.cx,y.y=h*l+r.cy;var C=0;"radial"===I?C=(0,eO.m)(-o)+(L?Math.PI:0):"tangential"===I?C=(0,eO.m)(Math.PI/2-o)+(L?Math.PI:0):w.isNumber(I)&&(C=I*Math.PI/180),y.rotation=(0,eO.m)(C)}),d.dirtyStyle()},t}(ep.C),sj="sunburstRootToNode",sq="sunburstHighlight",sJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n,i){var r,a,o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),d=this.group,c=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(e){h.push(e)}),function(i,r){function a(e){return e.getId()}function o(a,o){!function(i,r){if(c||!i||i.getValue()||(i=null),i!==l&&r!==l){if(r&&r.piece){var a;i?(r.piece.updateData(!1,i,e,t,n),s.setItemGraphicEl(i.dataIndex,r.piece)):(a=r)&&a.piece&&(d.remove(a.piece),a.piece=null)}else if(i){var o=new sU(i,e,t,n);d.add(o),s.setItemGraphicEl(i.dataIndex,o)}}}(null==a?null:i[a],null==o?null:r[o])}(0!==i.length||0!==r.length)&&new ru.Z(r,i,a,a).add(o).update(o).remove(w.curry(o,null)).execute()}(h,this._oldChildren||[]),r=l,(a=u).depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,r,e,t,n):(o.virtualPiece=new sU(r,e,t,n),d.add(o.virtualPiece)),a.piece.off("click"),o.virtualPiece.on("click",function(e){o._rootToNode(a.parentNode)})):o.virtualPiece&&(d.remove(o.virtualPiece),o.virtualPiece=null),this._initEvents(),this._oldChildren=h},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";(0,eI.MI)(o,s)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:sj,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,a=Math.sqrt(i*i+r*r);return a<=n.r&&a>=n.r0}},t.type="sunburst",t}(v.Z),sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return(0,F.ZT)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;w.each(t.children,function(t){e(t);var i=t.value;w.isArray(i)&&(i=i[0]),n+=i});var i=t.value;w.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),w.isArray(t.value)?t.value[0]=i:t.value=i}(n);var i=this._levelModels=w.map(e.levels||[],function(e){return new D.Z(e,this,t)},this),r=i6.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=i[r.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})});return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=re(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){rs(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(y.Z),s$=Math.PI/180;function sQ(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),i=e.get("radius");w.isArray(i)||(i=[0,i]),w.isArray(t)||(t=[t,t]);var r=n.getWidth(),a=n.getHeight(),o=Math.min(r,a),s=(0,er.GM)(t[0],r),l=(0,er.GM)(t[1],a),u=(0,er.GM)(i[0],o/2),d=(0,er.GM)(i[1],o/2),c=-e.get("startAngle")*s$,h=e.get("minAngle")*s$,p=e.getData().tree.root,g=e.getViewRoot(),f=g.depth,y=e.get("sort");null!=y&&function e(t,n){var i=t.children||[];t.children=function(e,t){if(w.isFunction(t)){var n=w.map(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),w.map(n,function(t){return e[t.index]})}var i="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n})}(i,n),i.length&&w.each(t.children,function(t){e(t,n)})}(g,y);var v=0;w.each(g.children,function(e){!isNaN(e.getValue())&&v++});var m=g.getValue(),x=Math.PI/(m||v)*2,_=g.depth>0,b=(d-u)/(g.height-(_?-1:1)||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),I=S?1:-1,T=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),a=0===m&&M?x:r*x;a<h&&(a=h),i=n+I*a;var d=t.depth-f-(_?-1:1),c=u+b*d,g=u+b*(d+1),y=e.getLevelModel(t);if(y){var v=y.get("r0",!0),A=y.get("r",!0),D=y.get("radius",!0);null!=D&&(v=D[0],A=D[1]),null!=v&&(c=(0,er.GM)(v,o/2)),null!=A&&(g=(0,er.GM)(A,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:c,r:g})}if(t.children&&t.children.length){var L=0;w.each(t.children,function(e){L+=T(e,n+L)})}return i-n}};if(_){var A=2*Math.PI;p.setLayout({angle:A,startAngle:c,endAngle:c+A,clockwise:S,cx:s,cy:l,r0:u,r:u+b})}T(g,c)})}function s0(e){var t={};e.eachSeriesByType("sunburst",function(e){var n=e.getData(),i=n.tree;i.eachNode(function(r){var a=r.getModel().getModel("itemStyle").getItemStyle();a.fill||(a.fill=function(e,n,i){for(var r=e;r&&r.depth>1;)r=r.parentNode;var a=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&(0,w.isString)(a)&&(a=(0,S.lift)(a,(e.depth-1)/(i-1)*.5)),a}(r,e,i.root.height));var o=n.ensureUniqueItemVisual(r.dataIndex,"style");(0,w.extend)(o,a)})})}var s1=n(35246),s2=n(65201),s5=n(23056),s3=n(76204),s4=n(47534),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,F.ZT)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var d=s4.fk(i),c=s9[u](a,o,l,s);c.style=d,e.graphicKey=c.type,e.pointer=c}var h=function(e,t,n,i,r){var a,o,s,l=t.axis,u=l.dataToCoord(e),d=i.getAngleAxis().getExtent()[0];d=d/180*Math.PI;var c=i.getRadiusAxis().getExtent();if("radius"===l.dim){var h=_.create();_.rotate(h,h,d),_.translate(h,h,[i.cx,i.cy]),a=eo.applyTransform([u,-r],h);var p=t.getModel("axisLabel").get("rotate")||0,g=no.Z.innerTextLayout(d,p*Math.PI/180,-1);o=g.textAlign,s=g.textVerticalAlign}else{var f=c[1];a=i.coordToPoint([f+r,u]);var y=i.cx,v=i.cy;o=Math.abs(a[0]-y)/f<.3?"center":a[0]>y?"left":"right",s=Math.abs(a[1]-v)/f<.3?"middle":a[1]>v?"top":"bottom"}return{position:a,align:o,verticalAlign:s}}(t,n,0,o,i.get(["label","margin"]));s4.$_(e,n,i,r,h)},t}(s3.Z),s9={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:s4.BL(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:s4.Rj(t.cx,t.cy,i[0],i[1],(-n-r/2)*a,(-n+r/2)*a)}:{type:"Sector",shape:s4.Rj(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},s7=n(56241),s8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(g.Z),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,F.ZT)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",eE.C6).models[0]},t.type="polarAxis",t}(g.Z);w.mixin(le,A.W);var lt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.type="angleAxis",t}(le),ln=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.type="radiusAxis",t}(le),li=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return(0,F.ZT)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[+("radius"!==this.dim)]},t}(eC.Z);li.prototype.dataToRadius=eC.Z.prototype.dataToCoord,li.prototype.radiusToData=eC.Z.prototype.coordToData;var lr=(0,eE.Yf)(),la=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return(0,F.ZT)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[+("radius"!==this.dim)]},t.prototype.calculateCategoryInterval=function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),i=t.count();if(n[1]-n[0]<1)return 0;var r=n[0],a=Math.abs(this.dataToCoord(r+1)-this.dataToCoord(r)),o=Math.max(eQ.lP(null==r?"":r+"",e.getFont(),"center","top").height,7)/a;isNaN(o)&&(o=1/0);var s=Math.max(0,Math.floor(o)),l=lr(this.model),u=l.lastAutoInterval,d=l.lastTickCount;return null!=u&&null!=d&&1>=Math.abs(u-s)&&1>=Math.abs(d-i)&&u>s?s=u:(l.lastTickCount=i,l.lastAutoInterval=s),s},t}(eC.Z);la.prototype.dataToAngle=eC.Z.prototype.dataToCoord,la.prototype.angleToData=eC.Z.prototype.coordToData;var lo=["radius","angle"],ls=function(){function e(e){this.dimensions=lo,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new li,this._angleAxis=new la,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s;for(var l=Math.atan2(-(n/=s),t)/Math.PI*180,u=l<a?1:-1;l<a||l>o;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}},e.prototype.convertToPixel=function(e,t,n){return ll(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ll(t)===this?this.pointToData(n):null},e}();function ll(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function lu(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();w.each((0,T.PY)(t,"radius"),function(e){r.scale.unionExtentFromData(t,e)}),w.each((0,T.PY)(t,"angle"),function(e){i.scale.unionExtentFromData(t,e)})}}),(0,T.Jk)(i.scale,i.model),(0,T.Jk)(r.scale,r.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function ld(e,t){var n;if(e.type=t.get("type"),e.scale=(0,T.aG)(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!=(n=t.get("endAngle"))?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}let lc={dimensions:lo,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,i){var r,a,o,s,l,u,d,c=new ls(i+"");c.update=lu;var h=c.getRadiusAxis(),p=c.getAngleAxis(),g=e.findAxisModel("radiusAxis"),f=e.findAxisModel("angleAxis");ld(h,g),ld(p,f),r=e.get("center"),a=t.getWidth(),o=t.getHeight(),c.cx=(0,er.GM)(r[0],a),c.cy=(0,er.GM)(r[1],o),s=c.getRadiusAxis(),l=Math.min(a,o)/2,null==(u=e.get("radius"))?u=[0,"100%"]:w.isArray(u)||(u=[0,u]),d=[(0,er.GM)(u[0],l),(0,er.GM)(u[1],l)],s.inverse?s.setExtent(d[1],d[0]):s.setExtent(d[0],d[1]),n.push(c),e.coordinateSystem=c,c.model=e}),e.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",eE.C6).models[0];e.coordinateSystem=t.coordinateSystem}}),n}};var lh=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lp(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function lg(e){return+!e.getRadiusAxis().inverse}function lf(e){var t=e[0],n=e[e.length-1];t&&n&&1e-4>Math.abs(Math.abs(t.coord-n.coord)-360)&&e.pop()}var ly=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=w.map(n.getViewLabels(),function(e){e=w.clone(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e});lf(s),lf(a),w.each(lh,function(t){e.get([t,"show"])&&(!n.scale.isBlank()||"axisLine"===t)&&lv[t](this.group,e,i,a,o,r,s)},this)}},t.type="angleAxis",t}(s5.Z),lv={axisLine:function(e,t,n,i,r,a){var o,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),c=lg(n),h=+!c,p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";(o=0===a[h]?new eo[p]({shape:{cx:n.cx,cy:n.cy,r:a[c],startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new eg.Z({shape:{cx:n.cx,cy:n.cy,r:a[c],r0:a[h]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(o)},axisTick:function(e,t,n,i,r,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[lg(n)],u=w.map(i,function(e){return new em.Z({shape:lp(n,[l,l+s],e.coord)})});e.add(eo.mergePath(u,{style:w.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,a){if(r.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[lg(n)],d=[],c=0;c<r.length;c++)for(var h=0;h<r[c].length;h++)d.push(new em.Z({shape:lp(n,[u,u+l],r[c][h].coord)}));e.add(eo.mergePath(d,{style:w.defaults(s.getModel("lineStyle").getLineStyle(),w.defaults(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),d=t.get("triggerEvent");w.each(o,function(i,r){var o=l,c=i.tickValue,h=a[lg(n)],p=n.coordToPoint([h+u,i.coord]),g=n.cx,f=n.cy,y=Math.abs(p[0]-g)/h<.3?"center":p[0]>g?"left":"right",v=Math.abs(p[1]-f)/h<.3?"middle":p[1]>f?"top":"bottom";if(s&&s[c]){var m=s[c];w.isObject(m)&&m.textStyle&&(o=new D.Z(m.textStyle,l,l.ecModel))}var x=new ed.ZP({silent:no.Z.isLabelSilent(t),style:(0,N.Lr)(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(e.add(x),d){var _=no.Z.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,(0,P.A)(x).eventData=_}},this)},splitLine:function(e,t,n,i,r,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],d=0;d<i.length;d++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new em.Z({shape:lp(n,a,i[d].coord)}))}for(var d=0;d<u.length;d++)e.add(eo.mergePath(u[d],{style:w.defaults({stroke:s[d%s.length]},o.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,a){if(r.length){for(var o=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new em.Z({shape:lp(n,a,r[l][u].coord)}));e.add(eo.mergePath(s,{style:o.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,a){if(i.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],d=Math.PI/180,c=-i[0].coord*d,h=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),g=t.get("clockwise"),f=1,y=i.length;f<=y;f++){var v=f===y?i[0].coord:i[f].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new ep.C({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:c,endAngle:-v*d,clockwise:g},silent:!0})),c=-v*d}for(var f=0;f<u.length;f++)e.add(eo.mergePath(u[f],{style:w.defaults({fill:s[f%s.length]},o.getAreaStyle()),silent:!0}))}}},lm=["axisLine","axisTickLabel","axisName"],lx=["splitLine","splitArea","minorSplitLine"],l_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n,i,r,a=this._axisGroup,o=this._axisGroup=new el.Z;this.group.add(o);var s=e.axis,l=s.polar,u=l.getAngleAxis(),d=s.getTicksCoords(),c=s.getMinorTicksCoords(),h=u.getExtent()[0],p=s.getExtent(),g=(n=l,i=e,r=h,{position:[n.cx,n.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}),f=new no.Z(e,g);w.each(lm,f.add,f),o.add(f.getGroup()),eo.groupTransition(a,o,e),w.each(lx,function(t){e.get([t,"show"])&&!s.scale.isBlank()&&lb[t](this.group,e,l,h,p,d,c)},this)}},t.type="radiusAxis",t}(s5.Z),lb={splitLine:function(e,t,n,i,r,a){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0,u=n.getAngleAxis(),d=Math.PI/180,c=u.getExtent(),h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],g=0;g<a.length;g++){var f=l++%s.length;p[f]=p[f]||[],p[f].push(new eo[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[g].coord,0),startAngle:-c[0]*d,endAngle:-c[1]*d,clockwise:u.inverse}}))}for(var g=0;g<p.length;g++)e.add(eo.mergePath(p[g],{style:w.defaults({stroke:s[g%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,a,o){if(o.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var d=0;d<o[u].length;d++)l.push(new ec.Z({shape:{cx:n.cx,cy:n.cy,r:o[u][d].coord}}));e.add(eo.mergePath(l,{style:w.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,a){if(a.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],d=a[0].coord,c=1;c<a.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new ep.C({shape:{cx:n.cx,cy:n.cy,r0:d,r:a[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=a[c].coord}for(var c=0;c<u.length;c++)e.add(eo.mergePath(u[c],{style:w.defaults({fill:s[c%s.length]},o.getAreaStyle()),silent:!0}))}}};function lw(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function lS(e,t){return t.dim+e.model.componentIndex}let lM=function(e,t,n){var i,r,a,o={},s=(i=w.filter(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}),r={},w.each(i,function(e,t){var n=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=lS(i,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/n.count(),u=r[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=u.stacks;r[o]=u;var c=lw(e);!d[c]&&u.autoWidthCount++,d[c]=d[c]||{width:0,maxWidth:0};var h=(0,er.GM)(e.get("barWidth"),l),p=(0,er.GM)(e.get("barMaxWidth"),l),g=e.get("barGap"),f=e.get("barCategoryGap");h&&!d[c].width&&(h=Math.min(u.remainedWidth,h),d[c].width=h,u.remainedWidth-=h),p&&(d[c].maxWidth=p),null!=g&&(u.gap=g),null!=f&&(u.categoryGap=f)}),a={},w.each(r,function(e,t){a[t]={};var n,i=e.stacks,r=e.bandWidth,o=(0,er.GM)(e.categoryGap,r),s=(0,er.GM)(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-o)/(u+(u-1)*s);d=Math.max(d,0),w.each(i,function(e,t){var n=e.maxWidth;n&&n<d&&(n=Math.min(n,l),e.width&&(n=Math.min(n,e.width)),l-=n,e.width=n,u--)}),d=Math.max(d=(l-o)/(u+(u-1)*s),0);var c=0;w.each(i,function(e,t){e.width||(e.width=d),n=e,c+=e.width*(1+s)}),n&&(c-=n.width*s);var h=-c/2;w.each(i,function(e,n){a[t][n]=a[t][n]||{offset:h,width:e.width},h+=e.width*(1+s)})}),a);t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=lS(n,i),a=lw(e),l=s[r][a],u=l.offset,d=l.width,c=n.getOtherAxis(i),h=e.coordinateSystem.cx,p=e.coordinateSystem.cy,g=e.get("barMinHeight")||0,f=e.get("barMinAngle")||0;o[a]=o[a]||[];for(var y=t.mapDimension(c.dim),v=t.mapDimension(i.dim),m=(0,C.M)(t,y),x="radius"!==i.dim||!e.get("roundCap",!0),_=c.dataToCoord(0),b=0,w=t.count();b<w;b++){var S=t.get(y,b),M=t.get(v,b),I=S>=0?"p":"n",T=_;m&&(o[a][M]||(o[a][M]={p:_,n:_}),T=o[a][M][I]);var A=void 0,D=void 0,L=void 0,P=void 0;if("radius"===c.dim){var N=c.dataToCoord(S)-_,Z=i.dataToCoord(M);Math.abs(N)<g&&(N=(N<0?-1:1)*g),A=T,D=T+N,P=(L=Z-u)-d,m&&(o[a][M][I]=D)}else{var k=c.dataToCoord(S,x)-_,R=i.dataToCoord(M);Math.abs(k)<f&&(k=(k<0?-1:1)*f),D=(A=R+u)+d,L=T,P=T+k,m&&(o[a][M][I]=P)}t.setItemLayout(b,{cx:h,cy:p,r0:A,r:D,startAngle:-L*Math.PI/180,endAngle:-P*Math.PI/180,clockwise:L>=P})}}})};var lI={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},lT={splitNumber:5},lA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.type="polar",t}(f.Z);function lD(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},a=i.position,o=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===o?u.vertical[a]:l[0],"horizontal"===o?u.horizontal[a]:l[3]],r.rotation=Math.PI/2*({horizontal:0,vertical:1})[o],r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,right:1,left:-1})[a],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),w.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),r.labelRotation="top"===a?-d:d,r.z2=1,r}var lL=n(35492),lC=["axisLine","axisTickLabel","axisName"],lP=["splitArea","splitLine"],lN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return(0,F.ZT)(t,e),t.prototype.render=function(t,n,i,r){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new el.Z;var s=lD(t),l=new no.Z(t,s);w.each(lC,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),w.each(lP,function(e){t.get([e,"show"])&&lZ[e](this,this.group,this._axisGroup,t)},this),eo.groupTransition(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){(0,lL.i)(this)},t.type="singleAxis",t}(s5.Z),lZ={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var a=i.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=i.coordinateSystem.getRect(),d=r.isHorizontal(),c=[],h=0,p=r.getTicksCoords({tickModel:a}),g=[],f=[],y=0;y<p.length;++y){var v=r.toGlobalCoord(p[y].coord);d?(g[0]=v,g[1]=u.y,f[0]=v,f[1]=u.y+u.height):(g[0]=u.x,g[1]=v,f[0]=u.x+u.width,f[1]=v);var m=new em.Z({shape:{x1:g[0],y1:g[1],x2:f[0],y2:f[1]},silent:!0});eo.subPixelOptimizeLine(m.shape,l);var x=h++%s.length;c[x]=c[x]||[],c[x].push(m)}for(var _=o.getLineStyle(["color"]),y=0;y<c.length;++y)t.add(eo.mergePath(c[y],{style:w.defaults({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(e,t,n,i){(0,lL.F)(e,n,i,i)}},lk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(g.Z);(0,w.mixin)(lk,A.W.prototype);var lR=function(e){function t(t,n,i,r,a){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o.position=a||"bottom",o}return(0,F.ZT)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(eC.Z),lE=["single"],lV=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=lE,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=new lR(this.dimension,T.aG(e),[0,0],e.get("type"),e.get("position")),r="category"===i.type;i.onBand=r&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();(0,w.each)(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),T.Jk(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=(0,L.ME)({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=+!!t.inverse;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[+("horizontal"!==t.orient)]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r=+("horizontal"!==t.orient);return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return lG(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return lG(t)===this?this.pointToData(n):null},e}();function lG(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}let lz={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(i,r){var a=new lV(i,e,t);a.name="single_"+r,a.resize(i,t),i.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",eE.C6).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:lE};var lO=["x","y"],lB=["width","height"],lF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,F.ZT)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var a=n.axis,o=a.coordinateSystem,s=lY(o,1-lH(a)),l=o.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var d=s4.fk(i),c=lW[u](a,l,s);c.style=d,e.graphicKey=c.type,e.pointer=c}var h=lD(n);s4.gf(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=lD(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=s4.Zh(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,a=r.coordinateSystem,o=lH(r),s=lY(a,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=lY(a,1-o),d=(u[1]+u[0])/2,c=[d,d];return c[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t}(s3.Z),lW={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:s4.BL([t,n[0]],[t,n[1]],lH(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:s4.uE([t-i/2,n[0]],[i,r],lH(e))}}};function lH(e){return+!e.isHorizontal()}function lY(e,t){var n=e.getRect();return[n[lO[t]],n[lO[t]]+n[lB[t]]]}var lX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.type="single",t}(f.Z),lU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(t,n,i){var r=(0,L.tE)(t);e.prototype.init.apply(this,arguments),lj(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),lj(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(g.Z);function lj(e,t){var n,i=e.cellSize;1===(n=w.isArray(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var r=w.map([0,1],function(e){return(0,L.QM)(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});(0,L.dt)(e,t,{type:"box",ignoreSize:r})}var lq=n(93404),lJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,i),this._renderLines(e,a,o,i),this._renderYearText(e,a,o,i),this._renderMonthText(e,s,o,i),this._renderWeekText(e,s,a,o,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),o=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new ev.Z({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,d=0;u.time<=t.end.time;d++){h(u.formatedDate),0===d&&(u=a.getDateInfo(t.start.y+"-"+t.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=a.getDateInfo(c)}function h(t){r._firstDayOfMonth.push(a.getDateInfo(t)),r._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}h(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r=+("horizontal"!==n);return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new ey.Z({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),a=[],o=0;o<7;o++){var s=i.getNextNDay(r.time,o),l=i.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return(0,w.isString)(e)&&e?(0,eI.wx)(e,t):(0,w.isFunction)(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===i?(o+=r,s=["center","top"]):"left"===i?a-=r:"right"===i?(a+=r,s=["center","top"]):o-=r;var l=0;return("left"===i||"right"===i)&&(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var a=r.get("margin"),o=r.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,d=+("horizontal"!==n),c={top:[l,s[d][1]],bottom:[l,s[1-d][1]],left:[s[1-d][0],u],right:[s[d][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var p=r.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:h},f=this._formatterLabel(p,g),y=new ed.ZP({z2:30,style:(0,N.Lr)(r,{text:f})});y.attr(this._yearTextPositionControl(y,c[o],n,o,a)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(a="center"),"start"===i&&(o="bottom")):(s+=r,t&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),o=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];(!a||(0,w.isString)(a))&&(a&&(t=(0,lq.G8)(a)||t),a=t.get(["time","monthAbbr"])||[]);var d=+("start"!==s),c=+("horizontal"!==n);o="start"===s?-o:o;for(var h="center"===l,p=0;p<u[d].length-1;p++){var g=u[d][p].slice(),f=this._firstDayOfMonth[p];if(h){var y=this._firstDayPoints[p];g[c]=(y[c]+u[0][p+1][c])/2}var v=r.get("formatter"),m=a[f.m-1],x={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:m},_=this._formatterLabel(v,x),b=new ed.ZP({z2:30,style:(0,w.extend)((0,N.Lr)(r,{text:_}),this._monthTextPositionControl(g,h,n,s,o))});i.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var a="center",o="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,a=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,i,r){var a=e.getModel("dayLabel");if(a.get("show")){var o=e.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),d=o.getFirstDayOfWeek();(!l||(0,w.isString)(l))&&(l&&(t=(0,lq.G8)(l)||t),l=t.get(["time","dayOfWeekShort"])||(0,w.map)(t.get(["time","dayOfWeekAbbr"]),function(e){return e[0]}));var c=o.getNextNDay(n.end.time,7-n.lweek).time,h=[o.getCellWidth(),o.getCellHeight()];u=(0,er.GM)(u,Math.min(h[1],h[0])),"start"===s&&(c=o.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=0;p<7;p++){var g=o.getNextNDay(c,p),f=o.dataToRect([g.time],!1).center,y=p;y=Math.abs((p+d)%7);var v=new ed.ZP({z2:30,style:(0,w.extend)((0,N.Lr)(a,{text:l[y]}),this._weekTextPositionControl(f,i,s,u,h))});r.add(v)}}},t.type="calendar",t}(f.Z),lK=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=er.sG(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),a=r<10?"0"+r:""+r,o=e.getDay();return{y:t+"",m:i,d:a,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+a,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];w.each([0,1],function(e){u(r,e)&&(a[i[e]]=r[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=L.ME(a,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}w.each([0,1],function(e){u(r,e)||(r[e]=l[i[e]]/o[e])}),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){w.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=l$(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=l$(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(w.isArray(t)&&1===t.length&&(t=t[0]),w.isArray(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);e=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),a=r.getDate(),o=n[1].date.getDate();r.setDate(a+i-1);var s=r.getDate();if(s!==o)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==o&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),d=t?-u+1:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:d,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=(e-1)*7-i.fweek+t,a=new Date(i.start.time);return a.setDate(+i.start.d+r),this.getDateInfo(a)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",function(r){var a=new e(r,t,n);i.push(a),r.coordinateSystem=a}),t.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])}),i},e.dimensions=["time","value"],e}();function l$(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function lQ(e,t){var n;return w.each(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var l0=["transition","enterFrom","leaveTo"],l1=l0.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function l2(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?l0:l1,r=0;r<i.length;r++){var a=i[r];null==e[a]&&null!=t[a]&&(e[a]=t[a])}}var l5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return(0,F.ZT)(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,a=[];this._flatten(i,a,null);var o=eE.ab(r,a,"normalMerge"),s=this._elOptionsToUpdate=[];w.each(o,function(e,t){var n=e.newOption;if(n){s.push(n);var i,a,o,l,u=e.existing;if(n.id=e.keyInfo.id,!n.type&&u&&(n.type=u.type),null==n.parentId){var d=n.parentOption;d?n.parentId=d.id:u&&(n.parentId=u.parentId)}n.parentOption=null,i=w.extend({},n),a=r[t],"merge"===(o=n.$action||"merge")?a?(w.merge(a,i,!0),(0,L.dt)(a,i,{ignoreSize:!0}),(0,L.QT)(n,a),l2(n,a),l2(n,a,"shape"),l2(n,a,"style"),l2(n,a,"extra"),n.clipPath=a.clipPath):r[t]=i:"replace"===o?r[t]=i:"remove"===o&&a&&(r[t]=null),l=r[t],l&&(l.hv=n.hv=[lQ(n,["left","right"]),lQ(n,["top","bottom"])],"group"===l.type&&(null==l.width&&(l.width=n.width=0),null==l.height&&(l.height=n.height=0)))}},this),n.elements=w.filter(r,function(e){return e&&delete e.$action,null!=e})},t.prototype._flatten=function(e,t,n){w.each(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(g.Z),l3=n(43810),l4=n(89655),l6=n(40717),l9={path:null,compoundPath:null,group:el.Z,image:eu.ZP,text:ed.ZP},l7=eE.Yf(),l8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(){this._elMap=w.createHashMap()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),a=e.get("zlevel");w.each(t,function(t){var o=eE.U5(t.id,null),s=null!=o?n.get(o):null,l=eE.U5(t.parentId,null),u=null!=l?n.get(l):i,d=t.type,c=t.style;"text"===d&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var h=t.textContent,p=t.textConfig;if(c&&(0,l3.Sv)(c,d,!!p,!!h)){var g=(0,l3.Tw)(c,d,!0);!p&&g.textConfig&&(p=t.textConfig=g.textConfig),!h&&g.textContent&&(h=g.textContent)}var f=(I=t,I=w.extend({},I),w.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(L.gN),function(e){delete I[e]}),I),y=t.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=!s,_=s;x?_=ut(o,u,t.type,n):(_&&(l7(_).isNew=!1),(0,l6.r)(_)),_&&((0,l4.Ob)(_,f,e,{isInit:x}),ui(_,t,r,a))}else if(m){un(s,t,n,e);var b=ut(o,u,t.type,n);b&&((0,l4.Ob)(b,f,e,{isInit:!0}),ui(b,t,r,a))}else"remove"===y&&((0,l4._9)(s,t),un(s,t,n,e));var S=n.get(o);if(S&&h)if(v){var M=S.getTextContent();M?M.attr(h):S.setTextContent(new ed.ZP(h))}else m&&S.setTextContent(new ed.ZP(h));if(S){var I,T,A,D,C,N=t.clipPath;if(N){var Z=N.type,k=void 0,x=!1;if(v){var R=S.getClipPath();k=(x=!R||l7(R).type!==Z)?ue(Z):R}else m&&(x=!0,k=ue(Z));S.setClipPath(k),(0,l4.Ob)(k,N,e,{isInit:x}),(0,l6.t)(k,N.keyframeAnimation,e)}var E=l7(S);S.setTextConfig(p),E.option=t,T=S,A=e,D=t,C=(0,P.A)(T).eventData,T.silent||T.ignore||C||(C=(0,P.A)(T).eventData={componentType:"graphic",componentIndex:A.componentIndex,name:T.name}),C&&(C.info=D.info),eo.setTooltipConfig({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),(0,l6.t)(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,a=t.getWidth(),o=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],d=eE.U5(u.id,null),c=null!=d?r.get(d):null;if(c&&c.isGroup){var h=c.parent,p=h===i,g=l7(c),f=l7(h);g.width=(0,er.GM)(g.option.width,p?a:f.width)||0,g.height=(0,er.GM)(g.option.height,p?o:f.height)||0}}for(var l=n.length-1;l>=0;l--){var u=n[l],d=eE.U5(u.id,null),c=null!=d?r.get(d):null;if(c){var h=c.parent,f=l7(h),y=h===i?{width:a,height:o}:{width:f.width,height:f.height},v={},m=L.p$(c,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!l7(c).isNew&&m){for(var x=u.transition,_={},b=0;b<s.length;b++){var S=s[b],M=v[S];x&&((0,l4.WK)(x)||w.indexOf(x,S)>=0)?_[S]=M:c[S]=M}(0,es.D)(c,_,e,0)}else c.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){un(n,l7(n).option,t,e._lastGraphicModel)}),this._elMap=w.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(f.Z);function ue(e){var t=new(w.hasOwn(l9,e)?l9[e]:eo.getShapeClass(e))({});return l7(t).type=e,t}function ut(e,t,n,i){var r=ue(n);return t.add(r),i.set(e,r),l7(r).id=e,l7(r).isNew=!0,r}function un(e,t,n,i){e&&e.parent&&("group"===e.type&&e.traverse(function(e){un(e,t,n,i)}),(0,l4.O3)(e,t,i),n.removeKey(l7(e).id))}function ui(e,t,n,i){e.isGroup||w.each([["cursor",n5.ZP.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];w.hasOwn(t,i)?e[i]=w.retrieve2(t[i],n[1]):null==e[i]&&(e[i]=n[1])}),w.each(w.keys(t),function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=w.isFunction(i)?i:null}}),w.hasOwn(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var ur=n(55328),ua=n(67745),uo=["rect","polygon","keep","clear"];function us(e,t){var n=(0,eE.kF)(e?e.brush:[]);if(n.length){var i,r,a=[];w.each(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(a=a.concat(t))});var o=e&&e.toolbox;w.isArray(o)&&(o=o[0]),o||(e.toolbox=[o={feature:{}}]);var s=o.feature||(o.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,a),i=u,r={},w.each(i,function(e){r[e]=1}),i.length=0,w.each(r,function(e,t){i.push(t)}),t&&!u.length&&u.push.apply(u,uo)}}var ul=n(86750),uu={lineX:ud(0),lineY:ud(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&X(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,a=e.y,o=e.width,s=e.height,l=i[0];if(X(i,r,a)||X(i,r+o,a)||X(i,r,a+s)||X(i,r+o,a+s)||W.Z.create(e).contain(l[0],l[1])||(0,eo.linePolygonIntersect)(r,a,r+o,a,i)||(0,eo.linePolygonIntersect)(r,a,r,a+s,i)||(0,eo.linePolygonIntersect)(r+o,a,r+o,a+s,i)||(0,eo.linePolygonIntersect)(r,a+s,r+o,a+s,i))return!0}}};function ud(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range;return uc(t[e],r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),uc(s[0],o)||uc(s[1],o)||uc(o[0],s)||uc(o[1],s)}}}}function uc(e,t){return t[0]<=e&&e<=t[1]}var uh=n(89262),up=["inBrush","outOfBrush"],ug="__ecBrushSelect",uf="__ecInBrushSelectEvent";function uy(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new uh.Z(t.option,e)).setInputRanges(t.areas,e)})}function uv(e,t,n){var i,r,a=[];e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),uy(e),e.eachComponent({mainType:"brush"},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:w.clone(t.areas),selected:[]};a.push(o);var s=t.option,l=s.brushLink,u=[],d=[],c=[],h=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=w.map(t.areas,function(e){var t,n,i=u_[e.brushType],r=w.defaults({boundingRect:i?i(e):void 0},e);return t=r.brushType,r.selectors=n={point:function(e){return uu[t].point(e,n,r)},rect:function(e){return uu[t].rect(e,n,r)}},r}),g=ul.qD(t.option,up,function(e){e.mappingMethod="fixed"});function f(e){return"all"===l||!!u[e]}function y(e){return!!e.length}w.isArray(l)&&w.each(l,function(e){u[e]=1}),e.eachSeries(function(n,i){var r,a,o,s=c[i]=[];"parallel"===n.subType?(r=n,a=i,o=r.coordinateSystem,h=h||o.hasAxisBrushed(),f(a)&&o.eachActiveState(r.getData(),function(e,t){"active"===e&&(d[t]=1)})):function(n,i,r){if(!(!n.brushSelector||(a=t,o=i,null!=(s=a.option.seriesIndex)&&"all"!==s&&(w.isArray(s)?0>w.indexOf(s,o):o!==s)))&&(w.each(p,function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),h=h||y(r)}),f(i)&&y(r))){var a,o,s,l=n.getData();l.each(function(e){ux(n,r,l,e)&&(d[e]=1)})}}(n,i,s)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var i=c[t],r=e.getData(),a=f(t)?function(e){return d[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return ux(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(f(t)?h:y(i))&&ul.$p(up,g,r,a)})}),function(e,t,n,i,r){if(r){var a=e.getZr();a[uf]||(a[ug]||(a[ug]=um),M.T9(a,ug,n,t)(e,i))}}(t,i,r,a,n)}function um(e,t){if(!e.isDisposed()){var n=e.getZr();n[uf]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[uf]=!1}}function ux(e,t,n,i){for(var r=0,a=t.length;r<a;r++){var o=t[r];if(e.brushSelector(i,n,o.selectors,o))return!0}}var u_={rect:function(e){return ub(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&ub(t)}};function ub(e){return new W.Z(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var uw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new a9.Z(t.getZr())).on("brush",w.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){uy(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){i&&i.$from===e.id||this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:w.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:w.clone(n),$from:t})},t.type="brush",t}(f.Z),uS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return(0,F.ZT)(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;t||ul.jO(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=w.map(e,function(e){return uM(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=uM(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(g.Z);function uM(e,t){return w.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new D.Z(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var uI=n(91574),uT=["rect","polygon","lineX","lineY","keep","clear"],uA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,F.ZT)(t,e),t.prototype.render=function(e,t,n){var i,r,a;t.eachComponent({mainType:"brush"},function(e){i=e.brushType,r=e.brushOption.brushMode||"single",a=a||!!e.areas.length}),this._brushType=i,this._brushMode=r,w.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?a:t===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return w.each(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){return{show:!0,type:uT.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(uI.f1),uD=n(23709),uL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],(0,w.each)(n,function(t,n){var i,a=(0,eE.U5)((0,eE.C4)(t),"");(0,w.isObject)(t)?(i=(0,w.clone)(t)).value=n:i=n,e.push(i),r.push(a)})):e=n,(this._data=new m.Z([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(g.Z),uC=n(28780),uP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.type="timeline.slider",t.defaultOption=(0,n1.ZL)(uL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(uL);(0,w.mixin)(uP,uC.X.prototype);var uN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.type="timeline",t}(f.Z),uZ=function(e){function t(t,n,i,r){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a}return(0,F.ZT)(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(eC.Z),uk=n(77750),uR=n(97391),uE=Math.PI,uV=(0,eE.Yf)(),uG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,F.ZT)(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return(0,nt.TX)("nameValue",{noName:!0,value:t})},(0,w.each)(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,r,o,e)},this),this._renderAxisLabel(i,a,o,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i,r,a,o,s,l=e.get(["label","position"]),u=e.get("orient"),d=(n=e,i=t,L.ME(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},n.get("padding"))),c={horizontal:"center",vertical:(r=null==l||"auto"===l?"horizontal"===u?d.y+d.height/2<t.getHeight()/2?"-":"+":d.x+d.width/2<t.getWidth()/2?"+":"-":(0,w.isString)(l)?({horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}})[u][l]:l)>=0||"+"===r?"left":"right"},h="vertical"===u?d.height:d.width,p=e.getModel("controlStyle"),g=p.get("show",!0),f=g?p.get("itemSize"):0,y=g?p.get("itemGap"):0,v=f+y,m=e.get(["label","rotate"])||0;m=m*uE/180;var x=p.get("position",!0),_=g&&p.get("showPlayBtn",!0),b=g&&p.get("showPrevBtn",!0),S=g&&p.get("showNextBtn",!0),M=0,I=h;"left"===x||"bottom"===x?(_&&(a=[0,0],M+=v),b&&(o=[M,0],M+=v)):(_&&(a=[I-f,0],I-=v),b&&(o=[0,0],M+=v)),S&&(s=[I-f,0],I-=v);var T=[M,I];return e.get("inverse")&&T.reverse(),{viewRect:d,mainLength:h,orient:u,rotation:({horizontal:0,vertical:uE/2})[u],labelRotation:m,labelPosOpt:r,labelAlign:e.get(["label","align"])||c[u],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||({horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"})[u],playPosition:a,prevBtnPosition:o,nextBtnPosition:s,axisExtent:T,controlSize:f,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var a=_.create(),o=r.x,s=r.y+r.height;_.translate(a,a,[-o,-s]),_.rotate(a,a,-uE/2),_.translate(a,a,[o,s]),(r=r.clone()).applyTransform(a)}var l=y(r),u=y(n.getBoundingRect()),d=y(i.getBoundingRect()),c=[n.x,n.y],h=[i.x,i.y];h[0]=c[0]=l[0][0];var p=e.labelPosOpt;if(null==p||(0,w.isString)(p)){var g=+("+"!==p);v(c,u,l,1,g),v(h,d,l,1,1-g)}else{var g=p>=0?0:1;v(c,u,l,1,g),h[1]=c[1]+p}function f(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(c),i.setPosition(h),n.rotation=i.rotation=e.rotation,f(n),f(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new uk.Z({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new uR.Z({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new nd.Z}}(t,i);r.getTicks=function(){return n.mapArray(["value"],function(e){return{value:e}})};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.calcNiceTicks();var o=new uZ("value",r,e.axisExtent,i);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new el.Z;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var a=new em.Z({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,w.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new em.Z({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,w.defaults)({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,a=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],(0,w.each)(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["progress","itemStyle"]),c=uz(s,l,t,{x:o,y:0,onclick:(0,w.bind)(r._changeTimeline,r,e.value)});c.ensureState("emphasis").style=u.getItemStyle(),c.ensureState("progress").style=d.getItemStyle(),(0,R.vF)(c);var h=(0,P.A)(c);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=i):h.dataIndex=h.dataModel=null,r._tickSymbols.push(c)})},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this;if(n.getLabelModel().get("show")){var a=i.getData(),o=n.getViewLabels();this._tickLabels=[],(0,w.each)(o,function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),h=new ed.ZP({x:c,y:0,rotation:e.labelRotation-e.rotation,onclick:(0,w.bind)(r._changeTimeline,r,o),silent:!1,style:(0,N.Lr)(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=(0,N.Lr)(u),h.ensureState("progress").style=(0,N.Lr)(d),t.add(h),(0,R.vF)(h),uV(h).dataIndex=o,r._tickLabels.push(h)})}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,a=e.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function d(e,n,l,u){if(e){var d,c,h,p,g,f,y=(0,eQ.GM)((0,w.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),v=(d=i,c=n+"Icon",h=[0,-y/2,y,y],g=(p={x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-a:0,rectHover:!0,style:o,onclick:l}).style,f=eo.createIcon(d.get(["controlStyle",c]),p||{},new W.Z(h[0],h[1],h[2],h[3])),g&&f.setStyle(g),f);v.ensureState("emphasis").style=s,t.add(v),(0,R.vF)(v)}}d(e.nextBtnPosition,"next",(0,w.bind)(this._changeTimeline,this,u?"-":"+")),d(e.prevBtnPosition,"prev",(0,w.bind)(this._changeTimeline,this,u?"+":"-")),d(e.playPosition,l?"stop":"play",(0,w.bind)(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this;this._currentPointer=uz(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(e){e.draggable=!0,e.drift=(0,w.bind)(s._handlePointerDrag,s),e.ondragend=(0,w.bind)(s._handlePointerDragend,s),uO(e,s._progressLine,a,n,i,!0)},onUpdate:function(e){uO(e,s._progressLine,a,n,i)}})},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=er.dt(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return eo.applyTransform(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,a){var o=Math.abs(r.dataToCoord(n)-e);o<i&&(i=o,t=a)}),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",uV(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(uN);function uz(e,t,n,i,r,a){var o=t.get("color");if(r)r.setColor(o),n.add(r),a&&a.onUpdate(r);else{var s=e.get("symbol");(r=(0,k.th)(s,-1,-1,2,2,o)).setStyle("strokeNoScale",!0),n.add(r),a&&a.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=(0,w.merge)({rectHover:!0,z2:100},i,!0);var u=(0,k.zp)(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var d=(0,k.Cq)(e.get("symbolOffset"),u);d&&(i.x=(i.x||0)+d[0],i.y=(i.y||0)+d[1]);var c=e.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function uO(e,t,n,i,r,a){if(!e.dragging){var o=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function uB(e){var t=e&&e.timeline;w.isArray(t)||(t=t?[t]:[]),w.each(t,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),uF(e),uW(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});uW(i,"position")||(i.position=e.controlPosition),"none"!==i.position||uW(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}w.each(e.data||[],function(e){w.isObject(e)&&!w.isArray(e)&&(!uW(e,"value")&&uW(e,"name")&&(e.value=e.name),uF(e))})}(e)})}function uF(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),a={normal:1,emphasis:1};w.each(i,function(e,t){a[t]||uW(r,t)||(r[t]=e)}),n.label&&!uW(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function uW(e,t){return e.hasOwnProperty(t)}var uH=n(17846),uY=n(219),uX=n(98857),uU=n(27806),uj=n(48906),uq=n(91739),uJ=n(7791),uK=n(943),u$=n(32767),uQ=n(55828),u0={label:{enabled:!0},decal:{show:!1}},u1=(0,eE.Yf)(),u2={};function u5(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=w.clone(u0);w.merge(i.label,e.getLocaleModel().get("aria"),!1),w.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=w.createHashMap();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),u1(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t)){if(w.isFunction(t.enableAriaDecal))return void t.enableAriaDecal();var n=t.getData();if(t.isColorBySeries()){var i=(0,ro.i)(t.ecModel,t.name,u2,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var a=t.getRawData(),o={},s=u1(t).scope;n.each(function(e){o[n.getRawIndex(e)]=e});var l=a.count();a.each(function(e){var i=o[e],r=a.getName(e)||e+"",d=(0,ro.i)(t.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,d))})}}function u(e,t){var n=e?w.extend(w.extend({},t),e):t;return n.dirty=!0,n}})}}(),function(){var i,a=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=w.defaults(o.option,a),o.get("enabled")){var s,l=t.getZr().dom;if(o.get("description"))return l.setAttribute("aria-label",o.get("description"));var u=e.getSeriesCount(),d=o.get(["data","maxCount"])||10,c=Math.min(u,o.get(["series","maxCount"])||10);if(u<1)return;var h=((s=e.get("title"))&&s.length&&(s=s[0]),s&&s.text);i=h?r(o.get(["general","withTitle"]),{title:h}):o.get(["general","withoutTitle"]);var p=[];i+=r(u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:u}),e.eachSeries(function(t,n){if(n<c){var i,a,s=void 0,l=t.get("name")?"withName":"withoutName";s=r(s=u>1?o.get(["series","multiple",l]):o.get(["series","single",l]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(i=t.subType,(a=e.getLocaleModel().get(["series","typeNames"]))[i]||a.chart)});var h=t.getData();h.count()>d?s+=r(o.get(["data","partialData"]),{displayCnt:d}):s+=o.get(["data","allData"]);for(var g=o.get(["data","separator","middle"]),f=o.get(["data","separator","end"]),y=[],v=0;v<h.count();v++)if(v<d){var m=h.getName(v),x=h.getValues(v),_=o.get(["data",m?"withName":"withoutName"]);y.push(r(_,{name:m,value:x.join(g)}))}s+=y.join(g)+f,p.push(s)}});var g=o.getModel(["series","multiple","separator"]),f=g.get("middle"),y=g.get("end");i+=p.join(f)+y,l.setAttribute("aria-label",i)}}()}function r(e,t){if(!w.isString(e))return e;var n=e;return w.each(t,function(e,t){n=n.replace(RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}}function u3(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},w.each(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var u4=n(54503),u6={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},u9=function(){function e(e){null==(this._condVal=(0,w.isString)(e)?new RegExp(e):(0,w.isRegExp)(e)?e:null)&&(0,oC._y)("")}return e.prototype.evaluate=function(e){var t=typeof e;return(0,w.isString)(t)?this._condVal.test(e):!!(0,w.isNumber)(t)&&this._condVal.test(e+"")},e}(),u7=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),u8=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),de=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),dt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),dn=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function di(e,t){if(!0===e||!1===e){var n,i,r,a,o=new u7;return o.value=e,o}if(da(e)||(0,oC._y)(""),e.and)return dr("and",e,t);if(e.or)return dr("or",e,t);if(e.not){return n=e,i=t,da(r=n.not)||(0,oC._y)(""),(a=new dt).child=di(r,i),a.child||(0,oC._y)(""),a}return function(e,t){for(var n=t.prepareGetValue(e),i=[],r=(0,w.keys)(e),a=e.parser,o=a?(0,u4.o2)(a):null,s=0;s<r.length;s++){var l=r[s];if(!("parser"===l||t.valueGetterAttrMap.get(l))){var u=(0,w.hasOwn)(u6,l)?u6[l]:l,d=e[l],c=o?o(d):d,h=(0,u4.tR)(u,c)||"reg"===u&&new u9(c);h||(0,oC._y)(""),i.push(h)}}i.length||(0,oC._y)("");var p=new dn;return p.valueGetterParam=n,p.valueParser=o,p.getValue=t.getValue,p.subCondList=i,p}(e,t)}function dr(e,t,n){var i=t[e];(0,w.isArray)(i)||(0,oC._y)(""),i.length||(0,oC._y)("");var r="and"===e?new u8:new de;return r.children=(0,w.map)(i,function(e){return di(e,n)}),r.children.length||(0,oC._y)(""),r}function da(e){return(0,w.isObject)(e)&&!(0,w.isArrayLike)(e)}var ds=function(){function e(e,t){this._cond=di(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}(),dl={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=new ds(e.config,{valueGetterAttrMap:(0,w.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;(0,w.hasOwn)(e,"dimension")||(0,oC._y)("");var i=n.getDimensionInfo(t);return i||(0,oC._y)(""),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],a=0,o=n.count();a<o;a++)t=n.getRawDataItem(a),i.evaluate()&&r.push(t);return{data:r}}},du={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i=(0,eE.kF)(n);i.length||(0,oC._y)("");var r=[];(0,w.each)(i,function(e){var n=e.dimension,i=e.order,a=e.parser,o=e.incomparable;null==n&&(0,oC._y)(""),"asc"!==i&&"desc"!==i&&(0,oC._y)(""),o&&"min"!==o&&"max"!==o&&(0,oC._y)(""),"asc"!==i&&"desc"!==i&&(0,oC._y)("");var s=t.getDimensionInfo(n);s||(0,oC._y)("");var l=a?(0,u4.o2)(a):null;a&&!l&&(0,oC._y)(""),r.push({dimIdx:s.index,parser:l,comparator:new u4.ID(i,o)})});var a=t.sourceFormat;a!==oP.XD&&a!==oP.qb&&(0,oC._y)("");for(var o=[],s=0,l=t.count();s<l;s++)o.push(t.getRawDataItem(s));return o.sort(function(e,n){for(var i=0;i<r.length;i++){var a=r[i],o=t.retrieveValueFromItem(e,a.dimIdx),s=t.retrieveValueFromItem(n,a.dimIdx);a.parser&&(o=a.parser(o),s=a.parser(s));var l=a.comparator.evaluate(o,s);if(0!==l)return l}return 0}),{data:o}}},dd=n(99635),dc=tc.Z.CMD;function dh(e,t){return 1e-5>Math.abs(e-t)}function dp(e){var t,n,i,r,a,o=e.data,s=e.len(),l=[],u=0,d=0,c=0,h=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function g(e,n,i,r){dh(e,i)&&dh(n,r)||t.push(e,n,i,r,i,r)}for(var f=0;f<s;){var y=o[f++],v=1===f;switch(v&&(u=o[f],d=o[f+1],c=u,h=d,(y===dc.L||y===dc.C||y===dc.Q)&&(t=[c,h])),y){case dc.M:u=c=o[f++],d=h=o[f++],p(c,h);break;case dc.L:g(u,d,n=o[f++],i=o[f++]),u=n,d=i;break;case dc.C:t.push(o[f++],o[f++],o[f++],o[f++],u=o[f++],d=o[f++]);break;case dc.Q:n=o[f++],i=o[f++],r=o[f++],a=o[f++],t.push(u+2/3*(n-u),d+2/3*(i-d),r+2/3*(n-r),a+2/3*(i-a),r,a),u=r,d=a;break;case dc.A:var m=o[f++],x=o[f++],_=o[f++],b=o[f++],w=o[f++],S=o[f++]+w;f+=1;var M=!o[f++];n=Math.cos(w)*_+m,i=Math.sin(w)*b+x,v?p(c=n,h=i):g(u,d,n,i),u=Math.cos(S)*_+m,d=Math.sin(S)*b+x;for(var I=(M?-1:1)*Math.PI/2,T=w;M?T>S:T<S;T+=I){var A=M?Math.max(T+I,S):Math.min(T+I,S);!function(e,n,i,r,a,o){var s=4*Math.tan(Math.abs(n-e)/4)/3,l=n<e?-1:1,u=Math.cos(e),d=Math.sin(e),c=Math.cos(n),h=Math.sin(n),p=c*a+i,g=h*o+r,f=a*s*l,y=o*s*l;t.push(u*a+i-f*d,d*o+r+y*u,p+f*h,g-y*c,p,g)}(T,A,m,x,_,b)}break;case dc.R:c=u=o[f++],h=d=o[f++],n=c+o[f++],i=h+o[f++],p(n,h),g(n,h,n,i),g(n,i,c,i),g(c,i,c,h),g(c,h,n,h);break;case dc.Z:t&&g(u,d,c,h),u=c,d=h}}return t&&t.length>2&&l.push(t),l}function dg(e,t,n){var i=Math.ceil(Math.sqrt(Math.abs(e[t]/e[1-t])*n)),r=Math.floor(n/i);0===r&&(r=1,i=n);for(var a=[],o=0;o<i;o++)a.push(r);var s=n-i*r;if(s>0)for(var o=0;o<s;o++)a[o%i]+=1;return a}function df(e,t,n){for(var i=e.r0,r=e.r,a=e.startAngle,o=Math.abs(e.endAngle-a),s=o*r,l=r-i,u=s>Math.abs(l),d=dg([s,l],+!u,t),c=(u?o:l)/d.length,h=0;h<d.length;h++)for(var p=(u?l:o)/d[h],g=0;g<d[h];g++){var f={};u?(f.startAngle=a+c*h,f.endAngle=a+c*(h+1),f.r0=i+p*g,f.r=i+p*(g+1)):(f.startAngle=a+p*g,f.endAngle=a+p*(g+1),f.r0=i+c*h,f.r=i+c*(h+1)),f.clockwise=e.clockwise,f.cx=e.cx,f.cy=e.cy,n.push(f)}}function dy(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function dv(e){var t=e.points,n=[],i=[];(0,iO.zk)(t,n,i);var r=new W.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]),a=r.width,o=r.height,s=r.x,l=r.y,u=new aA.Z,d=new aA.Z;return a>o?(u.x=d.x=s+a/2,u.y=l,d.y=l+o):(u.y=d.y=l+o/2,u.x=s,d.x=s+a),function(e,t,n){for(var i=e.length,r=[],a=0;a<i;a++){var o=e[a],s=e[(a+1)%i],l=function(e,t,n,i,r,a,o,s){var l=n-e,u=i-t,d=o-r,c=s-a,h=d*u-l*c;if(1e-6>Math.abs(h))return null;var p=((e-r)*c-d*(t-a))/h;return p<0||p>1?null:new aA.Z(p*l+e,p*u+t)}(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:function(e,t,n){var i=new aA.Z;aA.Z.sub(i,n,t),i.normalize();var r=new aA.Z;return aA.Z.sub(r,e,t),r.dot(i)}(l,t,n),pt:l,idx:a})}if(r.length<2)return[{points:e},{points:e}];r.sort(function(e,t){return e.projPt-t.projPt});var u=r[0],d=r[r.length-1];if(d.idx<u.idx){var c=u;u=d,d=c}for(var h=[u.pt.x,u.pt.y],p=[d.pt.x,d.pt.y],g=[h],f=[p],a=u.idx+1;a<=d.idx;a++)dy(g,e[a].slice());dy(g,p),dy(g,h);for(var a=d.idx+1;a<=u.idx+i;a++)dy(f,e[a%i].slice());return dy(f,h),dy(f,p),[{points:g},{points:f}]}(t,u,d)}function dm(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),a=e(t);dm(e,a[0],r,i),dm(e,a[1],n-r,i)}return i}function dx(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],a=[],o=0;o<t.length;)a[o++]=i,a[o++]=r;return a}function d_(e){for(var t=0,n=0,i=0,r=e.length,a=0,o=r-2;a<r;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],d=e[a+1],c=s*d-u*l;t+=c,n+=(s+u)*c,i+=(l+d)*c}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function db(e){return e.__isCombineMorphing}var dw="__mOriginal_";function dS(e,t,n){var i=dw+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=a?a.apply(this,t):r.apply(this,t),o&&o.apply(this,t),e}}function dM(e,t){var n=dw+t;e[n]&&(e[t]=e[n],e[n]=null)}function dI(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var a=i[r],o=i[r+1];i[r++]=t[0]*a+t[2]*o+t[4],i[r++]=t[1]*a+t[3]*o+t[5]}}function dT(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=function(e,t){for(var n,i,r,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],d=void 0,c=void 0;l?u?(d=(n=function(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],a=[],o=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,u=Math.ceil(l/((s-2)/6))+1,d=[o[0],o[1]],c=l,h=2;h<s;){var p=o[h-2],g=o[h-1],f=o[h++],y=o[h++],v=o[h++],m=o[h++],x=o[h++],_=o[h++];if(c<=0){d.push(f,y,v,m,x,_);continue}for(var b=Math.min(c,u-1)+1,w=1;w<=b;w++){var S=w/b;(0,aa.Vz)(p,f,v,x,S,r),(0,aa.Vz)(g,y,m,_,S,a),p=r[3],g=a[3],d.push(r[1],a[1],r[2],a[2],p,g),f=r[5],y=a[5],v=r[6],m=a[6]}c-=b-1}return o===e?[d,t]:[e,d]}(l,u))[0],c=n[1],i=d,r=c):(c=dx(r||l,l),d=l):(d=dx(i||u,u),c=u),a.push(d),o.push(c)}return[a,o]}(dp(n),dp(i)),a=r[0],o=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&dI(a,s),l&&dI(o,l),dS(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var u=function(e,t,n,i){for(var r,a=[],o=0;o<e.length;o++){var s=e[o],l=t[o],u=d_(s),d=d_(l);null==r&&(r=u[2]<0!=d[2]<0);var c=[],h=[],p=0,g=1/0,f=[],y=s.length;r&&(s=function(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}(s));for(var v=6*function(e,t,n,i){for(var r=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<r;u++){for(var d=6*u,c=0,h=0;h<s;h+=2){var p=0===h?d:(d+h-2)%l+2,g=e[p]-n[0],f=e[p+1]-n[1],y=t[h]-i[0],v=t[h+1]-i[1],m=y-g,x=v-f;c+=m*m+x*x}c<a&&(a=c,o=u)}return o}(s,l,u,d),m=y-2,x=0;x<m;x+=2){var _=(v+x)%m+2;c[x+2]=s[_]-u[0],c[x+3]=s[_+1]-u[1]}c[0]=s[v]-u[0],c[1]=s[v+1]-u[1];for(var b=i/10,w=-i/2;w<=i/2;w+=b){for(var S=Math.sin(w),M=Math.cos(w),I=0,x=0;x<s.length;x+=2){var T=c[x],A=c[x+1],D=l[x]-d[0],L=l[x+1]-d[1],C=D*M-L*S,P=D*S+L*M;f[x]=C,f[x+1]=P;var N=C-T,Z=P-A;I+=N*N+Z*Z}if(I<g){g=I,p=w;for(var k=0;k<f.length;k++)h[k]=f[k]}}a.push({from:c,to:h,fromCp:u,toCp:d,rotation:-p})}return a}(a,o,10,Math.PI),d=[];dS(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],a=0;a<u.length;a++){var o=u[a],s=o.from,l=o.to,c=o.rotation*n,h=o.fromCp,p=o.toCp,g=Math.sin(c),f=Math.cos(c);(0,b.lerp)(r,h,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],x=l[y],_=l[y+1],w=v*i+x*n,S=m*i+_*n;d[y]=w*f-S*g+r[0],d[y+1]=w*g+S*f+r[1]}var M=d[0],I=d[1];e.moveTo(M,I);for(var y=2;y<s.length;){var x=d[y++],_=d[y++],T=d[y++],A=d[y++],D=d[y++],L=d[y++];M===x&&I===_&&T===D&&A===L?e.lineTo(D,L):e.bezierCurveTo(x,_,T,A,D,L),M=D,I=L}}}})}function dA(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;return dT(e,t),t.__morphT=0,t.animateTo({__morphT:1},(0,w.defaults)({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){dM(t,"buildPath"),dM(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function dD(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,a=(0,w.map)(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]});return(0,w.map)(a,function(a,o){return{cp:a,z:function(e,t,n,i,r,a){e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=a===i?0:Math.round(32767*(t-i)/(a-i));for(var o,s=0,l=32768;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),0===d&&(1===u&&(e=l-1-e,t=l-1-t),o=e,e=t,t=o)}return s}(a[0],a[1],t,n,i,r),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function dL(e){return function(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var i=e.width,r=e.height,a=i>r,o=dg([i,r],+!a,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",d=a?"y":"x",c=e[s]/o.length,h=0;h<o.length;h++)for(var p=e[l]/o[h],g=0;g<o[h];g++){var f={};f[u]=h*c,f[d]=g*p,f[s]=c,f[l]=p,f.x+=e.x,f.y+=e.y,n.push(f)}}(r,t,i),n=ev.Z;break;case"sector":df(r,t,i),n=ep.C;break;case"circle":df({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=ep.C;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=(0,w.map)(function(e,t){var n=dp(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var a=n[r],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var d=a[u++],c=a[u++],h=a[u++],p=a[u++],g=a[u++],f=a[u++];!function e(t,n,i,r,a,o,s,l,u,d){if(dh(t,i)&&dh(n,r)&&dh(a,s)&&dh(o,l))return void u.push(s,l);var c=2/d,h=c*c,p=s-t,g=l-n,f=Math.sqrt(p*p+g*g);p/=f,g/=f;var y=i-t,v=r-n,m=a-s,x=o-l,_=y*y+v*v,b=m*m+x*x;if(_<h&&b<h)return void u.push(s,l);var w=p*y+g*v,S=-p*m-g*x;if(_-w*w<h&&w>=0&&b-S*S<h&&S>=0)return void u.push(s,l);var M=[],I=[];(0,aa.Vz)(t,i,a,s,.5,M),(0,aa.Vz)(n,r,o,l,.5,I),e(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],u,d),e(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],u,d)}(s,l,d,c,h,p,g,f,o,t),s=g,l=f}i.push(o)}return i}(e.getUpdatedPathProxy(),o),function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}),l=s.length;if(0===l)dm(dv,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var d=0,c=(0,w.map)(s,function(e){var t=[],n=[];(0,iO.zk)(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return d+=i,{poly:e,area:i}});c.sort(function(e,t){return t.area-e.area});for(var h=t,u=0;u<l;u++){var p=c[u];if(h<=0)break;var g=u===l-1?h:Math.ceil(p.area/d*t);g<0||(dm(dv,{points:p.poly},g,i),h-=g)}}n=ef.Z}if(!n){for(var f=[],y=0;y<t;y++)f.push((0,nm.U5)(e));return f}for(var v=[],u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),m.setStyle(e.style),m.z=e.z,m.z2=e.z2,m.zlevel=e.zlevel,v.push(m)}return v}(e.path,e.count)}function dC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dP(e){return(0,w.isArray)(e[0])}function dN(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(var r=0;r<t.length;r++){var a=t[r].length,o=void 0;for(o=0;o<a;o++)n[o%i].many.push(t[r][o])}for(var s=0,r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1)if(!s)return n;else s=0;var a=l.length,u=Math.ceil(a/2);n[r].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var dZ={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=(0,nm.U5)(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function dk(e,t,n,i,r,a){if(e.length&&t.length){var o,s,l=(0,es.ke)("update",i,r);if(l&&l.duration>0){var u=i.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},l);dP(e)&&(o=e,s=t),dP(t)&&(o=t,s=e);for(var c=o?o===e:e.length>t.length,h=o?dN(s,o):dN(c?t:e,[c?e:t]),p=0,g=0;g<h.length;g++)p+=h[g].many.length;for(var f=0,g=0;g<h.length;g++)(function e(t,i,r,o,s){var l=t.many,c=t.one;if(1!==l.length||s)for(var h=(0,w.defaults)({dividePath:dZ[n],individualDelay:u&&function(e,t,n,i){return u(e+r,o)}},d),p=i?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var r=t[n];db(r)?e(r.childrenRef()):r instanceof e$.ZP&&i.push(r)}}(e);var r=i.length;if(!r)return dC();var a=(n.dividePath||dL)({path:t,count:r});if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),dC();i=dD(i),a=dD(a);for(var o=n.done,s=n.during,l=n.individualDelay,u=new eV.ZP,d=0;d<r;d++){var c=i[d],h=a[d];h.parent=t,h.copyTransform(u),l||dT(c,h)}function p(e){for(var t=0;t<a.length;t++)a[t].addSelfToZr(e)}function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,dM(t,"addSelfToZr"),dM(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return a},dS(t,"addSelfToZr",{after:function(e){p(e)}}),dS(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<a.length;t++)a[t].removeSelfFromZr(e)}});var f=a.length;if(l)for(var y=f,v=function(){0==--y&&(g(),o&&o())},d=0;d<f;d++){var m=l?(0,w.defaults)({delay:(n.delay||0)+l(d,f,i[d],a[d]),done:v},n):n;dA(i[d],a[d],m)}else t.__morphT=0,t.animateTo({__morphT:1},(0,w.defaults)({during:function(e){for(var n=0;n<f;n++){var i=a[n];i.__morphT=t.__morphT,i.dirtyShape()}s&&s(e)},done:function(){g();for(var t=0;t<e.length;t++)dM(e[t],"updateTransform");o&&o()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:i,toIndividuals:a,count:f}}(l,c,h):function(e,t,n){var i=t.length,r=[],a=n.dividePath||dL;if(db(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];db(i)?e(i.childrenRef()):i instanceof e$.ZP&&r.push(i)}}(e.childrenRef());var o=r.length;if(o<i)for(var s=0,l=o;l<i;l++)r.push((0,nm.U5)(r[s++%o]));r.length=i}else{r=a({path:e,count:i});for(var u=e.getComputedTransform(),l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),dC()}r=dD(r),t=dD(t);for(var d=n.individualDelay,l=0;l<i;l++){var c=d?(0,w.defaults)({delay:(n.delay||0)+d(l,i,r[l],t[l])},n):n;dA(r[l],t[l],c)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}(c,l,h),g=p.fromIndividuals,f=p.toIndividuals,y=g.length,v=0;v<y;v++){var m=u?(0,w.defaults)({delay:u(v,y)},d):d;a(g[v],f[v],i?l[v]:t.one,i?t.one:l[v],m)}else{var x=i?l[0]:c,_=i?c:l[0];if(db(x))e({many:[x],one:_},!0,r,o,!0);else{var m=u?(0,w.defaults)({delay:u(r,o)},d):d;dA(x,_,m),a(x,_,x,_,m)}}})(h[g],c,f,p),f+=h[g].many.length}}}function dR(e){if(!e)return[];if((0,w.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(dR(e[n]));return t}var i=[];return e.traverse(function(e){e instanceof e$.ZP&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)}),i}var dE=(0,eE.Yf)();function dV(e,t,n,i){var r=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(r){var a=e,o=t,s=r,l=a.getDimensionInfo(s),u=l&&l.ordinalMeta;if(l){var d=a.get(l.name,o);return u&&u.categories[d]||d+""}return}var c=e.getRawDataItem(t),h=i?"childGroupId":"groupId";return c&&c[h]?c[h]+"":i?void 0:n||e.getId(t)}function dG(e){var t=[];return(0,w.each)(e,function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),a=0;a<r.length;a++)t.push({data:n,groupId:dV(n,a,i,!1),childGroupId:dV(n,a,i,!0),divide:e.divide,dataIndex:a})}),t}function dz(e,t,n){e.traverse(function(e){e instanceof e$.ZP&&(0,es.KZ)(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function dO(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function dB(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function dF(e,t,n){var i=dG(e),r=dG(t);function a(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?(0,w.extend)((0,w.extend)({},n.style),e.style):e.style},r)}var o=!1,s=0,l=(0,w.createHashMap)(),u=(0,w.createHashMap)();i.forEach(function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)});for(var d=0;d<r.length;d++){var c=r[d].groupId;if(u.get(c)){s=1;break}var h=r[d].childGroupId;if(h&&l.get(h)){s=2;break}}function p(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var g=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],a=t[i];if(r.data.getId(r.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}(i,r),f={};if(!g)for(var d=0;d<r.length;d++){var y=r[d],v=y.data.getItemGraphicEl(y.dataIndex);v&&(f[v.id]=!0)}function m(e,t){var n,s,l=i[t],u=r[e],d=u.data.hostModel,c=l.data.getItemGraphicEl(l.dataIndex),h=u.data.getItemGraphicEl(u.dataIndex);if(c===h){h&&(n=u.dataIndex,(s=(0,es.ke)("update",d,n))&&h.traverse(function(e){if(e instanceof n5.ZP){var t=(0,es._W)(e);t&&e.animateFrom({style:t},s)}}));return}c&&f[c.id]||h&&(dB(h),c?(dB(c),dO(c),o=!0,dk(dR(c),dR(h),u.divide,d,e,a)):dz(h,d,e))}new ru.Z(i,r,p(!0,g),p(!1,g),null,"multiple").update(m).updateManyToOne(function(e,t){var n=r[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),d=(0,w.filter)((0,w.map)(t,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==u&&!f[e.id]});u&&(dB(u),d.length?((0,w.each)(d,function(e){dB(e),dO(e)}),o=!0,dk(dR(d),dR(u),n.divide,l,e,a)):dz(u,l,n.dataIndex))}).updateOneToMany(function(e,t){var n=i[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!f[s.id]){var l=(0,w.filter)((0,w.map)(e,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==s}),u=r[e[0]].data.hostModel;l.length&&((0,w.each)(l,function(e){return dB(e)}),s?(dB(s),dO(s),o=!0,dk(dR(s),dR(l),n.divide,u,e[0],a)):(0,w.each)(l,function(t){return dz(t,u,e[0])}))}}).updateManyToMany(function(e,t){new ru.Z(t,e,function(e){return i[e].data.getId(i[e].dataIndex)},function(e){return r[e].data.getId(r[e].dataIndex)}).update(function(n,i){m(e[n],t[i])}).execute()}).execute(),o&&(0,w.each)(t,function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),r=(0,es.ke)("update",t,0);i&&t.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse(function(e){e instanceof e$.ZP&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)})})}function dW(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function dH(e){return(0,w.isArray)(e)?e.sort().join(","):e}function dY(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function dX(e,t){for(var n=0;n<e.length;n++)if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}(0,h.D)([eJ.N]),(0,h.D)([function(e){e.registerPainter("svg",t$)}]),(0,h.D)([t0.N,t1.N,t2.N,t5.N,function(e){(0,h.D)(np),e.registerChartView(t7),e.registerSeriesModel(nn),e.registerLayout(t3),e.registerProcessor((0,t6.Z)("radar")),e.registerPreprocessor(t9)},function(e){(0,h.D)(iP),e.registerChartView(iu),e.registerSeriesModel(ic),e.registerLayout(ip),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ih),(0,ig.y)("map",e.registerAction)},function(e){e.registerChartView(iW),e.registerSeriesModel(rt),e.registerLayout(ri),e.registerVisual(rr),e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=e.dataIndex,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var i=iA(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},function(e){e.registerSeriesModel(rl),e.registerChartView(rS),e.registerVisual(rA),e.registerLayout(rz);for(var t=0;t<ra.length;t++)e.registerAction({type:ra[t],update:"updateView"},w.noop);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var i=i9(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var r=t.getViewRoot();r&&(e.direction=i8(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}})})},function(e){e.registerChartView(af),e.registerSeriesModel(aM),e.registerProcessor(rF),e.registerVisual(rW),e.registerVisual(rY),e.registerLayout(r1),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,r8),e.registerLayout(at),e.registerCoordinateSystem("graphView",{dimensions:iv.dimensions,create:an}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},w.noop),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},w.noop),e.registerAction(aI,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(t){var i=iA(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},aT.N,function(e){e.registerChartView(aC),e.registerSeriesModel(aP),e.registerLayout(aN),e.registerProcessor((0,t6.Z)("funnel"))},function(e){(0,h.D)(oi),e.registerChartView(aZ),e.registerSeriesModel(aG),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,aB)},function(e){e.registerChartView(oo),e.registerSeriesModel(ol),e.registerLayout(ou),e.registerVisual(ox),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(e){e.registerSeriesModel(ow),e.registerChartView(oS),e.registerLayout(oL),e.registerTransform(oN)},function(e){e.registerChartView(oR),e.registerSeriesModel(oY),e.registerPreprocessor(oX),e.registerVisual(oQ),e.registerLayout(o1)},function(e){e.registerChartView(o6),e.registerSeriesModel(o9),e.registerLayout((0,o4.Z)("effectScatter"))},function(e){e.registerChartView(sl),e.registerSeriesModel(sh),e.registerLayout(ss),e.registerVisual(sg)},sf.N,function(e){e.registerChartView(s_),e.registerSeriesModel(sz),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,(0,w.curry)(sO.bK,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,sO.Bk)("pictorialBar"))},function(e){e.registerChartView(sF),e.registerSeriesModel(sW),e.registerLayout(sH),e.registerProcessor((0,t6.Z)("themeRiver"))},function(e){e.registerChartView(sJ),e.registerSeriesModel(sK),e.registerLayout((0,w.curry)(sQ,"sunburst")),e.registerProcessor((0,w.curry)(t6.Z,"sunburst")),e.registerVisual(s0),e.registerAction({type:sj,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var i=i9(e,[sj],t);if(i){var r=t.getViewRoot();r&&(e.direction=i8(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}})}),e.registerAction({type:sq,update:"none"},function(e,t,n){e=(0,w.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=i9(e,[sq],t);n&&(e.dataIndex=n.node.dataIndex)}),n.dispatchAction((0,w.extend)(e,{type:"highlight"}))}),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t,n){e=(0,w.extend)({},e),n.dispatchAction((0,w.extend)(e,{type:"downplay"}))})},s1.N]),(0,h.D)(s2.N),(0,h.D)(function(e){(0,h.D)(s7.N),s5.Z.registerAxisPointerClass("PolarAxisPointer",s6),e.registerCoordinateSystem("polar",lc),e.registerComponentModel(s8),e.registerComponentView(lA),(0,a4.Z)(e,"angle",lt,lI),(0,a4.Z)(e,"radius",ln,lT),e.registerComponentView(ly),e.registerComponentView(l_),e.registerLayout((0,w.curry)(lM,"bar"))}),(0,h.D)(iP),(0,h.D)(function(e){(0,h.D)(s7.N),s5.Z.registerAxisPointerClass("SingleAxisPointer",lF),e.registerComponentView(lX),e.registerComponentView(lN),e.registerComponentModel(lk),(0,a4.Z)(e,"single",lk,lk.defaultOption),e.registerCoordinateSystem("single",lz)}),(0,h.D)(oi),(0,h.D)(function(e){e.registerComponentModel(lU),e.registerComponentView(lJ),e.registerCoordinateSystem("calendar",lK)}),(0,h.D)(function(e){e.registerComponentModel(l5),e.registerComponentView(l8),e.registerPreprocessor(function(e){var t=e.graphic;(0,w.isArray)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}),(0,h.D)(ur.N),(0,h.D)(ua.N),(0,h.D)(s7.N),(0,h.D)(function(e){e.registerComponentView(uw),e.registerComponentModel(uS),e.registerPreprocessor(us),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,uv),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},w.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},w.noop),(0,uI.ls)("brush",uA)}),(0,h.D)(uD.N),(0,h.D)(function(e){e.registerComponentModel(uP),e.registerComponentView(uG),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,w.defaults)({currentIndex:i.option.currentIndex},e)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}),e.registerPreprocessor(uB)}),(0,h.D)(uH.N),(0,h.D)(uY.N),(0,h.D)(uX.N),(0,h.D)(uU.N),(0,h.D)(uj.N),(0,h.D)(uq.N),(0,h.D)(uJ.N),(0,h.D)(uK.N),(0,h.D)(u$.N),(0,h.D)(uQ.N),(0,h.D)(function(e){e.registerPreprocessor(u3),e.registerVisual(e.PRIORITY.VISUAL.ARIA,u5)}),(0,h.D)(function(e){e.registerTransform(dl),e.registerTransform(du)}),(0,h.D)(dd.N),(0,h.D)(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){(0,w.each)((0,eE.kF)(n.seriesTransition),function(e){(0,w.each)((0,eE.kF)(e.to),function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][y.V]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(e,t,n){var i=dE(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)(0,w.each)((0,eE.kF)(r),function(e){var r,a;r=[],a=[],(0,w.each)((0,eE.kF)(e.from),function(e){var t=dX(i.oldSeries,e);t>=0&&r.push({dataGroupId:i.oldDataGroupIds[t],data:i.oldData[t],divide:dY(i.oldData[t]),groupIdDim:e.dimension})}),(0,w.each)((0,eE.kF)(e.to),function(e){var t=dX(n.updatedSeries,e);if(t>=0){var r=n.updatedSeries[t].getData();a.push({dataGroupId:i.oldDataGroupIds[t],data:r,divide:dY(r),groupIdDim:e.dimension})}}),r.length>0&&a.length>0&&dF(r,a,t)});else{var a,o,s,l=(a=(0,w.createHashMap)(),o=(0,w.createHashMap)(),s=(0,w.createHashMap)(),(0,w.each)(i.oldSeries,function(e,t){var n=i.oldDataGroupIds[t],r=i.oldData[t],a=dW(e),l=dH(a);o.set(l,{dataGroupId:n,data:r}),(0,w.isArray)(a)&&(0,w.each)(a,function(e){s.set(e,{key:l,dataGroupId:n,data:r})})}),(0,w.each)(n.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),n=e.getData(),i=dW(e),r=dH(i),l=o.get(r);if(l)a.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:dY(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:dY(n),data:n}]});else if((0,w.isArray)(i)){var u=[];(0,w.each)(i,function(e){var t=o.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:dY(t.data),data:t.data})}),u.length&&a.set(r,{oldSeries:u,newSeries:[{dataGroupId:t,data:n,divide:dY(n)}]})}else{var d=s.get(i);if(d){var c=a.get(d.key);c||(c={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:dY(d.data)}],newSeries:[]},a.set(d.key,c)),c.newSeries.push({dataGroupId:t,data:n,divide:dY(n)})}}}}),a);(0,w.each)(l.keys(),function(e){var n=l.get(e);dF(n.oldSeries,n.newSeries,t)})}(0,w.each)(n.updatedSeries,function(e){e[y.V]&&(e[y.V]=!1)})}for(var u=e.getSeries(),d=i.oldSeries=[],c=i.oldDataGroupIds=[],h=i.oldData=[],p=0;p<u.length;p++){var g=u[p].getData();1e4>g.count()&&(d.push(u[p]),c.push(u[p].get("dataGroupId")),h.push(g))}})}),(0,h.D)(eq)}}]);