@agions/taroviz 1.11.1 → 2.0.3

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 (164) hide show
  1. package/CHANGELOG.md +245 -0
  2. package/README.md +104 -302
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/vendors.js +1 -0
  5. package/dist/cjs/vendors~echarts.js +1 -0
  6. package/dist/esm/index.js +1 -58151
  7. package/dist/esm/vendors.js +1 -0
  8. package/dist/esm/vendors~echarts.js +1 -0
  9. package/package.json +19 -25
  10. package/src/adapters/MiniAppAdapter.ts +136 -0
  11. package/src/adapters/__tests__/index.test.ts +1 -1
  12. package/src/adapters/h5/__tests__/index.test.ts +4 -2
  13. package/src/adapters/h5/index.ts +63 -64
  14. package/src/adapters/harmony/index.ts +23 -245
  15. package/src/adapters/index.ts +49 -45
  16. package/src/adapters/swan/index.ts +6 -69
  17. package/src/adapters/tt/index.ts +7 -70
  18. package/src/adapters/types.ts +25 -58
  19. package/src/adapters/weapp/index.ts +6 -69
  20. package/src/charts/__tests__/testUtils.tsx +87 -0
  21. package/src/charts/boxplot/__tests__/index.test.tsx +49 -103
  22. package/src/charts/boxplot/index.tsx +2 -1
  23. package/src/charts/boxplot/types.ts +17 -16
  24. package/src/charts/common/BaseChartWrapper.tsx +90 -82
  25. package/src/charts/common/__mocks__/BaseChartWrapper.tsx +17 -0
  26. package/src/charts/createChartComponent.tsx +36 -0
  27. package/src/charts/createOptionChartComponent.tsx +32 -0
  28. package/src/charts/funnel/__tests__/index.test.tsx +99 -0
  29. package/src/charts/funnel/index.tsx +60 -10
  30. package/src/charts/funnel/types.ts +6 -0
  31. package/src/charts/graph/__tests__/index.test.tsx +102 -33
  32. package/src/charts/graph/index.tsx +66 -9
  33. package/src/charts/graph/types.ts +6 -0
  34. package/src/charts/heatmap/__tests__/index.test.tsx +139 -0
  35. package/src/charts/heatmap/index.tsx +103 -10
  36. package/src/charts/heatmap/types.ts +6 -0
  37. package/src/charts/index.ts +74 -26
  38. package/src/charts/liquid/__tests__/index.test.tsx +52 -0
  39. package/src/charts/liquid/index.tsx +239 -182
  40. package/src/charts/liquid/types.ts +11 -11
  41. package/src/charts/parallel/__tests__/index.test.tsx +40 -67
  42. package/src/charts/parallel/index.tsx +2 -1
  43. package/src/charts/parallel/types.ts +19 -18
  44. package/src/charts/radar/__tests__/index.test.tsx +210 -0
  45. package/src/charts/radar/index.tsx +143 -10
  46. package/src/charts/radar/types.ts +13 -0
  47. package/src/charts/sankey/__tests__/index.test.tsx +124 -0
  48. package/src/charts/sankey/index.tsx +62 -10
  49. package/src/charts/sankey/types.ts +6 -0
  50. package/src/charts/tree/__tests__/index.test.tsx +71 -0
  51. package/src/charts/tree/index.tsx +5 -2
  52. package/src/charts/tree/types.ts +9 -9
  53. package/src/charts/types.ts +208 -106
  54. package/src/charts/utils.ts +9 -7
  55. package/src/charts/wordcloud/__tests__/index.test.tsx +98 -31
  56. package/src/charts/wordcloud/index.tsx +75 -9
  57. package/src/charts/wordcloud/types.ts +6 -0
  58. package/src/components/DataFilter/index.tsx +32 -10
  59. package/src/core/animation/types.ts +6 -6
  60. package/src/core/components/Annotation.tsx +6 -7
  61. package/src/core/components/BaseChart.tsx +110 -168
  62. package/src/core/components/ErrorBoundary.tsx +17 -4
  63. package/src/core/components/LazyChart.tsx +54 -55
  64. package/src/core/components/hooks/index.ts +6 -2
  65. package/src/core/components/hooks/useChartInit.ts +6 -3
  66. package/src/core/components/hooks/usePerformance.ts +8 -2
  67. package/src/core/components/hooks/useVirtualScroll.ts +2 -1
  68. package/src/core/index.ts +1 -1
  69. package/src/core/themes/ThemeManager.ts +1 -1
  70. package/src/core/types/common.ts +2 -1
  71. package/src/core/types/index.ts +0 -12
  72. package/src/core/types/platform.ts +3 -5
  73. package/src/core/utils/__tests__/deepClone.test.ts +317 -0
  74. package/src/core/utils/__tests__/index.test.ts +2 -1
  75. package/src/core/utils/chartInstances.ts +13 -0
  76. package/src/core/utils/common.ts +20 -29
  77. package/src/core/utils/deepClone.ts +114 -0
  78. package/src/core/utils/download.ts +128 -0
  79. package/src/core/utils/drillDown.ts +34 -353
  80. package/src/core/utils/drillDownHelpers.ts +426 -0
  81. package/src/core/utils/events.ts +12 -0
  82. package/src/core/utils/export/ExportUtils.ts +36 -67
  83. package/src/core/utils/format.ts +44 -0
  84. package/src/core/utils/index.ts +21 -154
  85. package/src/core/utils/merge.ts +25 -0
  86. package/src/core/utils/performance/PerformanceAnalyzer.ts +38 -21
  87. package/src/core/utils/performance/hooks.ts +7 -0
  88. package/src/core/utils/performance/index.ts +2 -0
  89. package/src/{hooks → core/utils/performance}/useAnimation.ts +45 -41
  90. package/src/core/utils/performance/useDataZoom.ts +324 -0
  91. package/src/{hooks → core/utils/performance}/usePerformance.ts +49 -41
  92. package/src/core/utils/performance/usePerformanceHooks.ts +278 -0
  93. package/src/core/utils/performanceUtils.ts +310 -0
  94. package/src/core/utils/runtime.ts +190 -0
  95. package/src/core/utils/setOptionUtils.ts +59 -0
  96. package/src/core/version.ts +14 -0
  97. package/src/editor/EnhancedThemeEditor.tsx +362 -540
  98. package/src/editor/ThemeEditor.tsx +55 -321
  99. package/src/editor/components/ThemeBasicSettings.tsx +113 -0
  100. package/src/editor/components/ThemeColorEditor.tsx +105 -0
  101. package/src/editor/components/ThemeSelector.tsx +70 -0
  102. package/src/editor/hooks/useThemeEditorState.ts +201 -0
  103. package/src/editor/index.ts +10 -2
  104. package/src/hooks/__tests__/index.test.tsx +3 -1
  105. package/src/hooks/chartConnectHelpers.ts +341 -0
  106. package/src/hooks/index.ts +55 -660
  107. package/src/hooks/types.ts +189 -0
  108. package/src/hooks/useChartAutoResize.ts +73 -0
  109. package/src/hooks/useChartConnect.ts +92 -238
  110. package/src/hooks/useChartDownload.ts +25 -27
  111. package/src/hooks/useChartHistory.ts +34 -49
  112. package/src/hooks/useChartInit.ts +59 -0
  113. package/src/hooks/useChartOptions.ts +259 -0
  114. package/src/hooks/useChartPerformance.ts +109 -0
  115. package/src/hooks/useChartSelection.ts +52 -49
  116. package/src/hooks/useChartTheme.ts +51 -0
  117. package/src/hooks/useDataTransform.ts +19 -4
  118. package/src/hooks/utils/chartDownloadUtils.ts +40 -53
  119. package/src/hooks/utils/dataTransformUtils.ts +22 -0
  120. package/src/index.ts +48 -34
  121. package/src/main.tsx +4 -9
  122. package/src/react-dom.d.ts +3 -3
  123. package/src/themes/index.ts +30 -855
  124. package/src/themes/palettes/blue-green.ts +13 -0
  125. package/src/themes/palettes/chalk.ts +13 -0
  126. package/src/themes/palettes/cyber.ts +44 -0
  127. package/src/themes/palettes/dark.ts +52 -0
  128. package/src/themes/palettes/default.ts +52 -0
  129. package/src/themes/palettes/elegant.ts +34 -0
  130. package/src/themes/palettes/forest.ts +13 -0
  131. package/src/themes/palettes/glass.ts +49 -0
  132. package/src/themes/palettes/golden.ts +13 -0
  133. package/src/themes/palettes/neon.ts +43 -0
  134. package/src/themes/palettes/ocean.ts +39 -0
  135. package/src/themes/palettes/pastel.ts +37 -0
  136. package/src/themes/palettes/purple-passion.ts +13 -0
  137. package/src/themes/palettes/retro.ts +33 -0
  138. package/src/themes/palettes/sunset.ts +40 -0
  139. package/src/themes/palettes/walden.ts +13 -0
  140. package/src/themes/registry.ts +184 -0
  141. package/src/themes/types.ts +213 -0
  142. package/src/charts/bar/__tests__/index.test.tsx +0 -113
  143. package/src/charts/bar/index.tsx +0 -14
  144. package/src/charts/candlestick/__tests__/index.test.tsx +0 -40
  145. package/src/charts/candlestick/index.tsx +0 -13
  146. package/src/charts/gauge/index.tsx +0 -14
  147. package/src/charts/line/__tests__/index.test.tsx +0 -107
  148. package/src/charts/line/index.tsx +0 -15
  149. package/src/charts/pie/__tests__/index.test.tsx +0 -112
  150. package/src/charts/pie/index.tsx +0 -14
  151. package/src/charts/scatter/index.tsx +0 -14
  152. package/src/charts/sunburst/index.tsx +0 -18
  153. package/src/charts/treemap/index.tsx +0 -18
  154. package/src/core/utils/codeGenerator/CodeGenerator.ts +0 -669
  155. package/src/core/utils/codeGenerator/index.ts +0 -13
  156. package/src/core/utils/codeGenerator/types.ts +0 -198
  157. package/src/core/utils/configGenerator/ConfigGenerator.ts +0 -583
  158. package/src/core/utils/configGenerator/index.ts +0 -13
  159. package/src/core/utils/configGenerator/types.ts +0 -445
  160. package/src/core/utils/debug/DebugPanel.tsx +0 -637
  161. package/src/core/utils/debug/debugger.ts +0 -322
  162. package/src/core/utils/debug/index.ts +0 -21
  163. package/src/core/utils/debug/types.ts +0 -142
  164. package/src/hooks/useDataZoom.ts +0 -323
@@ -0,0 +1 @@
1
+ export const __webpack_esm_id__=440;export const __webpack_esm_ids__=[440];export const __webpack_esm_modules__={5638(t,e,n){n.d(e,{LR:()=>l,LW:()=>s,Nz:()=>u,ap:()=>d,oi:()=>a,t5:()=>h});var i=n(8026),o=(0,n(8170).$r)();function r(t,e,n,o,r,a,s){var l,u=!1;(0,i.Tn)(r)?(s=a,a=r,r=null):(0,i.Gv)(r)&&(a=r.cb,s=r.during,u=r.isFrom,l=r.removeOpt,r=r.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var h=function(t,e,n,o,r){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return o?(u=(0,i.bZ)(o.duration,200),c=(0,i.bZ)(o.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),(0,i.Tn)(h)&&(h=h(n,r)),(0,i.Tn)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}(t,o,r,c?l||{}:null,o&&o.getAnimationDelayParams?o.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var d={duration:h.duration,delay:h.delay||0,easing:h.easing,done:a,force:!!a||!!s,setToFinal:!c,scope:t,during:s};u?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!u&&e.attr(n),s&&s(1),a&&a()}function a(t,e,n,i,o,a){r("update",t,e,n,i,o,a)}function s(t,e,n,i,o,a){r("enter",t,e,n,i,o,a)}function l(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function u(t,e,n,i,o,a){l(t)||r("leave",t,e,n,i,o,a)}function c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),u(t,{style:{opacity:0}},e,n,i)}function h(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||c(t,e,n,i)}):c(t,e,n,i)}function d(t){o(t).oldStyle=t.style}},6995(t,e,n){n.d(e,{a:()=>J});var i=n(8026),o=n(2536),r=n(7959),a=n(1635),s=n(4278),l=n(1854),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,a.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,l.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var o=this.coordinateSystem;if(o&&o.clampData){var r=o.clampData(t),a=o.dataToPoint(r);if(n)(0,i.__)(o.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),o=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!o&&(s+=1),i.length<2)return;if(2===i.length)return void(a[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),a[n]=t.toGlobalCoord(c)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=o.getBaseAxis().isHorizontal()?0:1;a[c]+=l+u/2}return a}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(s.A);s.A.registerClass(u);const c=u;var h=n(2616),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,a.C6)(e,t),e.prototype.getInitialData=function(){return(0,l.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,h.G_)(c.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(c);const p=d;var f=n(1950),g=n(3870),m=n(3199),v=n(5638),y=n(10),_=n(5014),x=n(9622),S=n(4833),b=n(9632),w=n(4711),M=n(5235),I=n(4618),A=n(6666),T=n(1849),C=n(4532),D=n(5558);function L(t,e,n){return e*Math.sin(t)*(n?-1:1)}function k(t,e,n){return e*Math.cos(t)*(n?1:-1)}var P=n(9446),O=Math.max,N=Math.min,R=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,a.C6)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){(0,m.traverseElements)(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var o,r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?o=u.isHorizontal():"polar"===l.type&&(o="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=function(t,e){var n=t.getArea&&t.getArea();if((0,T.g)(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}(l,a);r.removeClipPath();var f=t.get("roundCap",!0),m=t.get("showBackground",!0),x=t.getModel("backgroundStyle"),S=x.get("borderRadius")||0,w=[],M=this._backgroundEls,I=i&&i.isInitSort,A=i&&"changeAxisOrder"===i.type;function C(t){var e=W[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?_.A:y.A)({shape:q(e,n,t),silent:!0,z2:0})}(l,o,e);return n.useStyle(x.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",S):n.setShape("cornerRadius",S),w[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),i=W[l.type](a,e,n);if(m&&C(e),a.hasValue(e)&&H[l.type](i)){var s=!1;d&&(s=E[l.type](p,i));var g=z[l.type](t,a,e,i,o,c,u.model,!1,f);h&&(g.forceLabelAnimation=!0),U(g,a,e,n,i,t,o,"polar"===l.type),I?g.attr({shape:i}):h?V(h,c,g,i,e,o,!1,!1):(0,v.LW)(g,{shape:i},t,e),a.setItemGraphicEl(e,g),r.add(g),g.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),g=W[l.type](a,e,i);if(m){var y=void 0;0===M.length?y=C(n):((y=M[n]).useStyle(x.getItemStyle()),"cartesian2d"===l.type?y.setShape("r",S):y.setShape("cornerRadius",S),w[e]=y);var _=W[l.type](a,e),T=q(o,_,l);(0,v.oi)(y,{shape:T},c,e)}var D=s.getItemGraphicEl(n);if(a.hasValue(e)&&H[l.type](g)){var L=!1;if(d&&(L=E[l.type](p,g))&&r.remove(D),D?(0,v.ap)(D):D=z[l.type](t,a,e,g,o,c,u.model,!!D,f),h&&(D.forceLabelAnimation=!0),A){var k=D.getTextContent();if(k){var P=(0,b.Lu)(k);null!=P.prevValue&&(P.prevValue=P.value)}}else U(D,a,e,i,g,t,o,"polar"===l.type);I?D.attr({shape:g}):h?V(h,c,D,g,e,o,!0,A):(0,v.oi)(D,{shape:g},t,e,null),a.setItemGraphicEl(e,D),D.ignore=L,r.add(D)}else r.remove(D)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&(0,v.t5)(n,t,e)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new g.A);D.removeAll();for(var L=0;L<w.length;++L)D.add(w[L]);r.add(D),this._backgroundEls=w,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),$(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),$(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&(0,M.Ip)(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var r=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(o.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,r,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var o=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=i??NaN,o.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),o.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:(0,i.Tj)(o,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>r)return!0;r=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),o=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=r;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var o=this._dataSort(t,n,e);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,o=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){(0,v.t5)(e,t,(0,x.z)(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(A.A),E={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=t.x+t.width,r=t.y+t.height,a=O(e.x,t.x),s=N(e.x+e.width,o),l=O(e.y,t.y),u=N(e.y+e.height,r),c=s<a,h=u<l;return e.x=c&&a>o?s:a,e.y=h&&l>r?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var o=N(e.r,t.r),r=O(e.r0,t.r0);e.r=o,e.r0=r;var a=o-r<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},z={cartesian2d:function(t,e,n,o,r,a,s,l,u){var c=new y.A({shape:(0,i.X$)({},o),z2:1});return c.__dataIndex=n,c.name="item",a&&(c.shape[r?"height":"width"]=0),c},polar:function(t,e,n,i,o,r,a,s,l){var u=!o&&l?I.A:_.A,c=new u({shape:i,z2:1});c.name="item";var h,d,p,f=X(o);if(c.calculateTextPosition=(h=f,d={isRoundCap:u===I.A},p=(d=d||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return(0,D.X4)(t,e,n);var o=h(i),r=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,v=p?Math.abs(u-c)/2:0,y=Math.cos,_=Math.sin,x=s+u*y(f),S=l+u*_(f),b="left",w="top";switch(o){case"startArc":x=s+(c-r)*y(m),S=l+(c-r)*_(m),b="center",w="top";break;case"insideStartArc":x=s+(c+r)*y(m),S=l+(c+r)*_(m),b="center",w="bottom";break;case"startAngle":x=s+d*y(f)+L(f,r+v,!1),S=l+d*_(f)+k(f,r+v,!1),b="right",w="middle";break;case"insideStartAngle":x=s+d*y(f)+L(f,-r+v,!1),S=l+d*_(f)+k(f,-r+v,!1),b="left",w="middle";break;case"middle":x=s+d*y(m),S=l+d*_(m),b="center",w="middle";break;case"endArc":x=s+(u+r)*y(m),S=l+(u+r)*_(m),b="center",w="bottom";break;case"insideEndArc":x=s+(u-r)*y(m),S=l+(u-r)*_(m),b="center",w="top";break;case"endAngle":x=s+d*y(g)+L(g,r+v,!0),S=l+d*_(g)+k(g,r+v,!0),b="left",w="middle";break;case"insideEndAngle":x=s+d*y(g)+L(g,-r+v,!0),S=l+d*_(g)+k(g,-r+v,!0),b="right",w="middle";break;default:return(0,D.X4)(t,e,n)}return(t=t||{}).x=x,t.y=S,t.align=b,t.verticalAlign=w,t}),r){var g=o?"r":"endAngle",m={};c.shape[g]=o?i.r0:i.startAngle,m[g]=i[g],(s?v.oi:v.LW)(c,{shape:m},r)}return c}};function V(t,e,n,i,o,r,a,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?v.oi:v.LW)(n,{shape:l},e,o,null);var c=e?t.baseAxis.model:null;(a?v.oi:v.LW)(n,{shape:u},c,o)}function B(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var G=["x","y","width","height"],F=["cx","cy","r","startAngle","endAngle"],H={cartesian2d:function(t){return!B(t,G)},polar:function(t){return!B(t,F)}},W={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),o=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}(n,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function X(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function U(t,e,n,o,r,a,s,l){var u=e.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var c=t.shape,h=(0,P.i)(o.getModel("itemStyle"),c,!0);(0,i.X$)(c,h),t.setShape(c)}}else{var d=o.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(u);var p=o.getShallow("cursor");p&&t.attr("cursor",p);var f=l?s?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":s?r.height>=0?"bottom":"top":r.width>=0?"right":"left",g=(0,b.lx)(o);(0,b.qM)(t,g,{labelFetcher:a,labelDataIndex:n,defaultText:(0,C.i)(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var m=t.getTextContent();if(l&&m){var v=o.get(["label","position"]);t.textConfig.inside="middle"===v||null,function(t,e,n,o){if((0,i.Et)(o))t.setTextConfig({rotation:o});else if((0,i.cy)(e))t.setTextConfig({rotation:0});else{var r,a=t.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=(s+l)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=u;break;case"startAngle":case"insideStartAngle":r=s;break;case"endAngle":case"insideEndAngle":r=l;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===v?f:v,X(s),o.get(["label","rotate"]))}(0,b.Oh)(m,g,a.getRawValue(n),function(t){return(0,C.T)(e,t)});var y=o.getModel(["emphasis"]);(0,S.Lm)(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),(0,S.Mx)(t,o),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",(0,i.__)(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var Z=function(){},Y=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,a.C6)(e,t),e.prototype.getDefaultShape=function(){return new Z},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],t.rect(r[0],r[1],a[0],a[1])},e}(f.Ay);function $(t,e,n,i){var o=t.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=t.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var c=new Y({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=r,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new Y({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=r,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(o.getVisual("style")),h.style.stroke=null,(0,x.z)(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",K),h.on("mousemove",K)),n&&n.push(h)}var K=(0,w.nF)(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,o=1-i,r=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=r.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[o]=r[d+2],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);(0,x.z)(this).dataIndex=e>=0?e:null},30,!1);function q(t,e,n){if((0,T.g)(n,"cartesian2d")){var i=e,o=n.getArea();return{x:t?i.x:o.x,y:t?o.y:i.y,width:t?i.width:o.width,height:t?o.height:i.height}}var r=e;return{cx:(o=n.getArea()).cx,cy:o.cy,r0:t?o.r0:r.r0,r:t?o.r:r.r,startAngle:t?r.startAngle:0,endAngle:t?r.endAngle:2*Math.PI}}const j=R;function J(t){t.registerChartView(j),t.registerSeriesModel(p),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,i.cF(o.Zp,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,o.KF)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(0,r.A)("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})}},4508(t,e,n){n.d(e,{a:()=>C});var i=n(1635),o=n(9195),r=n(9766),a=n(5638),s=n(6346),l=n(2505),u=n(4833),c=n(6666),h=n(2621),d=n(9632),p=["itemStyle","opacity"],f=function(t){function e(e,n){var i=t.call(this)||this,a=i,s=new o.A,l=new r.Ay;return a.setTextContent(l),i.setTextGuideLine(s),i.updateData(e,n,!0),i}return(0,i.C6)(e,t),e.prototype.updateData=function(t,e,n){var i=this,o=t.hostModel,r=t.getItemModel(e),s=t.getItemLayout(e),l=r.getModel("emphasis"),c=r.get(p);c=c??1,n||(0,a.ap)(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:s.points}),i.style.opacity=0,a.LW(i,{style:{opacity:c}},o,e)):a.oi(i,{style:{opacity:c},shape:{points:s.points}},o,e),(0,u.Mx)(i,r),this._updateLabel(t,e),(0,u.Lm)(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),r=t.hostModel,l=t.getItemModel(e),u=t.getItemLayout(e).label,c=t.getItemVisual(e,"style"),p=c.fill;(0,d.qM)(o,(0,d.lx)(l),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:c.opacity,defaultText:t.getName(e)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),n.setTextConfig({local:!0,inside:!!u.inside,insideStroke:p,outsideFill:p});var f=u.linePoints;i.setShape({points:f}),n.textGuideLineConfig={anchor:f?new s.A(f[0][0],f[0][1]):null},a.oi(o,{style:{x:u.x,y:u.y}},r,e),o.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),(0,h.eR)(n,(0,h.rv)(l),{stroke:p})},e}(l.A),g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,i.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._data,r=this.group;i.diff(o).add(function(t){var e=new f(i,t);i.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(i,t),r.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){var n=o.getItemGraphicEl(e);a.t5(n,t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(c.A);const m=g;var v=n(8026),y=n(2731),_=n(8170),x=n(3071),S=n(8239),b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new S.A(v.oI(this.getData,this),v.oI(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return(0,y.A)(this,{coordDimensions:["value"],encodeDefaulter:v.cF(x.ln,this)})},e.prototype._defaultLabelLine=function(t){(0,_.M5)(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),o=n.mapDimension("value"),r=n.getSum(o);return i.percent=r?+(n.get(o,e)/r*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.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"}}},e}(n(4278).A);const w=b;var M=n(4253),I=n(4326);function A(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),o=t.get("sort"),r=function(t,e){return M.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=r.width,l=r.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),o=[],r="ascending"===e,a=0,s=t.count();a<s;a++)o[a]=a;return(0,v.Tn)(e)?o.sort(e):"none"!==e&&o.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),o}(n,o),c=r.x,h=r.y,d="horizontal"===a?[(0,I.lo)(t.get("minSize"),l),(0,I.lo)(t.get("maxSize"),l)]:[(0,I.lo)(t.get("minSize"),s),(0,I.lo)(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=t.get("funnelAlign"),y=t.get("gap"),_=(("horizontal"===a?s:l)-y*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var o=n.get(i,t)||0,r=(0,I.Cb)(o,[f,g],d,!0),u=void 0;switch(m){case"top":u=h;break;case"center":u=h+(l-r)/2;break;case"bottom":u=h+(l-r)}return[[e,u],[e,u+r]]}var p,v=n.get(i,t)||0,y=(0,I.Cb)(v,[f,g],d,!0);switch(m){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y}return[[p,e],[p+y,e]]};"ascending"===o&&(_=-_,y=-y,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var S=0;S<u.length;S++){var b=u[S],w=u[S+1],A=n.getItemModel(b);if("horizontal"===a){var T=A.get(["itemStyle","width"]);null==T?T=_:(T=(0,I.lo)(T,s),"ascending"===o&&(T=-T));var C=x(b,c),D=x(w,c+T);c+=T+y,n.setItemLayout(b,{points:C.concat(D.slice().reverse())})}else{var L=A.get(["itemStyle","height"]);null==L?L=_:(L=(0,I.lo)(L,l),"ascending"===o&&(L=-L)),C=x(b,h),D=x(w,h+L),h+=L+y,n.setItemLayout(b,{points:C.concat(D.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each(function(n){var i,o,r,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(o=(h[0][0]+h[3][0])/2+5,r=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===l?(o=(h[1][0]+h[2][0])/2-5,r=(h[1][1]+h[2][1])/2,i="right"):(o=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,r=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),a=[[o,r],[o,r]];else{var p=void 0,f=void 0,g=void 0,m=void 0,v=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,o=(g=p-v)-5,i="right"):"right"===l?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,o=(g=p+v)+5,i="left"):"top"===l?(p=(h[3][0]+h[0][0])/2,r=(m=(f=(h[3][1]+h[0][1])/2)-v)-5,i="center"):"bottom"===l?(p=(h[1][0]+h[2][0])/2,r=(m=(f=(h[1][1]+h[2][1])/2)+v)+5,i="center"):"rightTop"===l?(p="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(r=(m=f-v)-5,i="center"):(o=(g=p+v)+5,i="top")):"rightBottom"===l?(p=h[2][0],f=h[2][1],"horizontal"===e?(r=(m=f+v)+5,i="center"):(o=(g=p+v)+5,i="bottom")):"leftTop"===l?(p=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(r=(m=f-v)-5,i="center"):(o=(g=p-v)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(r=(m=f+v)+5,i="center"):(o=(g=p-v)-5,i="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(r=(m=f+v)+5,i="center"):(o=(g=p+v)+5,i="left")),"horizontal"===e?o=g=p:r=m=f,a=[[p,f],[g,m]]}c.label={linePoints:a,x:o,y:r,verticalAlign:"middle",textAlign:i,inside:d}})}(n)})}var T=n(8587);function C(t){t.registerChartView(m),t.registerSeriesModel(w),t.registerLayout(A),t.registerProcessor((0,T.A)("funnel"))}},1030(t,e,n){n.d(e,{a:()=>C});var i=n(1635),o=n(1950),r=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};const a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new r},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(r>=o/3?1:2),l=e.y-i(a)*r*(r>=o/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},e}(o.Ay);var s=n(5014),l=n(2861),u=n(9766),c=n(5638),h=n(3870),d=n(4833),p=n(9632),f=n(6666),g=n(4326),m=n(4618),v=n(2103),y=n(540),_=n(8026),x=n(9622),S=n(4863);function b(t,e){var n=null==t?"":t+"";return e&&((0,_.Kg)(e)?n=e.replace("{value}",n):(0,_.Tn)(e)&&(n=e(t))),n}var w=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o);return{cx:(0,g.lo)(n[0],e.getWidth()),cy:(0,g.lo)(n[1],e.getHeight()),r:(0,g.lo)(t.get("radius"),r/2)}}(t,n);this._renderMain(t,e,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,o){var r=this.group,a=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap")?m.A:s.A,d=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),g=[l,u];(0,S.q)(g,!a);for(var v=(u=g[1])-(l=g[0]),y=l,x=[],b=0;d&&b<i.length;b++){var w=new h({shape:{startAngle:y,endAngle:u=l+v*Math.min(Math.max(i[b][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-f,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),x.push(w),y=u}x.reverse(),(0,_.__)(x,function(t){return r.add(t)});var M=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,M,o,l,u,a,f),this._renderTitleAndDetail(t,e,n,M,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,M,o,l,u,a,f)},e.prototype._renderTicks=function(t,e,n,i,o,r,a,s,c){for(var h,d,f=this.group,m=o.cx,v=o.cy,y=o.r,x=+t.get("min"),S=+t.get("max"),w=t.getModel("splitLine"),M=t.getModel("axisTick"),I=t.getModel("axisLabel"),A=t.get("splitNumber"),T=M.get("splitNumber"),C=(0,g.lo)(w.get("length"),y),D=(0,g.lo)(M.get("length"),y),L=r,k=(a-r)/A,P=k/T,O=w.getModel("lineStyle").getLineStyle(),N=M.getModel("lineStyle").getLineStyle(),R=w.get("distance"),E=0;E<=A;E++){if(h=Math.cos(L),d=Math.sin(L),w.get("show")){var z=R?R+c:c,V=new l.A({shape:{x1:h*(y-z)+m,y1:d*(y-z)+v,x2:h*(y-C-z)+m,y2:d*(y-C-z)+v},style:O,silent:!0});"auto"===O.stroke&&V.setStyle({stroke:i(E/A)}),f.add(V)}if(I.get("show")){z=I.get("distance")+R;var B=b((0,g.LI)(E/A*(S-x)+x),I.get("formatter")),G=i(E/A),F=h*(y-C-z)+m,H=d*(y-C-z)+v,W=I.get("rotate"),X=0;"radial"===W?(X=-L+2*Math.PI)>Math.PI/2&&(X+=Math.PI):"tangential"===W?X=-L-Math.PI/2:(0,_.Et)(W)&&(X=W*Math.PI/180),0===X?f.add(new u.Ay({style:(0,p.VB)(I,{text:B,x:F,y:H,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new u.Ay({style:(0,p.VB)(I,{text:B,x:F,y:H,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:F,originY:H,rotation:X}))}if(M.get("show")&&E!==A){z=(z=M.get("distance"))?z+c:c;for(var U=0;U<=T;U++){h=Math.cos(L),d=Math.sin(L);var Z=new l.A({shape:{x1:h*(y-z)+m,y1:d*(y-z)+v,x2:h*(y-D-z)+m,y2:d*(y-D-z)+v},silent:!0,style:N});"auto"===N.stroke&&Z.setStyle({stroke:i((E+U/T)/A)}),f.add(Z),L+=P}L-=P}else L+=k}},e.prototype._renderPointer=function(t,e,n,i,o,r,l,u,h){var p=this.group,f=this._data,S=this._progressEls,b=[],w=t.get(["pointer","show"]),M=t.getModel("progress"),I=M.get("show"),A=t.getData(),T=A.mapDimension("value"),C=+t.get("min"),D=+t.get("max"),L=[C,D],k=[r,l];function P(e,n){var i,r=A.getItemModel(e).getModel("pointer"),s=(0,g.lo)(r.get("width"),o.r),l=(0,g.lo)(r.get("length"),o.r),u=t.get(["pointer","icon"]),c=r.get("offsetCenter"),h=(0,g.lo)(c[0],o.r),d=(0,g.lo)(c[1],o.r),p=r.get("keepAspect");return(i=u?(0,v.v5)(u,h-s/2,d-l,s,l,null,p):new a({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}})).rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function O(t,e){var n=M.get("roundCap")?m.A:s.A,i=M.get("overlap"),a=i?M.get("width"):h/A.count(),l=i?o.r-a:o.r-(t+1)*a,c=i?o.r:o.r-t*a,d=new n({shape:{startAngle:r,endAngle:e,cx:o.cx,cy:o.cy,clockwise:u,r0:l,r:c}});return i&&(d.z2=(0,g.Cb)(A.get(T,t),[C,D],[100,0],!0)),d}(I||w)&&(A.diff(f).add(function(e){var n=A.get(T,e);if(w){var i=P(e,r);c.LW(i,{rotation:-((isNaN(+n)?k[0]:(0,g.Cb)(n,L,k,!0))+Math.PI/2)},t),p.add(i),A.setItemGraphicEl(e,i)}if(I){var o=O(e,r),a=M.get("clip");c.LW(o,{shape:{endAngle:(0,g.Cb)(n,L,k,a)}},t),p.add(o),(0,x.a)(t.seriesIndex,A.dataType,e,o),b[e]=o}}).update(function(e,n){var i=A.get(T,e);if(w){var o=f.getItemGraphicEl(n),a=o?o.rotation:r,s=P(e,a);s.rotation=a,c.oi(s,{rotation:-((isNaN(+i)?k[0]:(0,g.Cb)(i,L,k,!0))+Math.PI/2)},t),p.add(s),A.setItemGraphicEl(e,s)}if(I){var l=S[n],u=O(e,l?l.shape.endAngle:r),h=M.get("clip");c.oi(u,{shape:{endAngle:(0,g.Cb)(i,L,k,h)}},t),p.add(u),(0,x.a)(t.seriesIndex,A.dataType,e,u),b[e]=u}}).execute(),A.each(function(t){var e=A.getItemModel(t),n=e.getModel("emphasis"),o=n.get("focus"),r=n.get("blurScope"),a=n.get("disabled");if(w){var s=A.getItemGraphicEl(t),l=A.getItemVisual(t,"style"),u=l.fill;if(s instanceof y.Ay){var c=s.style;s.useStyle((0,_.X$)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,g.Cb)(A.get(T,t),L,[0,1],!0))),s.z2EmphasisLift=0,(0,d.Mx)(s,e),(0,d.Lm)(s,o,r,a)}if(I){var h=b[t];h.useStyle(A.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,d.Mx)(h,e),(0,d.Lm)(h,o,r,a)}}),this._progressEls=b)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),o=n.get("icon"),r=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,v.v5)(o,e.cx-i/2+(0,g.lo)(r[0],e.r),e.cy-i/2+(0,g.lo)(r[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,o){var r=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),d=new h.A,f=[],m=[],v=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){f[t]=new u.Ay({silent:!0}),m[t]=new u.Ay({silent:!0})}).update(function(t,e){f[t]=r._titleEls[e],m[t]=r._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),r=a.get(s,e),u=new h.A,_=i((0,g.Cb)(r,[l,c],[0,1],!0)),x=n.getModel("title");if(x.get("show")){var S=x.get("offsetCenter"),w=o.cx+(0,g.lo)(S[0],o.r),M=o.cy+(0,g.lo)(S[1],o.r);(P=f[e]).attr({z2:y?0:2,style:(0,p.VB)(x,{x:w,y:M,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:_})}),u.add(P)}var I=n.getModel("detail");if(I.get("show")){var A=I.get("offsetCenter"),T=o.cx+(0,g.lo)(A[0],o.r),C=o.cy+(0,g.lo)(A[1],o.r),D=(0,g.lo)(I.get("width"),o.r),L=(0,g.lo)(I.get("height"),o.r),k=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:_,P=m[e],O=I.get("formatter");P.attr({z2:y?0:2,style:(0,p.VB)(I,{x:T,y:C,text:b(r,O),width:isNaN(D)?null:D,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:k})}),(0,p.Oh)(P,{normal:I},r,function(t){return b(t,O)}),v&&(0,p.xb)(P,e,a,t,{getFormattedLabel:function(t,e,n,i,o,a){return b(a?a.interpolatedValue:r,O)}}),u.add(P)}d.add(u)}),this.group.add(d),this._titleEls=f,this._detailEls=m},e.type="gauge",e}(f.A);const M=w;var I=n(2731),A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,i.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,I.A)(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(n(4278).A);const T=A;function C(t){t.registerChartView(M),t.registerSeriesModel(T)}},9714(t,e,n){n.d(e,{a:()=>b});var i=n(1635),o=n(3199),r=n(10),a=n(540),s=n(4833),l=n(9741);const u=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=l.yh.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],v=i(f[2]);h.globalAlpha=v,h.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;for(var y=h.getImageData(0,0,c.width,c.height),_=y.data,x=0,S=_.length,b=this.minOpacity,w=this.maxOpacity-b;x<S;){v=_[x+3]/256;var M=4*Math.floor(255*v);if(v>0){var I=r(v)?s:l;v>0&&(v=v*w+b),_[x++]=I[M],_[x++]=I[M+1],_[x++]=I[M+2],_[x++]=I[M+3]*v*256}else x+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=l.yh.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i},t}();var c=n(8026),h=n(6666),d=n(1849),p=n(9632);function f(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):f(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(f(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){o.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var a,l,u,c,h=t.coordinateSystem,f=(0,d.g)(h,"cartesian2d");if(f){var g=h.getAxis("x"),m=h.getAxis("y");a=g.getBandWidth()+.5,l=m.getBandWidth()+.5,u=g.scale.getExtent(),c=m.scale.getExtent()}for(var v=this.group,y=t.getData(),_=t.getModel(["emphasis","itemStyle"]).getItemStyle(),x=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),w=(0,p.lx)(t),M=t.getModel("emphasis"),I=M.get("focus"),A=M.get("blurScope"),T=M.get("disabled"),C=f?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],D=n;D<i;D++){var L=void 0,k=y.getItemVisual(D,"style");if(f){var P=y.get(C[0],D),O=y.get(C[1],D);if(isNaN(y.get(C[2],D))||isNaN(P)||isNaN(O)||P<u[0]||P>u[1]||O<c[0]||O>c[1])continue;var N=h.dataToPoint([P,O]);L=new r.A({shape:{x:N[0]-a/2,y:N[1]-l/2,width:a,height:l},style:k})}else{if(isNaN(y.get(C[1],D)))continue;L=new r.A({z2:1,shape:h.dataToRect([y.get(C[0],D)]).contentShape,style:k})}if(y.hasItemOption){var R=y.getItemModel(D),E=R.getModel("emphasis");_=E.getModel("itemStyle").getItemStyle(),x=R.getModel(["blur","itemStyle"]).getItemStyle(),S=R.getModel(["select","itemStyle"]).getItemStyle(),b=R.get(["itemStyle","borderRadius"]),I=E.get("focus"),A=E.get("blurScope"),T=E.get("disabled"),w=(0,p.lx)(R)}L.shape.r=b;var z=t.getRawValue(D),V="-";z&&null!=z[2]&&(V=z[2]+""),(0,p.qM)(L,w,{labelFetcher:t,labelDataIndex:D,defaultOpacity:k.opacity,defaultText:V}),L.ensureState("emphasis").style=_,L.ensureState("blur").style=x,L.ensureState("select").style=S,(0,s.Lm)(L,I,A,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),v.add(L),y.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,e,n,i){var o=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,s=e.getData(),l=this._hmLayer||this._hmLayer||new u;l.blurSize=e.get("blurSize"),l.pointSize=e.get("pointSize"),l.minOpacity=e.get("minOpacity"),l.maxOpacity=e.get("maxOpacity");var h=t.getViewRect().clone(),d=t.getRoamTransform();h.applyTransform(d);var p=Math.max(h.x,0),f=Math.max(h.y,0),g=Math.min(h.width+h.x,i.getWidth()),m=Math.min(h.height+h.y,i.getHeight()),v=g-p,y=m-f,_=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],x=s.mapArray(_,function(e,n,i){var o=t.dataToPoint([e,n]);return o[0]-=p,o[1]-=f,o.push(i),o}),S=n.getExtent(),b="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(S,n.option.range):function(t,e,n){var i=t[1]-t[0],o=(e=c.Tj(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,r=0;return function(t){var i;for(i=r;i<o;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){r=i;break}if(i===o)for(i=r-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){r=i;break}}return i>=0&&i<o&&n[i]}}(S,n.getPieceList(),n.option.selected);l.update(x,v,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:r.color.getColorMapper()},b);var w=new a.Ay({style:{width:v,height:y,x:p,y:f,image:l.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(h.A);const m=g;var v=n(4278),y=n(1854),_=n(9737),x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,y.A)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=_.A.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(v.A);const S=x;function b(t){t.registerChartView(m),t.registerSeriesModel(S)}},128(t,e,n){n.d(e,{A:()=>f});var i=n(1635),o=n(2103),r=n(3870),a=n(5638),s=n(9622),l=n(4833),u=n(4532),c=n(8026),h=n(9632),d=n(540);function p(t,e){this.parent.drift(t,e)}const f=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.updateData(e,n,i,o),r}return(0,i.C6)(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var a=(0,o.v5)(t,-1,-1,2,2,null,r);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=p,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){(0,l.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,l.SD)(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,o){this.silent=!1;var r=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=r!==this._symbolType,c=o&&o.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,t,n,l,h)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):a.oi(p,d,s,n),(0,a.ap)(p)}if(this._updateCommon(t,n,l,i,o),u){var p=this.childAt(0);c||(d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,a.LW(p,d,s,n))}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var a,s,p,f,g,m,v,y,_,x=this.childAt(0),S=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,p=i.selectItemStyle,f=i.focus,g=i.blurScope,v=i.labelStatesModels,y=i.hoverScale,_=i.cursorStyle,m=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(e),w=b.getModel("emphasis");a=w.getModel("itemStyle").getItemStyle(),p=b.getModel(["select","itemStyle"]).getItemStyle(),s=b.getModel(["blur","itemStyle"]).getItemStyle(),f=w.get("focus"),g=w.get("blurScope"),m=w.get("disabled"),v=(0,h.lx)(b),y=w.getShallow("scale"),_=b.getShallow("cursor")}var M=t.getItemVisual(e,"symbolRotate");x.attr("rotation",(M||0)*Math.PI/180||0);var I=(0,o.hV)(t.getItemVisual(e,"symbolOffset"),n);I&&(x.x=I[0],x.y=I[1]),_&&x.attr("cursor",_);var A=t.getItemVisual(e,"style"),T=A.fill;if(x instanceof d.Ay){var C=x.style;x.useStyle((0,c.X$)({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},A))}else x.__isEmptyBrush?x.useStyle((0,c.X$)({},A)):x.useStyle(A),x.style.decal=null,x.setColor(T,r&&r.symbolInnerColor),x.style.strokeNoScale=!0;var D=t.getItemVisual(e,"liftZ"),L=this._z2;null!=D?null==L&&(this._z2=x.z2,x.z2+=D):null!=L&&(x.z2=L,this._z2=null);var k=r&&r.useNameLabel;(0,h.qM)(x,v,{labelFetcher:S,labelDataIndex:e,defaultText:function(e){return k?t.getName(e):(0,u.i)(t,e)},inheritColor:T,defaultOpacity:A.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=x.ensureState("emphasis");P.style=a,x.ensureState("select").style=p,x.ensureState("blur").style=s;var O=null==y||!0===y?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;P.scaleX=this._sizeX*O,P.scaleY=this._sizeY*O,this.setSymbolScale(1),(0,l.Lm)(this,f,g,m)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=(0,s.z)(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&a.Nz(l,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();a.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},e.getSymbolSize=function(t,e){return(0,o.xU)(t.getItemVisual(e,"symbolSize"))},e}(r.A)},8386(t,e,n){n.d(e,{A:()=>d});var i=n(3199),o=n(3870),r=n(5638),a=n(128),s=n(8026),l=n(9632);function u(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function c(t){return null==t||(0,s.Gv)(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,l.lx)(e),cursorStyle:e.get("cursor")}}const d=function(){function t(t){this.group=new o.A,this._SymbolCtor=t||a.A}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=c(e);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=h(t),d={disableAnimation:s},p=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add(function(i){var o=p(i);if(u(t,o,i,e)){var r=new a(t,i,l,d);r.setPosition(o),t.setItemGraphicEl(i,r),n.add(r)}}).update(function(c,h){var f=o.getItemGraphicEl(h),g=p(c);if(u(t,g,c,e)){var m=t.getItemVisual(c,"symbol")||"circle",v=f&&f.getSymbolType&&f.getSymbolType();if(!f||v&&v!==m)n.remove(f),(f=new a(t,c,l,d)).setPosition(g);else{f.updateData(t,c,l,d);var y={x:g[0],y:g[1]};s?f.attr(y):r.oi(f,y,i)}n.add(f),t.setItemGraphicEl(c,f)}else n.remove(f)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=p,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var o=t.start;o<t.end;o++){var r=e.getItemLayout(o);if(u(e,r,o,n)){var a=new this._SymbolCtor(e,o,this._seriesScope);a.traverse(i),a.setPosition(r),this.group.add(a),e.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){i.traverseElements(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}()},5235(t,e,n){n.d(e,{Ip:()=>c,Mi:()=>u,SM:()=>l});var i=n(5014),o=n(10),r=n(5638),a=n(4326),s=n(8026);function l(t,e,n,i,a){var l=t.getArea(),u=l.x,c=l.y,h=l.width,d=l.height,p=n.get(["lineStyle","width"])||0;u-=p/2,c-=p/2,h+=p,d+=p,h=Math.ceil(h),u!==Math.floor(u)&&(u=Math.floor(u),h++);var f=new o.A({shape:{x:u,y:c,width:h,height:d}});if(e){var g=t.getBaseAxis(),m=g.isHorizontal(),v=g.inverse;m?(v&&(f.shape.x+=h),f.shape.width=0):(v||(f.shape.y+=d),f.shape.height=0);var y=(0,s.Tn)(a)?function(t){a(t,f)}:null;r.LW(f,{shape:{width:h,height:d,x:u,y:c}},n,null,i,y)}return f}function u(t,e,n){var o=t.getArea(),s=(0,a.LI)(o.r0,1),l=(0,a.LI)(o.r,1),u=new i.A({shape:{cx:(0,a.LI)(t.cx,1),cy:(0,a.LI)(t.cy,1),r0:s,r:l,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}});return e&&("angle"===t.getBaseAxis().dim?u.shape.endAngle=o.startAngle:u.shape.r=s,r.LW(u,{shape:{endAngle:o.endAngle,r:l}},n)),u}function c(t,e,n,i,o){return t?"polar"===t.type?u(t,e,n):"cartesian2d"===t.type?l(t,e,n,i,o):null:null}},7582(t,e,n){n.d(e,{A:()=>o});var i=n(8170);function o(){var t=(0,i.$r)();return function(e){var n=t(e),i=e.pipelineContext,o=!!n.large,r=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(o===a&&r===s)&&"reset"}}},1854(t,e,n){n.d(e,{A:()=>m});var i=n(8026),o=n(2675),r=n(7351),a=n(9756),s=n(8170),l=n(9737),u=function(t){this.coordSysDims=[],this.axisMap=(0,i.nt)(),this.categoryAxisMap=(0,i.nt)(),this.coordSysName=t},c={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",s.US).models[0],r=t.getReferringComponents("yAxis",s.US).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",r),h(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),h(r)&&(i.set("y",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var o=t.getReferringComponents("singleAxis",s.US).models[0];e.coordSysDims=["single"],n.set("single",o),h(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",s.US).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",a),h(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),h(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,o){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,i.__)(a.parallelAxisIndex,function(t,i){var a=r.getComponent("parallelAxis",t),l=s[i];n.set(l,a),h(a)&&(o.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))})}};function h(t){return"category"===t.get("type")}var d=n(4310),p=n(5008),f=n(3071),g=n(3430);const m=function(t,e,n){n=n||{};var h,m=e.getSourceManager(),v=!1;t?(v=!0,h=(0,d.AF)(t)):v=(h=m.getSource()).sourceFormat===g.mK;var y=function(t){var e=t.get("coordinateSystem"),n=new u(e),i=c[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),_=function(t,e){var n,o=t.get("coordinateSystem"),r=l.A.get(o);return e&&e.coordSysDims&&(n=i.Tj(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var o=i.get("type");n.type=(0,a.B)(o)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,y),x=n.useEncodeDefaulter,S=i.Tn(x)?x:x?i.cF(f.OC,_,e):null,b={coordDimensions:_,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:S,canOmitUnusedDimensions:!v},w=(0,r.A)(h,b),M=function(t,e,n){var o,r;return n&&i.__(t,function(t,i){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==o&&(o=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==o||(t[o].otherDims.itemName=0),o}(w.dimensions,n.createInvertedIndices,y),I=v?null:m.getSharedDataStore(w),A=(0,p.iJ)(e,{schema:w,store:I}),T=new o.A(w,e);T.setCalculationInfo(A);var C=null!=M&&function(t){if(t.sourceFormat===g.mK){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!i.cy((0,s.vj)(e))}}(h)?function(t,e,n,i){return i===M?n:this.defaultDimValueGetter(t,e,n,i)}:null;return T.hasItemOption=!1,T.initData(v?h:I,null,C),T}},2731(t,e,n){n.d(e,{A:()=>a});var i=n(7351),o=n(2675),r=n(8026);function a(t,e,n){e=(0,r.cy)(e)&&{coordDimensions:e}||(0,r.X$)({encodeDefine:t.getEncode()},e);var a=t.getSource(),s=(0,i.A)(a,e).dimensions,l=new o.A(s,t);return l.initData(a,n),l}},4532(t,e,n){n.d(e,{T:()=>a,i:()=>r});var i=n(8267),o=n(8026);function r(t,e){var n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o){var r=(0,i.QE)(t,e,n[0]);return null!=r?r+"":null}if(o){for(var a=[],s=0;s<n.length;s++)a.push((0,i.QE)(t,e,n[s]));return a.join(" ")}}function a(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,o.cy)(e))return e+"";for(var i=[],r=0;r<n.length;r++){var a=t.getDimensionIndex(n[r]);a>=0&&i.push(e[a])}return i.join(" ")}},9446(t,e,n){n.d(e,{i:()=>r});var i=n(8026),o=n(5558);function r(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;(0,i.cy)(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,i.Tj)(r,function(t){return(0,o.lo)(t,a)})}}},5671(t,e,n){n.d(e,{a:()=>tt});var i=n(1635),o=n(1854),r=n(4278),a=n(2103),s=n(3870),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,i.C6)(e,t),e.prototype.getInitialData=function(t){return(0,o.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new s.A,n=(0,a.v5)("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,l=.8*t.itemHeight,u=(0,a.v5)(r,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);e.add(u),u.setStyle(t.itemStyle);var c="inherit"===t.iconRotate?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(r.A);const u=l;var c=n(8026),h=n(8386),d=n(128),p=n(5008);function f(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:(0,c.Et)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(o,n),a=i.dim,s=o.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,d=(0,c.Tj)(t.dimensions,function(t){return e.mapDimension(t)}),f=!1,g=e.getCalculationInfo("stackResultDimension");return(0,p.sJ)(e,d[0])&&(f=!0,d[0]=g),(0,p.sJ)(e,d[1])&&(f=!0,d[1]=g),{dataDimsForPoint:d,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function g(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var r=t.baseDataOffset,a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var m=n(8957),v=n(9668),y=n(5638),_=n(9766),x=n(8170),S=n(1950),b=n(4863),w=n(9259),M=Math.min,I=Math.max;function A(t,e){return isNaN(t)||isNaN(e)}function T(t,e,n,i,o,r,a,s,l){for(var u,c,h,d,p,f,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=o||g<0)break;if(A(v,y)){if(l){g+=r;continue}break}if(g===n)t[r>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var _=v-u,x=y-c;if(_*_+x*x<.5){g+=r;continue}if(a>0){for(var S=g+r,b=e[2*S],w=e[2*S+1];b===v&&w===y&&m<i;)m++,g+=r,b=e[2*(S+=r)],w=e[2*S+1],_=(v=e[2*g])-u,x=(y=e[2*g+1])-c;var T=m+1;if(l)for(;A(b,w)&&T<i;)T++,b=e[2*(S+=r)],w=e[2*S+1];var C=.5,D=0,L=0,k=void 0,P=void 0;if(T>=i||A(b,w))p=v,f=y;else{D=b-u,L=w-c;var O=v-u,N=b-v,R=y-c,E=w-y,z=void 0,V=void 0;if("x"===s){var B=D>0?1:-1;p=v-B*(z=Math.abs(O))*a,f=y,k=v+B*(V=Math.abs(N))*a,P=y}else if("y"===s){var G=L>0?1:-1;p=v,f=y-G*(z=Math.abs(R))*a,k=v,P=y+G*(V=Math.abs(E))*a}else z=Math.sqrt(O*O+R*R),p=v-D*a*(1-(C=(V=Math.sqrt(N*N+E*E))/(V+z))),f=y-L*a*(1-C),P=y+L*a*C,k=M(k=v+D*a*C,I(b,v)),P=M(P,I(w,y)),k=I(k,M(b,v)),f=y-(L=(P=I(P,M(w,y)))-y)*z/V,p=M(p=v-(D=k-v)*z/V,I(u,v)),f=M(f,I(c,y)),k=v+(D=v-(p=I(p,M(u,v))))*V/z,P=y+(L=y-(f=I(f,M(c,y))))*V/z}t.bezierCurveTo(h,d,p,f,v,y),h=k,d=P}else t.lineTo(v,y)}u=v,c=y,g+=r}return m}var C=function(){this.smooth=0,this.smoothConstraint=!0},D=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new C},e.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;o>0&&A(n[2*o-2],n[2*o-1]);o--);for(;i<o&&A(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=T(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=b.A.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:if(u=o[l++],c=o[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var m=a?(c-i)*g+i:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,i=c;break;case r.C:u=o[l++],c=o[l++],h=o[l++],d=o[l++],p=o[l++],f=o[l++];var v=a?(0,w._E)(n,u,h,p,t,s):(0,w._E)(i,c,d,f,t,s);if(v>0)for(var y=0;y<v;y++){var _=s[y];if(_<=1&&_>=0)return m=a?(0,w.Yb)(i,c,d,f,_):(0,w.Yb)(n,u,h,p,_),a?[t,m]:[m,t]}n=p,i=f}}},e}(S.Ay),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(C),k=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new L},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;r>0&&A(n[2*r-2],n[2*r-1]);r--);for(;o<r&&A(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=T(t,n,o,r,r,1,e.smooth,a,e.connectNulls);T(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},e}(S.Ay),P=n(6666),O=n(5235),N=n(1849),R=n(4833),E=n(9632),z=n(4532),V=n(9622),B=n(3412),G=n(7698);function F(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function H(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function W(t,e){var n=H(t),i=n[0],o=n[1],r=H(e),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function X(t){return c.Et(t)?t:t?.5:0}function U(t,e,n,i,o){var r=n.getBaseAxis(),a="x"===r.dim||"radius"===r.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(o){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Z(t,e){return isNaN(t)||isNaN(e)}function Y(t,e){return[t[2*e],t[2*e+1]]}function $(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<R.BV.length;e++)if(t.get([R.BV[e],"endLabel","show"]))return!0;return!1}function K(t,e,n,i){if((0,N.g)(e,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=$(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),c=(0,O.SM)(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return(0,O.Mi)(e,n,i)}var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.init=function(){var t=new s.A,e=new h.A;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=c.oI(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,o=this.group,r=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=r.getLayout("points")||[],u="polar"===i.type,h=this._coordSys,p=this._symbolDraw,_=this._polyline,x=this._polygon,S=this._lineGroup,b=!e.ssr&&t.get("animation"),w=!s.isEmpty(),M=s.get("origin"),I=f(i,r,M),A=w&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=(0,m.J)(2*i),r=0;r<i;r++){var a=g(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(i,r,I),T=t.get("showSymbol"),C=t.get("connectNulls"),D=T&&!u&&function(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var r=n.getAxesByScale("ordinal")[0];if(r&&(!o||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*d.A.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(r,e))){var a=e.mapDimension(r.dim),s={};return c.__(r.getViewLabels(),function(t){var e=r.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,r,i),L=this._data;L&&L.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),L.setItemGraphicEl(e,null))}),T||p.remove(),o.add(S);var k,P=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(k=i.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var O=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(o=s&&s.coordDim)||"y"===o){r=i[a];break}}if(r){var l=e.getAxis(o),u=c.Tj(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,d=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord,o=(n-i)/(e.coord-i);return{coord:n,color:(0,G.Cc)(o,[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(u,"x"===o?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?d[1]?d[1]:u[h-1].color:d[0]?d[0]:u[0].color;var g=p[0].coord-10,m=p[f-1].coord+10,y=m-g;if(y<.001)return"transparent";c.__(p,function(t){t.offset=(t.coord-g)/y}),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var _=new v.A(0,0,0,0,p,!0);return _[o]=g,_[o+"2"]=m,_}}}(r,i,n)||r.getVisual("style")[r.getVisual("drawType")];if(_&&h.type===i.type&&P===this._step){w&&!x?x=this._newPolygon(l,A):x&&!w&&(S.remove(x),x=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,(0,B.he)(O));var N=S.getClipPath();if(N){var E=K(this,i,!1,t);y.LW(N,{shape:E.shape},t)}else S.setClipPath(K(this,i,!0,t));T&&p.updateData(r,{isIgnore:D,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),F(this._stackedOnPoints,A)&&F(this._points,l)||(b?this._doUpdateAnimation(r,A,i,n,P,M,C):(P&&(A&&(A=U(A,l,i,P,C)),l=U(l,null,i,P,C)),_.setShape({points:l}),x&&x.setShape({points:l,stackedOnPoints:A})))}else T&&p.updateData(r,{isIgnore:D,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),b&&this._initSymbolLabelAnimation(r,i,k),P&&(A&&(A=U(A,l,i,P,C)),l=U(l,null,i,P,C)),_=this._newPolyline(l),w?x=this._newPolygon(l,A):x&&(S.remove(x),x=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,(0,B.he)(O)),S.setClipPath(K(this,i,!0,t));var z=t.getModel("emphasis"),H=z.get("focus"),W=z.get("blurScope"),Z=z.get("disabled");_.useStyle(c.NT(a.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),(0,R.Mx)(_,t,"lineStyle"),_.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(_.getState("emphasis").style.lineWidth=+_.style.lineWidth+1),(0,V.z)(_).seriesIndex=t.seriesIndex,(0,R.Lm)(_,H,W,Z);var Y=X(t.get("smooth")),$=t.get("smoothMonotone");if(_.setShape({smooth:Y,smoothMonotone:$,connectNulls:C}),x){var q=r.getCalculationInfo("stackedOnSeries"),j=0;x.useStyle(c.NT(s.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),q&&(j=X(q.get("smooth"))),x.setShape({smooth:Y,stackedOnSmooth:j,smoothMonotone:$,connectNulls:C}),(0,R.Mx)(x,t,"areaStyle"),(0,V.z)(x).seriesIndex=t.seriesIndex,(0,R.Lm)(x,H,W,Z)}var J=this._changePolyState;r.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=r,this._coordSys=i,this._stackedOnPoints=A,this._points=l,this._step=P,this._valueOrigin=M,t.get("triggerLineEvent")&&(this.packEventData(t,_),x&&this.packEventData(t,x))},e.prototype.packEventData=function(t,e){(0,V.z)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=x.le(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],u=a[2*r+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new d.A(o,r)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else P.A.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var o=t.getData(),r=x.le(o,i);if(this._changePolyState("normal"),null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else P.A.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,R.Pk)(this._polyline,t),e&&(0,R.Pk)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new D({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new k({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,r=e.getBaseAxis(),a=r.inverse;"cartesian2d"===e.type?(i=r.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===r.dim,o=!0);var s=t.hostModel,l=s.get("animationDuration");c.Tn(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=c.Tn(u)?u(null):u;t.eachItemGraphicEl(function(t,r){var s=t;if(s){var d=[t.x,t.y],p=void 0,f=void 0,g=void 0;if(n)if(o){var m=n,v=e.pointToCoord(d);i?(p=m.startAngle,f=m.endAngle,g=-v[1]/180*Math.PI):(p=m.r0,f=m.r,g=v[0])}else{var y=n;i?(p=y.x,f=y.x+y.width,g=t.x):(p=y.y+y.height,f=y.y,g=t.y)}var _=f===p?0:(g-p)/(f-p);a&&(_=1-_);var x=c.Tn(u)?u(r):l*_+h,S=s.getSymbolPath(),b=S.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),S.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if($(t)){var o=t.getData(),r=this._polyline,a=o.getLayout("points");if(!a)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new _.Ay({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&Z(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&((0,E.qM)(r,(0,E.lx)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?(0,z.T)(o,n):(0,z.i)(o,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),o=n.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:t.get("align")||r,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=r.get("precision"),p=r.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?p:0)*(m?-1:1),S=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}else i=o;return{range:[s,l],t:(e-i)/(o-i)}}(u,y,b),M=w.range,I=M[1]-M[0],A=void 0;if(I>=1){if(I>1&&!h){var T=Y(u,M[0]);s.attr({x:T[0]+_,y:T[1]+S}),o&&(A=c.getRawValue(M[0]))}else{(T=l.getPointOn(y,b))&&s.attr({x:T[0]+_,y:T[1]+S});var C=c.getRawValue(M[0]),D=c.getRawValue(M[1]);o&&(A=x.Il(n,d,C,D,w.t))}i.lastFrameIndex=M[0]}else{var L=1===t||i.lastFrameIndex>0?M[0]:0;T=Y(u,L),o&&(A=c.getRawValue(L)),s.attr({x:T[0]+_,y:T[1]+S})}if(o){var k=(0,E.Lu)(s);"function"==typeof k.setLabelText&&k.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,o,r,a){for(var s=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],p=[],v=[],y=f(o,e,a),_=t.getLayout("points")||[],x=e.getLayout("points")||[],S=0;S<s.length;S++){var b=s[S],w=!0,M=void 0,I=void 0;switch(b.cmd){case"=":M=2*b.idx,I=2*b.idx1;var A=_[M],T=_[M+1],C=x[I],D=x[I+1];(isNaN(A)||isNaN(T))&&(A=C,T=D),l.push(A,T),u.push(C,D),c.push(n[M],n[M+1]),h.push(i[I],i[I+1]),v.push(e.getRawIndex(b.idx1));break;case"+":var L=b.idx,k=y.dataDimsForPoint,P=o.dataToPoint([e.get(k[0],L),e.get(k[1],L)]);I=2*L,l.push(P[0],P[1]),u.push(x[I],x[I+1]);var O=g(y,o,e,L);c.push(O[0],O[1]),h.push(i[I],i[I+1]),v.push(e.getRawIndex(L));break;case"-":w=!1}w&&(d.push(b),p.push(p.length))}p.sort(function(t,e){return v[t]-v[e]});var N=l.length,R=(0,m.J)(N),E=(0,m.J)(N),z=(0,m.J)(N),V=(0,m.J)(N),B=[];for(S=0;S<p.length;S++){var G=p[S],F=2*S,H=2*G;R[F]=l[H],R[F+1]=l[H+1],E[F]=u[H],E[F+1]=u[H+1],z[F]=c[H],z[F+1]=c[H+1],V[F]=h[H],V[F+1]=h[H+1],B[S]=d[G]}return{current:R,next:E,stackedOnCurrent:z,stackedOnNext:V,status:B}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,v=c.stackedOnNext;if(o&&(d=U(c.stackedOnCurrent,c.current,n,o,a),h=U(c.current,null,n,o,a),v=U(c.stackedOnNext,c.next,n,o,a),p=U(c.next,null,n,o,a)),W(h,p)>3e3||l&&W(d,v)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:v})));s.shape.__points=c.current,s.shape.points=h;var _={shape:{points:p}};c.current!==h&&(_.shape.__points=c.next),s.stopAnimation(),y.oi(s,_,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),y.oi(l,{shape:{stackedOnPoints:v}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var x=[],S=c.status,b=0;b<S.length;b++)if("="===S[b].cmd){var w=t.getItemGraphicEl(S[b].idx1);w&&x.push({el:w,ptIdx:b})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<x.length;e++){var n=x[e].el,i=2*x[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(P.A);const j=q;var J=n(682),Q=n(7959);function tt(t){t.registerChartView(j),t.registerSeriesModel(u),t.registerLayout((0,J.A)("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(0,Q.A)("line"))}},491(t,e,n){n.d(e,{a:()=>H});var i=n(6884),o=n(4326),r=n(4253),a=n(8026),s=n(4863),l=n(8170),u=2*Math.PI,c=Math.PI/180;function h(t,e){return r.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function d(t,e){var n=h(t,e),i=t.get("center"),r=t.get("radius");a.cy(r)||(r=[0,r]);var s,l,u=(0,o.lo)(n.width,e.getWidth()),c=(0,o.lo)(n.height,e.getHeight()),d=Math.min(u,c),p=(0,o.lo)(r[0],d/2),f=(0,o.lo)(r[1],d/2),g=t.coordinateSystem;if(g){var m=g.dataToPoint(i);s=m[0]||0,l=m[1]||0}else a.cy(i)||(i=[i,i]),s=(0,o.lo)(i[0],u)+n.x,l=(0,o.lo)(i[1],c)+n.y;return{cx:s,cy:l,r0:p,r:f}}function p(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=h(t,n),a=d(t,n),l=a.cx,p=a.cy,g=a.r,m=a.r0,v=-t.get("startAngle")*c,y=t.get("endAngle"),_=t.get("padAngle")*c;y="auto"===y?v-u:-y*c;var x=t.get("minAngle")*c+_,S=0;e.each(i,function(t){!isNaN(t)&&S++});var b=e.getSum(i),w=Math.PI/(b||S)*2,M=t.get("clockwise"),I=t.get("roseType"),A=t.get("stillShowZeroSum"),T=e.getDataExtent(i);T[0]=0;var C=M?1:-1,D=[v,y],L=C*_/2;(0,s.q)(D,!M),v=D[0],y=D[1];var k=f(t);k.startAngle=v,k.endAngle=y,k.clockwise=M;var P=Math.abs(y-v),O=P,N=0,R=v;if(e.setLayout({viewRect:r,r:g}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:l,cy:p,r0:m,r:I?NaN:g});else{(i="area"!==I?0===b&&A?w:t*w:P/S)<x?(i=x,O-=x):N+=t;var r=R+C*i,a=0,s=0;_>i?s=a=R+C*i/2:(a=R+L,s=r-L),e.setItemLayout(n,{angle:i,startAngle:a,endAngle:s,clockwise:M,cx:l,cy:p,r0:m,r:I?(0,o.Cb)(t,T,[m,g]):g}),R=r}}),O<u&&S)if(O<=.001){var E=P/S;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=E;var o=0,r=0;E<_?r=o=v+C*(n+.5)*E:(o=v+C*n*E+L,r=v+C*(n+1)*E-L),i.startAngle=o,i.endAngle=r}})}else w=O/N,R=v,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),o=i.angle===x?x:t*w,r=0,a=0;o<_?a=r=R+C*o/2:(r=R+L,a=R+C*o-L),i.startAngle=r,i.endAngle=a,R+=C*o}})})}var f=(0,l.$r)(),g=n(8587),m=n(1635),v=n(9766),y=n(5638),_=n(9195),x=n(5014),S=n(4833),b=n(6666),w=n(6346),M=n(2621),I=n(7175),A=Math.PI/180;function T(t,e,n,i,o,r,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}(0,I.Xe)(t,l,l+a)&&function(t){for(var r={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:r,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*o,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(r),p(a)}(t)}function p(t){for(var r=t.rB,a=r*r,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/a)*h)),p=e+(d+l.len2)*o,f=p-l.label.x;C(l,l.targetTextWidth-f*o,!0),l.label.x=p}}}function C(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,o=i.style,r=t.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=r.width+(a?0:l);if(e<c||n){var h=r.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var m=(i.style.margin||0)+2.1;r.height=g.height+m,r.y-=(r.height-h)/2}}}function D(t){return"center"===t.position}var L=n(9632),k=n(9446),P=function(t){function e(e,n,i){var o=t.call(this)||this;o.z2=2;var r=new v.Ay;return o.setTextContent(r),o.updateData(e,n,i,!0),o}return(0,m.C6)(e,t),e.prototype.updateData=function(t,e,n,i){var o=this,r=t.hostModel,s=t.getItemModel(e),l=s.getModel("emphasis"),u=t.getItemLayout(e),c=(0,a.X$)((0,k.i)(s.getModel("itemStyle"),u,!0),u);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var h=r.getShallow("animationType");r.ecModel.ssr?(y.LW(o,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===h?(o.shape.r=u.r0,y.LW(o,{shape:{r:u.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),y.LW(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},r,e)):(o.shape.endAngle=u.startAngle,y.oi(o,{shape:{endAngle:u.endAngle}},r,e))}else(0,y.ap)(o),y.oi(o,{shape:c},r,e);o.useStyle(t.getItemVisual(e,"style")),(0,S.Mx)(o,s);var d=(u.startAngle+u.endAngle)/2,p=r.get("selectedOffset"),f=Math.cos(d)*p,g=Math.sin(d)*p,m=s.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(r,t,e),o.ensureState("emphasis").shape=(0,a.X$)({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},(0,k.i)(l.getModel("itemStyle"),u)),(0,a.X$)(o.ensureState("select"),{x:f,y:g,shape:(0,k.i)(s.getModel(["select","itemStyle"]),u)}),(0,a.X$)(o.ensureState("blur"),{shape:(0,k.i)(s.getModel(["blur","itemStyle"]),u)});var v=o.getTextGuideLine(),_=o.getTextContent();v&&(0,a.X$)(v.ensureState("select"),{x:f,y:g}),(0,a.X$)(_.ensureState("select"),{x:f,y:g}),(0,S.Lm)(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,o=e.getItemModel(n),r=o.getModel("labelLine"),s=e.getItemVisual(n,"style"),l=s&&s.fill,u=s&&s.opacity;(0,L.qM)(i,(0,L.lx)(o),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:u,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new _.A,this.setTextGuideLine(d)),(0,M.eR)(this,(0,M.rv)(o),{stroke:l,opacity:(0,a.WV)(r.get(["lineStyle","opacity"]),u,1)})}},e}(x.A),O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,m.C6)(e,t),e.prototype.render=function(t,e,n,i){var r,s=t.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var c=s.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<s.count();++h)c=s.getItemLayout(h);c&&(r=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===s.count()&&t.get("showEmptyCircle")){var p=f(t),g=new x.A({shape:(0,a.X$)(d(t,n),p)});g.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=g,u.add(g)}s.diff(l).add(function(t){var e=new P(s,t,r);s.setItemGraphicEl(t,e),u.add(e)}).update(function(t,e){var n=l.getItemGraphicEl(e);n.updateData(s,t,r),n.off("click"),u.add(n),s.setItemGraphicEl(t,n)}).remove(function(e){var n=l.getItemGraphicEl(e);y.t5(n,t,e)}).execute(),function(t){var e,n,i=t.getData(),r=[],s=!1,l=(t.get("minShowLabelAngle")||0)*A,u=i.getLayout("viewRect"),c=i.getLayout("r"),h=u.width,d=u.x,p=u.y,f=u.height;function g(t){t.ignore=!0}i.each(function(t){var u=i.getItemGraphicEl(t),p=u.shape,f=u.getTextContent(),m=u.getTextGuideLine(),v=i.getItemModel(t),y=v.getModel("label"),_=y.get("position")||v.get(["emphasis","label","position"]),x=y.get("distanceToLabelLine"),S=y.get("alignTo"),b=(0,o.lo)(y.get("edgeDistance"),h),M=y.get("bleedMargin"),I=v.getModel("labelLine"),A=I.get("length");A=(0,o.lo)(A,h);var T=I.get("length2");if(T=(0,o.lo)(T,h),Math.abs(p.endAngle-p.startAngle)<l)return(0,a.__)(f.states,g),f.ignore=!0,void(m&&((0,a.__)(m.states,g),m.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var C,D,L,k,P=(p.startAngle+p.endAngle)/2,O=Math.cos(P),N=Math.sin(P);e=p.cx,n=p.cy;var R="inside"===_||"inner"===_;if("center"===_)C=p.cx,D=p.cy,k="center";else{var E=(R?(p.r+p.r0)/2*O:p.r*O)+e,z=(R?(p.r+p.r0)/2*N:p.r*N)+n;if(C=E+3*O,D=z+3*N,!R){var V=E+O*(A+c-p.r),B=z+N*(A+c-p.r),G=V+(O<0?-1:1)*T;C="edge"===S?O<0?d+b:d+h-b:G+(O<0?-x:x),D=B,L=[[E,z],[V,B],[G,B]]}k=R?"center":"edge"===S?O>0?"right":"left":O>0?"left":"right"}var F=Math.PI,H=0,W=y.get("rotate");if((0,a.Et)(W))H=W*(F/180);else if("center"===_)H=0;else if("radial"===W||!0===W)H=O<0?-P+F:-P;else if("tangential"===W&&"outside"!==_&&"outer"!==_){var X=Math.atan2(O,N);X<0&&(X=2*F+X),N>0&&(X=F+X),H=X-F}if(s=!!H,f.x=C,f.y=D,f.rotation=H,f.setStyle({verticalAlign:"middle"}),R){f.setStyle({align:k});var U=f.states.select;U&&(U.x+=f.x,U.y+=f.y)}else{var Z=f.getBoundingRect().clone();Z.applyTransform(f.getComputedTransform());var Y=(f.style.margin||0)+2.1;Z.y-=Y/2,Z.height+=Y,r.push({label:f,labelLine:m,position:_,len:A,len2:T,minTurnAngle:I.get("minTurnAngle"),maxSurfaceAngle:I.get("maxSurfaceAngle"),surfaceNormal:new w.A(O,N),linePoints:L,textAlign:k,labelDistance:x,labelAlignTo:S,edgeDistance:b,bleedMargin:M,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:f.style.width})}u.setTextConfig({inside:R})}}),!s&&t.get("avoidLabelOverlap")&&function(t,e,n,i,o,r,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;D(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++)if(!D(m=t[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;p=m.label;var f,g=m.linePoints;f="edge"===m.labelAlignTo?p.x<e?g[2][0]-m.labelDistance-a-m.edgeDistance:a+o-m.edgeDistance-g[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?p.x<e?c-a-m.bleedMargin:a+o-h-m.bleedMargin:p.x<e?p.x-a-m.bleedMargin:a+o-p.x-m.bleedMargin,m.targetTextWidth=f,C(m,f)}for(T(u,e,n,i,1,0,r,0,s,h),T(l,e,n,i,-1,0,r,0,s,c),d=0;d<t.length;d++){var m;if(!D(m=t[d])&&m.linePoints){p=m.label,g=m.linePoints;var v="edge"===m.labelAlignTo,y=p.style.padding,_=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:_,S=m.rect.width+x,b=g[1][0]-g[2][0];v?p.x<e?g[2][0]=a+m.edgeDistance+S+m.labelDistance:g[2][0]=a+o-m.edgeDistance-S-m.labelDistance:(p.x<e?g[2][0]=p.x+m.labelDistance:g[2][0]=p.x-m.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=p.y}}}(r,e,n,c,h,f,d,p);for(var m=0;m<r.length;m++){var v=r[m],y=v.label,_=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&((0,a.__)(y.states,g),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(_){var b=v.linePoints;x||!b?((0,a.__)(_.states,g),_.ignore=!0):((0,M.YI)(b,v.minTurnAngle),(0,M.QK)(b,v.surfaceNormal,v.maxSurfaceAngle),_.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new w.A(b[0][0],b[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=s)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,o=t[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},e.type="pie",e}(b.A);const N=O;var R=n(2731),E=n(3071),z=n(8239),V=n(4278),B=l.$r(),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,m.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new z.A(a.oI(this.getData,this),a.oI(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return(0,R.A)(this,{coordDimensions:["value"],encodeDefaulter:a.cF(E.ln,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=B(n),r=i.seats;if(!r){var a=[];n.each(n.mapDimension("value"),function(t){a.push(t)}),r=i.seats=(0,o.kM)(a,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,e);return s.percent=r[e]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){l.M5(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(V.A);const F=G;function H(t){t.registerChartView(N),t.registerSeriesModel(F),(0,i.I)("pie",t.registerAction),t.registerLayout((0,a.cF)(p,"pie")),t.registerProcessor((0,g.A)("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!((0,a.Et)(i)&&!isNaN(i)&&i<0)})}})}},5652(t,e,n){n.d(e,{a:()=>q});var i=n(3087),o=n(8026);function r(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();o.__(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=a(r)?r:s(i)})}),e.each(function(t){var r=o.I6(n[t],function(t){return a(t)})||s(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])})}})}function a(t){return!isNaN(t[0])&&!isNaN(t[1])}function s(t){return[t.cx,t.cy]}var l=n(8587);function u(t){var e=t.polar;if(e){o.cy(e)||(e=[e]);var n=[];o.__(e,function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],o.cy(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}o.__(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}var c=n(1635),h=n(3199),d=n(2505),p=n(9195),f=n(5638),g=n(3870),m=n(4833),v=n(2103),y=n(6666),_=n(9632),x=n(540),S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,c.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),s=this._data;function l(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=v.xU(t.getItemVisual(e,"symbolSize")),o=v.v5(n,-1,-1,2,2),r=t.getItemVisual(e,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),o}}function u(e,n,i,o,r,a){i.removeAll();for(var s=0;s<n.length-1;s++){var u=l(o,r);u&&(u.__dimIdx=s,e[s]?(u.setPosition(e[s]),h[a?"initProps":"updateProps"](u,{x:n[s][0],y:n[s][1]},t,r)):u.setPosition(n[s]),i.add(u))}}function c(t){return o.Tj(t,function(t){return[i.cx,i.cy]})}a.diff(s).add(function(e){var n=a.getItemLayout(e);if(n){var i=new d.A,o=new p.A,r={shape:{points:n}};i.shape.points=c(n),o.shape.points=c(n),f.LW(i,r,t,e),f.LW(o,r,t,e);var s=new g.A,l=new g.A;s.add(o),s.add(i),s.add(l),u(o.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}}).update(function(e,n){var i=s.getItemGraphicEl(n),o=i.childAt(0),r=i.childAt(1),l=i.childAt(2),c={shape:{points:a.getItemLayout(e)}};c.shape.points&&(u(o.shape.points,c.shape.points,l,a,e,!1),(0,f.ap)(r),(0,f.ap)(o),f.oi(o,c,t),f.oi(r,c,t),a.setItemGraphicEl(e,i))}).remove(function(t){r.remove(s.getItemGraphicEl(t))}).execute(),a.eachItemGraphicEl(function(t,e){var n=a.getItemModel(e),i=t.childAt(0),s=t.childAt(1),l=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill;r.add(t),i.useStyle(o.NT(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),(0,m.Mx)(i,n,"lineStyle"),(0,m.Mx)(s,n,"areaStyle");var h=n.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();s.ignore=d,o.__(["emphasis","select","blur"],function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();s.ensureState(t).ignore=i&&d}),s.useStyle(o.NT(h.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();l.eachChild(function(t){if(t instanceof x.Ay){var i=t.style;t.useStyle(o.X$({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},u))}else t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=o.o8(f);var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),(0,_.qM)(t,(0,_.lx)(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:u.opacity})}),(0,m.Lm)(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))}),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(y.A);const b=S;var w=n(4278),M=n(2731),I=n(8239),A=n(3961),T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,c.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new I.A(o.oI(this.getData,this),o.oI(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return(0,M.A)(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(t),s=""===a?this.name:a,l=(0,A.aw)(this,t);return(0,A.Qx)("section",{header:s,sortBlocks:!0,blocks:o.Tj(r,function(e){var n=i.get(i.mapDimension(e.dim),t);return(0,A.Qx)("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})})})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(o.Tj(n.dimensions,function(t){return e.mapDimension(t)}),t),r=0,a=i.length;r<a;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(w.A);const C=T;var D=n(3286),L=n(3172),k=n(2462),P=n(5915),O=D.A.value;function N(t,e){return o.NT({show:e},t)}var R=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,c.C6)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),a=this.get("axisLabel"),s=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=o.Tj(this.get("indicator")||[],function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=s;null!=d.color&&(p=o.NT({color:d.color},s));var f=o.h1(o.o8(d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:a,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(o.Kg(u)){var g=f.name;f.name=u.replace("{value}",null!=g?g:"")}else o.Tn(u)&&(f.name=u(f.name,f));var m=new L.A(f,null,this.ecModel);return o.co(m,k.L.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:o.h1({lineStyle:{color:"#bbb"}},O.axisLine),axisLabel:N(O.axisLabel,!1),axisTick:N(O.axisTick,!1),splitLine:N(O.splitLine,!0),splitArea:N(O.splitArea,!0),indicator:[]},e}(P.A);const E=R;var z=n(9598),V=n(1571),B=n(2933),G=n(9109),F=["axisLine","axisTickLabel","axisName"],H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,c.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=o.Tj(n,function(t){var n=t.model.get("showName")?t.name:"";return new z.A(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});o.__(i,function(t){o.__(F,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),a=t.getModel("splitArea"),s=r.getModel("lineStyle"),l=a.getModel("areaStyle"),u=r.get("show"),c=a.get("show"),f=s.get("color"),g=l.get("color"),m=o.cy(f)?f:[f],v=o.cy(g)?g:[g],y=[],_=[];if("circle"===i)for(var x=n[0].getTicksCoords(),S=e.cx,b=e.cy,w=0;w<x.length;w++)u&&y[k(y,m,w)].push(new V.A({shape:{cx:S,cy:b,r:x[w].coord}})),c&&w<x.length-1&&_[k(_,v,w)].push(new B.A({shape:{cx:S,cy:b,r0:x[w].coord,r:x[w+1].coord}}));else{var M,I=o.Tj(n,function(t,n){var i=t.getTicksCoords();return M=null==M?i.length-1:Math.min(i.length-1,M),o.Tj(i,function(t){return e.coordToPoint(t.coord,n)})}),A=[];for(w=0;w<=M;w++){for(var T=[],C=0;C<n.length;C++)T.push(I[C][w]);T[0]&&T.push(T[0].slice()),u&&y[k(y,m,w)].push(new p.A({shape:{points:T}})),c&&A&&_[k(_,v,w-1)].push(new d.A({shape:{points:T.concat(A)}})),A=T.slice().reverse()}}var D=s.getLineStyle(),L=l.getAreaStyle();o.__(_,function(t,e){this.group.add(h.mergePath(t,{style:o.NT({stroke:"none",fill:v[e%v.length]},L),silent:!0}))},this),o.__(y,function(t,e){this.group.add(h.mergePath(t,{style:o.NT({fill:"none",stroke:m[e%m.length]},D),silent:!0}))},this)}function k(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(G.A);const W=H,X=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.type="value",o.angle=0,o.name="",o}return(0,c.C6)(e,t),e}(n(912).A);var U=n(4562),Z=n(4326),Y=n(3486);const $=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,o.Tj)(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new X(n,new U.A);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var o,r=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(r-u.angle);c<a&&(o=u,s=l,a=c)}return[s,+(o&&o.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r)/2;this.cx=Z.lo(n[0],i),this.cy=Z.lo(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");((0,o.Kg)(s)||(0,o.Et)(s))&&(s=[0,s]),this.r0=Z.lo(s[0],a),this.r=Z.lo(s[1],a),(0,o.__)(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n},this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;(0,o.__)(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var a=e.getData();(0,o.__)(n,function(t){t.scale.unionExtentFromData(a,a.mapDimension(t.dim))})}},this);var r=i.get("splitNumber"),a=new U.A;a.setExtent(0,r),a.setInterval(1),(0,o.__)(n,function(t,e){(0,Y.m)(t.scale,t.model,a)})},t.prototype.convertToPixel=function(t,e,n){return null},t.prototype.convertFromPixel=function(t,e,n){return null},t.prototype.containPoint=function(t){return!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(o){var r=new t(o,e,n);i.push(r),o.coordinateSystem=r}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();function K(t){t.registerCoordinateSystem("radar",$),t.registerComponentModel(E),t.registerComponentView(W),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function q(t){(0,i.Y)(K),t.registerChartView(b),t.registerSeriesModel(C),t.registerLayout(r),t.registerProcessor((0,l.A)("radar")),t.registerPreprocessor(u)}},2003(t,e,n){n.d(e,{a:()=>b});var i=n(3087),o=n(1635),r=n(1854),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,o.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,r.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(n(4278).A);const s=a;var l=n(8386),u=n(9308),c=n(1950),h=n(3870),d=n(2103),p=n(9622),f=function(){},g=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,o.C6)(e,t),e.prototype.getDefaultShape=function(){return new f},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,s=t.getContext?t.getContext():t,l=s&&o[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(a.x=c-o[0]/2,a.y=h-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,o=this._ctx,r=this.softClipShape;if(o){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,o=n.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-r/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+r&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,o=i[0],r=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,h=0;h<n.length;){var d=n[h++],p=n[h++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(p,s),c=Math.max(p,c)}t=this._rect=new u.A(a-o/2,s-r/2,l-a+o,c-s+r)}return t},e}(c.Ay),m=function(){function t(){this.group=new h.A}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],o=e.getLayout("points"),r=i&&i.shape.points;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new g({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,d.v5)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var r=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=(0,p.z)(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const v=m;var y=n(682),_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=(0,y.A)("").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new v:new l.A,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(n(6666).A);const x=_;var S=n(9294);function b(t){(0,i.Y)(S.a),t.registerSeriesModel(s),t.registerChartView(x),t.registerLayout((0,y.A)("scatter"))}},9598(t,e,n){n.d(e,{A:()=>M});var i=n(8026),o=n(3199),r=n(3870),a=n(9766),s=n(2861),l=n(9622),u=n(9632),c=n(3172),h=n(4326),d=n(2103),p=n(7968),f=n(3509),g=n(9742),m=n(7175),v=Math.PI,y=function(){function t(t,e){this.group=new r.A,this.opt=e,this.axisModel=t,(0,i.NT)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new r.A({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!_[t]},t.prototype.add=function(t){_[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,o,r=(0,h._7)(e-t);return(0,h.dh)(r)?(o=n>0?"top":"bottom",i="center"):(0,h.dh)(r-v)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=r>0&&r<v?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),_={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if("auto"===a&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),a){var l=e.axis.getExtent(),u=r.transform,c=[l[0],0],h=[l[1],0],p=c[0]>h[0];u&&((0,f.NW)(c,c,u),(0,f.NW)(h,h,u));var g=(0,i.X$)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),m=new s.A({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});o.subPixelOptimizeLine(m.shape,m.style.lineWidth),m.anid="line",n.add(m);var v=e.get(["axisLine","symbol"]);if(null!=v){var y=e.get(["axisLine","symbolSize"]);(0,i.Kg)(v)&&(v=[v,v]),((0,i.Kg)(y)||(0,i.Et)(y))&&(y=[y,y]);var _=(0,d.hV)(e.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];(0,i.__)([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,i){if("none"!==v[i]&&null!=v[i]){var o=(0,d.v5)(v[i],-x/2,-S/2,x,S,g.stroke,!0),r=e.r+e.offset,a=p?h:c;o.attr({rotation:e.rotate,x:a[0]+r*Math.cos(t.rotation),y:a[1]-r*Math.sin(t.rotation),silent:!0,z2:11}),n.add(o)}})}}},axisTickLabel:function(t,e,n,r){var s=function(t,e,n,o){var r=n.axis,a=n.getModel("axisTick"),s=a.get("show");if("auto"===s&&o.handleAutoShown&&(s=o.handleAutoShown("axisTick")),s&&!r.scale.isBlank()){for(var l=a.getModel("lineStyle"),u=o.tickDirection*a.get("length"),c=w(r.getTicksCoords(),e.transform,u,(0,i.NT)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}(n,r,e,t),h=function(t,e,n,r){var s=n.axis;if((0,i.Je)(r.axisLabelShow,n.get(["axisLabel","show"]))&&!s.scale.isBlank()){var h=n.getModel("axisLabel"),d=h.get("margin"),p=s.getViewLabels(),f=((0,i.Je)(r.labelRotate,h.get("rotate"))||0)*v/180,g=y.innerTextLayout(r.rotation,f,r.labelDirection),m=n.getCategories&&n.getCategories(!0),_=[],x=y.isLabelSilent(n),S=n.get("triggerEvent");return(0,i.__)(p,function(f,v){var b="ordinal"===s.scale.type?s.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,w=f.formattedLabel,M=f.rawLabel,I=h;if(m&&m[b]){var A=m[b];(0,i.Gv)(A)&&A.textStyle&&(I=new c.A(A.textStyle,h,n.ecModel))}var T=I.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=s.dataToCoord(b),D=I.getShallow("align",!0)||g.textAlign,L=(0,i.bZ)(I.getShallow("alignMinLabel",!0),D),k=(0,i.bZ)(I.getShallow("alignMaxLabel",!0),D),P=I.getShallow("verticalAlign",!0)||I.getShallow("baseline",!0)||g.textVerticalAlign,O=(0,i.bZ)(I.getShallow("verticalAlignMinLabel",!0),P),N=(0,i.bZ)(I.getShallow("verticalAlignMaxLabel",!0),P),R=new a.Ay({x:C,y:r.labelOffset+r.labelDirection*d,rotation:g.rotation,silent:x,z2:10+(f.level||0),style:(0,u.VB)(I,{text:w,align:0===v?L:v===p.length-1?k:D,verticalAlign:0===v?O:v===p.length-1?N:P,fill:(0,i.Tn)(T)?T("category"===s.type?M:"value"===s.type?b+"":b,v):T})});if(R.anid="label_"+b,o.setTooltipConfig({el:R,componentModel:n,itemName:w,formatterParamsExtra:{isTruncated:function(){return R.isTruncated},value:M,tickIndex:v}}),S){var E=y.makeAxisEventDataBase(n);E.targetType="axisLabel",E.value=M,E.tickIndex=v,"category"===s.type&&(E.dataIndex=b),(0,l.z)(R).eventData=E}e.add(R),R.updateTransform(),_.push(R),t.add(R),R.decomposeTransform()}),_}}(n,r,e,t);if(function(t,e,n){if(!(0,g.PJ)(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);n=n||[];var r=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(x(r),x(u)):S(r,a)&&(i?(x(a),x(c)):(x(r),x(u))),!1===o?(x(s),x(h)):S(l,s)&&(o?(x(l),x(d)):(x(s),x(h)))}}(e,h,s),function(t,e,n,o){var r=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!r.scale.isBlank()){var s=r.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=o*a.get("length"),c=(0,i.NT)(l.getLineStyle(),(0,i.NT)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=w(s[h],e.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)t.add(d[p])}}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var d=(0,m.os)((0,i.Tj)(h,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}));(0,m.If)(d)}},axisName:function(t,e,n,r){var s=(0,i.Je)(t.axisName,e.get("name"));if(s){var c,d,p=e.get("nameLocation"),f=t.nameDirection,g=e.getModel("nameTextStyle"),m=e.get("nameGap")||0,_=e.axis.getExtent(),x=_[0]>_[1]?-1:1,S=["start"===p?_[0]-x*m:"end"===p?_[1]+x*m:(_[0]+_[1])/2,b(p)?t.labelOffset+f*m:0],w=e.get("nameRotate");null!=w&&(w=w*v/180),b(p)?c=y.innerTextLayout(t.rotation,null!=w?w:t.rotation,f):(c=function(t,e,n,i){var o,r,a=(0,h._7)(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return(0,h.dh)(a-v/2)?(r=l?"bottom":"top",o="center"):(0,h.dh)(a-1.5*v)?(r=l?"top":"bottom",o="center"):(r="middle",o=a<1.5*v&&a>v/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:r}}(t.rotation,p,w||0,_),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var M=g.getFont(),I=e.get("nameTruncate",!0)||{},A=I.ellipsis,T=(0,i.Je)(t.nameTruncateMaxWidth,I.maxWidth,d),C=new a.Ay({x:S[0],y:S[1],rotation:c.rotation,silent:y.isLabelSilent(e),style:(0,u.VB)(g,{text:s,font:M,overflow:"truncate",width:T,ellipsis:A,fill:g.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(o.setTooltipConfig({el:C,componentModel:e,itemName:s}),C.__fullText=s,C.anid="name",e.get("triggerEvent")){var D=y.makeAxisEventDataBase(e);D.targetType="axisName",D.name=s,(0,l.z)(C).eventData=D}r.add(C),C.updateTransform(),n.add(C),C.decomposeTransform()}}};function x(t){t&&(t.ignore=!0)}function S(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=p.D_([]);return p.e$(o,o,-t.rotation),n.applyTransform(p.lK([],o,t.getLocalTransform())),i.applyTransform(p.lK([],o,e.getLocalTransform())),n.intersect(i)}}function b(t){return"middle"===t||"center"===t}function w(t,e,n,i,r){for(var a=[],l=[],u=[],c=0;c<t.length;c++){var h=t[c].coord;l[0]=h,l[1]=0,u[0]=h,u[1]=n,e&&((0,f.NW)(l,l,e),(0,f.NW)(u,u,e));var d=new s.A({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:i,z2:2,autoBatch:!0,silent:!0});o.subPixelOptimizeLine(d.shape,d.style.lineWidth),d.anid=r+"_"+t[c].tickValue,a.push(d)}return a}const M=y},2480(t,e,n){n.d(e,{A:()=>l});var i=n(1635),o=n(9890),r=n(9109),a={},s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&o.h_(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=o.mg(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){a[t]=e},e.getAxisPointerClass=function(t){return t&&a[t]},e.type="axis",e}(r.A);const l=s},6333(t,e,n){n.d(e,{A:()=>r});var i=n(8026),o=n(8170);function r(t,e){var n,r=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=o.le(s,t);if(null==l||l<0||i.cy(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)if(t.isStacked){var h=c.getBaseAxis(),d=c.getOtherAxis(h).dim,p=h.dim,f="x"===d||"radius"===d?1:0,g=s.mapDimension(p),m=[];m[f]=s.get(g,l),m[1-f]=s.get(s.getCalculationInfo("stackResultDimension"),l),r=c.dataToPoint(m)||[]}else r=c.dataToPoint(s.getValues(i.Tj(c.dimensions,function(t){return s.mapDimension(t)}),l))||[];else if(u){var v=u.getBoundingRect().clone();v.applyTransform(u.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:u}}},4784(t,e,n){n.d(e,{h:()=>c,k:()=>s});var i=n(8026),o=n(8123),r=(0,n(8170).$r)(),a=i.__;function s(t,e,n){if(!o.A.node){var s=e.getZr();r(s).records||(r(s).records={}),function(t,e){function n(n,i){t.on(n,function(n){var o=function(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);a(r(t).records,function(t){t&&i(t,n,o.dispatchAction)}),function(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(o.pendings,e)})}r(t).initialized||(r(t).initialized=!0,n("click",i.cF(u,"click")),n("mousemove",i.cF(u,"mousemove")),n("globalout",l))}(s,e),(r(s).records[t]||(r(s).records[t]={})).handler=n}}function l(t,e,n){t.handler("leave",null,n)}function u(t,e,n,i){e.handler(t,n,i)}function c(t,e){if(!o.A.node){var n=e.getZr();(r(n).records||{})[t]&&(r(n).records[t]=null)}}},9694(t,e,n){n.d(e,{a:()=>X});var i=n(2480),o=n(1635),r=n(8026),a=n(3870),s=n(3199),l=n(9766),u=n(5638),c=n(9890),h=n(5452),d=n(4711),p=n(8170),f=(0,p.$r)(),g=r.o8,m=r.oI,v=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,t,e,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var p=r.cF(y,e,d);this.updatePointerEl(l,c,p),this.updateLabelEl(l,c,p,e)}else l=this._group=new a.A,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),n.getZr().add(l);b(l,e,!0),this._renderHandle(o)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,r=e.get("snap");if(!r&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&i.getBandWidth()>a)return!0;if(r){var s=c.Yc(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,o){},t.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var r=f(t).pointerEl=new s[o.type](g(e.pointer));t.add(r)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var o=f(t).labelEl=new l.Ay(g(e.label));t.add(o),x(o,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=f(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var o=f(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),x(o,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,a=n.getModel("handle"),l=n.get("status");if(!a.get("show")||!l||"hide"===l)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=s.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){h.ds(t.event)},onmousedown:m(this._onHandleDragMove,this,0,0),drift:m(this._onHandleDragMove,this),ondragend:m(this._onHandleDragEnd,this)}),i.add(o)),b(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");r.cy(u)||(u=[u,u]),o.scaleX=u[0]/2,o.scaleY=u[1]/2,d.N(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){y(this._axisPointerModel,!e&&this._moveAnimation,this._handle,S(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(S(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(S(i)),f(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),d.IU(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function y(t,e,n,i){_(f(n).lastProp,i)||(f(n).lastProp=i,e?u.oi(n,i,t):(n.stopAnimation(),n.attr(i)))}function _(t,e){if(r.Gv(t)&&r.Gv(e)){var n=!0;return r.__(e,function(e,i){n=n&&_(t[i],e)}),!!n}return t===e}function x(t,e){t[e.get(["label","show"])?"show":"hide"]()}function S(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function b(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}const w=v;var M=n(3686),I=n(6878),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,o.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.grid,s=i.get("type"),l=T(a,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var c=M.bY(i),h=C[s](r,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=I.Zp(a.model,n);M.DA(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=I.Zp(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=M.Tc(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),s=T(r,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(w);function T(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var C={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:M.MU([e,n[0]],[e,n[1]],D(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:M.cU([e-i/2,n[0]],[i,o],D(t))}}};function D(t){return"x"===t.dim?0:1}const L=A;var k=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(n(5915).A);const P=k;var O=n(4784),N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";O.k("axisPointer",n,function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){O.h("axisPointer",e)},e.prototype.dispose=function(t,e){O.h("axisPointer",e)},e.type="axisPointer",e}(n(9109).A);const R=N;var E=n(6333),z=(0,p.$r)();function V(t,e,n){var i=t.currTrigger,o=[t.x,t.y],a=t,s=t.dispatchAction||(0,r.oI)(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){W(o)&&(o=(0,E.A)({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=W(o),c=a.axesInfo,h=l.axesInfo,d="leave"===i||W(o),p={},f={},g={list:[],map:{}},m={showPointer:(0,r.cF)(G,f),showTooltip:(0,r.cF)(F,g)};(0,r.__)(l.coordSysMap,function(t,e){var n=u||t.containPoint(o);(0,r.__)(l.coordSysAxesInfo[e],function(t,e){var i=t.axis,r=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);if(!d&&n&&(!c||r)){var a=r&&r.value;null!=a||u||(a=i.pointToData(o)),null!=a&&B(t,a,m,!1,p)}})});var v={};return(0,r.__)(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&(0,r.__)(n.axesInfo,function(e,i){var o=f[i];if(e!==t&&o){var r=o.value;n.mapper&&(r=t.axis.scale.parse(n.mapper(r,H(e),H(t)))),v[t.key]=r}})}),(0,r.__)(v,function(t,e){B(h[e],t,m,!0,p)}),function(t,e,n){var i=n.axesInfo=[];(0,r.__)(e,function(e,n){var o=e.axisPointerModel.option,r=t[n];r?(!e.useHandle&&(o.status="show"),o.value=r.value,o.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})})}(f,h,p),function(t,e,n,i){if(!W(e)&&t.list.length){var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(g,o,t,s),function(t,e,n){var i=n.getZr(),o="axisPointerLastHighlights",a=z(i)[o]||{},s=z(i)[o]={};(0,r.__)(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,r.__)(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t})});var l=[],u=[];(0,r.__)(a,function(t,e){!s[e]&&u.push(t)}),(0,r.__)(s,function(t,e){!a[e]&&l.push(t)}),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}(h,0,n),p}}function B(t,e,n,i,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var s=function(t,e){var n=e.axis,i=n.dim,o=t,a=[],s=Number.MAX_VALUE,l=-1;return(0,r.__)(e.seriesModels,function(e,u){var c,h,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,n);h=p.dataIndices,c=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=s&&((g<s||f>=0&&l<0)&&(s=g,l=f,o=c,a.length=0),(0,r.__)(h,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:o}}(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==o.seriesIndex&&(0,r.X$)(o,l[0]),!i&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l),n.showTooltip(t,s,u)}else n.showPointer(t,e)}function G(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function F(t,e,n,i){var o=n.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,u=c.og(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function H(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function W(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function X(t){i.A.registerAxisPointerClass("CartesianAxisPointer",L),t.registerComponentModel(P),t.registerComponentView(R),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,r.cy)(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=(0,c.Fo)(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},V)}},9890(t,e,n){n.d(e,{Fo:()=>r,Yc:()=>l,h_:()=>s,mg:()=>u,og:()=>h});var i=n(3172),o=n(8026);function r(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),s=e.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];(0,o.__)(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var d=h(n.model),p=t.coordSysAxesInfo[d]={};t.coordSysMap[d]=n;var f=n.model.getModel("tooltip",r);if((0,o.__)(n.getAxes(),(0,o.cF)(y,!1,null)),n.getTooltipAxes&&r&&f.get("show")){var g="axis"===f.get("trigger"),m="cross"===f.get(["axisPointer","type"]),v=n.getTooltipAxes(f.get(["axisPointer","axis"]));(g||m)&&(0,o.__)(v.baseAxes,(0,o.cF)(y,!m||"cross",g)),m&&(0,o.__)(v.otherAxes,(0,o.cF)(y,"cross",!1))}}function y(r,d,g){var m=g.model.getModel("axisPointer",s),v=m.get("show");if(v&&("auto"!==v||r||c(m))){null==d&&(d=m.get("triggerTooltip")),m=r?function(t,e,n,r,a,s){var l=e.getModel("axisPointer"),u={};(0,o.__)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=(0,o.o8)(l.get(t))}),u.snap="category"!==t.type&&!!s,"cross"===l.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===a){var h=l.get(["label","show"]);if(c.show=null==h||h,!s){var d=u.lineStyle=l.get("crossStyle");d&&(0,o.NT)(c,d.textStyle)}}return t.model.getModel("axisPointer",new i.A(u,n,r))}(g,f,s,e,r,d):m;var y=m.get("snap"),_=m.get("triggerEmphasis"),x=h(g.model),S=d||y||"category"===g.type,b=t.axesInfo[x]={key:x,axis:g,coordSys:n,axisPointerModel:m,triggerTooltip:d,triggerEmphasis:_,involveSeries:S,snap:y,useHandle:c(m),seriesModels:[],linkGroup:null};p[x]=b,t.seriesInvolved=t.seriesInvolved||S;var w=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(a(r[i+"AxisId"],n.id)||a(r[i+"AxisIndex"],n.componentIndex)||a(r[i+"AxisName"],n.name))return o}}(l,g);if(null!=w){var M=u[w]||(u[w]={axesInfo:{}});M.axesInfo[x]=b,M.mapper=l[w].mapper,b.linkGroup=M}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&(0,o.__)(t.coordSysAxesInfo[h(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}function a(t,e){return"all"===t||(0,o.cy)(t)&&(0,o.qh)(t,e)>=0||t===e}function s(t){var e=l(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,o=n.option,r=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=c(n);null==r&&(o.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),o.value=a,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[h(t)]}function u(t){var e=l(t);return e&&e.axisPointerModel}function c(t){return!!t.get(["handle","show"])}function h(t){return t.type+"||"+t.id}},3686(t,e,n){n.d(e,{DA:()=>f,MU:()=>g,Tc:()=>p,_F:()=>d,bY:()=>h,cU:()=>m});var i=n(8026),o=n(3199),r=n(5558),a=n(3412),s=n(7968),l=n(9742),u=n(9598),c=n(9632);function h(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function d(t,e,n,o,r){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:r.precision}),s=r.formatter;if(s){var u={value:l.Dt(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.__(o,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=e&&e.getDataParams(i);o&&u.seriesData.push(o)}),i.Kg(s)?a=s.replace("{value}",a):i.Tn(s)&&(a=s(u))}return a}function p(t,e,n){var i=s.vt();return s.e$(i,i,n.rotation),s.Tl(i,i,n.position),o.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function f(t,e,n,i,o,s){var l=u.A.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),function(t,e,n,i,o){var s=d(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=a.QX(l.get("padding")||0),h=l.getFont(),p=r.NO(s,h),f=o.position,g=p.width+u[1]+u[3],m=p.height+u[0]+u[2],v=o.align;"right"===v&&(f[0]-=g),"center"===v&&(f[0]-=g/2);var y=o.verticalAlign;"bottom"===y&&(f[1]-=m),"middle"===y&&(f[1]-=m/2),function(t,e,n,i){var o=i.getWidth(),r=i.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,r)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(f,g,m,i);var _=l.get("backgroundColor");_&&"auto"!==_||(_=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:(0,c.VB)(l,{text:s,font:h,fill:l.getTextColor(),padding:u,backgroundColor:_}),z2:10}}(e,i,o,s,{position:p(i.axis,t,n),align:l.textAlign,verticalAlign:l.textVerticalAlign})}function g(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function m(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},9747(t,e,n){n.d(e,{a:()=>_t});var i=n(3087),o=n(1635),r=n(8026),a=n(5915),s=["x","y","radius","angle","single"],l=["cartesian2d","polar","singleAxis"];function u(t){return t+"Axis"}function c(t){var e=t.ecModel,n={infoList:[],infoMap:(0,r.nt)()};return t.eachTargetAxis(function(t,i){var o=e.getComponent(u(t),i);if(o){var r=o.getCoordSysModel();if(r){var a=r.uid,s=n.infoMap.get(a);s||(s={model:r,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(o)}}}),n}var h=n(8170),d=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,o.C6)(e,t),e.prototype.init=function(t,e,n){var i=f(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=f(t);(0,r.h1)(this.option,t,!0),(0,r.h1)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,r.__)([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,r.nt)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,r.__)(s,function(n){var i=this.getReferringComponents(u(n),h.UW);if(i.specified){e=!0;var o=new d;(0,r.__)(i.models,function(t){o.add(t.componentIndex)}),t.set(n,o)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var o="vertical"===e?"y":"x";a(n.findComponents({mainType:o+"Axis"}),o)}function a(e,n){var o=e[0];if(o){var a=new d;if(a.add(o.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var s=o.getReferringComponents("grid",h.US).models[0];s&&(0,r.__)(e,function(t){o.componentIndex!==t.componentIndex&&s===t.getReferringComponents("grid",h.US).models[0]&&a.add(t.componentIndex)})}}}i&&a(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&(0,r.__)(s,function(e){if(i){var o=n.findComponents({mainType:u(e),filter:function(t){return"category"===t.get("type",!0)}});if(o[0]){var r=new d;r.add(o[0].componentIndex),t.set(e,r),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,r.__)([["start","startValue"],["end","endValue"]],function(i,o){var r=null!=t[i[0]],a=null!=t[i[1]];r&&!a?e[o]="percent":!r&&a?e[o]="value":n?e[o]=n[o]:r&&(e[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(u(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){(0,r.__)(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(u(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,r.__)([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,r.__)(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(a.A);function f(t){var e={};return(0,r.__)(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}const g=p;var m=n(2616),v=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.type="dataZoom.inside",e.defaultOption=(0,m.G_)(g.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(g);const y=v;var _=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(n(9109).A);const x=_;var S=n(8983),b=n(7861),w=n(5452),M=n(8052),I="\0_ec_interaction_mutex";function A(t,e){return!!function(t){return t[I]||(t[I]={})}(t)[e]}function T(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(w.ds(i.event),C(t,e,n,i,o))}function C(t,e,n,i,o){o.isAvailableBehavior=(0,r.oI)(D,null,n,i),t.trigger(e,o)}function D(t,e,n){var i=n[t];return!t||i&&(!(0,r.Kg)(i)||e.event[i+"Key"])}M.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},r.lQ);const L=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,r.oI)(n._mousedownHandler,n),o=(0,r.oI)(n._mousemoveHandler,n),a=(0,r.oI)(n._mouseupHandler,n),s=(0,r.oI)(n._mousewheelHandler,n),l=(0,r.oI)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,r.NT)((0,r.o8)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",l)},n}return(0,o.C6)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!w.W5(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&D("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!A(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,o=this._y,r=e-i,a=n-o;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&w.ds(t.event),C(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){w.W5(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=D("zoomOnMouseWheel",t,this._opt),n=D("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=o>3?1.4:o>1?1.2:1.1;T(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:r,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);T(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){A(this._zr,"globalPan")||T(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(b.A);var k=n(4711),P=(0,h.$r)();function O(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function N(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function R(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,o.C6)(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){P(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}(i,e,{pan:(0,r.oI)(z.pan,this),zoom:(0,r.oI)(z.zoom,this),scrollMove:(0,r.oI)(z.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=P(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||O(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(x),z={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a){var s=B[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return(0,S.A)(0,r,[0,100],0,c.minSpan,c.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:V(function(t,e,n,i,o,r){var a=B[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:V(function(t,e,n,i,o,r){return B[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function V(t){return function(e,n,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,o);return(0,S.A)(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}}}var B={grid:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const G=E;var F=n(4326),H=n(9742),W=n(2262),X=r.__,U=F.Y6;const Z=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(function(t){var e=t.get("coordinateSystem");return(0,r.qh)(l,e)>=0}(e)){var n=u(this._dimName),i=e.getReferringComponents(n,h.US).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return r.o8(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[],s=[];X(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===o[u]?(null==c&&(c=r[u]),h=i.parse(F.Cb(c,r,n))):(e=!0,h=null==h?n[u]:i.parse(h),c=F.Cb(h,n,r)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?r[u]:c}),U(s),U(a);var l=this._minMaxSpan;function u(t,e,n,o,r){var a=r?"Span":"ValueSpan";(0,S.A)(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=F.Cb(t[s],n,o,!0),r&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,r,!1):u(a,s,r,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];X(n,function(t){(0,H.PN)(i,t.getData(),e)});var o=t.getAxisModel(),r=(0,W.Tc)(o.axis.scale,o,i).calculate();return[r.min,r.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&X(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===o){var s=e.getStore(),l=r.Tj(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,o,r=0;r<i.length;r++){var u=s.get(l[r],t),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(o=!0),h&&(e=!0),d&&(n=!0)}return o&&e&&n})}else X(i,function(n){if("empty"===o)t.setData(e=e.map(n,function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN}));else{var i={};i[n]=a,e.selectRange(i)}});X(i,function(t){e.setApproximateExtent(a,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;X(["min","max"],function(i){var o=e.get(i+"Span"),r=e.get(i+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?o=F.Cb(n[0]+r,n,[0,100],!0):null!=o&&(r=F.Cb(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=r},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=F.hb(n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},t}(),Y={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,o){var r=t.getComponent(u(i),o);e(i,o,r,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new Z(e,i,r,t),n.push(o.__dzAxisProxy))});var i=(0,r.nt)();return(0,r.__)(n,function(t){(0,r.__)(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var $=!1;function K(t){$||($=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Y),function(t){t.registerAction("dataZoom",function(t,e){var n=function(t,e){var n,i=(0,r.nt)(),o=[],a=(0,r.nt)();t.eachComponent({mainType:"dataZoom",query:e},function(t){a.get(t.uid)||l(t)});do{n=!1,t.eachComponent("dataZoom",s)}while(n);function s(t){!a.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var o=i.get(t);o&&o[n]&&(e=!0)}),e}(t)&&(l(t),n=!0)}function l(t){a.set(t.uid,!0),o.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return o}(e,t);(0,r.__)(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function q(t){K(t),t.registerComponentModel(y),t.registerComponentView(G),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=P(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,r.nt)());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){var n=c(t);(0,r.__)(n.infoList,function(n){var o=n.model.uid,a=i.get(o)||i.set(o,function(t,e){var n={model:e,containsPoint:(0,r.cF)(R,e),dispatchAction:(0,r.cF)(N,t),dataZoomInfoMap:null,controller:null},i=n.controller=new L(t.getZr());return(0,r.__)(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(o){if(e.isAvailableBehavior(o.model.option)){var r=(o.getRange||{})[t],a=r&&r(o.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!o.model.get("disabled",!0)&&a&&i.push({dataZoomId:o.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(a.dataZoomInfoMap||(a.dataZoomInfoMap=(0,r.nt)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,o=t.dataZoomInfoMap;if(o){var r=o.keys()[0];null!=r&&(e=o.get(r))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return t.each(function(t){var r=t.model,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),o=o&&r.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}(o);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),k.N(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else O(i,t)})})}(t)}var j=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,m.G_)(g.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(g);const J=j;var Q=n(10),tt=n(3870),et=n(2505),nt=n(9195),it=n(9766),ot=n(3199),rt=n(6346),at=n(4253),st=n(4833),lt=n(2103),ut=n(9632),ct=Q.A,ht="horizontal",dt="vertical",pt=["line","bar","candlestick","scatter"],ft={easing:"cubicOut",duration:100,delay:0},gt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,o.C6)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,r.oI)(this._onBrush,this),this._onBrushEnd=(0,r.oI)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,o){if(t.prototype.render.apply(this,arguments),k.N(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){k.IU(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new tt.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===ht?{right:o.width-i.x-i.width,top:o.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},s=at.vs(t.option);(0,r.__)(["right","top","width","height"],function(t){"ph"===s[t]&&(s[t]=a[t])});var l=at.dV(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===dt&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==ht||o?n===ht&&o?{scaleY:a?1:-1,scaleX:-1}:n!==dt||o?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([r]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new ct({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ct({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,r.oI)(this._onClickPanel,this)}),a=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),a=r&&o.getDimensionInfo(r)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=o.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),v=0,y=Math.round(o.count()/e[0]);o.each([a],function(t,e){if(y>0&&e%y)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:(0,F.Cb)(t,u,d,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,h=n}}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,x=0;x<3;x++){var S=b(1===x);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function b(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new tt.A,i=new et.A({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new nt.A({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(o,a){var s=t.getAxisProxy(o,a).getTargetSeriesModels();(0,r.__)(s,function(t){if(!(n||!0!==e&&(0,r.qh)(pt,t.get("type"))<0)){var s,l=i.getComponent(u(o),a).axis,c={x:"y",y:"x",radius:"angle",angle:"radius"}[o],h=t.coordinateSystem;null!=c&&h.getOtherAxis&&(s=h.getOtherAxis(l).inverse),c=t.getData().mapDimension(c),n={thisAxis:l,series:t,thisDim:o,otherDim:c,otherAxisInverse:s}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],o=this._displayables.sliderGroup,a=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,c=s.get("brushSelect"),h=e.filler=new ct({silent:c,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new ct({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,r.__)([0,1],function(e){var a=s.get("handleIcon");!lt.$V[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var l=(0,lt.v5)(a,-1,0,2,2,null,!0);l.attr({cursor:mt(this._orient),draggable:!0,drift:(0,r.oI)(this._onDragMove,this,e),ondragend:(0,r.oI)(this._onDragEnd,this),onmouseover:(0,r.oI)(this._showDataInfo,this,!0),onmouseout:(0,r.oI)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=s.get("handleSize");this._handleHeight=(0,F.lo)(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(s.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,st.iJ)(l);var h=s.get("handleColor");null!=h&&(l.style.fill=h),o.add(n[e]=l);var d=s.getModel("textStyle"),p=(s.get("handleLabel")||{}).show||!1;t.add(i[e]=new it.Ay({silent:!0,invisible:!p,style:(0,ut.VB)(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=h;if(c){var p=(0,F.lo)(s.get("moveHandleSize"),a[1]),f=e.moveHandle=new Q.A({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:p}}),g=.8*p,m=e.moveHandleIcon=(0,lt.v5)(s.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=a[1]+p/2-.5,f.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(a[1]/2,Math.max(p,10));(d=e.moveZone=new Q.A({invisible:!0,shape:{y:a[1]-v,height:p+v}})).on("mouseover",function(){l.enterEmphasis(f)}).on("mouseout",function(){l.leaveEmphasis(f)}),o.add(f),o.add(m),o.add(d)}d.attr({draggable:!0,cursor:mt(this._orient),drift:(0,r.oI)(this._onDragMove,this,"all"),ondragstart:(0,r.oI)(this._showDataInfo,this,!0),ondragend:(0,r.oI)(this._onDragEnd,this),onmouseover:(0,r.oI)(this._showDataInfo,this,!0),onmouseout:(0,r.oI)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,F.Cb)(t[0],[0,100],e,!0),(0,F.Cb)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];(0,S.A)(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?(0,F.Cb)(r.minSpan,a,o,!0):null,null!=r.maxSpan?(0,F.Cb)(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=(0,F.Y6)([(0,F.Cb)(i[0],o,a,!0),(0,F.Cb)(i[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=(0,F.Y6)(n.slice()),o=this._size;(0,r.__)([0,1],function(t){var i=e.handles[t],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[t]+(t?-1:1),y:o[1]/2-r/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var s=e.dataShadowSegs,l=[0,i[0],i[1],o[0]],u=0;u<s.length;u++){var c=s[u],h=c.getClipPath();h||(h=new Q.A,c.setClipPath(h)),h.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,r=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();r=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,F.Y6)(this._handleEnds.slice());function h(t){var e=ot.getTransform(n.handles[t].parent,this.group),a=ot.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=ot.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:o===ht?"middle":a,align:o===ht?a:"center",text:r[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return(0,r.Tn)(i)?i(t,a):(0,r.Kg)(i)?i.replace("{value}",a):a},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,o=this._displayables,r=o.handleLabels;r[0].attr("invisible",!i),r[1].attr("invisible",!i),o.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](o.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,w.ds(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),r=ot.applyTransform([e,n],o,!0),a=this._updateInterval(t,r[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new rt.A(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=(0,F.Y6)([(0,F.Cb)(n.x,i,o,!0),(0,F.Cb)(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(w.ds(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ct({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var r=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(r.x,r.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?ft:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=c(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(x);function mt(t){return"vertical"===t?"ns-resize":"ew-resize"}const vt=gt;function yt(t){t.registerComponentModel(J),t.registerComponentView(vt),K(t)}function _t(t){(0,i.Y)(q),(0,i.Y)(yt)}},5620(t,e,n){n.d(e,{a:()=>a});var i=n(9294),o=n(9694),r=n(3087);function a(t){(0,r.Y)(i.a),(0,r.Y)(o.a)}},9294(t,e,n){n.d(e,{a:()=>j});var i=n(1635),o=n(9109),r=n(5915),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(r.A);const s=a;var l=n(10),u=n(8026),c=n(2462),h=n(8170),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",h.US).models[0]},e.type="cartesian2dAxis",e}(r.A);u.co(d,c.L);var p=n(3286),f=n(4253),g=n(5135),m={value:1,category:1,time:1,log:1};function v(t,e,n,o){(0,u.__)(m,function(r,a){var s=(0,u.h1)((0,u.h1)({},p.A[a],!0),o,!0),l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return(0,i.C6)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,f.ad)(this),i=n?(0,f.vs)(t):{},o=e.getTheme();(0,u.h1)(t,o.get(a+"Axis")),(0,u.h1)(t,this.getDefaultOption()),t.type=y(t),n&&(0,f.YA)(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=g.A.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=s,n}(n);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",y)}function y(t){return t.type||(t.data?"category":"value")}var _=n(9742),x=n(9308);const S=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return u.Tj(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),u.pb(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}();var b=n(7968),w=n(3509),M=["x","y"];function I(t){return"interval"===t.type||"time"===t.type}var A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=M,e}return(0,i.C6)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(I(t)&&I(e)){var n=t.getExtent(),i=e.getExtent(),o=this.dataToPoint([n[0],i[0]]),r=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(r[0]-o[0])/a,u=(r[1]-o[1])/s,c=o[0]-n[0]*l,h=o[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=(0,b.B8)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),o=this.getArea(),r=new x.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(r)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return(0,w.NW)(n,t,this._transform);var r=this.getAxis("x"),a=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(o,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return(0,w.NW)(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=o.coordToData(o.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,o=Math.min(n[0],n[1])-t,r=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-o+t;return new x.A(i,o,r,a)},e}(S);const T=A,C=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=o||"value",a.position=r||"bottom",a}return(0,i.C6)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(n(912).A);var D=n(6878),L=n(7071),k=n(3486),P=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=M,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=(0,u.HP)(t),i=n.length;if(i){for(var o=[],r=i-1;r>=0;r--){var a=t[+n[r]],s=a.model,l=a.scale;(0,L.rf)(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):((0,_.af)(l,s),(0,L.rf)(l)&&(e=a))}o.length&&(e||(e=o.pop(),(0,_.af)(e.scale,e.model)),(0,u.__)(o,function(t){(0,k.m)(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};(0,u.__)(n.x,function(t){N(n,"y",t,o)}),(0,u.__)(n.y,function(t){N(n,"x",t,o)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),r=(0,f.dV)(i,{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;function s(){(0,u.__)(a,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?r.x:r.y)})}s(),o&&((0,u.__)(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,_.Og)(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),s()),(0,u.__)(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}(0,u.Gv)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",h.US).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",h.US).models[0],a=t.gridModel,s=this._coordsList;return i?(e=i.coordinateSystem,(0,u.qh)(s,e)<0&&(e=null)):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,o=this,r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(O(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=r.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=r.left?"right":"left"),r[l]=!0;var u=new C(e,(0,_.f$)(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=o,u.index=i,o._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,(0,u.__)(a.x,function(e,n){(0,u.__)(a.y,function(o,r){var a="x"+n+"y"+r,s=new T(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(o)})})},t.prototype._updateScale=function(t,e){function n(t,e){(0,u.__)((0,_.wq)(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}(0,u.__)(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if((0,D.gO)(t)){var i=(0,D.LR)(t),o=i.xAxisModel,r=i.yAxisModel;if(!O(o,e)||!O(r,e))return;var a=this.getCartesian(o.componentIndex,r.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,u.__)(this.getCartesians(),function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),r=i.getOtherAxis(o);(0,u.qh)(e,o)<0&&e.push(o),(0,u.qh)(n,r)<0&&n.push(r)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(o,r){var a=new t(o,e,n);a.name="grid_"+r,a.resize(o,n,!0),o.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if((0,D.gO)(t)){var e=(0,D.LR)(t),n=e.xAxisModel,i=e.yAxisModel,o=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=M,t}();function O(t,e){return t.getCoordSysModel()===e}function N(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)R(r[l])&&(o=r[l]);else for(var u in r)if(r.hasOwnProperty(u)&&R(r[u])&&!i[c(r[u])]){o=r[u];break}o&&(i[c(o)]=!0)}function c(t){return t.dim+"_"+t.index}}function R(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,_.JJ)(t)}const E=P;var z=n(3870),V=n(3199),B=n(2861),G=n(9598),F=n(2480),H=(0,h.$r)(),W=["axisLine","axisTickLabel","axisName"],X=["splitArea","splitLine","minorSplitLine"],U=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i,o){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new z.A,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=D.Zp(a,e),l=new G.A(e,u.X$({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,L.rf)(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));u.__(W,l.add,l),this._axisGroup.add(l.getGroup()),u.__(X,function(t){e.get([t,"show"])&&Z[t](this,this._axisGroup,e,a)},this),o&&"changeAxisOrder"===o.type&&o.isInitSort||V.groupTransition(r,this._axisGroup,e),t.prototype.render.call(this,e,n,i,o)}},e.prototype.remove=function(){H(this).splitAreaColors=null},e.type="cartesianAxis",e}(F.A),Z={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color"),l=!1!==r.get("showMinLine"),c=!1!==r.get("showMaxLine");s=u.cy(s)?s:[s];for(var h=i.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:r}),g=[],m=[],v=a.getLineStyle(),y=0;y<f.length;y++){var _=o.toGlobalCoord(f[y].coord);if((0!==y||l)&&(y!==f.length-1||c)){var x=f[y].tickValue;d?(g[0]=_,g[1]=h.y,m[0]=_,m[1]=h.y+h.height):(g[0]=h.x,g[1]=_,m[0]=h.x+h.width,m[1]=_);var S=p++%s.length,b=new B.A({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:u.NT({stroke:s[S]},v),silent:!0});V.subPixelOptimizeLine(b.shape,v.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,n,i){var o=n.axis,r=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=o.isHorizontal(),l=o.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=r.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=o.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new B.A({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});V.subPixelOptimizeLine(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){!function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),c=i.coordinateSystem.getRect(),h=o.getTicksCoords({tickModel:r,clamp:!0});if(h.length){var d=s.length,p=H(t).splitAreaColors,f=u.nt(),g=0;if(p)for(var m=0;m<h.length;m++){var v=p.get(h[m].tickValue);if(null!=v){g=(v+(d-1)*m)%d;break}}var y=o.toGlobalCoord(h[0].coord),_=a.getAreaStyle();for(s=u.cy(s)?s:[s],m=1;m<h.length;m++){var x=o.toGlobalCoord(h[m].coord),S=void 0,b=void 0,w=void 0,M=void 0;o.isHorizontal()?(S=y,b=c.y,w=x-S,M=c.height,y=S+w):(S=c.x,b=y,w=c.width,y=b+(M=x-b));var I=h[m-1].tickValue;null!=I&&f.set(I,g),e.add(new l.A({anid:null!=I?"area_"+I:null,shape:{x:S,y:b,width:w,height:M},style:u.NT({fill:s[g]},_),autoBatch:!0,silent:!0})),g=(g+1)%d}H(t).splitAreaColors=f}}}(t,e,n,i)}},Y=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.type="xAxis",e}(U),$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Y.type,e}return(0,i.C6)(e,t),e.type="yAxis",e}(U),K=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,i.C6)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new l.A({shape:t.coordinateSystem.getRect(),style:(0,u.NT)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(o.A),q={offset:0};function j(t){t.registerComponentView(K),t.registerComponentModel(s),t.registerCoordinateSystem("cartesian2d",E),v(t,"x",d,q),v(t,"y",d,q),t.registerComponentView(Y),t.registerComponentView($),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}},8983(t,e,n){function i(t,e,n,i,a,s){t=t||0;var l=n[1]-n[0];if(null!=a&&(a=r(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===i){var u=Math.abs(e[1]-e[0]);u=r(u,[0,l]),a=s=r(u,[a,s]),i=0}e[0]=r(e[0],n),e[1]=r(e[1],n);var c=o(e,i);e[i]+=t;var h,d=a||0,p=n.slice();return c.sign<0?p[0]+=d:p[1]-=d,e[i]=r(e[i],p),h=o(e,i),null!=a&&(h.sign!==c.sign||h.span<a)&&(e[1-i]=e[i]+c.sign*a),h=o(e,i),null!=s&&h.span>s&&(e[1-i]=e[i]+h.sign*s),e}function o(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function r(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}n.d(e,{A:()=>i})},655(t,e,n){n.d(e,{a:()=>Y});var i=n(3087),o=n(1635),r=n(8026),a=n(3172),s=n(8170),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,o.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),r.cy(e)&&r.__(e,function(t,i){r.Kg(t)&&(t={type:t}),e[i]=r.h1(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var o,r=i.name;if(n.push(r),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):o=!0}else o=!0;o&&(0,s.O0)(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,o=r.nt(),l=r.Tj(i,function(t){return(r.Kg(t)||r.Et(t))&&(t={name:t}),o.get(t.name)?null:(o.set(t.name,!0),new a.A(t,this,this.ecModel))},this);this._data=r.pb(l,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;r.__(n,function(t){e[t.get("name")]=!1})}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;r.__(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;r.__(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.qh(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(n(5915).A);const u=l;var c=n(7698),h=n(3870),d=n(9766),p=n(10),f=n(3199),g=n(4833),m=n(9632),v=n(3412),y=n(4253),_=n(9109),x=n(2103),S=n(3538),b=n(9622),w=r.cF,M=r.__,I=h.A,A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,o.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new I),this.group.add(this._selectorGroup=new I),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,s,a,l);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),d=y.dV(u,c,h),f=this.layoutInner(t,o,d,i,s,l),g=y.dV(r.NT({width:f.width,height:f.height},u),c,h);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=v.QX(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new p.A({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,o,a,s){var l=this.getContentGroup(),u=r.nt(),h=e.get("selectedMode"),d=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&d.push(t.id)}),M(e.getData(),function(o,a){var s=o.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new I;return p.newline=!0,void l.add(p)}var f=n.getSeriesByName(s)[0];if(!u.get(s))if(f){var g=f.getData(),m=g.getVisual("legendLineStyle")||{},v=g.getVisual("legendIcon"),y=g.getVisual("style"),_=this._createItem(f,s,a,o,e,t,m,y,v,h,i);_.on("click",w(T,s,null,i,d)).on("mouseover",w(D,f.name,null,i,d)).on("mouseout",w(L,f.name,null,i,d)),n.ssr&&_.eachChild(function(t){var e=(0,b.z)(t);e.seriesIndex=f.seriesIndex,e.dataIndex=a,e.ssrType="legend"}),u.set(s,!0)}else n.eachRawSeries(function(l){if(!u.get(s)&&l.legendVisualProvider){var p=l.legendVisualProvider;if(!p.containName(s))return;var f=p.indexOfName(s),g=p.getItemVisual(f,"style"),m=p.getItemVisual(f,"legendIcon"),v=(0,c.qg)(g.fill);v&&0===v[3]&&(v[3]=.2,g=r.X$(r.X$({},g),{fill:(0,c.As)(v,"rgba")}));var y=this._createItem(l,s,a,o,e,t,{},g,m,h,i);y.on("click",w(T,null,s,i,d)).on("mouseover",w(D,null,s,i,d)).on("mouseout",w(L,null,s,i,d)),n.ssr&&y.eachChild(function(t){var e=(0,b.z)(t);e.seriesIndex=l.seriesIndex,e.dataIndex=a,e.ssrType="legend"}),u.set(s,!0)}},this)},this),o&&this._createSelector(o,e,i,a,s)},e.prototype._createSelector=function(t,e,n,i,o){var r=this.getSelectorGroup();M(t,function(t){var i=t.type,o=new d.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});r.add(o);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,m.qM)(o,{normal:a,emphasis:s},{defaultText:t.title}),(0,g.iJ)(o)})},e.prototype._createItem=function(t,e,n,i,o,a,s,l,u,c,h){var v,y,_,b=t.visualDrawType,w=o.get("itemWidth"),A=o.get("itemHeight"),T=o.isSelected(e),C=i.get("symbolRotate"),D=i.get("symbolKeepAspect"),L=i.get("icon"),k=function(t,e,n,i,o,r,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),M(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,S.w)(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[o]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===o?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(u=L||u||"roundRect",i,s,l,b,T,h),P=new I,O=i.getModel("textStyle");if(!r.Tn(t.getLegendIcon)||L&&"inherit"!==L){var N="inherit"===L&&t.getData().getVisual("symbol")?"inherit"===C?t.getData().getVisual("symbolRotate"):C:0;P.add((v={itemWidth:w,itemHeight:A,icon:u,iconRotate:N,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:D},y=v.icon||"roundRect",(_=(0,x.v5)(y,0,0,v.itemWidth,v.itemHeight,v.itemStyle.fill,v.symbolKeepAspect)).setStyle(v.itemStyle),_.rotation=(v.iconRotate||0)*Math.PI/180,_.setOrigin([v.itemWidth/2,v.itemHeight/2]),y.indexOf("empty")>-1&&(_.style.stroke=_.style.fill,_.style.fill="#fff",_.style.lineWidth=2),_))}else P.add(t.getLegendIcon({itemWidth:w,itemHeight:A,icon:u,iconRotate:C,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:D}));var R="left"===a?w+5:-5,E=a,z=o.get("formatter"),V=e;r.Kg(z)&&z?V=z.replace("{name}",null!=e?e:""):r.Tn(z)&&(V=z(e));var B=T?O.getTextColor():i.get("inactiveColor");P.add(new d.Ay({style:(0,m.VB)(O,{text:V,x:R,y:A/2,fill:B,align:E,verticalAlign:"middle"},{inheritColor:B})}));var G=new p.A({shape:P.getBoundingRect(),style:{fill:"transparent"}}),F=i.getModel("tooltip");return F.get("show")&&f.setTooltipConfig({el:G,componentModel:o,itemName:e,itemTooltipOption:F.option}),P.add(G),P.eachChild(function(t){t.silent=!0}),G.silent=!c,this.getContentGroup().add(P),(0,g.iJ)(P),P.__legendDataIndex=n,P},e.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();y.aP(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){y.aP("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===r?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-p]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(_.A);function T(t,e,n,i){L(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),D(t,e,n,i)}function C(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function D(t,e,n,i){C(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function L(t,e,n,i){C(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}const k=A;function P(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function O(t,e,n){var i="allSelect"===t||"inverseSelect"===t,o={},a=[];n.eachComponent({mainType:"legend",query:e},function(n){i?n[t]():n[t](e.name),N(n,o),a.push(n.componentIndex)});var s={};return n.eachComponent("legend",function(t){(0,r.__)(o,function(e,n){t[e?"select":"unSelect"](n)}),N(t,s)}),i?{selected:s,legendIndex:a}:{name:e.name,selected:s}}function N(t,e){var n=e||{};return(0,r.__)(t.getData(),function(e){var i=e.get("name");if("\n"!==i&&""!==i){var o=t.isSelected(i);(0,r.$3)(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function R(t){t.registerComponentModel(u),t.registerComponentView(k),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,P),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,r.cF)(O,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,r.cF)(O,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,r.cF)(O,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,r.cF)(O,"select")),t.registerAction("legendUnSelect","legendunselected",(0,r.cF)(O,"unSelect"))}(t)}var E=n(2616),z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var o=(0,y.vs)(e);t.prototype.init.call(this,e,n,i),V(this,e,o)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),V(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,E.G_)(u.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(u);function V(t,e,n){var i=[1,1];i[t.getOrient().index]=0,(0,y.YA)(e,n,{type:"box",ignoreSize:!!i})}const B=z;var G=n(5638),F=h.A,H=["width","height"],W=["x","y"],X=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,o.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new F),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new F)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,o,a,s,l){var u=this;t.prototype.renderInner.call(this,e,n,i,o,a,s,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=r.cy(h)?h:[h,h];m("pagePrev",0);var g=n.getModel("pageTextStyle");function m(t,e){var i=t+"DataIndex",a=f.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:r.oI(u._pageGo,u,i,n,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});a.name=t,c.add(a)}c.add(new d.Ay({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,o,a){var s=this.getSelectorGroup(),l=t.getOrient().index,u=H[l],c=W[l],h=H[1-l],d=W[1-l];o&&y.aP("horizontal",s,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),f=s.getBoundingRect(),g=[-f.x,-f.y],m=r.o8(n);o&&(m[u]=n[u]-f[u]-p);var v=this._layoutContentAndController(t,i,m,l,u,h,d,c);if(o){if("end"===a)g[l]+=v[u]+p;else{var _=f[u]+p;g[l]-=_,v[c]-=_}v[u]+=f[u]+p,g[1-l]+=v[d]+v[h]/2-f[h]/2,v[h]=Math.max(v[h],f[h]),v[d]=Math.min(v[d],f[d]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,o,a,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;y.aP(t.get("orient"),u,t.get("itemGap"),i?n.width:null,i?null:n.height),y.aP("horizontal",h,t.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),f=h.getBoundingRect(),g=this._showController=d[o]>n[o],m=[-d.x,-d.y];e||(m[i]=u[l]);var v=[0,0],_=[-f.x,-f.y],x=r.bZ(t.get("pageButtonGap",!0),t.get("itemGap",!0));g&&("end"===t.get("pageButtonPosition",!0)?_[i]+=n[o]-f[o]:v[i]+=f[o]+x),_[1-i]+=d[a]/2-f[a]/2,u.setPosition(m),c.setPosition(v),h.setPosition(_);var S={x:0,y:0};if(S[o]=g?n[o]:d[o],S[a]=Math.max(d[a],f[a]),S[s]=Math.min(0,f[s]+_[1-i]),c.__rectSize=n[o],g){var b={x:0,y:0};b[o]=Math.max(n[o]-f[o]-x,0),b[a]=S[a],c.setClipPath(new p.A({shape:b})),c.__rectSize=b[o]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&G.oi(u,{x:w.contentPosition[0],y:w.contentPosition[1]},g?t:null),this._updatePageInfoView(t,w),S},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;r.__(["pagePrev","pageNext"],function(i){var o=null!=e[i+"DataIndex"],r=n.childOfName(i);r&&(r.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=o?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,l=e.pageCount;i&&o&&i.setStyle("text",r.Kg(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):o({current:s,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=H[o],a=W[o],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[o]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)(v=y(l[f]))&&_(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[r],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,o){var r=i.__legendDataIndex;null==n&&null!=r&&(n=o),r===t&&(e=o)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(k);const U=X;function Z(t){(0,i.Y)(R),t.registerComponentModel(B),t.registerComponentView(U),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}function Y(t){(0,i.Y)(R),(0,i.Y)(Z)}},4064(t,e,n){n.d(e,{a:()=>g});var i=n(1635),o=n(8026),r=n(9766),a=n(10),s=n(9622),l=n(9632),u=n(4253),c=n(5915),h=n(9109),d=n(3412),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,i.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(c.A),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,c=t.getModel("textStyle"),h=t.getModel("subtextStyle"),p=t.get("textAlign"),f=o.bZ(t.get("textBaseline"),t.get("textVerticalAlign")),g=new r.Ay({style:(0,l.VB)(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),m=g.getBoundingRect(),v=t.get("subtext"),y=new r.Ay({style:(0,l.VB)(h,{text:v,fill:h.getTextColor(),y:m.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),_=t.get("link"),x=t.get("sublink"),S=t.get("triggerEvent",!0);g.silent=!_&&!S,y.silent=!x&&!S,_&&g.on("click",function(){(0,d.JW)(_,"_"+t.get("target"))}),x&&y.on("click",function(){(0,d.JW)(x,"_"+t.get("subtarget"))}),(0,s.z)(g).eventData=(0,s.z)(y).eventData=S?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(g),v&&i.add(y);var b=i.getBoundingRect(),w=t.getBoxLayoutParams();w.width=b.width,w.height=b.height;var M=(0,u.dV)(w,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));p||("middle"===(p=t.get("left")||t.get("right"))&&(p="center"),"right"===p?M.x+=M.width:"center"===p&&(M.x+=M.width/2)),f||("center"===(f=t.get("top")||t.get("bottom"))&&(f="middle"),"bottom"===f?M.y+=M.height:"middle"===f&&(M.y+=M.height/2),f=f||"top"),i.x=M.x,i.y=M.y,i.markRedraw();var I={align:p,verticalAlign:f};g.setStyle(I),y.setStyle(I),b=i.getBoundingRect();var A=M.margin,T=t.getItemStyle(["color","opacity"]);T.fill=t.get("backgroundColor");var C=new a.A({shape:{x:b.x-A[3],y:b.y-A[0],width:b.width+A[1]+A[3],height:b.height+A[0]+A[2],r:t.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(h.A);function g(t){t.registerComponentModel(p),t.registerComponentView(f)}},6641(t,e,n){n.d(e,{a:()=>tt});var i=n(9694),o=n(3087),r=n(1635),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(n(5915).A);const s=a;var l=n(8026),u=n(8123),c=n(5452),h=n(9687),d=n(3412);function p(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function f(t){if(u.A.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var g=f(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),m=f(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function v(t,e){if(!t)return e;e=(0,d.Cb)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var y=n(3961),_=v(m,"transition"),x=v(g,"transform"),S="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(u.A.transform3dSupported?"will-change:transform;":"");function b(t,e,n){var i=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!u.A.transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=u.A.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return n?"top:0;left:0;"+x+":"+a+";":[["top",0],["left",0],[g,a]]}function w(t,e,n,i,o){var r=e&&e.painter;if(n){var a=r&&r.getViewportRoot();a&&(0,h.lJ)(t,a,n,i,o)}else{t[0]=i,t[1]=o;var s=r&&r.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var M=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,u.A.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=e.appendTo,r=o&&((0,l.Kg)(o)?document.querySelector(o):(0,l.n_)(o)?o:(0,l.Tn)(o)&&o(t.getDom()));w(this._styleCoord,i,r,t.getWidth()/2,t.getHeight()/2),(r||t.getDom()).appendChild(n),this._api=t,this._container=r;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();(0,c.e0)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(r="position",(a=(o=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(o))?r?a[r]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var o,r,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=S+function(t,e,n){var i=[],o=t.get("transitionDuration"),r=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),c=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),p=t.getModel("textStyle"),f=(0,y.CO)(t,"html"),g=c+"px "+h+"px "+a+"px "+s;return i.push("box-shadow:"+g),e&&o&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,o="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,o+=u.A.transformSupported?","+x+i:",left"+i+",top"+i),_+":"+o}(o,n)),r&&i.push("background-color:"+r),(0,l.__)(["width","color","radius"],function(e){var n="border-"+e,o=(0,d.Cb)(n),r=t.get(o);null!=r&&i.push(n+":"+r+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var o=(0,l.bZ)(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+o+"px");var r=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return r&&a&&e.push("text-shadow:"+s+"px "+u+"px "+a+"px "+r),(0,l.__)(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(p)),null!=f&&i.push("padding:"+(0,d.QX)(f).join("px ")+"px"),i.join(";")+";"}(t,!this._firstShow,this._longHide)+b(o[0],o[1],!0)+"border-color:"+(0,d.he)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null!=t){var a="";if((0,l.Kg)(o)&&"item"===n.get("trigger")&&!p(n)&&(a=function(t,e,n){if(!(0,l.Kg)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),o=t.get("borderWidth");e=(0,d.he)(e);var r,a,s="left"===(r=n)?"right":"right"===r?"left":"top"===r?"bottom":"top",u=Math.max(1.5*Math.round(o),6),c="",h=x+":";(0,l.qh)(["left","right"],s)>-1?(c+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,f=u+o,g=f*Math.abs(Math.cos(p))+f*Math.abs(Math.sin(p)),m=e+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((g-Math.SQRT2*o)/2+Math.SQRT2*o-(g-f)/2))/100+"px")+";"+h+";","border-bottom:"+m,"border-right:"+m,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),(0,l.Kg)(t))r.innerHTML=t+a;else if(t){r.innerHTML="",(0,l.cy)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,l.n_)(t[s])&&t[s].parentNode!==r&&r.appendChild(t[s]);if(a&&r.childNodes.length){var u=document.createElement("div");u.innerHTML=a,r.appendChild(u)}}}else r.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(w(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,o=b(n[0],n[1]);(0,l.__)(o,function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",u.A.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,l.oI)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();const I=M;var A=n(9766),T=n(1025),C=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),k(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,o){var r=this;l.Gv(t)&&(0,T.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new A.Ay({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,y.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),l.__(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),l.__(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=L(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;k(i,this._zr,t,e),t=i[0],e=i[1];var o=n.style,r=D(o.borderWidth||0),a=L(o);n.x=t+r+a.left,n.y=e+r+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(l.oI(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function D(t){return Math.max(0,t)}function L(t){var e=D(t.shadowBlur||0),n=D(t.shadowOffsetX||0),i=D(t.shadowOffsetY||0);return{left:D(e-n),right:D(e+n),top:D(e-i),bottom:D(e+i)}}function k(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const P=C;var O=n(4326),N=n(10),R=n(6333),E=n(4253),z=n(3172),V=n(4784),B=n(9742),G=n(3686),F=n(8170),H=n(9109),W=n(5854),X=n(9622),U=n(9427),Z=n(7411),Y=n(4711),$=new N.A({shape:{x:-1,y:-1,width:2,height:2}}),K=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(e,t),e.prototype.init=function(t,e){if(!u.A.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=(0,F.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new P(e):new I(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!u.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,Y.N)(this,"_updatePosition",50,"fixRate"):(0,Y.IU)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");V.k("itemTooltip",this._api,(0,l.oI)(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,e,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!u.A.node&&n.getDom()){var o=j(i,n);this._ticket="";var r=i.dataByCoordSys,a=function(t,e,n){var i=(0,F.HB)(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,a=(0,F.JO)(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=(0,X.z)(e).tooltipConfig;if(n&&n.name===t.name)return r=e,!0}),r?{componentMainType:o,componentIndex:a.componentIndex,el:r}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=$;l.x=i.x,l.y=i.y,l.update(),(0,X.z)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},o)}else if(r)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:r,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=(0,R.A)(i,e),h=c.point[0],d=c.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(j(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){var s=e.getSeriesByIndex(o);if(s&&"axis"===q([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,r;if("legend"===(0,X.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,Z.R)(n,function(t){return null!=(0,X.z)(t).dataIndex?(o=t,!0):null!=(0,X.z)(t).tooltipConfig?(r=t,!0):void 0},!0),o?this._showSeriesItemTooltip(t,o,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,l.oI)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],r=q([e.tooltipOption],i),a=this._renderMode,s=[],u=(0,y.Qx)("section",{blocks:[],noHeader:!0}),c=[],h=new y.lb;(0,l.__)(t,function(t){(0,l.__)(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var r=G._F(o,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=(0,y.Qx)("section",{header:r,noHeader:!(0,l.Bq)(r),sortBlocks:!0,blocks:[]});u.blocks.push(p),(0,l.__)(t.seriesDataIndices,function(u){var f=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,m=f.getDataParams(g);if(!(m.dataIndex<0)){m.axisDim=t.axisDim,m.axisIndex=t.axisIndex,m.axisType=t.axisType,m.axisId=t.axisId,m.axisValue=B.Dt(e.axis,{value:o}),m.axisValueLabel=r,m.marker=h.makeTooltipMarker("item",(0,d.he)(m.color),a);var v=(0,U.L)(f.formatTooltip(g,!0,null)),y=v.frag;if(y){var _=q([f],i).get("valueFormatter");p.blocks.push(_?(0,l.X$)({valueFormatter:_},y):y)}v.text&&c.push(v.text),s.push(m)}})}})}),u.blocks.reverse(),c.reverse();var p=e.position,f=r.get("order"),g=(0,y.Yu)(u,h,a,f,n.get("useUTC"),r.get("textStyle"));g&&c.unshift(g);var m="richText"===a?"\n\n":"<br/>",v=c.join(m);this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,v,s,Math.random()+"",o[0],o[1],p,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,o=(0,X.z)(e),r=o.seriesIndex,a=i.getSeriesByIndex(r),s=o.dataModel||a,u=o.dataIndex,c=o.dataType,h=s.getData(c),p=this._renderMode,f=t.positionDefault,g=q([h.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=g.get("trigger");if(null==m||"item"===m){var v=s.getDataParams(u,c),_=new y.lb;v.marker=_.makeTooltipMarker("item",(0,d.he)(v.color),p);var x=(0,U.L)(s.formatTooltip(u,!1,c)),S=g.get("order"),b=g.get("valueFormatter"),w=x.frag,M=w?(0,y.Yu)(b?(0,l.X$)({valueFormatter:b},w):w,_,p,S,i.get("useUTC"),g.get("textStyle")):x.text,I="item_"+s.name+"_"+u;this._showOrMove(g,function(){this._showTooltipContent(g,M,v,I,t.offsetX,t.offsetY,t.position,t.target,_)}),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,o=(0,X.z)(e),r=o.tooltipConfig.option||{},a=r.encodeHTMLContent;(0,l.Kg)(r)&&(r={content:r,formatter:r},a=!0),a&&i&&r.content&&((r=(0,l.o8)(r)).content=(0,h.Me)(r.content));var s=[r],u=this._ecModel.getComponent(o.componentMainType,o.componentIndex);u&&s.push(u),s.push({formatter:r.content});var c=t.positionDefault,d=q(s,this._tooltipModel,c?{position:c}:null),p=d.get("content"),f=Math.random()+"",g=new y.lb;this._showOrMove(d,function(){var n=(0,l.o8)(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,t.offsetX,t.offsetY,t.position,e,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,o,r,a,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var p=e,f=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")).color;if(h)if((0,l.Kg)(h)){var g=t.ecModel.get("useUTC"),m=(0,l.cy)(n)?n[0]:n;p=h,m&&m.axisType&&m.axisType.indexOf("time")>=0&&(p=(0,W.GP)(m.axisValue,p,g)),p=(0,d.YK)(p,n,!0)}else if((0,l.Tn)(h)){var v=(0,l.oI)(function(e,i){e===this._ticket&&(c.setContent(i,u,t,f,a),this._updatePosition(t,a,o,r,c,n,s))},this);this._ticket=i,p=h(n,i,v)}else p=h;c.setContent(p,u,t,f,a),c.show(t,f),this._updatePosition(t,a,o,r,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,l.cy)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,l.cy)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,o,r,a){var s=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=o.getSize(),h=t.get("align"),d=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),(0,l.Tn)(e)&&(e=e([n,i],r,o.el,f,{viewSize:[s,u],contentSize:c.slice()})),(0,l.cy)(e))n=(0,O.lo)(e[0],s),i=(0,O.lo)(e[1],u);else if((0,l.Gv)(e)){var g=e;g.width=c[0],g.height=c[1];var m=(0,E.dV)(g,{width:s,height:u});n=m.x,i=m.y,h=null,d=null}else if((0,l.Kg)(e)&&a){var v=function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}(e,f,c,t.get("borderWidth"));n=v[0],i=v[1]}else v=function(t,e,n,i,o,r,a){var s=n.getSize(),l=s[0],u=s[1];return null!=r&&(t+l+r+2>i?t-=l+r:t+=r),null!=a&&(e+u+a>o?e-=u+a:e+=a),[t,e]}(n,i,o,s,u,h?null:20,d?null:20),n=v[0],i=v[1];h&&(n-=J(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=J(d)?c[1]/2:"bottom"===d?c[1]:0),p(t)&&(v=function(t,e,n,i,o){var r=n.getSize(),a=r[0],s=r[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,o)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,o,s,u),n=v[0],i=v[1]),o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&(0,l.__)(n,function(n,r){var a=n.dataByAxis||[],s=(t[r]||{}).dataByAxis||[];(o=o&&a.length===s.length)&&(0,l.__)(a,function(t,n){var r=s[n]||{},a=t.seriesDataIndices||[],u=r.seriesDataIndices||[];(o=o&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&a.length===u.length)&&(0,l.__)(a,function(t,e){var n=u[e];o=o&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&(0,l.__)(t.seriesDataIndices,function(t){var n=t.seriesIndex,r=e[n],a=i[n];r&&a&&a.data!==r.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!u.A.node&&e.getDom()&&((0,Y.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),V.h("itemTooltip",e))},e.type="tooltip",e}(H.A);function q(t,e,n){var i,o=e.ecModel;n?(i=new z.A(n,o,o),i=new z.A(e.option,i,o)):i=e;for(var r=t.length-1;r>=0;r--){var a=t[r];a&&(a instanceof z.A&&(a=a.get("tooltip",!0)),(0,l.Kg)(a)&&(a={formatter:a}),a&&(i=new z.A(a,i,o)))}return i}function j(t,e){return t.dispatchAction||(0,l.oI)(e.dispatchAction,e)}function J(t){return"center"===t||"middle"===t}const Q=K;function tt(t){(0,o.Y)(i.a),t.registerComponentModel(s),t.registerComponentView(Q),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.lQ),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.lQ)}},3961(t,e,n){n.d(e,{CO:()=>b,Qx:()=>d,Yu:()=>y,aw:()=>S,lb:()=>w});var i=n(3412),o=n(9687),r=n(8026),a=n(1825),s=n(4326);function l(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+(0,o.Me)(e+"")+"px"}function u(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,o.Me)(i+"")+"px;color:"+(0,o.Me)(n)+";font-weight:"+(0,o.Me)(r+""),valueStyle:"font-size:"+(0,o.Me)(s+"")+"px;color:"+(0,o.Me)(a)+";font-weight:"+(0,o.Me)(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function d(t,e){return e.type=t,e}function p(t){return"section"===t.type}function f(t){return p(t)?m:v}function g(t){if(p(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return(0,r.__)(t.blocks,function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||p(t)&&!t.noHeader)))}),e}return 0}function m(t,e,n,s){var d,p=e.noHeader,m=(d=g(e),{html:c[d],richText:h[d]}),v=[],y=e.blocks||[];(0,r.vA)(!y||(0,r.cy)(y)),y=y||[];var S=t.orderMode;if(e.sortBlocks&&S){y=y.slice();var b={valueAsc:"asc",valueDesc:"desc"};if((0,r.$3)(b,S)){var w=new a.Fl(b[S],null);y.sort(function(t,e){return w.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===S&&y.reverse()}(0,r.__)(y,function(n,i){var o=e.valueFormatter,a=f(n)(o?(0,r.X$)((0,r.X$)({},t),{valueFormatter:o}):t,n,i>0?m.html:0,s);null!=a&&v.push(a)});var M="richText"===t.renderMode?v.join(m.richText):_(s,v.join(""),p?n:m.html);if(p)return M;var I=(0,i.yC)(e.header,"ordinal",t.useUTC),A=u(s,t.renderMode).nameStyle,T=l(s);return"richText"===t.renderMode?x(t,I,A)+m.richText+M:_(s,'<div style="'+A+";"+T+';">'+(0,o.Me)(I)+"</div>"+M,n)}function v(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,h=!e.markerType,d=e.name,p=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=(0,r.cy)(t)?t:[t],(0,r.Tj)(t,function(t,e){return(0,i.yC)(t,(0,r.cy)(v)?v[e]:v,p)})};if(!l||!c){var g=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),m=l?"":(0,i.yC)(d,"ordinal",p),v=e.valueType,y=c?[]:f(e.value,e.dataIndex),S=!h||!l,b=!h&&l,w=u(a,s),M=w.nameStyle,I=w.valueStyle;return"richText"===s?(h?"":g)+(l?"":x(t,m,M))+(c?"":function(t,e,n,i,o){var a=[o],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,r.cy)(e)?e.join(" "):e,a)}(t,y,S,b,I)):_(a,(h?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,o.Me)(t)+"</span>"}(m,!h,M))+(c?"":function(t,e,n,i){var a=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=(0,r.cy)(t)?t:[t],'<span style="'+a+";"+i+'">'+(0,r.Tj)(t,function(t){return(0,o.Me)(t)}).join("&nbsp;&nbsp;")+"</span>"}(y,S,b,I)),n)}}function y(t,e,n,i,o,r){if(t)return f(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function _(t,e,n){return'<div style="margin: '+n+"px 0 0;"+l(t)+';">'+e+'<div style="clear:both"></div></div>'}function x(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function S(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,i.he)(n)}function b(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var w=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var o="richText"===n?this._generateStyleName():null,a=(0,i.qg)({color:e,type:t,renderMode:n,markerId:o});return(0,r.Kg)(a)?a:(this.richTextStyles[o]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,r.cy)(e)?(0,r.__)(e,function(t){return(0,r.X$)(n,t)}):(0,r.X$)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},1830(t,e,n){n.d(e,{a:()=>Bt});var i=n(3087),o=n(1635),r=n(8026),a={get:function(t,e,n){var i=r.o8((s[t]||{})[e]);return n&&r.cy(i)?i[i.length-1]:i}},s={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const l=a;var u=n(7698),c=n(4326),h=r.__,d=r.Gv,p=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=r.o8(e);this.type=i,this.mappingMethod=n,this._normalizeData=w[n];var a=t.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(f(o),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,r.__(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(o)):"category"===n?o.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(h(e,function(t,e){n[t]=e}),!r.cy(i)){var o=[];r.Gv(i)?h(i,function(t,e){var i=n[e];o[null!=i?i:-1]=t}):o[-1]=i,i=b(t,o)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}(o):f(o,!0):(r.vA("linear"!==n||o.dataExtent),f(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return r.oI(this._normalizeData,this)},t.listVisualTypes=function(){return r.HP(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){r.Gv(t)?r.__(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,a=r.cy(e)?[]:r.Gv(e)?{}:(o=!0,null);return t.eachVisual(e,function(t,e){var r=n.call(i,t,e);o?a=r:a[e]=r}),a},t.retrieveVisuals=function(e){var n,i={};return e&&h(t.visualHandlers,function(t,o){e.hasOwnProperty(o)&&(i[o]=e[o],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(r.cy(t))t=t.slice();else{if(!d(t))return[];var e=[];h(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(null!=l){if(l===t||r.Kg(l)&&l===t+"")return a;n&&d(l,a)}}for(a=0,s=e.length;a<s;a++){var u=e[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(M(h[1],t,c[1]))return a}else if(c[1]===1/0){if(M(h[0],c[0],t))return a}else if(M(h[0],c[0],t)&&M(h[1],t,c[1]))return a;n&&d(c[0],a),n&&d(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function d(e,n){var r=Math.abs(e-t);r<o&&(o=r,i=n)}},t.visualHandlers={color:{applyVisual:v("color"),getColorMapper:function(){var t=this.option;return r.oI("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),y.call(this,t)}:function(e,n,i){var o=!!i;return!n&&(e=this._normalizeData(e)),i=u.ad(e,t.parsedVisual,i),o?i:u.As(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return u.As(u.ad(t,this.option.parsedVisual),"rgba")},category:y,piecewise:function(t,e){var n=S.call(this,e);return null==n&&(n=u.As(u.ad(t,this.option.parsedVisual),"rgba")),n},fixed:_}},colorHue:g(function(t,e){return u.Yu(t,e)}),colorSaturation:g(function(t,e){return u.Yu(t,null,e)}),colorLightness:g(function(t,e){return u.Yu(t,null,null,e)}),colorAlpha:g(function(t,e){return u.hm(t,e)}),decal:{applyVisual:v("decal"),_normalizedToVisual:{linear:null,category:y,piecewise:null,fixed:null}},opacity:{applyVisual:v("opacity"),_normalizedToVisual:x([0,1])},liftZ:{applyVisual:v("liftZ"),_normalizedToVisual:{linear:_,category:_,piecewise:_,fixed:_}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:m,category:y,piecewise:function(t,e){var n=S.call(this,e);return null==n&&(n=m.call(this,t)),n},fixed:_}},symbolSize:{applyVisual:v("symbolSize"),_normalizedToVisual:x([0,1])}},t}();function f(t,e){var n=t.visual,i=[];r.Gv(n)?h(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),b(t,i)}function g(t){return{applyVisual:function(e,n,i){var o=this.mapValueToVisual(e);i("color",t(n("color"),o))},_normalizedToVisual:x([0,1])}}function m(t){var e=this.option.visual;return e[Math.round((0,c.Cb)(t,[0,1],[0,e.length-1],!0))]||{}}function v(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function y(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function _(){return this.option.visual[0]}function x(t){return{linear:function(e){return(0,c.Cb)(e,t,this.option.visual,!0)},category:y,piecewise:function(e,n){var i=S.call(this,n);return null==i&&(i=(0,c.Cb)(e,t,this.option.visual,!0)),i},fixed:_}}function S(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[p.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function b(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=r.Tj(e,function(t){return u.qg(t)||[0,0,0,1]})),e}var w={linear:function(t){return(0,c.Cb)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=p.findPieceIndex(t,e,!0);if(null!=n)return(0,c.Cb)(n,[0,e.length-1],[0,1],!0)},category:function(t){return(this.option.categories?this.option.categoryMap[t]:t)??-1},fixed:r.lQ};function M(t,e,n){return t?e<=n:e<n}const I=p;var A=n(7395),T=r.__;function C(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function D(t,e,n){var i={};return T(e,function(e){var o,a=i[e]=((o=function(){}).prototype.__hidden=o.prototype,new o);T(t[e],function(t,i){if(I.isValidType(i)){var o={type:i,visual:t};n&&n(o,e),a[i]=new I(o),"opacity"===i&&((o=r.o8(o)).type="colorAlpha",a.__hidden.__alphaForOpacity=new I(o))}})}),i}var L=n(8170),k=n(5915),P=I.mapVisual,O=I.eachVisual,N=r.cy,R=r.__,E=c.Y6,z=c.Cb,V=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,o.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&function(t,e,n){var i;r.__(n,function(t){e.hasOwnProperty(t)&&C(e[t])&&(i=!0)}),i&&r.__(n,function(n){e.hasOwnProperty(n)&&C(e[n])?t[n]=r.o8(e[n]):delete t[n]})}(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=r.oI(t,this),this.controllerVisuals=D(this.option.controller,e,t),this.targetVisuals=D(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=L.qB(t),e},e.prototype.eachTargetSeries=function(t,e){r.__(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;n=n||["<",">"],r.cy(t)&&(t=t.slice(),i=!0);var u=e?t:i?[c(t[0]),c(t[1])]:c(t);return r.Kg(l)?l.replace("{value}",i?u[0]:u).replace("{value2}",i?u[1]:u):r.Tn(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+" "+u[1]:t[1]===s[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=E([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],r=t.getDimensionInfo(o);if(!r.isCalculationCoord)return r.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={});r.h1(i,n),r.h1(o,n);var a=this.isCategory();function s(n){N(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}s.call(this,i),s.call(this,o),function(t,e,n){var i=t[e],o=t[n];i&&!o&&(o=t[n]={},R(i,function(t,e){if(I.isValidType(e)){var n=l.get(e,"inactive",a);null!=n&&(o[e]=n,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";R(this.stateList,function(s){var l=this.itemSize,u=t[s];u||(u=t[s]={color:a?i:[i]}),null==u.symbol&&(u.symbol=e&&r.o8(e)||(a?o:[o])),null==u.symbolSize&&(u.symbolSize=n&&r.o8(n)||(a?l[0]:[l[0],l[0]])),u.symbol=P(u.symbol,function(t){return"none"===t?o:t});var c=u.symbolSize;if(null!=c){var h=-1/0;O(c,function(t){t>h&&(h=t)}),u.symbolSize=P(c,function(t){return z(t,[0,h],[0,l[0]],!0)})}},this)}.call(this,o)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(k.A);const B=V;var G=n(2616),F=[20,140],H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=F[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=F[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):r.cy(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),r.__(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=c.Y6((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=W(0,0,this.getExtent()),n=W(0,0,this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var r=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[r]&&o(e[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&i.length&&o(n[r],"outOfRange"),o(n[r],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,G.G_)(B.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(B);function W(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}const X=H;var U=n(9668),Z=n(5452),Y=n(10),$=n(3412),K=n(4253),q=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,o.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=$.QX(e.get("padding")||0),i=t.getBoundingRect();t.add(new Y.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,o=this.visualMapModel,a={};if("color"===e){var s=o.get("contentColor");a.color=s}function l(t){return a[t]}function u(t,e){a[t]=e}var c=o.controllerVisuals[i||o.getValueState(t)],h=I.prepareVisualTypes(c);return r.__(h,function(i){var o=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=c.__alphaForOpacity),I.dependsOn(i,e)&&o&&o.applyVisual(t,l,u)}),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;K.m$(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(n(9109).A);const j=q;var J=n(9766),Q=n(3870),tt=n(3199),et=n(2505),nt=n(8983),it=[["left","right","width"],["top","bottom","height"]];function ot(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var r={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=it[a],l=[0,null,10],u={},c=0;c<3;c++)u[it[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=(0,K.dV)(u,r,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*r[h[1]]?0:1]}function rt(t,e){return r.__(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var at=n(5558),st=n(4833),lt=n(2103),ut=n(540),ct=n(9622),ht=n(9632),dt=n(7411),pt=c.Cb,ft=r.__,gt=Math.min,mt=Math.max,vt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,o.C6)(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=r.oI(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=r.oI(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-r:a[1]+r],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new J.Ay({style:(0,ht.VB)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,a=this._useHandle,s=ot(e,this.api,i),l=n.mainGroup=this._createBarGroup(s),u=new Q.A;l.add(u),u.add(n.outOfRange=yt()),u.add(n.inRange=yt(null,a?xt(this._orient):null,r.oI(this._dragHandle,this,"all",!1),r.oI(this._dragHandle,this,"all",!0))),u.setClipPath(new Y.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=e.textStyleModel.getTextRect("国"),h=mt(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,l,0,i,h,o),this._createHandle(e,l,1,i,h,o)),this._createIndicator(e,l,i,h,o),t.add(l)},e.prototype._createHandle=function(t,e,n,i,o,a){var s=r.oI(this._dragHandle,this,n,!1),l=r.oI(this._dragHandle,this,n,!0),u=(0,at.lo)(t.get("handleSize"),i[0]),c=(0,lt.v5)(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=xt(this._orient);c.attr({cursor:h,draggable:!0,drift:s,ondragend:l,onmousemove:function(t){Z.ds(t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,st.ix)(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,p=new J.Ay({cursor:h,draggable:!0,drift:s,onmousemove:function(t){Z.ds(t.event)},ondragend:l,style:(0,ht.VB)(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[u,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,o){var a=(0,at.lo)(t.get("indicatorSize"),n[0]),s=(0,lt.v5)(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(s instanceof ut.Ay){var u=s.style;s.useStyle(r.X$({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);e.add(s);var c=this.visualMapModel.textStyleModel,h=new J.Ay({silent:!0,invisible:!0,style:(0,ht.VB)(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===o?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=s,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():_t(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[pt(e[0],n,i,!0),pt(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];(0,nt.A)(e,i,o,t,0);var r=n.getExtent();this._dataInterval=[pt(i[0],o,r,!0),pt(i[1],o,r,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=[0,e.itemSize[1]],r=t?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,a)},e.prototype._createBarVisual=function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(t,o),a=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],s=this._createBarPoints(n,a);return{barColor:new U.A(0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Q.A("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);ft([0,1],function(u){var c=o[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=pt(t[u],[0,a[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var p=tt.applyTransform(n.handleLabelPoints[u],tt.getTransform(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}r[u].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=pt(t,r,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=tt.applyTransform(l.indicatorLabelPoint,tt.getTransform(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:p,y:d,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(_,S),m.animateTo(x,S)}else u.attr(_),m.attr(x);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var w=0;w<b.length;w++)this.api.enterBlur(b[w])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=gt(mt(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],r=n.getExtent();t=gt(mt(o[0],t),o[1]);var a=function(t,e,n){var i=6,o=t.get("hoverLinkDataSize");return o&&(i=pt(o,e,n,!0)/2),i}(n,r,o),s=[t-a,t+a],l=pt(t,o,r,!0),u=[pt(s[0],o,r,!0),pt(s[1],o,r,!0)];s[0]<o[0]&&(u[0]=-1/0),s[1]>o[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||_t(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=L.D6(c,h);this._dispatchHighDown("downplay",rt(d[0],n)),this._dispatchHighDown("highlight",rt(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,dt.R)(t.target,function(t){var n=(0,ct.z)(t);if(null!=n.dataIndex)return e=n,!0},!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(e.dataType),r=o.getStore().get(i.getDataDimensionIndex(o),e.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",rt(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var o=tt.getTransform(e,i?null:this.group);return r.cy(t)?tt.applyTransform(t,o,n):tt.transformDirection(t,o,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(j);function yt(t,e,n,i){return new et.A({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Z.ds(t.event)},ondragend:i})}function _t(t){return!!(t.get("hoverLinkOnHandle")??t.get("realtime"))}function xt(t){return"vertical"===t?"ns-resize":"ew-resize"}const St=vt;var bt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},wt=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},Mt=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(e){var i,o,a,s,l,u=t.pipelineContext;!e.isTargetSeries(t)||u&&u.large||n.push((i=e.stateList,o=e.targetVisuals,a=r.oI(e.getValueState,e),s=e.getDataDimensionIndex(t.getData()),l={},r.__(i,function(t){var e=I.prepareVisualTypes(o[t]);l[t]=e}),{progress:function(t,e){var n,i;function r(t){return(0,A.Ez)(e,i,t)}function u(t,n){(0,A.oZ)(e,i,t,n)}null!=s&&(n=e.getDimensionIndex(s));for(var c=e.getStore();null!=(i=t.next());){var h=e.getRawDataItem(i);if(!h||!1!==h.visualMap)for(var d=null!=s?c.get(n,i):i,p=a(d),f=o[p],g=l[p],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(d,r,u)}}}}))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(r.oI(It,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(o.dimension=a,i.push(o))}}),t.getData().setVisual("visualMeta",i)}}];function It(t,e,n,i){for(var o=e.targetVisuals[i],r=I.prepareVisualTypes(o),a={color:(0,A.rI)(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],c=o["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var At=r.__;function Tt(t){var e=t&&t.visualMap;r.cy(e)||(e=e?[e]:[]),At(e,function(t){if(t){Ct(t,"splitList")&&!Ct(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&r.cy(e)&&At(e,function(t){r.Gv(t)&&(Ct(t,"start")&&!Ct(t,"min")&&(t.min=t.start),Ct(t,"end")&&!Ct(t,"max")&&(t.max=t.end))})}})}function Ct(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Dt=!1;function Lt(t){Dt||(Dt=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(bt,wt),(0,r.__)(Mt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Tt))}function kt(t){t.registerComponentModel(X),t.registerComponentView(St),Lt(t)}var Pt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,o.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Ot[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=r.o8(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.Tj(this._pieceList,function(t){return t=r.o8(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=I.listVisualTypes(),o=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}r.__(e.pieces,function(t){r.__(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),r.__(n,function(t,n){var i=!1;r.__(this.stateList,function(t){i=i||a(e,t,n)||a(e.target,t,n)},this),!i&&r.__(this.stateList,function(t){(e[t]||(e[t]={}))[n]=l.get(n,"inRange"===t?"active":"inactive",o)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,r.__(i,function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)},this),"single"===n.selectedMode){var a=!1;r.__(i,function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=r.o8(t)},e.prototype.getValueState=function(t){var e=I.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],r=i.getData();r.each(this.getDataDimensionIndex(r),function(e,i){I.findPieceIndex(e,n)===t&&o.push(i)},this),e.push({seriesId:i.id,dataIndex:o})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.__(o,function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])},this),{stops:e,outerColors:n}}function l(o,r){var a=i.getRepresentValue({interval:o});r||(r=i.getValueState(a));var s=t(a,r);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:e.push({value:o[0],color:s},{value:o[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,G.G_)(B.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(B),Ot={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var a=(i[1]-i[0])/o;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s<o;l+=a,s++){var u=s===o-1?i[1]:l+a;t.push({interval:[l,u],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),(0,c.sL)(t),r.__(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;r.__(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),Nt(e,t)},pieces:function(t){var e=this.option;r.__(e.pieces,function(e,n){r.Gv(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var o=i.value=e.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&null==a[h];p++)a[h]=e[d[p]],s[h]=l[p],c[h]=2===p;null==a[h]&&(a[h]=u[h])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=I.retrieveVisuals(e),t.push(i)},this),Nt(e,t),(0,c.sL)(t),r.__(t,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function Nt(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const Rt=Pt;var Et=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),a=i.getTextColor(),s=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),c=u.endsText,h=r.Je(e.get("showLabel",!0),!c),d=!e.get("selectedMode");c&&this._renderEndsText(t,c[0],l,h,s),r.__(u.viewPieceList,function(i){var u=i.piece,c=new Q.A;c.onclick=r.oI(this._onItemClick,this,u),this._enableHoverLink(c,i.indexInModelPieceList);var p=e.getRepresentValue(u);if(this._createItemSymbol(c,p,[0,0,l[0],l[1]],d),h){var f=this.visualMapModel.getValueState(p);c.add(new J.Ay({style:{x:"right"===s?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:o,fill:a,opacity:"outOfRange"===f?.5:1},silent:d}))}t.add(c)},this),c&&this._renderEndsText(t,c[1],l,h,s),K.aP(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:rt(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return ot(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,o){if(e){var r=new Q.A,a=this.visualMapModel.textStyleModel;r.add(new J.Ay({style:(0,ht.VB)(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=r.Tj(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var o=(0,lt.v5)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var o=r.o8(n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(o[a]=!0,r.__(o,function(t,e){o[e]=e===a})):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(j);const zt=Et;function Vt(t){t.registerComponentModel(Rt),t.registerComponentView(zt),Lt(t)}function Bt(t){(0,i.Y)(kt),(0,i.Y)(Vt)}},912(t,e,n){n.d(e,{A:()=>y});var i=n(8026),o=n(4326),r=n(5558),a=n(8170),s=n(9742),l=(0,a.$r)();function u(t,e){var n=i.Tj(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function c(t,e){var n,o,r=h(t,"labels"),a=(0,s.j2)(e);return d(r,a)||(i.Tn(a)?n=g(t,a):(o="auto"===a?function(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}(t):a,n=f(t,o)),p(r,a,{labels:n,labelCategoryInterval:o}))}function h(t,e){return l(t)[e]||(l(t)[e]=[])}function d(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function p(t,e,n){return t.push({key:e,value:n}),n}function f(t,e,n){var i=(0,s.ry)(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=r[0],h=o.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=(0,s.PJ)(t),p=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;p&&c!==r[0]&&m(r[0]);for(var g=c;g<=r[1];g+=u)m(g);function m(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return f&&g-u!==r[1]&&m(r[1]),l}function g(t,e,n){var o=t.scale,r=(0,s.ry)(t),a=[];return i.__(o.getTicks(),function(t){var i=o.getLabel(t),s=t.value;e(t.value,i)&&a.push(n?s:{formattedLabel:r(t),rawLabel:i,tickValue:s})}),a}var m=[0,1];function v(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const y=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,o.hb)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&v(n=n.slice(),i.count()),(0,o.Cb)(t,m,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&v(n=n.slice(),i.count());var r=(0,o.Cb)(t,n,m,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=function(t,e){var n=t.getTickModel().get("customValues");if(n){var o=t.scale.getExtent(),r=u(t,n);return{ticks:i.pb(r,function(t){return t>=o[0]&&t<=o[1]})}}return"category"===t.type?function(t,e){var n,o,r=h(t,"ticks"),a=(0,s.j2)(e),l=d(r,a);if(l)return l;if(e.get("show")&&!t.scale.isBlank()||(n=[]),i.Tn(a))n=g(t,a,!0);else if("auto"===a){var u=c(t,t.getLabelModel());o=u.labelCategoryInterval,n=i.Tj(u.labels,function(t){return t.tickValue})}else n=f(t,o=a,!0);return p(r,a,{ticks:n,tickCategoryInterval:o})}(t,e):{ticks:i.Tj(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,r=(0,i.Tj)(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,r){var a=e.length;if(t.onBand&&!n&&a){var s,l,u=t.getExtent();if(1===a)e[0].coord=u[0],s=e[1]={coord:u[1],tickValue:e[0].tickValue};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;(0,i.__)(e,function(t){t.coord-=h/2});var d=t.scale.getExtent();l=1+d[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*l,tickValue:d[1]+1},e.push(s)}var p=u[0]>u[1];f(e[0].coord,u[0])&&(r?e[0].coord=u[0]:e.shift()),r&&f(u[0],e[0].coord)&&e.unshift({coord:u[0]}),f(u[1],s.coord)&&(r?s.coord=u[1]:e.pop()),r&&f(s.coord,u[1])&&e.push({coord:u[1]})}function f(t,e){return t=(0,o.LI)(t),e=(0,o.LI)(e),p?t>e:t<e}}(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,i.Tj)(e,function(t){return(0,i.Tj)(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return function(t){var e=t.getLabelModel().get("customValues");if(e){var n=(0,s.ry)(t),o=t.scale.getExtent(),r=u(t,e),a=i.pb(r,function(t){return t>=o[0]&&t<=o[1]});return{labels:i.Tj(a,function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}})}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=(0,s.ry)(t);return{labels:i.Tj(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)}(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=(0,s.ry)(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),u=o.count();if(a[1]-a[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=a[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,m=0;h<=a[1];h+=c){var v,y,_=r.NO(n({value:h}),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var x=g/p,S=m/f;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S))),w=l(t.model),M=t.getExtent(),I=w.lastAutoInterval,A=w.lastTickCount;return null!=I&&null!=A&&Math.abs(I-b)<=1&&Math.abs(A-u)<=1&&I>b&&w.axisExtent0===M[0]&&w.axisExtent1===M[1]?b=I:(w.lastTickCount=u,w.lastAutoInterval=b,w.axisExtent0=M[0],w.axisExtent1=M[1]),b}(this)},t}()},1849(t,e,n){function i(t,e){return t.type===e}n.d(e,{g:()=>i})},3486(t,e,n){n.d(e,{m:()=>l});var i=n(4326),o=n(4562),r=n(9742),a=n(7071),s=Math.log;function l(t,e,n){var l=o.A.prototype,u=l.getTicks.call(n),c=l.getTicks.call(n,!0),h=u.length-1,d=l.getInterval.call(n),p=(0,r.Rx)(t,e),f=p.extent,g=p.fixMin,m=p.fixMax;if("log"===t.type){var v=s(t.base);f=[s(f[0])/v,s(f[1])/v]}t.setExtent(f[0],f[1]),t.calcNiceExtent({splitNumber:h,fixMin:g,fixMax:m});var y=l.getExtent.call(t);g&&(f[0]=y[0]),m&&(f[1]=y[1]);var _=l.getInterval.call(t),x=f[0],S=f[1];if(g&&m)_=(S-x)/h;else if(g)for(S=f[0]+_*h;S<f[1]&&isFinite(S)&&isFinite(f[1]);)_=(0,a.kH)(_),S=f[0]+_*h;else if(m)for(x=f[1]-_*h;x>f[0]&&isFinite(x)&&isFinite(f[0]);)_=(0,a.kH)(_),x=f[1]-_*h;else{t.getTicks().length-1>h&&(_=(0,a.kH)(_));var b=_*h;S=Math.ceil(f[1]/_)*_,(x=(0,i.LI)(S-b))<0&&f[0]>=0?(x=0,S=(0,i.LI)(b)):S>0&&f[1]<=0&&(S=0,x=-(0,i.LI)(b))}var w=(u[0].value-c[0].value)/d,M=(u[h].value-c[h].value)/d;l.setExtent.call(t,x+_*w,S+_*M),l.setInterval.call(t,_),(w||M)&&l.setNiceExtent.call(t,x+_,S-_)}},3286(t,e,n){n.d(e,{A:()=>s});var i=n(8026),o={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},r=i.h1({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),a=i.h1({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},o);const s={category:r,value:a,time:i.h1({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),log:i.NT({logBase:10},a)}},9742(t,e,n){n.d(e,{f$:()=>B,Og:()=>W,Dt:()=>H,wq:()=>Y,j2:()=>U,Rx:()=>z,JJ:()=>G,ry:()=>F,af:()=>V,PJ:()=>Z,PN:()=>$});var i=n(8026),o=n(1635),r=n(8613),a=n(5135),s=n(7071),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var o=n.getSetting("ordinalMeta");return o||(o=new a.A({})),(0,i.cy)(o)&&(o=new a.A({categories:(0,i.Tj)(o,function(t){return(0,i.Gv)(t)?t.value:t})})),n._ordinalMeta=o,n._extent=n.getSetting("extent")||[0,o.categories.length-1],n}return(0,o.C6)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,i.Kg)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),s.lP(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),s.S8(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(s.hs(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[o]=s,i[s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r.A);r.A.registerClass(l);const u=l;var c=n(4562),h=n(2536),d=n(9308),p=n(4326),f=n(5854),g=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,o.C6)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,f.GP)(t.value,f.Lm[(0,f.$9)((0,f.ym)(this._minLevelUnit))]||f.Lm.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return(0,f.X_)(t,e,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var o=this.getSetting("useUTC"),r=function(t,e,n,o){var r=f.F7,a=0;function s(t,e,n,i,r,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=o[1];)s.push({value:u}),c+=t,l[r](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,r){var a=[],l=!i.length;if(!function(t,e,n,i){var o=p._U(e),r=p._U(n),a=function(t){return(0,f.g0)(o,t,i)===(0,f.g0)(r,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return d()&&a("millisecond")}}((0,f.ym)(t),o[0],o[1],n)){l&&(i=[{value:b(new Date(o[0]),t,n)},{value:o[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,g=void 0,m=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/f.CZ/365)),g=(0,f.hY)(n),m=(0,f.tM)(n);break;case"half-year":case"quarter":case"month":d=y(e),g=(0,f.jJ)(n),m=(0,f.xu)(n);break;case"week":case"half-week":case"day":d=v(e),g=(0,f.bP)(n),m=(0,f.ti)(n);break;case"half-day":case"quarter-day":case"hour":d=_(e),g=(0,f.iC)(n),m=(0,f.Yd)(n);break;case"minute":d=x(e,!0),g=(0,f.yB)(n),m=(0,f.KF)(n);break;case"second":d=x(e,!1),g=(0,f.Wf)(n),m=(0,f.ww)(n);break;case"millisecond":d=S(e),g=(0,f.Zz)(n),m=(0,f.FP)(n)}s(d,c,h,g,m,0,a),"year"===t&&r.length>1&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u<a.length;u++)r.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,g=0;g<r.length&&a++<1e4;++g){var m=(0,f.ym)(r[g]);if((0,f.ce)(r[g])&&(l(r[g],u[u.length-1]||[],c),m!==(r[g+1]?(0,f.ym)(r[g+1]):null))){if(c.length){d=h,c.sort(function(t,e){return t.value-e.value});for(var w=[],M=0;M<c.length;++M){var I=c[M].value;0!==M&&c[M-1].value===I||(w.push(c[M]),I>=o[0]&&I<=o[1]&&h++)}var A=(o[1]-o[0])/e;if(h>1.5*A&&d>A/1.5)break;if(u.push(w),h>A||t===r[g])break}c=[]}}var T=(0,i.pb)((0,i.Tj)(u,function(t){return(0,i.pb)(t,function(t){return t.value>=o[0]&&t.value<=o[1]&&!t.notAdd})}),function(t){return t.length>0}),C=[],D=T.length-1;for(g=0;g<T.length;++g)for(var L=T[g],k=0;k<L.length;++k)C.push({value:L[k].value,level:D-g});C.sort(function(t,e){return t.value-e.value});var P=[];for(g=0;g<C.length;++g)0!==g&&C[g].value===C[g-1].value||P.push(C[g]);return P}(this._minLevelUnit,this._approxInterval,o,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=f.CZ,e[1]+=f.CZ),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-f.CZ}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=m.length,a=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=o+1:i=o}return n}(m,this._approxInterval,0,r),r-1);this._interval=m[a][1],this._minLevelUnit=m[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,i.Et)(t)?t:+p._U(t)},e.prototype.contain=function(t){return s.lP(this.parse(t),this._extent)},e.prototype.normalize=function(t){return s.S8(this.parse(t),this._extent)},e.prototype.scale=function(t){return s.hs(t,this._extent)},e.type="time",e}(c.A),m=[["second",f.OY],["minute",f.iW],["hour",f.MA],["quarter-day",6*f.MA],["half-day",12*f.MA],["day",1.2*f.CZ],["half-week",3.5*f.CZ],["week",7*f.CZ],["month",31*f.CZ],["quarter",95*f.CZ],["half-year",f.$H/2],["year",f.$H]];function v(t,e){return(t/=f.CZ)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function y(t){return(t/=30*f.CZ)>6?6:t>3?3:t>2?2:1}function _(t){return(t/=f.MA)>12?12:t>6?6:t>3.5?4:t>2?2:1}function x(t,e){return(t/=e?f.iW:f.OY)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function S(t){return p.Cm(t,!0)}function b(t,e,n){var i=new Date(t);switch((0,f.ym)(e)){case"year":case"month":i[(0,f.xu)(n)](0);case"day":i[(0,f.ti)(n)](1);case"hour":i[(0,f.Yd)(n)](0);case"minute":i[(0,f.KF)(n)](0);case"second":i[(0,f.ww)(n)](0),i[(0,f.FP)(n)](0)}return i.getTime()}r.A.registerClass(g);const w=g;var M=r.A.prototype,I=c.A.prototype,A=p.LI,T=Math.floor,C=Math.ceil,D=Math.pow,L=Math.log,k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new c.A,e._interval=0,e}return(0,o.C6)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,o=e.getExtent(),r=I.getTicks.call(this,t);return i.Tj(r,function(t){var e=t.value,i=p.LI(D(this.base,e));return i=e===n[0]&&this._fixMin?O(i,o[0]):i,{value:i=e===n[1]&&this._fixMax?O(i,o[1]):i}},this)},e.prototype.setExtent=function(t,e){var n=L(this.base);t=L(Math.max(0,t))/n,e=L(Math.max(0,e))/n,I.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=M.getExtent.call(this);e[0]=D(t,e[0]),e[1]=D(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=O(e[0],n[0])),this._fixMax&&(e[1]=O(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=L(t[0])/L(e),t[1]=L(t[1])/L(e),M.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=p.au(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[p.LI(C(e[0]/i)*i),p.LI(T(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){I.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=L(t)/L(this.base),s.lP(t,this._extent)},e.prototype.normalize=function(t){return t=L(t)/L(this.base),s.S8(t,this._extent)},e.prototype.scale=function(t){return t=s.hs(t,this._extent),D(this.base,t)},e.type="log",e}(r.A),P=k.prototype;function O(t,e){return A(t,p.XV(e))}P.getMinorTicks=I.getMinorTicks,P.getLabel=I.getLabel,r.A.registerClass(k);const N=k;var R=n(5008),E=n(2262);function z(t,e){var n=t.type,o=(0,E.Tc)(t,e,t.getExtent()).calculate();t.setBlank(o.isBlank);var r=o.min,a=o.max,s=e.ecModel;if(s&&"time"===n){var l=(0,h.GL)("bar",s),u=!1;if(i.__(l,function(t){u=u||t.getBaseAxis()===e.axis}),u){var c=(0,h.vq)(l),d=function(t,e,n,o){var r=n.axis.getExtent(),a=Math.abs(r[1]-r[0]),s=(0,h.VA)(o,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;i.__(s,function(t){l=Math.min(t.offset,l)});var u=-1/0;i.__(s,function(t){u=Math.max(t.offset+t.width,u)}),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=e-t,p=d/(1-(l+u)/a)-d;return{min:t-=p*(l/c),max:e+=p*(u/c)}}(r,a,e,c);r=d.min,a=d.max}}return{extent:[r,a],fixMin:o.minFixed,fixMax:o.maxFixed}}function V(t,e){var n=e,i=z(t,n),o=i.extent,r=n.get("splitNumber");t instanceof N&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(o[0],o[1]),t.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function B(t,e){if(e=e||t.get("type"))switch(e){case"category":return new u({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new w({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(r.A.getClass(e)||c.A)}}function G(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function F(t){var e,n,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=o,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):i.Kg(o)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(o):i.Tn(o)?(e=o,function(n,i){return null!=r&&(i=n.value-r),e(H(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function H(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function W(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent();o=n instanceof u?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=F(t),c=1;o>40&&(c=Math.ceil(o/40));for(var h=0;h<o;h+=c){var d=l(i?i[h]:{value:r[0]+h},h),p=X(s.getTextRect(d),s.get("rotate")||0);a?a.union(p):a=p}return a}}function X(t,e){var n=e*Math.PI/180,i=t.width,o=t.height,r=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n));return new d.A(t.x,t.y,r,a)}function U(t){return t.get("interval")??"auto"}function Z(t){return"category"===t.type&&0===U(t.getLabelModel())}function Y(t,e){var n={};return i.__(t.mapDimensionsAll(e),function(e){n[(0,R.me)(t,e)]=!0}),i.HP(n)}function $(t,e,n){e&&i.__(Y(e,n),function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}},2462(t,e,n){n.d(e,{L:()=>i});var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()},6878(t,e,n){n.d(e,{LR:()=>s,Zp:()=>r,gO:()=>a});var i=n(8026),o=n(8170);function r(t,e,n){n=n||{};var o=t.coordinateSystem,r=e.axis,a={},s=r.getAxesOnZeroOf()[0],l=r.position,u=s?"onZero":l,c=r.dim,h=o.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}a.position=["y"===c?g[p[u]]:d[0],"x"===c?g[p[u]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?g[p[l]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i.Je(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-v:v,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return i.__(e,function(n,i){var r=i.replace(/Model$/,""),a=t.getReferringComponents(r,o.US).models[0];e[i]=a}),e}},2262(t,e,n){n.d(e,{Tc:()=>l});var i=n(8026),o=n(5558),r=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);null==a&&(a=e.get("startValue",!0));var s=this._modelMinRaw=a;(0,i.Tn)(s)?this._modelMinNum=u(t,s({min:n[0],max:n[1]})):"dataMin"!==s&&(this._modelMinNum=u(t,s));var l=this._modelMaxRaw=e.get("max",!0);if((0,i.Tn)(l)?this._modelMaxNum=u(t,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=u(t,l)),r)this._axisDataLen=e.getCategories().length;else{var c=e.get("boundaryGap"),h=(0,i.cy)(c)?c:[c||0,c||0];"boolean"==typeof h[0]||"boolean"==typeof h[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,o.lo)(h[0],1),(0,o.lo)(h[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,o=this._axisDataLen,r=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?o?0:NaN:e-r[0]*a),null==l&&(l=t?o?o-1:NaN:n+r[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,i.Yp)(s)||(0,i.Yp)(l)||t&&!o;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(s=d,u=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new r(t,e,n),t.rawExtentInfo=i,i)}function u(t,e){return null==e?null:(0,i.Yp)(e)?NaN:t.parse(e)}},9737(t,e,n){n.d(e,{A:()=>r});var i=n(8026),o={};const r=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i.__(o,function(i,o){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){i.__(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){o[t]=e},t.get=function(t){return o[t]},t}()},8052(t,e,n){n.d(e,{FQ:()=>ve,Ts:()=>ln,OH:()=>gn,pX:()=>mn,Oh:()=>vn,Ej:()=>Sn,mz:()=>bn,cf:()=>dn,tb:()=>pn,lP:()=>cn,qg:()=>hn,iY:()=>wn,xV:()=>fn,AF:()=>yn});var i=n(1635),o=n(2755),r=n(8026),a=n(8123),s=n(3470),l=n(7861),u=n(8170),c=n(3172),h=n(5915),d="";"undefined"!=typeof navigator&&(d=navigator.platform||"");var p="rgba(0, 0, 0, 0.2)";const f={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:p,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:p,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:p,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:p,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:p,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:p,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var g,m,v,y=n(3071),_=(0,r.nt)(),x=n(6501),S="\0_ec_inner",b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new c.A(i),this._locale=new c.A(o),this._optionManager=r},e.prototype.setOption=function(t,e,n){var i=I(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,I(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var o=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(o,e)):v(this,o),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&(0,r.__)(s,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,a=[],s=(0,r.nt)(),l=e&&e.replaceMergeMainTypeMap;(0,y.ps)(this),(0,r.__)(t,function(t,e){null!=t&&(h.A.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,r.o8)(t):(0,r.h1)(n[e],t,!0))}),l&&l.each(function(t,e){h.A.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))}),h.A.topologicalTravel(a,h.A.getAllClassMainTypes(),function(e){var a=function(t,e,n){var i=_.get(e);if(!i)return n;var o=i(t);return o?n.concat(o):n}(this,e,u.qB(t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",d=u.O2(s,a,c);u.GX(d,e,h.A),n[e]=null,i.set(e,null),o.set(e,0);var p,f=[],m=[],v=0;(0,r.__)(d,function(t,n){var i=t.existing,o=t.newOption;if(o){var a="series"===e,s=h.A.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(p)return;p=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1);else{var l=(0,r.X$)({componentIndex:n},t.keyInfo);i=new s(o,this,this,l),(0,r.X$)(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),m.push(i),v++):(f.push(void 0),m.push(void 0))},this),n[e]=f,i.set(e,m),o.set(e,v),"series"===e&&g(this)},this),this._seriesIndices||g(this)},e.prototype.getOption=function(){var t=(0,r.o8)(this.option);return(0,r.__)(t,function(e,n){if(h.A.hasClass(n)){for(var i=u.qB(e),o=i.length,r=!1,a=o-1;a>=0;a--)i[a]&&!u.oh(i[a])?r=!0:(i[a]=null,!r&&o--);i.length=o,t[n]=i}}),delete t[S],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,o=t.id,a=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=i?(n=[],(0,r.__)(u.qB(i),function(t){s[t]&&n.push(s[t])})):n=null!=o?w("id",o,s):null!=a?w("name",a,s):(0,r.pb)(s,function(t){return!!t}),M(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,o,a,s=t.query,l=t.mainType,u=(n=l+"Index",i=l+"Id",o=l+"Name",!(e=s)||null==e[n]&&null==e[i]&&null==e[o]?null:{mainType:l,index:e[n],id:e[i],name:e[o]});return a=M(u?this.queryComponents(u):(0,r.pb)(this._componentsMap.get(l),function(t){return!!t}),t),t.filter?(0,r.pb)(a,t.filter):a},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,r.Tn)(t)){var o=e,a=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(o,e,i,i.componentIndex)}})}else for(var s=(0,r.Kg)(t)?i.get(t):(0,r.Gv)(t)?this.findComponents(t):null,l=0;s&&l<s.length;l++){var u=s[l];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u.vS(t,null);return(0,r.pb)(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return(0,r.pb)(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return(0,r.pb)(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){m(this),(0,r.__)(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){(0,r.__)(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){m(this),(0,r.__)(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&e.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,r.__)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return m(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){m(this);var n=[];(0,r.__)(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(e,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=(0,r.nt)(n)},e.prototype.restoreData=function(t){g(this);var e=this._componentsMap,n=[];e.each(function(t,e){h.A.hasClass(e)&&n.push(e)}),h.A.topologicalTravel(n,h.A.getAllClassMainTypes(),function(n){(0,r.__)(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,o=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=o&&t.name!==o}}(e,t)||e.restoreData()})})},e.internalField=(g=function(t){var e=t._seriesIndices=[];(0,r.__)(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=(0,r.nt)(e)},m=function(t){},void(v=function(t,e){t.option={},t.option[S]=1,t._componentsMap=(0,r.nt)({series:[]}),t._componentsCount=(0,r.nt)();var n=e.aria;(0,r.Gv)(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;(0,r.__)(e,function(e,i){"colorLayer"===i&&n||h.A.hasClass(i)||("object"==typeof e?t[i]=t[i]?(0,r.h1)(t[i],e,!1):(0,r.o8)(e):null==t[i]&&(t[i]=e))})}(e,t._theme.option),(0,r.h1)(e,f,!1),t._mergeOption(e,null)})),e}(c.A);function w(t,e,n){if((0,r.cy)(e)){var i=(0,r.nt)();return(0,r.__)(e,function(t){null!=t&&null!=u.vS(t,null)&&i.set(t,!0)}),(0,r.pb)(n,function(e){return e&&i.get(e[t])})}var o=u.vS(e,null);return(0,r.pb)(n,function(e){return e&&null!=o&&e[t]===o})}function M(t,e){return e.hasOwnProperty("subType")?(0,r.pb)(t,function(t){return t&&t.subType===e.subType}):t}function I(t){var e=(0,r.nt)();return t&&(0,r.__)(u.qB(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}(0,r.co)(b,x.X);const A=b;var T=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const C=function(t){r.__(T,function(e){this[e]=r.oI(t[e],t)},this)};var D=n(9737),L=/^(min|max)?(.+)$/,k=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,r.__)((0,u.qB)(t.series),function(t){t&&t.data&&(0,r.iu)(t.data)&&(0,r.En)(t.data)}),(0,r.__)((0,u.qB)(t.dataset),function(t){t&&t.source&&(0,r.iu)(t.source)&&(0,r.En)(t.source)})),t=(0,r.o8)(t);var i=this._optionBackup,o=function(t,e,n){var i,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||s&&s.timeline);function p(t){(0,r.__)(e,function(e){e(t,n)})}return s?(o=s).timeline||(o.timeline=l):((d||h)&&(t.options=t.media=null),o=t),h&&(0,r.cy)(c)&&(0,r.__)(c,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))}),p(o),(0,r.__)(u,function(t){return p(t)}),(0,r.__)(a,function(t){return p(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:a}}(t,e,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,r.o8)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=(0,r.o8)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),o=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var c=0,h=a.length;c<h;c++)P(a[c].query,i,o)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(e=l,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(u=(0,r.Tj)(l,function(t){return(0,r.o8)(-1===t?s.option:a[t].option)})),this._currentMediaIndices=l,u},t}();function P(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return(0,r.__)(t,function(t,e){var n=e.match(L);if(n&&n[1]&&n[2]){var r=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,r)||(o=!1)}}),o}const O=k;var N=r.__,R=r.Gv,E=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function z(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=E.length;n<i;n++){var o=E[n],a=e.normal,s=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?r.h1(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?r.h1(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function V(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,o=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,r.NT(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o,o.focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope))}}function B(t){V(t,"itemStyle"),V(t,"lineStyle"),V(t,"areaStyle"),V(t,"label"),V(t,"labelLine"),V(t,"upperLabel"),V(t,"edgeLabel")}function G(t,e){var n=R(t)&&t[e],i=R(n)&&n.textStyle;if(i)for(var o=0,r=u.JS.length;o<r;o++){var a=u.JS[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function F(t){t&&(B(t),G(t,"label"),t.emphasis&&G(t.emphasis,"label"))}function H(t){return r.cy(t)?t:t?[t]:[]}function W(t){return(r.cy(t)?t[0]:t)||{}}function X(t){t&&(0,r.__)(U,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var U=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Z=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Y=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function $(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Y.length;n++){var i=Y[n][1],o=Y[n][0];null!=e[i]&&(e[o]=e[i])}}function K(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function q(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function j(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&j(t[n].children,e)}function J(t,e){(function(t,e){N(H(t.series),function(t){R(t)&&function(t){if(R(t)){z(t),B(t),G(t,"label"),G(t,"upperLabel"),G(t,"edgeLabel"),t.emphasis&&(G(t.emphasis,"label"),G(t.emphasis,"upperLabel"),G(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(z(e),F(e));var n=t.markLine;n&&(z(n),F(n));var i=t.markArea;i&&F(i);var o=t.data;if("graph"===t.type){o=o||t.nodes;var a=t.links||t.edges;if(a&&!r.iu(a))for(var s=0;s<a.length;s++)F(a[s]);r.__(t.categories,function(t){B(t)})}if(o&&!r.iu(o))for(s=0;s<o.length;s++)F(o[s]);if((e=t.markPoint)&&e.data){var l=e.data;for(s=0;s<l.length;s++)F(l[s])}if((n=t.markLine)&&n.data){var u=n.data;for(s=0;s<u.length;s++)r.cy(u[s])?(F(u[s][0]),F(u[s][1])):F(u[s])}"gauge"===t.type?(G(t,"axisLabel"),G(t,"title"),G(t,"detail")):"treemap"===t.type?(V(t.breadcrumb,"itemStyle"),r.__(t.levels,function(t){B(t)})):"tree"===t.type&&B(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),N(n,function(e){N(H(t[e]),function(t){t&&(G(t,"axisLabel"),G(t.axisPointer,"label"))})}),N(H(t.parallel),function(t){var e=t&&t.parallelAxisDefault;G(e,"axisLabel"),G(e&&e.axisPointer,"label")}),N(H(t.calendar),function(t){V(t,"itemStyle"),G(t,"dayLabel"),G(t,"monthLabel"),G(t,"yearLabel")}),N(H(t.radar),function(t){G(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),N(H(t.geo),function(t){R(t)&&(F(t),N(H(t.regions),function(t){F(t)}))}),N(H(t.timeline),function(t){F(t),V(t,"label"),V(t,"itemStyle"),V(t,"controlStyle",!0);var e=t.data;r.cy(e)&&r.__(e,function(t){r.Gv(t)&&(V(t,"label"),V(t,"itemStyle"))})}),N(H(t.toolbox),function(t){V(t,"iconStyle"),N(t.feature,function(t){V(t,"iconStyle")})}),G(W(t.axisPointer),"label"),G(W(t.tooltip).axisPointer,"label")})(t,e),t.series=(0,u.qB)(t.series),(0,r.__)(t.series,function(t){if((0,r.Gv)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),K(t.label),(o=t.data)&&!(0,r.iu)(o))for(var n=0;n<o.length;n++)K(o[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t){for(var e="pointer.color".split(","),n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t);null!=i&&function(t,e,n){for(var i,o="itemStyle.color".split(","),r=t,a=0;a<o.length-1;a++)null==r[i=o[a]]&&(r[i]={}),r=r[i];null==r[o[a]]&&(r[o[a]]=n)}(t,0,i)}else if("bar"===e){var o;if($(t),$(t.backgroundStyle),$(t.emphasis),(o=t.data)&&!(0,r.iu)(o))for(n=0;n<o.length;n++)"object"==typeof o[n]&&($(o[n]),$(o[n]&&o[n].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),q(t),j(t.data,q)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,r.NT)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),X(t)}}),t.dataRange&&(t.visualMap=t.dataRange),(0,r.__)(Z,function(e){var n=t[e];n&&((0,r.cy)(n)||(n=[n]),(0,r.__)(n,function(t){X(t)}))})}var Q=n(4326);function tt(t){(0,r.__)(t,function(e,n){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,function(r,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return o;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=(0,Q.Tr)(p,v),f=v;break}}}return i[0]=p,i[1]=f,i})})}var et=n(4278),nt=n(9109),it=n(6666),ot=n(10),rt=n(540),at=n(5638),st=n(1950),lt=n(9622),ut=n(4833),ct=n(4711),ht=n(2944),dt=n(4962),pt=n(8317),ft=(0,u.$r)(),gt={itemStyle:(0,ht.A)(dt.L,!0),lineStyle:(0,ht.A)(pt.m,!0)},mt={lineStyle:"stroke",itemStyle:"fill"};function vt(t,e){return t.visualStyleMapper||gt[e]||gt.itemStyle}function yt(t,e){return t.visualDrawType||mt[e]||"fill"}var _t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),a=vt(t,i)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=yt(t,i),u=a[l],c=(0,r.Tn)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,r.Tn)(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||(0,r.Tn)(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=(0,r.X$)({},a);o[l]=c(i),e.setItemVisual(n,"style",o)}}}},xt=new c.A,St={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=vt(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){xt.option=n[i];var s=o(xt),l=t.ensureUniqueItemVisual(e,"style");(0,r.X$)(l,s),xt.option.decal&&(t.setItemVisual(e,"decal",xt.option.decal),xt.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},bt={performRawSeries:!0,overallReset:function(t){var e=(0,r.nt)();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,o=e.get(i);o||(o={},e.set(i,o)),ft(t).scope=o}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},o=e.getData(),r=ft(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=yt(e,a);o.each(function(t){var e=o.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(o.getItemVisual(a,"colorFromPalette")){var l=o.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,r,c)}})}})}},wt=n(3870),Mt=n(9766),It=n(3471),At=Math.PI,Tt=n(9431),Ct=n(2616),Dt=function(){function t(t,e,n,i){this._stageTaskMap=(0,r.nt)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,o=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,r=i&&i.modDataCount;return{step:o,modBy:null!=r?Math.ceil(r/o):null,modDataCount:r}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:r}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,r.nt)();t.eachSeries(function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,r.__)(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{});(0,r.vA)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,r.__)(t,function(t,r){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){s(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each(function(t){t.perform(p)}),c.perform(p)&&(o=!0)}else u&&u.each(function(r,l){s(i,r)&&r.dirty();var u=a.getPerformArgs(r,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(u)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=(0,r.nt)(),l=t.seriesType,u=t.getTargetSeries;function c(e){var r=e.uid,l=s.set(r,a&&a.get(r)||(0,Tt.U)({plan:Nt,reset:Rt,count:Vt}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var o=this,a=e.overallTask=e.overallTask||(0,Tt.U)({reset:Lt});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=(0,r.nt)(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1;function p(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(d=!0,(0,Tt.U)({reset:kt,onDirty:Ot})));n.context={model:t,overallProgress:h},n.agent=a,n.__block=h,o._pipe(t,n)}(0,r.vA)(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(h=!1,(0,r.__)(n.getSeries(),p)),d&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return(0,r.Tn)(t)&&(t={overallReset:t,seriesType:Bt(t)}),t.uid=(0,Ct.$Q)("stageHandler"),e&&(t.visualType=e),t},t}();function Lt(t){t.overallReset(t.ecModel,t.api,t.payload)}function kt(t){return t.overallProgress&&Pt}function Pt(){this.agent.dirty(),this.getDownstream().dirty()}function Ot(){this.agent&&this.agent.dirty()}function Nt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Rt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,u.qB)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,r.Tj)(e,function(t,e){return zt(e)}):Et}var Et=zt(0);function zt(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function Vt(t){return t.data.count()}function Bt(t){Gt=null;try{t(Ft,Ht)}catch(t){}return Gt}var Gt,Ft={},Ht={};function Wt(t,e){for(var n in e.prototype)t[n]=r.lQ}Wt(Ft,A),Wt(Ht,C),Ft.eachSeriesByType=Ft.eachRawSeriesByType=function(t){Gt=t},Ft.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Gt=t.subType)};const Xt=Dt;var Ut=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Zt={color:Ut,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ut]};var Yt="#B9B8CE",$t="#100C2A",Kt=function(){return{axisLine:{lineStyle:{color:Yt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},qt=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],jt={darkMode:!0,color:qt,backgroundColor:$t,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yt},pageTextStyle:{color:Yt}},textStyle:{color:Yt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yt}},timeline:{lineStyle:{color:Yt},label:{color:Yt},controlStyle:{color:Yt,borderColor:Yt}},calendar:{itemStyle:{color:$t},dayLabel:{color:Yt},monthLabel:{color:Yt},yearLabel:{color:Yt}},timeAxis:Kt(),logAxis:Kt(),valueAxis:Kt(),categoryAxis:Kt(),line:{symbol:"circle"},graph:{color:qt},gauge:{title:{color:Yt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};jt.categoryAxis.splitLine.show=!1;const Jt=jt;var Qt=n(693),te=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(r.Kg(t)){var o=(0,Qt.CC)(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.__(t,function(t,o){for(var r=!1,l=0;l<a.length;l++){var u=a[l],c=o.lastIndexOf(u);if(c>0&&c===o.length-u.length){var h=o.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,r=!0)}}s.hasOwnProperty(o)&&(n[o]=t,r=!0),r||(i[o]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model,a=n.view;if(!r||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,r,"mainType")&&u(s,r,"subType")&&u(s,r,"index","componentIndex")&&u(s,r,"name")&&u(s,r,"id")&&u(l,o,"name")&&u(l,o,"dataIndex")&&u(l,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,o));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ee=["symbol","symbolSize","symbolRotate","symbolOffset"],ne=ee.concat(["symbolKeepAspect"]),ie={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},o={},a=!1,s=0;s<ee.length;s++){var l=ee[s],u=t.get(l);(0,r.Tn)(u)?(a=!0,o[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,r.X$)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=(0,r.HP)(o);return{dataEach:a?function(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,o[s](i,r))}}:null}}}}},oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<ne.length;i++){var o=ne[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}},re=n(7395),ae=n(1025),se=n(6884),le=n(7752),ue=n(182),ce=n(7411),he=n(3538);const de=new l.A;var pe=n(9741),fe=n(3976),ge=2e3,me=4500,ve={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:ge,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:me,ARIA:6e3,DECAL:7e3}},ye="__flagInMainProcess",_e="__pendingUpdate",xe="__needsUpdateStatus",Se=/^[a-zA-Z0-9_]+$/,be="__connectUpdateStatus";function we(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Ie(this,t,e);Ke(this.id)}}function Me(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ie(this,t,e)}}function Ie(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l.A.prototype[e].apply(t,n)}var Ae,Te,Ce,De,Le,ke,Pe,Oe,Ne,Re,Ee,ze,Ve,Be,Ge,Fe,He,We,Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(l.A),Ue=Xe.prototype;Ue.on=Me("on"),Ue.off=Me("off");var Ze=function(t){function e(e,n,i){var a=t.call(this,new te)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,r.Kg)(n)&&(n=en[n]),a._dom=e,i.ssr&&o.jW(function(t){var e=(0,lt.z)(t),n=e.dataIndex;if(null!=n){var i=(0,r.nt)();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}});var l=a._zr=o.Ts(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,r.bZ)(i.useDirtyRect,!1),useCoarsePointer:(0,r.bZ)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,ct.nF)((0,r.oI)(l.flush,l),17),(n=(0,r.o8)(n))&&J(n,!0),a._theme=n,a._locale=(0,ue.A$)(i.locale||ue.Lv),a._coordSysMgr=new D.A;var u=a._api=Ge(a);function c(t,e){return t.__prio-e.__prio}return(0,s.A)(tn,c),(0,s.A)(Je,c),a._scheduler=new Xt(a,u,Je,tn),a._messageCenter=new Xe,a._initEvents(),a.resize=(0,r.oI)(a.resize,a),l.animation.on("frame",a._onframe,a),Re(l,a),Ee(l,a),(0,r.En)(a),a}return(0,i.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){We(this);var t=this._scheduler;if(this[_e]){var e=this[_e].silent;this[ye]=!0;try{Ae(this),De.update.call(this,null,this[_e].updateParams)}catch(t){throw this[ye]=!1,this[_e]=null,t}this._zr.flush(),this[ye]=!1,this[_e]=null,Oe.call(this,e),Ne.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),ke(this,i),t.performVisualTasks(i),Be(this,this._model,o,"remain",{}),n-=+new Date-r}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[ye])if(this._disposed)Ke(this.id);else{var i,o,a;if((0,r.Gv)(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,a=e.transition,e=e.notMerge),this[ye]=!0,!this._model||e){var s=new O(this._api),l=this._theme,u=this._model=new A;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:o},Qe);var c={seriesTransition:a,optionChanged:!0};if(n)this[_e]={silent:i,updateParams:c},this[ye]=!1,this.getZr().wakeUp();else{try{Ae(this),De.update.call(this,null,c)}catch(t){throw this[_e]=null,this[ye]=!1,t}this._ssr||this._zr.flush(),this[_e]=null,this[ye]=!1,Oe.call(this,i),Ne.call(this,i)}}},e.prototype.setTheme=function(){(0,ae.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.A.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.A.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,r.__)(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],o=this;(0,r.__)(e,function(t){n.eachComponent({mainType:t},function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,r.__)(i,function(t){t.group.ignore=!1}),a}Ke(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(rn[n]){var l=s,u=s,c=-1/0,h=-1/0,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();(0,r.__)(on,function(o,s){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas((0,r.o8)(t)),f=o.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),h=a(f.bottom,h),d.push({dom:p,left:f.left,top:f.top})}});var f=(c*=p)-(l*=p),g=(h*=p)-(u*=p),m=pe.yh.createCanvas(),v=o.Ts(m,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:g}),e){var y="";return(0,r.__)(d,function(t){var e=t.left-l,n=t.top-u;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new ot.A({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,r.__)(d,function(t){var e=new rt.Ay({style:{x:t.left*p-l,y:t.top*p-u,image:t.dom}});v.add(e)}),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Ke(this.id)},e.prototype.convertToPixel=function(t,e){return Le(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Le(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,o=u._e(i,t);return(0,r.__)(o,function(t,i){i.indexOf("Models")>=0&&(0,r.__)(t,function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(e);else if("seriesModels"===i){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(n=n||r.containPoint(e,t))}},this)},this),!!n}Ke(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=u._e(n,t,{defaultMainType:"series"}),o=i.seriesModel.getData(),r=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=r?(0,re.Ez)(o,r,e):(0,re.rI)(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;(0,r.__)($e,function(e){var n=function(n){var i,o=t.getModel(),a=n.target;if("globalout"===e?i={}:a&&(0,ce.R)(a,function(t){var e=(0,lt.z)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||o.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=(0,r.X$)({},e.eventData),!0},!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&o.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),(0,r.__)(je,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),(0,r.__)(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),(0,se.l)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Ke(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Ke(this.id);else{this._disposed=!0,this.getDom()&&u.Bq(this.getDom(),sn,"");var t=this,e=t._api,n=t._model;(0,r.__)(t._componentsViews,function(t){t.dispose(n,e)}),(0,r.__)(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete on[t.id]}},e.prototype.resize=function(t){if(!this[ye])if(this._disposed)Ke(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[_e]&&(null==i&&(i=this[_e].silent),n=!0,this[_e]=null),this[ye]=!0;try{n&&Ae(this),De.update.call(this,{type:"resize",animation:(0,r.X$)({duration:0},t&&t.animation)})}catch(t){throw this[ye]=!1,t}this[ye]=!1,Oe.call(this,i),Ne.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Ke(this.id);else if((0,r.Gv)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),nn[t]){var n=nn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Ke(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,r.X$)({},t);return e.type=je[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Ke(this.id);else if((0,r.Gv)(e)||(e={silent:!!e}),qe[t.type]&&this._model)if(this[ye])this._pendingActions.push(t);else{var n=e.silent;Pe.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a.A.browser.weChat&&this._throttledZrFlush(),Oe.call(this,n),Ne.call(this,n)}},e.prototype.updateLabelLayout=function(){de.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Ke(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ut.e3&&t.states.emphasis?e.push("emphasis"):t.hoverState===ut.zX&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return o(t,n,i,-1/0),!0})}}function o(t,e,n,i){var r=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(o(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function l(t,e){e.eachRendered(function(t){if(!at.LR(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function c(t,n){var i=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),r=i.get("duration"),a=r>0?{duration:r,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(at.LR(t))return;if(t instanceof st.Ay&&(0,ut.fz)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(o){t.stateTransition=a;var i=t.getTextContent(),r=t.getTextGuideLine();i&&(i.stateTransition=a),r&&(r.stateTransition=a)}t.__dirty&&e(t)}})}Ae=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Te(t,!0),Te(t,!1),e.plan()},Te=function(t,e){for(var n=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<o.length;l++)o[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&r[u];if(!c){var h=(0,Qt.CC)(t.type);(c=new(e?nt.A.getClass(h.main,h.sub):it.A.getClass(h.sub))).init(n,s),r[u]=c,o.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u),l=0;l<o.length;){var c=o[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),o.splice(l,1),r[c.__id]===c&&delete r[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Ce=function(t,e,n,i,o){var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};o&&(l.subType=o);var c,h=n.excludeSeriesId;null!=h&&(c=(0,r.nt)(),(0,r.__)(u.qB(h),function(t){var e=u.vS(t,null);null!=e&&c.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!c||null==c.get(e.id))if((0,ut.T$)(n))if(e instanceof et.A)n.type!==ut.h5||n.notBlur||e.get(["emphasis","disabled"])||(0,ut.lV)(e,n,t._api);else{var i=(0,ut.Tl)(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===ut.h5&&o&&!n.notBlur&&(0,ut.Du)(e.mainType,e.componentIndex,t._api),a&&(0,r.__)(a,function(t){n.type===ut.h5?(0,ut.HY)(t):(0,ut.SD)(t)})}else(0,ut.Lx)(n)&&e instanceof et.A&&((0,ut.t6)(e,n,t._api),(0,ut.jA)(e),He(t))},t),a&&a.eachComponent(l,function(e){c&&null!=c.get(e.id)||d(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else(0,r.__)([].concat(t._componentsViews).concat(t._chartsViews),d);function d(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},De={prepareAndUpdate:function(t){Ae(this),De.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,o=this._api,r=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,o),s.performDataProcessorTasks(i,e),ke(this,i),a.update(i,o),t(i),s.performVisualTasks(i,e),ze(this,i,o,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");r.setBackgroundColor(l),null!=u&&"auto"!==u&&r.setDarkMode(u),de.trigger("afterupdate",i,o)}},updateTransform:function(e){var n=this,i=this._model,o=this._api;if(i){i.setUpdatePayload(e);var a=[];i.eachComponent(function(t,r){if("series"!==t){var s=n.getViewOfComponentModel(r);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(r,i,o,e);l&&l.update&&a.push(s)}else a.push(s)}});var s=(0,r.nt)();i.eachSeries(function(t){var r=n._chartsMap[t.__viewId];if(r.updateTransform){var a=r.updateTransform(t,i,o,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),Be(this,i,o,e,{},s),de.trigger("afterupdate",i,o)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),it.A.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ze(this,n,this._api,e,{}),de.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),it.A.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,o){if("series"!==t){var r=n.getViewOfComponentModel(o);r&&r.__alive&&r.updateVisual(o,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),de.trigger("afterupdate",i,this._api))},updateLayout:function(t){De.update.call(this,t)}},Le=function(t,e,n,i){if(t._disposed)Ke(t.id);else for(var o,r=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=u._e(r,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(o=c[e](r,s,i)))return o}},ke=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Pe=function(t,e){var n=this,i=this.getModel(),o=t.type,a=t.escapeConnect,s=qe[o],l=s.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),d=null!=c[0]&&(0,Qt.CC)(c[0]);this[ye]=!0;var p=[t],f=!1;t.batch&&(f=!0,p=(0,r.Tj)(t.batch,function(e){return(e=(0,r.NT)((0,r.X$)({},e),t)).batch=null,e}));var g,m=[],v=(0,ut.Lx)(t),y=(0,ut.T$)(t);if(y&&(0,ut.qR)(this._api),(0,r.__)(p,function(e){if((g=(g=s.action(e,n._model,n._api))||(0,r.X$)({},e)).type=l.event||g.type,m.push(g),y){var i=u.HB(t),o=i.queryOptionMap,a=i.mainTypeSpecified?o.keys()[0]:"series";Ce(n,h,e,a),He(n)}else v?(Ce(n,h,e,"series"),He(n)):d&&Ce(n,h,e,d.main,d.sub)}),"none"!==h&&!y&&!v&&!d)try{this[_e]?(Ae(this),De.update.call(this,t),this[_e]=null):De[h].call(this,t)}catch(t){throw this[ye]=!1,t}if(g=f?{type:l.event||o,escapeConnect:a,batch:m}:m[0],this[ye]=!1,!e){var _=this._messageCenter;if(_.trigger(g.type,g),v){var x={type:"selectchanged",escapeConnect:a,selected:(0,ut.mc)(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};_.trigger(x.type,x)}}},Oe=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Pe.call(this,n,t)}},Ne=function(t){!t&&this.trigger("updated")},Re=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[_e]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},Ee=function(t,e){t.on("mouseover",function(t){var n=t.target,i=(0,ce.R)(n,ut.u6);i&&((0,ut._m)(i,t,e._api),He(e))}).on("mouseout",function(t){var n=t.target,i=(0,ce.R)(n,ut.u6);i&&((0,ut.Iz)(i,t,e._api),He(e))}).on("click",function(t){var n=t.target,i=(0,ce.R)(n,function(t){return null!=(0,lt.z)(t).dataIndex},!0);if(i){var o=i.selected?"unselect":"select",r=(0,lt.z)(i);e._api.dispatchAction({type:o,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},ze=function(t,e,n,i,o){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,o){var r=o.get("zlevel")||0,a=o.get("z")||0,s=o.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:r,z:a,idx:o.componentIndex,type:t,key:s})}),i){var o,a,l=e.concat(n);(0,s.A)(l,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),(0,r.__)(l,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,r=e.key;null!=o&&(i=Math.max(o,i)),r?(i===o&&r!==a&&i++,a=r):a&&(i===o&&i++,a=""),o=i,n.setZLevel(i)})}}(e),Ve(t,e,n,i,o),(0,r.__)(t._chartsViews,function(t){t.__alive=!1}),Be(t,e,n,i,o),(0,r.__)(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Ve=function(t,e,i,o,a,s){(0,r.__)(s||t._componentsViews,function(t){var r=t.__model;l(0,t),t.render(r,e,i,o),n(r,t),c(r,t)})},Be=function(t,e,i,o,s,u){var h=t._scheduler;s=(0,r.X$)(s||{},{updatedSeries:e.getSeries()}),de.trigger("series:beforeupdate",e,i,s);var d=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,o),l(0,n),u&&u.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(d=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),(0,ut.jA)(e)}),h.unfinished=d||h.unfinished,de.trigger("series:layoutlabels",e,i,s),de.trigger("series:transition",e,i,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),c(e,i)}),function(t,e){var n=t._zr.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),de.trigger("series:afterupdate",e,i,s)},He=function(t){t[xe]=!0,t.getZr().wakeUp()},We=function(t){t[xe]&&(t.getZr().storage.traverse(function(t){at.LR(t)||e(t)}),t[xe]=!1)},Ge=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){(0,ut.HY)(e,n),He(t)},n.prototype.leaveEmphasis=function(e,n){(0,ut.SD)(e,n),He(t)},n.prototype.enterBlur=function(e){(0,ut.QX)(e),He(t)},n.prototype.leaveBlur=function(e){(0,ut.JC)(e),He(t)},n.prototype.enterSelect=function(e){(0,ut.JI)(e),He(t)},n.prototype.leaveSelect=function(e){(0,ut.gd)(e),He(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(C))(t)},Fe=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][be]=e}(0,r.__)(je,function(n,i){t._messageCenter.on(i,function(n){if(rn[t.group]&&0!==t[be]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),o=[];(0,r.__)(on,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),(0,r.__)(o,function(t){1!==t[be]&&t.dispatchAction(i)}),e(o,2)}})})}}(),e}(l.A),Ye=Ze.prototype;Ye.on=we("on"),Ye.off=we("off"),Ye.one=function(t,e,n){var i=this;(0,ae.aT)("ECharts#one is deprecated."),this.on.call(this,t,function n(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),i.off(t,n)},n)};var $e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ke(t){}var qe={},je={},Je=[],Qe=[],tn=[],en={},nn={},on={},rn={},an=+new Date-0,sn=(new Date,"_echarts_instance_");function ln(t,e,n){var i=!(n&&n.ssr);if(i){var o=function(t){return on[u.D$(t,sn)]}(t);if(o)return o}var r=new Ze(t,e,n);return r.id="ec_"+an++,on[r.id]=r,i&&u.Bq(t,sn,r.id),Fe(r),de.trigger("afterinit",r),r}function un(t,e){en[t]=e}function cn(t){(0,r.qh)(Qe,t)<0&&Qe.push(t)}function hn(t,e){xn(Je,t,e,2e3)}function dn(t){fn("afterinit",t)}function pn(t){fn("afterupdate",t)}function fn(t,e){de.on(t,e)}function gn(t,e,n){(0,r.Tn)(e)&&(n=e,e="");var i=(0,r.Gv)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,je[e]||((0,r.vA)(Se.test(i)&&Se.test(e)),qe[i]||(qe[i]={action:n,actionInfo:t}),je[e]=i)}function mn(t,e){D.A.register(t,e)}function vn(t,e){xn(tn,t,e,1e3,"layout")}function yn(t,e){xn(tn,t,e,3e3,"visual")}var _n=[];function xn(t,e,n,i,o){if(((0,r.Tn)(e)||(0,r.Gv)(e))&&(n=e,e=i),!((0,r.qh)(_n,n)>=0)){_n.push(n);var a=Xt.wrapStageHandler(n,o);a.__prio=e,a.__raw=n,t.push(a)}}function Sn(t,e){nn[t]=e}function bn(t,e,n){var i=(0,fe.v)("registerMap");i&&i(t,e,n)}var wn=le.v5;yn(ge,_t),yn(me,St),yn(me,bt),yn(ge,ie),yn(me,oe),yn(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=(0,he.w)(n,e))});var o=i.getVisual("decal");o&&(i.getVisual("style").decal=(0,he.w)(o,e))}})}),cn(J),hn(900,function(t){var e=(0,r.nt)();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),o=t.getData(),r={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}}),e.each(tt)}),Sn("default",function(t,e){e=e||{},r.NT(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new wt.A,i=new ot.A({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var o,a=new Mt.Ay({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new ot.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&((o=new It.A({shape:{startAngle:-At/2,endAngle:-At/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*At/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*At/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=a.getBoundingRect().width,r=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*r-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:r),u=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:u}),s.setShape({x:l-r,y:u-r,width:2*r,height:2*r}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),gn({type:ut.h5,event:ut.h5,update:ut.h5},r.lQ),gn({type:ut.PW,event:ut.PW,update:ut.PW},r.lQ),gn({type:ut.Lv,event:ut.Lv,update:ut.Lv},r.lQ),gn({type:ut.U2,event:ut.U2,update:ut.U2},r.lQ),gn({type:ut.Q6,event:ut.Q6,update:ut.Q6},r.lQ),un("light",Zt),un("dark",Jt)},3976(t,e,n){n.d(e,{m:()=>o,v:()=>r});var i={};function o(t,e){i[t]=e}function r(t){return i[t]}},182(t,e,n){n.d(e,{Lv:()=>h,A$:()=>p,pr:()=>g,A4:()=>f});var i=n(3172),o=n(8123),r=n(8026),a="ZH",s="EN",l=s,u={},c={},h=o.A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||l).toUpperCase().indexOf(a)>-1?a:l;function d(t,e){t=t.toUpperCase(),c[t]=new i.A(e),u[t]=e}function p(t){if((0,r.Kg)(t)){var e=u[t.toUpperCase()]||{};return t===a||t===s?(0,r.o8)(e):(0,r.h1)((0,r.o8)(e),(0,r.o8)(u[l]),!1)}return(0,r.h1)((0,r.o8)(t),(0,r.o8)(u[l]),!1)}function f(t){return c[t]}function g(){return c[l]}d(s,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),d(a,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}})},9431(t,e,n){n.d(e,{U:()=>o});var i=n(8026);function o(t){return new r(t)}var r=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,o=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(o)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!o&&(a||p<f)){var g=this._progress;if((0,i.cy)(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,o){a.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,i.cy)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var o=this._downstream;return o&&o.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),a=function(){var t,e,n,i,o,r={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,o=Math.ceil(i/n),r.next=n>1&&i>0?s:a}};return r;function a(){return e<t?e++:null}function s(){var r=e%o*n+Math.ceil(e/o),a=e>=t?null:r<i?r:e;return e++,a}}()},250(t,e,n){n.d(e,{A_:()=>c,Ay:()=>v});var i,o=n(8026),r=n(1825),a=n(4310),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,h=typeof Float64Array===s?Array:Float64Array,d={float:h,int:c,ordinal:Array,number:Array,time:h};function p(t){return t>65535?l:u}function f(){return[1/0,-1/0]}function g(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function m(t,e,n,i,o){var r=d[n||"float"];if(o){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new r(i)}const v=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,o.nt)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),s=this.defaultDimValueGetter=i[r.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[],(0,a.O0)(r),this._dimensions=(0,o.Tj)(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new d[e||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[t]=[1/0,-1/0]);for(var s=o[t],l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,o=this._dimensions,r=o.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<r;u++)m(n,u,(f=o[u]).type,l,!0);for(var c=[],h=s;h<l;h++)for(var d=h-s,p=0;p<r;p++){var f=o[p],g=i.arrayRows.call(this,t[d]||c,f.property,d,p);n[p][h]=g;var v=a[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=(0,o.Tj)(a,function(t){return t.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=f()),m(r,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,l);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var g=0;g<s;g++){var v=r[g],y=this._dimValueGetter(d,u[g],p,g);v[p]=y;var _=l[g];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;o=0;for(var r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;o=r-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<r||h===r&&c>=0&&a<0)&&(r=h,a=c,s=0),c===a&&(o[s++]=l))}return o.length=s,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var o=0;o<i;o++)t[o]=e[o]}else t=new n(e.buffer,0,i)}else for(t=new(n=p(this._rawCount))(this.count()),o=0;o<t.length;o++)t[o]=o;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(p(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var f=0;f<a;f++)r[f]=u[t[f]][d];r[f]=c,h=e.apply(null,r)}h&&(o[s++]=d)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=(0,o.HP)(t),r=i.length;if(!r)return this;var a=e.count(),s=new(p(e._rawCount))(a),l=0,u=i[0],c=t[u][0],h=t[u][1],d=e._chunks,f=!1;if(!e._indices){var g=0;if(1===r){for(var m=d[i[0]],v=0;v<n;v++)((S=m[v])>=c&&S<=h||isNaN(S))&&(s[l++]=g),g++;f=!0}else if(2===r){m=d[i[0]];var y=d[i[1]],_=t[i[1]][0],x=t[i[1]][1];for(v=0;v<n;v++){var S=m[v],b=y[v];(S>=c&&S<=h||isNaN(S))&&(b>=_&&b<=x||isNaN(b))&&(s[l++]=g),g++}f=!0}}if(!f)if(1===r)for(v=0;v<a;v++){var w=e.getRawIndex(v);((S=d[i[0]][w])>=c&&S<=h||isNaN(S))&&(s[l++]=w)}else for(v=0;v<a;v++){for(var M=!0,I=(w=e.getRawIndex(v),0);I<r;I++){var A=i[I];((S=d[A][w])<t[A][0]||S>t[A][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(v))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=f();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<r;d++)s[d]=i[e[d]][h];s[r]=c;var p=n&&n.apply(null,s);if(null!=p)for("object"!=typeof p&&(o[0]=p,p=o),u=0;u<p.length;u++){var g=e[u],m=p[u],v=l[g],y=i[g];y&&(y[h]=m),m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}},t.prototype.lttbDownSample=function(t,e){var n,i,o,r=this.clone([t],!0),a=r._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(p(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),g=Math.min(d+2*u,s),m=(g+f)/2,v=0,y=f;y<g;y++){var _=a[A=this.getRawIndex(y)];isNaN(_)||(v+=_)}v/=g-f;var x=d,S=Math.min(d+u,s),b=d-1,w=a[c];n=-1,o=x;var M=-1,I=0;for(y=x;y<S;y++){var A;_=a[A=this.getRawIndex(y)],isNaN(_)?(I++,M<0&&(M=A)):(i=Math.abs((b-m)*(_-w)-(b-y)*(v-w)))>n&&(n=i,o=A)}I>0&&I<S-x&&(h[l++]=Math.min(M,o),o=Math.max(M,o)),h[l++]=o,c=o}return h[l++]=this.getRawIndex(s-1),r._count=l,r._indices=h,r.getRawIndex=this._getRawIdx,r},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,o=Math.floor(1/e),r=i[t],a=this.count(),s=new(p(this._rawCount))(2*Math.ceil(a/o)),l=0,u=0;u<a;u+=o){var c=u,h=r[this.getRawIndex(c)],d=u,f=r[this.getRawIndex(d)],g=o;u+o>a&&(g=a-u);for(var m=0;m<g;m++){var v=r[this.getRawIndex(u+m)];v<h&&(h=v,c=u+m),v>f&&(f=v,d=u+m)}var y=this.getRawIndex(c),_=this.getRawIndex(d);c<d?(s[l++]=y,s[l++]=_):(s[l++]=_,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),c=o._rawExtent[t]=[1/0,-1/0],h=new(p(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(f+g);a[g]=l[m]}var v=n(a),y=this.getRawIndex(Math.min(f+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=y}return o._count=d,o._indices=h,o._updateGetRawIdx(),o},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,o=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var r=(i=n)[0],a=i[1],s=0;s<o;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),l>a&&(a=l)}return i=[r,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,a=e&&(0,o.TS)(e,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)i._chunks[s]=a[s]?g(r[s]):r[s];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,o.o8)(this._extent),t._rawExtent=(0,o.o8)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return(0,r.Pn)(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return(0,r.Pn)(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return(0,r.Pn)(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}()},5135(t,e,n){n.d(e,{A:()=>a});var i=n(8026),o=0;function r(t){return(0,i.Gv)(t)&&null!=t.value?t.value:t+""}const a=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++o}return t.createByAxisModel=function(e){var n=e.option,o=n.data,a=o&&(0,i.Tj)(o,r);return new t({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!(0,i.Kg)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var o=this._getOrCreateMap();return null==(e=o.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,o.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.nt)(this.categories))},t}()},2675(t,e,n){n.d(e,{A:()=>k});var i=n(8026),o=n(3172);function r(t){return null==t?0:t.length||1}function a(t){return t}var s=function(){function t(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||a,this._newKeyGetter=i||a,this.context=o,this._diffModeMultiple="multiple"===r}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=n[s],u=r(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===u?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],c=i[l],h=r(u),d=r(c);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),i[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=r(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),e){var l=e[s],u=r(l);0===u?(e[s]=a,o&&n.push(s)):1===u?e[s]=[l,a]:l.push(a)}}},t}();const l=s;var u,c,h,d,p,f,g,m=n(8267),v=n(9756),y=n(2759),_=n(3430),x=n(8170),S=n(9622),b=n(4310),w=n(250),M=n(3632),I=i.Gv,A=i.Tj,T="undefined"==typeof Int32Array?Array:Int32Array,C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],D=["_approximateExtent"],L=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var o=!1;(0,M.fg)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"];for(var r={},a=[],s={},l=!1,u={},c=0;c<n.length;c++){var h=n[c],d=i.Kg(h)?new y.A({name:h}):h instanceof y.A?h:new y.A(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};a.push(p),r[p]=d,null!=u[p]&&(l=!0),d.createInvertedIndices&&(s[p]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),o&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=i.nt();i.__(a,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(i.Et(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var o,r=this;if(t instanceof w.Ay&&(o=t),!o){var a=this.dimensions,s=(0,b.tP)(t)||i.Xj(t)?new m.d1(t,a.length):t;o=new w.Ay;var l=A(a,function(t){return{type:r._dimInfos[t].type,property:t}});o.initData(s,l,n)}this._store=o,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=(0,v.l)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,o=n.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<o;a++){var s=a-i;this._nameList[a]=e[s],r&&g(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==_.XO&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===_.mK&&!n.pure)for(var r=[],a=t;a<e;a++){var s=n.getItem(a,r);if(!this.hasItemOption&&(0,x.zu)(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=(0,x.vS)(l,null));var c=s.id;null==o[a]&&null!=c&&(o[a]=(0,x.vS)(c,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)g(this,a);u(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){I(t)?i.X$(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=h(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return c(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,o=this._store;return i.cy(t)?o.getValues(A(t,function(t){return n._getStoreDimIndex(t)}),e):o.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){i.Tn(t)&&(n=e,e=t,t=[]);var o=n||this,r=A(d(t),this._getStoreDimIndex,this);this._store.each(r,o?i.oI(e,o):e)},t.prototype.filterSelf=function(t,e,n){i.Tn(t)&&(n=e,e=t,t=[]);var o=n||this,r=A(d(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,o?i.oI(e,o):e),this},t.prototype.selectRange=function(t){var e=this,n={},o=i.HP(t),r=[];return i.__(o,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){i.Tn(t)&&(n=e,e=t,t=[]),n=n||this;var o=[];return this.each(t,function(){o.push(e&&e.apply(this,arguments))},n),o},t.prototype.map=function(t,e,n,o){var r=n||o||this,a=A(d(t),this._getStoreDimIndex,this),s=f(this);return s._store=this._store.map(a,r?i.oI(e,r):e),s},t.prototype.modify=function(t,e,n,o){var r=n||o||this,a=A(d(t),this._getStoreDimIndex,this);this._store.modify(a,r?i.oI(e,r):e)},t.prototype.downSample=function(t,e,n,i){var o=f(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},t.prototype.minmaxDownSample=function(t,e){var n=f(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=f(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new o.A(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new l(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return c(t,e)},function(t){return c(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},I(t)?i.X$(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t];return(n&&n[e])??this.getVisual(e)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,o=n[t];o||(o=n[t]={});var r=o[e];return null==r&&(r=this.getVisual(e),i.cy(r)?r=r.slice():I(r)&&(r=i.X$({},r)),o[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,I(e)?i.X$(o,e):o[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){I(t)?i.X$(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?i.X$(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;(0,S.a)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){i.__(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:A(this.dimensions,this._getDimInfo,this),this.hostModel)),p(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];i.Tn(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(i.di(arguments)))})},t.internalField=(u=function(t){var e=t._invertedIndicesMap;i.__(e,function(n,i){var o=t._dimInfos[i],r=o.ordinalMeta,a=t._store;if(r){n=e[i]=new T(r.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}})},h=function(t,e,n){return(0,x.vS)(t._getCategory(e,n),null)},c=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=h(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},d=function(t){return i.cy(t)||(t=null!=t?[t]:[]),t},f=function(e){var n=new t(e._schema?e._schema:A(e.dimensions,e._getDimInfo,e),e.hostModel);return p(n,e),n},p=function(t,e){i.__(C.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,i.__(D,function(n){t[n]=i.o8(e[n])}),t._calculationInfo=i.X$({},e._calculationInfo)},void(g=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=o&&(n[e]=a=h(t,o,e)),null==s&&null!=r&&(i[e]=s=h(t,r,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const k=L},2759(t,e,n){n.d(e,{A:()=>o});var i=n(8026);const o=function(t){this.otherDims={},null!=t&&i.X$(this,t)}},4310(t,e,n){n.d(e,{AF:()=>c,BE:()=>h,O0:()=>g,gV:()=>u,tP:()=>l,wZ:()=>d});var i=n(8026),o=n(3430),r=n(8170),a=n(3071),s=function(t){this.data=t.data||(t.sourceFormat===o.t1?{}:[]),this.sourceFormat=t.sourceFormat||o.vm,this.seriesLayoutBy=t.seriesLayoutBy||o.i_,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}};function l(t){return t instanceof s}function u(t,e,n){n=n||d(t);var a=e.seriesLayoutBy,l=function(t,e,n,a,s){var l,u;if(!t)return{dimensionsDefine:p(s),startIndex:u,dimensionsDetectedCount:l};if(e===o.Km){var c=t;"auto"===a||null==a?f(function(t){null!=t&&"-"!==t&&((0,i.Kg)(t)?null==u&&(u=1):u=0)},n,c,10):u=(0,i.Et)(a)?a:a?1:0,s||1!==u||(s=[],f(function(t,e){s[e]=null!=t?t+"":""},n,c,1/0)),l=s?s.length:n===o.oC?c.length:c[0]?c[0].length:null}else if(e===o.Wk)s||(s=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return(0,i.HP)(e)}(t));else if(e===o.t1)s||(s=[],(0,i.__)(t,function(t,e){s.push(e)}));else if(e===o.mK){var h=(0,r.vj)(t[0]);l=(0,i.cy)(h)&&h.length||1}else o.XO;return{startIndex:u,dimensionsDefine:p(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:(0,i.o8)(e)})}function c(t){return new s({data:t,sourceFormat:(0,i.iu)(t)?o.XO:o.mK})}function h(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,i.o8)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function d(t){var e=o.vm;if((0,i.iu)(t))e=o.XO;else if((0,i.cy)(t)){0===t.length&&(e=o.Km);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(null!=a){if((0,i.cy)(a)||(0,i.iu)(a)){e=o.Km;break}if((0,i.Gv)(a)){e=o.Wk;break}}}}else if((0,i.Gv)(t))for(var s in t)if((0,i.$3)(t,s)&&(0,i.Xj)(t[s])){e=o.t1;break}return e}function p(t){if(t){var e=(0,i.nt)();return(0,i.Tj)(t,function(t,n){var o={name:(t=(0,i.Gv)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==o.name)return o;o.name+="",null==o.displayName&&(o.displayName=o.name);var r=e.get(o.name);return r?o.name+="-"+r.count++:e.set(o.name,{count:1}),o})}}function f(t,e,n,i){if(e===o.oC)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var a=n[0]||[];for(r=0;r<a.length&&r<i;r++)t(a[r],r)}}function g(t){var e=t.sourceFormat;return e===o.Wk||e===o.t1}},3632(t,e,n){n.d(e,{Tc:()=>l,eS:()=>d,fg:()=>u,io:()=>c,j_:()=>h});var i=n(8026),o=n(8170),r=n(4310),a=(0,o.$r)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,i.bZ)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=(0,r.O0)(this.source),n=!d(t),i="",o=[],a=0,l=0;a<t;a++){var u=void 0,c=void 0,h=void 0,p=this.dimensions[l];if(p&&p.storeDimIndex===a)u=e?p.name:null,c=p.type,h=p.ordinalMeta,l++;else{var f=this.getSourceDimension(a);f&&(u=e?f.name:null,c=f.type)}o.push({property:u,type:c,ordinalMeta:h}),!e||null==u||p&&p.isCalculationCoord||(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=s[c]||"f",h&&(i+=h.uid),i+="$"}var g=this.source;return{dimensions:o,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(i=o.name),n++;else{var r=this.getSourceDimension(e);r&&(i=r.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function u(t){return t instanceof l}function c(t){for(var e=(0,i.nt)(),n=0;n<(t||[]).length;n++){var o=t[n],r=(0,i.Gv)(o)?o.name:o;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function h(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function d(t){return t>30}},7351(t,e,n){n.d(e,{A:()=>h});var i=n(3430),o=n(2759),r=n(8026),a=n(4310),s=n(250),l=n(8170),u=n(3071),c=n(3632);function h(t,e){(0,a.tP)(t)||(t=(0,a.AF)(t));var n=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],p=(0,r.nt)(),f=[],g=function(t,e,n,i){var o=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return(0,r.__)(e,function(t){var e;(0,r.Gv)(t)&&(e=t.dimsDef)&&(o=Math.max(o,e.length))}),o}(t,n,h,e.dimensionsCount),m=e.canOmitUnusedDimensions&&(0,c.eS)(g),v=h===t.dimensionsDefine,y=v?(0,c.j_)(t):(0,c.io)(h),_=e.encodeDefine;!_&&e.encodeDefaulter&&(_=e.encodeDefaulter(t,g));for(var x=(0,r.nt)(_),S=new s.A_(g),b=0;b<S.length;b++)S[b]=-1;function w(t){var e=S[t];if(e<0){var n=h[t],i=(0,r.Gv)(n)?n:{name:n},a=new o.A,s=i.name;null!=s&&null!=y.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=f.length;return S[t]=l,a.storeDimIndex=t,f.push(a),a}return f[e]}if(!m)for(b=0;b<g;b++)w(b);x.each(function(t,e){var n=(0,l.qB)(t).slice();if(1===n.length&&!(0,r.Kg)(n[0])&&n[0]<0)x.set(e,!1);else{var i=x.set(e,[]);(0,r.__)(n,function(t,n){var o=(0,r.Kg)(t)?y.get(t):t;null!=o&&o<g&&(i[n]=o,I(w(o),e,n))})}});var M=0;function I(t,e,n){null!=i.Pe.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,p.set(e,!0))}(0,r.__)(n,function(t){var e,n,i,o;if((0,r.Kg)(t))e=t,o={};else{e=(o=t).name;var a=o.ordinalMeta;o.ordinalMeta=null,(o=(0,r.X$)({},o)).ordinalMeta=a,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var s=x.get(e);if(!1!==s){if(!(s=(0,l.qB)(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;M<g&&null!=w(M).coordDim;)M++;M<g&&s.push(M++)}(0,r.__)(s,function(t,a){var s=w(t);if(v&&null!=o.type&&(s.type=o.type),I((0,r.NT)(s,o),e,a),null==s.name&&n){var l=n[a];!(0,r.Gv)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&(0,r.NT)(s.otherDims,i)})}});var A=e.generateCoord,T=e.generateCoordCount,C=null!=T;T=A?T||1:0;var D=A||"value";function L(t){null==t.name&&(t.name=t.coordDim)}if(m)(0,r.__)(f,function(t){L(t)}),f.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var k=0;k<g;k++){var P=w(k);null==P.coordDim&&(P.coordDim=d(D,p,C),P.coordDimIndex=0,(!A||T<=0)&&(P.isExtraCoord=!0),T--),L(P),null!=P.type||(0,u.PU)(t,k)!==u.sc.Must&&(!P.isExtraCoord||null==P.otherDims.itemName&&null==P.otherDims.seriesName)||(P.type="ordinal")}return function(t){for(var e=(0,r.nt)(),n=0;n<t.length;n++){var i=t[n],o=i.name,a=e.get(o)||0;a>0&&(i.name=o+(a-1)),a++,e.set(o,a)}}(f),new c.Tc({source:t,dimensions:f,fullDimensionCount:g,dimensionOmitted:m})}function d(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}},8267(t,e,n){n.d(e,{Kd:()=>y,QE:()=>w,d1:()=>d,sC:()=>g,uQ:()=>S});var i,o,r,a,s,l=n(8026),u=n(8170),c=n(4310),h=n(3430),d=function(){function t(t,e){var n=(0,c.tP)(t)?t:(0,c.AF)(t);this._source=n;var i=this._data=n.data;n.sourceFormat===h.XO&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;s=function(t,o,r){var s=r.sourceFormat,u=r.seriesLayoutBy,c=r.startIndex,d=r.dimensionsDefine,p=a[b(s,u)];if((0,l.X$)(t,p),s===h.XO)t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,u);t.getItem=(0,l.oI)(f,null,o,c,d);var m=y(s,u);t.count=(0,l.oI)(m,null,o,c,d)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},n=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=o[d*r+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function o(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[h.Km+"_"+h.i_]={pure:!0,appendData:o},t[h.Km+"_"+h.oC]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[h.Wk]={pure:!0,appendData:o},t[h.t1]={pure:!0,appendData:function(t){var e=this._data;(0,l.__)(t,function(t,n){for(var i=e[n]||(e[n]=[]),o=0;o<(t||[]).length;o++)i.push(t[o])})}},t[h.mK]={appendData:o},t[h.XO]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),p=function(t,e,n,i){return t[i]},f=((i={})[h.Km+"_"+h.i_]=function(t,e,n,i){return t[i+e]},i[h.Km+"_"+h.oC]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},i[h.Wk]=p,i[h.t1]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},i[h.mK]=p,i);function g(t,e){return f[b(t,e)]}var m=function(t,e,n){return t.length},v=((o={})[h.Km+"_"+h.i_]=function(t,e,n){return Math.max(0,t.length-e)},o[h.Km+"_"+h.oC]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},o[h.Wk]=m,o[h.t1]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},o[h.mK]=m,o);function y(t,e){return v[b(t,e)]}var _=function(t,e,n){return t[e]},x=((r={})[h.Km]=_,r[h.Wk]=function(t,e,n){return t[n]},r[h.t1]=_,r[h.mK]=function(t,e,n){var i=(0,u.vj)(t);return i instanceof Array?i[e]:i},r[h.XO]=_,r);function S(t){return x[t]}function b(t,e){return t===h.Km?t+"_"+e:t}function w(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var o=t.getStore(),r=o.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=o.getDimensionProperty(a);return S(r)(i,a,s)}var l=i;return r===h.mK&&(l=(0,u.vj)(i)),l}}}},5008(t,e,n){n.d(e,{iJ:()=>r,me:()=>s,sJ:()=>a});var i=n(8026),o=n(3632);function r(t,e,n){var r,a,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(t){return!(0,o.fg)(t.schema)}(e)?(a=e.schema,r=a.dimensions,s=e.store):r=e;var c,h,d,p,f=!(!t||!t.get("stack"));if((0,i.__)(r,function(t,e){(0,i.Kg)(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))}),!h||l||c||(l=!0),h){d="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,m=h.type,v=0;(0,i.__)(r,function(t){t.coordDim===g&&v++});var y={name:d,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},_={name:p,coordDim:p,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(r.push(y),r.push(_))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:p,stackResultDimension:d}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},1825(t,e,n){n.d(e,{Fl:()=>a,Pn:()=>r});var i=n(4326),o=n(8026);n(1025);function r(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,o.Et)(t)||null==t||"-"===t||(t=+(0,i._U)(t)),null==t||""===t?NaN:Number(t))}(0,o.nt)({number:function(t){return parseFloat(t)},time:function(t){return+(0,i._U)(t)},trim:function(t){return(0,o.Kg)(t)?(0,o.Bq)(t):t}});var a=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=(0,o.Et)(t)?t:(0,i.Sm)(t),r=(0,o.Et)(e)?e:(0,i.Sm)(e),a=isNaN(n),s=isNaN(r);if(a&&(n=this._incomparable),s&&(r=this._incomparable),a&&s){var l=(0,o.Kg)(t),u=(0,o.Kg)(e);l&&(n=u?t:0),u&&(r=l?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}()},9756(t,e,n){n.d(e,{B:()=>l,l:()=>a});var i=n(8026),o=n(3430),r=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function a(t,e){var n={},a=n.encode={},l=(0,i.nt)(),u=[],c=[],h={};(0,i.__)(t.dimensions,function(e){var n,i=t.getDimensionInfo(e),r=i.coordDim;if(r){var d=i.coordDimIndex;s(a,r)[d]=e,i.isExtraCoord||(l.set(r,1),"ordinal"!==(n=i.type)&&"time"!==n&&(u[0]=e),s(h,r)[d]=t.getDimensionIndex(i.name)),i.defaultTooltip&&c.push(e)}o.Pe.each(function(t,e){var n=s(a,e),o=i.otherDims[e];null!=o&&!1!==o&&(n[o]=i.name)})});var d=[],p={};l.each(function(t,e){var n=a[e];p[e]=n[0],d=d.concat(n)}),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=(0,i.Tj)(d,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=p;var f=a.label;f&&f.length&&(u=f.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=u.slice()),a.defaultedLabel=u,a.defaultedTooltip=c,n.userOutput=new r(h,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},3071(t,e,n){n.d(e,{G9:()=>h,Gt:()=>d,OC:()=>u,PU:()=>p,ln:()=>c,ps:()=>l,sc:()=>a});var i=n(8170),o=n(8026),r=n(3430),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(t){s(t).datasetMap=(0,o.nt)()}function u(t,e,n){var i={},r=h(e);if(!r||!t)return i;var a,l,u=[],c=[],d=e.ecModel,p=s(d).datasetMap,f=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,o.__)(t,function(e,n){var r=(0,o.Gv)(e)?e:t[n]={name:e};"ordinal"===r.type&&null==a&&(a=n,l=v(r)),i[r.name]=[]});var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function m(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function v(t){var e=t.dimsDef;return e?e.length:1}return(0,o.__)(t,function(t,e){var n=t.name,o=v(t);if(null==a){var r=g.valueWayDim;m(i[n],r,o),m(c,r,o),g.valueWayDim+=o}else a===e?(m(i[n],0,o),m(u,0,o)):(r=g.categoryWayDim,m(i[n],r,o),m(c,r,o),g.categoryWayDim+=o)}),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function c(t,e,n){var i={};if(!h(t))return i;var s,l=e.sourceFormat,u=e.dimensionsDefine;l!==r.Wk&&l!==r.t1||(0,o.__)(u,function(t,e){"name"===((0,o.Gv)(t)?t.name:t)&&(s=e)});var c=function(){for(var t={},i={},o=[],r=0,c=Math.min(5,n);r<c;r++){var h=f(e.data,l,e.seriesLayoutBy,u,e.startIndex,r);o.push(h);var d=h===a.Not;if(d&&null==t.v&&r!==s&&(t.v=r),(null==t.n||t.n===t.v||!d&&o[t.n]===a.Not)&&(t.n=r),p(t)&&o[t.n]!==a.Not)return t;d||(h===a.Might&&null==i.v&&r!==s&&(i.v=r),null!=i.n&&i.n!==i.v||(i.n=r))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(c){i.value=[c.v];var d=null!=s?s:c.n;i.itemName=[d],i.seriesName=[d]}return i}function h(t){if(!t.get("data",!0))return(0,i.JO)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i.US).models[0]}function d(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,i.JO)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i.US).models:[]}function p(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,u){var c,h,d;if((0,o.iu)(t))return a.Not;if(s){var p=s[u];(0,o.Gv)(p)?(h=p.name,d=p.type):(0,o.Kg)(p)&&(h=p)}if(null!=d)return"ordinal"===d?a.Must:a.Not;if(e===r.Km){var f=t;if(n===r.oC){for(var g=f[u],m=0;m<(g||[]).length&&m<5;m++)if(null!=(c=w(g[l+m])))return c}else for(m=0;m<f.length&&m<5;m++){var v=f[l+m];if(v&&null!=(c=w(v[u])))return c}}else if(e===r.Wk){var y=t;if(!h)return a.Not;for(m=0;m<y.length&&m<5;m++)if((S=y[m])&&null!=(c=w(S[h])))return c}else if(e===r.t1){var _=t;if(!h)return a.Not;if(!(g=_[h])||(0,o.iu)(g))return a.Not;for(m=0;m<g.length&&m<5;m++)if(null!=(c=w(g[m])))return c}else if(e===r.mK){var x=t;for(m=0;m<x.length&&m<5;m++){var S=x[m],b=(0,i.vj)(S);if(!(0,o.cy)(b))return a.Not;if(null!=(c=w(b[u])))return c}}function w(t){var e=(0,o.Kg)(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},7752(t,e,n){n.d(e,{py:()=>v,v5:()=>m});var i=n(3430),o=n(8170),r=n(8026),a=n(8267),s=n(1825),l=n(1025),u=n(4310),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return(0,s.Pn)(t,e)},t}();function h(t){return _(t.sourceFormat)||(0,l.$8)(""),t.data}function d(t){var e=t.sourceFormat,n=t.data;if(_(e)||(0,l.$8)(""),e===i.Km){for(var o=[],a=0,s=n.length;a<s;a++)o.push(n[a].slice());return o}if(e===i.Wk){for(o=[],a=0,s=n.length;a<s;a++)o.push((0,r.X$)({},n[a]));return o}}function p(t,e,n){if(null!=n)return(0,r.Et)(n)||!isNaN(n)&&!(0,r.$3)(e,n)?t[n]:(0,r.$3)(e,n)?e[n]:void 0}function f(t){return(0,r.o8)(t)}var g=(0,r.nt)();function m(t){var e=(t=(0,r.o8)(t)).type;e||(0,l.$8)("");var n=e.split(":");2!==n.length&&(0,l.$8)("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,g.set(e,t)}function v(t,e,n){var i=(0,o.qB)(t),r=i.length;r||(0,l.$8)("");for(var a=0,s=r;a<s;a++)e=y(i[a],e),a!==s-1&&(e.length=Math.max(e.length,1));return e}function y(t,e,n,s){e.length||(0,l.$8)(""),(0,r.Gv)(t)||(0,l.$8)("");var m=t.type,v=g.get(m);v||(0,l.$8)("");var y=(0,r.Tj)(e,function(t){return function(t,e){var n=new c,o=t.data,s=n.sourceFormat=t.sourceFormat,u=t.startIndex;t.seriesLayoutBy!==i.i_&&(0,l.$8)("");var g=[],m={},v=t.dimensionsDefine;if(v)(0,r.__)(v,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};g.push(i),null!=n&&((0,r.$3)(m,n)&&(0,l.$8)(""),m[n]=i)});else for(var y=0;y<t.dimensionsDetectedCount;y++)g.push({index:y});var _=(0,a.sC)(s,i.i_);e.__isBuiltIn&&(n.getRawDataItem=function(t){return _(o,u,g,t)},n.getRawData=(0,r.oI)(h,null,t)),n.cloneRawData=(0,r.oI)(d,null,t);var x=(0,a.Kd)(s,i.i_);n.count=(0,r.oI)(x,null,o,u,g);var S=(0,a.uQ)(s);n.retrieveValue=function(t,e){var n=_(o,u,g,t);return b(n,e)};var b=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];return n?S(t,e,n.name):void 0}};return n.getDimensionInfo=(0,r.oI)(p,null,g,m),n.cloneAllDimensionInfo=(0,r.oI)(f,null,g),n}(t,v)}),x=(0,o.qB)(v.transform({upstream:y[0],upstreamList:y,config:(0,r.o8)(t.config)}));return(0,r.Tj)(x,function(t,n){var o;(0,r.Gv)(t)||(0,l.$8)(""),t.data||(0,l.$8)(""),_((0,u.wZ)(t.data))||(0,l.$8)("");var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:i.i_,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:t.dimensions};return(0,u.gV)(t.data,o,null)})}function _(t){return t===i.Km||t===i.Wk}},3087(t,e,n){n.d(e,{Y:()=>p});var i=n(8052),o=n(9109),r=n(6666),a=n(5915),s=n(4278),l=n(8026),u=n(3976),c=n(2755),h=[],d={registerPreprocessor:i.lP,registerProcessor:i.qg,registerPostInit:i.cf,registerPostUpdate:i.tb,registerUpdateLifecycle:i.xV,registerAction:i.OH,registerCoordinateSystem:i.pX,registerLayout:i.Oh,registerVisual:i.AF,registerTransform:i.iY,registerLoading:i.Ej,registerMap:i.mz,registerImpl:u.m,PRIORITY:i.FQ,ComponentModel:a.A,ComponentView:o.A,SeriesModel:s.A,ChartView:r.A,registerComponentModel:function(t){a.A.registerClass(t)},registerComponentView:function(t){o.A.registerClass(t)},registerSeriesModel:function(t){s.A.registerClass(t)},registerChartView:function(t){r.A.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.A.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,c.fI)(t,e)}};function p(t){(0,l.cy)(t)?(0,l.__)(t,function(t){p(t)}):(0,l.qh)(h,t)>=0||(h.push(t),(0,l.Tn)(t)&&(t={install:t}),t.install(d))}},2621(t,e,n){n.d(e,{QK:()=>y,YI:()=>v,eR:()=>S,rv:()=>b});var i=n(9195),o=n(6346),r=n(4863),a=n(8026),s=n(3509),l=n(4833);function u(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*h;return Math.sqrt((f-o)*(f-o)+(g-r)*(g-r))}Math.PI,r.A.CMD;var c=new o.A,h=new o.A,d=new o.A,p=new o.A,f=new o.A,g=[],m=new o.A;function v(t,e){if(e<=180&&e>0){e=e/180*Math.PI,c.fromArray(t[0]),h.fromArray(t[1]),d.fromArray(t[2]),o.A.sub(p,c,h),o.A.sub(f,d,h);var n=p.len(),i=f.len();if(!(n<.001||i<.001)){p.scale(1/n),f.scale(1/i);var r=p.dot(f);if(Math.cos(e)<r){var a=u(h.x,h.y,d.x,d.y,c.x,c.y,g,!1);m.fromArray(g),m.scaleAndAdd(f,a/Math.tan(Math.PI-e));var s=d.x!==h.x?(m.x-h.x)/(d.x-h.x):(m.y-h.y)/(d.y-h.y);if(isNaN(s))return;s<0?o.A.copy(m,h):s>1&&o.A.copy(m,d),m.toArray(t[1])}}}}function y(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,c.fromArray(t[0]),h.fromArray(t[1]),d.fromArray(t[2]),o.A.sub(p,h,c),o.A.sub(f,d,h);var i=p.len(),r=f.len();if(!(i<.001||r<.001)&&(p.scale(1/i),f.scale(1/r),p.dot(e)<Math.cos(n))){var a=u(h.x,h.y,d.x,d.y,c.x,c.y,g,!1);m.fromArray(g);var s=Math.PI/2,l=s+Math.acos(f.dot(e))-n;if(l>=s)o.A.copy(m,d);else{m.scaleAndAdd(f,a/Math.tan(Math.PI/2-l));var v=d.x!==h.x?(m.x-h.x)/(d.x-h.x):(m.y-h.y)/(d.y-h.y);if(isNaN(v))return;v<0?o.A.copy(m,h):v>1&&o.A.copy(m,d)}m.toArray(t[1])}}}function _(t,e,n,i){var o="normal"===n,r=o?t:t.ensureState(n);r.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?t.useStyle(s):r.style=s}function x(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var o=s.xg(i[0],i[1]),r=s.xg(i[1],i[2]);if(!o||!r)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(o,r)*n,l=s.Cc([],i[1],i[0],a/o),u=s.Cc([],i[1],i[2],a/r),c=s.Cc([],l,u,.5);t.bezierCurveTo(l[0],l[1],l[0],l[1],c[0],c[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)t.lineTo(i[h][0],i[h][1])}function S(t,e,n){var o=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var s=e.normal,u=s.get("show"),c=r.ignore,h=0;h<l.wV.length;h++){var d=l.wV[h],p=e[d],f="normal"===d;if(p){var g=p.get("show");if((f?c:(0,a.bZ)(r.states[d]&&r.states[d].ignore,c))||!(0,a.bZ)(g,u)){var m=f?o:o&&o.states[d];m&&(m.ignore=!0),o&&_(o,!0,d,p);continue}o||(o=new i.A,t.setTextGuideLine(o),f||!c&&u||_(o,!0,"normal",e.normal),t.stateProxy&&(o.stateProxy=t.stateProxy)),_(o,!1,d,p)}}if(o){(0,a.NT)(o.style,n),o.style.fill=null;var v=s.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=v||!1,o.buildPath=x}}else o&&t.removeTextGuideLine()}function b(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<l.BV.length;i++){var o=l.BV[i];n[o]=t.getModel([o,e])}return n}},7175(t,e,n){n.d(e,{If:()=>s,Xe:()=>a,os:()=>r});var i=n(9308),o=n(4716);function r(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,a=r.getComputedTransform(),s=r.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=r.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new o.A(s,a):null;e.push({label:r,labelLine:i.labelLine,rect:c,localRect:s,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:a})}}return e}function a(t,e,n,i){return function(t,e,n,i,o,r){var a=t.length;if(!(a<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=t[d],f=p.rect;(s=f[e]-l)<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&r&&b(-h/a,0,a);var m,v,y=t[0],_=t[a-1];return x(),m<0&&w(-m,.8),v<0&&w(v,.8),x(),S(m,v,1),S(v,m,-1),x(),m<0&&M(-m),v<0&&M(v),u}function x(){m=y.rect[e]-i,v=o-_.rect[e]-_.rect[n]}function S(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){b(i*n,0,a);var o=i+t;o<0&&w(-o*n,1)}else w(-t*n,1)}}function b(n,i,o){0!==n&&(u=!0);for(var r=i;r<o;r++){var a=t[r];a.rect[e]+=n,a.label[e]+=n}}function w(i,o){for(var r=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);r.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,o);if(i>0)for(l=0;l<a-1;l++)b(r[l]*h,0,l+1);else for(l=a-1;l>0;l--)b(-r[l-1]*h,l,a)}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?b(n,0,i+1):b(-n,a-i-1,a),(t-=n)<=0)return}}(t,"y","height",e,n,i)}function s(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new i.A(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<e.length;g++){var m=e[g];if(n.intersect(m.rect)){if(l&&m.axisAligned){f=!0;break}if(m.obb||(m.obb=new o.A(m.localRect,m.transform)),p||(p=new o.A(u,c)),p.intersect(m.obb)){f=!0;break}}}f?(r(h),d&&r(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},9632(t,e,n){n.d(e,{Lu:()=>x,Oh:()=>S,VB:()=>p,c8:()=>_,lx:()=>d,qM:()=>h,xb:()=>b});var i=n(9766),o=n(8026),r=n(4833),a=n(8170),s=n(5638),l={};function u(t,e){for(var n=0;n<r.BV.length;n++){var i=r.BV[n],o=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=o}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,o.Tn)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},h=0;h<r.BV.length;h++){var d=r.BV[h],p=e[d];c[d]=(0,o.bZ)(a?a.getFormattedLabel(s,d,null,l,p&&p.get("formatter")):null,i)}return c}function h(t,e,n,a){n=n||l;for(var s=t instanceof i.Ay,h=!1,d=0;d<r.wV.length;d++)if((S=e[r.wV[d]])&&S.getShallow("show")){h=!0;break}var g=s?t:t.getTextContent();if(h){s||(g||(g=new i.Ay,t.setTextContent(g)),t.stateProxy&&(g.stateProxy=t.stateProxy));var m=c(n,e),v=e.normal,y=!!v.getShallow("show"),_=p(v,a&&a.normal,n,!1,!s);for(_.text=m.normal,s||t.setTextConfig(f(v,n,!1)),d=0;d<r.BV.length;d++){var S,b=r.BV[d];if(S=e[b]){var w=g.ensureState(b),M=!!(0,o.bZ)(S.getShallow("show"),y);M!==y&&(w.ignore=!M),w.style=p(S,a&&a[b],n,!0,!s),w.style.text=m[b],s||(t.ensureState(b).textConfig=f(S,n,!0))}}g.silent=!!v.getShallow("silent"),null!=g.style.x&&(_.x=g.style.x),null!=g.style.y&&(_.y=g.style.y),g.ignore=!y,g.useStyle(_),g.dirty(),n.enableTextSetter&&(x(g).setLabelText=function(t){var i=c(n,e,t);u(g,i)})}else g&&(g.ignore=!0);t.dirty()}function d(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<r.BV.length;i++){var o=r.BV[i];n[o]=t.getModel([o,e])}return n}function p(t,e,n,i,r){var a={};return function(t,e,n,i,r){n=n||l;var a,s=e.ecModel,u=s&&s.option.textStyle,c=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||l).rich;if(n){e=e||{};for(var i=(0,o.HP)(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(c)for(var h in a={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);y(a[h]={},d,u,n,i,r,!1,!0)}a&&(t.rich=a);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("minMargin");null!=f&&(t.margin=f),y(t,e,u,n,i,r,!0,!1)}(a,t,n,i,r),e&&(0,o.X$)(a,e),a}function f(t,e,n){e=e||{};var i,r={},a=t.getShallow("rotate"),s=(0,o.bZ)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=l&&(r.offset=l),null!=a&&(a*=Math.PI/180,r.rotation=a),null!=s&&(r.distance=s),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function y(t,e,n,i,r,a,s,u){n=!r&&n||l;var c=i&&i.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=(0,o.bZ)(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var f=(0,o.bZ)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var y=(0,o.bZ)(e.getShallow("textBorderType"),n.textBorderType);null!=y&&(t.lineDash=y);var _=(0,o.bZ)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=_&&(t.lineDashOffset=_),r||null!=p||u||(p=i&&i.defaultOpacity),null!=p&&(t.opacity=p),r||a||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var x=0;x<g.length;x++){var S=g[x];null!=(w=(0,o.bZ)(e.getShallow(S),n[S]))&&(t[S]=w)}for(x=0;x<m.length;x++)S=m[x],null!=(w=e.getShallow(S))&&(t[S]=w);if(null==t.verticalAlign){var b=e.getShallow("baseline");null!=b&&(t.verticalAlign=b)}if(!s||!i.disableBox){for(x=0;x<v.length;x++){var w;S=v[x],null!=(w=e.getShallow(S))&&(t[S]=w)}var M=e.getShallow("borderType");null!=M&&(t.borderDash=M),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,o.Bq)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var x=(0,a.$r)();function S(t,e,n,i){if(t){var o=x(t);o.prevValue=o.value,o.value=n;var r=e.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=e)}}function b(t,e,n,i,r){var l=x(t);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,d=(0,o.bZ)(l.interpolatedValue,l.prevValue),p=l.value;t.percent=0,(null==l.prevValue?s.LW:s.oi)(t,{percent:1},i,e,null,function(i){var o=(0,a.Il)(n,l.precision,d,p,i);l.interpolatedValue=1===i?null:o;var s=c({labelDataIndex:e,labelFetcher:r,defaultText:h?h(o):o+""},l.statesModels,o);u(t,s)})}}},2536(t,e,n){n.d(e,{GL:()=>c,KF:()=>f,VA:()=>d,Zp:()=>p,vq:()=>h});var i=n(8026),o=n(4326),r=n(5008),a=n(7582),s=n(8957);function l(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function u(t){return t.dim+t.index}function c(t,e){var n=[];return e.eachSeriesByType(t,function(t){g(t)&&n.push(t)}),n}function h(t){var e=function(t){var e={};(0,i.__)(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),o=n.dim+"_"+n.index,r=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(r,s);e[o]?e[o].push(u):e[o]=[u]}});var n={};for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];if(r){r.sort(function(t,e){return t-e});for(var a=null,s=1;s<r.length;++s){var l=r[s]-r[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[o]=a}}return n}(t),n=[];return(0,i.__)(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),a=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var s=r.dim+"_"+r.index,c=e[s],h=Math.abs(a[1]-a[0]),d=r.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=c?h/p*c:h}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var g=(0,o.lo)(t.get("barWidth"),i),v=(0,o.lo)(t.get("barMaxWidth"),i),y=(0,o.lo)(t.get("barMinWidth")||(m(t)?.5:1),i),_=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:v,barMinWidth:y,barGap:_,barCategoryGap:x,axisKey:u(r),stackId:l(t)})}),function(t){var e={};(0,i.__)(t,function(t,n){var i=t.axisKey,o=t.bandWidth,r=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=r.stacks;e[i]=r;var s=t.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(r.gap=h);var d=t.barCategoryGap;null!=d&&(r.categoryGap=d)});var n={};return(0,i.__)(e,function(t,e){n[e]={};var r=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=(0,i.HP)(r).length;s=Math.max(35-4*l,15)+"%"}var u=(0,o.lo)(s,a),c=(0,o.lo)(t.gap,1),h=t.remainedWidth,d=t.autoWidthCount,p=(h-u)/(d+(d-1)*c);p=Math.max(p,0),(0,i.__)(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,h-=i+c*i,d--;else{var i=p;e&&e<i&&(i=Math.min(e,h)),n&&n>i&&(i=n),i!==p&&(t.width=i,h-=i+c*i,d--)}}),p=(h-u)/(d+(d-1)*c),p=Math.max(p,0);var f,g=0;(0,i.__)(r,function(t,e){t.width||(t.width=p),f=t,g+=t.width*(1+c)}),f&&(g-=f.width*c);var m=-g/2;(0,i.__)(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:a,offset:m,width:t.width},m+=t.width*(1+c)})}),n}(n)}function d(t,e,n){if(t&&e){var i=t[u(e)];return null!=i&&null!=n?i[l(n)]:i}}function p(t,e){var n=c(t,e),o=h(n);(0,i.__)(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=l(t),r=o[u(n)][i],a=r.offset,s=r.width;e.setLayout({bandWidth:r.bandWidth,offset:a,size:s})})}function f(t){return{seriesType:t,plan:(0,a.A)(),reset:function(t){if(g(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(o.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),c=e.mapDimension(o.dim),h=e.getCalculationInfo("stackResultDimension"),d=(0,r.sJ)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),f=function(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,o),v=m(t),y=t.get("barMinHeight")||0,_=h&&e.getDimensionIndex(h),x=e.getLayout("size"),S=e.getLayout("offset");return{progress:function(t,e){for(var i,o=t.count,r=v&&(0,s.J)(3*o),c=v&&u&&(0,s.J)(3*o),h=v&&(0,s.J)(o),g=n.master.getRect(),m=p?g.width:g.height,b=e.getStore(),w=0;null!=(i=t.next());){var M=b.get(d?_:a,i),I=b.get(l,i),A=f,T=void 0;d&&(T=+M-b.get(a,i));var C=void 0,D=void 0,L=void 0,k=void 0;if(p){var P=n.dataToPoint([M,I]);d&&(A=n.dataToPoint([T,I])[0]),C=A,D=P[1]+S,L=P[0]-A,k=x,Math.abs(L)<y&&(L=(L<0?-1:1)*y)}else P=n.dataToPoint([I,M]),d&&(A=n.dataToPoint([I,T])[1]),C=P[0]+S,D=A,L=x,k=P[1]-A,Math.abs(k)<y&&(k=(k<=0?-1:1)*y);v?(r[w]=C,r[w+1]=D,r[w+2]=p?L:k,c&&(c[w]=p?g.x:C,c[w+1]=p?D:g.y,c[w+2]=m),h[i]=i):e.setItemLayout(i,{x:C,y:D,width:L,height:k}),w+=3}v&&e.setLayout({largePoints:r,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function g(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function m(t){return t.pipelineContext&&t.pipelineContext.large}},682(t,e,n){n.d(e,{A:()=>s});var i=n(8026),o=n(7582),r=n(5008),a=n(8957);function s(t,e){return{seriesType:t,plan:(0,o.A)(),reset:function(t){var n=t.getData(),o=t.coordinateSystem,s=t.pipelineContext,l=e||s.large;if(o){var u=(0,i.Tj)(o.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),c=u.length,h=n.getCalculationInfo("stackResultDimension");(0,r.sJ)(n,u[0])&&(u[0]=h),(0,r.sJ)(n,u[1])&&(u[1]=h);var d=n.getStore(),p=n.getDimensionIndex(u[0]),f=n.getDimensionIndex(u[1]);return c&&{progress:function(t,e){for(var n=t.end-t.start,i=l&&(0,a.J)(n*c),r=[],s=[],u=t.start,h=0;u<t.end;u++){var g=void 0;if(1===c){var m=d.get(p,u);g=o.dataToPoint(m,null,s)}else r[0]=d.get(p,u),r[1]=d.get(f,u),g=o.dataToPoint(r,null,s);l?(i[h++]=g[0],i[h++]=g[1]):e.setItemLayout(u,g.slice())}l&&e.setLayout("points",i)}}}}}}},6884(t,e,n){n.d(e,{I:()=>r,l:()=>s});var i=n(8026),o=n(8170);function r(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}(0,i.__)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,o,r){e=(0,i.X$)({},e),r.dispatchAction((0,i.X$)(e,{type:t[1],seriesIndex:n(o,e)}))})})}function a(t,e,n,r,a){var s=t+e;n.isSilent(s)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===e){var c=t.getData(),h=(0,o.le)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,i.cy)(h)?c.getName(h[0]):c.getName(h),selected:(0,i.Kg)(r)?r:(0,i.X$)({},r)})}})}function s(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(a("map","selectchanged",e,i,t),a("pie","selectchanged",e,i,t)):"select"===t.fromAction?(a("map","selected",e,i,t),a("pie","selected",e,i,t)):"unselect"===t.fromAction&&(a("map","unselected",e,i,t),a("pie","unselected",e,i,t))})}},5915(t,e,n){n.d(e,{A:()=>d});var i=n(1635),o=n(8026),r=n(3172),a=n(2616),s=n(693),l=n(8170),u=n(4253),c=(0,l.$r)(),h=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.uid=a.$Q("ec_cpt_model"),o}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=u.ad(this),i=n?u.vs(t):{},r=e.getTheme();o.h1(t,r.get(this.mainType)),o.h1(t,this.getDefaultOption()),n&&u.YA(t,i,n)},e.prototype.mergeOption=function(t,e){o.h1(this.option,t,!0);var n=u.ad(this);n&&u.YA(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,s._E)(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=o.h1(a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return(0,l.JO)(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(r.A);(0,s.q7)(h,r.A),(0,s.tQ)(h),a.A6(h),a.vf(h,function(t){var e=[];return o.__(h.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=o.Tj(e,function(t){return(0,s.CC)(t).main}),"dataset"!==t&&o.qh(e,"dataset")<=0&&e.unshift("dataset"),e});const d=h},3172(t,e,n){n.d(e,{A:()=>v});var i=n(8123),o=n(693),r=(0,n(2944).A)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return r(this,t,e)},t}(),s=n(9632),l=n(9766),u=["textStyle","color"],c=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],h=new l.Ay;const d=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(u):null)},t.prototype.getFont=function(){return(0,s.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<c.length;n++)e[c[n]]=this.getShallow(c[n]);return h.useStyle(e),h.update(),h.getBoundingRect()},t}();var p=n(8317),f=n(4962),g=n(8026),m=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o]},t.prototype.mergeOption=function(t,e){(0,g.h1)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,o=i?this.parsePath(e):null;return new t(i?this._doGet(o):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)((0,g.o8)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,o.gq)(m),(0,o.Od)(m),(0,g.co)(m,p.J),(0,g.co)(m,f.s),(0,g.co)(m,a),(0,g.co)(m,d);const v=m},4278(t,e,n){n.d(e,{A:()=>O});var i=n(1635),o=n(8026),r=n(8123),a=n(8170),s=n(5915),l=n(6501),u=n(9427),c=n(4253),h=n(9431),d=n(693),p=n(4310),f=n(3430),g=n(3071),m=n(7752),v=n(250),y=n(8267),_=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(x(n)){var a=n,s=void 0,l=void 0,u=void 0;if(r){var c=i[0];c.prepareSource(),s=(u=c.getSource()).data,l=u.sourceFormat,e=[c._getVersionSign()]}else s=a.get("data",!0),l=(0,o.iu)(s)?f.XO:f.mK,e=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},g=(0,o.bZ)(h.seriesLayoutBy,d.seriesLayoutBy)||null,m=(0,o.bZ)(h.sourceHeader,d.sourceHeader),v=(0,o.bZ)(h.dimensions,d.dimensions);t=g!==d.seriesLayoutBy||!!m!=!!d.sourceHeader||v?[(0,p.gV)(s,{seriesLayoutBy:g,sourceHeader:m,dimensions:v},l)]:[]}else{var y=n;if(r){var _=this._applyTransform(i);t=_.sourceList,e=_.upstreamSignList}else{var S=y.get("source",!0);t=[(0,p.gV)(S,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&S("");var a=[],s=[];return(0,o.__)(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||S(""),a.push(e),s.push(t._getVersionSign())}),i?e=(0,m.py)(i,a,{datasetIndex:n.componentIndex}):null!=r&&(e=[(0,p.BE)(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,o=i[0];o||(o=i[0]={});var r=o[n];if(!r){var a=this._getUpstreamSourceManagers()[0];x(this._sourceHost)&&a?r=a._innerGetDataStore(t,e,n):(r=new v.Ay).initData(new y.d1(e,t.length),t),o[n]=r}return r},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(x(t)){var e=(0,g.G9)(t);return e?[e.getSourceManager()]:[]}return(0,o.Tj)((0,g.Gt)(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(x(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=i;t=o.get("seriesLayoutBy",!0),e=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function x(t){return"series"===t.mainType}function S(t){throw new Error(t)}var b=n(3961);var w=a.$r();function M(t,e){return t.getName(e)||t.getId(e)}var I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,h.U)({count:T,reset:C}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(w(this).sourceManager=new _(this)).prepareSource();var i=this.getInitialData(t,n);L(i,this),this.dataTask.context.data=i,w(this).dataBeforeProcessed=i,A(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,c.ad)(this),i=n?(0,c.vs)(t):{},r=this.subType;s.A.hasClass(r)&&(r+="Series"),o.h1(t,e.getTheme().get(this.subType)),o.h1(t,this.getDefaultOption()),a.M5(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,c.YA)(t,i,n)},e.prototype.mergeOption=function(t,e){t=o.h1(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,c.ad)(this);n&&(0,c.YA)(this.option,t,n);var i=w(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);L(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,A(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!o.iu(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.M5(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=P(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return w(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=P(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}w(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return o.nt(t)},e.prototype.getSourceManager=function(){return w(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return w(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,i,r,s=t.series,l=t.dataIndex,u=t.multipleSeries,c=s.getData(),h=c.mapDimensionsAll("defaultedTooltip"),d=h.length,p=s.getRawValue(l),f=(0,o.cy)(p),g=(0,b.aw)(s,l);if(d>1||f&&!d){var m=function(t,e,n,i,r){var a=e.getData(),s=(0,o.TS)(t,function(t,e,n){var i=a.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),l=[],u=[],c=[];function h(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?c.push((0,b.Qx)("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}return i.length?(0,o.__)(i,function(t){h((0,y.QE)(a,n,t),t)}):(0,o.__)(t,h),{inlineValues:l,inlineValueTypes:u,blocks:c}}(p,s,l,h,g);e=m.inlineValues,n=m.inlineValueTypes,i=m.blocks,r=m.inlineValues[0]}else if(d){var v=c.getDimensionInfo(h[0]);r=e=(0,y.QE)(c,l,h[0]),n=v.type}else r=e=f?p[0]:p;var _=(0,a.O0)(s),x=_&&s.name||"",S=c.getName(l),w=u?x:S;return(0,b.Qx)("section",{header:x,noHeader:u||!_,sortParam:r,blocks:[(0,b.Qx)("nameValue",{markerType:"item",markerColor:g,name:w,noName:!(0,o.Bq)(w),value:e,valueType:n,dataIndex:l})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(r.A.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,o=l.X.prototype.getColorFromPalette.call(this,t,e,n);return o||(o=i.getColorFromPalette(t,e,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;r<t.length;r++){var a=M(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=o.HP(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[M(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,a=r.selectedMode,s=e.length;if(a&&s)if("series"===a)r.selectedMap="all";else if("multiple"===a){o.Gv(r.selectedMap)||(r.selectedMap={});for(var l=r.selectedMap,u=0;u<s;u++){var c=e[u];l[d=M(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1],d=M(t,h);r.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.A.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.A);function A(t){var e=t.name;a.O0(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return o.__(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function T(t){return t.model.getRawData().count()}function C(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),D}function D(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function L(t,e){o.__(o.yB(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,o.cF(k,e))})}function k(t,e){var n=P(t);return n&&n.setOutputEnd((e||this).count()),e}function P(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(t.uid))}return i}}o.co(I,u.J),o.co(I,l.X),(0,d.q7)(I,s.A);const O=I},9427(t,e,n){n.d(e,{J:()=>s,L:()=>l});var i=n(8026),o=n(8267),r=n(3412),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);return u&&(h.value=u.interpolatedValue),null!=s&&i.cy(h.value)&&(h.value=h.value[s]),l||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),i.Tn(l)?(h.status=e,h.dimensionIndex=s,l(h)):i.Kg(l)?(0,r.YK)(l,h).replace(a,function(e,n){var r=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(r-1)&&(a=+a.slice(1,r-1));var s=(0,o.QE)(c,t,a);if(u&&i.cy(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return(0,o.QE)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i.Gv(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},4962(t,e,n){n.d(e,{L:()=>o,s:()=>a});var i=n(2944),o=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],r=(0,i.A)(o),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return r(this,t,e)},t}()},8317(t,e,n){n.d(e,{J:()=>a,m:()=>o});var i=n(2944),o=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],r=(0,i.A)(o),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return r(this,t)},t}()},2944(t,e,n){n.d(e,{A:()=>o});var i=n(8026);function o(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,o,r){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(o&&i.qh(o,l)>=0||r&&i.qh(r,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},6501(t,e,n){n.d(e,{X:()=>r});var i=n(8170),o=(0,i.$r)(),r=((0,i.$r)(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=(0,i.qB)(this.get("color",!0)),a=this.get("colorLayer",!0);return function(t,e,n,i,o,r,a){var s=e(r=r||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return o&&(u[o]=h),s.paletteIdx=(l+1)%c.length,h}}(this,o,r,a,t,e,n)},t.prototype.clearColorPalette=function(){var t;(t=o)(this).paletteIdx=0,t(this).paletteNameMap={}},t}())},8587(t,e,n){function i(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),o=0;o<n.length;o++)if(!n[o].isSelected(e))return!1;return!0})}}}}n.d(e,{A:()=>i})},7959(t,e,n){n.d(e,{A:()=>a});var i=n(8026),o={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},r=function(t){return Math.round(t.length/2)};function a(t){return{seriesType:t,reset:function(t,e,n){var a=t.getData(),s=t.get("sampling"),l=t.coordinateSystem,u=a.count();if(u>10&&"cartesian2d"===l.type&&s){var c=l.getBaseAxis(),h=l.getOtherAxis(c),d=c.getExtent(),p=n.getDevicePixelRatio(),f=Math.abs(d[1]-d[0])*(p||1),g=Math.round(u/f);if(isFinite(g)&&g>1){"lttb"===s?t.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g)):"minmax"===s&&t.setData(a.minmaxDownSample(a.mapDimension(h.dim),1/g));var m=void 0;(0,i.Kg)(s)?m=o[s]:(0,i.Tn)(s)&&(m=s),m&&t.setData(a.downSample(a.mapDimension(h.dim),1/g,m,r))}}}}}},9952(t,e,n){n.d(e,{a:()=>o});var i=n(536);function o(t){t.registerPainter("canvas",i.A)}},3806(t,e,n){n.d(e,{a:()=>o});var i=n(8409);function o(t){t.registerPainter("svg",i.A)}},4562(t,e,n){n.d(e,{A:()=>c});var i=n(1635),o=n(4326),r=n(3412),a=n(8613),s=n(7071),l=o.LI,u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,i.C6)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.lP(t,this._extent)},e.prototype.normalize=function(t){return s.S8(t,this._extent)},e.prototype.scale=function(t){return s.hs(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.u$(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;n[0]<i[0]&&(t?r.push({value:l(i[0]-e,o)}):r.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=l(a+e,o))!==r[r.length-1].value);)if(r.length>1e4)return[];var s=r.length?r[r.length-1].value:i[1];return n[1]>s&&(t?r.push({value:l(s+e,o)}):r.push({value:n[1]})),r},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,u=[],c=(r.value-a.value)/t;s<t-1;){var h=l(a.value+(s+1)*c);h>i[0]&&h<i[1]&&u.push(h),s++}n.push(u)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=o.XV(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(t.value,n,!0);return r.ob(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var r=s.xh(i,t,e,n);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=l(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=l(Math.ceil(e[1]/o)*o))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.A);a.A.registerClass(u);const c=u},8613(t,e,n){n.d(e,{A:()=>r});var i=n(693),o=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i.tQ(o);const r=o},7071(t,e,n){n.d(e,{S8:()=>c,hs:()=>h,kH:()=>a,lP:()=>u,rf:()=>o,u$:()=>s,xh:()=>r});var i=n(4326);function o(t){return"interval"===t.type||"log"===t.type}function r(t,e,n,o){var r={},a=t[1]-t[0],u=r.interval=(0,i.Cm)(a/e,!0);null!=n&&u<n&&(u=r.interval=n),null!=o&&u>o&&(u=r.interval=o);var c=r.intervalPrecision=s(u);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[(0,i.LI)(Math.ceil(t[0]/u)*u,c),(0,i.LI)(Math.floor(t[1]/u)*u,c)],t),r}function a(t){var e=Math.pow(10,(0,i.NX)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.LI)(n*e)}function s(t){return(0,i.XV)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function u(t,e){return t>=e[0]&&t<=e[1]}function c(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function h(t,e){return t*(e[1]-e[0])+e[0]}},693(t,e,n){n.d(e,{CC:()=>s,Od:()=>d,_E:()=>l,gq:()=>u,q7:()=>c,tQ:()=>g});var i=n(1635),o=n(8026),r="___EC__COMPONENT__CONTAINER___",a="___EC__EXTENDED_CLASS___";function s(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function l(t){return!(!t||!t[a])}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return n=r,o.Tn(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},o.B(e,this)),o.X$(e.prototype,t),e[a]=!0,e.extend=this.extend,e.superCall=p,e.superApply=f,e.superClass=r,e}}function c(t,e){t.extend=e.extend}var h=Math.round(10*Math.random());function d(t){var e=["__\0is_clz",h++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function p(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function g(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){n=i,o.vA(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=i;var a=s(i);if(a.sub){if(a.sub!==r){var l=function(t){var n=e[t.main];return n&&n[r]||((n=e[t.main]={})[r]=!0),n}(a);l[a.sub]=t}}else e[a.main]=t}return t},t.getClass=function(t,n,i){var o=e[t];if(o&&o[r]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var n=s(t),i=[],a=e[n.main];return a&&a[r]?o.__(a,function(t,e){e!==r&&i.push(t)}):i.push(a),i},t.hasClass=function(t){var n=s(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return o.__(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=s(t),i=e[n.main];return i&&i[r]}}},2616(t,e,n){n.d(e,{$Q:()=>a,A6:()=>s,G_:()=>u,vf:()=>l});var i=n(8026),o=n(693),r=Math.round(10*Math.random());function a(t){return[t||"",r++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=(0,o.CC)(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=(0,o.CC)(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r}}function l(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,o,r,a){if(t.length){var s=function(t){var o={},r=[];return i.__(t,function(a){var s=n(o,a),l=function(t,e){var n=[];return i.__(t,function(t){i.qh(e,t)>=0&&n.push(t)}),n}(s.originalDeps=e(a),t);s.entryCount=l.length,0===s.entryCount&&r.push(a),i.__(l,function(t){i.qh(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(o,t);i.qh(e.successor,t)<0&&e.successor.push(a)})}),{graph:o,noEntryList:r}}(o),l=s.graph,u=s.noEntryList,c={};for(i.__(t,function(t){c[t]=!0});u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(r.call(a,h,d.originalDeps.slice()),delete c[h]),i.__(d.successor,p?g:f)}i.__(c,function(){throw new Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}function u(t,e){return i.h1(i.h1({},t,!0),e,!0)}},3538(t,e,n){n.d(e,{w:()=>p});var i=n(1049),o=n(501),r=n(8026),a=n(4326),s=n(2103),l=n(9571),u=n(9741),c=new i.A,h=new o.Ay(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function p(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type;t.dirty&&c.delete(t);var p=c.get(t);if(p)return p;var v=(0,r.NT)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===v.backgroundColor&&(v.backgroundColor=null);var y={repeat:"repeat"};return function(t){for(var e,c=[n],p=!0,y=0;y<d.length;++y){var _=v[d[y]];if(null!=_&&!(0,r.cy)(_)&&!(0,r.Kg)(_)&&!(0,r.Et)(_)&&"boolean"!=typeof _){p=!1;break}c.push(_)}if(p){e=c.join(",")+(o?"-svg":"");var x=h.get(e);x&&(o?t.svgElement=x:t.image=x)}var S,b,w=g(v.dashArrayX),M=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,r.Et)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,r.Tj)(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(v.dashArrayY),I=f(v.symbol),A=(b=w,(0,r.Tj)(b,function(t){return m(t)})),T=m(M),C=!o&&u.yh.createCanvas(),D=o&&{tag:"g",attrs:{},key:"dcl",children:[]},L=function(){for(var t=1,e=0,n=A.length;e<n;++e)t=(0,a.lQ)(t,A[e]);var i=1;for(e=0,n=I.length;e<n;++e)i=(0,a.lQ)(i,I[e].length);t*=i;var o=T*A.length*I.length;return{width:Math.max(1,Math.min(t,v.maxTileWidth)),height:Math.max(1,Math.min(o,v.maxTileHeight))}}();C&&(C.width=L.width*n,C.height=L.height*n,S=C.getContext("2d")),function(){S&&(S.clearRect(0,0,C.width,C.height),v.backgroundColor&&(S.fillStyle=v.backgroundColor,S.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<M.length;++e)t+=M[e];if(!(t<=0))for(var r=-T,a=0,u=0,c=0;r<L.height;){if(a%2==0){for(var h=u/2%I.length,d=0,p=0,f=0;d<2*L.width;){var g=0;for(e=0;e<w[c].length;++e)g+=w[c][e];if(g<=0)break;if(p%2==0){var m=.5*(1-v.symbolSize),y=d+w[c][p]*m,_=r+M[a]*m,x=w[c][p]*v.symbolSize,b=M[a]*v.symbolSize,A=f/2%I[h].length;k(y,_,x,b,I[h][A])}d+=w[c][p],++f,++p===w[c].length&&(p=0)}++c===w.length&&(c=0)}r+=M[a],++u,++a===M.length&&(a=0)}function k(t,e,r,a,u){var c=o?1:n,h=(0,s.v5)(u,t*c,e*c,r*c,a*c,v.color,v.symbolKeepAspect);if(o){var d=i.painter.renderOneToVNode(h);d&&D.children.push(d)}else(0,l.Xi)(S,h)}}(),p&&h.put(e,C||D),t.image=C,t.svgElement=D,t.svgWidth=L.width,t.svgHeight=L.height}(y),y.rotation=v.rotation,y.scaleX=y.scaleY=o?1:1/n,c.set(t,y),t.dirty=!1,y}function f(t){if(!t||0===t.length)return[["rect"]];if((0,r.Kg)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,r.Kg)(t[n])){e=!1;break}if(e)return f([t]);var i=[];for(n=0;n<t.length;++n)(0,r.Kg)(t[n])?i.push([t[n]]):i.push(t[n]);return i}function g(t){if(!t||0===t.length)return[[0,0]];if((0,r.Et)(t))return[[o=Math.ceil(t),o]];for(var e=!0,n=0;n<t.length;++n)if(!(0,r.Et)(t[n])){e=!1;break}if(e)return g([t]);var i=[];for(n=0;n<t.length;++n)if((0,r.Et)(t[n])){var o=Math.ceil(t[n]);i.push([o,o])}else(o=(0,r.Tj)(t[n],function(t){return Math.ceil(t)})).length%2==1?i.push(o.concat(o)):i.push(o);return i}function m(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}},7411(t,e,n){function i(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}n.d(e,{R:()=>i})},3412(t,e,n){n.d(e,{Cb:()=>l,JW:()=>m,QX:()=>u,YK:()=>p,he:()=>g,ob:()=>s,qg:()=>f,yC:()=>c});var i=n(8026),o=n(9687),r=n(4326),a=n(5854);function s(t){if(!(0,r.kf)(t))return i.Kg(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function l(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var u=i.QX;function c(t,e,n){function o(t){return t&&i.Bq(t)?t:"-"}function l(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?(0,r._U)(t):t;if(!isNaN(+h))return(0,a.GP)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return i.Lh(t)?o(t):i.Et(t)&&l(t)?t+"":"-";var d=(0,r.Sm)(t);return l(d)?s(d):i.Lh(t)?o(t):"boolean"==typeof t?t+"":"-"}var h=["a","b","c","d","e","f","g"],d=function(t,e){return"{"+t+(e??"")+"}"};function p(t,e,n){i.cy(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var l=h[s];t=t.replace(d(l),d(l,0))}for(var u=0;u<r;u++)for(var c=0;c<a.length;c++){var p=e[u][a[c]];t=t.replace(d(h[c],u),n?(0,o.Me)(p):p)}return t}function f(t,e){var n=i.Kg(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return r?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,o.Me)(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,o.Me)(r)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function g(t,e){return e=e||"transparent",i.Kg(t)?t:i.Gv(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function m(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},3199(t,e,n){n.r(e),n.d(e,{Arc:()=>x.A,BezierCurve:()=>_.A,BoundingRect:()=>M.A,Circle:()=>h.A,CompoundPath:()=>S.A,Ellipse:()=>d.A,Group:()=>u.A,Image:()=>l.Ay,IncrementalDisplayable:()=>T.A,Line:()=>y.A,LinearGradient:()=>b.A,OrientedBoundingRect:()=>I.A,Path:()=>a.Ay,Point:()=>A.A,Polygon:()=>g.A,Polyline:()=>m.A,RadialGradient:()=>w.A,Rect:()=>v.A,Ring:()=>f.A,Sector:()=>p.A,Text:()=>c.Ay,applyTransform:()=>K,clipPointsByRect:()=>Q,clipRectByRect:()=>tt,createIcon:()=>et,extendPath:()=>z,extendShape:()=>R,getShapeClass:()=>B,getTransform:()=>$,groupTransition:()=>J,initProps:()=>k.LW,isElementRemoved:()=>k.LR,lineLineIntersect:()=>it,linePolygonIntersect:()=>nt,makeImage:()=>F,makePath:()=>G,mergePath:()=>W,registerShape:()=>V,removeElement:()=>k.Nz,removeElementWithFadeOut:()=>k.t5,resizePath:()=>X,setTooltipConfig:()=>rt,subPixelOptimize:()=>Y,subPixelOptimizeLine:()=>U,subPixelOptimizeRect:()=>Z,transformDirection:()=>q,traverseElements:()=>st,updateProps:()=>k.oi});var i=n(9442),o=n(7968),r=n(3509),a=n(1950),s=n(2836),l=n(540),u=n(3870),c=n(9766),h=n(1571),d=n(8393),p=n(5014),f=n(2933),g=n(2505),m=n(9195),v=n(10),y=n(2861),_=n(3849),x=n(3471),S=n(2591),b=n(9668),w=n(2250),M=n(9308),I=n(4716),A=n(6346),T=n(2995),C=n(4865),D=n(8026),L=n(9622),k=n(5638),P=Math.max,O=Math.min,N={};function R(t){return a.Ay.extend(t)}var E=i.Qh;function z(t,e){return E(t,e)}function V(t,e){N[t]=e}function B(t){if(N.hasOwnProperty(t))return N[t]}function G(t,e,n,o){var r=i.UJ(t,e);return n&&("center"===o&&(n=H(n,r.getBoundingRect())),X(r,n)),r}function F(t,e,n){var i=new l.Ay({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var o={width:t.width,height:t.height};i.setStyle(H(e,o))}}});return i}function H(t,e){var n,i=e.width/e.height,o=t.height*i;return n=o<=t.width?t.height:(o=t.width)/i,{x:t.x+t.width/2-o/2,y:t.y+t.height/2-n/2,width:o,height:n}}var W=i.uc;function X(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function U(t,e){return C.eB(t,t,{lineWidth:e}),t}function Z(t){return C.Op(t.shape,t.shape,t.style),t}var Y=C.M7;function $(t,e){for(var n=o.D_([]);t&&t!==e;)o.lK(n,t.getLocalTransform(),n),t=t.parent;return n}function K(t,e,n){return e&&!(0,D.Xj)(e)&&(e=s.Ay.getLocalTransform(e)),n&&(e=o.B8([],e)),r.NW([],t,e)}function q(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0];return r=K(r,e,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function j(t){return!t.isGroup}function J(t,e,n){if(t&&e){var i,o=(i={},t.traverse(function(t){j(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(j(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),(0,k.oi)(t,i,n,(0,L.z)(t).dataIndex)}}})}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=(0,D.X$)({},t.shape)),e}}function Q(t,e){return(0,D.Tj)(t,function(t){var n=t[0];n=P(n,e.x),n=O(n,e.x+e.width);var i=t[1];return i=P(i,e.y),[n,i=O(i,e.y+e.height)]})}function tt(t,e){var n=P(t.x,e.x),i=O(t.x+t.width,e.x+e.width),o=P(t.y,e.y),r=O(t.y+t.height,e.y+e.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}}function et(t,e,n){var i=(0,D.X$)({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(o.image=t.slice(8),(0,D.NT)(o,n),new l.Ay(i)):G(t.replace("path://",""),i,n,"center")}function nt(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(it(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function it(t,e,n,i,o,r,a,s){var l,u=n-t,c=i-e,h=a-o,d=s-r,p=ot(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-o,g=e-r,m=ot(f,g,u,c)/p;if(m<0||m>1)return!1;var v=ot(f,g,h,d)/p;return!(v<0||v>1)}function ot(t,e,n,i){return t*i-n*e}function rt(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,o=(0,D.Kg)(e)?{formatter:e}:e,r=n.mainType,a=n.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=t.formatterParamsExtra;l&&(0,D.__)((0,D.HP)(l),function(t){(0,D.$3)(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=(0,L.z)(t.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:i,option:(0,D.NT)({content:i,encodeHTMLContent:!0,formatterParams:s},o)}}function at(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function st(t,e){if(t)if((0,D.cy)(t))for(var n=0;n<t.length;n++)at(t[n],e);else at(t,e)}V("circle",h.A),V("ellipse",d.A),V("sector",p.A),V("ring",f.A),V("polygon",g.A),V("polyline",m.A),V("rect",v.A),V("line",y.A),V("bezierCurve",_.A),V("arc",x.A)},9622(t,e,n){n.d(e,{a:()=>o,z:()=>i});var i=(0,n(8170).$r)(),o=function(t,e,n,o){if(o){var r=i(o);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===o.type&&o.traverse(function(o){var r=i(o);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}}},4253(t,e,n){n.d(e,{YA:()=>g,aP:()=>h,ad:()=>f,dV:()=>d,m$:()=>p,vs:()=>m});var i=n(8026),o=n(9308),r=n(4326),a=n(3412),s=i.__,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=r+g)>i||l.newline?(r=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(h=a+m)>o||l.newline?(r+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=c+n:a=h+n)})}var h=c;function d(t,e,n){n=a.QX(n||0);var i=e.width,s=e.height,l=(0,r.lo)(t.left,i),u=(0,r.lo)(t.top,s),c=(0,r.lo)(t.right,i),h=(0,r.lo)(t.bottom,s),d=(0,r.lo)(t.width,i),p=(0,r.lo)(t.height,s),f=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=s-h-f-u),null!=m&&(isNaN(d)&&isNaN(p)&&(m>i/s?d=.8*i:p=.8*s),isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-p-f),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-p/2-n[0];break;case"bottom":u=s-p-f}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=s-f-u-(h||0));var v=new o.A(l+n[3],u+n[0],d,p);return v.margin=n,v}function p(t,e,n,r,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new o.A(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var p=t.getLocalTransform();(l=l.clone()).applyTransform(p)}var f=d(i.NT({width:l.width,height:l.height},e),n,r),g=u?f.x-l.x:0,m=c?f.y-l.y:0;return"raw"===h?(s.x=g,s.y=m):(s.x+=g,s.y+=m),s===t&&t.markRedraw(),!0}function f(t){var e=t.layoutMode||t.constructor.layoutMode;return i.Gv(e)?e:e?{type:e}:null}function g(t,e,n){var o=n&&n.ignoreSize;!i.cy(o)&&(o=[o,o]);var r=l(u[0],0),a=l(u[1],1);function l(n,i){var r={},a=0,l={},u=0;if(s(n,function(e){l[e]=t[e]}),s(n,function(t){c(e,t)&&(r[t]=l[t]=e[t]),h(r,t)&&a++,h(l,t)&&u++}),o[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return r;for(var d=0;d<n.length;d++){var p=n[d];if(!c(r,p)&&c(t,p)){r[p]=t[p];break}}return r}return l}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,function(t){e[t]=n[t]})}d(u[0],t,r),d(u[1],t,a)}function m(t){return function(t,e){return e&&t&&s(l,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}({},t)}i.cF(c,"vertical"),i.cF(c,"horizontal")},1025(t,e,n){function i(t){}function o(t){throw new Error(t)}n.d(e,{$8:()=>o,aT:()=>i}),"undefined"!=typeof console&&console.warn&&console.log},8170(t,e,n){n.d(e,{$r:()=>b,Bq:()=>D,D$:()=>L,D6:()=>x,GX:()=>_,HB:()=>I,Il:()=>P,JO:()=>C,JS:()=>c,M5:()=>u,O0:()=>v,O2:()=>p,US:()=>A,UW:()=>T,XJ:()=>k,_e:()=>M,le:()=>S,oh:()=>y,qB:()=>l,vS:()=>m,vj:()=>h,zu:()=>d});var i=n(8026),o=n(8123),r=n(4326);function a(t,e,n){return(e-t)*n+t}var s="series\0";function l(t){return t instanceof Array?t:null==t?[]:[t]}function u(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var c=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function h(t){return!(0,i.Gv)(t)||(0,i.cy)(t)||t instanceof Date?t:t.value}function d(t){return(0,i.Gv)(t)&&!(t instanceof Array)}function p(t,e,n){var o="normalMerge"===n,r="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var l=(0,i.nt)();(0,i.__)(e,function(t,n){(0,i.Gv)(t)||(e[n]=null)});var u,c,h=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||y(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,l,n);return(o||r)&&function(t,e,n,o){(0,i.__)(o,function(r,a){if(r&&null!=r.id){var s=g(r.id),l=n.get(s);if(null!=l){var u=t[l];(0,i.vA)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=r,u.existing=e[l],o[a]=null}}})}(h,t,l,e),o&&function(t,e){(0,i.__)(e,function(n,i){if(n&&null!=n.name)for(var o=0;o<t.length;o++){var r=t[o].existing;if(!t[o].newOption&&r&&(null==r.id||null==n.id)&&!y(n)&&!y(r)&&f("name",r,n))return t[o].newOption=n,void(e[i]=null)}})}(h,e),o||r?function(t,e,n){(0,i.__)(e,function(e){if(e){for(var i,o=0;(i=t[o])&&(i.newOption||y(i.existing)||i.existing&&null!=e.id&&!f("id",e,i.existing));)o++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),o++}})}(h,e,r):a&&function(t,e){(0,i.__)(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(h,e),u=h,c=(0,i.nt)(),(0,i.__)(u,function(t){var e=t.existing;e&&c.set(e.id,t)}),(0,i.__)(u,function(t){var e=t.newOption;(0,i.vA)(!e||null==e.id||!c.get(e.id)||c.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&c.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),(0,i.__)(u,function(t,e){var n=t.existing,o=t.newOption,r=t.keyInfo;if((0,i.Gv)(o)){if(r.name=null!=o.name?g(o.name):n?n.name:s+e,n)r.id=g(n.id);else if(null!=o.id)r.id=g(o.id);else{var a=0;do{r.id="\0"+r.name+"\0"+a++}while(c.get(r.id))}c.set(r.id,t)}}),h}function f(t,e,n){var i=m(e[t],null),o=m(n[t],null);return null!=i&&null!=o&&i===o}function g(t){return m(t,"")}function m(t,e){return null==t?e:(0,i.Kg)(t)?t:(0,i.Et)(t)||(0,i.Lh)(t)?t+"":e}function v(t){var e=t.name;return!(!e||!e.indexOf(s))}function y(t){return t&&null!=t.id&&0===g(t.id).indexOf("\0_ec_\0")}function _(t,e,n){(0,i.__)(t,function(t){var o=t.newOption;(0,i.Gv)(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,o,t.existing,n))})}function x(t,e){var n={},i={};return o(t||[],n),o(e||[],i,n),[r(n),r(i)];function o(t,e,n){for(var i=0,o=t.length;i<o;i++){var r=m(t[i].seriesId,null);if(null==r)return;for(var a=l(t[i].dataIndex),s=n&&n[r],u=0,c=a.length;u<c;u++){var h=a[u];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}}function r(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var o=r(t[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}}function S(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,i.cy)(e.dataIndex)?(0,i.Tj)(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,i.cy)(e.name)?(0,i.Tj)(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function b(){var t="__ec_inner_"+w++;return function(e){return e[t]||(e[t]={})}}var w=(0,r.IH)();function M(t,e,n){var i=I(e,n),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!o&&s&&r.set(s,{}),r.each(function(e,i){var o=C(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=o.models,a[i+"Model"]=o.models[0]}),a}function I(t,e){var n;if((0,i.Kg)(t)){var o={};o[t+"Index"]=0,n=o}else n=t;var r=(0,i.nt)(),a={},s=!1;return(0,i.__)(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var o=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],u=(o[2]||"").toLowerCase();!l||!u||e&&e.includeMainTypes&&(0,i.qh)(e.includeMainTypes,l)<0||(s=s||!!l,(r.get(l)||r.set(l,{}))[u]=t)}else a[n]=t}),{mainTypeSpecified:s,queryOptionMap:r,others:a}}var A={useDefault:!0,enableAll:!1,enableNone:!1},T={useDefault:!1,enableAll:!0,enableNone:!0};function C(t,e,n,o){o=o||A;var r=n.index,a=n.id,s=n.name,l={models:null,specified:null!=r||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=o.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===r||!1===r?((0,i.vA)(o.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===r&&((0,i.vA)(o.enableAll,'`"all"` is not a valid value on index option.'),r=a=s=null),l.models=t.queryComponents({mainType:e,index:r,id:a,name:s}),l)}function D(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function L(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function k(t){return"auto"===t?o.A.domSupported?"html":"richText":t||"html"}function P(t,e,n,o,s){var l=null==e||"auto"===e;if(null==o)return o;if((0,i.Et)(o)){var u=a(n||0,o,s);return(0,r.LI)(u,l?Math.max((0,r.XV)(n||0),(0,r.XV)(o)):e)}if((0,i.Kg)(o))return s<1?n:o;for(var c=[],h=n,d=o,p=Math.max(h?h.length:0,d.length),f=0;f<p;++f){var g=t.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(s<1&&h?h:d)[f];else{var m=h&&h[f]?h[f]:0,v=d[f];u=a(m,v,s),c[f]=(0,r.LI)(u,l?Math.max((0,r.XV)(m),(0,r.XV)(v)):e)}}return c}},4326(t,e,n){n.d(e,{Cb:()=>o,Cm:()=>y,IH:()=>b,LI:()=>a,NX:()=>v,Sm:()=>x,Tr:()=>h,XV:()=>l,Y6:()=>s,_7:()=>d,_U:()=>g,au:()=>m,dh:()=>p,hb:()=>u,kM:()=>c,kf:()=>S,lQ:()=>M,lo:()=>r,sL:()=>_});var i=n(8026);function o(t,e,n,i){var o=e[0],r=e[1],a=n[0],s=n[1],l=r-o,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=o)return a;if(t>=r)return s}else{if(t>=o)return a;if(t<=r)return s}else{if(t===o)return a;if(t===r)return s}return(t-o)/l*u+a}function r(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return i.Kg(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function a(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function s(t){return t.sort(function(t,e){return t-e}),t}function l(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,o=n>0?n:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}(t)}function u(t,e){var n=Math.log,i=Math.LN10,o=Math.floor(n(t[1]-t[0])/i),r=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function c(t,e){var n=i.TS(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var o=Math.pow(10,e),r=i.Tj(t,function(t){return(isNaN(t)?0:t)/n*o*100}),a=100*o,s=i.Tj(r,function(t){return Math.floor(t)}),l=i.TS(s,function(t,e){return t+e},0),u=i.Tj(r,function(t,e){return t-s[e]});l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return i.Tj(s,function(t){return t/o})}function h(t,e){var n=Math.max(l(t),l(e)),i=t+e;return n>20?i:a(i,n)}function d(t){var e=2*Math.PI;return(t%e+e)%e}function p(t){return t>-1e-4&&t<1e-4}var f=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function g(t){if(t instanceof Date)return t;if(i.Kg(t)){var e=f.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function m(t){return Math.pow(10,v(t))}function v(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function y(t,e){var n=v(t),i=Math.pow(10,n),o=t/i;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function _(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function x(t){var e=parseFloat(t);return e==t&&(0!==e||!i.Kg(t)||t.indexOf("x")<=0)?e:NaN}function S(t){return!isNaN(x(t))}function b(){return Math.round(9*Math.random())}function w(t,e){return 0===e?t:w(e,t%e)}function M(t,e){return null==t?e:null==e?t:t*e/w(t,e)}},4618(t,e,n){n.d(e,{A:()=>a});var i=n(1635),o=n(1950),r=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};const a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new r},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(p*r+n,f*r+i),t.arc(n,i,r,l,u,!c),t.arc(g*s+n,m*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==o&&t.arc(n,i,o,u,l,c)},e}(o.Ay)},4833(t,e,n){n.d(e,{BV:()=>f,Du:()=>U,HY:()=>E,Iz:()=>K,JC:()=>B,JI:()=>G,Lm:()=>tt,Lv:()=>y,Lx:()=>st,Mx:()=>it,PW:()=>v,Pk:()=>k,Q6:()=>x,QX:()=>V,SD:()=>z,T$:()=>lt,Tl:()=>Y,U2:()=>_,_m:()=>$,_n:()=>at,e3:()=>p,fz:()=>ut,gd:()=>F,h5:()=>m,iJ:()=>Q,ix:()=>ot,jA:()=>j,lV:()=>Z,mc:()=>J,qR:()=>W,t6:()=>q,u6:()=>rt,wV:()=>g,zX:()=>d});var i=n(8026),o=n(9622),r=n(7698),a=n(8170),s=n(1950),l=1,u={},c=(0,a.$r)(),h=(0,a.$r)(),d=1,p=2,f=["emphasis","blur","select"],g=["normal","emphasis","blur","select"],m="highlight",v="downplay",y="select",_="unselect",x="toggleSelect";function S(t){return null!=t&&"none"!==t}function b(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function w(t){b(t,"emphasis",p)}function M(t){t.hoverState===p&&b(t,"normal",0)}function I(t){b(t,"blur",d)}function A(t){t.hoverState===d&&b(t,"normal",0)}function T(t){t.selected=!0}function C(t){t.selected=!1}function D(t,e,n){e(t,n)}function L(t,e,n){D(t,e,n),t.isGroup&&t.traverse(function(t){D(t,e,n)})}function k(t,e){switch(e){case"emphasis":t.hoverState=p;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=d;break;case"select":t.selected=!0}}function P(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,o){var a=n&&(0,i.qh)(n,"select")>=0,l=!1;if(t instanceof s.Ay){var u=c(t),h=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(S(h)||S(d)){var p=(o=o||{}).style||{};"inherit"===p.fill?(l=!0,o=(0,i.X$)({},o),(p=(0,i.X$)({},p)).fill=h):!S(p.fill)&&S(h)?(l=!0,o=(0,i.X$)({},o),(p=(0,i.X$)({},p)).fill=(0,r.P)(h)):!S(p.stroke)&&S(d)&&(l||(o=(0,i.X$)({},o),p=(0,i.X$)({},p)),p.stroke=(0,r.P)(d)),o.style=p}}if(o&&null==o.z2){l||(o=(0,i.X$)({},o));var f=t.z2EmphasisLift;o.z2=t.z2+(null!=f?f:10)}return o}(this,0,e,n);if("blur"===t)return function(t,e,n){var o=(0,i.qh)(t.currentStates,e)>=0,r=t.style.opacity,a=o?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=l??(i&&i[s])}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,i.X$)({},n),s=(0,i.X$)({opacity:o?r:.1*a.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=(0,i.X$)({},n);var o=t.z2SelectLift;n.z2=t.z2+(null!=o?o:9)}return n}(this,0,n)}return n}function O(t){t.stateProxy=P;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=P),n&&(n.stateProxy=P)}function N(t,e){!H(t,e)&&!t.__highByOuter&&L(t,w)}function R(t,e){!H(t,e)&&!t.__highByOuter&&L(t,M)}function E(t,e){t.__highByOuter|=1<<(e||0),L(t,w)}function z(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&L(t,M)}function V(t){L(t,I)}function B(t){L(t,A)}function G(t){L(t,T)}function F(t){L(t,C)}function H(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function W(t){var e=t.getModel(),n=[],o=[];e.eachComponent(function(e,i){var r=h(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&o.push(s),r.isBlured&&(s.group.traverse(function(t){A(t)}),a&&n.push(i)),r.isBlured=!1}),(0,i.__)(o,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function X(t,e,n,o){var r=o.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&B(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=r.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];r.eachSeries(function(t){var r=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!r||"coordinateSystem"===n&&!(c&&l?c===l:r)||"series"===e&&r)){if(o.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||I(t)}),(0,i.Xj)(e))a(t.getData(),e);else if((0,i.Gv)(e))for(var d=(0,i.HP)(e),p=0;p<d.length;p++)a(t.getData(d[p]),e[d[p]]);u.push(t),h(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=o.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,r)}})}}function U(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){h(i).isBlured=!0;var o=n.getViewOfComponentModel(i);o&&o.focusBlurEnabled&&o.group.traverse(function(t){I(t)})}}}function Z(t,e,n){var r=t.seriesIndex,s=t.getData(e.dataType);if(s){var l=(0,a.le)(s,e);l=((0,i.cy)(l)?l[0]:l)||0;var u=s.getItemGraphicEl(l);if(!u)for(var c=s.count(),h=0;!u&&h<c;)u=s.getItemGraphicEl(h++);if(u){var d=(0,o.z)(u);X(r,d.focus,d.blurScope,n)}else{var p=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=p&&X(r,p,f,n)}}}function Y(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var a=i.getModel().getComponent(t,e);if(!a)return r;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return r;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===(0,o.z)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function $(t,e,n){var r=(0,o.z)(t),a=Y(r.componentMainType,r.componentIndex,r.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&U(r.componentMainType,r.componentIndex,n),(0,i.__)(s,function(t){return N(t,e)})):(X(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&U(r.componentMainType,r.componentIndex,n),N(t,e))}function K(t,e,n){W(n);var r=(0,o.z)(t),a=Y(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?(0,i.__)(a,function(t){return R(t,e)}):R(t,e)}function q(t,e,n){if(st(e)){var o=e.dataType,r=t.getData(o),s=(0,a.le)(r,e);(0,i.cy)(s)||(s=[s]),t[e.type===x?"toggleSelect":e.type===y?"select":"unselect"](s,o)}}function j(t){var e=t.getAllData();(0,i.__)(e,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?G(e):F(e)})})}function J(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();(0,i.__)(n,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var r={dataIndex:o,seriesIndex:t.seriesIndex};null!=i&&(r.dataType=i),e.push(r)}})}),e}function Q(t,e,n){ot(t,!0),L(t,O),function(t,e,n){var i=(0,o.z)(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function tt(t,e,n,i){i?function(t){ot(t,!1)}(t):Q(t,e,n)}var et=["emphasis","blur","select"],nt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function it(t,e,n,i){n=n||"itemStyle";for(var o=0;o<et.length;o++){var r=et[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[nt[n]]()}}function ot(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function rt(t){return!(!t||!t.__highDownDispatcher)}function at(t){var e=u[t];return null==e&&l<=32&&(e=u[t]=l++),e}function st(t){var e=t.type;return e===y||e===_||e===x}function lt(t){var e=t.type;return e===m||e===v}function ut(t){var e=c(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}},2103(t,e,n){n.d(e,{$V:()=>y,hV:()=>w,v5:()=>S,xU:()=>b});var i=n(8026),o=n(3199),r=n(1950),a=n(1571),s=n(10),l=n(2861),u=n(9308),c=n(5558),h=n(4326),d=r.Ay.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i+r),t.lineTo(n-o,i+r),t.closePath()}}),p=r.Ay.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i),t.lineTo(n,i+r),t.lineTo(n-o,i),t.closePath()}}),f=r.Ay.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),g=r.Ay.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,r=e.y,a=i/3*2;t.moveTo(o,r),t.lineTo(o+a,r+n),t.lineTo(o,r+n/4*3),t.lineTo(o-a,r+n),t.lineTo(o,r),t.closePath()}}),m={line:l.A,rect:s.A,roundRect:s.A,square:s.A,circle:a.A,diamond:p,pin:f,arrow:g,triangle:d},v={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){var r=Math.min(n,i);o.x=t,o.y=e,o.width=r,o.height=r},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},y={};(0,i.__)(m,function(t,e){y[e]=new t});var _=r.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,c.X4)(t,e,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var o=y[i];o||(o=y[i="rect"]),v[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,n)}}});function x(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function S(t,e,n,i,r,a,s){var l,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(l=0===t.indexOf("image://")?o.makeImage(t.slice(8),new u.A(e,n,i,r),s?"center":"cover"):0===t.indexOf("path://")?o.makePath(t.slice(7),{},new u.A(e,n,i,r),s?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=c,l.setColor=x,a&&l.setColor(a),l}function b(t){return(0,i.cy)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function w(t,e){if(null!=t)return(0,i.cy)(t)||(t=[t,t]),[(0,h.lo)(t[0],e[0])||0,(0,h.lo)((0,i.bZ)(t[1],t[0]),e[1])||0]}},4711(t,e,n){n.d(e,{IU:()=>l,N:()=>s,nF:()=>a});var i="\0__throttleOriginMethod",o="\0__throttleRate",r="\0__throttleType";function a(t,e,n){var i,o,r,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(r,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),r=this,a=t;var p=s||e,f=s||n;s=null,o=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):o>=0?h():c=setTimeout(h,-o),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function s(t,e,n,s){var l=t[e];if(l){var u=l[i]||l,c=l[r];if(l[o]!==n||c!==s){if(null==n||!s)return t[e]=u;(l=t[e]=a(u,n,"debounce"===s))[i]=u,l[r]=s,l[o]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},5854(t,e,n){n.d(e,{$9:()=>x,$H:()=>h,CZ:()=>c,F7:()=>m,FP:()=>V,GP:()=>S,KF:()=>E,Lm:()=>f,MA:()=>u,OY:()=>s,Wf:()=>L,X_:()=>b,Yd:()=>R,Zz:()=>k,bP:()=>T,ce:()=>_,g0:()=>M,hY:()=>I,iC:()=>C,iW:()=>l,jJ:()=>A,tM:()=>P,ti:()=>N,ww:()=>z,xu:()=>O,yB:()=>D,ym:()=>y});var i=n(8026),o=n(4326),r=n(182),a=n(3172),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},p="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:p,hour:p+" "+d.hour,minute:p+" "+d.minute,second:p+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return"0000".substr(0,e-(t+="").length)+t}function y(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function _(t){return t===y(t)}function x(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function S(t,e,n,i){var s=o._U(t),l=s[I(n)](),u=s[A(n)]()+1,c=Math.floor((u-1)/3)+1,h=s[T(n)](),d=s["get"+(n?"UTC":"")+"Day"](),p=s[C(n)](),f=(p-1)%12+1,g=s[D(n)](),m=s[L(n)](),y=s[k(n)](),_=p>=12?"pm":"am",x=_.toUpperCase(),S=(i instanceof a.A?i:(0,r.A4)(i||r.Lv)||(0,r.pr)()).getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),M=S.get("dayOfWeek"),P=S.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,_+"").replace(/{A}/g,x+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,v(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,b[u-1]).replace(/{MMM}/g,w[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,M[d]).replace(/{ee}/g,P[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,v(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function b(t,e,n,o,r){var a=null;if(i.Kg(n))a=n;else if(i.Tn(n))a=n(t.value,e,{level:t.level});else{var s=i.X$({},d);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i.NT(n,s):s,c=w(t.value,r);if(u[c])a=u[c];else if(u.inherit){for(l=m.indexOf(c)-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(i.cy(a)){var h=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[h=Math.min(h,a.length-1)]}}return S(new Date(t.value),a,r,o)}function w(t,e){var n=o._U(t),i=n[A(e)]()+1,r=n[T(e)](),a=n[C(e)](),s=n[D(e)](),l=n[L(e)](),u=0===n[k(e)](),c=u&&0===l,h=c&&0===s,d=h&&0===a,p=d&&1===r;return p&&1===i?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function M(t,e,n){var r=i.Et(t)?o._U(t):t;switch(e=e||w(t,n)){case"year":return r[I(n)]();case"half-year":return r[A(n)]()>=6?1:0;case"quarter":return Math.floor((r[A(n)]()+1)/4);case"month":return r[A(n)]();case"day":return r[T(n)]();case"half-day":return r[C(n)]()/24;case"hour":return r[C(n)]();case"minute":return r[D(n)]();case"second":return r[L(n)]();case"millisecond":return r[k(n)]()}}function I(t){return t?"getUTCFullYear":"getFullYear"}function A(t){return t?"getUTCMonth":"getMonth"}function T(t){return t?"getUTCDate":"getDate"}function C(t){return t?"getUTCHours":"getHours"}function D(t){return t?"getUTCMinutes":"getMinutes"}function L(t){return t?"getUTCSeconds":"getSeconds"}function k(t){return t?"getUTCMilliseconds":"getMilliseconds"}function P(t){return t?"setUTCFullYear":"setFullYear"}function O(t){return t?"setUTCMonth":"setMonth"}function N(t){return t?"setUTCDate":"setDate"}function R(t){return t?"setUTCHours":"setHours"}function E(t){return t?"setUTCMinutes":"setMinutes"}function z(t){return t?"setUTCSeconds":"setSeconds"}function V(t){return t?"setUTCMilliseconds":"setMilliseconds"}},3430(t,e,n){n.d(e,{Km:()=>r,Pe:()=>i,Wk:()=>a,XO:()=>l,i_:()=>c,mK:()=>o,oC:()=>h,t1:()=>s,vm:()=>u});var i=(0,n(8026).nt)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",r="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",u="unknown",c="column",h="row"},8957(t,e,n){n.d(e,{J:()=>a});var i=n(8026),o="undefined"!=typeof Float32Array,r=o?Float32Array:Array;function a(t){return(0,i.cy)(t)?o?new Float32Array(t):t:new r(t)}},6666(t,e,n){n.d(e,{A:()=>x});var i=n(8026),o=n(3870),r=n(2616),a=n(693),s=n(8170),l=n(4833),u=n(9431),c=n(7582),h=n(3199),d=s.$r(),p=(0,c.A)(),f=function(){function t(){this.group=new o.A,this.uid=r.$Q("viewChart"),this.renderTask=(0,u.U)({plan:v,reset:y}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&m(o,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&m(o,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){(0,h.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){d(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&(0,l.u6)(t)&&("emphasis"===e?l.HY:l.SD)(t,n)}function m(t,e,n){var o=s.le(t,e),r=e&&null!=e.highlightKey?(0,l._n)(e.highlightKey):null;null!=o?(0,i.__)(s.qB(o),function(e){g(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){g(t,n,r)})}function v(t){return p(t.model)}function y(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=t.view,s=o&&d(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,o),_[l]}a.gq(f,["dispose"]),a.tQ(f);var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const x=f},9109(t,e,n){n.d(e,{A:()=>s});var i=n(3870),o=n(2616),r=n(693),a=function(){function t(){this.group=new i.A,this.uid=o.$Q("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();r.gq(a),r.tQ(a);const s=a},8239(t,e,n){n.d(e,{A:()=>i});const i=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}()},7395(t,e,n){function i(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function o(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function r(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}n.d(e,{Ez:()=>i,oZ:()=>r,rI:()=>o})}};