@templmf/temp-solf-lmf 0.0.95 → 0.0.96

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 (586) hide show
  1. package/new/@antv/component@2.1.11/es2022/component.mjs +15 -0
  2. package/new/@antv/component@2.1.11/es2022/esm/animation.mjs +3 -0
  3. package/new/@antv/component@2.1.11/es2022/esm/core.mjs +3 -0
  4. package/new/@antv/component@2.1.11/es2022/esm/ui/axis/utils.mjs +3 -0
  5. package/{@antv/component@2.1.7 → new/@antv/component@2.1.11}/es2022/esm/util/layout.mjs +1 -1
  6. package/new/@antv/g-canvas@2.0.0/es2022/g-canvas.mjs +20 -0
  7. package/new/@antv/g-lite@2.7.0/es2022/g-lite.mjs +22 -0
  8. package/{@antv/g-math@3.0.1 → new/@antv/g-math@3.1.0}/es2022/g-math.mjs +3 -3
  9. package/new/@antv/g-plugin-dragndrop@2.1.1/es2022/g-plugin-dragndrop.mjs +18 -0
  10. package/new/@antv/g@6.3.1/es2022/g.mjs +24 -0
  11. package/new/bubblesets-js@^2.3.4 +3 -0
  12. package/new/html2canvas@1.4.1/es2022/html2canvas.mjs +30 -0
  13. package/new/html2canvas@v1.4.1 +3 -0
  14. package/new/svg-path-parser@1.1.0/es2022/svg-path-parser.mjs +4 -0
  15. package/new/svg-path-parser@^1.1.0 +3 -0
  16. package/new/tslib@2.8.1/es2022/tslib.mjs +3 -0
  17. package/new/tslib@^2.0.0 +3 -0
  18. package/package.json +1 -1
  19. package/@antv/algorithm@0.1.26/es2022/algorithm.mjs +0 -3
  20. package/@antv/algorithm@^0.1.26 +0 -5
  21. package/@antv/component@2.1.7/es2022/component.mjs +0 -15
  22. package/@antv/component@2.1.7/es2022/esm/animation.mjs +0 -3
  23. package/@antv/component@2.1.7/es2022/esm/core.mjs +0 -3
  24. package/@antv/component@2.1.7/es2022/esm/ui/axis/utils.mjs +0 -3
  25. package/@antv/component@^2.1.7 +0 -11
  26. package/@antv/event-emitter@0.1.3/es2022/event-emitter.mjs +0 -3
  27. package/@antv/event-emitter@^0.1.3 +0 -3
  28. package/@antv/g-camera-api@2.0.41/es2022/g-camera-api.mjs +0 -15
  29. package/@antv/g-canvas@2.0.48/es2022/g-canvas.mjs +0 -18
  30. package/@antv/g-canvas@^2.0.48 +0 -6
  31. package/@antv/g-dom-mutation-observer-api@2.0.38/es2022/g-dom-mutation-observer-api.mjs +0 -15
  32. package/@antv/g-lite@2.3.2/es2022/g-lite.mjs +0 -22
  33. package/@antv/g-plugin-canvas-path-generator@2.1.22/es2022/g-plugin-canvas-path-generator.mjs +0 -16
  34. package/@antv/g-plugin-canvas-picker@2.1.27/es2022/g-plugin-canvas-picker.mjs +0 -20
  35. package/@antv/g-plugin-canvas-renderer@2.3.3/es2022/g-plugin-canvas-renderer.mjs +0 -17
  36. package/@antv/g-plugin-dom-interaction@2.1.27/es2022/g-plugin-dom-interaction.mjs +0 -15
  37. package/@antv/g-plugin-dragndrop@2.0.38/es2022/g-plugin-dragndrop.mjs +0 -18
  38. package/@antv/g-plugin-dragndrop@^2.0.38 +0 -4
  39. package/@antv/g-plugin-html-renderer@2.1.27/es2022/g-plugin-html-renderer.mjs +0 -15
  40. package/@antv/g-plugin-image-loader@2.1.26/es2022/g-plugin-image-loader.mjs +0 -19
  41. package/@antv/g-web-animations-api@2.1.28/es2022/g-web-animations-api.mjs +0 -17
  42. package/@antv/g6@5.1.1/es2022/g6.mjs +0 -125
  43. package/@antv/g@6.1.28/es2022/g.mjs +0 -15
  44. package/@antv/g@^6.1.11 +0 -6
  45. package/@antv/g@^6.1.28 +0 -6
  46. package/@antv/graphlib@2.0.4/es2022/graphlib.mjs +0 -3
  47. package/@antv/graphlib@^2.0.4 +0 -3
  48. package/@antv/hierarchy@0.7.1/es2022/hierarchy.mjs +0 -3
  49. package/@antv/hierarchy@^0.7.1 +0 -3
  50. package/@antv/layout@2.0.0/es2022/layout.mjs +0 -20
  51. package/@antv/layout@^2.0.0 +0 -2
  52. package/@antv/scale@^0.4.16 +0 -5
  53. package/@antv/util@3.3.11/es2022/util.mjs +0 -3
  54. package/@antv/util@^2.0.13 +0 -3
  55. package/@antv/util@^3.3.10 +0 -4
  56. package/@antv/util@^3.3.11 +0 -4
  57. package/@antv/util@^3.3.5 +0 -4
  58. package/animate.css@4.1.1/animate.css +0 -4072
  59. package/bubblesets-js@2.3.4/es2022/bubblesets-js.mjs +0 -4
  60. package/echarts +0 -8
  61. package/echarts@6.0.0/es2022/echarts.mjs +0 -3
  62. package/echarts@6.0.0/es2022/lib/animation/basicTransition.mjs +0 -3
  63. package/echarts@6.0.0/es2022/lib/animation/customGraphicKeyframeAnimation.mjs +0 -3
  64. package/echarts@6.0.0/es2022/lib/animation/customGraphicTransition.mjs +0 -3
  65. package/echarts@6.0.0/es2022/lib/animation/morphTransitionHelper.mjs +0 -3
  66. package/echarts@6.0.0/es2022/lib/animation/universalTransition.mjs +0 -3
  67. package/echarts@6.0.0/es2022/lib/chart/bar/BarSeries.mjs +0 -3
  68. package/echarts@6.0.0/es2022/lib/chart/bar/BarView.mjs +0 -3
  69. package/echarts@6.0.0/es2022/lib/chart/bar/BaseBarSeries.mjs +0 -3
  70. package/echarts@6.0.0/es2022/lib/chart/bar/PictorialBarSeries.mjs +0 -3
  71. package/echarts@6.0.0/es2022/lib/chart/bar/PictorialBarView.mjs +0 -3
  72. package/echarts@6.0.0/es2022/lib/chart/bar/install.mjs +0 -3
  73. package/echarts@6.0.0/es2022/lib/chart/bar/installPictorialBar.mjs +0 -3
  74. package/echarts@6.0.0/es2022/lib/chart/boxplot/BoxplotSeries.mjs +0 -3
  75. package/echarts@6.0.0/es2022/lib/chart/boxplot/BoxplotView.mjs +0 -3
  76. package/echarts@6.0.0/es2022/lib/chart/boxplot/boxplotLayout.mjs +0 -3
  77. package/echarts@6.0.0/es2022/lib/chart/boxplot/boxplotTransform.mjs +0 -3
  78. package/echarts@6.0.0/es2022/lib/chart/boxplot/install.mjs +0 -3
  79. package/echarts@6.0.0/es2022/lib/chart/boxplot/prepareBoxplotData.mjs +0 -3
  80. package/echarts@6.0.0/es2022/lib/chart/candlestick/CandlestickSeries.mjs +0 -3
  81. package/echarts@6.0.0/es2022/lib/chart/candlestick/CandlestickView.mjs +0 -3
  82. package/echarts@6.0.0/es2022/lib/chart/candlestick/candlestickLayout.mjs +0 -3
  83. package/echarts@6.0.0/es2022/lib/chart/candlestick/candlestickVisual.mjs +0 -3
  84. package/echarts@6.0.0/es2022/lib/chart/candlestick/install.mjs +0 -3
  85. package/echarts@6.0.0/es2022/lib/chart/candlestick/preprocessor.mjs +0 -3
  86. package/echarts@6.0.0/es2022/lib/chart/chord/ChordEdge.mjs +0 -3
  87. package/echarts@6.0.0/es2022/lib/chart/chord/ChordSeries.mjs +0 -3
  88. package/echarts@6.0.0/es2022/lib/chart/chord/ChordView.mjs +0 -3
  89. package/echarts@6.0.0/es2022/lib/chart/chord/install.mjs +0 -3
  90. package/echarts@6.0.0/es2022/lib/chart/custom/CustomView.mjs +0 -3
  91. package/echarts@6.0.0/es2022/lib/chart/custom/customSeriesRegister.mjs +0 -3
  92. package/echarts@6.0.0/es2022/lib/chart/custom/install.mjs +0 -3
  93. package/echarts@6.0.0/es2022/lib/chart/effectScatter/EffectScatterSeries.mjs +0 -3
  94. package/echarts@6.0.0/es2022/lib/chart/effectScatter/EffectScatterView.mjs +0 -3
  95. package/echarts@6.0.0/es2022/lib/chart/effectScatter/install.mjs +0 -3
  96. package/echarts@6.0.0/es2022/lib/chart/funnel/FunnelSeries.mjs +0 -3
  97. package/echarts@6.0.0/es2022/lib/chart/funnel/FunnelView.mjs +0 -3
  98. package/echarts@6.0.0/es2022/lib/chart/funnel/funnelLayout.mjs +0 -3
  99. package/echarts@6.0.0/es2022/lib/chart/funnel/install.mjs +0 -3
  100. package/echarts@6.0.0/es2022/lib/chart/gauge/GaugeSeries.mjs +0 -3
  101. package/echarts@6.0.0/es2022/lib/chart/gauge/GaugeView.mjs +0 -3
  102. package/echarts@6.0.0/es2022/lib/chart/gauge/install.mjs +0 -3
  103. package/echarts@6.0.0/es2022/lib/chart/graph/GraphSeries.mjs +0 -3
  104. package/echarts@6.0.0/es2022/lib/chart/graph/GraphView.mjs +0 -3
  105. package/echarts@6.0.0/es2022/lib/chart/graph/adjustEdge.mjs +0 -3
  106. package/echarts@6.0.0/es2022/lib/chart/graph/categoryFilter.mjs +0 -3
  107. package/echarts@6.0.0/es2022/lib/chart/graph/categoryVisual.mjs +0 -3
  108. package/echarts@6.0.0/es2022/lib/chart/graph/circularLayout.mjs +0 -3
  109. package/echarts@6.0.0/es2022/lib/chart/graph/createView.mjs +0 -3
  110. package/echarts@6.0.0/es2022/lib/chart/graph/edgeVisual.mjs +0 -3
  111. package/echarts@6.0.0/es2022/lib/chart/graph/forceHelper.mjs +0 -3
  112. package/echarts@6.0.0/es2022/lib/chart/graph/forceLayout.mjs +0 -3
  113. package/echarts@6.0.0/es2022/lib/chart/graph/graphHelper.mjs +0 -3
  114. package/echarts@6.0.0/es2022/lib/chart/graph/install.mjs +0 -3
  115. package/echarts@6.0.0/es2022/lib/chart/graph/simpleLayout.mjs +0 -3
  116. package/echarts@6.0.0/es2022/lib/chart/graph/simpleLayoutHelper.mjs +0 -3
  117. package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapLayer.mjs +0 -3
  118. package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapSeries.mjs +0 -3
  119. package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapView.mjs +0 -3
  120. package/echarts@6.0.0/es2022/lib/chart/heatmap/install.mjs +0 -3
  121. package/echarts@6.0.0/es2022/lib/chart/helper/EffectLine.mjs +0 -3
  122. package/echarts@6.0.0/es2022/lib/chart/helper/EffectSymbol.mjs +0 -3
  123. package/echarts@6.0.0/es2022/lib/chart/helper/LargeLineDraw.mjs +0 -3
  124. package/echarts@6.0.0/es2022/lib/chart/helper/Line.mjs +0 -3
  125. package/echarts@6.0.0/es2022/lib/chart/helper/LineDraw.mjs +0 -3
  126. package/echarts@6.0.0/es2022/lib/chart/helper/LinePath.mjs +0 -3
  127. package/echarts@6.0.0/es2022/lib/chart/helper/Polyline.mjs +0 -3
  128. package/echarts@6.0.0/es2022/lib/chart/helper/Symbol.mjs +0 -3
  129. package/echarts@6.0.0/es2022/lib/chart/helper/SymbolDraw.mjs +0 -3
  130. package/echarts@6.0.0/es2022/lib/chart/helper/createClipPathFromCoordSys.mjs +0 -3
  131. package/echarts@6.0.0/es2022/lib/chart/helper/createRenderPlanner.mjs +0 -3
  132. package/echarts@6.0.0/es2022/lib/chart/helper/createSeriesData.mjs +0 -3
  133. package/echarts@6.0.0/es2022/lib/chart/helper/createSeriesDataSimply.mjs +0 -3
  134. package/echarts@6.0.0/es2022/lib/chart/helper/enableAriaDecalForTree.mjs +0 -3
  135. package/echarts@6.0.0/es2022/lib/chart/helper/labelHelper.mjs +0 -3
  136. package/echarts@6.0.0/es2022/lib/chart/helper/multipleGraphEdgeHelper.mjs +0 -3
  137. package/echarts@6.0.0/es2022/lib/chart/helper/treeHelper.mjs +0 -3
  138. package/echarts@6.0.0/es2022/lib/chart/helper/whiskerBoxCommon.mjs +0 -3
  139. package/echarts@6.0.0/es2022/lib/chart/line/LineSeries.mjs +0 -3
  140. package/echarts@6.0.0/es2022/lib/chart/line/LineView.mjs +0 -3
  141. package/echarts@6.0.0/es2022/lib/chart/line/helper.mjs +0 -3
  142. package/echarts@6.0.0/es2022/lib/chart/line/install.mjs +0 -3
  143. package/echarts@6.0.0/es2022/lib/chart/line/lineAnimationDiff.mjs +0 -3
  144. package/echarts@6.0.0/es2022/lib/chart/line/poly.mjs +0 -3
  145. package/echarts@6.0.0/es2022/lib/chart/lines/LinesSeries.mjs +0 -3
  146. package/echarts@6.0.0/es2022/lib/chart/lines/LinesView.mjs +0 -3
  147. package/echarts@6.0.0/es2022/lib/chart/lines/install.mjs +0 -3
  148. package/echarts@6.0.0/es2022/lib/chart/lines/linesLayout.mjs +0 -3
  149. package/echarts@6.0.0/es2022/lib/chart/lines/linesVisual.mjs +0 -3
  150. package/echarts@6.0.0/es2022/lib/chart/map/MapSeries.mjs +0 -3
  151. package/echarts@6.0.0/es2022/lib/chart/map/MapView.mjs +0 -3
  152. package/echarts@6.0.0/es2022/lib/chart/map/install.mjs +0 -3
  153. package/echarts@6.0.0/es2022/lib/chart/map/mapDataStatistic.mjs +0 -3
  154. package/echarts@6.0.0/es2022/lib/chart/map/mapSymbolLayout.mjs +0 -3
  155. package/echarts@6.0.0/es2022/lib/chart/parallel/ParallelSeries.mjs +0 -3
  156. package/echarts@6.0.0/es2022/lib/chart/parallel/ParallelView.mjs +0 -3
  157. package/echarts@6.0.0/es2022/lib/chart/parallel/install.mjs +0 -3
  158. package/echarts@6.0.0/es2022/lib/chart/parallel/parallelVisual.mjs +0 -3
  159. package/echarts@6.0.0/es2022/lib/chart/pie/PieSeries.mjs +0 -3
  160. package/echarts@6.0.0/es2022/lib/chart/pie/PieView.mjs +0 -3
  161. package/echarts@6.0.0/es2022/lib/chart/pie/install.mjs +0 -3
  162. package/echarts@6.0.0/es2022/lib/chart/pie/pieLayout.mjs +0 -3
  163. package/echarts@6.0.0/es2022/lib/chart/radar/RadarSeries.mjs +0 -3
  164. package/echarts@6.0.0/es2022/lib/chart/radar/RadarView.mjs +0 -3
  165. package/echarts@6.0.0/es2022/lib/chart/radar/backwardCompat.mjs +0 -3
  166. package/echarts@6.0.0/es2022/lib/chart/radar/install.mjs +0 -3
  167. package/echarts@6.0.0/es2022/lib/chart/radar/radarLayout.mjs +0 -3
  168. package/echarts@6.0.0/es2022/lib/chart/sankey/SankeySeries.mjs +0 -3
  169. package/echarts@6.0.0/es2022/lib/chart/sankey/SankeyView.mjs +0 -3
  170. package/echarts@6.0.0/es2022/lib/chart/sankey/install.mjs +0 -3
  171. package/echarts@6.0.0/es2022/lib/chart/sankey/sankeyLayout.mjs +0 -3
  172. package/echarts@6.0.0/es2022/lib/chart/sankey/sankeyVisual.mjs +0 -3
  173. package/echarts@6.0.0/es2022/lib/chart/scatter/ScatterSeries.mjs +0 -3
  174. package/echarts@6.0.0/es2022/lib/chart/scatter/install.mjs +0 -3
  175. package/echarts@6.0.0/es2022/lib/chart/scatter/jitterLayout.mjs +0 -3
  176. package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstPiece.mjs +0 -3
  177. package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstSeries.mjs +0 -3
  178. package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstView.mjs +0 -3
  179. package/echarts@6.0.0/es2022/lib/chart/sunburst/install.mjs +0 -3
  180. package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstAction.mjs +0 -3
  181. package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstLayout.mjs +0 -3
  182. package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstVisual.mjs +0 -3
  183. package/echarts@6.0.0/es2022/lib/chart/themeRiver/ThemeRiverSeries.mjs +0 -3
  184. package/echarts@6.0.0/es2022/lib/chart/themeRiver/ThemeRiverView.mjs +0 -3
  185. package/echarts@6.0.0/es2022/lib/chart/themeRiver/install.mjs +0 -3
  186. package/echarts@6.0.0/es2022/lib/chart/themeRiver/themeRiverLayout.mjs +0 -3
  187. package/echarts@6.0.0/es2022/lib/chart/tree/TreeSeries.mjs +0 -3
  188. package/echarts@6.0.0/es2022/lib/chart/tree/TreeView.mjs +0 -3
  189. package/echarts@6.0.0/es2022/lib/chart/tree/install.mjs +0 -3
  190. package/echarts@6.0.0/es2022/lib/chart/tree/layoutHelper.mjs +0 -3
  191. package/echarts@6.0.0/es2022/lib/chart/tree/treeAction.mjs +0 -3
  192. package/echarts@6.0.0/es2022/lib/chart/tree/treeVisual.mjs +0 -3
  193. package/echarts@6.0.0/es2022/lib/chart/treemap/Breadcrumb.mjs +0 -3
  194. package/echarts@6.0.0/es2022/lib/chart/treemap/TreemapSeries.mjs +0 -3
  195. package/echarts@6.0.0/es2022/lib/chart/treemap/TreemapView.mjs +0 -3
  196. package/echarts@6.0.0/es2022/lib/chart/treemap/install.mjs +0 -3
  197. package/echarts@6.0.0/es2022/lib/chart/treemap/treemapLayout.mjs +0 -3
  198. package/echarts@6.0.0/es2022/lib/chart/treemap/treemapVisual.mjs +0 -3
  199. package/echarts@6.0.0/es2022/lib/component/aria/install.mjs +0 -3
  200. package/echarts@6.0.0/es2022/lib/component/aria/preprocessor.mjs +0 -3
  201. package/echarts@6.0.0/es2022/lib/component/axis/AngleAxisView.mjs +0 -3
  202. package/echarts@6.0.0/es2022/lib/component/axis/AxisBuilder.mjs +0 -3
  203. package/echarts@6.0.0/es2022/lib/component/axis/CartesianAxisView.mjs +0 -3
  204. package/echarts@6.0.0/es2022/lib/component/axis/ParallelAxisView.mjs +0 -3
  205. package/echarts@6.0.0/es2022/lib/component/axis/RadiusAxisView.mjs +0 -3
  206. package/echarts@6.0.0/es2022/lib/component/axis/SingleAxisView.mjs +0 -3
  207. package/echarts@6.0.0/es2022/lib/component/axis/axisAction.mjs +0 -3
  208. package/echarts@6.0.0/es2022/lib/component/axis/axisBreakHelper.mjs +0 -3
  209. package/echarts@6.0.0/es2022/lib/component/axis/axisBreakHelperImpl.mjs +0 -3
  210. package/echarts@6.0.0/es2022/lib/component/axis/axisSplitHelper.mjs +0 -3
  211. package/echarts@6.0.0/es2022/lib/component/axis/installBreak.mjs +0 -3
  212. package/echarts@6.0.0/es2022/lib/component/axis/parallelAxisAction.mjs +0 -3
  213. package/echarts@6.0.0/es2022/lib/component/axisPointer/AxisPointerModel.mjs +0 -3
  214. package/echarts@6.0.0/es2022/lib/component/axisPointer/AxisPointerView.mjs +0 -3
  215. package/echarts@6.0.0/es2022/lib/component/axisPointer/BaseAxisPointer.mjs +0 -3
  216. package/echarts@6.0.0/es2022/lib/component/axisPointer/CartesianAxisPointer.mjs +0 -3
  217. package/echarts@6.0.0/es2022/lib/component/axisPointer/PolarAxisPointer.mjs +0 -3
  218. package/echarts@6.0.0/es2022/lib/component/axisPointer/SingleAxisPointer.mjs +0 -3
  219. package/echarts@6.0.0/es2022/lib/component/axisPointer/axisTrigger.mjs +0 -3
  220. package/echarts@6.0.0/es2022/lib/component/axisPointer/findPointFromSeries.mjs +0 -3
  221. package/echarts@6.0.0/es2022/lib/component/axisPointer/globalListener.mjs +0 -3
  222. package/echarts@6.0.0/es2022/lib/component/axisPointer/install.mjs +0 -3
  223. package/echarts@6.0.0/es2022/lib/component/axisPointer/modelHelper.mjs +0 -3
  224. package/echarts@6.0.0/es2022/lib/component/axisPointer/viewHelper.mjs +0 -3
  225. package/echarts@6.0.0/es2022/lib/component/brush/BrushModel.mjs +0 -3
  226. package/echarts@6.0.0/es2022/lib/component/brush/BrushView.mjs +0 -3
  227. package/echarts@6.0.0/es2022/lib/component/brush/install.mjs +0 -3
  228. package/echarts@6.0.0/es2022/lib/component/brush/preprocessor.mjs +0 -3
  229. package/echarts@6.0.0/es2022/lib/component/brush/selector.mjs +0 -3
  230. package/echarts@6.0.0/es2022/lib/component/brush/visualEncoding.mjs +0 -3
  231. package/echarts@6.0.0/es2022/lib/component/calendar/install.mjs +0 -3
  232. package/echarts@6.0.0/es2022/lib/component/dataZoom/DataZoomModel.mjs +0 -3
  233. package/echarts@6.0.0/es2022/lib/component/dataZoom/InsideZoomModel.mjs +0 -3
  234. package/echarts@6.0.0/es2022/lib/component/dataZoom/InsideZoomView.mjs +0 -3
  235. package/echarts@6.0.0/es2022/lib/component/dataZoom/SliderZoomModel.mjs +0 -3
  236. package/echarts@6.0.0/es2022/lib/component/dataZoom/SliderZoomView.mjs +0 -3
  237. package/echarts@6.0.0/es2022/lib/component/dataZoom/dataZoomAction.mjs +0 -3
  238. package/echarts@6.0.0/es2022/lib/component/dataZoom/dataZoomProcessor.mjs +0 -3
  239. package/echarts@6.0.0/es2022/lib/component/dataZoom/helper.mjs +0 -3
  240. package/echarts@6.0.0/es2022/lib/component/dataZoom/history.mjs +0 -3
  241. package/echarts@6.0.0/es2022/lib/component/dataZoom/install.mjs +0 -3
  242. package/echarts@6.0.0/es2022/lib/component/dataZoom/installCommon.mjs +0 -3
  243. package/echarts@6.0.0/es2022/lib/component/dataZoom/installDataZoomInside.mjs +0 -3
  244. package/echarts@6.0.0/es2022/lib/component/dataZoom/installDataZoomSlider.mjs +0 -3
  245. package/echarts@6.0.0/es2022/lib/component/dataZoom/roams.mjs +0 -3
  246. package/echarts@6.0.0/es2022/lib/component/dataset/install.mjs +0 -3
  247. package/echarts@6.0.0/es2022/lib/component/geo/GeoView.mjs +0 -3
  248. package/echarts@6.0.0/es2022/lib/component/geo/install.mjs +0 -3
  249. package/echarts@6.0.0/es2022/lib/component/graphic/GraphicModel.mjs +0 -3
  250. package/echarts@6.0.0/es2022/lib/component/graphic/GraphicView.mjs +0 -3
  251. package/echarts@6.0.0/es2022/lib/component/graphic/install.mjs +0 -3
  252. package/echarts@6.0.0/es2022/lib/component/grid/install.mjs +0 -3
  253. package/echarts@6.0.0/es2022/lib/component/grid/installSimple.mjs +0 -3
  254. package/echarts@6.0.0/es2022/lib/component/helper/BrushTargetManager.mjs +0 -3
  255. package/echarts@6.0.0/es2022/lib/component/helper/MapDraw.mjs +0 -3
  256. package/echarts@6.0.0/es2022/lib/component/helper/RoamController.mjs +0 -3
  257. package/echarts@6.0.0/es2022/lib/component/helper/brushHelper.mjs +0 -3
  258. package/echarts@6.0.0/es2022/lib/component/helper/cursorHelper.mjs +0 -3
  259. package/echarts@6.0.0/es2022/lib/component/helper/interactionMutex.mjs +0 -3
  260. package/echarts@6.0.0/es2022/lib/component/helper/listComponent.mjs +0 -3
  261. package/echarts@6.0.0/es2022/lib/component/helper/sliderMove.mjs +0 -3
  262. package/echarts@6.0.0/es2022/lib/component/helper/thumbnailBridge.mjs +0 -3
  263. package/echarts@6.0.0/es2022/lib/component/legend/LegendModel.mjs +0 -3
  264. package/echarts@6.0.0/es2022/lib/component/legend/LegendView.mjs +0 -4
  265. package/echarts@6.0.0/es2022/lib/component/legend/ScrollableLegendModel.mjs +0 -3
  266. package/echarts@6.0.0/es2022/lib/component/legend/ScrollableLegendView.mjs +0 -3
  267. package/echarts@6.0.0/es2022/lib/component/legend/install.mjs +0 -3
  268. package/echarts@6.0.0/es2022/lib/component/legend/installLegendPlain.mjs +0 -3
  269. package/echarts@6.0.0/es2022/lib/component/legend/installLegendScroll.mjs +0 -3
  270. package/echarts@6.0.0/es2022/lib/component/legend/legendAction.mjs +0 -4
  271. package/echarts@6.0.0/es2022/lib/component/legend/legendFilter.mjs +0 -3
  272. package/echarts@6.0.0/es2022/lib/component/legend/scrollableLegendAction.mjs +0 -3
  273. package/echarts@6.0.0/es2022/lib/component/marker/MarkAreaModel.mjs +0 -3
  274. package/echarts@6.0.0/es2022/lib/component/marker/MarkAreaView.mjs +0 -3
  275. package/echarts@6.0.0/es2022/lib/component/marker/MarkLineModel.mjs +0 -3
  276. package/echarts@6.0.0/es2022/lib/component/marker/MarkLineView.mjs +0 -3
  277. package/echarts@6.0.0/es2022/lib/component/marker/MarkPointModel.mjs +0 -3
  278. package/echarts@6.0.0/es2022/lib/component/marker/MarkPointView.mjs +0 -3
  279. package/echarts@6.0.0/es2022/lib/component/marker/MarkerModel.mjs +0 -3
  280. package/echarts@6.0.0/es2022/lib/component/marker/MarkerView.mjs +0 -3
  281. package/echarts@6.0.0/es2022/lib/component/marker/checkMarkerInSeries.mjs +0 -3
  282. package/echarts@6.0.0/es2022/lib/component/marker/installMarkArea.mjs +0 -3
  283. package/echarts@6.0.0/es2022/lib/component/marker/installMarkLine.mjs +0 -3
  284. package/echarts@6.0.0/es2022/lib/component/marker/installMarkPoint.mjs +0 -3
  285. package/echarts@6.0.0/es2022/lib/component/marker/markerHelper.mjs +0 -3
  286. package/echarts@6.0.0/es2022/lib/component/matrix/MatrixView.mjs +0 -3
  287. package/echarts@6.0.0/es2022/lib/component/matrix/install.mjs +0 -3
  288. package/echarts@6.0.0/es2022/lib/component/parallel/ParallelView.mjs +0 -3
  289. package/echarts@6.0.0/es2022/lib/component/parallel/install.mjs +0 -3
  290. package/echarts@6.0.0/es2022/lib/component/polar/install.mjs +0 -3
  291. package/echarts@6.0.0/es2022/lib/component/radar/RadarView.mjs +0 -3
  292. package/echarts@6.0.0/es2022/lib/component/radar/install.mjs +0 -3
  293. package/echarts@6.0.0/es2022/lib/component/singleAxis/install.mjs +0 -3
  294. package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailBridgeImpl.mjs +0 -3
  295. package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailModel.mjs +0 -3
  296. package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailView.mjs +0 -3
  297. package/echarts@6.0.0/es2022/lib/component/thumbnail/install.mjs +0 -3
  298. package/echarts@6.0.0/es2022/lib/component/timeline/SliderTimelineModel.mjs +0 -3
  299. package/echarts@6.0.0/es2022/lib/component/timeline/SliderTimelineView.mjs +0 -3
  300. package/echarts@6.0.0/es2022/lib/component/timeline/TimelineAxis.mjs +0 -3
  301. package/echarts@6.0.0/es2022/lib/component/timeline/TimelineModel.mjs +0 -3
  302. package/echarts@6.0.0/es2022/lib/component/timeline/TimelineView.mjs +0 -3
  303. package/echarts@6.0.0/es2022/lib/component/timeline/install.mjs +0 -3
  304. package/echarts@6.0.0/es2022/lib/component/timeline/preprocessor.mjs +0 -3
  305. package/echarts@6.0.0/es2022/lib/component/timeline/timelineAction.mjs +0 -3
  306. package/echarts@6.0.0/es2022/lib/component/title/install.mjs +0 -3
  307. package/echarts@6.0.0/es2022/lib/component/toolbox/ToolboxModel.mjs +0 -3
  308. package/echarts@6.0.0/es2022/lib/component/toolbox/ToolboxView.mjs +0 -3
  309. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/Brush.mjs +0 -3
  310. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/DataView.mjs +0 -20
  311. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/DataZoom.mjs +0 -3
  312. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/MagicType.mjs +0 -3
  313. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/Restore.mjs +0 -3
  314. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/SaveAsImage.mjs +0 -3
  315. package/echarts@6.0.0/es2022/lib/component/toolbox/featureManager.mjs +0 -3
  316. package/echarts@6.0.0/es2022/lib/component/toolbox/install.mjs +0 -3
  317. package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipHTMLContent.mjs +0 -3
  318. package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipRichContent.mjs +0 -3
  319. package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipView.mjs +0 -5
  320. package/echarts@6.0.0/es2022/lib/component/tooltip/helper.mjs +0 -3
  321. package/echarts@6.0.0/es2022/lib/component/tooltip/install.mjs +0 -3
  322. package/echarts@6.0.0/es2022/lib/component/tooltip/seriesFormatTooltip.mjs +0 -3
  323. package/echarts@6.0.0/es2022/lib/component/tooltip/tooltipMarkup.mjs +0 -9
  324. package/echarts@6.0.0/es2022/lib/component/transform/install.mjs +0 -3
  325. package/echarts@6.0.0/es2022/lib/component/transform/sortTransform.mjs +0 -3
  326. package/echarts@6.0.0/es2022/lib/component/visualMap/ContinuousView.mjs +0 -3
  327. package/echarts@6.0.0/es2022/lib/component/visualMap/PiecewiseModel.mjs +0 -3
  328. package/echarts@6.0.0/es2022/lib/component/visualMap/PiecewiseView.mjs +0 -3
  329. package/echarts@6.0.0/es2022/lib/component/visualMap/VisualMapModel.mjs +0 -3
  330. package/echarts@6.0.0/es2022/lib/component/visualMap/VisualMapView.mjs +0 -3
  331. package/echarts@6.0.0/es2022/lib/component/visualMap/helper.mjs +0 -3
  332. package/echarts@6.0.0/es2022/lib/component/visualMap/install.mjs +0 -3
  333. package/echarts@6.0.0/es2022/lib/component/visualMap/installCommon.mjs +0 -3
  334. package/echarts@6.0.0/es2022/lib/component/visualMap/installVisualMapContinuous.mjs +0 -3
  335. package/echarts@6.0.0/es2022/lib/component/visualMap/installVisualMapPiecewise.mjs +0 -3
  336. package/echarts@6.0.0/es2022/lib/component/visualMap/preprocessor.mjs +0 -3
  337. package/echarts@6.0.0/es2022/lib/component/visualMap/visualEncoding.mjs +0 -3
  338. package/echarts@6.0.0/es2022/lib/component/visualMap/visualMapAction.mjs +0 -3
  339. package/echarts@6.0.0/es2022/lib/coord/Axis.mjs +0 -3
  340. package/echarts@6.0.0/es2022/lib/coord/CoordinateSystem.mjs +0 -3
  341. package/echarts@6.0.0/es2022/lib/coord/View.mjs +0 -3
  342. package/echarts@6.0.0/es2022/lib/coord/axisAlignTicks.mjs +0 -3
  343. package/echarts@6.0.0/es2022/lib/coord/axisCommonTypes.mjs +0 -3
  344. package/echarts@6.0.0/es2022/lib/coord/axisHelper.mjs +0 -3
  345. package/echarts@6.0.0/es2022/lib/coord/axisModelCreator.mjs +0 -3
  346. package/echarts@6.0.0/es2022/lib/coord/axisTickLabelBuilder.mjs +0 -3
  347. package/echarts@6.0.0/es2022/lib/coord/calendar/CalendarModel.mjs +0 -3
  348. package/echarts@6.0.0/es2022/lib/coord/calendar/prepareCustom.mjs +0 -3
  349. package/echarts@6.0.0/es2022/lib/coord/cartesian/Axis2D.mjs +0 -3
  350. package/echarts@6.0.0/es2022/lib/coord/cartesian/AxisModel.mjs +0 -3
  351. package/echarts@6.0.0/es2022/lib/coord/cartesian/Cartesian.mjs +0 -3
  352. package/echarts@6.0.0/es2022/lib/coord/cartesian/Cartesian2D.mjs +0 -3
  353. package/echarts@6.0.0/es2022/lib/coord/cartesian/Grid.mjs +0 -3
  354. package/echarts@6.0.0/es2022/lib/coord/cartesian/GridModel.mjs +0 -3
  355. package/echarts@6.0.0/es2022/lib/coord/cartesian/cartesianAxisHelper.mjs +0 -3
  356. package/echarts@6.0.0/es2022/lib/coord/cartesian/legacyContainLabel.mjs +0 -3
  357. package/echarts@6.0.0/es2022/lib/coord/cartesian/prepareCustom.mjs +0 -3
  358. package/echarts@6.0.0/es2022/lib/coord/geo/Geo.mjs +0 -3
  359. package/echarts@6.0.0/es2022/lib/coord/geo/GeoJSONResource.mjs +0 -4
  360. package/echarts@6.0.0/es2022/lib/coord/geo/GeoModel.mjs +0 -3
  361. package/echarts@6.0.0/es2022/lib/coord/geo/GeoSVGResource.mjs +0 -4
  362. package/echarts@6.0.0/es2022/lib/coord/geo/Region.mjs +0 -3
  363. package/echarts@6.0.0/es2022/lib/coord/geo/fix/diaoyuIsland.mjs +0 -3
  364. package/echarts@6.0.0/es2022/lib/coord/geo/fix/nanhai.mjs +0 -3
  365. package/echarts@6.0.0/es2022/lib/coord/geo/fix/textCoord.mjs +0 -3
  366. package/echarts@6.0.0/es2022/lib/coord/geo/geoCreator.mjs +0 -3
  367. package/echarts@6.0.0/es2022/lib/coord/geo/geoSourceManager.mjs +0 -3
  368. package/echarts@6.0.0/es2022/lib/coord/geo/parseGeoJson.mjs +0 -3
  369. package/echarts@6.0.0/es2022/lib/coord/geo/prepareCustom.mjs +0 -3
  370. package/echarts@6.0.0/es2022/lib/coord/matrix/Matrix.mjs +0 -3
  371. package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixBodyCorner.mjs +0 -3
  372. package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixDim.mjs +0 -3
  373. package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixModel.mjs +0 -3
  374. package/echarts@6.0.0/es2022/lib/coord/matrix/matrixCoordHelper.mjs +0 -3
  375. package/echarts@6.0.0/es2022/lib/coord/parallel/AxisModel.mjs +0 -3
  376. package/echarts@6.0.0/es2022/lib/coord/parallel/Parallel.mjs +0 -3
  377. package/echarts@6.0.0/es2022/lib/coord/parallel/ParallelModel.mjs +0 -3
  378. package/echarts@6.0.0/es2022/lib/coord/parallel/parallelCreator.mjs +0 -3
  379. package/echarts@6.0.0/es2022/lib/coord/parallel/parallelPreprocessor.mjs +0 -3
  380. package/echarts@6.0.0/es2022/lib/coord/polar/AngleAxis.mjs +0 -3
  381. package/echarts@6.0.0/es2022/lib/coord/polar/AxisModel.mjs +0 -3
  382. package/echarts@6.0.0/es2022/lib/coord/polar/Polar.mjs +0 -3
  383. package/echarts@6.0.0/es2022/lib/coord/polar/PolarModel.mjs +0 -3
  384. package/echarts@6.0.0/es2022/lib/coord/polar/RadiusAxis.mjs +0 -3
  385. package/echarts@6.0.0/es2022/lib/coord/polar/polarCreator.mjs +0 -3
  386. package/echarts@6.0.0/es2022/lib/coord/polar/prepareCustom.mjs +0 -3
  387. package/echarts@6.0.0/es2022/lib/coord/radar/Radar.mjs +0 -3
  388. package/echarts@6.0.0/es2022/lib/coord/radar/RadarModel.mjs +0 -3
  389. package/echarts@6.0.0/es2022/lib/coord/scaleRawExtentInfo.mjs +0 -3
  390. package/echarts@6.0.0/es2022/lib/coord/single/AxisModel.mjs +0 -3
  391. package/echarts@6.0.0/es2022/lib/coord/single/Single.mjs +0 -3
  392. package/echarts@6.0.0/es2022/lib/coord/single/SingleAxis.mjs +0 -3
  393. package/echarts@6.0.0/es2022/lib/coord/single/prepareCustom.mjs +0 -3
  394. package/echarts@6.0.0/es2022/lib/coord/single/singleAxisHelper.mjs +0 -3
  395. package/echarts@6.0.0/es2022/lib/coord/single/singleCreator.mjs +0 -3
  396. package/echarts@6.0.0/es2022/lib/core/CoordinateSystem.mjs +0 -3
  397. package/echarts@6.0.0/es2022/lib/core/ExtensionAPI.mjs +0 -3
  398. package/echarts@6.0.0/es2022/lib/core/Scheduler.mjs +0 -3
  399. package/echarts@6.0.0/es2022/lib/core/echarts.mjs +0 -3
  400. package/echarts@6.0.0/es2022/lib/core/impl.mjs +0 -3
  401. package/echarts@6.0.0/es2022/lib/core/lifecycle.mjs +0 -3
  402. package/echarts@6.0.0/es2022/lib/core/locale.mjs +0 -3
  403. package/echarts@6.0.0/es2022/lib/core/task.mjs +0 -3
  404. package/echarts@6.0.0/es2022/lib/data/DataDiffer.mjs +0 -3
  405. package/echarts@6.0.0/es2022/lib/data/DataStore.mjs +0 -3
  406. package/echarts@6.0.0/es2022/lib/data/OrdinalMeta.mjs +0 -3
  407. package/echarts@6.0.0/es2022/lib/data/SeriesData.mjs +0 -3
  408. package/echarts@6.0.0/es2022/lib/data/SeriesDimensionDefine.mjs +0 -3
  409. package/echarts@6.0.0/es2022/lib/data/Source.mjs +0 -3
  410. package/echarts@6.0.0/es2022/lib/data/helper/SeriesDataSchema.mjs +0 -3
  411. package/echarts@6.0.0/es2022/lib/data/helper/createDimensions.mjs +0 -3
  412. package/echarts@6.0.0/es2022/lib/data/helper/dataProvider.mjs +0 -3
  413. package/echarts@6.0.0/es2022/lib/data/helper/dataStackHelper.mjs +0 -3
  414. package/echarts@6.0.0/es2022/lib/data/helper/dataValueHelper.mjs +0 -3
  415. package/echarts@6.0.0/es2022/lib/data/helper/dimensionHelper.mjs +0 -3
  416. package/echarts@6.0.0/es2022/lib/data/helper/sourceHelper.mjs +0 -3
  417. package/echarts@6.0.0/es2022/lib/data/helper/sourceManager.mjs +0 -3
  418. package/echarts@6.0.0/es2022/lib/data/helper/transform.mjs +0 -3
  419. package/echarts@6.0.0/es2022/lib/export/api/format.mjs +0 -3
  420. package/echarts@6.0.0/es2022/lib/export/api/graphic.mjs +0 -3
  421. package/echarts@6.0.0/es2022/lib/export/api/helper.mjs +0 -3
  422. package/echarts@6.0.0/es2022/lib/export/api/number.mjs +0 -3
  423. package/echarts@6.0.0/es2022/lib/export/api/time.mjs +0 -3
  424. package/echarts@6.0.0/es2022/lib/export/api/util.mjs +0 -3
  425. package/echarts@6.0.0/es2022/lib/export/api.mjs +0 -3
  426. package/echarts@6.0.0/es2022/lib/export/charts.mjs +0 -3
  427. package/echarts@6.0.0/es2022/lib/export/components.mjs +0 -3
  428. package/echarts@6.0.0/es2022/lib/export/core.mjs +0 -3
  429. package/echarts@6.0.0/es2022/lib/export/features.mjs +0 -3
  430. package/echarts@6.0.0/es2022/lib/export/renderers.mjs +0 -3
  431. package/echarts@6.0.0/es2022/lib/extension.mjs +0 -3
  432. package/echarts@6.0.0/es2022/lib/i18n/langEN.mjs +0 -3
  433. package/echarts@6.0.0/es2022/lib/i18n/langZH.mjs +0 -3
  434. package/echarts@6.0.0/es2022/lib/label/LabelManager.mjs +0 -3
  435. package/echarts@6.0.0/es2022/lib/label/installLabelLayout.mjs +0 -3
  436. package/echarts@6.0.0/es2022/lib/label/labelGuideHelper.mjs +0 -3
  437. package/echarts@6.0.0/es2022/lib/label/labelLayoutHelper.mjs +0 -3
  438. package/echarts@6.0.0/es2022/lib/label/labelStyle.mjs +0 -3
  439. package/echarts@6.0.0/es2022/lib/label/sectorLabel.mjs +0 -3
  440. package/echarts@6.0.0/es2022/lib/layout/barGrid.mjs +0 -3
  441. package/echarts@6.0.0/es2022/lib/layout/barPolar.mjs +0 -3
  442. package/echarts@6.0.0/es2022/lib/layout/points.mjs +0 -3
  443. package/echarts@6.0.0/es2022/lib/legacy/dataSelectAction.mjs +0 -3
  444. package/echarts@6.0.0/es2022/lib/loading/default.mjs +0 -3
  445. package/echarts@6.0.0/es2022/lib/model/Component.mjs +0 -3
  446. package/echarts@6.0.0/es2022/lib/model/Global.mjs +0 -3
  447. package/echarts@6.0.0/es2022/lib/model/Model.mjs +0 -3
  448. package/echarts@6.0.0/es2022/lib/model/OptionManager.mjs +0 -3
  449. package/echarts@6.0.0/es2022/lib/model/Series.mjs +0 -3
  450. package/echarts@6.0.0/es2022/lib/model/globalDefault.mjs +0 -3
  451. package/echarts@6.0.0/es2022/lib/model/internalComponentCreator.mjs +0 -3
  452. package/echarts@6.0.0/es2022/lib/model/mixin/areaStyle.mjs +0 -3
  453. package/echarts@6.0.0/es2022/lib/model/mixin/dataFormat.mjs +0 -3
  454. package/echarts@6.0.0/es2022/lib/model/mixin/itemStyle.mjs +0 -3
  455. package/echarts@6.0.0/es2022/lib/model/mixin/lineStyle.mjs +0 -3
  456. package/echarts@6.0.0/es2022/lib/model/mixin/makeStyleMapper.mjs +0 -3
  457. package/echarts@6.0.0/es2022/lib/model/mixin/palette.mjs +0 -3
  458. package/echarts@6.0.0/es2022/lib/model/mixin/textStyle.mjs +0 -3
  459. package/echarts@6.0.0/es2022/lib/model/referHelper.mjs +0 -3
  460. package/echarts@6.0.0/es2022/lib/preprocessor/backwardCompat.mjs +0 -3
  461. package/echarts@6.0.0/es2022/lib/preprocessor/helper/compatStyle.mjs +0 -3
  462. package/echarts@6.0.0/es2022/lib/processor/dataFilter.mjs +0 -3
  463. package/echarts@6.0.0/es2022/lib/processor/dataSample.mjs +0 -3
  464. package/echarts@6.0.0/es2022/lib/processor/negativeDataFilter.mjs +0 -3
  465. package/echarts@6.0.0/es2022/lib/renderer/installCanvasRenderer.mjs +0 -3
  466. package/echarts@6.0.0/es2022/lib/renderer/installSVGRenderer.mjs +0 -3
  467. package/echarts@6.0.0/es2022/lib/scale/Log.mjs +0 -3
  468. package/echarts@6.0.0/es2022/lib/scale/Ordinal.mjs +0 -3
  469. package/echarts@6.0.0/es2022/lib/scale/Scale.mjs +0 -3
  470. package/echarts@6.0.0/es2022/lib/scale/Time.mjs +0 -3
  471. package/echarts@6.0.0/es2022/lib/scale/break.mjs +0 -3
  472. package/echarts@6.0.0/es2022/lib/scale/breakImpl.mjs +0 -3
  473. package/echarts@6.0.0/es2022/lib/scale/helper.mjs +0 -3
  474. package/echarts@6.0.0/es2022/lib/theme/dark.mjs +0 -3
  475. package/echarts@6.0.0/es2022/lib/util/ECEventProcessor.mjs +0 -3
  476. package/echarts@6.0.0/es2022/lib/util/animation.mjs +0 -3
  477. package/echarts@6.0.0/es2022/lib/util/clazz.mjs +0 -3
  478. package/echarts@6.0.0/es2022/lib/util/component.mjs +0 -3
  479. package/echarts@6.0.0/es2022/lib/util/decal.mjs +0 -3
  480. package/echarts@6.0.0/es2022/lib/util/event.mjs +0 -3
  481. package/echarts@6.0.0/es2022/lib/util/graphic.mjs +0 -3
  482. package/echarts@6.0.0/es2022/lib/util/jitter.mjs +0 -3
  483. package/echarts@6.0.0/es2022/lib/util/layout.mjs +0 -3
  484. package/echarts@6.0.0/es2022/lib/util/model.mjs +0 -3
  485. package/echarts@6.0.0/es2022/lib/util/number.mjs +0 -3
  486. package/echarts@6.0.0/es2022/lib/util/states.mjs +0 -3
  487. package/echarts@6.0.0/es2022/lib/util/styleCompat.mjs +0 -3
  488. package/echarts@6.0.0/es2022/lib/util/symbol.mjs +0 -3
  489. package/echarts@6.0.0/es2022/lib/util/time.mjs +0 -3
  490. package/echarts@6.0.0/es2022/lib/util/types.mjs +0 -3
  491. package/echarts@6.0.0/es2022/lib/util/vendor.mjs +0 -3
  492. package/echarts@6.0.0/es2022/lib/view/Chart.mjs +0 -3
  493. package/echarts@6.0.0/es2022/lib/view/Component.mjs +0 -3
  494. package/echarts@6.0.0/es2022/lib/visual/VisualMapping.mjs +0 -3
  495. package/echarts@6.0.0/es2022/lib/visual/aria.mjs +0 -3
  496. package/echarts@6.0.0/es2022/lib/visual/decal.mjs +0 -3
  497. package/echarts@6.0.0/es2022/lib/visual/helper.mjs +0 -3
  498. package/echarts@6.0.0/es2022/lib/visual/style.mjs +0 -3
  499. package/echarts@6.0.0/es2022/lib/visual/tokens.mjs +0 -3
  500. package/echarts@6.0.0/es2022/lib/visual/visualDefault.mjs +0 -3
  501. package/echarts@6.0.0/es2022/lib/visual/visualSolution.mjs +0 -3
  502. package/eventemitter3@^5.0.1 +0 -3
  503. package/gl-matrix@^3.3.0 +0 -2
  504. package/gl-matrix@^3.4.3 +0 -2
  505. package/runtime-core.mjs +0 -29
  506. package/zrender@6.0.0/es2022/lib/Element.mjs +0 -3
  507. package/zrender@6.0.0/es2022/lib/Handler.mjs +0 -3
  508. package/zrender@6.0.0/es2022/lib/Storage.mjs +0 -3
  509. package/zrender@6.0.0/es2022/lib/animation/Animation.mjs +0 -3
  510. package/zrender@6.0.0/es2022/lib/animation/Animator.mjs +0 -3
  511. package/zrender@6.0.0/es2022/lib/animation/cubicEasing.mjs +0 -3
  512. package/zrender@6.0.0/es2022/lib/animation/easing.mjs +0 -3
  513. package/zrender@6.0.0/es2022/lib/animation/requestAnimationFrame.mjs +0 -3
  514. package/zrender@6.0.0/es2022/lib/canvas/dashStyle.mjs +0 -3
  515. package/zrender@6.0.0/es2022/lib/canvas/graphic.mjs +0 -3
  516. package/zrender@6.0.0/es2022/lib/contain/line.mjs +0 -3
  517. package/zrender@6.0.0/es2022/lib/contain/polygon.mjs +0 -3
  518. package/zrender@6.0.0/es2022/lib/contain/quadratic.mjs +0 -3
  519. package/zrender@6.0.0/es2022/lib/contain/text.mjs +0 -4
  520. package/zrender@6.0.0/es2022/lib/contain/util.mjs +0 -3
  521. package/zrender@6.0.0/es2022/lib/contain/windingLine.mjs +0 -3
  522. package/zrender@6.0.0/es2022/lib/core/BoundingRect.mjs +0 -3
  523. package/zrender@6.0.0/es2022/lib/core/Eventful.mjs +0 -3
  524. package/zrender@6.0.0/es2022/lib/core/GestureMgr.mjs +0 -3
  525. package/zrender@6.0.0/es2022/lib/core/LRU.mjs +0 -3
  526. package/zrender@6.0.0/es2022/lib/core/PathProxy.mjs +0 -3
  527. package/zrender@6.0.0/es2022/lib/core/Point.mjs +0 -3
  528. package/zrender@6.0.0/es2022/lib/core/Transformable.mjs +0 -3
  529. package/zrender@6.0.0/es2022/lib/core/WeakMap.mjs +0 -3
  530. package/zrender@6.0.0/es2022/lib/core/bbox.mjs +0 -3
  531. package/zrender@6.0.0/es2022/lib/core/curve.mjs +0 -3
  532. package/zrender@6.0.0/es2022/lib/core/dom.mjs +0 -3
  533. package/zrender@6.0.0/es2022/lib/core/env.mjs +0 -3
  534. package/zrender@6.0.0/es2022/lib/core/event.mjs +0 -3
  535. package/zrender@6.0.0/es2022/lib/core/fourPointsTransform.mjs +0 -3
  536. package/zrender@6.0.0/es2022/lib/core/matrix.mjs +0 -3
  537. package/zrender@6.0.0/es2022/lib/core/platform.mjs +0 -3
  538. package/zrender@6.0.0/es2022/lib/core/timsort.mjs +0 -3
  539. package/zrender@6.0.0/es2022/lib/core/util.mjs +0 -3
  540. package/zrender@6.0.0/es2022/lib/core/vector.mjs +0 -3
  541. package/zrender@6.0.0/es2022/lib/dom/HandlerProxy.mjs +0 -3
  542. package/zrender@6.0.0/es2022/lib/graphic/CompoundPath.mjs +0 -3
  543. package/zrender@6.0.0/es2022/lib/graphic/Displayable.mjs +0 -3
  544. package/zrender@6.0.0/es2022/lib/graphic/Gradient.mjs +0 -3
  545. package/zrender@6.0.0/es2022/lib/graphic/Group.mjs +0 -3
  546. package/zrender@6.0.0/es2022/lib/graphic/Image.mjs +0 -3
  547. package/zrender@6.0.0/es2022/lib/graphic/IncrementalDisplayable.mjs +0 -3
  548. package/zrender@6.0.0/es2022/lib/graphic/LinearGradient.mjs +0 -3
  549. package/zrender@6.0.0/es2022/lib/graphic/Path.mjs +0 -3
  550. package/zrender@6.0.0/es2022/lib/graphic/RadialGradient.mjs +0 -3
  551. package/zrender@6.0.0/es2022/lib/graphic/constants.mjs +0 -3
  552. package/zrender@6.0.0/es2022/lib/graphic/helper/image.mjs +0 -3
  553. package/zrender@6.0.0/es2022/lib/graphic/helper/poly.mjs +0 -3
  554. package/zrender@6.0.0/es2022/lib/graphic/helper/roundRect.mjs +0 -3
  555. package/zrender@6.0.0/es2022/lib/graphic/helper/roundSector.mjs +0 -3
  556. package/zrender@6.0.0/es2022/lib/graphic/helper/smoothBezier.mjs +0 -3
  557. package/zrender@6.0.0/es2022/lib/graphic/helper/subPixelOptimize.mjs +0 -3
  558. package/zrender@6.0.0/es2022/lib/graphic/shape/Arc.mjs +0 -3
  559. package/zrender@6.0.0/es2022/lib/graphic/shape/Circle.mjs +0 -3
  560. package/zrender@6.0.0/es2022/lib/graphic/shape/Ellipse.mjs +0 -3
  561. package/zrender@6.0.0/es2022/lib/graphic/shape/Line.mjs +0 -3
  562. package/zrender@6.0.0/es2022/lib/graphic/shape/Polygon.mjs +0 -3
  563. package/zrender@6.0.0/es2022/lib/graphic/shape/Polyline.mjs +0 -3
  564. package/zrender@6.0.0/es2022/lib/graphic/shape/Rect.mjs +0 -3
  565. package/zrender@6.0.0/es2022/lib/graphic/shape/Ring.mjs +0 -3
  566. package/zrender@6.0.0/es2022/lib/graphic/shape/Sector.mjs +0 -3
  567. package/zrender@6.0.0/es2022/lib/mixin/Draggable.mjs +0 -3
  568. package/zrender@6.0.0/es2022/lib/svg/Painter.mjs +0 -3
  569. package/zrender@6.0.0/es2022/lib/svg/SVGPathRebuilder.mjs +0 -3
  570. package/zrender@6.0.0/es2022/lib/svg/core.mjs +0 -5
  571. package/zrender@6.0.0/es2022/lib/svg/cssAnimation.mjs +0 -3
  572. package/zrender@6.0.0/es2022/lib/svg/cssClassId.mjs +0 -3
  573. package/zrender@6.0.0/es2022/lib/svg/cssEmphasis.mjs +0 -3
  574. package/zrender@6.0.0/es2022/lib/svg/domapi.mjs +0 -3
  575. package/zrender@6.0.0/es2022/lib/svg/graphic.mjs +0 -3
  576. package/zrender@6.0.0/es2022/lib/svg/helper.mjs +0 -4
  577. package/zrender@6.0.0/es2022/lib/svg/mapStyleToAttrs.mjs +0 -3
  578. package/zrender@6.0.0/es2022/lib/svg/patch.mjs +0 -3
  579. package/zrender@6.0.0/es2022/lib/tool/color.mjs +0 -3
  580. package/zrender@6.0.0/es2022/lib/tool/convertPath.mjs +0 -3
  581. package/zrender@6.0.0/es2022/lib/tool/dividePath.mjs +0 -3
  582. package/zrender@6.0.0/es2022/lib/tool/morphPath.mjs +0 -3
  583. package/zrender@6.0.0/es2022/lib/tool/parseSVG.mjs +0 -3
  584. package/zrender@6.0.0/es2022/lib/tool/parseXML.mjs +0 -3
  585. package/zrender@6.0.0/es2022/lib/tool/path.mjs +0 -3
  586. package/zrender@6.0.0/es2022/lib/zrender.mjs +0 -16
@@ -0,0 +1,15 @@
1
+ /* esm.sh - @antv/component@2.1.11 */
2
+ var kn=Object.defineProperty;var Us=Object.getOwnPropertyDescriptor;var Xs=Object.getOwnPropertyNames;var qs=Object.prototype.hasOwnProperty;var Ln=(n,r)=>{for(var t in r)kn(n,t,{get:r[t],enumerable:!0})},An=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Xs(r))!qs.call(n,i)&&i!==t&&kn(n,i,{get:()=>r[i],enumerable:!(e=Us(r,i))||e.enumerable});return n},O=(n,r,t)=>(An(n,r,"default"),t&&An(t,r,"default"));var yr={};Ln(yr,{Axis:()=>ue,BBox:()=>W,Breadcrumb:()=>Ia,Button:()=>Ba,Category:()=>on,Checkbox:()=>Es,CircleCrosshair:()=>Ls,Continuous:()=>pn,Layout:()=>mn,LineCrosshair:()=>ks,Marker:()=>F,Navigator:()=>ai,PRIMILTIVE_ATTRIBUTES:()=>Si,PolygonCrosshair:()=>Ps,Poptip:()=>oi,Scrollbar:()=>Za,Select:()=>mr,Selection:()=>ki,Slider:()=>Te,Sparkline:()=>Xr,Switch:()=>bs,Tag:()=>Zt,Timebar:()=>wn,Timeline:()=>Mo,Tooltip:()=>gs,add:()=>Vt,addPrefix:()=>Dr,applyStyleSheet:()=>jr,applyToText:()=>ye,arrayInterpolate:()=>xi,catmullRom2Bezier:()=>zr,classNames:()=>q,copyAttributes:()=>Wr,createOffscreenGroup:()=>Sr,createTempText:()=>ta,deepAssign:()=>M,defined:()=>Ar,degToRad:()=>wt,distance:()=>jt,ellipsisIt:()=>re,formatTime:()=>st,getCallbackValue:()=>Q,getEventPos:()=>be,getEventViewportPos:()=>Xe,getFont:()=>Ye,getLocalBBox:()=>$e,getMask:()=>Ci,getPrimitiveAttributes:()=>Ze,getRenderBBox:()=>On,getShapeSpace:()=>Rr,getTimeDiff:()=>oa,getTimeScale:()=>sa,getTimeStart:()=>la,getTranslate:()=>Ti,groupBy:()=>Or,hide:()=>X,ifNegative:()=>Xn,ifPositive:()=>qn,ifShow:()=>K,inRange:()=>it,interpolate:()=>xe,intersection:()=>Br,isHorizontal:()=>Gr,isInOffscreenGroup:()=>wr,isPrimitiveAttribute:()=>wi,isVertical:()=>ea,keyframeInterpolate:()=>Mr,lineLen:()=>qe,max:()=>Ft,maybeAppend:()=>dt,measureTextWidth:()=>Lr,mid:()=>Kn,min:()=>zt,multi:()=>Zn,normalize:()=>Se,numberInterpolate:()=>bi,objectInterpolate:()=>_i,omit:()=>ie,parseDate:()=>Ae,parseHTML:()=>Wn,parseHeightFromHTML:()=>Ur,parsePosition:()=>qt,parseSeriesAttr:()=>H,path2marker:()=>Pi,percentTransform:()=>ke,radToDeg:()=>je,removePrefix:()=>Je,renderExtDo:()=>ut,renderHtmlExtDo:()=>Cr,replaceChildren:()=>tr,rotate:()=>Ir,sampling:()=>Fr,scale:()=>ct,scaleToPixel:()=>Ut,select:()=>A,setMockMeasureTextWidth:()=>Hn,show:()=>bt,splitStyle:()=>ot,stringToHTML:()=>yi,sub:()=>_e,subStyleProps:()=>P,superStyleProps:()=>pt,svg2marker:()=>ra,textOf:()=>Ue,throttle:()=>ia,timer:()=>ua,toKNotation:()=>Un,toLowercaseFirstLetter:()=>Li,toPrecision:()=>Yt,toScientificNotation:()=>Yn,toThousands:()=>jn,toUppercaseFirstLetter:()=>we,transpose:()=>Yr,traverse:()=>Ve,vertical:()=>Hr,visibility:()=>ge,wrapIt:()=>Pr});import{__assign as Bi,__extends as zl,__read as Fl}from"/tslib?target=es2022";import{isNil as Rl}from"/@antv/util@^3.3.10?target=es2022";import{Component as Gl}from"./esm/core.mjs";import{Circle as br}from"/@antv/g@^6.1.11?target=es2022";import{CustomElement as qf}from"/@antv/g@^6.1.11?target=es2022";import{DisplayObject as xr}from"/@antv/g@^6.1.11?target=es2022";import{Ellipse as Pn}from"/@antv/g@^6.1.11?target=es2022";import{Group as Z}from"/@antv/g@^6.1.11?target=es2022";import{HTML as ve}from"/@antv/g@^6.1.11?target=es2022";import{Image as Cn}from"/@antv/g@^6.1.11?target=es2022";import{Line as _r}from"/@antv/g@^6.1.11?target=es2022";import{Path as me}from"/@antv/g@^6.1.11?target=es2022";import{Polygon as Tn}from"/@antv/g@^6.1.11?target=es2022";import{Polyline as En}from"/@antv/g@^6.1.11?target=es2022";import{Rect as Pt}from"/@antv/g@^6.1.11?target=es2022";import{__assign as Nn,__extends as tl,__rest as el}from"/tslib?target=es2022";import{Text as rl}from"/@antv/g@^6.1.11?target=es2022";import{__extends as Zs,__read as Ks,__spreadArray as $s}from"/tslib?target=es2022";import{ElementEvent as Js}from"/@antv/g@^6.1.11?target=es2022";function Ve(n,r){r(n),n.children&&n.children.forEach(function(t){t&&Ve(t,r)})}function bt(n){ge(n,!0)}function X(n){ge(n,!1)}function ge(n,r){var t=r?"visible":"hidden";Ve(n,function(e){e.attr("visibility",t)})}var Qs=(function(n){Zs(r,n);function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=n.apply(this,$s([],Ks(t),!1))||this;return i.isMutationObserved=!0,i.addEventListener(Js.INSERTED,function(){X(i)}),i}return r})(Z);function Sr(n){var r=n.appendChild(new Qs({class:"offscreen"}));return X(r),r}function wr(n){for(var r=n;r;){if(r.className==="offscreen")return!0;r=r.parent}return!1}var Ht=(function(n){tl(r,n);function r(t){t===void 0&&(t={});var e=t.style,i=el(t,["style"]);return n.call(this,Nn({style:Nn({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},e)},i))||this}return Object.defineProperty(r.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=Sr(this)),this._offscreen},enumerable:!1,configurable:!0}),r.prototype.disconnectedCallback=function(){var t;(t=this._offscreen)===null||t===void 0||t.destroy()},r})(rl);var k={};Ln(k,{BBox:()=>W,PRIMILTIVE_ATTRIBUTES:()=>Si,Selection:()=>ki,add:()=>Vt,addPrefix:()=>Dr,applyStyleSheet:()=>jr,applyToText:()=>ye,arrayInterpolate:()=>xi,catmullRom2Bezier:()=>zr,classNames:()=>q,copyAttributes:()=>Wr,createOffscreenGroup:()=>Sr,createTempText:()=>ta,deepAssign:()=>M,defined:()=>Ar,degToRad:()=>wt,distance:()=>jt,ellipsisIt:()=>re,formatTime:()=>st,getCallbackValue:()=>Q,getEventPos:()=>be,getEventViewportPos:()=>Xe,getFont:()=>Ye,getLocalBBox:()=>$e,getMask:()=>Ci,getPrimitiveAttributes:()=>Ze,getRenderBBox:()=>On,getShapeSpace:()=>Rr,getTimeDiff:()=>oa,getTimeScale:()=>sa,getTimeStart:()=>la,getTranslate:()=>Ti,groupBy:()=>Or,hide:()=>X,ifNegative:()=>Xn,ifPositive:()=>qn,ifShow:()=>K,inRange:()=>it,interpolate:()=>xe,intersection:()=>Br,isHorizontal:()=>Gr,isInOffscreenGroup:()=>wr,isPrimitiveAttribute:()=>wi,isVertical:()=>ea,keyframeInterpolate:()=>Mr,lineLen:()=>qe,max:()=>Ft,maybeAppend:()=>dt,measureTextWidth:()=>Lr,mid:()=>Kn,min:()=>zt,multi:()=>Zn,normalize:()=>Se,numberInterpolate:()=>bi,objectInterpolate:()=>_i,omit:()=>ie,parseDate:()=>Ae,parseHTML:()=>Wn,parseHeightFromHTML:()=>Ur,parsePosition:()=>qt,parseSeriesAttr:()=>H,path2marker:()=>Pi,percentTransform:()=>ke,radToDeg:()=>je,removePrefix:()=>Je,renderExtDo:()=>ut,renderHtmlExtDo:()=>Cr,replaceChildren:()=>tr,rotate:()=>Ir,sampling:()=>Fr,scale:()=>ct,scaleToPixel:()=>Ut,select:()=>A,setMockMeasureTextWidth:()=>Hn,show:()=>bt,splitStyle:()=>ot,stringToHTML:()=>yi,sub:()=>_e,subStyleProps:()=>P,superStyleProps:()=>pt,svg2marker:()=>ra,textOf:()=>Ue,throttle:()=>ia,timer:()=>ua,toKNotation:()=>Un,toLowercaseFirstLetter:()=>Li,toPrecision:()=>Yt,toScientificNotation:()=>Yn,toThousands:()=>jn,toUppercaseFirstLetter:()=>we,transpose:()=>Yr,traverse:()=>Ve,vertical:()=>Hr,visibility:()=>ge,wrapIt:()=>Pr});function wt(n){return n*Math.PI/180}function je(n){return Number((n*180/Math.PI).toPrecision(5))}import{__read as Bn}from"/tslib?target=es2022";var W=(function(){function n(r,t,e,i){r===void 0&&(r=0),t===void 0&&(t=0),e===void 0&&(e=0),i===void 0&&(i=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=r,this.y=t,this.width=e,this.height=i}return Object.defineProperty(n.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),n.fromRect=function(r){return new n(r.x,r.y,r.width,r.height)},n.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},n.prototype.isPointIn=function(r,t){return r>=this.left&&r<=this.right&&t>=this.top&&t<=this.bottom},n})();function On(n){var r=n.getRenderBounds(),t=Bn(r.min,2),e=t[0],i=t[1],a=Bn(r.max,2),o=a[0],s=a[1],l=o-e,u=s-i;return new W(e,i,l,u)}import{__read as il,__spreadArray as nl}from"/tslib?target=es2022";import{isFunction as al}from"/@antv/util@^3.3.10?target=es2022";function Q(n,r){return al(n)?n.apply(void 0,nl([],il(r),!1)):n}import{__read as ol}from"/tslib?target=es2022";var q=function(n,r){var t=function(i){return"".concat(r,"-").concat(i)},e=Object.fromEntries(Object.entries(n).map(function(i){var a=ol(i,2),o=a[0],s=a[1],l=t(s);return[o,{name:l,class:".".concat(l),id:"#".concat(l),toString:function(){return l}}]}));return Object.assign(e,{prefix:t}),e};import{__read as sl}from"/tslib?target=es2022";import{isPlainObject as Mn,isArray as ll}from"/@antv/util@^3.3.10?target=es2022";var ul=5,In=function(n,r,t,e){t===void 0&&(t=0),e===void 0&&(e=ul),Object.entries(r).forEach(function(i){var a=sl(i,2),o=a[0],s=a[1],l=n;Object.prototype.hasOwnProperty.call(r,o)&&(s?Mn(s)?(Mn(n[o])||(l[o]={}),t<e?In(n[o],s,t+1,e):l[o]=r[o]):ll(s)?(l[o]=[],l[o]=l[o].concat(s)):l[o]=s:l[o]=s)})},M=function(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var e=0;e<r.length;e+=1)In(n,r[e]);return n};var Ar=function(n){return n!==void 0&&n!=null&&!Number.isNaN(n)};import{runtime as cl}from"/@antv/g@^6.1.11?target=es2022";import{memoize as pl}from"/@antv/util@^3.3.10?target=es2022";var kr,gi;function Hn(n){gi=n}var Lr=pl(function(n,r){var t=r.fontSize,e=r.fontFamily,i=r.fontWeight,a=r.fontStyle,o=r.fontVariant;return gi?gi(n,t):(kr||(kr=cl.offscreenCanvasCreator.getOrCreateContext(void 0)),kr.font=[a,o,i,"".concat(t,"px"),e].join(" "),kr.measureText(n).width)},function(n,r){return[n,Object.values(r||Ye(n)).join()].join("")},4096),Ye=function(n){var r=n.style.fontFamily||"sans-serif",t=n.style.fontWeight||"normal",e=n.style.fontStyle||"normal",i=n.style.fontVariant,a=n.style.fontSize;return a=typeof a=="object"?a.value:a,{fontSize:a,fontFamily:r,fontWeight:t,fontStyle:e,fontVariant:i}};function Ue(n){return n.nodeName==="text"?n:n.nodeName==="g"&&n.children.length===1&&n.children[0].nodeName==="text"?n.children[0]:null}function ye(n,r){var t=Ue(n);t&&t.attr(r)}function re(n,r,t){t===void 0&&(t="..."),ye(n,{wordWrap:!0,wordWrapWidth:r,maxLines:1,textOverflow:t})}function Pr(n,r,t,e){t===void 0&&(t=2),e===void 0&&(e="top"),ye(n,{wordWrap:!0,wordWrapWidth:r,maxLines:t,textBaseline:e})}function be(n){var r=n.canvas,t=n.touches,e=n.offsetX,i=n.offsetY;if(r){var a=r.x,o=r.y;return[a,o]}if(t){var s=t[0],l=s.clientX,u=s.clientY;return[l,u]}return e&&i?[e,i]:[0,0]}function Xe(n){var r=n.nativeEvent,t=n.touches,e=n.clientX,i=n.clientY;if(r)return[r.clientX,r.clientY];if(t){var a=t[0],o=a.clientX,s=a.clientY;return[o,s]}return typeof e=="number"&&typeof i=="number"?[e,i]:[0,0]}import{__assign as zn}from"/tslib?target=es2022";import{isNumber as Fn,isString as Rn}from"/@antv/util@^3.3.10?target=es2022";function ut(n){return typeof n=="function"?n():Rn(n)||Fn(n)?new Ht({style:{text:String(n)}}):n}function Cr(n,r){return typeof n=="function"?n():Rn(n)||Fn(n)?new ve({style:zn(zn({pointerEvents:"auto"},r),{innerHTML:n})}):n}import{__read as Tr}from"/tslib?target=es2022";function Er(n,r,t,e,i,a){return(n===r||Math.min(n,r)<=i&&i<=Math.max(n,r))&&(t===e||Math.min(t,e)<=a&&a<=Math.max(t,e))}function Nr(n,r,t){var e=n;(!n.length||r<n[0]||r===n[0]&&t<n[1])&&(e[0]=r,e[1]=t)}function Br(n,r,t,e){var i=Tr(n,2),a=i[0],o=i[1],s=Tr(r,2),l=s[0],u=s[1],c=Tr(t,2),p=c[0],f=c[1],d=Tr(e,2),h=d[0],v=d[1],m=[];if((v-f)*(l-a)===(u-o)*(h-p))(u-o)*(p-a)===(f-o)*(l-a)&&(Er(a,l,o,u,p,f)&&Nr(m,p,f),Er(a,l,o,u,h,v)&&Nr(m,h,v),Er(p,h,f,v,a,o)&&Nr(m,a,o),Er(p,h,f,v,l,u)&&Nr(m,l,u));else{var g=(p*(v-f)+o*(h-p)-f*(h-p)-a*(v-f))/((l-a)*(v-f)-(h-p)*(u-o)),y=(a*(u-o)+f*(l-a)-o*(l-a)-p*(u-o))/((h-p)*(u-o)-(l-a)*(v-f));g>=0&&g<=1&&y>=0&&y<=1&&(m[0]=a+g*(l-a),m[1]=o+g*(u-o))}return m}import{__read as Gn}from"/tslib?target=es2022";function qe(n,r){var t=Gn(n,2),e=t[0],i=t[1],a=Gn(r,2),o=a[0],s=a[1];return Math.pow(Math.pow(e-o,2)+Math.pow(i-s,2),.5)}function Or(n,r){return n.reduce(function(t,e){return(t[e[r]]=t[e[r]]||[]).push(e),t},{})}function yi(n){var r=document.createElement("div");return r.innerHTML=n,r.firstChild}function Wn(n){return typeof n=="string"?yi(n):n}function K(n,r,t,e,i){return e===void 0&&(e=!0),i===void 0&&(i=function(a){a.node().removeChildren()}),n?t(r):(e&&i(r),null)}function it(n,r,t,e,i){return e===void 0&&(e=!0),i===void 0&&(i=!1),e&&n===r||i&&n===t?!0:n>r&&n<t}import{__read as Dn}from"/tslib?target=es2022";var bi=function(n,r){return function(t){return n*(1-t)+r*t}};function xi(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0;return function(i){var a=new Array(e),o=new Array(t),s=0;for(s=0;s<e;++s)a[s]=xe(n[s],r[s]);for(;s<t;++s)o[s]=r[s];for(s=0;s<e;++s)o[s]=a[s](i);return o}}function _i(n,r){n===void 0&&(n={}),r===void 0&&(r={});var t={},e={};return Object.entries(r).forEach(function(i){var a=Dn(i,2),o=a[0],s=a[1];o in n?t[o]=xe(n[o],s):e[o]=s}),function(i){return Object.entries(t).forEach(function(a){var o=Dn(a,2),s=o[0],l=o[1];return e[s]=l(i)}),e}}function xe(n,r){return typeof n=="number"&&typeof r=="number"?bi(n,r):Array.isArray(n)&&Array.isArray(r)?xi(n,r):typeof n=="object"&&typeof r=="object"?_i(n,r):(function(t){return n})}import{__assign as fl}from"/tslib?target=es2022";function Mr(n,r,t,e){if(!e)return n.attr("__keyframe_data__",t),null;var i=e.duration,a=i===void 0?0:i,o=xe(r,t),s=Math.ceil(+a/16),l=new Array(s).fill(0).map(function(u,c,p){return{__keyframe_data__:o(c/(p.length-1))}});return n.animate(l,fl({fill:"both"},e))}O(k,Ev);import*as Ev from"./esm/util/layout.mjs";import{__read as Vn}from"/tslib?target=es2022";function ct(n,r){return[n[0]*r,n[1]*r]}function Vt(n,r){return[n[0]+r[0],n[1]+r[1]]}function _e(n,r){return[n[0]-r[0],n[1]-r[1]]}function zt(n,r){return[Math.min(n[0],r[0]),Math.min(n[1],r[1])]}function Ft(n,r){return[Math.max(n[0],r[0]),Math.max(n[1],r[1])]}function jt(n,r){return Math.sqrt(Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))}function Se(n){if(n[0]===0&&n[1]===0)return[0,0];var r=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2));return[n[0]/r,n[1]/r]}function Ir(n,r,t){var e=Vn(n,2),i=e[0],a=e[1],o=Vn(r,2),s=o[0],l=o[1],u=i-s,c=a-l,p=Math.sin(t),f=Math.cos(t);return[u*f-c*p+s,u*p+c*f+l]}function Hr(n,r){return r?[n[1],-n[0]]:[-n[1],n[0]]}function Yt(n,r){return+n.toPrecision(r)}function jn(n){return n.toLocaleString()}function Yn(n){return n.toExponential()}function Un(n,r){return r===void 0&&(r=0),Math.abs(n)<1e3?String(n):"".concat(Yt(n/1e3,r).toLocaleString(),"K")}var Xn=function(n,r,t){return n<0&&Number.isFinite(n)?r:t},qn=function(n,r,t){return n>0&&Number.isFinite(n)?r:t},Zn=function(n,r){return n*r},Kn=function(n,r){return n/2+(r||0)/2};function ie(n,r){var t={},e=Array.isArray(r)?r:[r];for(var i in n)e.includes(i)||(t[i]=n[i]);return t}import{__read as $n}from"/tslib?target=es2022";function dl(n,r,t,e){var i,a=[],o=!!e,s,l,u=[1/0,1/0],c=[-1/0,-1/0],p,f,d;if(o){i=$n(e,2),u=i[0],c=i[1];for(var h=0,v=n.length;h<v;h+=1){var m=n[h];u=zt(u,m),c=Ft(c,m)}}for(var h=0,g=n.length;h<g;h+=1){var m=n[h];if(h===0&&!t)d=m;else if(h===g-1&&!t)f=m,a.push(d),a.push(f);else{var y=[h?h-1:g-1,h-1][t?0:1];s=n[y],l=n[t?(h+1)%g:h+1];var b=[0,0];b=_e(l,s),b=ct(b,r);var _=jt(m,s),x=jt(m,l),S=_+x;S!==0&&(_/=S,x/=S);var w=ct(b,-_),L=ct(b,x);f=Vt(m,w),p=Vt(m,L),p=zt(p,Ft(l,m)),p=Ft(p,zt(l,m)),w=_e(p,m),w=ct(w,-_/x),f=Vt(m,w),f=zt(f,Ft(s,m)),f=Ft(f,zt(s,m)),L=_e(m,f),L=ct(L,x/_),p=Vt(m,L),o&&(f=Ft(f,u),f=zt(f,c),p=Ft(p,u),p=zt(p,c)),a.push(d),a.push(f),d=p}}return t&&a.push(a.shift()),a}function zr(n,r,t){var e;r===void 0&&(r=!1),t===void 0&&(t=[[0,0],[1,1]]);for(var i=!!r,a=[],o=0,s=n.length;o<s;o+=2)a.push([n[o],n[o+1]]);for(var l=dl(a,.4,i,t),u=a.length,c=[],p,f,d,o=0;o<u-1;o+=1)p=l[o*2],f=l[o*2+1],d=a[o+1],c.push(["C",p[0],p[1],f[0],f[1],d[0],d[1]]);return i&&(p=l[u],f=l[u+1],e=$n(a,1),d=e[0],c.push(["C",p[0],p[1],f[0],f[1],d[0],d[1]])),c}var Si=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function wi(n){return Si.includes(n)}function Ze(n){var r={};for(var t in n)wi(t)&&(r[t]=n[t]);return r}function Fr(n,r){if(n.length<=r)return n;for(var t=Math.floor(n.length/r),e=[],i=0;i<n.length;i+=t)e.push(n[i]);return e}function Ut(n,r,t){t===void 0&&(t=!1);var e=n.getBBox(),i=e.width,a=e.height,o=r/Math.max(i,a);return t&&(n.style.transform="scale(".concat(o,")")),o}import{__classPrivateFieldGet as Ai,__read as ne,__spreadArray as Ke,__values as hl}from"/tslib?target=es2022";import{flatten as vl}from"/@antv/util@^3.3.10?target=es2022";function Jn(n,r){var t=new Map;return n.forEach(function(e){var i=r(e);t.has(i)||t.set(i,[]),t.get(i).push(e)}),t}function ml(n){throw new Error(n)}var ki=(function(){function n(i,a,o,s,l,u,c){i===void 0&&(i=null),a===void 0&&(a=null),o===void 0&&(o=null),s===void 0&&(s=null),l===void 0&&(l=[null,null,null,null,null]),u===void 0&&(u=[]),c===void 0&&(c=[]),r.add(this),this._elements=Array.from(i),this._data=a,this._parent=o,this._document=s,this._enter=l[0],this._update=l[1],this._exit=l[2],this._merge=l[3],this._split=l[4],this._transitions=u,this._facetElements=c}n.prototype.selectAll=function(i){var a=typeof i=="string"?this._parent.querySelectorAll(i):i;return new t(a,null,this._elements[0],this._document)},n.prototype.selectFacetAll=function(i){var a=typeof i=="string"?this._parent.querySelectorAll(i):i;return new t(this._elements,null,this._parent,this._document,void 0,void 0,a)},n.prototype.select=function(i){var a=typeof i=="string"?this._parent.querySelectorAll(i)[0]||null:i;return new t([a],null,a,this._document)},n.prototype.append=function(i){var a=this,o=typeof i=="function"?i:function(){return a.createElement(i)},s=[];if(this._data!==null){for(var l=0;l<this._data.length;l++){var u=this._data[l],c=ne(Array.isArray(u)?u:[u,null],2),p=c[0],f=c[1],d=o(p,l);d.__data__=p,f!==null&&(d.__fromElements__=f),this._parent.appendChild(d),s.push(d)}return new t(s,null,this._parent,this._document)}for(var l=0;l<this._elements.length;l++){var h=this._elements[l],p=h.__data__,d=o(p,l);h.appendChild(d),s.push(d)}return new t(s,null,s[0],this._document)},n.prototype.maybeAppend=function(i,a){var o=Ai(this,r,"m",e).call(this,i[0]==="#"?i:"#".concat(i),a);return o.attr("id",i),o},n.prototype.maybeAppendByClassName=function(i,a){var o=i.toString(),s=Ai(this,r,"m",e).call(this,o[0]==="."?o:".".concat(o),a);return s.attr("className",o),s},n.prototype.maybeAppendByName=function(i,a){var o=Ai(this,r,"m",e).call(this,'[name="'.concat(i,'"]'),a);return o.attr("name",i),o},n.prototype.data=function(i,a,o){var s,l;a===void 0&&(a=function(T){return T}),o===void 0&&(o=function(){return null});for(var u=[],c=[],p=new Set(this._elements),f=[],d=new Set,h=new Map(this._elements.map(function(T,N){return[a(T.__data__,N),T]})),v=new Map(this._facetElements.map(function(T,N){return[a(T.__data__,N),T]})),m=Jn(this._elements,function(T){return o(T.__data__)}),g=0;g<i.length;g++){var y=i[g],b=a(y,g),_=o(y,g);if(h.has(b)){var x=h.get(b);x.__data__=y,x.__facet__=!1,c.push(x),p.delete(x),h.delete(b)}else if(v.has(b)){var x=v.get(b);x.__data__=y,x.__facet__=!0,c.push(x),v.delete(b)}else if(m.has(b)){var S=m.get(b);f.push([y,S]);try{for(var w=(s=void 0,hl(S)),L=w.next();!L.done;L=w.next()){var x=L.value;p.delete(x)}}catch(T){s={error:T}}finally{try{L&&!L.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}m.delete(b)}else if(h.has(_)){var x=h.get(_);x.__toData__?x.__toData__.push(y):x.__toData__=[y],d.add(x),p.delete(x)}else u.push(y)}var C=[new t([],u,this._parent,this._document),new t(c,null,this._parent,this._document),new t(p,null,this._parent,this._document),new t([],f,this._parent,this._document),new t(d,null,this._parent,this._document)];return new t(this._elements,null,this._parent,this._document,C)},n.prototype.merge=function(i){var a=Ke(Ke([],ne(this._elements),!1),ne(i._elements),!1),o=Ke(Ke([],ne(this._transitions),!1),ne(i._transitions),!1);return new t(a,null,this._parent,this._document,void 0,o)},n.prototype.createElement=function(i){if(this._document)return this._document.createElement(i,{});var a=t.registry[i];return a?new a:ml("Unknown node type: ".concat(i))},n.prototype.join=function(i,a,o,s,l){i===void 0&&(i=function(h){return h}),a===void 0&&(a=function(h){return h}),o===void 0&&(o=function(h){return h.remove()}),s===void 0&&(s=function(h){return h}),l===void 0&&(l=function(h){return h.remove()});var u=i(this._enter),c=a(this._update),p=o(this._exit),f=s(this._merge),d=l(this._split);return c.merge(u).merge(p).merge(f).merge(d)},n.prototype.remove=function(){for(var i=function(s){var l=a._elements[s],u=a._transitions[s];u?u.then(function(){return l.remove()}):l.remove()},a=this,o=0;o<this._elements.length;o++)i(o);return new t([],null,this._parent,this._document,void 0,this._transitions)},n.prototype.each=function(i){for(var a=0;a<this._elements.length;a++){var o=this._elements[a],s=o.__data__;i.call(o,s,a)}return this},n.prototype.attr=function(i,a){var o=typeof a!="function"?function(){return a}:a;return this.each(function(s,l){a!==void 0&&(this[i]=o.call(this,s,l))})},n.prototype.style=function(i,a,o){o===void 0&&(o=!0);var s=typeof a!="function"||!o?function(){return a}:a;return this.each(function(l,u){a!==void 0&&(this.style[i]=s.call(this,l,u))})},n.prototype.styles=function(i,a){return i===void 0&&(i={}),a===void 0&&(a=!0),this.each(function(o,s){var l=this;Object.entries(i).forEach(function(u){var c=ne(u,2),p=c[0],f=c[1],d=typeof f!="function"||!a?function(){return f}:f;f!==void 0&&l.attr(p,d.call(l,o,s))})})},n.prototype.update=function(i,a){a===void 0&&(a=!0);var o=typeof i!="function"||!a?function(){return i}:i;return this.each(function(s,l){i&&this.update&&this.update(o.call(this,s,l))})},n.prototype.maybeUpdate=function(i,a){a===void 0&&(a=!0);var o=typeof i!="function"||!a?function(){return i}:i;return this.each(function(s,l){i&&this.update&&this.update(o.call(this,s,l))})},n.prototype.transition=function(i){var a=this._transitions,o=new Array(this._elements.length);return this.each(function(s,l){o[l]=i.call(this,s,l)}),this._transitions=vl(o),this},n.prototype.on=function(i,a){return this.each(function(){this.addEventListener(i,a)}),this},n.prototype.call=function(i){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return i.call.apply(i,Ke([this._parent,this],ne(a),!1)),this},n.prototype.node=function(){return this._elements[0]},n.prototype.nodes=function(){return this._elements},n.prototype.transitions=function(){return this._transitions.filter(function(i){return!!i})},n.prototype.parent=function(){return this._parent};var r,t,e;return t=n,r=new WeakSet,e=function(a,o){var s=this._elements[0],l=s.querySelector(a);if(l)return new t([l],null,this._parent,this._document);var u=typeof o=="string"?this.createElement(o):o();return s.appendChild(u),new t([u],null,this._parent,this._document)},n.registry={g:Z,rect:Pt,circle:br,path:me,text:Ht,ellipse:Pn,image:Cn,line:_r,polygon:Tn,polyline:En,html:ve},n})();function A(n){return new ki([n],null,n,n.ownerDocument)}function dt(n,r,t){return n.querySelector(r)?A(n).select(r):A(n).append(t)}import{isNumber as gl,isArray as yl}from"/@antv/util@^3.3.10?target=es2022";function H(n){if(gl(n))return[n,n,n,n];if(yl(n)){var r=n.length;if(r===1)return[n[0],n[0],n[0],n[0]];if(r===2)return[n[0],n[1],n[0],n[1]];if(r===3)return[n[0],n[1],n[2],n[1]];if(r===4)return n}return[0,0,0,0]}import{__assign as Qn,__read as Xt,__values as bl}from"/tslib?target=es2022";function Rr(n){var r=n&&n.getRenderBounds();if(!r)return{width:0,height:0};var t=r.getMax(),e=r.getMin();return{width:t[0]-e[0],height:t[1]-e[1]}}function $e(n){var r=n.getLocalBounds(),t=r.min,e=r.max,i=Xt([t,e],2),a=Xt(i[0],2),o=a[0],s=a[1],l=Xt(i[1],2),u=l[0],c=l[1];return{x:o,y:s,width:u-o,height:c-s,left:o,bottom:c,top:s,right:u}}function ta(n,r){var t=A(n).append("text").node();return t.attr(Qn(Qn({},r),{visibility:"hidden"})),t}function Gr(n,r){var t=Xt(n,2),e=t[0],i=t[1],a=Xt(r,2),o=a[0],s=a[1];return e!==o&&i===s}function ea(n,r){var t=Xt(n,2),e=t[0],i=t[1],a=Xt(r,2),o=a[0],s=a[1];return e===o&&i!==s}function Wr(n,r){var t,e,i=r.attributes;try{for(var a=bl(Object.entries(i)),o=a.next();!o.done;o=a.next()){var s=Xt(o.value,2),l=s[0],u=s[1];l!=="id"&&l!=="className"&&n.attr(l,u)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}}function we(n){return n.toString().charAt(0).toUpperCase()+n.toString().slice(1)}function Li(n){return n.toString().charAt(0).toLowerCase()+n.toString().slice(1)}function Dr(n,r){return"".concat(r).concat(we(n))}function Je(n,r,t){var e;t===void 0&&(t=!0);var i=r||((e=n.match(/^([a-z][a-z0-9]+)/))===null||e===void 0?void 0:e[0])||"",a=n.replace(new RegExp("^(".concat(i,")")),"");return t?Li(a):a}import{__read as Qe,__spreadArray as xl}from"/tslib?target=es2022";function jr(n,r){Object.entries(r).forEach(function(t){var e=Qe(t,2),i=e[0],a=e[1];xl([n],Qe(n.querySelectorAll(i)),!1).filter(function(o){return o.matches(i)}).forEach(function(o){if(o){var s=o;s.style.cssText+=Object.entries(a).reduce(function(l,u){return"".concat(l).concat(u.join(":"),";")},"")}})})}var Vr=function(n,r){if(!n?.startsWith(r))return!1;var t=n[r.length];return t>="A"&&t<="Z"};function P(n,r,t){t===void 0&&(t=!1);var e={};return Object.entries(n).forEach(function(i){var a=Qe(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(Vr(o,"show")&&Vr(Je(o,"show"),r)!==t)o===Dr(r,"show")?e[o]=s:e[o.replace(new RegExp(we(r)),"")]=s;else if(!Vr(o,"show")&&Vr(o,r)!==t){var l=Je(o,r);l==="filter"&&typeof s=="function"||(e[l]=s)}}}),e}function pt(n,r){return Object.entries(n).reduce(function(t,e){var i=Qe(e,2),a=i[0],o=i[1];return a.startsWith("show")?t["show".concat(r).concat(a.slice(4))]=o:t["".concat(r).concat(we(a))]=o,t},{})}function ot(n,r){r===void 0&&(r=["x","y","class","className"]);var t=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],e={},i={};return Object.entries(n).forEach(function(a){var o=Qe(a,2),s=o[0],l=o[1];r.includes(s)||(t.indexOf(s)!==-1?i[s]=l:e[s]=l)}),[e,i]}import{__read as _l}from"/tslib?target=es2022";import Sl from"/svg-path-parser@^1.1.0?target=es2022";function Pi(n,r,t){return r===void 0&&(r=1024),t===void 0&&(t=1014),function(e,i,a){var o=Sl(n);return o.map(function(s){var l=[];l.push(s.relative===!0?s.code.toLowerCase():s.code.toUpperCase());var u=[[s.x1,s.y1],[s.x2,s.y2],[s.x,s.y]];return u.forEach(function(c){var p=_l(c,2),f=p[0],d=p[1];f!==void 0&&l.push(s.relative===!0?f/r*2*a:e-a+a*2*(f/r)),d!==void 0&&l.push(s.relative===!0?d/t*2*a:i-a+a*2*(d/t))}),l})}}function ra(n){var r=/<path\s+d="(.*?)"/i.exec(n),t=/viewBox="\d+\s+\d+\s+(\d+)\s+(\d+)"/i.exec(n);if(r===null||r.length<2)return function(){return[]};var e=1024,i=1024;return t!==null&&t.length>=3&&(Number.isNaN(parseInt(t[1],10))||(e=parseInt(t[1],10)),Number.isNaN(parseInt(t[2],10))||(i=parseInt(t[2],10))),Pi(r[1],e,i)}function ia(n,r){return n===void 0&&(n=0),r===void 0&&(r=!1),function(t,e,i){var a=i.value,o;typeof a=="function"&&(i.value=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];if(!o){var u=this;r&&a.apply(u,s),o=window.setTimeout(function(){a.apply(u,s),o=null},n)}})}}import{__read as aa}from"/tslib?target=es2022";var na=["year","month","day","hour","minute","second"],wl=["YYYY","MM","DD","hh","mm","ss"];function Ae(n){return n instanceof Date?n:new Date(n)}function Ci(n){for(var r=aa(n,2),t=r[0],e=r[1],i=na.indexOf(t),a=na.indexOf(e),o="",s=i;s<=a;s+=1)if(o+=wl[s],s<a){var l="-";s===2?l=" ":s>2&&(l=":"),o+=l}return o}function st(n,r){var t={YYYY:n.getFullYear(),MM:n.getMonth()+1,DD:n.getDate(),HH:n.getHours(),mm:n.getMinutes(),ss:n.getSeconds()},e=r;return Object.keys(t).forEach(function(i){var a=t[i];e=e.replace(i,i==="YYYY"?"".concat(a):"".concat(a).padStart(2,"0"))}),e}function oa(n,r){return Ae(n).getTime()-Ae(r).getTime()}function sa(n,r){var t=aa([Ae(n),Ae(r)],2),e=t[0],i=t[1];return e.getFullYear()!==i.getFullYear()?"year":e.getMonth()!==i.getMonth()?"month":e.getDay()!==i.getDay()?"day":e.getHours()!==i.getHours()?"hour":e.getMinutes()!==i.getMinutes()?"minute":"second"}function la(n,r){var t=new Date(n),e={year:function(i){i.setMonth(0),i.setHours(0,0,0,0)},month:function(i){i.setDate(1),i.setHours(0,0,0,0)},day:function(i){return i.setHours(0,0,0,0)},hour:function(i){return i.setMinutes(0,0,0)},minute:function(i){return i.setSeconds(0,0)},second:function(i){return i.setMilliseconds(0)}};return e[r](t),st(t,Ci(["year",r]))}function ua(n){var r=localStorage.getItem("__debug__");return function(t,e,i){var a="[".concat(e,"] ").concat(n),o=i.value;typeof o=="function"&&(i.value=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];r&&console.time(a),o.apply(this,s),r&&console.timeEnd(a)})}}import{__read as Al}from"/tslib?target=es2022";function Ti(n,r,t){var e=n.getBBox(),i=e.width,a=e.height,o=Al([r,t].map(function(u,c){var p;return u.includes("%")?parseFloat(((p=u.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||p===void 0?void 0:p[0])||"0")/100*(c===0?i:a):u}),2),s=o[0],l=o[1];return[s,l]}function ke(n,r){if(r)try{var t=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,e=r.replace(t,function(i,a,o){return"translate(".concat(Ti(n,a,o),")")});n.attr("transform",e)}catch{}}function Yr(n){var r;return((r=n[0])===null||r===void 0?void 0:r.map(function(t,e){return n.map(function(i){return i[e]})}))||[]}import{__read as kl,__spreadArray as Ll}from"/tslib?target=es2022";var tr=function(n,r){if(r==null){n.innerHTML="";return}n.replaceChildren?Array.isArray(r)?n.replaceChildren.apply(n,Ll([],kl(r),!1)):n.replaceChildren(r):(n.innerHTML="",Array.isArray(r)?r.forEach(function(t){return n.appendChild(t)}):n.appendChild(r))};function qt(n){return/\S+-\S+/g.test(n)?n.split("-").map(function(r){return r[0]}):n.length>2?[n[0]]:n.split("")}import{__read as Pl}from"/tslib?target=es2022";var Ur=function(n){var r=new DOMParser,t=r.parseFromString(n,"text/html"),e=t.body.firstElementChild;if(console.log(e?.getClientRects(),11),!e)return 0;var i=e.getAttribute("style")||"",a=Object.fromEntries(i.split(";").map(function(m){return m.trim()}).filter(function(m){return m.includes(":")}).map(function(m){var g=Pl(m.split(":").map(function(_){return _.trim()}),2),y=g[0],b=g[1];return[y.toLowerCase(),b]})),o=function(m){if(!m)return 0;var g=m.match(/([\d.]+)px/);return g?parseFloat(g[1]):0};if(a.height)return o(a.height);var s=o(a["font-size"])||16,l=a["line-height"],u;!l||l==="normal"?u=1.2*s:l.endsWith("px")?u=o(l):/^[\d.]+$/.test(l)?u=parseFloat(l)*s:u=s;var c=o(a["padding-top"]),p=o(a["padding-bottom"]);if(a.padding){var f=a.padding.split(/\s+/).map(o);f.length===1||f.length===2?(c=f[0],p=f[0]):(f.length===3||f.length===4)&&(c=f[0],p=f[2])}var d=o(a["border-top-width"]),h=o(a["border-bottom-width"]);if(a.border){var v=a.border.match(/([\d.]+)px/);v&&(d=parseFloat(v[1]),h=parseFloat(v[1]))}if(a["border-width"]){var f=a["border-width"].split(/\s+/).map(o);f.length===1||f.length===2?(d=f[0],h=f[0]):(f.length===3||f.length===4)&&(d=f[0],h=f[2])}return u+c+p+d+h};import{__assign as Nl,__extends as Bl,__rest as Ol}from"/tslib?target=es2022";import{isFunction as Ml}from"/@antv/util@^3.3.10?target=es2022";import{Component as Il}from"./esm/core.mjs";var er=function(n,r,t){return[["M",n-t,r],["A",t,t,0,1,0,n+t,r],["A",t,t,0,1,0,n-t,r],["Z"]]},ca=er,pa=function(n,r,t){return[["M",n-t,r-t],["L",n+t,r-t],["L",n+t,r+t],["L",n-t,r+t],["Z"]]},fa=function(n,r,t){return[["M",n-t,r],["L",n,r-t],["L",n+t,r],["L",n,r+t],["Z"]]},da=function(n,r,t){var e=t*Math.sin(.3333333333333333*Math.PI);return[["M",n-t,r+e],["L",n,r-e],["L",n+t,r+e],["Z"]]},ha=function(n,r,t){var e=t*Math.sin(.3333333333333333*Math.PI);return[["M",n-t,r-e],["L",n+t,r-e],["L",n,r+e],["Z"]]},va=function(n,r,t){var e=t/2*Math.sqrt(3);return[["M",n,r-t],["L",n+e,r-t/2],["L",n+e,r+t/2],["L",n,r+t],["L",n-e,r+t/2],["L",n-e,r-t/2],["Z"]]},ma=function(n,r,t){var e=t-1.5;return[["M",n-t,r-e],["L",n+t,r+e],["L",n+t,r-e],["L",n-t,r+e],["Z"]]},Ei=function(n,r,t){return[["M",n,r+t],["L",n,r-t]]},ga=function(n,r,t){return[["M",n-t,r-t],["L",n+t,r+t],["M",n+t,r-t],["L",n-t,r+t]]},ya=function(n,r,t){return[["M",n-t/2,r-t],["L",n+t/2,r-t],["M",n,r-t],["L",n,r+t],["M",n-t/2,r+t],["L",n+t/2,r+t]]},ba=function(n,r,t){return[["M",n-t,r],["L",n+t,r],["M",n,r-t],["L",n,r+t]]},xa=function(n,r,t){return[["M",n-t,r],["L",n+t,r]]},Ni=function(n,r,t){return[["M",n-t,r],["L",n+t,r]]},_a=Ni,Sa=function(n,r,t){return[["M",n-t,r],["A",t/2,t/2,0,1,1,n,r],["A",t/2,t/2,0,1,0,n+t,r]]},wa=function(n,r,t){return[["M",n-t-1,r-2.5],["L",n,r-2.5],["L",n,r+2.5],["L",n+t+1,r+2.5]]},Aa=function(n,r,t){return[["M",n-t-1,r+2.5],["L",n,r+2.5],["L",n,r-2.5],["L",n+t+1,r-2.5]]},ka=function(n,r,t){return[["M",n-(t+1),r+2.5],["L",n-t/2,r+2.5],["L",n-t/2,r-2.5],["L",n+t/2,r-2.5],["L",n+t/2,r+2.5],["L",n+t+1,r+2.5]]};function La(n,r){return[["M",n-5,r+2.5],["L",n-5,r],["L",n,r],["L",n,r-3],["L",n,r+3],["L",n+6.5,r+3]]}var Pa=function(n,r,t){return[["M",n-t,r-t],["L",n+t,r],["L",n-t,r+t],["Z"]]},Ca=function(n,r,t){var e=t,i=t*.2,a=t*.7;return[["M",n-e,r],["A",e,e,0,1,0,n+e,r],["A",e,e,0,1,0,n-e,r],["Z"],["M",n-a,r],["L",n-i,r],["M",n+i,r],["L",n+a,r],["M",n,r-a],["L",n,r-i],["M",n,r+i],["L",n,r+a]]};import{isObject as Cl,isString as Tl,isFunction as El}from"/@antv/util@^3.3.10?target=es2022";function Ta(n){var r="default";if(Cl(n)&&n instanceof Image)r="image";else if(El(n))r="symbol";else if(Tl(n)){var t=new RegExp("data:(image|text)");n.match(t)?r="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(n)?r="url":r="symbol"}return r}function Hl(n){var r=Ta(n);return["base64","url","image"].includes(r)?"image":n&&r==="symbol"?"path":null}var F=(function(n){Bl(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.render=function(t,e){var i=t.x,a=i===void 0?0:i,o=t.y,s=o===void 0?0:o,l=this.getSubShapeStyle(t),u=l.symbol,c=l.size,p=c===void 0?16:c,f=Ol(l,["symbol","size"]),d=Hl(u);K(!!d,A(e),function(h){h.maybeAppendByClassName("marker",d).attr("className","marker ".concat(d,"-marker")).call(function(v){if(d==="image"){var m=p*2;v.styles({img:u,width:m,height:m,x:a-p,y:s-p})}else{var m=p/2,g=Ml(u)?u:r.getSymbol(u);v.styles(Nl({d:g?.(a,s,m)},f))}})})},r.MARKER_SYMBOL_MAP=new Map,r.registerSymbol=function(t,e){r.MARKER_SYMBOL_MAP.set(t,e)},r.getSymbol=function(t){return r.MARKER_SYMBOL_MAP.get(t)},r.getSymbols=function(){return Array.from(r.MARKER_SYMBOL_MAP.keys())},r})(Il);F.registerSymbol("cross",ga);F.registerSymbol("hyphen",xa);F.registerSymbol("line",Ei);F.registerSymbol("plus",ba);F.registerSymbol("tick",ya);F.registerSymbol("circle",er);F.registerSymbol("point",ca);F.registerSymbol("bowtie",ma);F.registerSymbol("hexagon",va);F.registerSymbol("square",pa);F.registerSymbol("diamond",fa);F.registerSymbol("triangle",da);F.registerSymbol("triangle-down",ha);F.registerSymbol("line",Ei);F.registerSymbol("dot",Ni);F.registerSymbol("dash",_a);F.registerSymbol("smooth",Sa);F.registerSymbol("hv",wa);F.registerSymbol("vh",Aa);F.registerSymbol("hvh",ka);F.registerSymbol("vhv",La);F.registerSymbol("focus",Ca);function Wl(n,r,t,e,i){var a=n.getLocalBounds(),o=0,s=0;e==="start"&&(o=r),e==="center"&&(o=-a.halfExtents[0]),e==="end"&&(o=-r-a.halfExtents[0]*2),i==="top"&&(s=t+a.halfExtents[1]),i==="middle"&&(s=0),i==="bottom"&&(s=t-a.halfExtents[1]*2),n.setLocalPosition([o,s])}function Dl(n,r){var t=n.getLocalBounds();return{x:t.halfExtents[0]?t.max[0]+(r||0):n.style.x,y:t.halfExtents[1]?(t.min[1]+t.max[1])/2:n.style.y}}var Zt=(function(n){zl(r,n);function r(t){return n.call(this,t,{padding:4,spacing:4})||this}return r.prototype.render=function(t,e){var i=t.padding,a=i===void 0?0:i,o=t.marker,s=t.text,l=t.radius,u=t.spacing,c=t.align,p=t.verticalAlign,f=P(t,"label"),d=P(t,"background"),h=Fl(H(a),4),v=h[0],m=h[1],g=h[2],y=h[3],b=dt(e,".tag-content","g").attr("className","tag-content").style("zIndex",0).node(),_=o||{symbol:"triangle",size:0},x=dt(b,".tag-marker",function(){return new F({style:_})}).attr("className","tag-marker").update(_).node(),S=Dl(x,u),w=S.x,L=S.y;A(b).maybeAppendByClassName("tag-text",function(){return new Ht}).styles(Bi(Bi({fontSize:12,text:Rl(s)?"":"".concat(s),x:w,y:L},f),{textBaseline:"middle"})).call(function(T){s||T.remove()}),Wl(b,y,v,c||"start",p||"top");var C=b.getLocalBounds();A(e).maybeAppendByClassName("tag-background","rect").styles(Bi({zIndex:-1,y:C.min[1]-v,x:C.min[0]-y,width:d!==null?y+m+C.halfExtents[0]*2:0,height:d!==null?v+g+C.halfExtents[1]*2:0,radius:l??2,fill:"#fafafa",stroke:"#d9d9d9",lineWidth:1},d))},r.tag="tag",r})(Gl);import{__assign as Le,__extends as Vl,__read as jl}from"/tslib?target=es2022";import{deepMix as Oi,isUndefined as Yl}from"/@antv/util@^3.3.10?target=es2022";import{Component as Ul}from"./esm/core.mjs";var Ea={small:{textFontSize:10,buttonWidth:40,buttonHeight:20,markerSize:8},middle:{textFontSize:12,buttonWidth:60,buttonHeight:30,markerSize:12},large:{textFontSize:16,buttonWidth:80,buttonHeight:40,markerSize:16}},Na={primary:{default:{textFill:"#fff",buttonFill:"#1890ff",buttonLineWidth:0,markerFill:"#1890ff"},active:{buttonFill:"#40a9ff",markerFill:"#40a9ff"},disabled:{}},dashed:{default:{buttonFill:"transparent",buttonStroke:"#bbb",buttonLineDash:[5,5]},active:{},disabled:{}},link:{default:{textFill:"#1890ff",buttonFill:"transparent",buttonLineWidth:0,markerFill:"#1890ff"},active:{},disabled:{}},text:{default:{textFill:"#000",buttonFill:"transparent",buttonLineWidth:0,markerFill:"#000"},active:{},disabled:{}},default:{default:{textFill:"#000",buttonFill:"transparent",buttonStroke:"#bbb",markerFill:"#bbb"},active:{textFill:"#1890ff",buttonStroke:"#1890ff",markerStroke:"#1890ff"},disabled:{}}},rr={strict:{textFill:"#b8b8b8"},buttonStroke:"#d9d9d9",buttonFill:"#f5f5f5",markerStroke:"#d9d9d9"};var Ba=(function(n){Vl(r,n);function r(t){var e=n.call(this,t,{cursor:"pointer",padding:10,size:"middle",type:"default",text:"",state:"default",markerAlign:"left",markerSpacing:5,default:{buttonLineWidth:1,buttonRadius:5},active:{}})||this;return e.state="default",e.clickEvents=function(){var i=e.attributes,a=i.onClick,o=i.state;o!=="disabled"&&a?.call(e,e)},e.mouseenterEvent=function(){var i=e.attributes.state;i!=="disabled"&&(e.state="active",e.render(e.attributes,e))},e.mouseleaveEvent=function(){var i=e.attributes.state;e.state=i,e.render(e.attributes,e)},e}return Object.defineProperty(r.prototype,"markerSize",{get:function(){var t=this.attributes.markerSymbol,e=this.getStyle("marker"),i=t?e?.size||2:0;return i},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textAvailableWidth",{get:function(){var t=this.attributes,e=t.markerSymbol,i=t.padding,a=t.ellipsis,o=t.width,s=t.markerSpacing;if(!a)return 1/0;var l=Yl(o)?this.getStyle("button").width:o;return e?l-i*2-s-this.markerSize:l-i*2},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buttonHeight",{get:function(){var t=this.attributes.height;return t?+t:+this.getStyle("button").height},enumerable:!1,configurable:!0}),r.prototype.getStyle=function(t){var e=this.attributes,i=e.size,a=e.type,o=this.state,s=Oi({},Ea[i],Na[a][o],this.attributes.default,this.attributes[o]);return o==="disabled"&&(Object.keys(s).forEach(function(l){l in rr&&(s[l]=rr[l])}),Object.keys(rr.strict).forEach(function(l){s[l]=rr.strict[l]}),Oi(s,this.attributes.disabled||{})),P(s,t)},r.prototype.render=function(t,e){var i=t.text,a=i===void 0?"":i,o=t.padding,s=o===void 0?0:o,l=t.markerSymbol,u=t.markerSpacing,c=u===void 0?0:u,p=t.x,f=p===void 0?0:p,d=t.y,h=d===void 0?0:d;e.attr({cursor:this.state==="disabled"?"not-allowed":"pointer"});var v=jl(H(s),4),m=v[0],g=v[1],y=v[2],b=v[3],_=this.buttonHeight,x=this.getStyle("marker"),S=this.markerSize,w=Le(Le({},x),{symbol:l,x:f+b+S/2,y:h+_/2,size:S}),L=dt(e,".marker",function(){return new F({className:"marker",style:w})}).update({style:w}).node(),C=L.getLocalBounds(),T=this.getStyle("text");this.textShape=dt(e,".text","text").attr("className","text").styles(Le(Le({x:f+(S?C.max[0]+c:b),y:h+_/2},T),{text:a,textAlign:"left",textBaseline:"middle",wordWrap:!0,wordWrapWidth:this.textAvailableWidth,maxLines:1,textOverflow:"..."})).node();var N=this.textShape.getLocalBounds(),B=this.getStyle("button");A(e).maybeAppendByClassName(".background","rect").styles(Le(Le({zIndex:-1},B),{x:f,y:h,height:_,width:b+(S?S+c:0)+N.halfExtents[0]*2+g}))},r.prototype.update=function(t){t===void 0&&(t={}),this.attr(Oi({},this.attributes,t));var e=this.attributes.state;this.state=e,this.render(this.attributes,this)},r.prototype.setState=function(t){this.update({state:t})},r.prototype.hide=function(){this.style.visibility="hidden"},r.prototype.show=function(){this.style.visibility="visible"},r.prototype.bindEvents=function(){this.addEventListener("click",this.clickEvents),this.addEventListener("mouseenter",this.mouseenterEvent),this.addEventListener("mouseleave",this.mouseleaveEvent)},r.tag="button",r})(Ul);import{__assign as Pe,__extends as Xl,__read as ql}from"/tslib?target=es2022";import{deepMix as Oa,isNil as Ma,pick as Zl}from"/@antv/util@^3.3.10?target=es2022";import{Component as Kl}from"./esm/core.mjs";var Ia=(function(n){Xl(r,n);function r(t){return n.call(this,Oa({},r.defaultOptions,t))||this}return r.prototype.render=function(t,e){var i=t.x,a=t.y,o=t.items,s=t.textStyle,l=t.padding,u=l===void 0?0:l,c=t.width,p=t.separator,f=ql(H(u),3),d=f[0],h=f[1],v=f[2],m=P(t,"tag"),g=dt(e,".container","g").styles({className:"container",x:i+v,y:a+d}),y=0,b=0;g.node().removeChildren();for(var _=function(w){var L=o[w],C=new Zt({className:"breadcrumb-item",style:Pe(Pe(Pe(Pe({transform:"translate(".concat(y,", ").concat(b,")")},m),{text:Ma(L.text)?L.id:L.text}),Zl(L,["marker"])),{padding:0})});g.append(function(){return C});var T=C.getLocalBounds(),N=T.halfExtents[0]*2,B=T.halfExtents[1]*2;if(y+=N,!Ma(c)){var R=c-h;y>R&&(C.attr({transform:"translateY(".concat(b+B,")")}),y=N,b+=B)}x.bindInnerEvents(C,L);var D=p||{},V=D.spacing,J=V===void 0?0:V,vt=D.text,gt=vt===void 0?"/":vt,Lt=D.style;if(w!==o.length-1){var at=new Ht({className:"".concat(r.tag,"-separator"),id:"".concat(r.tag,"-separator-").concat(w),style:Pe(Pe({x:y+J,y:b+B/2},Lt),{text:gt,textAlign:"end",textBaseline:"middle"})});g.append(function(){return at});var St=at.getLocalBounds();y+=St.halfExtents[0]*2+J}},x=this,S=0;S<o.length;S++)_(S)},r.prototype.update=function(t){this.attr(Oa({},this.attributes,t)),this.render(this.attributes,this)},r.prototype.bindInnerEvents=function(t,e){var i=this.attributes,a=i.items,o=i.onClick;o&&t.addEventListener("click",function(){o.call(t,e.id,e,a)})},r.tag="breadcrumb",r.defaultOptions={style:{separator:{text:"/",style:{fontSize:14,fill:"rgba(0, 0, 0, 0.45)"},spacing:8},textStyle:{default:{fontSize:14,fill:"rgba(0, 0, 0, 0.45)"},active:{fill:"#5468ff",cursor:"pointer"}},padding:[8,8,8,8]}},r})(Kl);import{__assign as nr,__extends as fu,__read as zi}from"/tslib?target=es2022";import{Band as du,Linear as Fi}from"/@antv/scale@^0.4.16?target=es2022";import{clone as hu,isArray as vu,isFunction as mu,isNumber as gu}from"/@antv/util@^3.3.10?target=es2022";import{Component as yu}from"./esm/core.mjs";import{__assign as $l,__extends as Jl,__rest as Ql}from"/tslib?target=es2022";import{deepMix as tu}from"/@antv/util@^3.3.10?target=es2022";var Ha=(function(n){Jl(r,n);function r(t){var e=this,i=t.style,a=Ql(t,["style"]);return e=n.call(this,tu({},{type:"column"},$l({style:i},a)))||this,e.columnsGroup=new Z({name:"columns"}),e.appendChild(e.columnsGroup),e.render(),e}return r.prototype.render=function(){var t=this.attributes,e=t.columns,i=t.x,a=t.y;this.columnsGroup.style.transform="translate(".concat(i,", ").concat(a,")"),A(this.columnsGroup).selectAll(".column").data(e.flat()).join(function(o){return o.append("rect").attr("className","column").each(function(s){this.attr(s)})},function(o){return o.each(function(s){this.attr(s)})},function(o){return o.remove()})},r.prototype.update=function(t){this.attr(M({},this.attributes,t)),this.render()},r.prototype.clear=function(){this.removeChildren()},r})(xr);import{__assign as eu,__extends as ru,__rest as iu}from"/tslib?target=es2022";import{deepMix as nu}from"/@antv/util@^3.3.10?target=es2022";var za=(function(n){ru(r,n);function r(t){var e=this,i=t.style,a=iu(t,["style"]);return e=n.call(this,nu({},{type:"lines"},eu({style:i},a)))||this,e.linesGroup=e.appendChild(new Z),e.areasGroup=e.appendChild(new Z),e.render(),e}return r.prototype.render=function(){var t=this.attributes,e=t.lines,i=t.areas,a=t.x,o=t.y;this.style.transform="translate(".concat(a,", ").concat(o,")"),e&&this.renderLines(e),i&&this.renderAreas(i)},r.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},r.prototype.update=function(t){this.attr(M({},this.attributes,t)),this.render()},r.prototype.renderLines=function(t){A(this.linesGroup).selectAll(".line").data(t).join(function(e){return e.append("path").attr("className","line").each(function(i){this.attr(i)})},function(e){return e.each(function(i){this.attr(i)})},function(e){return e.remove()})},r.prototype.renderAreas=function(t){A(this.linesGroup).selectAll(".area").data(t).join(function(e){return e.append("path").attr("className","area").each(function(i){this.attr(i)})},function(e){return e.each(function(i){this.style(i)})},function(e){return e.remove()})},r})(xr);import{__read as Tt,__spreadArray as Ct}from"/tslib?target=es2022";import{clone as au,isEqual as ou,clamp as su}from"/@antv/util@^3.3.10?target=es2022";function Fa(n,r){var t,e=r.x,i=r.y,a=Tt(i.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(t=Tt([o,s],2),s=t[0],o=t[1]),n.map(function(l){var u=l.map(function(c,p){return[e.map(p),su(i.map(c),s,o)]});return u})}function Ce(n,r){r===void 0&&(r=!1);var t=r?n.length-1:0,e=n.map(function(i,a){return Ct([a===t?"M":"L"],Tt(i),!1)});return r?e.reverse():e}function ir(n,r){if(r===void 0&&(r=!1),n.length<=2)return Ce(n);for(var t=[],e=n.length,i=0;i<e;i+=1){var a=r?n[e-i-1]:n[i];ou(a,t.slice(-2))||t.push.apply(t,Ct([],Tt(a),!1))}var o=zr(t,!1);return r?o.unshift(Ct(["M"],Tt(n[e-1]),!1)):o.unshift(Ct(["M"],Tt(n[0]),!1)),o}function Mi(n,r,t){var e=au(n);return e.push(["L",r,t],["L",0,t],["Z"]),e}function Ra(n,r,t,e){return n.map(function(i){return Mi(r?ir(i):Ce(i),t,e)})}function Ga(n,r,t){for(var e=[],i=n.length-1;i>=0;i-=1){var a=n[i],o=Ce(a),s=void 0;if(i===0)s=Mi(o,r,t);else{var l=n[i-1],u=Ce(l,!0);u[0][0]="L",s=Ct(Ct(Ct([],Tt(o),!1),Tt(u),!1),[["Z"]],!1)}e.push(s)}return e}function Wa(n,r,t){for(var e=[],i=n.length-1;i>=0;i-=1){var a=n[i],o=ir(a),s=void 0;if(i===0)s=Mi(o,r,t);else{var l=n[i-1],u=ir(l,!0),c=a[0];u[0][0]="L",s=Ct(Ct(Ct([],Tt(o),!1),Tt(u),!1),[Ct(["M"],Tt(c),!1),["Z"]],!1)}e.push(s)}return e}import{__read as lu}from"/tslib?target=es2022";import{clone as uu,min as Da,minBy as cu,max as Va,maxBy as pu}from"/@antv/util@^3.3.10?target=es2022";function Ii(n){return n.length===0?[0,0]:[Da(cu(n,function(r){return Da(r)||0})),Va(pu(n,function(r){return Va(r)||0}))]}function Hi(n){for(var r=uu(n),t=r[0].length,e=lu([Array(t).fill(0),Array(t).fill(0)],2),i=e[0],a=e[1],o=0;o<r.length;o+=1)for(var s=r[o],l=0;l<t;l+=1)s[l]>=0?(s[l]+=i[l],i[l]=s[l]):(s[l]+=a[l],a[l]=s[l]);return r}var Xr=(function(n){fu(r,n);function r(t){return n.call(this,t,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(r.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||t?.length===0)return[[]];var e=hu(t);return gu(e[0])?[e]:e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this.attributes.isStack?Hi(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseline",{get:function(){var t=this.scales.y,e=zi(t.getOptions().domain||[0,0],2),i=e[0],a=e[1];return a<0?t.map(a):t.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"containerShape",{get:function(){var t=this.attributes,e=t.width,i=t.height;return{width:e,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linesStyle",{get:function(){var t=this,e=this.attributes,i=e.type,a=e.isStack,o=e.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=P(this.attributes,"area"),l=P(this.attributes,"line"),u=this.containerShape.width,c=this.data;if(c[0].length===0)return{lines:[],areas:[]};var p=this.scales,f=p.x,d=p.y,h=Fa(c,{type:"line",x:f,y:d}),v=[];if(s){var m=this.baseline;a?v=o?Wa(h,u,m):Ga(h,u,m):v=Ra(h,o,u,m)}return{lines:h.map(function(g,y){return nr({stroke:t.getColor(y),d:o?ir(g):Ce(g)},l)}),areas:v.map(function(g,y){return nr({d:g,fill:t.getColor(y)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"columnsStyle",{get:function(){var t=this,e=P(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var l=this.containerShape.height,u=this.rawData;if(!u)return{columns:[]};a&&(u=Hi(u));var c=this.createScales(u),p=c.x,f=c.y,d=zi(Ii(u),2),h=d[0],v=d[1],m=new Fi({domain:[0,v-(h>0?0:h)],range:[0,l*s]}),g=p.getBandWidth(),y=this.rawData;return{columns:u.map(function(b,_){return b.map(function(x,S){var w=g/u.length,L=function(){return{x:p.map(S)+w*_,y:x>=0?f.map(x):f.map(0),width:w,height:m.map(Math.abs(x))}},C=function(){return{x:p.map(S),y:f.map(x),width:g,height:m.map(y[_][S])}};return nr(nr({fill:t.getColor(_)},e),a?C():L())})})}},enumerable:!1,configurable:!0}),r.prototype.render=function(t,e){dt(e,".container","rect").attr("className","container").node();var i=t.type,a=t.x,o=t.y,s="spark".concat(i),l=nr({x:a,y:o},i==="line"?this.linesStyle:this.columnsStyle);A(e).selectAll(".spark").data([i]).join(function(u){return u.append(function(c){return c==="line"?new za({className:s,style:l}):new Ha({className:s,style:l})}).attr("className","spark ".concat(s))},function(u){return u.update(l)},function(u){return u.remove()})},r.prototype.getColor=function(t){var e=this.attributes.color;return vu(e)?e[t%e.length]:mu(e)?e.call(null,t):e},r.prototype.createScales=function(t){var e,i,a=this.attributes,o=a.type,s=a.scale,l=a.range,u=l===void 0?[]:l,c=a.spacing,p=this.containerShape,f=p.width,d=p.height,h=zi(Ii(t),2),v=h[0],m=h[1],g=new Fi({domain:[(e=u[0])!==null&&e!==void 0?e:v,(i=u[1])!==null&&i!==void 0?i:m],range:[d,d*(1-s)]});return o==="line"?{type:o,x:new Fi({domain:[0,t[0].length-1],range:[0,f]}),y:g}:{type:o,x:new du({domain:t[0].map(function(y,b){return b}),range:[0,f],paddingInner:c,paddingOuter:c/2,align:.5}),y:g}},r.tag="sparkline",r})(yu);import{__assign as $,__extends as _u,__read as Gt}from"/tslib?target=es2022";import{CustomEvent as Ua}from"/@antv/g@^6.1.11?target=es2022";import{clamp as Su}from"/@antv/util@^3.3.10?target=es2022";import{transition as Gi}from"./esm/animation.mjs";import{Component as wu}from"./esm/core.mjs";var qr={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},Zr={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},Kr={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},Et=q({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider");import{__assign as Rt,__extends as ja,__read as bu,__rest as Ri}from"/tslib?target=es2022";import{Component as Ya}from"./esm/core.mjs";var At=q({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),xu=(function(n){ja(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.render=function(t,e){var i=t.x,a=t.y,o=t.size,s=o===void 0?10:o,l=t.radius,u=l===void 0?s/4:l,c=t.orientation,p=t.classNamePrefix,f=Ri(t,["x","y","size","radius","orientation","classNamePrefix"]),d=s,h=d*2.4,v=p?"".concat(At.iconRect.name," ").concat(p,"handle-icon-rect"):At.iconRect.name,m=function(S){return p?"".concat(At.iconLine,"-").concat(S," ").concat(p,"handle-icon-line"):"".concat(At.iconLine,"-").concat(S)},g=A(e).maybeAppendByClassName(At.iconRect,"rect").attr("className",v).styles(Rt(Rt({},f),{width:d,height:h,radius:u,x:i-d/2,y:a-h/2,transformOrigin:"center"})),y=i+1/3*d-d/2,b=i+2/3*d-d/2,_=a+1/4*h-h/2,x=a+3/4*h-h/2;g.maybeAppendByClassName("".concat(At.iconLine,"-1"),"line").attr("className",m(1)).styles(Rt({x1:y,x2:y,y1:_,y2:x},f)),g.maybeAppendByClassName("".concat(At.iconLine,"-2"),"line").attr("className",m(2)).styles(Rt({x1:b,x2:b,y1:_,y2:x},f)),c==="vertical"&&(g.node().style.transform="rotate(90)")},r})(Ya),$r=(function(n){ja(r,n);function r(t){return n.call(this,t,Kr)||this}return r.prototype.renderLabel=function(t){var e=this,i=this.attributes,a=i.x,o=i.y,s=i.showLabel,l=P(this.attributes,"label"),u=l.x,c=u===void 0?0:u,p=l.y,f=p===void 0?0:p,d=l.transform,h=l.transformOrigin,v=Ri(l,["x","y","transform","transformOrigin"]),m=bu(ot(v,[]),2),g=m[0],y=m[1],b=A(t).maybeAppendByClassName(At.labelGroup,"g").styles(y),_=Rt(Rt({},Zr),g),x=_.text,S=Ri(_,["text"]);K(!!s,b,function(w){e.label=w.maybeAppendByClassName(At.label,"text").styles(Rt(Rt({},S),{x:a+c,y:o+f,transform:d,transformOrigin:h,text:"".concat(x)})),e.label.on("mousedown",function(L){L.stopPropagation()}),e.label.on("touchstart",function(L){L.stopPropagation()})})},r.prototype.renderIcon=function(t){var e=this.attributes,i=e.x,a=e.y,o=e.orientation,s=e.type,l=e.classNamePrefix,u=Rt(Rt({x:i,y:a,orientation:o,classNamePrefix:l},qr),P(this.attributes,"icon")),c=this.attributes.iconShape,p=c===void 0?function(){return new xu({style:u})}:c,f=A(t).maybeAppendByClassName(At.iconGroup,"g");f.selectAll(At.icon.class).data([p]).join(function(d){return d.append(typeof p=="string"?p:function(){return p(s)}).attr("className",At.icon.name)},function(d){return d.update(u)},function(d){return d.remove()})},r.prototype.render=function(t,e){this.renderIcon(e),this.renderLabel(e)},r})(Ya);var Te=(function(n){_u(r,n);function r(t){var e=n.call(this,t,$($($({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},pt(Kr,"handle")),pt(qr,"handleIcon")),pt(Zr,"handleLabel")))||this;return e.range=[0,1],e.onDragStart=function(i){return function(a){a.stopPropagation(),e.target=i,e.prevPos=e.getOrientVal(Xe(a));var o=e.availableSpace,s=o.x,l=o.y,u=e.getBBox(),c=u.x,p=u.y;e.selectionStartPos=e.getRatio(e.prevPos-e.getOrientVal([s,l])-e.getOrientVal([+c,+p])),e.selectionWidth=0,document.addEventListener("pointermove",e.onDragging),document.addEventListener("pointerup",e.onDragEnd)}},e.onDragging=function(i){var a=e.attributes,o=a.slidable,s=a.brushable,l=a.type;i.stopPropagation();var u=e.getOrientVal(Xe(i)),c=u-e.prevPos;if(c){var p=e.getRatio(c);switch(e.target){case"start":o&&e.setValuesOffset(p);break;case"end":o&&e.setValuesOffset(0,p);break;case"selection":o&&e.setValuesOffset(p,p);break;case"track":if(!s)return;e.selectionWidth+=p,l==="range"?e.innerSetValues([e.selectionStartPos,e.selectionStartPos+e.selectionWidth].sort(),!0):e.innerSetValues([0,e.selectionStartPos+e.selectionWidth],!0);break;default:break}e.prevPos=u}},e.onDragEnd=function(){document.removeEventListener("pointermove",e.onDragging),document.removeEventListener("pointermove",e.onDragging),document.removeEventListener("pointerup",e.onDragEnd),e.target="",e.updateHandlesPosition(!1)},e.onValueChange=function(i){var a=e.attributes,o=a.onChange,s=a.type,l=s==="range"?i:i[1],u=s==="range"?e.getValues():e.getValues()[1],c=new Ua("valuechange",{detail:{oldValue:l,value:u}});e.dispatchEvent(c),o?.(u)},e.selectionStartPos=0,e.selectionWidth=0,e.prevPos=0,e.target="",e}return Object.defineProperty(r.prototype,"values",{get:function(){return this.attributes.values},set:function(t){this.attributes.values=this.clampValues(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sparklineStyle",{get:function(){var t=this.attributes.orientation;if(t!=="horizontal")return null;var e=P(this.attributes,"sparkline");return $($({zIndex:0},this.availableSpace),e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shape",{get:function(){var t=this.attributes,e=t.trackLength,i=t.trackSize,a=Gt(this.getOrientVal([[e,i],[i,e]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.x,i=t.y,a=t.padding,o=Gt(H(a),4),s=o[0],l=o[1],u=o[2],c=o[3],p=this.shape,f=p.width,d=p.height;return{x:c,y:s,width:f-(c+l),height:d-(s+u)}},enumerable:!1,configurable:!0}),r.prototype.getValues=function(){return this.values},r.prototype.setValues=function(t,e){t===void 0&&(t=[0,0]),e===void 0&&(e=!1),this.attributes.values=t;var i=e===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},r.prototype.updateSelectionArea=function(t){var e=this.calcSelectionArea();this.foregroundGroup.selectAll(Et.selection.class).each(function(i,a){Gi(this,e[a],t)})},r.prototype.updateHandlesPosition=function(t){this.attributes.showHandle&&(this.startHandle&&Gi(this.startHandle,this.getHandleStyle("start"),t),this.endHandle&&Gi(this.endHandle,this.getHandleStyle("end"),t))},r.prototype.innerSetValues=function(t,e){t===void 0&&(t=[0,0]),e===void 0&&(e=!1);var i=this.values,a=this.clampValues(t);this.attributes.values=a,this.setValues(a),e&&this.onValueChange(i)},r.prototype.renderTrack=function(t){var e=this.attributes,i=e.x,a=e.y,o=P(this.attributes,"track");this.trackShape=A(t).maybeAppendByClassName(Et.track,"rect").styles($($({x:i,y:a},this.shape),o))},r.prototype.renderBrushArea=function(t){var e=this.attributes,i=e.x,a=e.y,o=e.brushable;this.brushArea=A(t).maybeAppendByClassName(Et.brushArea,"rect").styles($({x:i,y:a,fill:"transparent",cursor:o?"crosshair":"default"},this.shape))},r.prototype.renderSparkline=function(t){var e=this,i=this.attributes,a=i.x,o=i.y,s=i.orientation,l=A(t).maybeAppendByClassName(Et.sparklineGroup,"g");K(s==="horizontal",l,function(u){var c=$($({},e.sparklineStyle),{x:a,y:o});u.maybeAppendByClassName(Et.sparkline,function(){return new Xr({style:c})}).update(c)})},r.prototype.renderHandles=function(){var t=this,e,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],l=a?s:[],u=this;(e=this.foregroundGroup)===null||e===void 0||e.selectAll(Et.handle.class).data(l.map(function(c){return{type:c}}),function(c){return c.type}).join(function(c){return c.append(function(p){var f=p.type;return new $r({style:t.getHandleStyle(f)})}).each(function(p){var f=p.type;this.attr("class","".concat(Et.handle.name," ").concat(f,"-handle"));var d="".concat(f,"Handle");u[d]=this,this.addEventListener("pointerdown",u.onDragStart(f))})},function(c){return c.each(function(p){var f=p.type;this.update(u.getHandleStyle(f))})},function(c){return c.each(function(p){var f=p.type,d="".concat(f,"Handle");u[d]=void 0}).remove()})},r.prototype.renderSelection=function(t){var e=this.attributes,i=e.x,a=e.y,o=e.type,s=e.selectionType;this.foregroundGroup=A(t).maybeAppendByClassName(Et.foreground,"g");var l=P(this.attributes,"selection"),u=function(p){return p.style("visibility",function(f){return f.show?"visible":"hidden"}).style("cursor",function(f){return s==="select"?"grab":s==="invert"?"crosshair":"default"}).styles($($({},l),{transform:"translate(".concat(i,", ").concat(a,")")}))},c=this;this.foregroundGroup.selectAll(Et.selection.class).data(o==="value"?[]:this.calcSelectionArea().map(function(p,f){return{style:$({},p),index:f,show:s==="select"?f===1:f!==1}}),function(p){return p.index}).join(function(p){return p.append("rect").attr("className",Et.selection.name).call(u).each(function(f,d){var h=this;d===1?(c.selectionShape=A(this),this.on("pointerdown",function(v){h.attr("cursor","grabbing"),c.onDragStart("selection")(v)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){h.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){h.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){h.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(p){return p.call(u)},function(p){return p.remove()}),this.updateSelectionArea(!1),this.renderHandles()},r.prototype.render=function(t,e){this.renderTrack(e),this.renderSparkline(e),this.renderBrushArea(e),this.renderSelection(e)},r.prototype.clampValues=function(t,e){var i;e===void 0&&(e=4);var a=Gt(this.range,2),o=a[0],s=a[1],l=Gt(this.getValues().map(function(m){return Yt(m,e)}),2),u=l[0],c=l[1],p=Array.isArray(t)?t:[u,t??c],f=Gt((p||[u,c]).map(function(m){return Yt(m,e)}),2),d=f[0],h=f[1];if(this.attributes.type==="value")return[0,Su(h,o,s)];d>h&&(i=Gt([h,d],2),d=i[0],h=i[1]);var v=h-d;return v>s-o?[o,s]:d<o?u===o&&c===h?[o,h]:[o,v+o]:h>s?c===s&&u===d?[d,s]:[s-v,s]:[d,h]},r.prototype.calcSelectionArea=function(t){var e=Gt(this.clampValues(t),2),i=e[0],a=e[1],o=this.availableSpace,s=o.x,l=o.y,u=o.width,c=o.height;return this.getOrientVal([[{y:l,height:c,x:s,width:i*u},{y:l,height:c,x:i*u+s,width:(a-i)*u},{y:l,height:c,x:a*u,width:(1-a)*u}],[{x:s,width:u,y:l,height:i*c},{x:s,width:u,y:i*c+l,height:(a-i)*c},{x:s,width:u,y:a*c,height:(1-a)*c}]])},r.prototype.calcHandlePosition=function(t){var e=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,l=i.height,u=Gt(this.clampValues(),2),c=u[0],p=u[1],f=t==="start"?-e:e,d=(t==="start"?c:p)*this.getOrientVal([s,l])+f;return{x:a+this.getOrientVal([d,s/2]),y:o+this.getOrientVal([l/2,d])}},r.prototype.inferTextStyle=function(t){var e=this.attributes.orientation;return e==="horizontal"?{}:t==="start"?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:t==="end"?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},r.prototype.calcHandleText=function(t){var e,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,l=i.autoFitLabel,u=P(this.attributes,"handle"),c=P(u,"label"),p=u.spacing,f=this.getHandleSize(),d=this.clampValues(),h=t==="start"?d[0]:d[1],v=s(h),m=new Ht({style:$($($({},c),this.inferTextStyle(t)),{text:v})}),g=m.getBBox(),y=g.width,b=g.height;if(m.destroy(),!l){if(a==="value")return{text:v,x:0,y:-b-p};var _=p+f+(o==="horizontal"?y/2:0);return e={text:v},e[o==="horizontal"?"x":"y"]=t==="start"?-_:_,e}var x=0,S=0,w=this.availableSpace,L=w.width,C=w.height,T=this.calcSelectionArea()[1],N=T.x,B=T.y,R=T.width,D=T.height,V=p+f;if(o==="horizontal"){var J=V+y/2;if(t==="start"){var vt=N-V-y;x=vt>0?-J:J}else{var gt=L-N-R-V>y;x=gt?J:-J}}else{var Lt=V,at=b+V;t==="start"?S=B-f>b?-at:Lt:S=C-(B+D)-f>b?at:-Lt}return{x,y:S,text:v}},r.prototype.getHandleLabelStyle=function(t){var e=P(this.attributes,"handleLabel");return $($($({},e),this.calcHandleText(t)),this.inferTextStyle(t))},r.prototype.getHandleIconStyle=function(){var t=this.attributes.handleIconShape,e=P(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return $({cursor:i,shape:t,size:a},e)},r.prototype.getHandleStyle=function(t){var e=this.attributes,i=e.x,a=e.y,o=e.showLabel,s=e.showLabelOnInteraction,l=e.orientation,u=this.calcHandlePosition(t),c=u.x,p=u.y,f=this.calcHandleText(t),d=o;return!o&&s&&(this.target?d=!0:d=!1),$($($({},pt(this.getHandleIconStyle(),"icon")),pt($($({},this.getHandleLabelStyle(t)),f),"label")),{transform:"translate(".concat(c+i,", ").concat(p+a,")"),orientation:l,showLabel:d,type:t,zIndex:3})},r.prototype.getHandleSize=function(){var t=this.attributes,e=t.handleIconSize,i=t.width,a=t.height;return e||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},r.prototype.getOrientVal=function(t){var e=Gt(t,2),i=e[0],a=e[1],o=this.attributes.orientation;return o==="horizontal"?i:a},r.prototype.setValuesOffset=function(t,e){e===void 0&&(e=0);var i=this.attributes.type,a=Gt(this.getValues(),2),o=a[0],s=a[1],l=i==="range"?t:0,u=[o+l,s+e].sort();this.innerSetValues(u,!0)},r.prototype.getRatio=function(t){var e=this.availableSpace,i=e.width,a=e.height;return t/this.getOrientVal([i,a])},r.prototype.dispatchCustomEvent=function(t,e,i){var a=this;t.on(e,function(o){o.stopPropagation(),a.dispatchEvent(new Ua(i,{detail:o}))})},r.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var t=this.brushArea;this.dispatchCustomEvent(t,"click","trackClick"),this.dispatchCustomEvent(t,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(t,"pointerleave","trackMouseleave"),t.on("pointerdown",this.onDragStart("track"))},r.prototype.onScroll=function(t){var e=this.attributes.scrollable;if(e){var i=t.deltaX,a=t.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s)}},r.tag="slider",r})(wu);import{__assign as Xa,__extends as Au,__read as ae}from"/tslib?target=es2022";import{CustomEvent as Ee}from"/@antv/g@^6.1.11?target=es2022";import{clamp as qa}from"/@antv/util@^3.3.10?target=es2022";import{Component as ku}from"./esm/core.mjs";var Za=(function(n){Au(r,n);function r(t){var e=n.call(this,t,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return e.range=[0,1],e.onValueChange=function(i){var a=e.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};e.dispatchEvent(new Ee("scroll",o)),e.dispatchEvent(new Ee("valuechange",o))}},e.onTrackClick=function(i){var a=e.attributes.slidable;if(a){var o=ae(e.getLocalPosition(),2),s=o[0],l=o[1],u=ae(e.padding,4),c=u[0],p=u[3],f=e.getOrientVal([s+p,l+c]),d=e.getOrientVal(be(i)),h=(d-f)/e.trackLength;e.setValue(h,!0)}},e.onThumbMouseenter=function(i){e.dispatchEvent(new Ee("thumbMouseenter",{detail:i.detail}))},e.onTrackMouseenter=function(i){e.dispatchEvent(new Ee("trackMouseenter",{detail:i.detail}))},e.onThumbMouseleave=function(i){e.dispatchEvent(new Ee("thumbMouseleave",{detail:i.detail}))},e.onTrackMouseleave=function(i){e.dispatchEvent(new Ee("trackMouseleave",{detail:i.detail}))},e}return Object.defineProperty(r.prototype,"padding",{get:function(){var t=this.attributes.padding;return H(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){var t=this.attributes.value,e=ae(this.range,2),i=e[0],a=e[1];return qa(t,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"trackLength",{get:function(){var t=this.attributes,e=t.viewportLength,i=t.trackLength,a=i===void 0?e:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"availableSpace",{get:function(){var t=this.attributes.trackSize,e=this.trackLength,i=ae(this.padding,4),a=i[0],o=i[1],s=i[2],l=i[3],u=ae(this.getOrientVal([[e,t],[t,e]]),2),c=u[0],p=u[1];return{x:l,y:a,width:+c-(l+o),height:+p-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"trackRadius",{get:function(){var t=this.attributes,e=t.isRound,i=t.trackSize;return e?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"thumbRadius",{get:function(){var t=this.attributes,e=t.isRound,i=t.thumbRadius;if(!e)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),r.prototype.getValues=function(t){t===void 0&&(t=this.value);var e=this.attributes,i=e.viewportLength,a=e.contentLength,o=i/a,s=ae(this.range,2),l=s[0],u=s[1],c=t*(u-l-o);return[c,c+o]},r.prototype.getValue=function(){return this.value},r.prototype.renderSlider=function(t){var e=this.attributes,i=e.x,a=e.y,o=e.orientation,s=e.trackSize,l=e.padding,u=e.slidable,c=P(this.attributes,"track"),p=P(this.attributes,"thumb"),f=Xa(Xa({x:i,y:a,brushable:!1,orientation:o,padding:l,selectionRadius:this.thumbRadius,showHandle:!1,slidable:u,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:s,values:this.getValues()},pt(c,"track")),pt(p,"selection"));this.slider=A(t).maybeAppendByClassName("scrollbar",function(){return new Te({style:f})}).update(f).node()},r.prototype.render=function(t,e){this.renderSlider(e)},r.prototype.setValue=function(t,e){e===void 0&&(e=!1);var i=this.attributes.value,a=ae(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues(qa(t,o,s)),e),this.onValueChange(i)},r.prototype.bindEvents=function(){var t=this;this.slider.addEventListener("trackClick",function(e){e.stopPropagation(),t.onTrackClick(e.detail)}),this.onHover()},r.prototype.getOrientVal=function(t){var e=this.attributes.orientation;return e==="horizontal"?t[0]:t[1]},r.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},r.tag="scrollbar",r})(ku);import{__extends as Fc,__read as He,__spreadArray as ze}from"/tslib?target=es2022";import{parseAnimationOption as Bo}from"./esm/animation.mjs";import{Component as Rc}from"./esm/core.mjs";import{deepMix as Ka}from"/@antv/util@^3.3.10?target=es2022";var G={gridGroup:"grid-group",mainGroup:"main-group",lineGroup:"line-group",tickGroup:"tick-group",labelGroup:"label-group",titleGroup:"title-group",grid:"grid",line:"line",lineFirst:"line-first",lineSecond:"line-second",tick:"tick",tickItem:"tick-item",label:"label",labelItem:"label-item",title:"title"};var Jr={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new me({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]},zg=Ka({},Jr,{style:{type:"arc"}}),Fg=Ka({},Jr,{style:{}}),E=q({mainGroup:G.mainGroup,gridGroup:G.gridGroup,grid:G.grid,lineGroup:G.lineGroup,line:G.line,tickGroup:G.tickGroup,tick:G.tick,tickItem:G.tickItem,labelGroup:G.labelGroup,label:G.label,labelItem:G.labelItem,titleGroup:G.titleGroup,title:G.title,lineFirst:G.lineFirst,lineSecond:G.lineSecond},"axis");import{__assign as so,__read as Me}from"/tslib?target=es2022";import{isFunction as ju}from"/@antv/util@^3.3.10?target=es2022";import{__assign as ar,__extends as Lu,__read as ht,__rest as Pu,__spreadArray as _t}from"/tslib?target=es2022";import{fadeOut as $a,onAnimateFinished as Ja,transition as Qa}from"./esm/animation.mjs";import{Component as Cu}from"./esm/core.mjs";var Ne=q({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function to(n){return n.reduce(function(r,t,e){return r.push(_t([e===0?"M":"L"],ht(t),!1)),r},[])}function Tu(n,r,t){var e=r.connect,i=e===void 0?"line":e,a=r.center;if(i==="line")return to(n);if(!a)return[];var o=jt(n[0],a),s=t?0:1;return n.reduce(function(l,u,c){return c===0?l.push(_t(["M"],ht(u),!1)):l.push(_t(["A",o,o,0,0,s],ht(u),!1)),l},[])}function Wi(n,r,t){return r.type==="surround"?Tu(n,r,t):to(n)}function Eu(n,r,t){var e=t.type,i=t.connect,a=t.center,o=t.closed,s=o?[["Z"]]:[],l=ht([Wi(n,t),Wi(r.slice().reverse(),t,!0)],2),u=l[0],c=l[1],p=ht([n[0],r.slice(-1)[0]],2),f=p[0],d=p[1],h=function(y,b){return[u,y,c,b,s].flat()};if(i==="line"||e==="surround")return h([_t(["L"],ht(d),!1)],[_t(["L"],ht(f),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=ht([jt(d,a),jt(f,a)],2),m=v[0],g=v[1];return h([_t(["A",m,m,0,0,1],ht(d),!1),_t(["L"],ht(d),!1)],[_t(["A",g,g,0,0,0],ht(f),!1),_t(["L"],ht(f),!1)])}function Nu(n,r,t,e){var i=t.animate,a=t.isBillboard,o=r.map(function(s,l){return{id:s.id||"grid-line-".concat(l),d:Wi(s.points,t)}});return n.selectAll(Ne.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(l,u){var c=Q(Ze(ar({d:l.d},e)),[l,u,o]);this.attr(ar({class:Ne.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},c))})},function(s){return s.transition(function(l,u){var c=Q(Ze(ar({d:l.d},e)),[l,u,o]);return Qa(this,c,i.update)})},function(s){return s.transition(function(){var l=this,u=$a(this,i.exit);return Ja(u,function(){return l.remove()}),u})}).transitions()}function Bu(n,r,t){var e=t.animate,i=t.connect,a=t.areaFill;if(r.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(h){return o[h%o.length]},l=[],u=0;u<r.length-1;u++){var c=ht([r[u].points,r[u+1].points],2),p=c[0],f=c[1],d=Eu(p,f,t);l.push({d,fill:s(u)})}return n.selectAll(Ne.region.class).data(l,function(h,v){return v}).join(function(h){return h.append("path").each(function(v,m){var g=Q(v,[v,m,l]);this.attr(g)}).attr("className",Ne.region.name)},function(h){return h.transition(function(v,m){var g=Q(v,[v,m,l]);return Qa(this,g,e.update)})},function(h){return h.transition(function(){var v=this,m=$a(this,e.exit);return Ja(m,function(){return v.remove()}),m})}).transitions()}function Ou(n){var r=n.data,t=r===void 0?[]:r,e=n.closed;return e?t.map(function(i){var a=i.points,o=ht(a,1),s=o[0];return ar(ar({},i),{points:_t(_t([],ht(a),!1),[s],!1)})}):t}var eo=(function(n){Lu(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.render=function(t,e){var i=t.type,a=t.center,o=t.areaFill,s=t.closed,l=Pu(t,["type","center","areaFill","closed"]),u=Ou(t),c=A(e).maybeAppendByClassName(Ne.lineGroup,"g"),p=A(e).maybeAppendByClassName(Ne.regionGroup,"g"),f=Nu(c,u,t,l),d=Bu(p,u,t);return _t(_t([],ht(f),!1),ht(d),!1)},r})(Cu);import{__read as U,__spreadArray as oe}from"/tslib?target=es2022";import{get as Iu}from"/@antv/util@^3.3.10?target=es2022";import{transition as ro}from"./esm/animation.mjs";import{__read as Qr,__spreadArray as Ug}from"/tslib?target=es2022";import{isFunction as Mu}from"/@antv/util@^3.3.10?target=es2022";function ti(n,r){return Object.fromEntries(Object.entries(n).map(function(t){var e=Qr(t,2),i=e[0],a=e[1];return[i,Q(a,r)]}))}function Be(n,r){return r&&Mu(r)?n.filter(r):n}function Di(n,r){var t=r.startAngle,e=r.endAngle;return(e-t)*n+t}function Oe(n,r){if(r.type==="linear"){var t=Qr(r.startPos,2),e=t[0],i=t[1],a=Qr(r.endPos,2),o=a[0],s=a[1],l=Qr([o-e,s-i],2),u=l[0],c=l[1];return Se([u,c])}var p=wt(Di(n,r));return[-Math.sin(p),Math.cos(p)]}function or(n,r,t){var e=Oe(n,t);return Hr(e,r!=="positive")}function Kt(n,r){return or(n,r.labelDirection,r)}function sr(n,r,t){return t?"".concat(n," ").concat(t,"axis-").concat(r):n}function lt(n,r,t,e){return e&&n.attr("className",sr(r.name,t,e)),n}function Hu(n,r){var t=U(r.startPos,2),e=t[0],i=t[1],a=U(r.endPos,2),o=a[0],s=a[1],l=U([o-e,s-i],2),u=l[0],c=l[1];return[e+u*n,i+c*n]}function zu(n,r){var t=r.radius,e=U(r.center,2),i=e[0],a=e[1],o=wt(Di(n,r));return[i+t*Math.cos(o),a+t*Math.sin(o)]}function se(n,r){return r.type==="linear"?Hu(n,r):zu(n,r)}function lr(n){return Oe(0,n)[1]===0}function ei(n){return Oe(0,n)[0]===0}function ao(n,r){return r-n===360}function io(n,r,t,e,i){var a=r-n,o=U([i,i],2),s=o[0],l=o[1],u=U([wt(n),wt(r)],2),c=u[0],p=u[1],f=function(T){return[t+i*Math.cos(T),e+i*Math.sin(T)]},d=U(f(c),2),h=d[0],v=d[1],m=U(f(p),2),g=m[0],y=m[1];if(ao(n,r)){var b=(p+c)/2,_=U(f(b),2),x=_[0],S=_[1];return[["M",h,v],["A",s,l,0,1,0,x,S],["A",s,l,0,1,0,g,y]]}var w=a>180?1:0,L=n>r?0:1,C=!1;return C?"M".concat(t,",").concat(e,",L").concat(h,",").concat(v,",A").concat(s,",").concat(l,",0,").concat(w,",").concat(L,",").concat(g,",").concat(y,",L").concat(t,",").concat(e):"M".concat(h,",").concat(v,",A").concat(s,",").concat(l,",0,").concat(w,",").concat(L,",").concat(g,",").concat(y)}function Fu(n){var r=n.attributes,t=r.startAngle,e=r.endAngle,i=r.center,a=r.radius;return oe(oe([t,e],U(i),!1),[a],!1)}function Ru(n,r,t,e){var i=r.startAngle,a=r.endAngle,o=r.center,s=r.radius,l=r.classNamePrefix;return n.selectAll(E.line.class).data([{d:io.apply(void 0,oe(oe([i,a],U(o),!1),[s],!1))}],function(u,c){return c}).join(function(u){var c=u.append("path").attr("className",E.line.name).styles(r).styles({d:function(p){return p.d}});return lt(c,E.line,G.line,l),c},function(u){return u.transition(function(){var c=this,p=Mr(this,Fu(this),oe(oe([i,a],U(o),!1),[s],!1),e.update);if(p){var f=function(){var d=Iu(c.attributes,"__keyframe_data__");c.style.d=io.apply(void 0,oe([],U(d),!1))};p.onframe=f,p.onfinish=f}return p}).styles(r)},function(u){return u.remove()}).styles(t).transitions()}function Gu(n,r){var t=r.truncRange,e=r.truncShape,i=r.lineExtension}function Wu(n,r,t){t===void 0&&(t=[0,0]);var e=U([n,r,t],3),i=U(e[0],2),a=i[0],o=i[1],s=U(e[1],2),l=s[0],u=s[1],c=U(e[2],2),p=c[0],f=c[1],d=U([l-a,u-o],2),h=d[0],v=d[1],m=Math.sqrt(Math.pow(h,2)+Math.pow(v,2)),g=U([-p/m,f/m],2),y=g[0],b=g[1];return[y*h,y*v,b*h,b*v]}function no(n){var r=U(n,2),t=U(r[0],2),e=t[0],i=t[1],a=U(r[1],2),o=a[0],s=a[1];return{x1:e,y1:i,x2:o,y2:s}}function Du(n,r,t,e){var i=r.showTrunc,a=r.startPos,o=r.endPos,s=r.truncRange,l=r.lineExtension,u=r.classNamePrefix,c=U([a,o],2),p=U(c[0],2),f=p[0],d=p[1],h=U(c[1],2),v=h[0],m=h[1],g=U(l?Wu(a,o,l):new Array(4).fill(0),4),y=g[0],b=g[1],_=g[2],x=g[3],S=function(Lt){return n.selectAll(E.line.class).data(Lt,function(at,St){return St}).join(function(at){var St=at.append("line").styles(t).transition(function(ee){return ro(this,no(ee.line),!1)});return St.attr("className",function(ee){if(!u)return"".concat(E.line.name," ").concat(ee.className);var vi=sr(E.line.name,G.line,u);if(ee.className===E.lineFirst.name){var mi=sr(E.lineFirst.name,G.lineFirst,u);return"".concat(vi," ").concat(mi)}if(ee.className===E.lineSecond.name){var mi=sr(E.lineSecond.name,G.lineSecond,u);return"".concat(vi," ").concat(mi)}return vi}),St},function(at){return at.styles(t).transition(function(St){var ee=St.line;return ro(this,no(ee),e.update)})},function(at){return at.remove()}).transitions()};if(!i||!s)return S([{line:[[f+y,d+b],[v+_,m+x]],className:E.line.name}]);var w=U(s,2),L=w[0],C=w[1],T=v-f,N=m-d,B=U([f+T*L,d+N*L],2),R=B[0],D=B[1],V=U([f+T*C,d+N*C],2),J=V[0],vt=V[1],gt=S([{line:[[f+y,d+b],[R,D]],className:E.lineFirst.name},{line:[[J,vt],[v+_,m+x]],className:E.lineSecond.name}]);return Gu(n,r),gt}function Vu(n,r,t,e){var i=t.showArrow,a=t.showTrunc,o=t.lineArrow,s=t.lineArrowOffset,l=t.lineArrowSize,u;if(r==="arc"?u=n.select(E.line.class):a?u=n.select(E.lineSecond.class):u=n.select(E.line.class),!i||!o||t.type==="arc"&&ao(t.startAngle,t.endAngle)){var c=u.node();c&&(c.style.markerEnd=void 0);return}var p=ut(o);p.attr(e),Ut(p,l,!0),u.style("markerEnd",p).style("markerEndOffset",-s)}function oo(n,r,t){var e=r.type,i,a=P(r,"line");return e==="linear"?i=Du(n,r,ie(a,"arrow"),t):i=Ru(n,r,ie(a,"arrow"),t),Vu(n,e,r,a),i}function Yu(n,r){return or(n,r.gridDirection,r)}function lo(n){var r=n.type,t=n.gridCenter;return r==="linear"?t:t||n.center}function Uu(n,r){var t=r.gridLength;return n.map(function(e,i){var a=e.value,o=Me(se(a,r),2),s=o[0],l=o[1],u=Me(ct(Yu(a,r),t),2),c=u[0],p=u[1];return{id:i,points:[[s,l],[s+c,l+p]]}})}function Xu(n,r){var t=r.gridControlAngles,e=lo(r);if(!e)throw new Error("grid center is not provide");if(n.length<2)throw new Error("Invalid grid data");if(!t||t.length===0)throw new Error("Invalid gridControlAngles");var i=Me(e,2),a=i[0],o=i[1];return n.map(function(s,l){var u=s.value,c=Me(se(u,r),2),p=c[0],f=c[1],d=Me([p-a,f-o],2),h=d[0],v=d[1],m=[];return t.forEach(function(g){var y=wt(g),b=Me([Math.cos(y),Math.sin(y)],2),_=b[0],x=b[1],S=h*_-v*x+a,w=h*x+v*_+o;m.push([S,w])}),{points:m,id:l}})}function uo(n,r,t,e){var i=t.classNamePrefix,a=P(t,"grid"),o=a.type,s=a.areaFill,l=lo(t),u=Be(r,t.gridFilter),c=o==="segment"?Uu(u,t):Xu(u,t),p=so(so({},a),{center:l,areaFill:ju(s)?u.map(function(f,d){return Q(s,[f,d,u])}):s,animate:e,data:c});return n.selectAll(E.grid.class).data([1]).join(function(f){var d=f.append(function(){return new eo({style:p})}).attr("className",E.grid.name);return lt(d,E.grid,G.grid,i),d},function(f){return f.transition(function(){return this.update(p)})},function(f){return f.remove()}).transitions()}import{__assign as mo,__read as le,__rest as pc,__spreadArray as go}from"/tslib?target=es2022";import{get as yo,isFunction as So}from"/@antv/util@^3.3.10?target=es2022";import{fadeOut as fc,onAnimateFinished as dc,onAnimatesFinished as hc,transition as vc,transitionShape as mc}from"./esm/animation.mjs";import{__read as rc}from"/tslib?target=es2022";import{isNil as ho}from"/@antv/util@^3.3.10?target=es2022";import{__read as fr,__values as tc}from"/tslib?target=es2022";import{__read as Vi}from"/tslib?target=es2022";var ri=(function(){function n(r,t,e,i){this.set(r,t,e,i)}return Object.defineProperty(n.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),n.prototype.rotatedPoints=function(r,t,e){var i=this,a=i.x1,o=i.y1,s=i.x2,l=i.y2,u=Math.cos(r),c=Math.sin(r),p=t-t*u+e*c,f=e-t*c-e*u,d=[[u*a-c*l+p,c*a+u*l+f],[u*s-c*l+p,c*s+u*l+f],[u*a-c*o+p,c*a+u*o+f],[u*s-c*o+p,c*s+u*o+f]];return d},n.prototype.set=function(r,t,e,i){return e<r?(this.x2=r,this.x1=e):(this.x1=r,this.x2=e),i<t?(this.y2=t,this.y1=i):(this.y1=t,this.y2=i),this},n.prototype.defined=function(r){return this[r]!==Number.MAX_VALUE&&this[r]!==-Number.MAX_VALUE},n})();function ur(n,r){var t=n.getEulerAngles()||0;n.setEulerAngles(0);var e=n.getBounds(),i=Vi(e.min,2),a=i[0],o=i[1],s=Vi(e.max,2),l=s[0],u=s[1],c=n.getBBox(),p=c.width,f=c.height,d=f,h=0,v=0,m=a,g=o,y=Ue(n);if(y){d-=1.5;var b=y.style.textAlign,_=y.style.textBaseline;b==="center"?m=(a+l)/2:(b==="right"||b==="end")&&(m=l),_==="middle"?g=(o+u)/2:_==="bottom"&&(g=u)}var x=Vi(H(r),4),S=x[0],w=S===void 0?0:S,L=x[1],C=L===void 0?0:L,T=x[2],N=T===void 0?w:T,B=x[3],R=B===void 0?C:B,D=new ri((h+=a)-R,(v+=o)-w,h+p+C,v+d+N);return n.setEulerAngles(t),D.rotatedPoints(wt(t),m,g)}function cr(n,r){return r[0]<=Math.max(n[0][0],n[1][0])&&r[0]<=Math.min(n[0][0],n[1][0])&&r[1]<=Math.max(n[0][1],n[1][1])&&r[1]<=Math.min(n[0][1],n[1][1])}function pr(n,r,t){var e=(r[1]-n[1])*(t[0]-r[0])-(r[0]-n[0])*(t[1]-r[1]);return e===0?0:e<0?2:1}function qu(n,r){var t=pr(n[0],n[1],r[0]),e=pr(n[0],n[1],r[1]),i=pr(r[0],r[1],n[0]),a=pr(r[0],r[1],n[1]);return!!(t!==e&&i!==a||t===0&&cr(n,r[0])||e===0&&cr(n,r[1])||i===0&&cr(r,n[0])||a===0&&cr(r,n[1]))}function Zu(n,r){var t=n.length;if(t<3)return!1;var e=[r,[9999,r[1]]],i=0,a=0;do{var o=[n[a],n[(a+1)%t]];if(qu(o,e)){if(pr(o[0],r,o[1])===0)return cr(o,r);i++}a=(a+1)%t}while(a!==0);return!!(i&1)}function Ku(n,r){return r.every(function(t){return Zu(n,t)})}function co(n,r,t){var e=n.x1,i=n.x2,a=n.y1,o=n.y2,s=[[e,a],[i,a],[i,o],[e,o]],l=ur(r,t);return Ku(s,l)}import{__read as po,__values as $u}from"/tslib?target=es2022";function Ju(n,r){var t=po(n,4),e=t[0],i=t[1],a=t[2],o=t[3],s=po(r,4),l=s[0],u=s[1],c=s[2],p=s[3],f=a-e,d=o-i,h=c-l,v=p-u,m=f*v-h*d;if(m===0)return!1;var g=m>0,y=e-l,b=i-u,_=f*b-d*y;if(_<0===g)return!1;var x=h*b-v*y;return!(x<0===g||_>m===g||x>m===g)}function Qu(n,r){var t=[[n[0],n[1],n[2],n[3]],[n[2],n[3],n[4],n[5]],[n[4],n[5],n[6],n[7]],[n[6],n[7],n[0],n[1]]];return t.some(function(e){return Ju(r,e)})}function fo(n,r,t){var e,i,a=ur(n,t).flat(1),o=ur(r,t).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var l=$u(s),u=l.next();!u.done;u=l.next()){var c=u.value;if(Qu(o,c))return!0}}catch(p){e={error:p}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return!1}function ec(n,r){var t=n.type,e=n.labelDirection,i=n.crossSize;if(!i)return!1;if(t==="arc"){var a=n.center,o=n.radius,s=fr(a,2),l=s[0],u=s[1],c=e==="negative"?0:i,p=-o-c,f=o+c,d=fr(H(r),4),h=d[0],v=d[1],m=d[2],g=d[3];return new ri(l+p-g,u+p-h,l+f+v,u+f+m)}var y=fr(n.startPos,2),b=y[0],_=y[1],x=fr(n.endPos,2),S=x[0],w=x[1],L=fr(ei(n)?[-r,0,r,0]:[0,r,0,-r],4),C=L[0],T=L[1],N=L[2],B=L[3],R=Kt(0,n),D=ct(R,i),V=new ri(b,_,S,w);return V.x1+=B,V.y1+=C,V.x2+=T+D[0],V.y2+=N+D[1],V}function $t(n,r,t){var e,i,a=r.crossPadding,o=new Set,s=null,l=ec(r,a),u=function(h){return l?co(l,h):!0},c=function(h,v){return!h||!h.firstChild?!0:!fo(h.firstChild,v.firstChild,H(t))};try{for(var p=tc(n),f=p.next();!f.done;f=p.next()){var d=f.value;u(d)?!s||c(s,d)?s=d:(o.add(s),o.add(d)):o.add(d)}}catch(h){e={error:h}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(e)throw e.error}}return Array.from(o)}function ji(n,r){return r===void 0&&(r={}),ho(n)?0:typeof n=="number"?n:Math.floor(Lr(n,r))}function Yi(n,r,t,e){if(!(n.length<=0)){var i=r.suffix,a=i===void 0?"...":i,o=r.minLength,s=r.maxLength,l=s===void 0?1/0:s,u=r.step,c=u===void 0?" ":u,p=r.margin,f=p===void 0?[0,0,0,0]:p,d=Ye(e.getTextShape(n[0])),h=ji(c,d),v=o?ji(o,d):h,m=ji(l,d);(ho(m)||m===1/0)&&(m=Math.max.apply(null,n.map(function(D){return D.getBBox().width})));for(var g=n.slice(),y=rc(f,4),b=y[0],_=b===void 0?0:b,x=y[1],S=x===void 0?0:x,w=y[2],L=w===void 0?_:w,C=y[3],T=C===void 0?S:C,N=function(D){if(g.forEach(function(V){e.ellipsis(e.getTextShape(V),D,a)}),g=$t(n,t,f),g.length<1)return{value:void 0}},B=m;B>v+h;B-=h){var R=N(B);if(typeof R=="object")return R.value}}}import{__read as Ui,__spreadArray as ii}from"/tslib?target=es2022";var ic={parity:function(n,r){var t=r.seq,e=t===void 0?2:t;return n.filter(function(i,a){return a%e?(X(i),!1):!0})}},nc=function(n){return n.filter(Ar)};function Xi(n,r,t,e){var i=n.length,a=r.keepHeader,o=r.keepTail;if(!(i<=1||i===2&&a&&o)){var s=ic.parity,l=function(b){return b.forEach(e.show),b},u=2,c=n.slice(),p=n.slice(),f=Math.min.apply(Math,ii([1],Ui(n.map(function(b){return b.getBBox().width})),!1));if(t.type==="linear"&&(lr(t)||ei(t))){var d=$e(n[0]).left,h=$e(n[i-1]).right,v=Math.abs(h-d)||1;u=Math.max(Math.floor(i*f/v),u)}var m,g;for(a&&(m=c.splice(0,1)[0]),o&&(g=c.splice(-1,1)[0],c.reverse()),l(c);u<n.length&&$t(nc(g?ii(ii([g],Ui(p),!1),[m],!1):ii([m],Ui(p),!1)),t,r?.margin).length;){if(g&&!m&&u%2===0){var y=c.splice(0,1);y.forEach(e.hide)}else if(g&&m){var y=c.splice(0,1);y.forEach(e.hide)}p=s(l(c),{seq:u}),u++}}}import{__values as ac}from"/tslib?target=es2022";function qi(n,r,t,e){var i,a,o=r.optionalAngles,s=o===void 0?[0,45,90]:o,l=r.margin,u=r.recoverWhenFailed,c=u===void 0?!0:u,p=n.map(function(g){return g.getLocalEulerAngles()}),f=function(){return $t(n,t,l).length<1},d=function(g){return n.forEach(function(y,b){var _=Array.isArray(g)?g[b]:g;e.rotate(y,+_)})};try{for(var h=ac(s),v=h.next();!v.done;v=h.next()){var m=v.value;if(d(m),f())return}}catch(g){i={error:g}}finally{try{v&&!v.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}c&&d(p)}import{__read as oc,__spreadArray as sc}from"/tslib?target=es2022";function lc(n){var r=n.type,t=n.labelDirection;return r==="linear"&&lr(n)?t==="negative"?"bottom":"top":"middle"}function Zi(n,r,t,e,i){var a,o=r.maxLines,s=o===void 0?3:o,l=r.recoverWhenFailed,u=l===void 0?!0:l,c=r.margin,p=c===void 0?[0,0,0,0]:c,f=Q((a=r.wordWrapWidth)!==null&&a!==void 0?a:50,[i]),d=n.map(function(b){return b.attr("maxLines")||1}),h=Math.min.apply(Math,sc([],oc(d),!1)),v=function(){return $t(n,t,p).length<1},m=lc(t),g=function(b){return n.forEach(function(_,x){var S=Array.isArray(b)?b[x]:b;e.wrap(_,f,S,m)})};if(!(h>s)){if(t.type==="linear"&&lr(t)){if(g(s),v())return}else for(var y=h;y<=s;y++)if(g(y),v())return;u&&g(d)}}var uc=new Map([["hide",Xi],["rotate",qi],["ellipsis",Yi],["wrap",Zi]]);function cc(n,r,t){return r.labelOverlap.length<1?!1:t==="hide"?!wr(n[0]):t==="rotate"?!n.some(function(e){var i;return!!(!((i=e.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):t==="ellipsis"||t==="wrap"?n.filter(function(e){return e.querySelector("text")}).length>=1:!0}function vo(n,r,t,e){var i=r.labelOverlap,a=i===void 0?[]:i;a.length&&a.forEach(function(o){var s=o.type,l=uc.get(s);cc(n,r,s)&&l?.(n,o,r,e,t)})}import{getFactor as gc}from"./esm/ui/axis/utils.mjs";function bo(n){for(var r=n;r<0;)r+=360;return Math.round(r%360)}function Ki(n,r){var t=le(n,2),e=t[0],i=t[1],a=le(r,2),o=a[0],s=a[1],l=le([e*o+i*s,e*s-i*o],2),u=l[0],c=l[1];return Math.atan2(c,u)}function yc(n){var r=(n+360)%180;return it(r,-90,90)||(r+=180),r}function bc(n,r,t){var e,i=t.labelAlign,a=(e=r.style.transform)===null||e===void 0?void 0:e.includes("rotate");if(a)return r.getLocalEulerAngles();var o=0,s=Kt(n.value,t),l=Oe(n.value,t);return i==="horizontal"?0:(i==="perpendicular"?o=Ki([1,0],s):o=Ki([l[0]<0?-1:1,0],l),yc(je(o)))}function wo(n,r,t){var e=t.type,i=t.labelAlign,a=Kt(n,t),o=bo(r),s=bo(je(Ki([1,0],a))),l="center",u="middle";return e==="linear"?[90,270].includes(s)&&o===0?(l="center",u=a[1]===1?"top":"bottom"):!(s%180)&&[90,270].includes(o)?l="center":s===0?(it(o,0,90,!1,!0)||it(o,0,90)||it(o,270,360))&&(l="start"):s===90?it(o,0,90,!1,!0)?l="start":(it(o,90,180)||it(o,270,360))&&(l="end"):s===270?it(o,0,90,!1,!0)?l="end":(it(o,90,180)||it(o,270,360))&&(l="start"):s===180&&(o===90?l="start":(it(o,0,90)||it(o,270,360))&&(l="end")):i==="parallel"?it(s,0,180,!0)?u="top":u="bottom":i==="horizontal"?it(s,90,270,!1)?l="end":(it(s,270,360,!1)||it(s,0,90))&&(l="start"):i==="perpendicular"&&(it(s,90,270)?l="end":l="start"),{textAlign:l,textBaseline:u}}function xc(n,r,t){r.setLocalEulerAngles(n);var e=r.__data__.value,i=wo(e,n,t),a=r.querySelector(E.labelItem.class);a&&Ao(a,i)}function xo(n,r,t){var e=t.showTick,i=t.tickLength,a=t.tickDirection,o=t.labelDirection,s=t.labelSpacing,l=r.indexOf(n),u=Q(s,[n,l,r]),c=le([Kt(n.value,t),gc(o,a)],2),p=c[0],f=c[1],d=f===1?Q(e?i:0,[n,l,r]):0,h=le(Vt(ct(p,u+d),se(n.value,t)),2),v=h[0],m=h[1];return{x:v,y:m}}function _c(n,r,t,e){var i=e.labelFormatter,a=So(i)?function(){return ut(Q(i,[n,r,t,Kt(n.value,e)]))}:function(){return ut(n.label||"")};return a}function Sc(n,r,t,e){var i=e.labelRender,a=(yo(e,"endPos.0",400)-yo(e,"startPos.0",0))/t.length,o=So(i)?Q(i,[n,r,t,Kt(n.value,e)]):n.label||"",s=Ur(o)||30;return function(){return Cr(o,{width:a,height:s})}}var wc={html:["fill"],text:[]};function Ao(n,r){["text","html"].includes(n.nodeName)&&n.attr(ie(r,wc[n.nodeName]))}function Ac(n,r){vo(this.node().childNodes,n,r,{hide:X,show:bt,rotate:function(t,e){xc(+e,t,n)},ellipsis:function(t,e,i){t&&re(t,e||1/0,i)},wrap:function(t,e,i){t&&Pr(t,e,i)},getTextShape:function(t){return t.querySelector(E.labelItem.class)}})}function _o(n,r,t,e,i){var a=t.indexOf(r),o=i.labelRender,s=i.classNamePrefix,l=A(n).append(o?Sc(r,a,t,i):_c(r,a,t,i)).attr("className",E.labelItem.name).node();lt(A(l),E.labelItem,G.labelItem,s);var u=le(ot(ti(e,[r,a,t])),2),c=u[0],p=u[1],f=p.transform,d=pc(p,["transform"]);ke(l,f);var h=bc(r,l,i);if(l.getLocalEulerAngles()||l.setLocalEulerAngles(h),Ao(l,mo(mo({},wo(r.value,h,i)),c)),l.nodeName==="html"){var v=l.getBBox(),m=l.style.x||0;l.attr("x",m-v.width/2)}return n.attr(d),l}function ko(n,r,t,e,i){var a=t.classNamePrefix,o=Be(r,t.labelFilter),s=P(t,"label"),l,u=n.selectAll(E.label.class).data(o,function(c,p){return p}).join(function(c){var p=c.append("g").attr("className",E.label.name).transition(function(f){_o(this,f,r,s,t);var d=xo(f,r,t),h=d.x,v=d.y;return this.style.transform="translate(".concat(h,", ").concat(v,")"),null});return lt(p,E.label,G.label,a),p},function(c){return c.transition(function(p){var f=this.querySelector(E.labelItem.class),d=_o(this,p,r,s,t),h=mc(f,d,e.update),v=xo(p,r,t),m=v.x,g=v.y,y=vc(this,{transform:"translate(".concat(m,", ").concat(g,")")},e.update);return go(go([],le(h),!1),[y],!1)})},function(c){return l=c,c.transition(function(){var p=this,f=fc(this.childNodes[0],e.exit);return dc(f,function(){return A(p).remove()}),f}),l}).transitions();return hc(u,function(){Ac.call(n,t,i)}),u}import{__assign as kc,__read as Ie}from"/tslib?target=es2022";import{isFunction as Lc}from"/@antv/util@^3.3.10?target=es2022";import{fadeOut as Pc,onAnimateFinished as Cc,transition as Tc}from"./esm/animation.mjs";function Po(n,r){return or(n,r.tickDirection,r)}function Ec(n,r){var t=Ie(n,2),e=t[0],i=t[1];return[[0,0],[e*r,i*r]]}function Nc(n,r,t,e,i){var a=i.tickLength,o=Ie(Ec(e,Q(a,[n,r,t])),2),s=Ie(o[0],2),l=s[0],u=s[1],c=Ie(o[1],2),p=c[0],f=c[1];return{x1:l,x2:p,y1:u,y2:f}}function Bc(n,r,t,e,i){var a=i.tickFormatter,o=i.classNamePrefix,s=Po(r.value,i),l="line";Lc(a)&&(l=function(){return Q(a,[r,t,e,s])});var u=n.append(l).attr("className",E.tickItem.name);return lt(u,E.tickItem,G.tickItem,o),u}function Oc(n,r,t,e,i,a,o){var s=Po(n.value,a),l=Nc(n,r,t,s,a),u=l.x1,c=l.x2,p=l.y1,f=l.y2,d=Ie(ot(ti(o,[n,r,t,s])),2),h=d[0],v=d[1];e.node().nodeName==="line"&&e.styles(kc({x1:u,x2:c,y1:p,y2:f},h)),i.attr(v),e.styles(h)}function Lo(n,r,t,e,i,a){var o=Bc(A(this),n,r,t,e);Oc(n,r,t,o,this,e,i);var s=Ie(se(n.value,e),2),l=s[0],u=s[1];return Tc(this,{transform:"translate(".concat(l,", ").concat(u,")")},a)}function Co(n,r,t,e){var i=t.classNamePrefix,a=Be(r,t.tickFilter),o=P(t,"tick");return n.selectAll(E.tick.class).data(a,function(s){return s.id||s.label}).join(function(s){var l=s.append("g").attr("className",E.tick.name).transition(function(u,c){return Lo.call(this,u,c,a,t,o,!1)});return lt(l,E.tick,G.tick,i),l},function(s){return s.transition(function(l,u){return this.removeChildren(),Lo.call(this,l,u,a,t,o,e.update)})},function(s){return s.transition(function(){var l=this,u=Pc(this.childNodes[0],e.exit);return Cc(u,function(){return l.remove()}),u})}).transitions()}import{__assign as To,__read as Jt,__rest as Mc}from"/tslib?target=es2022";import{transition as Ic}from"./esm/animation.mjs";function Hc(n,r,t){var e=t.titlePosition,i=e===void 0?"lb":e,a=t.titleSpacing,o=qt(i),s=n.node().getLocalBounds(),l=Jt(s.min,2),u=l[0],c=l[1],p=Jt(s.halfExtents,2),f=p[0],d=p[1],h=Jt(r.node().getLocalBounds().halfExtents,2),v=h[0],m=h[1],g=Jt([u+f,c+d],2),y=g[0],b=g[1],_=Jt(H(a),4),x=_[0],S=_[1],w=_[2],L=_[3];if(["start","end"].includes(i)&&t.type==="linear"){var C=t.startPos,T=t.endPos,N=Jt(i==="start"?[C,T]:[T,C],2),B=N[0],R=N[1],D=Se([-R[0]+B[0],-R[1]+B[1]]),V=Jt(ct(D,x),2),J=V[0],vt=V[1];return{x:B[0]+J,y:B[1]+vt}}return o.includes("t")&&(b-=d+m+x),o.includes("r")&&(y+=f+v+S),o.includes("l")&&(y-=f+v+L),o.includes("b")&&(b+=d+m+w),{x:y,y:b}}function zc(n,r,t){var e=n.getGeometryBounds().halfExtents,i=e[1]*2;if(r==="vertical"){if(t==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(t==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function Eo(n,r,t,e,i){var a=P(e,"title"),o=Jt(ot(a),2),s=o[0],l=o[1],u=l.transform,c=l.transformOrigin,p=Mc(l,["transform","transformOrigin"]);r.styles(p);var f=u||zc(n.node(),s.direction,s.position);n.styles(To(To({},s),{transformOrigin:c})),ke(n.node(),f);var d=Hc(A(t._offscreen||t.querySelector(E.mainGroup.class)),r,e),h=d.x,v=d.y,m=Ic(r.node(),{transform:"translate(".concat(h,", ").concat(v,")")},i);return m}function No(n,r,t,e){var i=t.titleText,a=t.classNamePrefix;return n.selectAll(E.title.class).data([{title:i}].filter(function(o){return!!o.title}),function(o,s){return o.title}).join(function(o){var s=o.append(function(){return ut(i)}).attr("className",E.title.name).transition(function(){return Eo(A(this),n,r,t,e.enter)});return lt(s,E.title,G.title,a),s},function(o){return o.transition(function(){return Eo(A(this),n,r,t,e.update)})},function(o){return o.remove()}).transitions()}function Oo(n,r,t,e){var i=n.showLine,a=n.showTick,o=n.showLabel,s=n.classNamePrefix,l=r.maybeAppendByClassName(E.lineGroup,"g");lt(l,E.lineGroup,G.lineGroup,s);var u=K(i,l,function(h){return oo(h,n,e)})||[],c=r.maybeAppendByClassName(E.tickGroup,"g");lt(c,E.tickGroup,G.tickGroup,s);var p=K(a,c,function(h){return Co(h,t,n,e)})||[],f=r.maybeAppendByClassName(E.labelGroup,"g");lt(f,E.labelGroup,G.labelGroup,s);var d=K(o,f,function(h){return ko(h,t,n,e,r.node())})||[];return ze(ze(ze([],He(u),!1),He(p),!1),He(d),!1).filter(function(h){return!!h})}var ue=(function(n){Fc(r,n);function r(t){return n.call(this,t,Jr)||this}return r.prototype.render=function(t,e,i){var a=this,o=t.titleText,s=t.data,l=t.animate,u=t.showTitle,c=t.showGrid,p=t.dataThreshold,f=t.truncRange,d=t.classNamePrefix,h=e.className||"axis";d?e.attr("className","".concat(h," ").concat(d,"axis")):e.className||e.attr("className","axis");var v=Fr(s,p).filter(function(w){var L=w.value;return!(f&&L>f[0]&&L<f[1])}),m=Bo(i===void 0?l:i),g=A(e).maybeAppendByClassName(E.gridGroup,"g");lt(g,E.gridGroup,G.gridGroup,d);var y=K(c,g,function(w){return uo(w,v,t,m)})||[],b=A(e).maybeAppendByClassName(E.mainGroup,"g");lt(b,E.mainGroup,G.mainGroup,d),o&&(!this.initialized&&m.enter||this.initialized&&m.update)&&Oo(t,A(this.offscreenGroup),v,Bo(!1));var _=Oo(t,A(b.node()),v,m),x=A(e).maybeAppendByClassName(E.titleGroup,"g");lt(x,E.titleGroup,G.titleGroup,d);var S=K(u,x,function(w){return No(w,a,t,m)})||[];return ze(ze(ze([],He(y),!1),He(_),!1),He(S),!1).flat().filter(function(w){return!!w})},r})(Rc);var Mo=(function(){function n(){}return n})();import{__assign as Re,__extends as es,__read as ts}from"/tslib?target=es2022";import{Component as Cp}from"./esm/core.mjs";import{__extends as Xc,__read as rt,__rest as qc}from"/tslib?target=es2022";import{Component as Zc}from"./esm/core.mjs";function Y(n,r,t){return t?"".concat(n," ").concat(t,"legend-").concat(r):n}import{__assign as $i,__extends as Vc,__read as jc,__rest as Yc}from"/tslib?target=es2022";import{Component as Uc}from"./esm/core.mjs";import{__read as dr}from"/tslib?target=es2022";function Io(n,r,t){var e=Math.round((n-t)/r);return t+e*r}function Gc(n,r,t){var e=1.4,i=e*t;return[["M",n-t,r-i],["L",n+t,r-i],["L",n+t,r+i],["L",n-t,r+i],["Z"]]}var Ho=1.4,zo=.4;function Wc(n,r,t){var e=t,i=e*Ho,a=e/2,o=e/6,s=n+i*zo;return[["M",n,r],["L",s,r+a],["L",n+i,r+a],["L",n+i,r-a],["L",s,r-a],["Z"],["M",s,r+o],["L",n+i-2,r+o],["M",s,r-o],["L",n+i-2,r-o]]}function Dc(n,r,t){var e=t,i=e*Ho,a=e/2,o=e/6,s=r+i*zo;return[["M",n,r],["L",n-a,s],["L",n-a,r+i],["L",n+a,r+i],["L",n+a,s],["Z"],["M",n-o,s],["L",n-o,r+i-2],["M",n+o,s],["L",n+o,r+i-2]]}F.registerSymbol("hiddenHandle",Gc);F.registerSymbol("verticalHandle",Wc);F.registerSymbol("horizontalHandle",Dc);function Fo(n,r,t,e){var i;e===void 0&&(e=4);var a=dr(n,2),o=a[0],s=a[1],l=dr(r,2),u=l[0],c=l[1],p=dr(t,2),f=p[0],d=p[1],h=dr([u,c],2),v=h[0],m=h[1],g=m-v;return v>m&&(i=dr([m,v],2),v=i[0],m=i[1]),g>s-o?[o,s]:v<o?f===o&&d===m?[o,m]:[o,g+o]:m>s?d===s&&f===v?[v,s]:[s-g,s]:[v,m]}function xt(n,r,t){return n===void 0&&(n="horizontal"),n==="horizontal"?r:t}var j={title:"title",item:"item",marker:"marker",label:"label",value:"value",focusIcon:"focus-icon",background:"background",ribbon:"ribbon",track:"track",selection:"selection",handle:"handle",handleMarker:"handle-marker",handleLabel:"handle-label",indicator:"indicator",prevBtn:"prev-btn",nextBtn:"next-btn",pageInfo:"page-info"};var ce=q({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),Ji={showLabel:!0,formatter:function(n){return n.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},Ro=(function(n){Vc(r,n);function r(t){return n.call(this,t,Ji)||this}return r.prototype.render=function(t,e){var i=A(e).maybeAppendByClassName(ce.markerGroup,"g");this.renderMarker(i);var a=A(e).maybeAppendByClassName(ce.labelGroup,"g");this.renderLabel(a)},r.prototype.renderMarker=function(t){var e=this,i=this.attributes,a=i.orientation,o=i.classNamePrefix,s=i.markerSymbol,l=s===void 0?xt(a,"horizontalHandle","verticalHandle"):s;K(!!l,t,function(u){var c=P(e.attributes,"marker"),p=$i({symbol:l},c),f=Y(ce.marker.name,j.handleMarker,o);if(e.marker=u.maybeAppendByClassName(ce.marker,function(){return new F({style:p,className:f})}).update(p),o){var d=e.marker.node().querySelector(".marker");if(d){var h=d.getAttribute("class")||"",v=h.split(" ")[0],m=Y(v,j.handleMarker,o);d.setAttribute("class",m)}}})},r.prototype.renderLabel=function(t){var e=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,l=s===void 0?0:s,u=i.formatter,c=i.classNamePrefix;K(a,t,function(p){var f,d=P(e.attributes,"label"),h=d.text,v=Yc(d,["text"]),m=((f=p.select(ce.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=m.width,y=g===void 0?0:g,b=m.height,_=b===void 0?0:b,x=jc(xt(o,[0,_+l,"center","top"],[y+l,0,"start","middle"]),4),S=x[0],w=x[1],L=x[2],C=x[3],T=Y(ce.label.name,j.handleLabel,c);p.maybeAppendByClassName(ce.label,"text").attr("className",T).styles($i($i({},v),{x:S,y:w,text:u(h).toString(),textAlign:L,textBaseline:C}))})},r})(Uc);var Go={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},Wo=M({},Go,{}),Do=M({},Go,pt(Ji,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),Vo=.01;var tt=q({title:"title",html:"html",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend");var Qi=q({text:"text"},"title");function jo(n,r){var t=n.attributes,e=t.position,i=t.spacing,a=t.inset,o=t.text,s=n.getBBox(),l=r.getBBox(),u=qt(e),c=rt(H(o?i:0),4),p=c[0],f=c[1],d=c[2],h=c[3],v=rt(H(a),4),m=v[0],g=v[1],y=v[2],b=v[3],_=rt([h+f,p+d],2),x=_[0],S=_[1],w=rt([b+g,m+y],2),L=w[0],C=w[1];if(u[0]==="l")return new W(s.x,s.y,l.width+s.width+x+L,Math.max(l.height+C,s.height));if(u[0]==="t")return new W(s.x,s.y,Math.max(l.width+L,s.width),l.height+s.height+S+C);var T=rt([r.attributes.width||l.width,r.attributes.height||l.height],2),N=T[0],B=T[1];return new W(l.x,l.y,N+s.width+x+L,B+s.height+S+C)}function Kc(n,r){var t=Object.entries(r).reduce(function(e,i){var a=rt(i,2),o=a[0],s=a[1],l=n.node().attr(o);return l||(e[o]=s),e},{});n.styles(t)}function $c(n){var r,t,e,i,a=n,o=a.width,s=a.height,l=a.position,u=rt([+o/2,+s/2],2),c=u[0],p=u[1],f=rt([+c,+p,"center","middle"],4),d=f[0],h=f[1],v=f[2],m=f[3],g=qt(l);return g.includes("l")&&(r=rt([0,"start"],2),d=r[0],v=r[1]),g.includes("r")&&(t=rt([+o,"end"],2),d=t[0],v=t[1]),g.includes("t")&&(e=rt([0,"top"],2),h=e[0],m=e[1]),g.includes("b")&&(i=rt([+s,"bottom"],2),h=i[0],m=i[1]),{x:d,y:h,textAlign:v,textBaseline:m}}var ni=(function(n){Xc(r,n);function r(t){return n.call(this,t,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return r.prototype.getAvailableSpace=function(){var t=this,e=this.attributes,i=e.width,a=e.height,o=e.position,s=e.spacing,l=e.inset,u=t.querySelector(Qi.text.class);if(!u)return new W(0,0,+i,+a);var c=u.getBBox(),p=c.width,f=c.height,d=rt(H(s),4),h=d[0],v=d[1],m=d[2],g=d[3],y=rt([0,0,+i,+a],4),b=y[0],_=y[1],x=y[2],S=y[3],w=qt(o);if(w.includes("i"))return new W(b,_,x,S);w.forEach(function(J,vt){var gt,Lt,at,St;J==="t"&&(gt=rt(vt===0?[f+m,+a-f-m]:[0,+a],2),_=gt[0],S=gt[1]),J==="r"&&(Lt=rt([+i-p-g],1),x=Lt[0]),J==="b"&&(at=rt([+a-f-h],1),S=at[0]),J==="l"&&(St=rt(vt===0?[p+v,+i-p-v]:[0,+i],2),b=St[0],x=St[1])});var L=rt(H(l),4),C=L[0],T=L[1],N=L[2],B=L[3],R=rt([B+T,C+N],2),D=R[0],V=R[1];return new W(b+B,_+C,x-D,S-V)},r.prototype.getBBox=function(){return this.title?this.title.getBBox():new W(0,0,0,0)},r.prototype.render=function(t,e){var i=this,a=t.width,o=t.height,s=t.position,l=t.spacing,u=t.classNamePrefix,c=qc(t,["width","height","position","spacing","classNamePrefix"]),p=rt(ot(c),1),f=p[0],d=$c(t),h=d.x,v=d.y,m=d.textAlign,g=d.textBaseline;K(!!c.text,A(e),function(y){var b=Y(Qi.text.name,j.title,u);i.title=y.maybeAppendByClassName(Qi.text,"text").attr("className",b).styles(f).call(Kc,{x:h,y:v,textAlign:m,textBaseline:g}).node()})},r})(Zc);import{__assign as _p,__extends as Sp,__read as ft,__rest as wp,__spreadArray as Ap}from"/tslib?target=es2022";import{CustomEvent as kp}from"/@antv/g@^6.1.11?target=es2022";import{noop as an,set as Lp}from"/@antv/util@^3.3.10?target=es2022";import{Component as Pp}from"./esm/core.mjs";import{__assign as Yo,__extends as Jc,__read as Wt,__rest as Qc,__spreadArray as tp}from"/tslib?target=es2022";import{ElementEvent as Uo}from"/@antv/g@^6.1.11?target=es2022";import{clamp as tn,debounce as ep}from"/@antv/util@^3.3.10?target=es2022";import{animate as rp,onAnimateFinished as ip}from"./esm/animation.mjs";import{Component as np}from"./esm/core.mjs";var yt=q({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),ai=(function(n){Jc(r,n);function r(t){var e=n.call(this,t,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:Pa(0,0,6),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(i,a){return"".concat(i,"/").concat(a)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return e.playState="idle",e.contentGroup=e.appendChild(new Z({class:yt.contentGroup.name})),e.playWindow=e.contentGroup.appendChild(new Z({class:yt.playWindow.name})),e.innerCurrPage=e.defaultPage,e}return Object.defineProperty(r.prototype,"defaultPage",{get:function(){var t=this.attributes.defaultPage;return tn(t,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pageShape",{get:function(){var t=this.pageViews,e=Wt(Yr(t.map(function(p){var f=p.getBBox(),d=f.width,h=f.height;return[d,h]})).map(function(p){return Math.max.apply(Math,tp([],Wt(p),!1))}),2),i=e[0],a=e[1],o=this.attributes,s=o.pageWidth,l=s===void 0?i:s,u=o.pageHeight,c=u===void 0?a:u;return{pageWidth:l,pageHeight:c}},enumerable:!1,configurable:!0}),r.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(r.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),r.prototype.getBBox=function(){var t=n.prototype.getBBox.call(this),e=t.x,i=t.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,l=o.pageHeight;return new W(e,i,s+a.width,l)},r.prototype.goTo=function(t){var e=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,l=a.playWindow,u=a.pageViews;if(s!=="idle"||t<0||u.length<=0||t>=u.length)return null;u[o].setLocalPosition(0,0),this.prepareFollowingPage(t);var c=Wt(this.getFollowingPageDiff(t),2),p=c[0],f=c[1];this.playState="running";var d=rp(l,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-p,", ").concat(-f,")")}],i);return ip(d,function(){e.innerCurrPage=t,e.playState="idle",e.setVisiblePages([t]),e.updatePageInfo()}),d},r.prototype.prev=function(){var t=this.attributes.loop,e=this.pageViews.length,i=this.currPage;if(!t&&i<=0)return null;var a=t?(i-1+e)%e:tn(i-1,0,e);return this.goTo(a)},r.prototype.next=function(){var t=this.attributes.loop,e=this.pageViews.length,i=this.currPage;if(!t&&i>=e-1)return null;var a=t?(i+1)%e:tn(i+1,0,e);return this.goTo(a)},r.prototype.renderClipPath=function(t){var e=this.pageShape,i=e.pageWidth,a=e.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=t.maybeAppendByClassName(yt.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},r.prototype.setVisiblePages=function(t){this.playWindow.children.forEach(function(e,i){t.includes(i)?bt(e):X(e)})},r.prototype.adjustControllerLayout=function(){var t=this,e=t.prevBtnGroup,i=t.nextBtnGroup,a=t.pageInfoGroup,o=this.attributes,s=o.orientation,l=o.controllerPadding,u=a.getBBox(),c=u.width,p=u.height,f=Wt(s==="horizontal"?[-180,0]:[-90,90],2),d=f[0],h=f[1];e.setLocalEulerAngles(d),i.setLocalEulerAngles(h);var v=e.getBBox(),m=v.width,g=v.height,y=i.getBBox(),b=y.width,_=y.height,x=Math.max(m,c,b),S=s==="horizontal"?{offset:[[0,0],[m/2+l,0],[m+c+l*2,0]],textAlign:"start"}:{offset:[[x/2,-g-l],[x/2,0],[x/2,_+l]],textAlign:"center"},w=Wt(S.offset,3),L=Wt(w[0],2),C=L[0],T=L[1],N=Wt(w[1],2),B=N[0],R=N[1],D=Wt(w[2],2),V=D[0],J=D[1],vt=S.textAlign,gt=a.querySelector("text");gt&&(gt.style.textAlign=vt),e.setLocalPosition(C,T),a.setLocalPosition(B,R),i.setLocalPosition(V,J)},r.prototype.updatePageInfo=function(){var t,e=this,i=e.currPage,a=e.pageViews,o=e.attributes.formatter;a.length<2||((t=this.pageInfoGroup.querySelector(yt.pageInfo.class))===null||t===void 0||t.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},r.prototype.getFollowingPageDiff=function(t){var e=this.currPage;if(e===t)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,l=t<e?-1:1;return i==="horizontal"?[l*o,0]:[0,l*s]},r.prototype.prepareFollowingPage=function(t){var e=this,i=e.currPage,a=e.pageViews;if(this.setVisiblePages([t,i]),t!==i){var o=Wt(this.getFollowingPageDiff(t),2),s=o[0],l=o[1];a[t].setLocalPosition(s,l)}},r.prototype.renderController=function(t){var e=this,i=this.attributes,a=i.controllerSpacing,o=i.classNamePrefix,s=o===void 0?"":o,l=this.pageShape,u=l.pageWidth,c=l.pageHeight,p=this.pageViews.length>=2,f=t.maybeAppendByClassName(yt.controller,"g");if(ge(f.node(),p),!!p){var d=P(this.attributes,"button"),h=P(this.attributes,"pageNum"),v=Wt(ot(d),2),m=v[0],g=v[1],y=m.size,b=Qc(m,["size"]),_=!f.select(yt.prevBtnGroup.class).node(),x=f.maybeAppendByClassName(yt.prevBtnGroup,"g").styles(g);this.prevBtnGroup=x.node();var S=x.maybeAppendByClassName(yt.prevBtn,"path");if(s){var w=Y(yt.prevBtn.name,j.prevBtn,s);S.node().setAttribute("class",w)}var L=f.maybeAppendByClassName(yt.nextBtnGroup,"g").styles(g);this.nextBtnGroup=L.node();var C=L.maybeAppendByClassName(yt.nextBtn,"path");if(s){var T=Y(yt.nextBtn.name,j.nextBtn,s);C.node().setAttribute("class",T)}[S,C].forEach(function(D){D.styles(Yo(Yo({},b),{transformOrigin:"center"})),Ut(D.node(),y,!0)});var N=f.maybeAppendByClassName(yt.pageInfoGroup,"g");this.pageInfoGroup=N.node();var B=N.maybeAppendByClassName(yt.pageInfo,"text");if(B.styles(h),s){var R=Y(yt.pageInfo.name,j.pageInfo,s);B.node().setAttribute("class",R)}this.updatePageInfo(),f.node().setLocalPosition(u+a,c/2),_&&(this.prevBtnGroup.addEventListener("click",function(){e.prev()}),this.nextBtnGroup.addEventListener("click",function(){e.next()}))}},r.prototype.render=function(t,e){var i=t.x,a=i===void 0?0:i,o=t.y,s=o===void 0?0:o;this.attr("transform","translate(".concat(a,", ").concat(s,")"));var l=A(e);this.renderClipPath(l),this.renderController(l),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},r.prototype.bindEvents=function(){var t=this,e=ep(function(){return t.render(t.attributes,t)},50);this.playWindow.addEventListener(Uo.INSERTED,e),this.playWindow.addEventListener(Uo.REMOVED,e)},r})(np);import{__assign as pe,__extends as mp,__read as fe,__rest as nn}from"/tslib?target=es2022";import{Circle as Ko}from"/@antv/g@^6.1.11?target=es2022";import{isUndefined as gp}from"/@antv/util@^3.3.10?target=es2022";import{Component as yp}from"./esm/core.mjs";import{__extends as lp,__read as Fe,__rest as up,__spreadArray as cp}from"/tslib?target=es2022";import{deepMix as Zo,isString as pp,isElement as fp,assign as dp,get as hp}from"/@antv/util@^3.3.10?target=es2022";import{Component as vp}from"./esm/core.mjs";var z,Xo="component-poptip",I={CONTAINER:"component-poptip",ARROW:"component-poptip-arrow",TEXT:"component-poptip-text"},en=(z={},z[".".concat(I.CONTAINER)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},z[".".concat(I.TEXT)]={"text-align":"center"},z[".".concat(I.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, -100%)"},z[".".concat(I.CONTAINER,"[data-position='left']")]={transform:"translate(-100%, -50%)"},z[".".concat(I.CONTAINER,"[data-position='right']")]={transform:"translate(0, -50%)"},z[".".concat(I.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},z[".".concat(I.CONTAINER,"[data-position='top-left']")]={transform:"translate(0,-100%)"},z[".".concat(I.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},z[".".concat(I.CONTAINER,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},z[".".concat(I.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},z[".".concat(I.CONTAINER,"[data-position='right-top']")]={transform:"translate(0, 0)"},z[".".concat(I.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},z[".".concat(I.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},z[".".concat(I.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},z[".".concat(I.ARROW)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},z[".".concat(I.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},z["[data-position='top'] .".concat(I.ARROW)]={bottom:"-2px"},z[".".concat(I.CONTAINER,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},z["[data-position='left'] .".concat(I.ARROW)]={right:"-2px"},z[".".concat(I.CONTAINER,"[data-position='right']")]={transform:"translate(5px, -50%)"},z["[data-position='right'] .".concat(I.ARROW)]={left:"-2px"},z[".".concat(I.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},z["[data-position='bottom'] .".concat(I.ARROW)]={top:"-2px"},z[".".concat(I.CONTAINER,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},z["[data-position='top-left'] .".concat(I.ARROW)]={left:"10px",bottom:"-2px"},z[".".concat(I.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},z["[data-position='top-right'] .".concat(I.ARROW)]={right:"10px",bottom:"-2px"},z[".".concat(I.CONTAINER,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},z["[data-position='left-top'] .".concat(I.ARROW)]={right:"-2px",top:"8px"},z[".".concat(I.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},z["[data-position='left-bottom'] .".concat(I.ARROW)]={right:"-2px",bottom:"8px"},z[".".concat(I.CONTAINER,"[data-position='right-top']")]={transform:"translate(5px, 0)"},z["[data-position='right-top'] .".concat(I.ARROW)]={left:"-2px",top:"8px"},z[".".concat(I.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},z["[data-position='right-bottom'] .".concat(I.ARROW)]={left:"-2px",bottom:"8px"},z[".".concat(I.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},z["[data-position='bottom-left'] .".concat(I.ARROW)]={top:"-2px",left:"8px"},z[".".concat(I.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},z["[data-position='bottom-right'] .".concat(I.ARROW)]={top:"-2px",right:"8px"},z);var ap=void 0;function rn(n,r,t,e,i,a){if(i===void 0&&(i=!1),a===void 0&&(a=!1),a)return[n,r];var o=t.getBoundingClientRect(),s=o.x,l=o.y,u=o.width,c=o.height;switch(e){case"top":return i?[s+u/2,l]:[n,l];case"left":return i?[s,l+c/2]:[s,r];case"bottom":return i?[s+u/2,l+c]:[n,l+c];case"right":return i?[s+u,l+c/2]:[s+u,r];case"top-right":case"right-top":return[s+u,l];case"left-bottom":case"bottom-left":return[s,l+c];case"right-bottom":case"bottom-right":return[s+u,l+c];case"top-left":case"left-top":default:return[s,l]}}var op=function(n){var r;return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r||(r=n.apply(ap,t)),r}};function sp(n){var r=n&&document.getElementById(n);return r||(r=document.createElement("div"),r.setAttribute("id",n),document.body.appendChild(r)),r}function qo(n){var r=op(sp)(n);return r}var oi=(function(n){lp(r,n);function r(t){var e=n.call(this,Zo({style:{id:Xo}},r.defaultOptions,t))||this;return e.visibility="visible",e.map=new Map,e.domStyles="",e.initShape(),e.render(e.attributes,e),e}return Object.defineProperty(r.prototype,"visible",{get:function(){return this.visibility==="visible"},enumerable:!1,configurable:!0}),r.prototype.render=function(t,e){this.visibility=this.style.visibility,this.updatePoptipElement()},r.prototype.update=function(t){this.attr(Zo({},this.style,t)),this.render(this.attributes,this)},r.prototype.bind=function(t,e){var i=this;if(t){var a=this.style.text,o=function(l){var u=t,c=i.style,p=a;if(e){var f=typeof e=="function"?e.call(null,l):e,d=f.html,h=f.target,v=up(f,["html","target"]);c=dp({},i.style,v),(h||h===!1)&&(u=h),typeof d=="string"&&(p=d)}var m=c.position,g=c.arrowPointAtCenter,y=c.follow,b=c.offset;if(u){var _=l,x=_.clientX,S=_.clientY,w=Fe(rn(x,S,u,m,g,y),2),L=w[0],C=w[1];i.showTip(L,C,{text:p,position:m,offset:b})}else i.hideTip()},s=function(){i.hideTip()};t.addEventListener("mousemove",o),t.addEventListener("mouseleave",s),this.map.set(t,[o,s])}},r.prototype.unbind=function(t){if(this.map.has(t)){var e=Fe(this.map.get(t)||[],2),i=e[0],a=e[1];i&&t.removeEventListener("mousemove",i),a&&t.removeEventListener("mouseleave",a),this.map.delete(t)}},r.prototype.clear=function(){this.container.innerHTML=""},r.prototype.destroy=function(){var t=this,e;cp([],Fe(this.map.keys()),!1).forEach(function(i){return t.unbind(i)}),(e=this.container)===null||e===void 0||e.remove(),n.prototype.destroy.call(this)},r.prototype.showTip=function(t,e,i){var a=hp(i,"text");if(!(a&&typeof a!="string")&&(this.applyStyles(),t&&e&&i)){var o=i.offset,s=i.position;if(s&&this.container.setAttribute("data-position",s),this.setOffsetPosition(t,e,o),typeof a=="string"){var l=this.container.querySelector(".".concat(I.TEXT));l&&(l.innerHTML=a)}this.visibility="visible",this.container.style.visibility="visible"}},r.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},r.prototype.getContainer=function(){return this.container},r.prototype.getClassName=function(){var t=this.style.containerClassName;return"".concat(I.CONTAINER).concat(t?" ".concat(t):"")},r.prototype.initShape=function(){var t=this,e=this.style.id;this.container=qo(e),this.container.className=this.getClassName(),this.container.addEventListener("mousemove",function(){return t.showTip()}),this.container.addEventListener("mouseleave",function(){return t.hideTip()})},r.prototype.updatePoptipElement=function(){var t=this.container;this.clear();var e=this.style,i=e.id,a=e.template,o=e.text;this.container.setAttribute("id",i),this.container.className=this.getClassName();var s='<span class="'.concat(I.ARROW,'"></span>');t.innerHTML=s,pp(a)?t.innerHTML+=a:a&&fp(a)&&t.appendChild(a),o&&(t.getElementsByClassName(I.TEXT)[0].textContent=o),this.applyStyles(),this.container.style.visibility=this.visibility},r.prototype.applyStyles=function(){var t=M({},en,this.style.domStyles),e=Object.entries(t).reduce(function(a,o){var s=Fe(o,2),l=s[0],u=s[1],c=Object.entries(u).reduce(function(p,f){var d=Fe(f,2),h=d[0],v=d[1];return"".concat(p).concat(h,": ").concat(v,";")},"");return"".concat(a).concat(l,"{").concat(c,"}")},"");if(this.domStyles!==e){this.domStyles=e;var i=this.container.querySelector("style");i&&this.container.removeChild(i),i=document.createElement("style"),i.innerHTML=e,this.container.appendChild(i)}},r.prototype.setOffsetPosition=function(t,e,i){i===void 0&&(i=this.style.offset);var a=Fe(i,2),o=a[0],s=o===void 0?0:o,l=a[1],u=l===void 0?0:l;this.container.style.left="".concat(t+s,"px"),this.container.style.top="".concat(e+u,"px")},r.tag="poptip",r.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:en,template:'<div class="'.concat(I.TEXT,'"></div>')}},r})(vp);var nt=q({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",focusGroup:"focus-group",focus:"focus",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),bp={offset:[0,20],domStyles:{".component-poptip":{opacity:"1",padding:"8px 12px",background:"#fff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".component-poptip-arrow":{display:"none"},".component-poptip-text":{color:"#000",lineHeight:"20px"}}};function xp(n){var r=n.querySelector(nt.marker.class);return r?r.style:{}}var $o=(function(n){mp(r,n);function r(t,e){var i=n.call(this,t,{span:[1,1],marker:function(){return new Ko({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this;return i.keyFields={},i.keyFields=e||{},i}return Object.defineProperty(r.prototype,"showValue",{get:function(){var t=this.attributes.valueText;return t?typeof t=="string"||typeof t=="number"?t!=="":typeof t=="function"?!0:t.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"actualSpace",{get:function(){var t=this.labelGroup,e=this.valueGroup,i=this.attributes,a=i.markerSize,o=i.focus,s=i.focusMarkerSize,l=t.node().getBBox(),u=l.width,c=l.height,p=e.node().getBBox(),f=p.width,d=p.height,h=o?s??12:0;return{markerWidth:a,labelWidth:u,valueWidth:f,focusWidth:h,height:Math.max(a,c,d)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"span",{get:function(){var t=this.attributes.span;if(!t)return[1,1];var e=fe(H(t),2),i=e[0],a=e[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),r.prototype.setAttribute=function(t,e){n.prototype.setAttribute.call(this,t,e)},Object.defineProperty(r.prototype,"shape",{get:function(){var t,e=this.attributes,i=e.markerSize,a=e.width,o=this.actualSpace,s=o.markerWidth,l=o.focusWidth,u=o.height,c=this.actualSpace,p=c.labelWidth,f=c.valueWidth,d=fe(this.spacing,3),h=d[0],v=d[1],m=d[2];if(a){var g=a-i-h-v-l-m,y=fe(this.span,2),b=y[0],_=y[1];t=fe([b*g,_*g],2),p=t[0],f=t[1]}var x=s+p+f+h+v+l+m;return{width:x,height:u,markerWidth:s,labelWidth:p,valueWidth:f,focusWidth:l}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"spacing",{get:function(){var t=this.attributes,e=t.spacing,i=t.focus;if(!e)return[0,0,0];var a=fe(H(e),3),o=a[0],s=a[1],l=a[2];return[o,this.showValue?s:0,i?l:0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"layout",{get:function(){var t=this.shape,e=t.markerWidth,i=t.labelWidth,a=t.valueWidth,o=t.focusWidth,s=t.width,l=t.height,u=fe(this.spacing,3),c=u[0],p=u[1],f=u[2];return{height:l,width:s,markerWidth:e,labelWidth:i,valueWidth:a,focusWidth:o,position:[e/2,e+c,e+i+c+p,e+i+a+c+p+f+o/2]}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"scaleSize",{get:function(){var t=xp(this.markerGroup.node()),e=this.attributes,i=e.markerSize,a=e.markerStrokeWidth,o=a===void 0?t.strokeWidth:a,s=e.markerLineWidth,l=s===void 0?t.lineWidth:s,u=e.markerStroke,c=u===void 0?t.stroke:u,p=+(o||l||(c?1:0))*Math.sqrt(2),f=this.markerGroup.node().getBBox(),d=f.width,h=f.height;return(1-p/Math.max(d,h))*i},enumerable:!1,configurable:!0}),r.prototype.renderMarker=function(t){var e=this,i=this.attributes,a=i.marker,o=i.classNamePrefix,s=P(this.attributes,"marker");this.markerGroup=t.maybeAppendByClassName(nt.markerGroup,"g").style("zIndex",0),K(!!a,this.markerGroup,function(){var l,u=e.markerGroup.node(),c=(l=u.childNodes)===null||l===void 0?void 0:l[0],p=Y(nt.marker.name,j.marker,o),f=typeof a=="string"?new F({style:{symbol:a},className:p}):a();if(c)if(f.nodeName===c.nodeName)c instanceof F?c.update(pe(pe({},s),{symbol:a})):(Wr(c,f),A(c).styles(s));else{if(c.remove(),!(f instanceof F)){var h=Y(nt.marker.name,j.marker,o);f.className=h}A(f).styles(s),u.appendChild(f)}else{if(!(f instanceof F)){var d=Y(nt.marker.name,j.marker,o);f.className=d,A(f).styles(s)}u.appendChild(f)}e.markerGroup.node().scale(1/e.markerGroup.node().getScale()[0]);var v=Ut(e.markerGroup.node(),e.scaleSize,!0);e.markerGroup.node().style._transform="scale(".concat(v,")")})},r.prototype.renderLabel=function(t){var e=P(this.attributes,"label"),i=e.text,a=nn(e,["text"]),o=this.attributes.classNamePrefix;this.labelGroup=t.maybeAppendByClassName(nt.labelGroup,"g").style("zIndex",0);var s=Y(nt.label.name,j.label,o),l=this.labelGroup.maybeAppendByClassName(nt.label,function(){return ut(i)});l.node().setAttribute("class",s),l.styles(a)},r.prototype.renderValue=function(t){var e=this,i=P(this.attributes,"value"),a=i.text,o=nn(i,["text"]),s=this.attributes.classNamePrefix;this.valueGroup=t.maybeAppendByClassName(nt.valueGroup,"g").style("zIndex",0),K(this.showValue,this.valueGroup,function(){var l=Y(nt.value.name,j.value,s),u=e.valueGroup.maybeAppendByClassName(nt.value,function(){return ut(a)});u.node().setAttribute("class",l),u.styles(o)})},r.prototype.createPoptip=function(){var t=this.attributes.poptip,e=t||{},i=e.render,a=nn(e,["render"]),o=new oi({style:M(bp,a)});return this.poptipGroup=o,o},r.prototype.bindPoptip=function(t){var e=this,i=this.attributes.poptip;if(i){var a=this.poptipGroup||this.createPoptip();a.bind(t,function(){var o=e.attributes,s=o.labelText,l=o.valueText,u=o.markerFill,c=typeof s=="string"?s:s?.attr("text"),p=typeof l=="string"?l:l?.attr("text");if(typeof i.render=="function")return{html:i.render(pe(pe({},e.keyFields),{label:c,value:p,color:u}))};var f="";return(typeof c=="string"||typeof c=="number")&&(f+='<div class="component-poptip-label">'.concat(c,"</div>")),(typeof p=="string"||typeof p=="number")&&(f+='<div class="component-poptip-value">'.concat(p,"</div>")),{html:f}})}},r.prototype.renderFocus=function(t){var e=this,i=this.attributes,a=i.focus,o=i.focusMarkerSize,s=i.classNamePrefix,l={x:0,y:0,size:o,opacity:.6,symbol:"focus",stroke:"#aaaaaa",lineWidth:1};gp(a)||(this.focusGroup=t.maybeAppendByClassName(nt.focusGroup,"g").style("zIndex",0),K(a,this.focusGroup,function(){var u=Y(nt.focus.name,j.focusIcon,s),c=new F({style:pe(pe({},l),{symbol:"focus"}),className:u}),p=new Ko({style:{r:l.size/2,fill:"transparent"}}),f=e.focusGroup.node();f.appendChild(p),f.appendChild(c),c.update({opacity:0}),t.node().addEventListener("pointerenter",function(){c.update({opacity:1})}),t.node().addEventListener("pointerleave",function(){c.update({opacity:0})})}))},r.prototype.renderPoptip=function(t){var e=this,i=this.attributes.poptip;if(i){var a=t.maybeAppendByClassName(nt.value,"g").node(),o=t.maybeAppendByClassName(nt.label,"g").node();[a,o].forEach(function(s){s&&e.bindPoptip(s)})}},r.prototype.renderBackground=function(t){var e=this.shape,i=e.width,a=e.height,o=P(this.attributes,"background");this.background=t.maybeAppendByClassName(nt.backgroundGroup,"g").style("zIndex",-1);var s=this.background.maybeAppendByClassName(nt.background,"rect");s.styles(pe({width:i,height:a},o));var l=this.attributes.classNamePrefix,u=l===void 0?"":l;if(u){var c=Y(nt.background.name,j.background,u);s.node().setAttribute("class",c)}},r.prototype.adjustLayout=function(){var t=this.layout,e=t.labelWidth,i=t.valueWidth,a=t.height,o=fe(t.position,4),s=o[0],l=o[1],u=o[2],c=o[3],p=a/2;this.markerGroup.styles({transform:"translate(".concat(s,", ").concat(p,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(l,", ").concat(p,")")}),this.focusGroup&&this.focusGroup.styles({transform:"translate(".concat(c,", ").concat(p,")")}),re(this.labelGroup.select(nt.label.class).node(),Math.ceil(e)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(u,", ").concat(p,")")}),re(this.valueGroup.select(nt.value.class).node(),Math.ceil(i)))},r.prototype.render=function(t,e){var i=A(e),a=t.x,o=a===void 0?0:a,s=t.y,l=s===void 0?0:s;i.styles({transform:"translate(".concat(o,", ").concat(l,")")}),this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.renderPoptip(i),this.renderFocus(i),this.adjustLayout()},r})(yp);var de=q({page:"item-page",navigator:"navigator",item:"item"},"items"),Jo=function(n,r,t){return t===void 0&&(t=!0),n?r(n):t},Qo=(function(n){Sp(r,n);function r(t){var e=n.call(this,t,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:an,mouseenter:an,mouseleave:an})||this;return e.navigatorShape=[0,0],e}return Object.defineProperty(r.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"grid",{get:function(){var t=this.attributes,e=t.gridRow,i=t.gridCol,a=t.data;if(!e&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return e&&i?[e,i]:e?[e,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"renderData",{get:function(){var t=this.attributes,e=t.data,i=t.layout,a=t.poptip,o=t.focus,s=t.focusMarkerSize,l=t.classNamePrefix,u=P(this.attributes,"item"),c=e.map(function(p,f){var d=p.id,h=d===void 0?f:d,v=p.label,m=p.value;return{id:"".concat(h),index:f,style:_p({layout:i,labelText:v,valueText:m,poptip:a,focus:o,focusMarkerSize:s,classNamePrefix:l},Object.fromEntries(Object.entries(u).map(function(g){var y=ft(g,2),b=y[0],_=y[1];return[b,Q(_,[p,f,e])]})))}});return c},enumerable:!1,configurable:!0}),r.prototype.getGridLayout=function(){var t=this,e=this.attributes,i=e.orientation,a=e.width,o=e.rowPadding,s=e.colPadding,l=ft(this.navigatorShape,1),u=l[0],c=ft(this.grid,2),p=c[0],f=c[1],d=f*p,h=0;return this.pageViews.children.map(function(v,m){var g,y,b=Math.floor(m/d),_=m%d,x=t.ifHorizontal(f,p),S=[Math.floor(_/x),_%x];i==="vertical"&&S.reverse();var w=ft(S,2),L=w[0],C=w[1],T=(a-u-(f-1)*s)/f,N=v.getBBox().height,B=ft([0,0],2),R=B[0],D=B[1];return i==="horizontal"?(g=ft([h,L*(N+o)],2),R=g[0],D=g[1],h=C===f-1?0:h+T+s):(y=ft([C*(T+s),h],2),R=y[0],D=y[1],h=L===p-1?0:h+N+o),{page:b,index:m,row:L,col:C,pageIndex:_,width:T,height:N,x:R,y:D}})},r.prototype.getFlexLayout=function(){var t=this.attributes,e=t.width,i=t.height,a=t.rowPadding,o=t.colPadding,s=ft(this.navigatorShape,1),l=s[0],u=ft(this.grid,2),c=u[0],p=u[1],f=ft([e-l,i],2),d=f[0],h=f[1],v=ft([0,0,0,0,0,0,0,0],8),m=v[0],g=v[1],y=v[2],b=v[3],_=v[4],x=v[5],S=v[6],w=v[7];return this.pageViews.children.map(function(L,C){var T,N,B,R,D=L.getBBox(),V=D.width,J=D.height,vt=S===0?0:o,gt=S+vt+V;if(gt<=d&&Jo(_,function(at){return at<p}))return T=ft([S+vt,w,gt],3),m=T[0],g=T[1],S=T[2],{width:V,height:J,x:m,y:g,page:y,index:C,pageIndex:b++,row:x,col:_++};N=ft([x+1,0,0,w+J+a],4),x=N[0],_=N[1],S=N[2],w=N[3];var Lt=w+J;return Lt<=h&&Jo(x,function(at){return at<c})?(B=ft([S,w,V],3),m=B[0],g=B[1],S=B[2],{width:V,height:J,x:m,y:g,page:y,index:C,pageIndex:b++,row:x,col:_++}):(R=ft([0,0,V,0,y+1,0,0,0],8),m=R[0],g=R[1],S=R[2],w=R[3],y=R[4],b=R[5],x=R[6],_=R[7],{width:V,height:J,x:m,y:g,page:y,index:C,pageIndex:b++,row:x,col:_++})})},Object.defineProperty(r.prototype,"itemsLayout",{get:function(){this.navigatorShape=[0,0];var t=this.attributes.layout==="grid"?this.getGridLayout:this.getFlexLayout,e=t.call(this);return e.slice(-1)[0].page>0?(this.navigatorShape=[55,0],t.call(this)):e},enumerable:!1,configurable:!0}),r.prototype.ifHorizontal=function(t,e){var i=this.attributes.orientation;return xt(i,t,e)},r.prototype.flattenPage=function(t){t.querySelectorAll(de.item.class).forEach(function(e){t.appendChild(e)}),t.querySelectorAll(de.page.class).forEach(function(e){var i=t.removeChild(e);i.destroy()})},r.prototype.renderItems=function(t){var e=this.attributes,i=e.click,a=e.mouseenter,o=e.mouseleave,s=e.classNamePrefix;this.flattenPage(t);var l=this.dispatchCustomEvent.bind(this),u=Y(de.item.name,j.item,s);A(t).selectAll(de.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(p){var f=p.style,d=wp(p,["style"]);return new $o({style:f},d)}).attr("className",u).on("click",function(){i?.(this),l("itemClick",{item:this})}).on("pointerenter",function(){a?.(this),l("itemMouseenter",{item:this})}).on("pointerleave",function(){o?.(this),l("itemMouseleave",{item:this})})},function(c){return c.each(function(p){var f=p.style;this.update(f)})},function(c){return c.remove()})},r.prototype.relayoutNavigator=function(){var t,e=this.attributes,i=e.layout,a=e.width,o=((t=this.pageViews.children[0])===null||t===void 0?void 0:t.getBBox().height)||0,s=ft(this.navigatorShape,2),l=s[0],u=s[1];this.navigator.update(i==="grid"?{pageWidth:a-l,pageHeight:o-u}:{})},r.prototype.adjustLayout=function(){var t=this,e=Object.entries(Or(this.itemsLayout,"page")).map(function(a){var o=ft(a,2),s=o[0],l=o[1];return{page:s,layouts:l}}),i=Ap([],ft(this.navigator.getContainer().children),!1);e.forEach(function(a){var o=a.layouts,s=t.pageViews.appendChild(new Z({className:de.page.name}));o.forEach(function(l){var u=l.x,c=l.y,p=l.index,f=l.width,d=l.height,h=i[p];s.appendChild(h),Lp(h,"__layout__",l),h.update({x:u,y:c,width:f,height:d})})}),this.relayoutNavigator()},r.prototype.renderNavigator=function(t){var e=this.attributes,i=e.orientation,a=e.classNamePrefix,o=P(this.attributes,"nav"),s=M({orientation:i,classNamePrefix:a},o),l=this;return t.selectAll(de.navigator.class).data(["nav"]).join(function(u){return u.append(function(){return new ai({style:s})}).attr("className",de.navigator.name).each(function(){l.navigator=this})},function(u){return u.each(function(){this.update(s)})},function(u){return u.remove()}),this.navigator},r.prototype.getBBox=function(){return this.navigator.getBBox()},r.prototype.render=function(t,e){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(A(e));this.renderItems(a.getContainer()),this.adjustLayout()}},r.prototype.dispatchCustomEvent=function(t,e){var i=new kp(t,{detail:e});this.dispatchEvent(i)},r})(Pp);var Tp=(function(n){es(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.update=function(t){this.attr(t)},r})(ve),on=(function(n){es(r,n);function r(t){return n.call(this,t,Wo)||this}return r.prototype.renderTitle=function(t,e,i){var a=this.attributes,o=a.showTitle,s=a.titleText,l=a.classNamePrefix,u=P(this.attributes,"title"),c=ts(ot(u),2),p=c[0],f=c[1];this.titleGroup=t.maybeAppendByClassName(tt.titleGroup,"g").styles(f);var d=Re(Re({width:e,height:i},p),{text:o?s:"",classNamePrefix:l});this.title=this.titleGroup.maybeAppendByClassName(tt.title,function(){return new ni({style:d})}).update(d)},r.prototype.renderCustom=function(t){var e=this.attributes.data,i={innerHTML:this.attributes.render(e),pointerEvents:"auto"};t.maybeAppendByClassName(tt.html,function(){return new Tp({className:tt.html.name,style:i})}).update(i)},r.prototype.renderItems=function(t,e){var i=e.x,a=e.y,o=e.width,s=e.height,l=P(this.attributes,"title",!0),u=ts(ot(l),2),c=u[0],p=u[1],f=Re(Re({},c),{width:o,height:s,x:0,y:0});this.itemsGroup=t.maybeAppendByClassName(tt.itemsGroup,"g").styles(Re(Re({},p),{transform:"translate(".concat(i,", ").concat(a,")")}));var d=this;this.itemsGroup.selectAll(tt.items.class).data(["items"]).join(function(h){return h.append(function(){return new Qo({style:f})}).attr("className",tt.items.name).each(function(){d.items=A(this)})},function(h){return h.update(f)},function(h){return h.remove()})},r.prototype.adjustLayout=function(){var t=this.attributes.showTitle;if(t){var e=this.title.node().getAvailableSpace(),i=e.x,a=e.y;this.itemsGroup.node().style.transform="translate(".concat(i,", ").concat(a,")")}},Object.defineProperty(r.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.showTitle,i=t.width,a=t.height;return e?this.title.node().getAvailableSpace():new W(0,0,i,a)},enumerable:!1,configurable:!0}),r.prototype.getBBox=function(){var t,e,i=(t=this.title)===null||t===void 0?void 0:t.node(),a=(e=this.items)===null||e===void 0?void 0:e.node();return!i||!a?n.prototype.getBBox.call(this):jo(i,a)},r.prototype.render=function(t,e){var i=this.attributes,a=i.width,o=i.height,s=i.x,l=s===void 0?0:s,u=i.y,c=u===void 0?0:u,p=i.classNamePrefix,f=i.render,d=A(e),h=e.className||"legend-category";p?e.attr("className","".concat(h," ").concat(p,"legend")):e.className||e.attr("className","legend-category"),e.style.transform="translate(".concat(l,", ").concat(c,")"),f?this.renderCustom(d):(this.renderTitle(d,a,o),this.renderItems(d,this.availableSpace),this.adjustLayout())},r})(Cp);import{__assign as kt,__extends as Yp,__read as et,__spreadArray as cn}from"/tslib?target=es2022";import{CustomEvent as cs}from"/@antv/g@^6.1.11?target=es2022";import{Linear as ps}from"/@antv/scale@^0.4.16?target=es2022";import{clamp as fs,isUndefined as Up}from"/@antv/util@^3.3.10?target=es2022";import{Component as Xp}from"./esm/core.mjs";import{__assign as is,__extends as Ep,__read as Nt,__rest as Np,__spreadArray as ns}from"/tslib?target=es2022";import{ElementEvent as Bp}from"/@antv/g@^6.1.11?target=es2022";import{Component as Op}from"./esm/core.mjs";var rs={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(n){return n.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999};var sn=q({background:"background",labelGroup:"label-group",label:"label"},"indicator"),si=(function(n){Ep(r,n);function r(t){var e=n.call(this,t,rs)||this;return e.point=[0,0],e.group=e.appendChild(new Z({})),e.isMutationObserved=!0,e}return r.prototype.renderBackground=function(){if(this.label){var t=this.attributes,e=t.position,i=t.padding,a=Nt(H(i),4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.label.node().getLocalBounds(),p=c.min,f=c.max,d=new W(p[0]-u,p[1]-o,f[0]+s-p[0]+u,f[1]+l-p[1]+o),h=this.getPath(e,d),v=P(this.attributes,"background");this.background=A(this.group).maybeAppendByClassName(sn.background,"path").styles(is(is({},v),{d:h})),this.group.appendChild(this.label.node())}},r.prototype.renderLabel=function(){var t=this.attributes,e=t.formatter,i=t.labelText,a=P(this.attributes,"label"),o=Nt(ot(a),2),s=o[0],l=o[1],u=s.text,c=Np(s,["text"]);if(this.label=A(this.group).maybeAppendByClassName(sn.labelGroup,"g").styles(l),!!i){var p=this.label.maybeAppendByClassName(sn.label,function(){return ut(e(i))}).style("text",e(i).toString());p.selectAll("text").styles(c)}},r.prototype.adjustLayout=function(){var t=Nt(this.point,2),e=t[0],i=t[1],a=this.attributes,o=a.x,s=a.y;this.group.attr("transform","translate(".concat(o-e,", ").concat(s-i,")"))},r.prototype.getPath=function(t,e){var i=this.attributes.radius,a=e.x,o=e.y,s=e.width,l=e.height,u=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+l-i],["A",i,i,0,0,1,a+s-i,o+l],["L",a+i,o+l],["A",i,i,0,0,1,a,o+l-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],c={top:4,right:6,bottom:0,left:2},p=c[t],f=this.createCorner([u[p].slice(-2),u[p+1].slice(-2)]);return u.splice.apply(u,ns([p+1,1],Nt(f),!1)),u[0][0]="M",u},r.prototype.createCorner=function(t,e){e===void 0&&(e=10);var i=.8,a=Gr.apply(void 0,ns([],Nt(t),!1)),o=Nt(t,2),s=Nt(o[0],2),l=s[0],u=s[1],c=Nt(o[1],2),p=c[0],f=c[1],d=Nt(a?[p-l,[l,p]]:[f-u,[u,f]],2),h=d[0],v=Nt(d[1],2),m=v[0],g=v[1],y=h/2,b=h/Math.abs(h),_=e*b,x=_/2,S=_*Math.sqrt(3)/2*i,w=Nt([m,m+y-x,m+y,m+y+x,g],5),L=w[0],C=w[1],T=w[2],N=w[3],B=w[4];return a?(this.point=[T,u-S],[["L",L,u],["L",C,u],["L",T,u-S],["L",N,u],["L",B,u]]):(this.point=[l+S,T],[["L",l,L],["L",l,C],["L",l+S,T],["L",l,N],["L",l,B]])},r.prototype.applyVisibility=function(){var t=this.attributes.visibility;t==="hidden"?X(this):bt(this)},r.prototype.bindEvents=function(){this.label.on(Bp.BOUNDS_CHANGED,this.renderBackground)},r.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},r})(Op);import{__assign as os,__extends as Hp,__read as un}from"/tslib?target=es2022";import{parseColor as zp}from"/@antv/g@^6.1.11?target=es2022";import{isFunction as Fp}from"/@antv/util@^3.3.10?target=es2022";import{Component as Rp}from"./esm/core.mjs";import{__read as Mp}from"/tslib?target=es2022";function Ip(n,r){for(var t=1;t<n.length;t+=1){var e=n[t-1],i=n[t];if(r>=e&&r<=i)return[e,i]}return[r,r]}function as(n,r,t){var e=Array.from(r),i=n.length;return new Array(i).fill(0).reduce(function(a,o,s){var l=e[s%e.length];return a+=" ".concat(n[s],":").concat(l).concat(s<i-1?" ".concat(n[s+1],":").concat(l):"")},"l(".concat(t==="horizontal"?"0":"270",")"))}function ln(n,r){var t=Mp(Ip(n,r),2),e=t[0],i=t[1];return{tick:r>(e+i)/2?i:e,range:[e,i]}}var he=q({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function ss(n){var r=n.orientation,t=n.size,e=n.length;return xt(r,[e,t],[t,e])}function ls(n){var r=n.type,t=un(ss(n),2),e=t[0],i=t[1];return r==="size"?[["M",0,i],["L",0+e,0],["L",0+e,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+e,0],["L",0+e,i],["Z"]]}function Gp(n){return ls(n)}function Wp(n){var r=n.orientation,t=n.color,e=n.block,i=n.partition,a;if(Fp(t)){var o=20;a=new Array(o).fill(0).map(function(u,c,p){return t(c/(p.length-1))})}else a=t;var s=a.length,l=a.map(function(u){return zp(u).toString()});return s?s===1?l[0]:e?as(i,l,r):l.reduce(function(u,c,p){return u+=" ".concat(p/(s-1),":").concat(c)},"l(".concat(xt(r,"0","270"),")")):""}function Dp(n){var r=n.orientation,t=n.range;if(!t)return[];var e=un(ss(n),2),i=e[0],a=e[1],o=un(t,2),s=o[0],l=o[1],u=xt(r,s*i,0),c=xt(r,0,s*a),p=xt(r,l*i,i),f=xt(r,a,l*a);return[["M",u,c],["L",u,f],["L",p,f],["L",p,c],["Z"]]}function Vp(n,r){var t=P(r,"track"),e=r.classNamePrefix,i=Y(he.track.name,j.track,e);n.maybeAppendByClassName(he.track,"path").attr("className",i).styles(os({d:ls(r)},t))}function jp(n,r){var t=P(r,"selection"),e=Wp(r),i=r.classNamePrefix,a=Y(he.selection.name,j.selection,i),o=n.maybeAppendByClassName(he.selection,"path").attr("className",a).styles(os({d:Gp(r),fill:e},t)),s=o.maybeAppendByClassName(he.clipPath,"path").styles({d:Dp(r)}).node();o.style("clipPath",s)}var us=(function(n){Hp(r,n);function r(t){return n.call(this,t,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return r.prototype.render=function(t,e){var i=A(e).maybeAppendByClassName(he.trackGroup,"g");Vp(i,t);var a=A(e).maybeAppendByClassName(he.selectionGroup,"g");jp(a,t)},r})(Rp);function qp(n){return{min:Math.min.apply(Math,cn([],et(n.map(function(r){return r.value})),!1)),max:Math.max.apply(Math,cn([],et(n.map(function(r){return r.value})),!1))}}var pn=(function(n){Yp(r,n);function r(t){var e=n.call(this,t,Do)||this;return e.eventToOffsetScale=new ps({}),e.innerRibbonScale=new ps({}),e.cacheLabelBBox=null,e.cacheHandleBBox=null,e.onHovering=function(i){var a=e.attributes,o=a.data,s=a.block;i.stopPropagation();var l=e.getValueByCanvasPoint(i);if(s){var u=ln(o.map(function(f){var d=f.value;return d}),l).range,c=e.getRealSelection(u);e.showIndicator((u[0]+u[1])/2,"".concat(c[0],"-").concat(c[1])),e.dispatchIndicated(l,u)}else{var p=e.getTickValue(l);e.showIndicator(p,"".concat(e.getRealValue(p))),e.dispatchIndicated(p)}},e.onDragStart=function(i){return function(a){a.stopPropagation(),e.attributes.slidable&&(e.target=i,e.prevValue=e.getTickValue(e.getValueByCanvasPoint(a)),document.addEventListener("mousemove",e.onDragging),document.addEventListener("touchmove",e.onDragging),document.addEventListener("mouseleave",e.onDragEnd),document.addEventListener("mouseup",e.onDragEnd),document.addEventListener("mouseup",e.onDragEnd),document.addEventListener("touchend",e.onDragEnd))}},e.onDragging=function(i){var a=e.target;e.updateMouse();var o=et(e.selection,2),s=o[0],l=o[1],u=e.getTickValue(e.getValueByCanvasPoint(i)),c=u-e.prevValue;a==="start"?s!==u&&e.updateSelection(u,l):a==="end"?l!==u&&e.updateSelection(s,u):a==="ribbon"&&c!==0&&(e.prevValue=u,e.updateSelection(c,c,!0))},e.onDragEnd=function(){e.style.cursor="pointer",document.removeEventListener("mousemove",e.onDragging),document.removeEventListener("touchmove",e.onDragging),document.removeEventListener("mouseup",e.onDragEnd),document.removeEventListener("touchend",e.onDragEnd)},e}return Object.defineProperty(r.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),r.prototype.getBBox=function(){var t=this.attributes,e=t.width,i=t.height;return new W(0,0,e,i)},r.prototype.render=function(t,e){var i=this,a=t.classNamePrefix,o=e.className||"legend-continuous";a?e.attr("className","".concat(o," ").concat(a,"legend")):e.className||e.attr("className","legend-continuous");var s=t.showLabel;this.renderTitle(A(e));var l=this.availableSpace,u=l.x,c=l.y,p=A(e).maybeAppendByClassName(tt.contentGroup,"g").styles({transform:"translate(".concat(u,", ").concat(c,")")}),f=p.maybeAppendByClassName(tt.labelGroup,"g").styles({zIndex:1});K(!!s,f,function(h){i.renderLabel(h)});var d=p.maybeAppendByClassName(tt.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=p.maybeAppendByClassName(tt.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(d),this.renderIndicator(p),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(r.prototype,"range",{get:function(){var t=this.attributes,e=t.data,i=t.domain;return i?{min:i[0],max:i[1]}:qp(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ribbonScale",{get:function(){var t=this.range,e=t.min,i=t.max;return this.innerRibbonScale.update({domain:[e,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ribbonRange",{get:function(){var t=et(this.selection,2),e=t[0],i=t[1],a=this.ribbonScale;return[a.map(e),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selection",{get:function(){var t=this.range,e=t.min,i=t.max,a=this.attributes.defaultValue,o=a===void 0?[e,i]:a,s=et(o,2),l=s[0],u=s[1];return[l,u]},enumerable:!1,configurable:!0}),r.prototype.ifHorizontal=function(t,e){return xt(this.attributes.orientation,typeof t=="function"?t():t,typeof e=="function"?e():e)},r.prototype.renderTitle=function(t){var e=this.attributes,i=e.showTitle,a=e.titleText,o=e.width,s=e.height,l=e.classNamePrefix,u=P(this.attributes,"title"),c=kt(kt({},u),{width:o,height:s,text:a,classNamePrefix:l}),p=this;t.selectAll(tt.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new ni({style:c})}).attr("className",tt.title.name).each(function(){p.title=this})},function(f){return f.update(c)},function(f){return f.each(function(){p.title=void 0}).remove()})},Object.defineProperty(r.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var t=this.attributes,e=t.width,i=t.height;return new W(0,0,e,i)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labelFixedSpacing",{get:function(){var t=this.attributes.showTick;return t?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labelPosition",{get:function(){var t=this.attributes,e=t.orientation,i=t.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[e][i]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labelBBox",{get:function(){var t,e=this.attributes.showLabel;if(!e)return new W(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((t=this.label.querySelector(E.labelGroup.class))===null||t===void 0?void 0:t.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new W(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labelShape",{get:function(){var t=this.attributes,e=t.showLabel,i=t.labelSpacing,a=i===void 0?0:i;if(!e)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,l=o.height,u=this.ifHorizontal(l,s)+a+this.labelFixedSpacing,c=this.ifHorizontal(s,l);return{width:s,height:l,size:u,length:c}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ribbonBBox",{get:function(){var t=this.attributes,e=t.showHandle,i=t.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,l=this.labelShape,u=l.size,c=l.length,p=et(this.ifHorizontal([s,o],[o,s]),2),f=p[0],d=p[1],h=e?this.handleShape:{size:0,length:0},v=h.size,m=h.length,g=this.handleOffsetRatio,y=0,b=this.labelPosition;i?y=i:["bottom","right"].includes(b)?y=Math.min(f-u,(f-v)/g):f*(1-g)>v?y=Math.max(f-u,0):y=Math.max((f-u-v)/g,0);var _=Math.max(m,c),x=d-_,S=et(this.ifHorizontal([x,y],[y,x]),2),w=S[0],L=S[1],C=["top","left"].includes(b)?u:0,T=et(this.ifHorizontal([_/2,C],[C,_/2]),2),N=T[0],B=T[1];return new W(N,B,w,L)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ribbonShape",{get:function(){var t=this.ribbonBBox,e=t.width,i=t.height;return this.ifHorizontal({size:i,length:e},{size:e,length:i})},enumerable:!1,configurable:!0}),r.prototype.renderRibbon=function(t){var e=this.attributes,i=e.data,a=e.type,o=e.orientation,s=e.color,l=e.block,u=e.classNamePrefix,c=P(this.attributes,"ribbon"),p=this.range,f=p.min,d=p.max,h=this.ribbonBBox,v=h.x,m=h.y,g=this.ribbonShape,y=g.length,b=g.size,_=M({transform:"translate(".concat(v,", ").concat(m,")"),length:y,size:b,type:a,orientation:o,color:s,block:l,partition:i.map(function(S){return(S.value-f)/(d-f)}),range:this.ribbonRange,classNamePrefix:u},c),x=Y(tt.ribbon.name,j.ribbon,u);this.ribbon=t.maybeAppendByClassName(tt.ribbon,function(){return new us({style:_,className:x})}).update(_)},r.prototype.getHandleClassName=function(t){return"".concat(tt.prefix("".concat(t,"-handle")))},r.prototype.renderHandles=function(){var t=this.attributes,e=t.showHandle,i=t.orientation,a=t.classNamePrefix,o=P(this.attributes,"handle"),s=et(this.selection,2),l=s[0],u=s[1],c=kt(kt({},o),{orientation:i,classNamePrefix:a}),p=o.shape,f=p===void 0?"slider":p,d=f==="basic"?Ro:$r,h=this,v=Y(tt.handle.name,j.handle,a);this.handlesGroup.selectAll(tt.handle.class).data(e?[{value:l,type:"start"},{value:u,type:"end"}]:[],function(m){return m.type}).join(function(m){return m.append(function(){return new d({style:c,className:v})}).attr("className",function(g){var y=g.type;return"".concat(v," ").concat(h.getHandleClassName(y))}).each(function(g){var y=g.type,b=g.value;this.update({labelText:b});var _="".concat(y,"Handle");h[_]=this,this.addEventListener("pointerdown",h.onDragStart(y))})},function(m){return m.update(c).each(function(g){var y=g.value;this.update({labelText:y})})},function(m){return m.each(function(g){var y=g.type,b="".concat(y,"Handle");h[b]=void 0}).remove()})},r.prototype.adjustHandles=function(){var t=et(this.selection,2),e=t[0],i=t[1];this.setHandlePosition("start",e),this.setHandlePosition("end",i);var a=this.attributes,o=a.classNamePrefix,s=a.showHandle,l=P(this.attributes,"handle").shape,u=l===void 0?"slider":l;s&&u==="slider"&&o&&(this.startHandle&&this.updateSliderHandleClassNames(this.startHandle,o),this.endHandle&&this.updateSliderHandleClassNames(this.endHandle,o))},r.prototype.updateSliderHandleClassNames=function(t,e){var i=t.container||t,a=i.querySelector(".handle-icon-rect");if(a){var o=Y("handle-icon-rect",j.handleMarker,e);a.setAttribute("class",o);var s=a.querySelectorAll("line");s.forEach(function(c){var p=c.getAttribute("class")||"",f=p.split(" ")[0],d=Y(f,j.handleMarker,e);c.setAttribute("class",d)})}var l=i.querySelector(".handle-label");if(l){var u=Y("handle-label",j.handleLabel,e);l.setAttribute("class",u)}},Object.defineProperty(r.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new W(0,0,0,0);var t=this.startHandle.getBBox(),e=t.width,i=t.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,l=et([Math.max(e,o),Math.max(i,s)],2),u=l[0],c=l[1];return this.cacheHandleBBox=new W(0,0,u,c),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"handleShape",{get:function(){var t=this.handleBBox,e=t.width,i=t.height,a=et(this.ifHorizontal([i,e],[e,i]),2),o=a[0],s=a[1];return{width:e,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),r.prototype.setHandlePosition=function(t,e){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,l=this.ribbonShape.size,u=this.getOffset(e),c=et(this.ifHorizontal([o+u,s+l*this.handleOffsetRatio],[o+l*this.handleOffsetRatio,s+u]),2),p=c[0],f=c[1],d=this.handlesGroup.select(".".concat(this.getHandleClassName(t))).node();d?.update({transform:"translate(".concat(p,", ").concat(f,")"),formatter:i})},r.prototype.renderIndicator=function(t){var e=this.attributes.classNamePrefix,i=P(this.attributes,"indicator"),a=Y(tt.indicator.name,j.indicator,e);this.indicator=t.maybeAppendByClassName(tt.indicator,function(){return new si({style:i,className:a})}).update(i)},Object.defineProperty(r.prototype,"labelData",{get:function(){var t=this,e=this.attributes.data;return e.reduce(function(i,a,o,s){var l,u,c=(l=a?.id)!==null&&l!==void 0?l:o.toString();if(i.push(kt(kt({},a),{id:c,index:o,type:"value",label:(u=a?.label)!==null&&u!==void 0?u:a.value.toString(),value:t.ribbonScale.map(a.value)})),o<s.length-1){var p=s[o+1],f=et([a.value,p.value],2),d=f[0],h=f[1],v=(d+h)/2;i.push(kt(kt({},a),{id:c,index:o,type:"range",range:[d,h],label:[d,h].join("~"),value:t.ribbonScale.map(v)}))}return i},[])},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labelStyle",{get:function(){var t=et(["center","middle"],2),e=t[0],i=t[1],a=this.labelPosition;return a==="top"?i="bottom":a==="bottom"?i="top":a==="left"?e="end":a==="right"&&(e="start"),{labelTextAlign:e,labelTextBaseline:i}},enumerable:!1,configurable:!0}),r.prototype.renderLabel=function(t){var e=this.attributes,i=e.showTick,a=i===void 0?!1:i,o=e.labelFilter,s=e.labelFormatter,l=P(this.attributes,"tick"),u=P(this.attributes,"label"),c=u.align,p=M(kt({showLine:!1,showGrid:!1,showTick:a,type:"linear",startPos:[0,0],endPos:[0,0],tickDirection:"negative",labelTransform:"rotate(0)"},this.labelStyle),pt(l,"tick"),pt(u,"label"),{data:this.labelData}),f={tickFilter:function(h,v,m){return h?.type!=="value"?!1:o?o(h,h.index,m.filter(function(g){return g.type!=="value"})):!0},labelFilter:function(h,v,m){return h?.type!==c?!1:o?o(h,h.index,m.filter(function(g){return g.type===c})):!0},labelFormatter:s},d=kt(kt(kt({},p),f),{labelOverlap:[{type:"hide"}]});this.label=t.maybeAppendByClassName(tt.label,function(){return new ue({style:d})}).node(),this.label.update(d,!1)},Object.defineProperty(r.prototype,"labelAxisStyle",{get:function(){var t=this.attributes,e=t.showTick,i=t.labelDirection,a=t.labelSpacing,o=t.tickLength,s=this.ribbonShape.size,l=this.labelPosition,u=this.labelFixedSpacing,c=et([0,0,0],3),p=c[0],f=c[1],d=c[2],h=o??s;return e?(d=h,f=u,i==="positive"?l==="right"?(p=h,d=h):l==="bottom"&&(p=d):i==="negative"&&(l==="top"||l==="left")&&(p=s)):i==="positive"?l==="right"?f=h:l==="bottom"&&(p=s+u,f=a):i==="negative"&&(l==="left"||l==="top")&&(f=a),{offset:p,spacing:f,tickLength:d}},enumerable:!1,configurable:!0}),r.prototype.adjustLabel=function(){var t=this.attributes.showLabel;if(t){var e=this.ribbonBBox,i=e.x,a=e.y,o=e.width,s=e.height,l=this.labelAxisStyle,u=l.offset,c=l.spacing,p=l.tickLength,f=et(this.ifHorizontal([[i,a+u],[i+o,a+u]],[[i+u,a+s],[i+u,a]]),2),d=f[0],h=f[1];this.label.update({startPos:d,endPos:h,tickLength:p,labelSpacing:c},!1)}},r.prototype.bindEvents=function(){this.style.cursor="pointer",this.ribbon.on("pointerdown",this.onDragStart("ribbon")),this.ribbon.on("pointermove",this.onHovering),this.addEventListener("pointerout",this.hideIndicator)},r.prototype.showIndicator=function(t,e){e===void 0&&(e="".concat(t));var i=this.attributes.showIndicator;if(!i||typeof t!="number"){this.hideIndicator();return}var a=this.range,o=a.min,s=a.max,l=this.ribbonBBox,u=l.x,c=l.y,p=fs(t,o,s),f=this.getOffset(p),d=this.ifHorizontal([f+u,c],[u,f+c]);this.indicator.update({x:d[0],y:d[1],position:this.ifHorizontal("top","left"),labelText:e}),bt(this.indicator.node())},r.prototype.hideIndicator=function(){X(this.indicator.node())},r.prototype.updateMouse=function(){this.attributes.slidable&&(this.style.cursor="grabbing")},r.prototype.setSelection=function(t,e){this.updateSelection(t,e)},r.prototype.updateSelection=function(t,e,i){var a;i===void 0&&(i=!1);var o=et(this.selection,2),s=o[0],l=o[1],u=et([t,e],2),c=u[0],p=u[1];i&&(c+=s,p+=l);var f=this.range,d=f.min,h=f.max;a=et(Fo([d,h],[c,p],this.selection),2),c=a[0],p=a[1],this.update({defaultValue:[c,p]}),this.dispatchSelection()},Object.defineProperty(r.prototype,"step",{get:function(){var t=this.attributes.step,e=t===void 0?1:t,i=this.range,a=i.min,o=i.max;return Up(e)?Yt((o-a)*Vo,0):e},enumerable:!1,configurable:!0}),r.prototype.getTickValue=function(t){var e=this.attributes,i=e.data,a=e.block,o=this.range.min;return a?ln(i.map(function(s){var l=s.value;return l}),t).tick:Io(t,this.step,o)},r.prototype.getValueByCanvasPoint=function(t){var e=this.range,i=e.min,a=e.max,o=et(this.ribbon.node().getPosition(),2),s=o[0],l=o[1],u=this.ifHorizontal(s,l),c=this.ifHorizontal.apply(this,cn([],et(be(t)),!1)),p=c-u,f=fs(this.getOffset(p,!0),i,a);return f},r.prototype.getOffset=function(t,e){e===void 0&&(e=!1);var i=this.range,a=i.min,o=i.max,s=this.ribbonShape.length,l=this.eventToOffsetScale;return l.update({domain:[a,o],range:[0,s]}),e?l.invert(t):l.map(t)},r.prototype.getRealSelection=function(t){var e=this.range.max,i=et(t,2),a=i[0],o=i[1];return this.ifHorizontal([a,o],[e-o,e-a])},r.prototype.getRealValue=function(t){var e=this.range.max;return this.ifHorizontal(t,e-t)},r.prototype.dispatchSelection=function(){var t=this.getRealSelection(this.selection),e=new cs("valuechange",{detail:{value:t}});this.dispatchEvent(e)},r.prototype.dispatchIndicated=function(t,e){var i=this,a=this.range.max,o=this.ifHorizontal(function(){return{value:t,range:e}},function(){return{value:a-t,range:e?i.getRealSelection(e):void 0}}),s=new cs("indicate",{detail:o});this.dispatchEvent(s)},r})(Xp);import{__assign as Zp,__extends as Kp,__read as hr,__rest as $p}from"/tslib?target=es2022";import{substitute as Jp,createDOM as ms}from"/@antv/util@^3.3.10?target=es2022";import{Component as Qp}from"./esm/core.mjs";import{__assign as ds}from"/tslib?target=es2022";function li(n){return n===void 0&&(n=""),{CONTAINER:"".concat(n,"tooltip"),TITLE:"".concat(n,"tooltip-title"),LIST:"".concat(n,"tooltip-list"),LIST_ITEM:"".concat(n,"tooltip-list-item"),NAME:"".concat(n,"tooltip-list-item-name"),MARKER:"".concat(n,"tooltip-list-item-marker"),NAME_LABEL:"".concat(n,"tooltip-list-item-name-label"),VALUE:"".concat(n,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(n,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(n,"tooltip-crosshair-y")}}var hs={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function vs(n){var r;n===void 0&&(n="");var t=li(n);return r={},r[".".concat(t.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},r[".".concat(t.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},r[".".concat(t.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},r[".".concat(t.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},r[".".concat(t.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},r[".".concat(t.NAME)]={display:"flex","align-items":"center","max-width":"216px"},r[".".concat(t.NAME_LABEL)]=ds({flex:1},hs),r[".".concat(t.VALUE)]=ds({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},hs),r[".".concat(t.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},r[".".concat(t.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},r}var gs=(function(n){Kp(r,n);function r(t){var e=this,i,a,o=(a=(i=t.style)===null||i===void 0?void 0:i.template)===null||a===void 0?void 0:a.prefixCls,s=li(o);return e=n.call(this,t,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'<div class="'.concat(s.CONTAINER,'"></div>'),title:'<div class="'.concat(s.TITLE,'"></div>'),item:'<li class="'.concat(s.LIST_ITEM,`" data-index={index}>
3
+ <span class="`).concat(s.NAME,`">
4
+ <span class="`).concat(s.MARKER,`" style="background:{color}"></span>
5
+ <span class="`).concat(s.NAME_LABEL,`" title="{name}">{name}</span>
6
+ </span>
7
+ <span class="`).concat(s.VALUE,`" title="{value}">{value}</span>
8
+ </li>`)},style:vs(o)})||this,e.timestamp=-1,e.prevCustomContentKey=e.attributes.contentKey,e.initShape(),e.render(e.attributes,e),e}return Object.defineProperty(r.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),r.prototype.getContainer=function(){return this.element},Object.defineProperty(r.prototype,"elementSize",{get:function(){var t=this.element.offsetWidth,e=this.element.offsetHeight;return{width:t,height:e}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"HTMLTooltipItemsElements",{get:function(){var t=this.attributes,e=t.data,i=t.template;return e.map(function(a,o){var s=a.name,l=s===void 0?"":s,u=a.color,c=u===void 0?"black":u,p=a.index,f=$p(a,["name","color","index"]),d=Zp({name:l,color:c,index:p??o},f);return ms(Jp(i.item,d))})},enumerable:!1,configurable:!0}),r.prototype.render=function(t,e){this.renderHTMLTooltipElement(),this.updatePosition()},r.prototype.destroy=function(){var t;(t=this.element)===null||t===void 0||t.remove(),n.prototype.destroy.call(this)},r.prototype.show=function(t,e){var i=this;if(t!==void 0&&e!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=t??i.attributes.x,i.attributes.y=e??i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},r.prototype.hide=function(t,e){t===void 0&&(t=0),e===void 0&&(e=0);var i=this.attributes.enterable;i&&this.isCursorEntered(t,e)||(this.element.style.visibility="hidden")},r.prototype.initShape=function(){var t=this.attributes.template;this.element=ms(t.container),this.id&&this.element.setAttribute("id",this.id)},r.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var t=this.attributes.content;t&&(typeof t=="string"?this.element.innerHTML=t:tr(this.element,t))}},r.prototype.renderHTMLTooltipElement=function(){var t,e,i=this.attributes,a=i.template,o=i.title,s=i.enterable,l=i.style,u=i.content,c=li(a.prefixCls),p=this.element;if(this.element.style.pointerEvents=s?"auto":"none",u)this.renderCustomContent();else{o?(p.innerHTML=a.title,p.getElementsByClassName(c.TITLE)[0].innerHTML=o):(e=(t=p.getElementsByClassName(c.TITLE))===null||t===void 0?void 0:t[0])===null||e===void 0||e.remove();var f=this.HTMLTooltipItemsElements,d=document.createElement("ul");d.className=c.LIST,tr(d,f);var h=this.element.querySelector(".".concat(c.LIST));h?h.replaceWith(d):p.appendChild(d)}jr(p,l)},r.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,i=e.position,a=e.offset,o=t||i,s=o.split("-"),l={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},u=this.elementSize,c=u.width,p=u.height,f=[-c/2,-p/2];return s.forEach(function(d){var h=hr(f,2),v=h[0],m=h[1],g=hr(l[d],2),y=g[0],b=g[1];f=[v+(c/2+a[0])*y,m+(p/2+a[1])*b]}),f},r.prototype.setOffsetPosition=function(t){var e=hr(t,2),i=e[0],a=e[1],o=this.attributes,s=o.x,l=s===void 0?0:s,u=o.y,c=u===void 0?0:u,p=o.container,f=p.x,d=p.y;this.element.style.left="".concat(+l+f+i,"px"),this.element.style.top="".concat(+c+d+a,"px")},r.prototype.updatePosition=function(){var t=this.attributes.showDelay,e=t===void 0?60:t,i=Date.now();this.timestamp>0&&i-this.timestamp<e||(this.timestamp=i,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},r.prototype.autoPosition=function(t){var e=hr(t,2),i=e[0],a=e[1],o=this.attributes,s=o.x,l=o.y,u=o.bounding,c=o.position;if(!u)return[i,a];var p=this.element,f=p.offsetWidth,d=p.offsetHeight,h=hr([+s+i,+l+a],2),v=h[0],m=h[1],g={left:"right",right:"left",top:"bottom",bottom:"top"},y=u.x,b=u.y,_=u.width,x=u.height,S={left:v<y,right:v+f>y+_,top:m<b,bottom:m+d>b+x},w=[];c.split("-").forEach(function(C){S[C]?w.push(g[C]):w.push(C)});var L=w.join("-");return this.getRelativeOffsetFromCursor(L)},r.prototype.isCursorEntered=function(t,e){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.width,l=i.height;return new W(a,o,s,l).isPointIn(t,e)}return!1},r.prototype.closeTransition=function(t){var e=this,i=this.element.style.transition;this.element.style.transition="none",t(),setTimeout(function(){e.element.style.transition=i},10)},r.tag="tooltip",r})(Qp);import{__assign as Ge,__extends as tf}from"/tslib?target=es2022";import{get as ef,isEqual as rf}from"/@antv/util@^3.3.10?target=es2022";import{Component as nf}from"./esm/core.mjs";var fn={default:{sizeStyle:{width:44,height:22,radius:11},tagStyle:{textStyle:{fontSize:12,lineHeight:16,fill:"#fff"},padding:0},markerStyle:{size:11}},small:{sizeStyle:{width:28,height:16,radius:8},tagStyle:{textStyle:{fontSize:10,lineHeight:14,fill:"#fff"},padding:0},markerStyle:{size:8}},mini:{sizeStyle:{width:20,height:14,radius:7},tagStyle:{textStyle:{fontSize:7,lineHeight:10,fill:"#fff"},padding:0},markerStyle:{size:7}}};var af="#1890FF",of="#00000040";function ys(n,r,t){r===void 0&&(r=0),t===void 0&&(t=!0);var e=Number(n.style.height)-r*2;return{x:t?Number(n.style.width)+Number(n.style.x)-r-e:Number(n.style.x)+r,y:Number(n.style.y)+r,width:e,height:e,radius:e/2}}function sf(n,r,t,e){var i=r.width,a=r.height;return t===void 0&&(t=0),e===void 0&&(e=!0),{x:e?Number(n.x)+t:Number(n.width)+Number(n.x)-i,y:Number(n.y)+(Number(n.height)-a)/2}}var bs=(function(n){tf(r,n);function r(t){return n.call(this,t,{x:0,y:0,size:"default",spacing:2,checked:!0,disabled:!1})||this}return r.prototype.render=function(t,e){var i=this,a=t.size,o=t.spacing,s=t.disabled,l=t.checked,u=t.unCheckedChildren,c=t.checkedChildren,p=A(e).maybeAppendByClassName("switch-content","g").node(),f=p.getLocalBounds(),d=ef(fn,a,fn.default),h=d.sizeStyle,v=d.tagStyle,m=s?"no-drop":"pointer",g=l?af:of,y=h,b=l?c:u;(c||u)&&A(p).maybeAppendByClassName("switch-tag",function(){return new Zt({})}).call(function(S){var w=S.node();w.update(Ge(Ge({cursor:m,backgroundStyle:null,text:!1,marker:!1},v),b));var L=w?.getLocalBounds()||{},C=L.max,T=L.min,N=C[0]-T[0]+h.radius,B=C[1]-T[1],R=Math.max(N+h.height+2,h.width);y=Ge(Ge({},h),{width:R}),w.update(sf({x:f.min[0],y:f.min[1],width:R,height:y.height},{width:N,height:B},y.radius,l))});var _=A(p).maybeAppendByClassName("switch-background","rect").styles(Ge({zIndex:(p.style.zIndex||0)-1,x:f.min[0],y:f.min[1],fill:g,cursor:m,fillOpacity:s?.4:1},y)).node(),x=A(p).maybeAppendByClassName("switch-background-stroke","rect").styles(Ge({zIndex:(p.style.zIndex||0)-2,x:f.min[0],y:f.min[1],stroke:g,lineWidth:0},y)).node();A(p).maybeAppendByClassName("switch-handle","rect").styles({fill:"#fff",cursor:m}).call(function(S){var w,L,C=S.node(),T=ys(_,o,l),N=ys(_,o,!l);C.attr("x")&&!rf(T,N)&&i.checked!==l?(C.attr(N),(w=C.getAnimations()[0])===null||w===void 0||w.cancel(),(L=x.getAnimations()[0])===null||L===void 0||L.cancel(),C.animate([{x:N.x},{x:T.x}],{duration:120,fill:"both"}),x.animate([{lineWidth:0,strokeOpacity:.5},{lineWidth:14,strokeOpacity:0}],{duration:400,easing:"ease-on"})):C.attr(T)}),this.checked=!!l},r.tag="switch",r})(nf);import{__assign as ws,__extends as lf,__read as As}from"/tslib?target=es2022";import{Component as uf}from"./esm/core.mjs";var vr={tagText:"",lineStroke:"#416180",lineStrokeOpacity:.45,lineLineWidth:1,lineLineDash:[5,5]},xs=M({},vr,{type:"line",tagPosition:"start",tagAlign:"center",tagVerticalAlign:"bottom"}),_s=M({},vr,{type:"circle",defaultRadius:0}),Ss=M({},vr,{type:"polygon",defaultRadius:0,startAngle:0});var We=(function(n){lf(r,n);function r(t){return n.call(this,t,vr)||this}return Object.defineProperty(r.prototype,"localPointer",{get:function(){var t=As(this.getPosition(),2),e=t[0],i=t[1],a=As(this.pointer,2),o=a[0],s=a[1];return[o-e,s-i]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagStyle",{get:function(){var t=P(this.attributes,"tag");return t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"crosshairStyle",{get:function(){var t=P(this.attributes,"line");return ws(ws({},t),{d:this.crosshairPath})},enumerable:!1,configurable:!0}),r.prototype.render=function(t,e){var i=A(e).maybeAppendByClassName(".crosshair-group","g").node();this.shapesGroup=i;var a=this.tagStyle,o=this.crosshairStyle;this.tagShape=A(i).maybeAppendByClassName("crosshair-tag",function(){return new Zt({style:a})}).styles(a).node(),this.crosshairShape=A(i).maybeAppendByClassName(".crosshair-path","path").styles(o).node(),this.adjustLayout()},r.prototype.setPointer=function(t){this.pointer=t},r.tag="crosshair-base",r})(uf);import{__extends as cf,__read as Bt}from"/tslib?target=es2022";var ks=(function(n){cf(r,n);function r(t){return n.call(this,M({},r.defaultOptions,t))||this}return Object.defineProperty(r.prototype,"crosshairPath",{get:function(){var t=this.attributes,e=Bt(t.startPos,2),i=e[0],a=e[1],o=Bt(t.endPos,2),s=o[0],l=o[1],u=[["M",0,0],["L",s-i,l-a],["Z"]];return u},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localPointer",{get:function(){if(!this.pointer)return this.attributes.startPos;var t=Bt(this.getPosition(),2),e=t[0],i=t[1],a=Bt(this.pointer,2),o=a[0],s=a[1];return[o-e,s-i]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isVertical",{get:function(){var t=this.attributes,e=Bt(t.startPos,2),i=e[0],a=e[1],o=Bt(t.endPos,2),s=o[0],l=o[1];return i===s&&a!==l},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagShapeSpace",{get:function(){var t=Rr(this.tagShape),e=t.width,i=t.height;return{width:e,height:i}},enumerable:!1,configurable:!0}),r.prototype.update=function(t){n.prototype.update.call(this,t)},r.prototype.setPointer=function(t){n.prototype.setPointer.call(this,t),this.adjustPosition()},r.prototype.setText=function(t){this.tagShape.update({text:t}),this.adjustTag()},r.prototype.adjustLayout=function(){this.adjustPosition(),this.adjustTag()},r.prototype.adjustPosition=function(){var t=Bt(this.localPointer,2),e=t[0],i=t[1],a=Bt(this.attributes.startPos,2),o=a[0],s=a[1],l=this.getOrientVal([o,i],[e,s]);this.shapesGroup.setLocalPosition(l)},r.prototype.adjustTag=function(){var t=this.attributes,e=t.tagText,i=t.tagPosition,a=Bt(t.startPos,2),o=a[0],s=a[1],l=Bt(t.endPos,2),u=l[0],c=l[1];if(!e||e===""){X(this.tagShape);return}bt(this.tagShape);var p=this.tagShapeSpace,f=p.width,d=p.height,h=Bt(this.getOrientVal({start:[-f/2,d/2],end:[u-o+f/2,d/2]},{start:[0,0],end:[0,c-s+d]})[i],2),v=h[0],m=h[1];this.tagShape.setLocalPosition(v,m)},r.prototype.getOrientVal=function(t,e){return this.isVertical?e:t},r.tag="line-crosshair",r.defaultOptions={style:xs},r})(We);import{__extends as pf,__read as ui}from"/tslib?target=es2022";var Ls=(function(n){pf(r,n);function r(t){return n.call(this,M({},r.defaultOptions,t))||this}return Object.defineProperty(r.prototype,"crosshairPath",{get:function(){return this.createCirclePath()},enumerable:!1,configurable:!0}),r.prototype.update=function(t){n.prototype.update.call(this,t)},r.prototype.setPointer=function(t){var e=ui(t,2),i=e[0],a=e[1];n.prototype.setPointer.call(this,[i,a]);var o=ui(this.localPointer,2),s=o[0],l=o[1],u=ui(this.attributes.center,2),c=u[0],p=u[1],f=this.createCirclePath(Math.pow(Math.pow(s-c,2)+Math.pow(l-p,2),.5));this.crosshairShape.attr({d:f})},r.prototype.adjustLayout=function(){X(this.tagShape)},r.prototype.createCirclePath=function(t){var e=this.attributes,i=ui(e.center,2),a=i[0],o=i[1],s=e.defaultRadius;return er(a,o,t||s)},r.tag="circle-crosshair",r.defaultOptions={style:_s},r})(We);import{__extends as ff,__read as Ot}from"/tslib?target=es2022";var Ps=(function(n){ff(r,n);function r(t){return n.call(this,M({},r.defaultOptions,t))||this}return Object.defineProperty(r.prototype,"crosshairPath",{get:function(){return this.createPolygonPath()},enumerable:!1,configurable:!0}),r.prototype.update=function(t){n.prototype.update.call(this,t)},Object.defineProperty(r.prototype,"points",{get:function(){for(var t=this.attributes,e=t.startAngle,i=t.sides,a=Math.PI*2/i,o=[1,0],s=[],l=0;l<i;l+=1)s.push(Ir(o,[0,0],e/180*Math.PI+a*l));return s},enumerable:!1,configurable:!0}),r.prototype.setPointer=function(t){var e=Ot(t,2),i=e[0],a=e[1];n.prototype.setPointer.call(this,[i,a]);var o=Ot(this.localPointer,2),s=o[0],l=o[1],u=this.attributes.center,c=Ot(this.intersection([s,l]),2),p=c[0],f=c[1];if(!(!p||!f)){var d=qe(u,[s,l])/qe(u,[p,f]),h=this.createPolygonPath(d);this.crosshairShape.attr({d:h})}},r.prototype.adjustLayout=function(){X(this.tagShape)},r.prototype.createPolygonPath=function(t){var e=this.attributes,i=e.defaultRadius,a=Ot(e.center,2),o=a[0],s=a[1],l=this.points.map(function(u,c){var p=Ot(u,2),f=p[0],d=p[1],h=Ot(ct([f,d],t||i),2),v=h[0],m=h[1];return[c===0?"M":"L",o+v,s+m]});return l.push(["Z"]),l},r.prototype.intersection=function(t){for(var e,i=Ot(t,2),a=i[0],o=i[1],s=this.points,l=Ot(this.attributes.center,2),u=l[0],c=l[1],p,f,d=1;d<=s.length;d+=1){var h=Ot(s[d-1],2),v=h[0],m=h[1],g=Ot(s[d%s.length],2),y=g[0],b=g[1],_=Br([a,o],[u,c],[v+u,m+c],[y+u,b+c]);_.length!==0&&(e=Ot(_,2),p=e[0],f=e[1])}return[p,f]},r.tag="polygon-crosshair",r.defaultOptions={style:Ss},r})(We);import{__assign as Qt,__extends as hf}from"/tslib?target=es2022";import{Component as vf}from"./esm/core.mjs";var Cs=pt({fill:"rgba(0,0,0,0.45)",fontSize:10,textAlign:"start",textBaseline:"middle",overflow:"clip"},"label"),dn={default:{width:12,height:12,radius:2,stroke:"#dadada",lineWidth:1,fill:"#ffffff",cursor:"pointer"},selected:{width:12,height:12,radius:2,stroke:"#3471F9",lineWidth:1,fill:"#3471F9",cursor:"pointer"}},df=[["M",3,6],["L","5","8.5"],["L","8.5","4"]],Ts={d:df,lineWidth:1,cursor:"pointer"};function mf(n,r){var t=n.getLocalBounds();return{x:t.halfExtents[0]?t.max[0]+(r||0):n.style.x,y:t.halfExtents[1]?(t.min[1]+t.max[1])/2:n.style.y}}var Es=(function(n){hf(r,n);function r(t){return n.call(this,t,Qt({labelText:"",spacing:4,checked:!1},Cs))||this}return r.prototype.render=function(t,e){var i=t.checked,a=t.spacing;this.checked=!!i;var o=dt(e,".checkbox-content","g").attr("className","checkbox-content").node(),s=P(t,"box"),l=P(t,"checked"),u=P(t,"label"),c=Qt(Qt({},this.checked?dn.selected:dn.default),s),p=Qt(Qt({},Ts),l);this.checkboxBoxShape=dt(o,".checkbox-box","rect").styles(Qt({className:"checkbox-box",zIndex:(o.style.zIndex||0)-1},c)).node(),dt(this.checkboxBoxShape,".checkbox-checked","path").styles(Qt({className:"checkbox-box-checked",stroke:"#fff"},p));var f=mf(this.checkboxBoxShape,Number(a)),d=f.x,h=f.y;dt(o,".checkbox-label","text").styles(Qt({className:"checkbox-label",x:d,y:h},u))},r.tag="checkbox",r})(vf);import{__extends as gf,__read as hn}from"/tslib?target=es2022";import{ElementEvent as vn}from"/@antv/g@^6.1.11?target=es2022";import{calcLayout as yf}from"./esm/util/layout.mjs";var mn=(function(n){gf(r,n);function r(t){var e=n.call(this,t)||this;e.layoutEvents=[vn.BOUNDS_CHANGED,vn.INSERTED,vn.REMOVED],e.$margin=H(0),e.$padding=H(0);var i=t.style||{},a=i.margin,o=a===void 0?0:a,s=i.padding,l=s===void 0?0:s;return e.margin=o,e.padding=l,e.isMutationObserved=!0,e.bindEvents(),e}return Object.defineProperty(r.prototype,"margin",{get:function(){return this.$margin},set:function(t){this.$margin=H(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"padding",{get:function(){return this.$padding},set:function(t){this.$padding=H(t)},enumerable:!1,configurable:!0}),r.prototype.getBBox=function(){var t=this.attributes,e=t.x,i=e===void 0?0:e,a=t.y,o=a===void 0?0:a,s=t.width,l=t.height,u=hn(this.$margin,4),c=u[0],p=u[1],f=u[2],d=u[3];return new W(i-d,o-c,s+d+p,l+c+f)},r.prototype.appendChild=function(t,e){return t.isMutationObserved=!0,n.prototype.appendChild.call(this,t,e),t},r.prototype.getAvailableSpace=function(){var t=this.attributes,e=t.width,i=t.height,a=hn(this.$padding,4),o=a[0],s=a[1],l=a[2],u=a[3],c=hn(this.$margin,4),p=c[0],f=c[3];return new W(u+f,o+p,e-u-s,i-o-l)},r.prototype.layout=function(){if(!(!this.attributes.display||!this.isConnected)&&!this.children.some(function(o){return!o.isConnected}))try{var t=this.attributes,e=t.x,i=t.y;this.style.transform="translate(".concat(e,", ").concat(i,")");var a=yf(this.getAvailableSpace(),this.children.map(function(o){return o.getBBox()}),this.attributes);this.children.forEach(function(o,s){var l=a[s],u=l.x,c=l.y;o.style.transform="translate(".concat(u,", ").concat(c,")")})}catch{}},r.prototype.bindEvents=function(){var t=this;this.layoutEvents.forEach(function(e){t.addEventListener(e,function(i){i.target&&(i.target.isMutationObserved=!0,t.layout())})})},r.prototype.attributeChangedCallback=function(t,e,i){t==="margin"?this.margin=i:t==="padding"&&(this.padding=i),this.layout()},r})(Z);import{__assign as te,__extends as Sf}from"/tslib?target=es2022";import{CustomEvent as wf}from"/@antv/g@^6.1.11?target=es2022";import{Component as Af}from"./esm/core.mjs";import{__assign as Ns,__extends as bf,__read as xf}from"/tslib?target=es2022";import{Component as _f}from"./esm/core.mjs";var Bs=(function(n){bf(r,n);function r(t){var e=n.call(this,M({},r.defaultOptions,t))||this;return e.hoverColor="#f5f5f5",e.selectedColor="#e6f7ff",e.background=e.appendChild(new Pt({})),e.label=e.background.appendChild(new Z({})),e}return Object.defineProperty(r.prototype,"padding",{get:function(){return H(this.style.padding)},enumerable:!1,configurable:!0}),r.prototype.renderLabel=function(){var t=this.style,e=t.label,i=t.value,a=P(this.attributes,"label");A(this.label).maybeAppend(".label",function(){return ut(e)}).attr("className","label").styles(a),this.label.attr("__data__",i)},r.prototype.renderBackground=function(){var t=this.label.getBBox(),e=xf(this.padding,4),i=e[0],a=e[1],o=e[2],s=e[3],l=t.width,u=t.height,c=l+s+a,p=u+i+o,f=P(this.attributes,"background"),d=this.style,h=d.width,v=h===void 0?0:h,m=d.height,g=m===void 0?0:m,y=d.selected;this.background.attr(Ns(Ns({},f),{width:Math.max(c,v),height:Math.max(p,g),fill:y?this.selectedColor:"#fff"})),this.label.attr({transform:"translate(".concat(s,", ").concat((p-u)/2,")")})},r.prototype.render=function(){this.renderLabel(),this.renderBackground()},r.prototype.bindEvents=function(){var t=this;this.addEventListener("pointerenter",function(){t.style.selected||t.background.attr("fill",t.hoverColor)}),this.addEventListener("pointerleave",function(){t.style.selected||t.background.attr("fill",t.style.backgroundFill)});var e=this;this.addEventListener("click",function(){var i=t.style,a=i.label,o=i.value,s=i.onClick;s?.(o,{label:a,value:o},e)})},r.defaultOptions={style:{value:"",label:"",cursor:"pointer"}},r})(_f);var mr=(function(n){Sf(r,n);function r(t){var e,i,a=n.call(this,M({},r.defaultOptions,t))||this;a.currentValue=(e=r.defaultOptions.style)===null||e===void 0?void 0:e.defaultValue,a.isPointerInSelect=!1,a.select=a.appendChild(new Pt({className:"select",style:{cursor:"pointer",width:0,height:0}})),a.dropdown=a.appendChild(new Pt({className:"dropdown"}));var o=a.style.defaultValue;return o&&(!((i=a.style.options)===null||i===void 0)&&i.some(function(s){return s.value===o}))&&(a.currentValue=o),a}return r.prototype.setValue=function(t){this.currentValue=t,this.render()},r.prototype.getValue=function(){return this.currentValue},Object.defineProperty(r.prototype,"dropdownPadding",{get:function(){return H(this.style.dropdownPadding)},enumerable:!1,configurable:!0}),r.prototype.renderSelect=function(){var t=this,e,i=this.style,a=i.x,o=i.y,s=i.width,l=i.height,u=i.bordered,c=i.showDropdownIcon,p=P(this.attributes,"select"),f=P(this.attributes,"placeholder");this.select.attr(te(te({x:a,y:o,width:s,height:l},p),{fill:"#fff",strokeWidth:u?1:0}));var d=this.dropdownPadding,h=10;c&&A(this.select).maybeAppend(".dropdown-icon","path").style("d","M-5,-3.5 L0,3.5 L5,-3.5").style("transform","translate(".concat(a+s-h-d[1]-d[3],", ").concat(o+l/2,")")).style("lineWidth",1).style("stroke",this.select.style.stroke);var v=(e=this.style.options)===null||e===void 0?void 0:e.find(function(b){return b.value===t.currentValue}),m=te({x:a+d[3]},f);A(this.select).selectAll(".placeholder").data(v?[]:[1]).join(function(b){return b.append("text").attr("className","placeholder").styles(m).style("y",function(){var _=this.getBBox();return o+(l-_.height)/2})},function(b){return b.styles(m)},function(b){return b.remove()});var g=P(this.attributes,"optionLabel"),y=te({x:a+d[3]},g);A(this.select).selectAll(".value").data(v?[v]:[]).join(function(b){return b.append(function(_){return ut(_.label)}).attr("className","value").styles(y).style("y",function(){var _=this.getBBox();return o+(l-_.height)/2})},function(b){return b.styles(y)},function(b){return b.remove()})},r.prototype.renderDropdown=function(){var t=this,e,i,a=this.style,o=a.x,s=a.y,l=a.width,u=a.height,c=a.options,p=a.onSelect,f=a.open,d=P(this.attributes,"dropdown"),h=P(this.attributes,"option"),v=this.dropdownPadding;A(this.dropdown).maybeAppend(".dropdown-container","g").attr("className","dropdown-container").selectAll(".dropdown-item").data(c,function(y){return y.value}).join(function(y){return y.append(function(b){return new Bs({className:"dropdown-item",style:te(te(te({},b),h),{width:l-v[1]-v[3],selected:b.value===t.currentValue,onClick:function(_,x,S){t.setValue(_),p?.(_,x,S),t.dispatchEvent(new wf("change",{detail:{value:_,option:x,item:S}})),X(t.dropdown)}})})}).each(function(b,_){var x,S=(x=this.parentNode)===null||x===void 0?void 0:x.children,w=S.reduce(function(L,C,T){return T<_&&(L+=C.getBBox().height),L},0);this.attr("transform","translate(".concat(v[3],", ").concat(v[0]+w,")"))})},function(y){return y.update(function(b){return{selected:b.value===t.currentValue}})},function(y){return y.remove()});var m=(i=(e=this.dropdown.getElementsByClassName("dropdown-container"))===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.getBBox(),g=d.spacing;this.dropdown.attr(te({transform:"translate(".concat(o,", ").concat(s+u+g,")"),width:m.width+v[1]+v[3],height:m.height+v[0]+v[2]},d)),!f&&X(this.dropdown)},r.prototype.render=function(){this.renderSelect(),this.renderDropdown()},r.prototype.bindEvents=function(){var t=this;this.addEventListener("click",function(e){e.stopPropagation()}),this.select.addEventListener("click",function(){t.dropdown.style.visibility==="visible"?X(t.dropdown):bt(t.dropdown)}),this.addEventListener("pointerenter",function(){t.isPointerInSelect=!0}),this.addEventListener("pointerleave",function(){t.isPointerInSelect=!1}),document?.addEventListener("click",function(){t.isPointerInSelect||X(t.dropdown)})},r.defaultOptions={style:{x:0,y:0,width:140,height:32,options:[],bordered:!0,defaultValue:"",selectRadius:8,selectStroke:"#d9d9d9",showDropdownIcon:!0,placeholderText:"\u8BF7\u9009\u62E9",placeholderFontSize:12,placeholderTextBaseline:"top",placeholderFill:"#c2c2c2",dropdownFill:"#fff",dropdownStroke:"#d9d9d9",dropdownRadius:8,dropdownShadowBlur:4,dropdownShadowColor:"rgba(0, 0, 0, 0.08)",dropdownPadding:8,dropdownSpacing:10,optionPadding:[8,12],optionFontSize:12,optionTextBaseline:"top",optionBackgroundFill:"#fff",optionBackgroundRadius:4,optionLabelFontSize:12,optionLabelTextBaseline:"top"}},r})(Af);import{__assign as De,__extends as Gf,__read as Dt,__rest as Wf,__spreadArray as Sn}from"/tslib?target=es2022";import{clamp as Ys}from"/@antv/util@^3.3.10?target=es2022";import{Component as Df}from"./esm/core.mjs";import{__assign as bn,__extends as If,__read as xn,__spreadArray as Rs}from"/tslib?target=es2022";import{Component as Hf}from"./esm/core.mjs";import{__assign as gn,__extends as mt,__read as Mt,__rest as kf,__spreadArray as Lf}from"/tslib?target=es2022";import{clamp as Pf,omit as Cf}from"/@antv/util@^3.3.10?target=es2022";import{Component as Os}from"./esm/core.mjs";var It=(function(n){mt(r,n);function r(t){var e=n.call(this,M({},{style:{backgroundOpacity:r.backgroundOpacities.default}},r.defaultOptions,t))||this;return e.showBackground=!0,e.background=e.appendChild(new Pt({})),e.icon=e.appendChild(new Z({})),e}return Object.defineProperty(r.prototype,"label",{get:function(){return"BaseIcon"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lineWidth",{get:function(){return Math.log10(this.attributes.size)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"padding",{get:function(){return H(this.attributes.size/5)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"iconSize",{get:function(){var t=this.attributes.size,e=Mt(this.padding,4),i=e[0],a=e[1],o=e[2],s=e[3];return Math.max(t-Math.max(s+a,i+o),this.lineWidth*2+1)},enumerable:!1,configurable:!0}),r.prototype.renderBackground=function(){var t=this.attributes,e=t.x,i=t.y,a=t.size,o=a/2,s=P(this.attributes,"background");this.background.attr(gn({x:e-o,y:i-o,width:a,height:a},s))},r.prototype.showIndicator=function(){if(this.label){var t=this.attributes.size,e=this.background.getBBox(),i=e.x,a=e.y;this.indicator.update({x:i+t/2,y:a-5,labelText:this.label,visibility:"visible"})}},r.prototype.hideIndicator=function(){this.indicator.update({visibility:"hidden"})},r.prototype.connectedCallback=function(){var t;n.prototype.connectedCallback.call(this);var e=this.attributes.size,i=this.background.getBBox(),a=i.x,o=i.y,s=(t=this.ownerDocument)===null||t===void 0?void 0:t.defaultView;s&&(this.indicator=s.appendChild(new si({style:{x:a+e/2,y:o-e/2,visibility:"hidden",position:"top",radius:3,zIndex:100}})))},r.prototype.disconnectedCallback=function(){this.indicator.destroy()},r.prototype.render=function(){this.renderIcon(),this.showBackground&&this.renderBackground()},r.prototype.bindEvents=function(){var t=this,e=this.attributes.onClick;if(this.addEventListener("click",function(){e?.(t)}),this.showBackground){var i=function(){return t.background.attr({opacity:r.backgroundOpacities.default})},a=function(){return t.background.attr({opacity:r.backgroundOpacities.hover})},o=function(){return t.background.attr({opacity:r.backgroundOpacities.active})};this.addEventListener("pointerenter",function(){a(),t.showIndicator()}),this.addEventListener("pointerleave",function(){i(),t.hideIndicator()}),this.addEventListener("pointerdown",function(){o()}),this.addEventListener("pointerup",function(){i()})}},r.tag="IconBase",r.defaultOptions={style:{x:0,y:0,size:10,color:"#565758",backgroundRadius:4,backgroundFill:"#e2e2e2"}},r.backgroundOpacities={default:0,hover:.8,active:1},r})(Os);var gr=function(n,r){return r===void 0&&(r="#565758"),new me({style:{fill:r,d:"M ".concat(n,",").concat(n," L -").concat(n,",0 L ").concat(n,",-").concat(n," Z"),transformOrigin:"center"}})},Ms=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.arcPath=function(t,e,i){var a=Mt([i,i],2),o=a[0],s=a[1],l=function(v){return[t+i*Math.cos(v),e+i*Math.sin(v)]},u=Mt(l(-5/4*Math.PI),2),c=u[0],p=u[1],f=Mt(l(1/4*Math.PI),2),d=f[0],h=f[1];return"M".concat(c,",").concat(p,",A").concat(o,",").concat(s,",0,1,1,").concat(d,",").concat(h)},Object.defineProperty(r.prototype,"label",{get:function(){return"\u91CD\u7F6E"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this.iconSize,s=this.lineWidth,l=s+.5;A(this.icon).maybeAppend(".reset","path").styles({stroke:a,lineWidth:s,d:this.arcPath(e,i,o/2-s),markerStart:gr(l,a)})},r})(It);var Is=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u5FEB\u9000"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this.iconSize,s=o/2,l=o/2/Math.pow(3,.5),u=[[e,i],[e,i-l],[e-s,i],[e,i+l],[e,i],[e+s,i-l],[e+s,i+l],[e,i]];A(this.icon).maybeAppend(".backward","polygon").styles({points:u,fill:a})},r})(It);var Hs=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u5FEB\u8FDB"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this.iconSize,s=o/2,l=o/2/Math.pow(3,.5),u=[[e,i],[e,i-l],[e+s,i],[e,i+l],[e,i],[e-s,i-l],[e-s,i+l],[e,i]];A(this.icon).maybeAppend(".forward","polygon").styles({points:u,fill:a})},r})(It);var Tf=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u64AD\u653E"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this.iconSize,s=o/3*Math.pow(3,.5)*.8,l=[[e+s,i],[e-s/2,i-o/2*.8],[e-s/2,i+o/2*.8],[e+s,i]];A(this.icon).maybeAppend(".play","polygon").styles({points:l,fill:a})},r})(It);var Ef=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u6682\u505C"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this.iconSize,s=o/3,l=[[e-s,i-o/2],[e-s,i+o/2],[e-s/2,i+o/2],[e-s/2,i-o/2],[e-s,i-o/2],[e+s/2,i-o/2],[e+s/2,i+o/2],[e+s,i+o/2],[e+s,i-o/2]];A(this.icon).maybeAppend(".pause","polygon").styles({points:l,fill:a})},r})(It);var Nf=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u8303\u56F4\u65F6\u95F4"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this,s=o.iconSize,l=o.lineWidth,u=l;A(this.icon).maybeAppend(".left-line","line").styles({x1:e-s/2,y1:i-s/2,x2:e-s/2,y2:i+s/2,stroke:a,lineWidth:l}),A(this.icon).maybeAppend(".right-line","line").styles({x1:e+s/2,y1:i-s/2,x2:e+s/2,y2:i+s/2,stroke:a,lineWidth:l}),A(this.icon).maybeAppend(".left-arrow","line").styles({x1:e,y1:i,x2:e-s/2+u*2,y2:i,stroke:a,lineWidth:l,markerEnd:gr(l*2,a)}),A(this.icon).maybeAppend(".right-arrow","line").styles({x1:e,y1:i,x2:e+s/2-u*2,y2:i,stroke:a,lineWidth:l,markerEnd:gr(l*2,a)})},r})(It);var Bf=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u5355\u4E00\u65F6\u95F4"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this,s=o.iconSize,l=o.lineWidth;A(this.icon).maybeAppend(".line","line").styles({x1:e,y1:i-s/2,x2:e,y2:i+s/2,stroke:a,lineWidth:l});var u=l;A(this.icon).maybeAppend(".left-arrow","line").styles({x1:e-s/2-u*2,y1:i,x2:e-u*2,y2:i,stroke:a,lineWidth:l,markerEnd:gr(l*2,a)}),A(this.icon).maybeAppend(".right-arrow","line").styles({x1:e+s/2+u*2,y1:i,x2:e+u*2,y2:i,stroke:a,lineWidth:l,markerEnd:gr(l*2,a)})},r})(It);var zs=function(n){return[[-n/2,-n/2],[-n/2,n/2],[n/2,n/2]]},Of=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u6298\u7EBF\u56FE"},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this,s=o.iconSize,l=o.lineWidth,u=l,c=(s-u*2-l)/4,p=(s-u*2-l)/2,f=Mt([e-s/2+u,i+s/2-u*2],2),d=f[0],h=f[1];A(this.icon).maybeAppend(".coordinate","polyline").styles({points:zs(s).map(function(v){var m=Mt(v,2),g=m[0],y=m[1];return[g+e,y+i]}),stroke:a,lineWidth:l}),A(this.icon).maybeAppend(".line","polyline").styles({points:[[d,h],[d+c,h-p],[d+c*2,h],[d+c*4,h-p*2]],stroke:a,lineWidth:l})},r})(It);var Mf=(function(n){mt(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"label",{get:function(){return"\u6761\u5F62\u56FE"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return[1,4,2,4,3]},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.data,e=this.attributes,i=e.x,a=e.y,o=e.color,s=this,l=s.iconSize,u=s.lineWidth,c=u,p=(l-c)/t.length,f=(l-c*2)/4,d=Mt([i-l/2+c*2,a+l/2-c],2),h=d[0],v=d[1];A(this.icon).maybeAppend(".coordinate","polyline").styles({points:zs(l).map(function(m){var g=Mt(m,2),y=g[0],b=g[1];return[y+i,b+a]}),stroke:o,lineWidth:u}),A(this.icon).maybeAppend(".bars","g").selectAll(".column").data(this.data.map(function(m,g){return{value:m,index:g}})).join(function(m){return m.append("line").attr("className","column").style("x1",function(g){var y=g.index;return h+p*y}).style("y1",v).style("x2",function(g){var y=g.index;return h+p*y}).style("y2",function(g){var y=g.value;return v-f*y}).styles({y1:v,stroke:o,lineWidth:u})})},r})(It);var Fs=(function(n){mt(r,n);function r(t){var e=n.call(this,M({},{style:{color:"#d8d9d9"}},t))||this;return e.showBackground=!1,e}return r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.color,o=this,s=o.iconSize,l=o.lineWidth;A(this.icon).maybeAppend(".split","line").styles({x1:e,y1:i-s/2,x2:e,y2:i+s/2,stroke:a,lineWidth:l})},r})(It);var ci=(function(n){mt(r,n);function r(){var t=n.apply(this,Lf([],Mt(arguments),!1))||this;return t.showBackground=!1,t}return Object.defineProperty(r.prototype,"padding",{get:function(){return H(0)},enumerable:!1,configurable:!0}),r.prototype.renderIcon=function(){var t=this.iconSize,e=this.attributes,i=e.x,a=e.y,o=e.speed,s=o===void 0?1:o,l=Cf(this.attributes,["x","y","transform","transformOrigin","width","height","size","color","speed"]),u=Pf(t,20,1/0),c=20,p=gn(gn({},l),{x:i-u/2,y:a-c/2,width:u,height:c,defaultValue:s,bordered:!1,showDropdownIcon:!1,selectRadius:2,dropdownPadding:this.padding,dropdownRadius:2,dropdownSpacing:t/5,placeholderFontSize:t/2,optionPadding:0,optionLabelFontSize:t/2,optionBackgroundRadius:1,options:[{label:"1x",value:1},{label:"1.5x",value:1.5},{label:"2x",value:2}]});A(this.icon).maybeAppend(".speed",function(){return new mr({style:p})}).attr("className","speed").each(function(){this.update(p)})},r.tag="SpeedSelect",r})(It);var yn=(function(n){mt(r,n);function r(t){var e=n.call(this,t)||this;return e.icon=e.appendChild(new Z({})),e.currentType=e.attributes.type,e}return r.prototype.getType=function(){return this.currentType},r.prototype.render=function(){var t=this,e=this.attributes,i=e.onChange,a=kf(e,["onChange"]);A(this.icon).selectAll(".icon").data([this.currentType]).join(function(o){return o.append(function(s){var l,u=(l=t.toggles.find(function(c){var p=Mt(c,1),f=p[0];return f===s}))===null||l===void 0?void 0:l[1];if(!u)throw new Error("Invalid type: ".concat(s));return new u({})}).attr("className","icon").styles(a,!1).update({})},function(o){return o.styles({restStyles:a}).update({})},function(o){return o.remove()})},r.prototype.bindEvents=function(){var t=this,e=this.attributes.onChange;this.addEventListener("click",function(i){i.preventDefault(),i.stopPropagation();var a=(t.toggles.findIndex(function(s){var l=Mt(s,1),u=l[0];return u===t.currentType})+1)%t.toggles.length,o=t.toggles[a][0];e?.(t.currentType),t.currentType=o,t.render()})},r.tag="ToggleIcon",r})(Os);var pi=(function(n){mt(r,n);function r(t){var e=n.call(this,M({},{style:{type:"play"}},t))||this;return e.toggles=[["play",Tf],["pause",Ef]],e}return r})(yn);var fi=(function(n){mt(r,n);function r(t){var e=n.call(this,M({},{style:{type:"range"}},t))||this;return e.toggles=[["range",Nf],["value",Bf]],e}return r})(yn);var di=(function(n){mt(r,n);function r(t){var e=n.call(this,M({},{style:{type:"column"}},t))||this;return e.toggles=[["line",Of],["column",Mf]],e}return r})(yn);var zf={reset:Ms,speed:ci,backward:Is,playPause:pi,forward:Hs,selectionType:fi,chartType:di,split:Fs},Gs=(function(n){If(r,n);function r(t){var e=n.call(this,M({},r.defaultOptions,t))||this;return e.background=e.appendChild(new Pt({})),e.functions=e.appendChild(new Z({})),e}return Object.defineProperty(r.prototype,"padding",{get:function(){return H(this.attributes.padding)},enumerable:!1,configurable:!0}),r.prototype.renderBackground=function(){var t=this.style,e=t.x,i=t.y,a=t.width,o=t.height,s=P(this.attributes,"background");this.background.attr(bn({x:e,y:i,width:a,height:o},s))},r.prototype.renderFunctions=function(){var t=this,e,i=this.attributes,a=i.functions,o=i.iconSize,s=i.iconSpacing,l=i.x,u=i.y,c=i.width,p=i.height,f=i.align,d=xn(this.padding,4),h=d[1],v=d[3],m=a.reduce(function(b,_){return b.length&&_.length?b.concat.apply(b,Rs(["split"],xn(_),!1)):b.concat.apply(b,Rs([],xn(_),!1))},[]),g=m.length*(o+s)-s,y={left:v+o/2,center:(c-g)/2+o/2,right:c-g-v-h+o/2}[f]||0;(e=this.speedSelect)===null||e===void 0||e.destroy(),this.functions.removeChildren(),m.forEach(function(b,_){var x,S=zf[b],w={x:l+_*(o+s)+y,y:u+p/2,size:o};if(S===ci?(w.speed=t.attributes.speed,w.onSelect=function(C){return t.handleFunctionChange(b,{value:C})}):[pi,fi,di].includes(S)?(w.onChange=function(C){return t.handleFunctionChange(b,{value:C})},S===pi&&(w.type=t.attributes.state==="play"?"pause":"play"),S===fi&&(w.type=t.attributes.selectionType==="range"?"value":"range"),S===di&&(w.type=t.attributes.chartType==="line"?"column":"line")):w.onClick=function(){return t.handleFunctionChange(b,{value:b})},S===ci){var L=(x=t.ownerDocument)===null||x===void 0?void 0:x.defaultView;L&&(t.speedSelect=new S({style:bn(bn({},w),{zIndex:100})}),L.appendChild(t.speedSelect))}else t.functions.appendChild(new S({style:w}))})},r.prototype.disconnectedCallback=function(){var t;n.prototype.disconnectedCallback.call(this),(t=this.speedSelect)===null||t===void 0||t.destroy()},r.prototype.render=function(){this.renderBackground(),this.renderFunctions()},r.prototype.handleFunctionChange=function(t,e){var i=this.attributes.onChange;i?.(t,e)},r.defaultOptions={style:{x:0,y:0,width:300,height:40,padding:0,align:"center",iconSize:25,iconSpacing:0,speed:1,state:"pause",chartType:"line",selectionType:"range",backgroundFill:"#fbfdff",backgroundStroke:"#ebedf0",functions:[["reset","speed"],["backward","playPause","forward"],["selectionType","chartType"]]}},r})(Hf);import{__assign as hi,__extends as Ws}from"/tslib?target=es2022";import{Component as Ff}from"./esm/core.mjs";var Ds=(function(n){Ws(r,n);function r(t){var e=n.call(this,M({},r.defaultOptions,t))||this;return e.bindEvents(),e}return r.prototype.bindEvents=function(){var t=this;this.addEventListener("mouseenter",function(){t.attr("lineWidth",Math.ceil(+(t.style.r||0)/2))}),this.addEventListener("mouseleave",function(){t.attr("lineWidth",0)})},r.defaultOptions={style:{r:5,fill:"#3f7cf7",lineWidth:0,stroke:"#3f7cf7",strokeOpacity:.5,cursor:"pointer"}},r})(br);var Vs=(function(n){Ws(r,n);function r(t){return n.call(this,M({},r.defaultOptions,t))||this}return r.prototype.renderBackground=function(){var t=this.attributes,e=t.x,i=t.y,a=t.width,o=t.height,s=P(this.attributes,"background");A(this).maybeAppend("background","rect").attr("className","background").styles(hi({x:e-a/2,y:i-o/2,width:a,height:o},s))},r.prototype.renderIcon=function(){var t=this.attributes,e=t.x,i=t.y,a=t.iconSize,o=P(this.attributes,"icon"),s=1,l=a/2;A(this).maybeAppend("icon-left-line","line").attr("className","icon-left-line").styles(hi({x1:e-s,y1:i-l,x2:e-s,y2:i+l},o)),A(this).maybeAppend("icon-right-line","line").attr("className","icon-right-line").styles(hi({x1:e+s,y1:i-l,x2:e+s,y2:i+l},o))},r.prototype.renderBorder=function(){var t=this.attributes,e=t.x,i=t.y,a=t.width,o=t.height,s=t.type,l=P(this.attributes,"border"),u=s==="start"?+a/2:-a/2;A(this).maybeAppend("border","line").attr("className","border").styles(hi({x1:u+e,y1:i-o/2,x2:u+e,y2:i+o/2},l))},r.prototype.render=function(){this.renderBackground(),this.renderIcon(),this.renderBorder()},r.defaultOptions={style:{x:0,y:0,width:10,height:50,iconSize:10,type:"start",backgroundFill:"#fff",backgroundFillOpacity:.5,iconStroke:"#9a9a9a",iconLineWidth:1,borderStroke:"#e8e8e8",borderLineWidth:1}},r})(Ff);function js(n,r){return typeof n=="number"?_n(n):Rf(n,r)}function Rf(n,r){var t=new Date(n);switch(r){case"half-hour":case"hour":case"four-hour":return[0,6,12,18].includes(t.getHours())&&t.getMinutes()===0?st(t,`HH:mm
9
+ YYYY-MM-DD`):st(t,"HH:mm");case"half-day":return t.getHours()<12?`AM
10
+ `.concat(st(t,"YYYY-MM-DD")):"PM";case"day":return[1,10,20].includes(t.getDate())?st(t,`DD
11
+ YYYY-MM`):st(t,"DD");case"week":return t.getDate()<=7?st(t,`DD
12
+ YYYY-MM`):st(t,"DD");case"month":return[0,6].includes(t.getMonth())?st(t,`MM\u6708
13
+ YYYY`):st(t,"MM\u6708");case"season":return[0].includes(t.getMonth())?st(t,`MM\u6708
14
+ YYYY`):st(t,"MM\u6708");case"year":return st(t,"YYYY");default:return st(t,"YYYY-MM-DD HH:mm")}}function _n(n){var r=String(Math.floor(n/3600)).padStart(2,"0"),t=String(Math.floor(n%3600/60)).padStart(2,"0"),e=String(Math.floor(n%60)).padStart(2,"0");return n<3600?"".concat(t,":").concat(e):"".concat(r,":").concat(t,":").concat(e)}var wn=(function(n){Gf(r,n);function r(t){var e=n.call(this,M({},r.defaultOptions,t))||this;e.axis=e.appendChild(new ue({style:{type:"linear",startPos:[0,0],endPos:[0,0],data:[],showArrow:!1,animate:!1}})),e.timeline=e.appendChild(new Te({style:{onChange:function(p){e.handleSliderChange(p)}}})),e.controller=e.appendChild(new Gs({})),e.states={},e.handleSliderChange=function(p){var f=(function(){var d=e.states.values;return Array.isArray(d)?Sn([],Dt(d),!1):d})();e.setBySliderValues(p),e.dispatchOnChange(f)};var i=e.attributes,a=i.selectionType,o=i.chartType,s=i.speed,l=i.state,u=i.playMode,c=i.values;return e.states={chartType:o,playMode:u,selectionType:a,speed:s,state:l},e.setByTimebarValues(c),e}return Object.defineProperty(r.prototype,"data",{get:function(){var t=this.attributes.data,e=function(i,a){return i.time<a.time?-1:i.time>a.time?1:0};return t.sort(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"space",{get:function(){var t=this.attributes,e=t.x,i=t.y,a=t.width,o=t.height,s=t.type,l=t.controllerHeight,u=Ys(+o-l,0,+o),c=new W(e,i+ +o-l,+a,l),p,f=0;s==="chart"?(f=35,p=new W(e,i+u-f,+a,f)):p=new W;var d=s==="time"?10:u,h=new W(e,i+(s==="time"?u:u-d),+a,d-f);return{axisBBox:p,controllerBBox:c,timelineBBox:h}},enumerable:!1,configurable:!0}),r.prototype.setBySliderValues=function(t){var e,i,a=this.data,o=Dt(Array.isArray(t)?t:[0,t],2),s=o[0],l=o[1],u=a.length,c=a[Math.floor(s*u)],p=a[Math.ceil(l*u)-(Array.isArray(t)?0:1)];this.states.values=[(e=c?.time)!==null&&e!==void 0?e:a[0].time,(i=p?.time)!==null&&i!==void 0?i:1/0]},r.prototype.setByTimebarValues=function(t){var e,i,a,o=this.data,s=Dt(Array.isArray(t)?t:[void 0,t],2),l=s[0],u=s[1],c=o.find(function(f){var d=f.time;return d===l}),p=o.find(function(f){var d=f.time;return d===u});this.states.values=[(e=c?.time)!==null&&e!==void 0?e:(i=o[0])===null||i===void 0?void 0:i.time,(a=p?.time)!==null&&a!==void 0?a:1/0]},r.prototype.setByIndex=function(t){var e,i,a,o,s=this.data,l=Dt(t,2),u=l[0],c=l[1];this.states.values=[(i=(e=s[u])===null||e===void 0?void 0:e.time)!==null&&i!==void 0?i:s[0].time,(o=(a=this.data[c])===null||a===void 0?void 0:a.time)!==null&&o!==void 0?o:1/0]},Object.defineProperty(r.prototype,"sliderValues",{get:function(){var t=this.states,e=t.values,i=t.selectionType,a=Dt(Array.isArray(e)?e:[void 0,e],2),o=a[0],s=a[1],l=this.data,u=l.length,c=i==="value",p=function(){var d=l.findIndex(function(h){var v=h.time;return v===o});return c?0:d>-1?d/u:0},f=function(){if(s===1/0)return 1;var d=l.findIndex(function(h){var v=h.time;return v===s});return d>-1?d/u:c?.5:1};return[p(),f()]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"values",{get:function(){var t=this.states,e=t.values,i=t.selectionType,a=Dt(Array.isArray(e)?e:[this.data[0].time,e],2),o=a[0],s=a[1];return i==="value"?s:[o,s]},enumerable:!1,configurable:!0}),r.prototype.getDatumByRatio=function(t){var e=this.data,i=e.length,a=Math.floor(t*(i-1));return e[a]},Object.defineProperty(r.prototype,"chartHandleIconShape",{get:function(){var t=this.states.selectionType,e=this.space.timelineBBox.height;return t==="range"?function(i){return new Vs({style:{type:i,height:e,iconSize:e/6}})}:function(){return new _r({style:{x1:0,y1:-e/2,x2:0,y2:e/2,lineWidth:2,stroke:"#c8c8c8"}})}},enumerable:!1,configurable:!0}),r.prototype.getChartStyle=function(t){var e=this,i=t.x,a=t.y,o=t.width,s=t.height,l=this.states,u=l.selectionType,c=l.chartType,p=this.data,f=this.attributes,d=f.type,h=f.labelFormatter,v=P(this.attributes,"chart"),m=v.type,g=Wf(v,["type"]),y=u==="range";if(d==="time")return De({handleIconShape:function(){return new Ds({})},selectionFill:"#2e7ff8",selectionFillOpacity:1,showLabelOnInteraction:!0,handleLabelDy:y?-15:0,autoFitLabel:y,handleSpacing:y?-15:0,trackFill:"#edeeef",trackLength:o,trackOpacity:.5,trackRadius:s/2,trackSize:s/2,type:u,values:this.sliderValues,formatter:function(x){if(h)return h(x);var S=e.getDatumByRatio(x).time;return typeof S=="number"?_n(S):st(S,"YYYY-MM-DD HH:mm:ss")},transform:"translate(".concat(i,", ").concat(a,")"),zIndex:1},g);var b=u==="range"?5:0,_=p.map(function(x){var S=x.value;return S});return De({handleIconOffset:b,handleIconShape:this.chartHandleIconShape,selectionFill:"#fff",selectionFillOpacity:.5,selectionType:"invert",sparklineSpacing:.1,sparklineColumnLineWidth:0,sparklineColor:"#d4e5fd",sparklineAreaOpacity:1,sparklineAreaLineWidth:0,sparklineData:_,sparklineType:c,sparklineScale:.8,trackLength:o,trackSize:s,type:u,values:this.sliderValues,transform:"translate(".concat(i,", ").concat(a,")"),zIndex:1},g)},r.prototype.renderChart=function(t){t===void 0&&(t=this.space.timelineBBox),this.timeline.update(this.getChartStyle(t))},r.prototype.updateSelection=function(){this.timeline.setValues(this.sliderValues,!0),this.handleSliderChange(this.sliderValues)},r.prototype.getAxisStyle=function(t){var e=this.data,i=this.attributes,a=i.interval,o=i.labelFormatter,s=P(this.attributes,"axis"),l=t.x,u=t.y,c=t.width,p=Sn(Sn([],Dt(e),!1),[{time:0}],!1).map(function(d,h,v){var m=d.time;return{label:"".concat(m),value:h/(v.length-1),time:m}}),f=De({startPos:[l,u],endPos:[l+c,u],data:p,labelFilter:function(d,h){return h<p.length-1},labelFormatter:function(d){var h=d.time;return o?o(h):js(h,a)}},s);return f},r.prototype.renderAxis=function(t){t===void 0&&(t=this.space.axisBBox);var e=this.attributes.type;e==="chart"&&this.axis.update(this.getAxisStyle(t))},r.prototype.renderController=function(t){t===void 0&&(t=this.space.controllerBBox);var e=this.attributes.type,i=this.states,a=i.state,o=i.speed,s=i.selectionType,l=i.chartType,u=P(this.attributes,"controller"),c=this,p=De(De(De({},t),{iconSize:20,speed:o,state:a,selectionType:s,chartType:l,onChange:function(f,d){var h=d.value;switch(f){case"reset":c.internalReset();break;case"speed":c.handleSpeedChange(h);break;case"backward":c.internalBackward();break;case"playPause":h==="play"?c.internalPlay():c.internalPause();break;case"forward":c.internalForward();break;case"selectionType":c.handleSelectionTypeChange(h);break;case"chartType":c.handleChartTypeChange(h);break;default:break}}}),u);e==="time"&&(p.functions=[["reset","speed"],["backward","playPause","forward"],["selectionType"]]),this.controller.update(p)},r.prototype.dispatchOnChange=function(t){var e=this.data,i=this.attributes.onChange,a=this.states,o=a.values,s=a.selectionType,l=Dt(o,2),u=l[0],c=l[1],p=c===1/0?e.at(-1).time:c,f=s==="range"?[u,p]:p,d=function(h,v){return Array.isArray(h)?Array.isArray(v)?h[0]===v[0]&&(h[1]===v[1]||h[1]===1/0||v[1]===1/0):!1:Array.isArray(v)?!1:h===v};(!t||!d(t,f))&&i?.(s==="range"?[u,p]:p)},r.prototype.internalReset=function(t){var e,i,a=this.states.selectionType;this.internalPause(),this.setBySliderValues(a==="range"?[0,1]:[0,0]),this.renderController(),this.updateSelection(),t||((i=(e=this.attributes)===null||e===void 0?void 0:e.onReset)===null||i===void 0||i.call(e),this.dispatchOnChange())},r.prototype.reset=function(){this.internalReset()},r.prototype.moveSelection=function(t,e){var i=this.data,a=i.length,o=this.states,s=o.values,l=o.selectionType,u=o.playMode,c=Dt(s,2),p=c[0],f=c[1],d=i.findIndex(function(b){var _=b.time;return _===p}),h=i.findIndex(function(b){var _=b.time;return _===f});h===-1&&(h=a);var v=t==="backward"?-1:1,m;l==="range"?u==="acc"?(m=[d,h+v],v===-1&&d===h&&(m=[d,a])):m=[d+v,h+v]:m=[d,h+v];var g=function(b){var _=Dt(b.sort(function(L,C){return L-C}),2),x=_[0],S=_[1],w=function(L){return Ys(L,0,a)};return S>a?l==="value"?[0,0]:u==="acc"?[w(x),w(x)]:[0,w(S-x)]:x<0?u==="acc"?[0,w(S)]:[w(x+a-S),a]:[w(x),w(S)]},y=g(m);return this.setByIndex(y),this.updateSelection(),y},r.prototype.internalBackward=function(t){var e,i,a=this.moveSelection("backward",t);return t||((i=(e=this.attributes)===null||e===void 0?void 0:e.onBackward)===null||i===void 0||i.call(e),this.dispatchOnChange()),a},r.prototype.backward=function(){this.internalBackward()},r.prototype.internalPlay=function(t){var e=this,i,a,o=this.data,s=this.attributes.loop,l=this.states.speed,u=l===void 0?1:l;this.playInterval=window.setInterval(function(){var c=e.internalForward();c[1]===o.length&&!s&&(e.internalPause(),e.renderController())},1e3/u),this.states.state="play",!t&&((a=(i=this.attributes)===null||i===void 0?void 0:i.onPlay)===null||a===void 0||a.call(i))},r.prototype.play=function(){this.internalPlay()},r.prototype.internalPause=function(t){var e,i;clearInterval(this.playInterval),this.states.state="pause",!t&&((i=(e=this.attributes)===null||e===void 0?void 0:e.onPause)===null||i===void 0||i.call(e))},r.prototype.pause=function(){this.internalPause()},r.prototype.internalForward=function(t){var e,i,a=this.moveSelection("forward",t);return t||((i=(e=this.attributes)===null||e===void 0?void 0:e.onForward)===null||i===void 0||i.call(e),this.dispatchOnChange()),a},r.prototype.forward=function(){this.internalForward()},r.prototype.handleSpeedChange=function(t){var e,i;this.states.speed=t;var a=this.states.state;a==="play"&&(this.internalPause(!0),this.internalPlay(!0)),(i=(e=this.attributes)===null||e===void 0?void 0:e.onSpeedChange)===null||i===void 0||i.call(e,t)},r.prototype.handleSelectionTypeChange=function(t){var e,i;this.states.selectionType=t,this.renderChart(),(i=(e=this.attributes)===null||e===void 0?void 0:e.onSelectionTypeChange)===null||i===void 0||i.call(e,t)},r.prototype.handleChartTypeChange=function(t){var e,i;this.states.chartType=t,this.renderChart(),(i=(e=this.attributes)===null||e===void 0?void 0:e.onChartTypeChange)===null||i===void 0||i.call(e,t)},r.prototype.render=function(){var t=this.space,e=t.axisBBox,i=t.controllerBBox,a=t.timelineBBox;this.renderController(i),this.renderAxis(e),this.renderChart(a),this.states.state==="play"&&this.internalPlay()},r.prototype.destroy=function(){n.prototype.destroy.call(this),this.internalPause(!0)},r.defaultOptions={style:{x:0,y:0,axisLabelFill:"#6e6e6e",axisLabelTextAlign:"left",axisLabelTextBaseline:"top",axisLabelTransform:"translate(5, -12)",axisLineLineWidth:1,axisLineStroke:"#cacdd1",axisTickLength:15,axisTickLineWidth:1,axisTickStroke:"#cacdd1",chartShowLabel:!1,chartType:"line",controllerAlign:"center",controllerHeight:40,data:[],interval:"day",loop:!1,playMode:"acc",selectionType:"range",type:"time"}},r})(Df);O(yr,k);export{ue as Axis,W as BBox,Ia as Breadcrumb,Ba as Button,on as Category,Es as Checkbox,Ls as CircleCrosshair,pn as Continuous,mn as Layout,ks as LineCrosshair,F as Marker,ai as Navigator,Si as PRIMILTIVE_ATTRIBUTES,Ps as PolygonCrosshair,oi as Poptip,Za as Scrollbar,mr as Select,ki as Selection,Te as Slider,Xr as Sparkline,bs as Switch,Zt as Tag,wn as Timebar,Mo as Timeline,gs as Tooltip,Vt as add,Dr as addPrefix,jr as applyStyleSheet,ye as applyToText,xi as arrayInterpolate,zr as catmullRom2Bezier,q as classNames,Wr as copyAttributes,Sr as createOffscreenGroup,ta as createTempText,M as deepAssign,Ar as defined,wt as degToRad,jt as distance,re as ellipsisIt,st as formatTime,Q as getCallbackValue,be as getEventPos,Xe as getEventViewportPos,Ye as getFont,$e as getLocalBBox,Ci as getMask,Ze as getPrimitiveAttributes,On as getRenderBBox,Rr as getShapeSpace,oa as getTimeDiff,sa as getTimeScale,la as getTimeStart,Ti as getTranslate,Or as groupBy,X as hide,Xn as ifNegative,qn as ifPositive,K as ifShow,it as inRange,xe as interpolate,Br as intersection,Gr as isHorizontal,wr as isInOffscreenGroup,wi as isPrimitiveAttribute,ea as isVertical,Mr as keyframeInterpolate,qe as lineLen,Ft as max,dt as maybeAppend,Lr as measureTextWidth,Kn as mid,zt as min,Zn as multi,Se as normalize,bi as numberInterpolate,_i as objectInterpolate,ie as omit,Ae as parseDate,Wn as parseHTML,Ur as parseHeightFromHTML,qt as parsePosition,H as parseSeriesAttr,Pi as path2marker,ke as percentTransform,je as radToDeg,Je as removePrefix,ut as renderExtDo,Cr as renderHtmlExtDo,tr as replaceChildren,Ir as rotate,Fr as sampling,ct as scale,Ut as scaleToPixel,A as select,Hn as setMockMeasureTextWidth,bt as show,ot as splitStyle,yi as stringToHTML,_e as sub,P as subStyleProps,pt as superStyleProps,ra as svg2marker,Ue as textOf,ia as throttle,ua as timer,Un as toKNotation,Li as toLowercaseFirstLetter,Yt as toPrecision,Yn as toScientificNotation,jn as toThousands,we as toUppercaseFirstLetter,Yr as transpose,Ve as traverse,Hr as vertical,ge as visibility,Pr as wrapIt};
15
+ //# sourceMappingURL=component.mjs.map