reke-ui 0.5.2 → 0.5.4

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 (159) hide show
  1. package/custom-elements.json +764 -3
  2. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
  3. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
  4. package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
  5. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
  6. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
  7. package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
  8. package/dist/components/reke-dialog/reke-dialog.d.ts +19 -0
  9. package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
  10. package/dist/components/reke-dialog/reke-dialog.js +40 -15
  11. package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
  12. package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
  13. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
  14. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
  15. package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
  16. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
  17. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +21 -20
  21. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
  22. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
  23. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
  24. package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
  25. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
  26. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
  27. package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
  28. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
  29. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
  30. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
  31. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
  32. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
  33. package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
  34. package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
  35. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  36. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
  37. package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
  38. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
  39. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
  40. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
  41. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
  42. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
  43. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
  44. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
  45. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
  46. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
  47. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
  48. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
  49. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
  50. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
  51. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
  52. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
  53. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
  54. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
  55. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
  56. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
  57. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
  58. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
  59. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
  60. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  61. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  62. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
  63. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  64. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
  65. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
  66. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
  67. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
  68. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
  69. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
  70. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
  71. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
  72. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
  73. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
  74. package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
  75. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  76. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
  77. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  78. package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
  79. package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
  80. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
  81. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
  82. package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
  83. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
  84. package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
  85. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
  86. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
  87. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
  88. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
  89. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
  90. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
  91. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
  92. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
  93. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
  94. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
  95. package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
  96. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
  97. package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
  98. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
  99. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
  100. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
  101. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
  102. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
  103. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
  104. package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
  105. package/dist/node_modules/echarts/lib/extension.js +10 -10
  106. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
  107. package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
  108. package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
  109. package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
  110. package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
  111. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  112. package/dist/node_modules/echarts/lib/loading/default.js +6 -6
  113. package/dist/node_modules/echarts/lib/model/Component.js +39 -39
  114. package/dist/node_modules/echarts/lib/model/Global.js +122 -122
  115. package/dist/node_modules/echarts/lib/model/Series.js +78 -78
  116. package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
  117. package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
  118. package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
  119. package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
  120. package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
  121. package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
  122. package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
  123. package/dist/node_modules/echarts/lib/scale/break.js +10 -2
  124. package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
  125. package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
  126. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
  127. package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
  128. package/dist/node_modules/echarts/lib/util/component.js +16 -16
  129. package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
  130. package/dist/node_modules/echarts/lib/util/decal.js +11 -11
  131. package/dist/node_modules/echarts/lib/util/format.js +1 -1
  132. package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
  133. package/dist/node_modules/echarts/lib/util/layout.js +23 -23
  134. package/dist/node_modules/echarts/lib/util/model.js +128 -68
  135. package/dist/node_modules/echarts/lib/util/number.js +55 -37
  136. package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
  137. package/dist/node_modules/echarts/lib/util/states.js +96 -82
  138. package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
  139. package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
  140. package/dist/node_modules/echarts/lib/util/time.js +154 -18
  141. package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
  142. package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
  143. package/dist/node_modules/echarts/lib/view/Component.js +7 -7
  144. package/dist/node_modules/echarts/lib/visual/style.js +5 -5
  145. package/dist/node_modules/zrender/lib/Element.js +35 -35
  146. package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
  147. package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
  148. package/dist/node_modules/zrender/lib/core/event.js +4 -1
  149. package/dist/node_modules/zrender/lib/core/util.js +69 -64
  150. package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
  151. package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
  152. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
  153. package/dist/node_modules/zrender/lib/tool/color.js +60 -41
  154. package/dist/react.d.ts +10 -0
  155. package/dist/react.d.ts.map +1 -1
  156. package/dist/react.js +85 -73
  157. package/dist/shared/tailwind.js +1 -1
  158. package/dist/tokens/reke-tokens.css +1 -0
  159. package/package.json +5 -1
@@ -1,69 +1,69 @@
1
- import { platformApi as e } from "../../../zrender/lib/core/platform.js";
2
- import { assert as t, bind as n, clone as r, createHashMap as i, defaults as a, each as o, extend as s, indexOf as c, isDom as l, isFunction as u, isObject as d, isString as f, map as p, noop as m, retrieve2 as h, setAsPrimitive as g } from "../../../zrender/lib/core/util.js";
3
- import { deprecateLog as _, deprecateReplaceLog as v, error as y, warn as b } from "../util/log.js";
4
- import x from "../../../zrender/lib/core/env.js";
5
- import { convertOptionIdName as ee, getAttribute as S, makeQueryConditionKindA as C, normalizeToArray as w, parseFinder as T, preParseFinder as te, setAttribute as ne } from "../util/model.js";
6
- import { handleLegacySelectEvents as re } from "../legacy/dataSelectAction.js";
7
- import { __extends as ie } from "../../node_modules/tslib/tslib.es6.js";
8
- import ae from "../../../zrender/lib/core/Eventful.js";
9
- import oe from "../../../zrender/lib/graphic/Path.js";
10
- import se from "../../../zrender/lib/graphic/Image.js";
11
- import ce from "../../../zrender/lib/graphic/shape/Rect.js";
12
- import { getECData as E } from "../util/innerStore.js";
13
- import { isElementRemoved as D } from "../animation/basicTransition.js";
14
- import { retrieveZInfo as le, traverseUpdateZ as ue } from "../util/graphic.js";
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import { platformApi as t } from "../../../zrender/lib/core/platform.js";
3
+ import { assert as n, bind as r, clone as i, createHashMap as a, defaults as o, each as s, extend as c, indexOf as l, isDom as u, isFunction as d, isObject as f, isString as p, map as m, noop as h, retrieve2 as g, setAsPrimitive as _ } from "../../../zrender/lib/core/util.js";
4
+ import v from "../../../zrender/lib/core/env.js";
5
+ import { parseClassType as y } from "../util/clazz.js";
6
+ import b from "../../../zrender/lib/core/Eventful.js";
7
+ import ee from "../../../zrender/lib/graphic/Path.js";
8
+ import te from "../../../zrender/lib/graphic/Image.js";
9
+ import ne from "../../../zrender/lib/graphic/shape/Rect.js";
10
+ import { deprecateLog as x, deprecateReplaceLog as S, error as C, warn as w } from "../util/log.js";
11
+ import { convertOptionIdName as re, getAttribute as ie, makeQueryConditionKindA as ae, normalizeToArray as oe, parseFinder as se, preParseFinder as ce, setAttribute as le } from "../util/model.js";
12
+ import { getECData as T } from "../util/innerStore.js";
15
13
  import "../util/types.js";
16
- import de from "./ExtensionAPI.js";
17
- import { DOWNPLAY_ACTION_TYPE as O, HIGHLIGHT_ACTION_TYPE as fe, SELECT_ACTION_TYPE as pe, SELECT_CHANGED_EVENT_TYPE as me, TOGGLE_SELECT_ACTION_TYPE as he, UNSELECT_ACTION_TYPE as ge, allLeaveBlur as _e, blurComponent as ve, blurSeriesFromHighlightPayload as ye, enterBlur as be, enterEmphasis as xe, enterSelect as Se, findComponentHighDownDispatchers as Ce, getAllSelectedIndices as we, handleGlobalMouseOutForHighDown as Te, handleGlobalMouseOverForHighDown as Ee, isHighDownDispatcher as De, isHighDownPayload as Oe, isSelectChangePayload as ke, leaveBlur as Ae, leaveEmphasis as je, leaveSelect as Me, savePathStates as Ne, toggleSelectionFromPayload as Pe, updateSeriesElementSelection as Fe } from "../util/states.js";
18
- import { parseClassType as Ie } from "../util/clazz.js";
19
- import Le from "../view/Chart.js";
20
- import { SYSTEM_LANG as Re, createLocaleObject as ze } from "./locale.js";
21
- import Be from "./CoordinateSystem.js";
14
+ import ue from "./ExtensionAPI.js";
15
+ import { DOWNPLAY_ACTION_TYPE as E, HIGHLIGHT_ACTION_TYPE as de, SELECT_ACTION_TYPE as fe, SELECT_CHANGED_EVENT_TYPE as pe, TOGGLE_SELECT_ACTION_TYPE as me, UNSELECT_ACTION_TYPE as he, allLeaveBlur as ge, blurComponent as _e, blurSeriesFromHighlightPayload as ve, enterBlur as ye, enterEmphasis as be, enterSelect as xe, findComponentHighDownDispatchers as Se, getAllSelectedIndices as Ce, handleGlobalMouseOutForHighDown as we, handleGlobalMouseOverForHighDown as Te, isHighDownDispatcher as Ee, isHighDownPayload as De, isSelectChangePayload as Oe, leaveBlur as ke, leaveEmphasis as Ae, leaveSelect as je, savePathStates as Me, toggleSelectionFromPayload as Ne, updateSeriesElementSelection as Pe } from "../util/states.js";
16
+ import { isElementRemoved as Fe } from "../animation/basicTransition.js";
17
+ import { retrieveZInfo as Ie, traverseUpdateZ as Le } from "../util/graphic.js";
18
+ import Re from "./CoordinateSystem.js";
19
+ import { SYSTEM_LANG as ze, createLocaleObject as Be } from "./locale.js";
22
20
  import { registerExternalTransform as Ve } from "../data/helper/transform.js";
23
21
  import He from "../model/Series.js";
24
- import Ue from "../view/Component.js";
25
- import { throttle as We } from "../util/throttle.js";
26
- import { resetCachePerECFullUpdate as Ge, resetCachePerECPrepare as Ke } from "../util/cycleCache.js";
27
- import qe from "../../../zrender/lib/core/timsort.js";
28
- import { init as Je, registerSSRDataGetter as Ye } from "../../../zrender/lib/zrender.js";
29
- import Xe from "../model/globalDefault.js";
30
- import Ze from "../model/Global.js";
31
- import Qe from "../model/OptionManager.js";
32
- import $e from "../preprocessor/backwardCompat.js";
33
- import { dataStackStageHandler as et } from "../processor/dataStack.js";
34
- import { dataColorPaletteTask as tt, dataStyleTask as nt, seriesStyleTask as rt } from "../visual/style.js";
35
- import it from "../loading/default.js";
36
- import at from "./Scheduler.js";
37
- import ot from "../theme/dark.js";
38
- import { ECEventProcessor as st } from "../util/ECEventProcessor.js";
39
- import { dataSymbolTask as ct, seriesSymbolTask as lt } from "../visual/symbol.js";
40
- import { getItemVisualFromData as ut, getVisualFromData as dt } from "../visual/helper.js";
41
- import { findEventDispatcher as k } from "../util/event.js";
42
- import A from "./lifecycle.js";
43
- import { getImpl as ft } from "./impl.js";
44
- import { decalVisualStageHandler as pt } from "../visual/decal.js";
22
+ import Ue from "../view/Chart.js";
23
+ import { resetCachePerECFullUpdate as We, resetCachePerECPrepare as Ge } from "../util/cycleCache.js";
24
+ import { throttle as Ke } from "../util/throttle.js";
25
+ import { handleLegacySelectEvents as qe } from "../legacy/dataSelectAction.js";
26
+ import Je from "../view/Component.js";
27
+ import Ye from "../../../zrender/lib/core/timsort.js";
28
+ import { init as Xe, registerSSRDataGetter as Ze } from "../../../zrender/lib/zrender.js";
29
+ import Qe from "../model/globalDefault.js";
30
+ import $e from "../model/Global.js";
31
+ import et from "../model/OptionManager.js";
32
+ import tt from "../preprocessor/backwardCompat.js";
33
+ import { dataStackStageHandler as nt } from "../processor/dataStack.js";
34
+ import { dataColorPaletteTask as rt, dataStyleTask as it, seriesStyleTask as at } from "../visual/style.js";
35
+ import ot from "../loading/default.js";
36
+ import st from "./Scheduler.js";
37
+ import ct from "../theme/dark.js";
38
+ import { ECEventProcessor as lt } from "../util/ECEventProcessor.js";
39
+ import { dataSymbolTask as ut, seriesSymbolTask as dt } from "../visual/symbol.js";
40
+ import { getItemVisualFromData as ft, getVisualFromData as pt } from "../visual/helper.js";
41
+ import { findEventDispatcher as D } from "../util/event.js";
42
+ import O from "./lifecycle.js";
43
+ import { getImpl as mt } from "./impl.js";
44
+ import { decalVisualStageHandler as ht } from "../visual/decal.js";
45
45
  //#region node_modules/echarts/lib/core/echarts.js
46
- var mt = 1, ht = 800, gt = 900, _t = 920, vt = 1e3, yt = 2e3, bt = 5e3, xt = 1e3, St = 1100, Ct = 2e3, wt = 3e3, Tt = 4e3, j = 4500, Et = 4600, Dt = 5e3, Ot = 6e3, kt = 7e3, At = {
46
+ var gt = 1, _t = 800, vt = 900, yt = 920, bt = 1e3, xt = 2e3, St = 5e3, Ct = 1e3, wt = 1100, k = 2e3, Tt = 3e3, Et = 4e3, A = 4500, Dt = 4600, Ot = 5e3, kt = 6e3, At = 7e3, jt = {
47
47
  PROCESSOR: {
48
- SERIES_FILTER: ht,
49
- AXIS_STATISTICS: _t,
50
- FILTER: vt,
51
- STATISTIC: bt,
52
- STATISTICS: bt
48
+ SERIES_FILTER: _t,
49
+ AXIS_STATISTICS: yt,
50
+ FILTER: bt,
51
+ STATISTIC: St,
52
+ STATISTICS: St
53
53
  },
54
54
  VISUAL: {
55
- LAYOUT: xt,
56
- PROGRESSIVE_LAYOUT: St,
57
- GLOBAL: Ct,
58
- CHART: wt,
59
- POST_CHART_LAYOUT: Et,
60
- COMPONENT: Tt,
61
- BRUSH: Dt,
62
- CHART_ITEM: j,
63
- ARIA: Ot,
64
- DECAL: kt
55
+ LAYOUT: Ct,
56
+ PROGRESSIVE_LAYOUT: wt,
57
+ GLOBAL: k,
58
+ CHART: Tt,
59
+ POST_CHART_LAYOUT: Dt,
60
+ COMPONENT: Et,
61
+ BRUSH: Ot,
62
+ CHART_ITEM: A,
63
+ ARIA: kt,
64
+ DECAL: At
65
65
  }
66
- }, M = "__flagInMainProcess", N = "__mainProcessVersion", P = "__pendingUpdate", jt = "__needsUpdateStatus", Mt = /^[a-zA-Z0-9_]+$/, Nt = "__connectUpdateStatus", Pt = 0, Ft = 1, It = 2;
66
+ }, j = "__flagInMainProcess", M = "__mainProcessVersion", N = "__pendingUpdate", Mt = "__needsUpdateStatus", Nt = /^[a-zA-Z0-9_]+$/, P = "__connectUpdateStatus", Pt = 0, Ft = 1, It = 2;
67
67
  function Lt(e) {
68
68
  return function() {
69
69
  var t = [...arguments];
@@ -81,83 +81,83 @@ function Rt(e) {
81
81
  };
82
82
  }
83
83
  function zt(e, t, n) {
84
- return n[0] = n[0] && n[0].toLowerCase(), ae.prototype[t].apply(e, n);
84
+ return n[0] = n[0] && n[0].toLowerCase(), b.prototype[t].apply(e, n);
85
85
  }
86
- var Bt = function(e) {
87
- ie(t, e);
88
- function t() {
89
- return e !== null && e.apply(this, arguments) || this;
86
+ var Bt = function(t) {
87
+ e(n, t);
88
+ function n() {
89
+ return t !== null && t.apply(this, arguments) || this;
90
90
  }
91
- return t;
92
- }(ae), Vt = Bt.prototype;
91
+ return n;
92
+ }(b), Vt = Bt.prototype;
93
93
  Vt.on = Rt("on"), Vt.off = Rt("off");
94
- var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = function(c) {
95
- ie(l, c);
96
- function l(e, t, r) {
97
- var a = c.call(this, new st()) || this;
98
- a._chartsViews = [], a._chartsMap = {}, a._componentsViews = [], a._componentsMap = {}, a._pendingActions = [], r ||= {}, a.__v_skip = !0, a._dom = e;
99
- var o = "canvas", s = "auto", l = !1;
100
- if (a[N] = 1, process.env.NODE_ENV !== "production") {
101
- var u = x.hasGlobalWindow ? window : global;
102
- u && (o = h(u.__ECHARTS__DEFAULT__RENDERER__, o), s = h(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), l = h(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, l));
103
- }
104
- r.ssr && Ye(function(e) {
105
- var t = E(e), n = t.dataIndex;
94
+ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = function(l) {
95
+ e(u, l);
96
+ function u(e, t, n) {
97
+ var i = l.call(this, new lt()) || this;
98
+ i._chartsViews = [], i._chartsMap = {}, i._componentsViews = [], i._componentsMap = {}, i._pendingActions = [], n ||= {}, i.__v_skip = !0, i._dom = e;
99
+ var o = "canvas", s = "auto", c = !1;
100
+ if (i[M] = 1, process.env.NODE_ENV !== "production") {
101
+ var u = v.hasGlobalWindow ? window : global;
102
+ u && (o = g(u.__ECHARTS__DEFAULT__RENDERER__, o), s = g(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), c = g(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, c));
103
+ }
104
+ n.ssr && Ze(function(e) {
105
+ var t = T(e), n = t.dataIndex;
106
106
  if (n != null) {
107
- var r = i();
107
+ var r = a();
108
108
  return r.set("series_index", t.seriesIndex), r.set("data_index", n), t.ssrType && r.set("ssr_type", t.ssrType), r;
109
109
  }
110
110
  });
111
- var d = a._zr = Je(e, {
112
- renderer: r.renderer || o,
113
- devicePixelRatio: r.devicePixelRatio,
114
- width: r.width,
115
- height: r.height,
116
- ssr: r.ssr,
117
- useDirtyRect: h(r.useDirtyRect, l),
118
- useCoarsePointer: h(r.useCoarsePointer, s),
119
- pointerSize: r.pointerSize
111
+ var d = i._zr = Xe(e, {
112
+ renderer: n.renderer || o,
113
+ devicePixelRatio: n.devicePixelRatio,
114
+ width: n.width,
115
+ height: n.height,
116
+ ssr: n.ssr,
117
+ useDirtyRect: g(n.useDirtyRect, c),
118
+ useCoarsePointer: g(n.useCoarsePointer, s),
119
+ pointerSize: n.pointerSize
120
120
  });
121
- a._ssr = r.ssr, a._throttledZrFlush = We(n(d.flush, d), 17), a._updateTheme(t), a._locale = ze(r.locale || Re), a._coordSysMgr = new Be();
122
- var f = a._api = Kt(a);
121
+ i._ssr = n.ssr, i._throttledZrFlush = Ke(r(d.flush, d), 17), i._updateTheme(t), i._locale = Be(n.locale || ze), i._coordSysMgr = new Re();
122
+ var f = i._api = Kt(i);
123
123
  function p(e, t) {
124
124
  return e.__prio - t.__prio;
125
125
  }
126
- return qe(X, p), qe($t, p), a._scheduler = new at(a, f, $t, X), a._messageCenter = new Bt(), a._initEvents(), a.resize = n(a.resize, a), d.animation.on("frame", a._onframe, a), Ut(d, a), Wt(d, a), g(a), a;
126
+ return Ye(X, p), Ye($t, p), i._scheduler = new st(i, f, $t, X), i._messageCenter = new Bt(), i._initEvents(), i.resize = r(i.resize, i), d.animation.on("frame", i._onframe, i), Ut(d, i), Wt(d, i), _(i), i;
127
127
  }
128
- return l.prototype._onframe = function() {
128
+ return u.prototype._onframe = function() {
129
129
  if (!this._disposed) {
130
- var t = this._scheduler, n = this._model, r = this._api;
131
- if (Jt(this), this[P]) {
132
- var i = this[P].silent;
133
- this[M] = !0, K(this);
130
+ var e = this._scheduler, n = this._model, r = this._api;
131
+ if (Jt(this), this[N]) {
132
+ var i = this[N].silent;
133
+ this[j] = !0, K(this);
134
134
  try {
135
- F(this), L.update.call(this, null, this[P].updateParams);
135
+ F(this), L.update.call(this, null, this[N].updateParams);
136
136
  } catch (e) {
137
- throw this[M] = !1, this[P] = null, e;
137
+ throw this[j] = !1, this[N] = null, e;
138
138
  }
139
- this._zr.flush(), this[M] = !1, this[P] = null, V.call(this, i), H.call(this, i);
140
- } else if (t.unfinished) {
141
- var a = mt;
139
+ this._zr.flush(), this[j] = !1, this[N] = null, V.call(this, i), H.call(this, i);
140
+ } else if (e.unfinished) {
141
+ var a = gt;
142
142
  do {
143
- t.unfinished = !1;
144
- var o = e.getTime();
145
- t.performSeriesTasks(n), t.performDataProcessorTasks(n), z(this, n), t.performVisualTasks(n), W(this, this._model, r, "remain", {}), a -= e.getTime() - o;
146
- } while (a > 0 && t.unfinished);
147
- t.unfinished || this._zr.flush();
143
+ e.unfinished = !1;
144
+ var o = t.getTime();
145
+ e.performSeriesTasks(n), e.performDataProcessorTasks(n), z(this, n), e.performVisualTasks(n), W(this, this._model, r, "remain", {}), a -= t.getTime() - o;
146
+ } while (a > 0 && e.unfinished);
147
+ e.unfinished || this._zr.flush();
148
148
  }
149
149
  }
150
- }, l.prototype.getDom = function() {
150
+ }, u.prototype.getDom = function() {
151
151
  return this._dom;
152
- }, l.prototype.getId = function() {
152
+ }, u.prototype.getId = function() {
153
153
  return this.id;
154
- }, l.prototype.getZr = function() {
154
+ }, u.prototype.getZr = function() {
155
155
  return this._zr;
156
- }, l.prototype.isSSR = function() {
156
+ }, u.prototype.isSSR = function() {
157
157
  return this._ssr;
158
- }, l.prototype.setOption = function(e, t, n) {
159
- if (this[M]) {
160
- process.env.NODE_ENV !== "production" && y("`setOption` should not be called during main process.");
158
+ }, u.prototype.setOption = function(e, t, n) {
159
+ if (this[j]) {
160
+ process.env.NODE_ENV !== "production" && C("`setOption` should not be called during main process.");
161
161
  return;
162
162
  }
163
163
  if (this._disposed) {
@@ -165,8 +165,8 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
165
165
  return;
166
166
  }
167
167
  var r, i, a;
168
- if (d(t) && (n = t.lazyUpdate, r = t.silent, i = t.replaceMerge, a = t.transition, t = t.notMerge), this[M] = !0, K(this), !this._model || t) {
169
- var o = new Qe(this._api), s = this._theme, c = this._model = new Ze();
168
+ if (f(t) && (n = t.lazyUpdate, r = t.silent, i = t.replaceMerge, a = t.transition, t = t.notMerge), this[j] = !0, K(this), !this._model || t) {
169
+ var o = new et(this._api), s = this._theme, c = this._model = new $e();
170
170
  c.scheduler = this._scheduler, c.ssr = this._ssr, c.init(null, null, null, s, this._locale, o);
171
171
  }
172
172
  this._model.setOption(e, { replaceMerge: i }, en);
@@ -174,21 +174,21 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
174
174
  seriesTransition: a,
175
175
  optionChanged: !0
176
176
  };
177
- if (n) this[P] = {
177
+ if (n) this[N] = {
178
178
  silent: r,
179
179
  updateParams: l
180
- }, this[M] = !1, this.getZr().wakeUp();
180
+ }, this[j] = !1, this.getZr().wakeUp();
181
181
  else {
182
182
  try {
183
183
  F(this), L.update.call(this, null, l);
184
184
  } catch (e) {
185
- throw this[P] = null, this[M] = !1, e;
185
+ throw this[N] = null, this[j] = !1, e;
186
186
  }
187
- this._ssr || this._zr.flush(), this[P] = null, this[M] = !1, V.call(this, r), H.call(this, r);
187
+ this._ssr || this._zr.flush(), this[N] = null, this[j] = !1, V.call(this, r), H.call(this, r);
188
188
  }
189
- }, l.prototype.setTheme = function(e, t) {
190
- if (this[M]) {
191
- process.env.NODE_ENV !== "production" && y("`setTheme` should not be called during main process.");
189
+ }, u.prototype.setTheme = function(e, t) {
190
+ if (this[j]) {
191
+ process.env.NODE_ENV !== "production" && C("`setTheme` should not be called during main process.");
192
192
  return;
193
193
  }
194
194
  if (this._disposed) {
@@ -198,29 +198,29 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
198
198
  var n = this._model;
199
199
  if (n) {
200
200
  var r = t && t.silent, i = null;
201
- this[P] && (r ??= this[P].silent, i = this[P].updateParams, this[P] = null), this[M] = !0, K(this);
201
+ this[N] && (r ??= this[N].silent, i = this[N].updateParams, this[N] = null), this[j] = !0, K(this);
202
202
  try {
203
203
  this._updateTheme(e), n.setTheme(this._theme), F(this), L.update.call(this, { type: "setTheme" }, i);
204
204
  } catch (e) {
205
- throw this[M] = !1, e;
205
+ throw this[j] = !1, e;
206
206
  }
207
- this[M] = !1, V.call(this, r), H.call(this, r);
207
+ this[j] = !1, V.call(this, r), H.call(this, r);
208
208
  }
209
- }, l.prototype._updateTheme = function(e) {
210
- f(e) && (e = tn[e]), e && (e = r(e), e && $e(e, !0), this._theme = e);
211
- }, l.prototype.getModel = function() {
209
+ }, u.prototype._updateTheme = function(e) {
210
+ p(e) && (e = tn[e]), e && (e = i(e), e && tt(e, !0), this._theme = e);
211
+ }, u.prototype.getModel = function() {
212
212
  return this._model;
213
- }, l.prototype.getOption = function() {
213
+ }, u.prototype.getOption = function() {
214
214
  return this._model && this._model.getOption();
215
- }, l.prototype.getWidth = function() {
215
+ }, u.prototype.getWidth = function() {
216
216
  return this._zr.getWidth();
217
- }, l.prototype.getHeight = function() {
217
+ }, u.prototype.getHeight = function() {
218
218
  return this._zr.getHeight();
219
- }, l.prototype.getDevicePixelRatio = function() {
220
- return this._zr.painter.dpr || x.hasGlobalWindow && window.devicePixelRatio || 1;
221
- }, l.prototype.getRenderedCanvas = function(e) {
222
- return process.env.NODE_ENV !== "production" && v("getRenderedCanvas", "renderToCanvas"), this.renderToCanvas(e);
223
- }, l.prototype.renderToCanvas = function(e) {
219
+ }, u.prototype.getDevicePixelRatio = function() {
220
+ return this._zr.painter.dpr || v.hasGlobalWindow && window.devicePixelRatio || 1;
221
+ }, u.prototype.getRenderedCanvas = function(e) {
222
+ return process.env.NODE_ENV !== "production" && S("getRenderedCanvas", "renderToCanvas"), this.renderToCanvas(e);
223
+ }, u.prototype.renderToCanvas = function(e) {
224
224
  e ||= {};
225
225
  var t = this._zr.painter;
226
226
  if (process.env.NODE_ENV !== "production" && t.type !== "canvas") throw Error("renderToCanvas can only be used in the canvas renderer.");
@@ -228,125 +228,125 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
228
228
  backgroundColor: e.backgroundColor || this._model.get("backgroundColor"),
229
229
  pixelRatio: e.pixelRatio || this.getDevicePixelRatio()
230
230
  });
231
- }, l.prototype.renderToSVGString = function(e) {
231
+ }, u.prototype.renderToSVGString = function(e) {
232
232
  e ||= {};
233
233
  var t = this._zr.painter;
234
234
  if (process.env.NODE_ENV !== "production" && t.type !== "svg") throw Error("renderToSVGString can only be used in the svg renderer.");
235
235
  return t.renderToString({ useViewBox: e.useViewBox });
236
- }, l.prototype.getSvgDataURL = function() {
236
+ }, u.prototype.getSvgDataURL = function() {
237
237
  var e = this._zr;
238
- return o(e.storage.getDisplayList(), function(e) {
238
+ return s(e.storage.getDisplayList(), function(e) {
239
239
  e.stopAnimation(null, !0);
240
240
  }), e.painter.toDataURL();
241
- }, l.prototype.getDataURL = function(e) {
241
+ }, u.prototype.getDataURL = function(e) {
242
242
  if (this._disposed) {
243
243
  q(this.id);
244
244
  return;
245
245
  }
246
246
  e ||= {};
247
247
  var t = e.excludeComponents, n = this._model, r = [], i = this;
248
- o(t, function(e) {
248
+ s(t, function(e) {
249
249
  n.eachComponent({ mainType: e }, function(e) {
250
250
  var t = i._componentsMap[e.__viewId];
251
251
  t.group.ignore || (r.push(t), t.group.ignore = !0);
252
252
  });
253
253
  });
254
254
  var a = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(e).toDataURL("image/" + (e && e.type || "png"));
255
- return o(r, function(e) {
255
+ return s(r, function(e) {
256
256
  e.group.ignore = !1;
257
257
  }), a;
258
- }, l.prototype.getConnectedDataURL = function(t) {
258
+ }, u.prototype.getConnectedDataURL = function(e) {
259
259
  if (this._disposed) {
260
260
  q(this.id);
261
261
  return;
262
262
  }
263
- var n = t.type === "svg", i = this.group, a = Math.min, s = Math.max, c = Infinity;
264
- if (rn[i]) {
265
- var l = c, u = c, d = -c, f = -c, p = [], m = t && t.pixelRatio || this.getDevicePixelRatio();
266
- o(Z, function(e, o) {
267
- if (e.group === i) {
268
- var c = n ? e.getZr().painter.getSvgDom().innerHTML : e.renderToCanvas(r(t)), m = e.getDom().getBoundingClientRect();
269
- l = a(m.left, l), u = a(m.top, u), d = s(m.right, d), f = s(m.bottom, f), p.push({
263
+ var n = e.type === "svg", r = this.group, a = Math.min, o = Math.max, c = Infinity;
264
+ if (rn[r]) {
265
+ var l = c, u = c, d = -c, f = -c, p = [], m = e && e.pixelRatio || this.getDevicePixelRatio();
266
+ s(Z, function(t, s) {
267
+ if (t.group === r) {
268
+ var c = n ? t.getZr().painter.getSvgDom().innerHTML : t.renderToCanvas(i(e)), m = t.getDom().getBoundingClientRect();
269
+ l = a(m.left, l), u = a(m.top, u), d = o(m.right, d), f = o(m.bottom, f), p.push({
270
270
  dom: c,
271
271
  left: m.left,
272
272
  top: m.top
273
273
  });
274
274
  }
275
275
  }), l *= m, u *= m, d *= m, f *= m;
276
- var h = d - l, g = f - u, _ = e.createCanvas(), v = Je(_, { renderer: n ? "svg" : "canvas" });
276
+ var h = d - l, g = f - u, _ = t.createCanvas(), v = Xe(_, { renderer: n ? "svg" : "canvas" });
277
277
  if (v.resize({
278
278
  width: h,
279
279
  height: g
280
280
  }), n) {
281
281
  var y = "";
282
- return o(p, function(e) {
282
+ return s(p, function(e) {
283
283
  var t = e.left - l, n = e.top - u;
284
284
  y += "<g transform=\"translate(" + t + "," + n + ")\">" + e.dom + "</g>";
285
- }), v.painter.getSvgRoot().innerHTML = y, t.connectedBackgroundColor && v.painter.setBackgroundColor(t.connectedBackgroundColor), v.refreshImmediately(), v.painter.toDataURL();
286
- } else return t.connectedBackgroundColor && v.add(new ce({
285
+ }), v.painter.getSvgRoot().innerHTML = y, e.connectedBackgroundColor && v.painter.setBackgroundColor(e.connectedBackgroundColor), v.refreshImmediately(), v.painter.toDataURL();
286
+ } else return e.connectedBackgroundColor && v.add(new ne({
287
287
  shape: {
288
288
  x: 0,
289
289
  y: 0,
290
290
  width: h,
291
291
  height: g
292
292
  },
293
- style: { fill: t.connectedBackgroundColor }
294
- })), o(p, function(e) {
295
- var t = new se({ style: {
293
+ style: { fill: e.connectedBackgroundColor }
294
+ })), s(p, function(e) {
295
+ var t = new te({ style: {
296
296
  x: e.left * m - l,
297
297
  y: e.top * m - u,
298
298
  image: e.dom
299
299
  } });
300
300
  v.add(t);
301
- }), v.refreshImmediately(), _.toDataURL("image/" + (t && t.type || "png"));
302
- } else return this.getDataURL(t);
303
- }, l.prototype.convertToPixel = function(e, t, n) {
301
+ }), v.refreshImmediately(), _.toDataURL("image/" + (e && e.type || "png"));
302
+ } else return this.getDataURL(e);
303
+ }, u.prototype.convertToPixel = function(e, t, n) {
304
304
  return R(this, "convertToPixel", e, t, n);
305
- }, l.prototype.convertToLayout = function(e, t, n) {
305
+ }, u.prototype.convertToLayout = function(e, t, n) {
306
306
  return R(this, "convertToLayout", e, t, n);
307
- }, l.prototype.convertFromPixel = function(e, t, n) {
307
+ }, u.prototype.convertFromPixel = function(e, t, n) {
308
308
  return R(this, "convertFromPixel", e, t, n);
309
- }, l.prototype.containPixel = function(e, t) {
309
+ }, u.prototype.containPixel = function(e, t) {
310
310
  if (this._disposed) {
311
311
  q(this.id);
312
312
  return;
313
313
  }
314
314
  var n = this._model, r;
315
- return o(T(n, e), function(e, n) {
316
- n.indexOf("Models") >= 0 && o(e, function(e) {
315
+ return s(se(n, e), function(e, n) {
316
+ n.indexOf("Models") >= 0 && s(e, function(e) {
317
317
  var i = e.coordinateSystem;
318
318
  if (i && i.containPoint) r ||= !!i.containPoint(t);
319
319
  else if (n === "seriesModels") {
320
320
  var a = this._chartsMap[e.__viewId];
321
- a && a.containPoint ? r ||= a.containPoint(t, e) : process.env.NODE_ENV !== "production" && b(n + ": " + (a ? "The found component do not support containPoint." : "No view mapping to the found component."));
322
- } else process.env.NODE_ENV !== "production" && b(n + ": containPoint is not supported");
321
+ a && a.containPoint ? r ||= a.containPoint(t, e) : process.env.NODE_ENV !== "production" && w(n + ": " + (a ? "The found component do not support containPoint." : "No view mapping to the found component."));
322
+ } else process.env.NODE_ENV !== "production" && w(n + ": containPoint is not supported");
323
323
  }, this);
324
324
  }, this), !!r;
325
- }, l.prototype.getVisual = function(e, t) {
326
- var n = this._model, r = T(n, e, { defaultMainType: "series" }), i = r.seriesModel;
327
- process.env.NODE_ENV !== "production" && (i || b("There is no specified series model"));
325
+ }, u.prototype.getVisual = function(e, t) {
326
+ var n = this._model, r = se(n, e, { defaultMainType: "series" }), i = r.seriesModel;
327
+ process.env.NODE_ENV !== "production" && (i || w("There is no specified series model"));
328
328
  var a = i.getData(), o = r.hasOwnProperty("dataIndexInside") ? r.dataIndexInside : r.hasOwnProperty("dataIndex") ? a.indexOfRawIndex(r.dataIndex) : null;
329
- return o == null ? dt(a, t) : ut(a, o, t);
330
- }, l.prototype.getViewOfComponentModel = function(e) {
329
+ return o == null ? pt(a, t) : ft(a, o, t);
330
+ }, u.prototype.getViewOfComponentModel = function(e) {
331
331
  return this._componentsMap[e.__viewId];
332
- }, l.prototype.getViewOfSeriesModel = function(e) {
332
+ }, u.prototype.getViewOfSeriesModel = function(e) {
333
333
  return this._chartsMap[e.__viewId];
334
- }, l.prototype._initEvents = function() {
334
+ }, u.prototype._initEvents = function() {
335
335
  var e = this;
336
- o(Zt, function(t) {
336
+ s(Zt, function(t) {
337
337
  var n = function(n) {
338
338
  var r = e.getModel(), i = n.target, a, o = t === "globalout";
339
- if (o ? a = {} : i && k(i, function(e) {
340
- var t = E(e);
339
+ if (o ? a = {} : i && D(i, function(e) {
340
+ var t = T(e);
341
341
  if (t && t.dataIndex != null) {
342
342
  var n = t.dataModel || r.getSeriesByIndex(t.seriesIndex);
343
343
  return a = n && n.getDataParams(t.dataIndex, t.dataType, i) || {}, !0;
344
- } else if (t.eventData) return a = s({}, t.eventData), !0;
344
+ } else if (t.eventData) return a = c({}, t.eventData), !0;
345
345
  }, !0), a) {
346
- var c = a.componentType, l = a.componentIndex;
347
- (c === "markLine" || c === "markPoint" || c === "markArea") && (c = "series", l = a.seriesIndex);
348
- var u = c && l != null && r.getComponent(c, l), d = u && e[u.mainType === "series" ? "_chartsMap" : "_componentsMap"][u.__viewId];
349
- process.env.NODE_ENV !== "production" && !o && !(u && d) && b("model or view can not be found by params"), a.event = n, a.type = t, e._$eventProcessor.eventInfo = {
346
+ var s = a.componentType, l = a.componentIndex;
347
+ (s === "markLine" || s === "markPoint" || s === "markArea") && (s = "series", l = a.seriesIndex);
348
+ var u = s && l != null && r.getComponent(s, l), d = u && e[u.mainType === "series" ? "_chartsMap" : "_componentsMap"][u.__viewId];
349
+ process.env.NODE_ENV !== "production" && !o && !(u && d) && w("model or view can not be found by params"), a.event = n, a.type = t, e._$eventProcessor.eventInfo = {
350
350
  targetEl: i,
351
351
  packedEvent: a,
352
352
  model: u,
@@ -357,34 +357,34 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
357
357
  n.zrEventfulCallAtLast = !0, e._zr.on(t, n, e);
358
358
  });
359
359
  var t = this._messageCenter;
360
- o(Qt, function(n, r) {
360
+ s(Qt, function(n, r) {
361
361
  t.on(r, function(t) {
362
362
  e.trigger(r, t);
363
363
  });
364
- }), re(t, this, this._api);
365
- }, l.prototype.isDisposed = function() {
364
+ }), qe(t, this, this._api);
365
+ }, u.prototype.isDisposed = function() {
366
366
  return this._disposed;
367
- }, l.prototype.clear = function() {
367
+ }, u.prototype.clear = function() {
368
368
  if (this._disposed) {
369
369
  q(this.id);
370
370
  return;
371
371
  }
372
372
  this.setOption({ series: [] }, !0);
373
- }, l.prototype.dispose = function() {
373
+ }, u.prototype.dispose = function() {
374
374
  if (this._disposed) {
375
375
  q(this.id);
376
376
  return;
377
377
  }
378
- this._disposed = !0, this.getDom() && ne(this.getDom(), on, "");
378
+ this._disposed = !0, this.getDom() && le(this.getDom(), on, "");
379
379
  var e = this, t = e._api, n = e._model;
380
- o(e._componentsViews, function(e) {
380
+ s(e._componentsViews, function(e) {
381
381
  e.dispose(n, t);
382
- }), o(e._chartsViews, function(e) {
382
+ }), s(e._chartsViews, function(e) {
383
383
  e.dispose(n, t);
384
384
  }), e._zr.dispose(), e._dom = e._model = e._chartsMap = e._componentsMap = e._chartsViews = e._componentsViews = e._scheduler = e._api = e._zr = e._throttledZrFlush = e._theme = e._coordSysMgr = e._messageCenter = null, delete Z[e.id];
385
- }, l.prototype.resize = function(e) {
386
- if (this[M]) {
387
- process.env.NODE_ENV !== "production" && y("`resize` should not be called during main process.");
385
+ }, u.prototype.resize = function(e) {
386
+ if (this[j]) {
387
+ process.env.NODE_ENV !== "production" && C("`resize` should not be called during main process.");
388
388
  return;
389
389
  }
390
390
  if (this._disposed) {
@@ -395,69 +395,69 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
395
395
  var t = this._model;
396
396
  if (this._loadingFX && this._loadingFX.resize(), t) {
397
397
  var n = t.resetOption("media"), r = e && e.silent;
398
- this[P] && (r ??= this[P].silent, n = !0, this[P] = null), this[M] = !0, K(this);
398
+ this[N] && (r ??= this[N].silent, n = !0, this[N] = null), this[j] = !0, K(this);
399
399
  try {
400
400
  n && F(this), L.update.call(this, {
401
401
  type: "resize",
402
- animation: s({ duration: 0 }, e && e.animation)
402
+ animation: c({ duration: 0 }, e && e.animation)
403
403
  });
404
404
  } catch (e) {
405
- throw this[M] = !1, e;
405
+ throw this[j] = !1, e;
406
406
  }
407
- this[M] = !1, V.call(this, r), H.call(this, r);
407
+ this[j] = !1, V.call(this, r), H.call(this, r);
408
408
  }
409
- }, l.prototype.showLoading = function(e, t) {
409
+ }, u.prototype.showLoading = function(e, t) {
410
410
  if (this._disposed) {
411
411
  q(this.id);
412
412
  return;
413
413
  }
414
- if (d(e) && (t = e, e = ""), e ||= "default", this.hideLoading(), !nn[e]) {
415
- process.env.NODE_ENV !== "production" && b("Loading effects " + e + " not exists.");
414
+ if (f(e) && (t = e, e = ""), e ||= "default", this.hideLoading(), !nn[e]) {
415
+ process.env.NODE_ENV !== "production" && w("Loading effects " + e + " not exists.");
416
416
  return;
417
417
  }
418
418
  var n = nn[e](this._api, t), r = this._zr;
419
419
  this._loadingFX = n, r.add(n);
420
- }, l.prototype.hideLoading = function() {
420
+ }, u.prototype.hideLoading = function() {
421
421
  if (this._disposed) {
422
422
  q(this.id);
423
423
  return;
424
424
  }
425
425
  this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null;
426
- }, l.prototype.makeActionFromEvent = function(e) {
427
- var t = s({}, e);
426
+ }, u.prototype.makeActionFromEvent = function(e) {
427
+ var t = c({}, e);
428
428
  return t.type = Y[e.type], t;
429
- }, l.prototype.dispatchAction = function(e, t) {
429
+ }, u.prototype.dispatchAction = function(e, t) {
430
430
  if (this._disposed) {
431
431
  q(this.id);
432
432
  return;
433
433
  }
434
- if (d(t) || (t = { silent: !!t }), J[e.type] && this._model) {
435
- if (this[M]) {
434
+ if (f(t) || (t = { silent: !!t }), J[e.type] && this._model) {
435
+ if (this[j]) {
436
436
  this._pendingActions.push(e);
437
437
  return;
438
438
  }
439
439
  var n = t.silent;
440
440
  B.call(this, e, n);
441
441
  var r = t.flush;
442
- r ? this._zr.flush() : r !== !1 && x.browser.weChat && this._throttledZrFlush(), V.call(this, n), H.call(this, n);
442
+ r ? this._zr.flush() : r !== !1 && v.browser.weChat && this._throttledZrFlush(), V.call(this, n), H.call(this, n);
443
443
  }
444
- }, l.prototype.updateLabelLayout = function() {
445
- A.trigger("series:layoutlabels", this._model, this._api, { updatedSeries: [] });
446
- }, l.prototype.appendData = function(e) {
444
+ }, u.prototype.updateLabelLayout = function() {
445
+ O.trigger("series:layoutlabels", this._model, this._api, { updatedSeries: [] });
446
+ }, u.prototype.appendData = function(e) {
447
447
  if (this._disposed) {
448
448
  q(this.id);
449
449
  return;
450
450
  }
451
- var n = e.seriesIndex, r = this.getModel().getSeriesByIndex(n);
452
- process.env.NODE_ENV !== "production" && t(e.data && r), r.appendData(e), this._scheduler.unfinished = !0, this.getZr().wakeUp();
453
- }, l.internalField = function() {
451
+ var t = e.seriesIndex, r = this.getModel().getSeriesByIndex(t);
452
+ process.env.NODE_ENV !== "production" && n(e.data && r), r.appendData(e), this._scheduler.unfinished = !0, this.getZr().wakeUp();
453
+ }, u.internalField = function() {
454
454
  F = function(e) {
455
- Ke(e._model);
455
+ Ge(e._model);
456
456
  var t = e._scheduler;
457
457
  t.restorePipelines(e._zr, e._model), t.prepareStageTasks(), Ht(e, !0), Ht(e, !1), t.plan();
458
- }, Ht = function(e, n) {
459
- for (var r = e._model, i = e._scheduler, a = n ? e._componentsViews : e._chartsViews, o = n ? e._componentsMap : e._chartsMap, s = e._zr, c = e._api, l = 0; l < a.length; l++) a[l].__alive = !1;
460
- n ? r.eachComponent(function(e, t) {
458
+ }, Ht = function(e, t) {
459
+ for (var r = e._model, i = e._scheduler, a = t ? e._componentsViews : e._chartsViews, o = t ? e._componentsMap : e._chartsMap, s = e._zr, c = e._api, l = 0; l < a.length; l++) a[l].__alive = !1;
460
+ t ? r.eachComponent(function(e, t) {
461
461
  e !== "series" && u(t);
462
462
  }) : r.eachSeries(u);
463
463
  function u(e) {
@@ -465,72 +465,72 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
465
465
  e.__requireNewView = !1;
466
466
  var u = "_ec_" + e.id + "_" + e.type, d = !l && o[u];
467
467
  if (!d) {
468
- var f = Ie(e.type), p = n ? Ue.getClass(f.main, f.sub) : Le.getClass(f.sub);
469
- process.env.NODE_ENV !== "production" && t(p, f.sub + " does not exist."), d = new p(), d.init(r, c), o[u] = d, a.push(d), s.add(d.group);
468
+ var f = y(e.type), p = t ? Je.getClass(f.main, f.sub) : Ue.getClass(f.sub);
469
+ process.env.NODE_ENV !== "production" && n(p, f.sub + " does not exist."), d = new p(), d.init(r, c), o[u] = d, a.push(d), s.add(d.group);
470
470
  }
471
471
  e.__viewId = d.__id = u, d.__alive = !0, d.__model = e, d.group.__ecComponentInfo = {
472
472
  mainType: e.mainType,
473
473
  index: e.componentIndex
474
- }, !n && i.prepareView(d, e, r, c);
474
+ }, !t && i.prepareView(d, e, r, c);
475
475
  }
476
476
  for (var l = 0; l < a.length;) {
477
477
  var d = a[l];
478
- d.__alive ? l++ : (!n && d.renderTask.dispose(), s.remove(d.group), d.dispose(r, c), a.splice(l, 1), o[d.__id] === d && delete o[d.__id], d.__id = d.group.__ecComponentInfo = null);
478
+ d.__alive ? l++ : (!t && d.renderTask.dispose(), s.remove(d.group), d.dispose(r, c), a.splice(l, 1), o[d.__id] === d && delete o[d.__id], d.__id = d.group.__ecComponentInfo = null);
479
479
  }
480
- }, I = function(e, t, n, r, a) {
481
- var s = e._model;
482
- if (s.setUpdatePayload(n), !r) {
483
- o([].concat(e._componentsViews, e._chartsViews), d);
480
+ }, I = function(e, t, n, r, i) {
481
+ var o = e._model;
482
+ if (o.setUpdatePayload(n), !r) {
483
+ s([].concat(e._componentsViews, e._chartsViews), d);
484
484
  return;
485
485
  }
486
- var c = C(n, r, a), l = n.excludeSeriesId, u;
487
- l != null && (u = i(), o(w(l), function(e) {
488
- var t = ee(e, null);
486
+ var c = ae(n, r, i), l = n.excludeSeriesId, u;
487
+ l != null && (u = a(), s(oe(l), function(e) {
488
+ var t = re(e, null);
489
489
  t != null && u.set(t, !0);
490
- })), s && s.eachComponent(c, function(t) {
491
- if (!(u && u.get(t.id) != null)) if (Oe(n)) if (t instanceof He) n.type === "highlight" && !n.notBlur && !t.get(["emphasis", "disabled"]) && ye(t, n, e._api);
490
+ })), o && o.eachComponent(c, function(t) {
491
+ if (!(u && u.get(t.id) != null)) if (De(n)) if (t instanceof He) n.type === "highlight" && !n.notBlur && !t.get(["emphasis", "disabled"]) && ve(t, n, e._api);
492
492
  else {
493
- var r = Ce(t.mainType, t.componentIndex, n.name, e._api), i = r.focusSelf, a = r.dispatchers;
494
- n.type === "highlight" && i && !n.notBlur && ve(t.mainType, t.componentIndex, e._api), a && o(a, function(e) {
495
- n.type === "highlight" ? xe(e) : je(e);
493
+ var r = Se(t.mainType, t.componentIndex, n.name, e._api), i = r.focusSelf, a = r.dispatchers;
494
+ n.type === "highlight" && i && !n.notBlur && _e(t.mainType, t.componentIndex, e._api), a && s(a, function(e) {
495
+ n.type === "highlight" ? be(e) : Ae(e);
496
496
  });
497
497
  }
498
- else ke(n) && t instanceof He && (Pe(t, n, e._api), Fe(t), G(e));
499
- }, e), s && s.eachComponent(c, function(t) {
498
+ else Oe(n) && t instanceof He && (Ne(t, n, e._api), Pe(t), G(e));
499
+ }, e), o && o.eachComponent(c, function(t) {
500
500
  u && u.get(t.id) != null || d(e[r === "series" ? "_chartsMap" : "_componentsMap"][t.__viewId]);
501
501
  }, e);
502
502
  function d(r) {
503
- r && r.__alive && r[t] && r[t](r.__model, s, e._api, n);
503
+ r && r.__alive && r[t] && r[t](r.__model, o, e._api, n);
504
504
  }
505
505
  }, L = {
506
506
  prepareAndUpdate: function(e) {
507
507
  F(this), L.update.call(this, e, e && { optionChanged: e.newOption != null });
508
508
  },
509
509
  update: function(e, t) {
510
- var r = this._model, i = this._api, a = this._zr, o = this._coordSysMgr, s = this._scheduler;
511
- if (r) {
512
- Ge(r), r.setUpdatePayload(e), s.restoreData(r, e), s.performSeriesTasks(r), o.create(r, i), A.trigger("coordsys:aftercreate", r, i), s.performDataProcessorTasks(r, e), z(this, r), o.update(r, i), n(r), s.performVisualTasks(r, e);
513
- var c = r.get("backgroundColor") || "transparent";
510
+ var n = this._model, i = this._api, a = this._zr, o = this._coordSysMgr, s = this._scheduler;
511
+ if (n) {
512
+ We(n), n.setUpdatePayload(e), s.restoreData(n, e), s.performSeriesTasks(n), o.create(n, i), O.trigger("coordsys:aftercreate", n, i), s.performDataProcessorTasks(n, e), z(this, n), o.update(n, i), r(n), s.performVisualTasks(n, e);
513
+ var c = n.get("backgroundColor") || "transparent";
514
514
  a.setBackgroundColor(c);
515
- var l = r.get("darkMode");
516
- l != null && l !== "auto" && a.setDarkMode(l), U(this, r, i, e, t), A.trigger("afterupdate", r, i);
515
+ var l = n.get("darkMode");
516
+ l != null && l !== "auto" && a.setDarkMode(l), U(this, n, i, e, t), O.trigger("afterupdate", n, i);
517
517
  }
518
518
  },
519
519
  updateTransform: function(e) {
520
520
  var t = this, n = t._model, r = t._api;
521
521
  if (n) {
522
522
  n.setUpdatePayload(e);
523
- var a = [];
524
- n.eachComponent(function(i, o) {
525
- if (i !== "series") {
523
+ var i = [];
524
+ n.eachComponent(function(a, o) {
525
+ if (a !== "series") {
526
526
  var s = t.getViewOfComponentModel(o);
527
527
  if (s && s.__alive) if (s.updateTransform) {
528
528
  var c = s.updateTransform(o, n, r, e);
529
- c && c.update && a.push(s);
530
- } else a.push(s);
529
+ c && c.update && i.push(s);
530
+ } else i.push(s);
531
531
  }
532
532
  });
533
- var o = i();
533
+ var o = a();
534
534
  n.eachSeries(function(i) {
535
535
  var a = t._chartsMap[i.__viewId], s = i.pipelineContext;
536
536
  if (a.updateTransform && !s.progressiveRender) {
@@ -540,80 +540,80 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
540
540
  }), t._scheduler.performVisualTasks(n, e, {
541
541
  setDirty: !0,
542
542
  dirtyMap: o
543
- }), W(t, n, r, e, {}, o), A.trigger("afterupdate", n, r);
543
+ }), W(t, n, r, e, {}, o), O.trigger("afterupdate", n, r);
544
544
  }
545
545
  },
546
546
  updateView: function(e) {
547
547
  var t = this._model;
548
- t && (t.setUpdatePayload(e), Le.markUpdateMethod(e, "updateView"), n(t), this._scheduler.performVisualTasks(t, e, { setDirty: !0 }), U(this, t, this._api, e, {}), A.trigger("afterupdate", t, this._api));
548
+ t && (t.setUpdatePayload(e), Ue.markUpdateMethod(e, "updateView"), r(t), this._scheduler.performVisualTasks(t, e, { setDirty: !0 }), U(this, t, this._api, e, {}), O.trigger("afterupdate", t, this._api));
549
549
  },
550
550
  updateVisual: function(e) {
551
- var t = this, r = this._model;
552
- r && (r.setUpdatePayload(e), r.eachSeries(function(e) {
551
+ var t = this, n = this._model;
552
+ n && (n.setUpdatePayload(e), n.eachSeries(function(e) {
553
553
  e.getData().clearAllVisual();
554
- }), Le.markUpdateMethod(e, "updateVisual"), n(r), this._scheduler.performVisualTasks(r, e, {
554
+ }), Ue.markUpdateMethod(e, "updateVisual"), r(n), this._scheduler.performVisualTasks(n, e, {
555
555
  visualType: "visual",
556
556
  setDirty: !0
557
- }), r.eachComponent(function(n, i) {
558
- if (n !== "series") {
557
+ }), n.eachComponent(function(r, i) {
558
+ if (r !== "series") {
559
559
  var a = t.getViewOfComponentModel(i);
560
- a && a.__alive && a.updateVisual(i, r, t._api, e);
560
+ a && a.__alive && a.updateVisual(i, n, t._api, e);
561
561
  }
562
- }), r.eachSeries(function(n) {
563
- t._chartsMap[n.__viewId].updateVisual(n, r, t._api, e);
564
- }), A.trigger("afterupdate", r, this._api));
562
+ }), n.eachSeries(function(r) {
563
+ t._chartsMap[r.__viewId].updateVisual(r, n, t._api, e);
564
+ }), O.trigger("afterupdate", n, this._api));
565
565
  },
566
566
  updateLayout: function(e) {
567
567
  L.update.call(this, e);
568
568
  }
569
569
  };
570
- function e(e, t, n, r, i) {
570
+ function t(e, t, n, r, i) {
571
571
  if (e._disposed) {
572
572
  q(e.id);
573
573
  return;
574
574
  }
575
- for (var a = e._model, o = e._coordSysMgr.getCoordinateSystems(), s, c = T(a, n), l = 0; l < o.length; l++) {
575
+ for (var a = e._model, o = e._coordSysMgr.getCoordinateSystems(), s, c = se(a, n), l = 0; l < o.length; l++) {
576
576
  var u = o[l];
577
577
  if (u[t] && (s = u[t](a, c, r, i)) != null) return s;
578
578
  }
579
- process.env.NODE_ENV !== "production" && b("No coordinate system that supports " + t + " found by the given finder.");
579
+ process.env.NODE_ENV !== "production" && w("No coordinate system that supports " + t + " found by the given finder.");
580
580
  }
581
- R = e, z = function(e, t) {
581
+ R = t, z = function(e, t) {
582
582
  var n = e._chartsMap, r = e._scheduler;
583
583
  t.eachSeries(function(e) {
584
584
  r.updateStreamModes(e, n[e.__viewId]);
585
585
  });
586
- }, B = function(e, n) {
587
- var r = this, i = this.getModel(), c = e.type, l = e.escapeConnect, u = J[c], f = (u.update || "update").split(":"), m = f.pop(), h = f[0] != null && Ie(f[0]);
588
- this[M] = !0, K(this);
586
+ }, B = function(e, t) {
587
+ var r = this, i = this.getModel(), a = e.type, l = e.escapeConnect, u = J[a], d = (u.update || "update").split(":"), p = d.pop(), h = d[0] != null && y(d[0]);
588
+ this[j] = !0, K(this);
589
589
  var g = [e], _ = !1;
590
- e.batch && (_ = !0, g = p(e.batch, function(t) {
591
- return t = a(s({}, t), e), t.batch = null, t;
590
+ e.batch && (_ = !0, g = m(e.batch, function(t) {
591
+ return t = o(c({}, t), e), t.batch = null, t;
592
592
  }));
593
- var v = [], y, b = [], x = u.nonRefinedEventType, ee = ke(e), S = Oe(e);
594
- if (S && _e(this._api), o(g, function(t) {
593
+ var v = [], b, ee = [], te = u.nonRefinedEventType, ne = Oe(e), x = De(e);
594
+ if (x && ge(this._api), s(g, function(t) {
595
595
  var n = u.action(t, i, r._api);
596
- if (u.refineEvent ? b.push(n) : y = n, y ||= s({}, t), y.type = x, v.push(y), S) {
597
- var a = te(e), o = a.queryOptionMap, c = a.mainTypeSpecified ? o.keys()[0] : "series";
598
- I(r, m, t, c), G(r);
599
- } else ee ? (I(r, m, t, "series"), G(r)) : h && I(r, m, t, h.main, h.sub);
600
- }), m !== "none" && !S && !ee && !h) try {
601
- this[P] ? (F(this), L.update.call(this, e), this[P] = null) : L[m].call(this, e);
596
+ if (u.refineEvent ? ee.push(n) : b = n, b ||= c({}, t), b.type = te, v.push(b), x) {
597
+ var a = ce(e), o = a.queryOptionMap, s = a.mainTypeSpecified ? o.keys()[0] : "series";
598
+ I(r, p, t, s), G(r);
599
+ } else ne ? (I(r, p, t, "series"), G(r)) : h && I(r, p, t, h.main, h.sub);
600
+ }), p !== "none" && !x && !ne && !h) try {
601
+ this[N] ? (F(this), L.update.call(this, e), this[N] = null) : L[p].call(this, e);
602
602
  } catch (e) {
603
- throw this[M] = !1, e;
603
+ throw this[j] = !1, e;
604
604
  }
605
- if (y = _ ? {
606
- type: x,
605
+ if (b = _ ? {
606
+ type: te,
607
607
  escapeConnect: l,
608
608
  batch: v
609
- } : v[0], this[M] = !1, !n) {
610
- var C = void 0;
609
+ } : v[0], this[j] = !1, !t) {
610
+ var S = void 0;
611
611
  if (u.refineEvent) {
612
- var w = u.refineEvent(b, e, i, this._api).eventContent;
613
- t(d(w)), C = a({ type: u.refinedEventType }, w), C.fromAction = e.type, C.fromActionPayload = e, C.escapeConnect = !0;
612
+ var C = u.refineEvent(ee, e, i, this._api).eventContent;
613
+ n(f(C)), S = o({ type: u.refinedEventType }, C), S.fromAction = e.type, S.fromActionPayload = e, S.escapeConnect = !0;
614
614
  }
615
- var T = this._messageCenter;
616
- T.trigger(y.type, y), C && T.trigger(C.type, C);
615
+ var w = this._messageCenter;
616
+ w.trigger(b.type, b), S && w.trigger(S.type, S);
617
617
  }
618
618
  }, V = function(e) {
619
619
  for (var t = this._pendingActions; t.length;) {
@@ -624,21 +624,21 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
624
624
  !e && this.trigger("updated");
625
625
  }, Ut = function(e, t) {
626
626
  e.on("rendered", function(n) {
627
- t.trigger("rendered", n), e.animation.isFinished() && !t[P] && !t._scheduler.unfinished && !t._pendingActions.length ? t.trigger("finished") : e.refresh();
627
+ t.trigger("rendered", n), e.animation.isFinished() && !t[N] && !t._scheduler.unfinished && !t._pendingActions.length ? t.trigger("finished") : e.refresh();
628
628
  });
629
629
  }, Wt = function(e, t) {
630
630
  e.on("mouseover", function(e) {
631
- var n = e.target, r = k(n, De);
632
- r && (Ee(r, e, t._api), G(t));
633
- }).on("mouseout", function(e) {
634
- var n = e.target, r = k(n, De);
631
+ var n = e.target, r = D(n, Ee);
635
632
  r && (Te(r, e, t._api), G(t));
633
+ }).on("mouseout", function(e) {
634
+ var n = e.target, r = D(n, Ee);
635
+ r && (we(r, e, t._api), G(t));
636
636
  }).on("click", function(e) {
637
- var n = e.target, r = k(n, function(e) {
638
- return E(e).dataIndex != null;
637
+ var n = e.target, r = D(n, function(e) {
638
+ return T(e).dataIndex != null;
639
639
  }, !0);
640
640
  if (r) {
641
- var i = r.selected ? "unselect" : "select", a = E(r);
641
+ var i = r.selected ? "unselect" : "select", a = T(r);
642
642
  t._api.dispatchAction({
643
643
  type: i,
644
644
  dataType: a.dataType,
@@ -649,12 +649,12 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
649
649
  }
650
650
  });
651
651
  };
652
- function n(e) {
652
+ function r(e) {
653
653
  e.clearColorPalette(), e.eachSeries(function(e) {
654
654
  e.clearColorPalette();
655
655
  });
656
656
  }
657
- function r(e) {
657
+ function i(e) {
658
658
  var t = [], n = [], r = !1;
659
659
  if (e.eachComponent(function(e, i) {
660
660
  var a = i.get("zlevel") || 0, o = i.get("z") || 0, s = i.getZLevelKey();
@@ -666,63 +666,63 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
666
666
  key: s
667
667
  });
668
668
  }), r) {
669
- var i = t.concat(n), a, s;
670
- qe(i, function(e, t) {
669
+ var i = t.concat(n), a, o;
670
+ Ye(i, function(e, t) {
671
671
  return e.zlevel === t.zlevel ? e.z - t.z : e.zlevel - t.zlevel;
672
- }), o(i, function(t) {
672
+ }), s(i, function(t) {
673
673
  var n = e.getComponent(t.type, t.idx), r = t.zlevel, i = t.key;
674
- a != null && (r = Math.max(a, r)), i ? (r === a && i !== s && r++, s = i) : s &&= (r === a && r++, ""), a = r, n.setZLevel(r);
674
+ a != null && (r = Math.max(a, r)), i ? (r === a && i !== o && r++, o = i) : o &&= (r === a && r++, ""), a = r, n.setZLevel(r);
675
675
  });
676
676
  }
677
677
  }
678
- U = function(e, t, n, i, a) {
679
- r(t), Gt(e, t, n, i, a), o(e._chartsViews, function(e) {
678
+ U = function(e, t, n, r, a) {
679
+ i(t), Gt(e, t, n, r, a), s(e._chartsViews, function(e) {
680
680
  e.__alive = !1;
681
- }), W(e, t, n, i, a), o(e._chartsViews, function(e) {
681
+ }), W(e, t, n, r, a), s(e._chartsViews, function(e) {
682
682
  e.__alive || e.remove(t, n);
683
683
  });
684
684
  }, Gt = function(e, t, n, r, i, a) {
685
- o(a || e._componentsViews, function(e) {
685
+ s(a || e._componentsViews, function(e) {
686
686
  var i = e.__model;
687
- m(i, e), e.render(i, t, n, r), f(i, e), g(i, e);
687
+ h(i, e), e.render(i, t, n, r), p(i, e), _(i, e);
688
688
  });
689
689
  }, W = function(e, t, n, r, i, a) {
690
690
  var o = e._scheduler;
691
- i = s(i || {}, { updatedSeries: t.getSeries() }), A.trigger("series:beforeupdate", t, n, i);
692
- var c = !1;
691
+ i = c(i || {}, { updatedSeries: t.getSeries() }), O.trigger("series:beforeupdate", t, n, i);
692
+ var s = !1;
693
693
  t.eachSeries(function(t) {
694
694
  var n = e._chartsMap[t.__viewId];
695
695
  n.__alive = !0;
696
696
  var i = n.renderTask;
697
- o.updatePayload(i, r), m(t, n), a && a.get(t.uid) && i.dirty(), i.perform(o.getPerformArgs(i)) && (c = !0), n.group.silent = !!t.get("silent"), u(t, n), Fe(t);
698
- }), o.unfinished = c || o.unfinished, A.trigger("series:layoutlabels", t, n, i), A.trigger("series:transition", t, n, i), t.eachSeries(function(t) {
697
+ o.updatePayload(i, r), h(t, n), a && a.get(t.uid) && i.dirty(), i.perform(o.getPerformArgs(i)) && (s = !0), n.group.silent = !!t.get("silent"), d(t, n), Pe(t);
698
+ }), o.unfinished = s || o.unfinished, O.trigger("series:layoutlabels", t, n, i), O.trigger("series:transition", t, n, i), t.eachSeries(function(t) {
699
699
  var n = e._chartsMap[t.__viewId];
700
- f(t, n), g(t, n);
701
- }), l(e, t), A.trigger("series:afterupdate", t, n, i);
700
+ p(t, n), _(t, n);
701
+ }), u(e, t), O.trigger("series:afterupdate", t, n, i);
702
702
  }, G = function(e) {
703
- e[jt] = !0, e.getZr().wakeUp();
703
+ e[Mt] = !0, e.getZr().wakeUp();
704
704
  }, K = function(e) {
705
- e[N] = (e[N] + 1) % 1e6;
705
+ e[M] = (e[M] + 1) % 1e6;
706
706
  }, Jt = function(e) {
707
- e[jt] && (e.getZr().storage.traverse(function(e) {
708
- D(e) || c(e);
709
- }), e[jt] = !1);
707
+ e[Mt] && (e.getZr().storage.traverse(function(e) {
708
+ Fe(e) || l(e);
709
+ }), e[Mt] = !1);
710
710
  };
711
- function c(e) {
711
+ function l(e) {
712
712
  for (var t = [], n = e.currentStates, r = 0; r < n.length; r++) {
713
713
  var i = n[r];
714
714
  i === "emphasis" || i === "blur" || i === "select" || t.push(i);
715
715
  }
716
716
  e.selected && e.states.select && t.push("select"), e.hoverState === 2 && e.states.emphasis ? t.push("emphasis") : e.hoverState === 1 && e.states.blur && t.push("blur"), e.useStates(t);
717
717
  }
718
- function l(e, t) {
718
+ function u(e, t) {
719
719
  var n = e._zr;
720
720
  if (n.painter.type === "canvas") {
721
721
  var r = n.storage, i = 0;
722
722
  r.traverse(function(e) {
723
723
  e.isGroup || i++;
724
724
  });
725
- var a = i > h(t.get("hoverLayerThreshold"), Xe.hoverLayerThreshold) && !x.node && !x.worker;
725
+ var a = i > g(t.get("hoverLayerThreshold"), Qe.hoverLayerThreshold) && !v.node && !v.worker;
726
726
  (e._usingTHL || a) && (t.eachSeries(function(t) {
727
727
  if (!t.preventUsingHoverLayer) {
728
728
  var n = e._chartsMap[t.__viewId];
@@ -734,29 +734,29 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
734
734
  }), e._usingTHL = a);
735
735
  }
736
736
  }
737
- function u(e, t) {
737
+ function d(e, t) {
738
738
  var n = e.get("blendMode") || null;
739
739
  t.eachRendered(function(e) {
740
740
  e.isGroup || (e.style.blend = n);
741
741
  });
742
742
  }
743
- function f(e, t) {
743
+ function p(e, t) {
744
744
  if (!e.preventAutoZ) {
745
- var n = le(e);
745
+ var n = Ie(e);
746
746
  t.eachRendered(function(e) {
747
- return ue(e, n.z, n.zlevel), !0;
747
+ return Le(e, n.z, n.zlevel), !0;
748
748
  });
749
749
  }
750
750
  }
751
- function m(e, t) {
751
+ function h(e, t) {
752
752
  t.eachRendered(function(e) {
753
- if (!D(e)) {
753
+ if (!Fe(e)) {
754
754
  var t = e.getTextContent(), n = e.getTextGuideLine();
755
755
  e.stateTransition &&= null, t && t.stateTransition && (t.stateTransition = null), n && n.stateTransition && (n.stateTransition = null), e.hasState() ? (e.prevStates = e.currentStates, e.clearStates()) : e.prevStates &&= null;
756
756
  }
757
757
  });
758
758
  }
759
- function g(e, t) {
759
+ function _(e, t) {
760
760
  var n = e.getModel("stateAnimation"), r = e.isAnimationEnabled(), i = n.get("duration"), a = i > 0 ? {
761
761
  duration: i,
762
762
  delay: n.get("delay"),
@@ -764,8 +764,8 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
764
764
  } : null;
765
765
  t.eachRendered(function(e) {
766
766
  if (e.states && e.states.emphasis) {
767
- if (D(e)) return;
768
- if (e instanceof oe && Ne(e), e.__dirty) {
767
+ if (Fe(e)) return;
768
+ if (e instanceof ee && Me(e), e.__dirty) {
769
769
  var t = e.prevStates;
770
770
  t && e.useStates(t);
771
771
  }
@@ -774,74 +774,74 @@ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = functio
774
774
  var n = e.getTextContent(), i = e.getTextGuideLine();
775
775
  n && (n.stateTransition = a), i && (i.stateTransition = a);
776
776
  }
777
- e.__dirty && c(e);
777
+ e.__dirty && l(e);
778
778
  }
779
779
  });
780
780
  }
781
- Kt = function(e) {
782
- return new (function(t) {
783
- ie(n, t);
784
- function n() {
785
- return t !== null && t.apply(this, arguments) || this;
781
+ Kt = function(t) {
782
+ return new (function(n) {
783
+ e(r, n);
784
+ function r() {
785
+ return n !== null && n.apply(this, arguments) || this;
786
786
  }
787
- return n.prototype.getCoordinateSystems = function() {
788
- return e._coordSysMgr.getCoordinateSystems();
789
- }, n.prototype.getComponentByElement = function(t) {
790
- for (; t;) {
791
- var n = t.__ecComponentInfo;
792
- if (n != null) return e._model.getComponent(n.mainType, n.index);
793
- t = t.parent;
787
+ return r.prototype.getCoordinateSystems = function() {
788
+ return t._coordSysMgr.getCoordinateSystems();
789
+ }, r.prototype.getComponentByElement = function(e) {
790
+ for (; e;) {
791
+ var n = e.__ecComponentInfo;
792
+ if (n != null) return t._model.getComponent(n.mainType, n.index);
793
+ e = e.parent;
794
794
  }
795
- }, n.prototype.enterEmphasis = function(t, n) {
796
- xe(t, n), G(e);
797
- }, n.prototype.leaveEmphasis = function(t, n) {
798
- je(t, n), G(e);
799
- }, n.prototype.enterBlur = function(t) {
800
- be(t), G(e);
801
- }, n.prototype.leaveBlur = function(t) {
802
- Ae(t), G(e);
803
- }, n.prototype.enterSelect = function(t) {
804
- Se(t), G(e);
805
- }, n.prototype.leaveSelect = function(t) {
806
- Me(t), G(e);
807
- }, n.prototype.getModel = function() {
808
- return e.getModel();
809
- }, n.prototype.getViewOfComponentModel = function(t) {
810
- return e.getViewOfComponentModel(t);
811
- }, n.prototype.getViewOfSeriesModel = function(t) {
812
- return e.getViewOfSeriesModel(t);
813
- }, n.prototype.getECUpdateCycleVersion = function() {
814
- return e[N];
815
- }, n.prototype.usingTHL = function() {
816
- return e._usingTHL;
817
- }, n;
818
- }(de))(e);
795
+ }, r.prototype.enterEmphasis = function(e, n) {
796
+ be(e, n), G(t);
797
+ }, r.prototype.leaveEmphasis = function(e, n) {
798
+ Ae(e, n), G(t);
799
+ }, r.prototype.enterBlur = function(e) {
800
+ ye(e), G(t);
801
+ }, r.prototype.leaveBlur = function(e) {
802
+ ke(e), G(t);
803
+ }, r.prototype.enterSelect = function(e) {
804
+ xe(e), G(t);
805
+ }, r.prototype.leaveSelect = function(e) {
806
+ je(e), G(t);
807
+ }, r.prototype.getModel = function() {
808
+ return t.getModel();
809
+ }, r.prototype.getViewOfComponentModel = function(e) {
810
+ return t.getViewOfComponentModel(e);
811
+ }, r.prototype.getViewOfSeriesModel = function(e) {
812
+ return t.getViewOfSeriesModel(e);
813
+ }, r.prototype.getECUpdateCycleVersion = function() {
814
+ return t[M];
815
+ }, r.prototype.usingTHL = function() {
816
+ return t._usingTHL;
817
+ }, r;
818
+ }(ue))(t);
819
819
  }, qt = function(e) {
820
820
  function t(e, t) {
821
821
  for (var n = 0; n < e.length; n++) {
822
822
  var r = e[n];
823
- r[Nt] = t;
823
+ r[P] = t;
824
824
  }
825
825
  }
826
- o(Y, function(n, r) {
826
+ s(Y, function(n, r) {
827
827
  e._messageCenter.on(r, function(n) {
828
- if (rn[e.group] && e[Nt] !== Pt) {
828
+ if (rn[e.group] && e[P] !== Pt) {
829
829
  if (n && n.escapeConnect) return;
830
830
  var r = e.makeActionFromEvent(n), i = [];
831
- o(Z, function(t) {
831
+ s(Z, function(t) {
832
832
  t !== e && t.group === e.group && i.push(t);
833
- }), t(i, Pt), o(i, function(e) {
834
- e[Nt] !== Ft && e.dispatchAction(r);
833
+ }), t(i, Pt), s(i, function(e) {
834
+ e[P] !== Ft && e.dispatchAction(r);
835
835
  }), t(i, It);
836
836
  }
837
837
  });
838
838
  });
839
839
  };
840
- }(), l;
841
- }(ae), Xt = Yt.prototype;
840
+ }(), u;
841
+ }(b), Xt = Yt.prototype;
842
842
  Xt.on = Lt("on"), Xt.off = Lt("off"), Xt.one = function(e, t, n) {
843
843
  var r = this;
844
- _("ECharts#one is deprecated.");
844
+ x("ECharts#one is deprecated.");
845
845
  function i() {
846
846
  var n = [...arguments];
847
847
  t && t.apply && t.apply(this, n), r.off(e, i);
@@ -860,7 +860,7 @@ var Zt = [
860
860
  "contextmenu"
861
861
  ];
862
862
  function q(e) {
863
- process.env.NODE_ENV !== "production" && b("Instance " + e + " has been disposed");
863
+ process.env.NODE_ENV !== "production" && w("Instance " + e + " has been disposed");
864
864
  }
865
865
  var J = {}, Y = {}, Qt = {}, $t = [], en = [], X = [], tn = {}, nn = {}, Z = {}, rn = {}, an = /* @__PURE__ */ new Date() - 0;
866
866
  /* @__PURE__ */ new Date() - 0;
@@ -870,23 +870,23 @@ function sn(e, t, n) {
870
870
  if (r) {
871
871
  if (process.env.NODE_ENV !== "production" && !e) throw Error("Initialize failed: invalid dom.");
872
872
  var i = cn(e);
873
- if (i) return process.env.NODE_ENV !== "production" && b("There is a chart instance already initialized on the dom."), i;
874
- process.env.NODE_ENV !== "production" && l(e) && e.nodeName.toUpperCase() !== "CANVAS" && (!e.clientWidth && (!n || n.width == null) || !e.clientHeight && (!n || n.height == null)) && b("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");
873
+ if (i) return process.env.NODE_ENV !== "production" && w("There is a chart instance already initialized on the dom."), i;
874
+ process.env.NODE_ENV !== "production" && u(e) && e.nodeName.toUpperCase() !== "CANVAS" && (!e.clientWidth && (!n || n.width == null) || !e.clientHeight && (!n || n.height == null)) && w("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");
875
875
  }
876
876
  var a = new Yt(e, t, n);
877
- return a.id = "ec_" + an++, Z[a.id] = a, r && ne(e, on, a.id), qt(a), A.trigger("afterinit", a), a;
877
+ return a.id = "ec_" + an++, Z[a.id] = a, r && le(e, on, a.id), qt(a), O.trigger("afterinit", a), a;
878
878
  }
879
879
  function cn(e) {
880
- return Z[S(e, on)];
880
+ return Z[ie(e, on)];
881
881
  }
882
882
  function ln(e, t) {
883
883
  tn[e] = t;
884
884
  }
885
885
  function un(e) {
886
- c(en, e) < 0 && en.push(e);
886
+ l(en, e) < 0 && en.push(e);
887
887
  }
888
888
  function dn(e, t) {
889
- vn($t, e, t, yt);
889
+ vn($t, e, t, xt);
890
890
  }
891
891
  function fn(e) {
892
892
  mn("afterinit", e);
@@ -895,92 +895,92 @@ function pn(e) {
895
895
  mn("afterupdate", e);
896
896
  }
897
897
  function mn(e, t) {
898
- A.on(e, t);
898
+ O.on(e, t);
899
899
  }
900
- function Q(e, n, r) {
900
+ function Q(e, t, r) {
901
901
  var i, a, o, s, c;
902
- u(n) && (r = n, n = ""), d(e) ? (i = e.type, a = e.event, s = e.update, c = e.publishNonRefinedEvent, r ||= e.action, o = e.refineEvent) : (i = e, a = n);
902
+ d(t) && (r = t, t = ""), f(e) ? (i = e.type, a = e.event, s = e.update, c = e.publishNonRefinedEvent, r ||= e.action, o = e.refineEvent) : (i = e, a = t);
903
903
  function l(e) {
904
904
  return e.toLowerCase();
905
905
  }
906
906
  a = l(a || i);
907
- var f = o ? l(i) : a;
908
- J[i] || (t(Mt.test(i) && Mt.test(a)), o && t(a !== i), J[i] = {
907
+ var u = o ? l(i) : a;
908
+ J[i] || (n(Nt.test(i) && Nt.test(a)), o && n(a !== i), J[i] = {
909
909
  actionType: i,
910
910
  refinedEventType: a,
911
- nonRefinedEventType: f,
911
+ nonRefinedEventType: u,
912
912
  update: s,
913
913
  action: r,
914
914
  refineEvent: o
915
- }, Qt[a] = 1, o && c && (Qt[f] = 1), process.env.NODE_ENV !== "production" && Y[f] && y(f + " must not be shared; use \"refineEvent\" if you intend to share an event name."), Y[f] = i);
915
+ }, Qt[a] = 1, o && c && (Qt[u] = 1), process.env.NODE_ENV !== "production" && Y[u] && C(u + " must not be shared; use \"refineEvent\" if you intend to share an event name."), Y[u] = i);
916
916
  }
917
917
  function hn(e, t) {
918
- Be.register(e, t);
918
+ Re.register(e, t);
919
919
  }
920
920
  function gn(e, t) {
921
- vn(X, e, t, xt, "layout", !0);
921
+ vn(X, e, t, Ct, "layout", !0);
922
922
  }
923
923
  function $(e, t) {
924
- vn(X, e, t, wt, "visual", !0);
924
+ vn(X, e, t, Tt, "visual", !0);
925
925
  }
926
926
  var _n = [];
927
- function vn(e, n, r, i, a, s) {
928
- if ((u(n) || d(n)) && (r = n, n = i), process.env.NODE_ENV !== "production") {
929
- if (isNaN(n) || n == null) throw Error("Illegal priority");
930
- o(e, function(e) {
931
- t(e.__raw !== r);
927
+ function vn(e, t, r, i, a, o) {
928
+ if ((d(t) || f(t)) && (r = t, t = i), process.env.NODE_ENV !== "production") {
929
+ if (isNaN(t) || t == null) throw Error("Illegal priority");
930
+ s(e, function(e) {
931
+ n(e.__raw !== r);
932
932
  });
933
933
  }
934
- if (!(c(_n, r) >= 0)) {
934
+ if (!(l(_n, r) >= 0)) {
935
935
  _n.push(r);
936
- var l = at.wrapStageHandler(r, a);
937
- l.__prio = n, l.__raw = r, e.push(l), process.env.NODE_ENV !== "production" && s && t(!l.dirtyOnOverallProgress, "dirtyOnOverallProgress is not allowed in " + a + " stage; otherwise progressive rendering is disabled on all series.");
936
+ var c = st.wrapStageHandler(r, a);
937
+ c.__prio = t, c.__raw = r, e.push(c), process.env.NODE_ENV !== "production" && o && n(!c.dirtyOnOverallProgress, "dirtyOnOverallProgress is not allowed in " + a + " stage; otherwise progressive rendering is disabled on all series.");
938
938
  }
939
939
  }
940
940
  function yn(e, t) {
941
941
  nn[e] = t;
942
942
  }
943
943
  function bn(e, t, n) {
944
- var r = ft("registerMap");
944
+ var r = mt("registerMap");
945
945
  r && r(e, t, n);
946
946
  }
947
947
  var xn = Ve;
948
- $(Ct, rt), $(j, nt), $(j, tt), $(Ct, lt), $(j, ct), $(kt, pt), un($e), dn(gt, et), yn("default", it), Q({
948
+ $(k, at), $(A, it), $(A, rt), $(k, dt), $(A, ut), $(At, ht), un(tt), dn(vt, nt), yn("default", ot), Q({
949
+ type: de,
950
+ event: de,
951
+ update: de
952
+ }, h), Q({
953
+ type: E,
954
+ event: E,
955
+ update: E
956
+ }, h), Q({
949
957
  type: fe,
950
- event: fe,
951
- update: fe
952
- }, m), Q({
953
- type: O,
954
- event: O,
955
- update: O
956
- }, m), Q({
957
- type: pe,
958
- event: me,
959
- update: pe,
960
- action: m,
958
+ event: pe,
959
+ update: fe,
960
+ action: h,
961
961
  refineEvent: Sn,
962
962
  publishNonRefinedEvent: !0
963
963
  }), Q({
964
- type: ge,
965
- event: me,
966
- update: ge,
967
- action: m,
964
+ type: he,
965
+ event: pe,
966
+ update: he,
967
+ action: h,
968
968
  refineEvent: Sn,
969
969
  publishNonRefinedEvent: !0
970
970
  }), Q({
971
- type: he,
972
- event: me,
973
- update: he,
974
- action: m,
971
+ type: me,
972
+ event: pe,
973
+ update: me,
974
+ action: h,
975
975
  refineEvent: Sn,
976
976
  publishNonRefinedEvent: !0
977
977
  });
978
978
  function Sn(e, t, n, r) {
979
979
  return { eventContent: {
980
- selected: we(n),
980
+ selected: Ce(n),
981
981
  isFromClick: t.isFromClick || !1
982
982
  } };
983
983
  }
984
- ln("default", {}), ln("dark", ot);
984
+ ln("default", {}), ln("dark", ct);
985
985
  //#endregion
986
- export { At as PRIORITY, sn as init, Q as registerAction, hn as registerCoordinateSystem, gn as registerLayout, yn as registerLoading, bn as registerMap, fn as registerPostInit, pn as registerPostUpdate, un as registerPreprocessor, dn as registerProcessor, xn as registerTransform, mn as registerUpdateLifecycle, $ as registerVisual };
986
+ export { jt as PRIORITY, sn as init, Q as registerAction, hn as registerCoordinateSystem, gn as registerLayout, yn as registerLoading, bn as registerMap, fn as registerPostInit, pn as registerPostUpdate, un as registerPreprocessor, dn as registerProcessor, xn as registerTransform, mn as registerUpdateLifecycle, $ as registerVisual };