@antv/g2 4.1.25 → 4.1.29

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 (543) hide show
  1. package/CHANGELOG.md +1116 -0
  2. package/{README.zh-CN.md → README.en-US.md} +39 -38
  3. package/README.md +39 -38
  4. package/dist/g2.min.js +31 -3
  5. package/dist/g2.min.js.map +1 -1
  6. package/esm/animate/index.js +1 -1
  7. package/esm/animate/index.js.map +1 -1
  8. package/esm/animate/interface.js +1 -0
  9. package/esm/chart/chart.js +1 -3
  10. package/esm/chart/chart.js.map +1 -1
  11. package/esm/chart/controller/annotation.js +14 -44
  12. package/esm/chart/controller/annotation.js.map +1 -1
  13. package/esm/chart/controller/coordinate.js +1 -2
  14. package/esm/chart/controller/coordinate.js.map +1 -1
  15. package/esm/chart/controller/scrollbar.js +3 -7
  16. package/esm/chart/controller/scrollbar.js.map +1 -1
  17. package/esm/chart/controller/slider.js +1 -2
  18. package/esm/chart/controller/slider.js.map +1 -1
  19. package/esm/chart/controller/tooltip.js +12 -7
  20. package/esm/chart/controller/tooltip.js.map +1 -1
  21. package/esm/chart/layout/auto.js +2 -2
  22. package/esm/chart/layout/auto.js.map +1 -1
  23. package/esm/chart/layout/constraint/bounds.d.ts +32 -0
  24. package/esm/chart/layout/constraint/bounds.js +30 -0
  25. package/esm/chart/layout/constraint/bounds.js.map +1 -0
  26. package/esm/chart/layout/constraint/constraint.d.ts +31 -0
  27. package/esm/chart/layout/constraint/constraint.js +81 -0
  28. package/esm/chart/layout/constraint/constraint.js.map +1 -0
  29. package/esm/chart/layout/constraint/gauss.d.ts +11 -0
  30. package/esm/chart/layout/constraint/gauss.js +63 -0
  31. package/esm/chart/layout/constraint/gauss.js.map +1 -0
  32. package/esm/chart/layout/constraint/index.d.ts +5 -0
  33. package/esm/chart/layout/constraint/index.js +30 -0
  34. package/esm/chart/layout/constraint/index.js.map +1 -0
  35. package/esm/chart/layout/constraint/solver.d.ts +40 -0
  36. package/esm/chart/layout/constraint/solver.js +77 -0
  37. package/esm/chart/layout/constraint/solver.js.map +1 -0
  38. package/esm/chart/layout/constraint/types.d.ts +21 -0
  39. package/esm/chart/layout/constraint/types.js +13 -0
  40. package/esm/chart/layout/constraint/types.js.map +1 -0
  41. package/esm/chart/layout/constraint/variable.d.ts +24 -0
  42. package/esm/chart/layout/constraint/variable.js +28 -0
  43. package/esm/chart/layout/constraint/variable.js.map +1 -0
  44. package/esm/chart/layout/padding-cal.js +2 -2
  45. package/esm/chart/layout/padding-cal.js.map +1 -1
  46. package/esm/chart/view.d.ts +41 -1
  47. package/esm/chart/view.js +65 -9
  48. package/esm/chart/view.js.map +1 -1
  49. package/esm/core.d.ts +1 -1
  50. package/esm/core.js +1 -1
  51. package/esm/core.js.map +1 -1
  52. package/esm/facet/facet.d.ts +5 -0
  53. package/esm/facet/facet.js +47 -12
  54. package/esm/facet/facet.js.map +1 -1
  55. package/esm/facet/tree.js +1 -1
  56. package/esm/facet/tree.js.map +1 -1
  57. package/esm/geometry/base.d.ts +34 -7
  58. package/esm/geometry/base.js +131 -74
  59. package/esm/geometry/base.js.map +1 -1
  60. package/esm/geometry/element/index.js.map +1 -1
  61. package/esm/geometry/heatmap.d.ts +1 -2
  62. package/esm/geometry/heatmap.js +13 -13
  63. package/esm/geometry/heatmap.js.map +1 -1
  64. package/esm/geometry/label/base.js +1 -1
  65. package/esm/geometry/label/base.js.map +1 -1
  66. package/esm/geometry/label/interface.js +1 -0
  67. package/esm/geometry/label/layout/interval/adjust-position.js.map +1 -1
  68. package/esm/geometry/label/layout/interval/hide-overlap.js.map +1 -1
  69. package/esm/geometry/label/layout/path/adjust-position.js.map +1 -1
  70. package/esm/geometry/label/layout/pie/distribute.js +1 -1
  71. package/esm/geometry/label/layout/pie/distribute.js.map +1 -1
  72. package/esm/geometry/label/layout/point/adjust-position.js.map +1 -1
  73. package/esm/geometry/label/pie.js +1 -2
  74. package/esm/geometry/label/pie.js.map +1 -1
  75. package/esm/geometry/path.d.ts +1 -2
  76. package/esm/geometry/path.js +46 -20
  77. package/esm/geometry/path.js.map +1 -1
  78. package/esm/geometry/shape/schema/index.js +1 -1
  79. package/esm/geometry/shape/schema/index.js.map +1 -1
  80. package/esm/geometry/util/diff.d.ts +11 -0
  81. package/esm/geometry/util/diff.js +30 -0
  82. package/esm/geometry/util/diff.js.map +1 -0
  83. package/esm/interface.d.ts +11 -10
  84. package/esm/interface.js +1 -0
  85. package/esm/interface.js.map +1 -1
  86. package/esm/theme/style-sheet/dark.d.ts +2 -2
  87. package/esm/theme/style-sheet/dark.js +2 -2
  88. package/esm/theme/style-sheet/dark.js.map +1 -1
  89. package/esm/theme/style-sheet/light.d.ts +2 -2
  90. package/esm/theme/style-sheet/light.js +2 -2
  91. package/esm/theme/style-sheet/light.js.map +1 -1
  92. package/esm/theme/util/create-by-style-sheet.js +1 -1
  93. package/esm/theme/util/create-by-style-sheet.js.map +1 -1
  94. package/esm/util/annotation.js +2 -0
  95. package/esm/util/annotation.js.map +1 -1
  96. package/esm/util/attr.js +2 -2
  97. package/esm/util/attr.js.map +1 -1
  98. package/esm/util/collision-detect.js +2 -2
  99. package/esm/util/collision-detect.js.map +1 -1
  100. package/esm/util/facet.js +1 -1
  101. package/esm/util/facet.js.map +1 -1
  102. package/esm/util/helper.d.ts +1 -1
  103. package/esm/util/helper.js +3 -3
  104. package/esm/util/helper.js.map +1 -1
  105. package/esm/util/legend.js +2 -1
  106. package/esm/util/legend.js.map +1 -1
  107. package/esm/util/padding.js +3 -3
  108. package/esm/util/padding.js.map +1 -1
  109. package/esm/util/scale.js +3 -4
  110. package/esm/util/scale.js.map +1 -1
  111. package/esm/util/stat.js +2 -2
  112. package/esm/util/stat.js.map +1 -1
  113. package/esm/util/text.js +2 -2
  114. package/esm/util/text.js.map +1 -1
  115. package/esm/util/types.js +1 -0
  116. package/lib/animate/animation/fade.js +3 -3
  117. package/lib/animate/animation/fade.js.map +1 -1
  118. package/lib/animate/animation/grow-in.js +3 -3
  119. package/lib/animate/animation/grow-in.js.map +1 -1
  120. package/lib/animate/animation/sector-path-update.js +11 -11
  121. package/lib/animate/animation/sector-path-update.js.map +1 -1
  122. package/lib/animate/animation/wave-in.js +2 -2
  123. package/lib/animate/animation/wave-in.js.map +1 -1
  124. package/lib/animate/animation/zoom.js +2 -2
  125. package/lib/animate/animation/zoom.js.map +1 -1
  126. package/lib/animate/index.js +10 -10
  127. package/lib/animate/index.js.map +1 -1
  128. package/lib/api.js +1 -1
  129. package/lib/api.js.map +1 -1
  130. package/lib/base.js +2 -2
  131. package/lib/base.js.map +1 -1
  132. package/lib/chart/chart.js +12 -14
  133. package/lib/chart/chart.js.map +1 -1
  134. package/lib/chart/controller/annotation.js +67 -97
  135. package/lib/chart/controller/annotation.js.map +1 -1
  136. package/lib/chart/controller/axis.js +64 -64
  137. package/lib/chart/controller/axis.js.map +1 -1
  138. package/lib/chart/controller/base.js +1 -1
  139. package/lib/chart/controller/base.js.map +1 -1
  140. package/lib/chart/controller/coordinate.js +6 -7
  141. package/lib/chart/controller/coordinate.js.map +1 -1
  142. package/lib/chart/controller/gesture.js +1 -1
  143. package/lib/chart/controller/gesture.js.map +1 -1
  144. package/lib/chart/controller/legend.js +45 -45
  145. package/lib/chart/controller/legend.js.map +1 -1
  146. package/lib/chart/controller/scrollbar.js +26 -30
  147. package/lib/chart/controller/scrollbar.js.map +1 -1
  148. package/lib/chart/controller/slider.js +25 -26
  149. package/lib/chart/controller/slider.js.map +1 -1
  150. package/lib/chart/controller/tooltip.js +45 -40
  151. package/lib/chart/controller/tooltip.js.map +1 -1
  152. package/lib/chart/index.js +7 -3
  153. package/lib/chart/index.js.map +1 -1
  154. package/lib/chart/layout/auto.js +6 -6
  155. package/lib/chart/layout/auto.js.map +1 -1
  156. package/lib/chart/layout/constraint/bounds.d.ts +32 -0
  157. package/lib/chart/layout/constraint/bounds.js +33 -0
  158. package/lib/chart/layout/constraint/bounds.js.map +1 -0
  159. package/lib/chart/layout/constraint/constraint.d.ts +31 -0
  160. package/lib/chart/layout/constraint/constraint.js +84 -0
  161. package/lib/chart/layout/constraint/constraint.js.map +1 -0
  162. package/lib/chart/layout/constraint/gauss.d.ts +11 -0
  163. package/lib/chart/layout/constraint/gauss.js +68 -0
  164. package/lib/chart/layout/constraint/gauss.js.map +1 -0
  165. package/lib/chart/layout/constraint/index.d.ts +5 -0
  166. package/lib/chart/layout/constraint/index.js +38 -0
  167. package/lib/chart/layout/constraint/index.js.map +1 -0
  168. package/lib/chart/layout/constraint/solver.d.ts +40 -0
  169. package/lib/chart/layout/constraint/solver.js +80 -0
  170. package/lib/chart/layout/constraint/solver.js.map +1 -0
  171. package/lib/chart/layout/constraint/types.d.ts +21 -0
  172. package/lib/chart/layout/constraint/types.js +16 -0
  173. package/lib/chart/layout/constraint/types.js.map +1 -0
  174. package/lib/chart/layout/constraint/variable.d.ts +24 -0
  175. package/lib/chart/layout/constraint/variable.js +31 -0
  176. package/lib/chart/layout/constraint/variable.js.map +1 -0
  177. package/lib/chart/layout/padding-cal.js +1 -1
  178. package/lib/chart/layout/padding-cal.js.map +1 -1
  179. package/lib/chart/util/scale-pool.js +12 -12
  180. package/lib/chart/util/scale-pool.js.map +1 -1
  181. package/lib/chart/view.d.ts +41 -1
  182. package/lib/chart/view.js +142 -86
  183. package/lib/chart/view.js.map +1 -1
  184. package/lib/component/labels.js +32 -32
  185. package/lib/component/labels.js.map +1 -1
  186. package/lib/component/update-label.js +4 -4
  187. package/lib/component/update-label.js.map +1 -1
  188. package/lib/core.d.ts +1 -1
  189. package/lib/core.js +8 -8
  190. package/lib/core.js.map +1 -1
  191. package/lib/dependents.js +1 -1
  192. package/lib/facet/circle.js +10 -10
  193. package/lib/facet/circle.js.map +1 -1
  194. package/lib/facet/facet.d.ts +5 -0
  195. package/lib/facet/facet.js +56 -21
  196. package/lib/facet/facet.js.map +1 -1
  197. package/lib/facet/index.js +7 -5
  198. package/lib/facet/index.js.map +1 -1
  199. package/lib/facet/list.js +9 -9
  200. package/lib/facet/list.js.map +1 -1
  201. package/lib/facet/matrix.js +13 -13
  202. package/lib/facet/matrix.js.map +1 -1
  203. package/lib/facet/mirror.js +10 -10
  204. package/lib/facet/mirror.js.map +1 -1
  205. package/lib/facet/rect.js +16 -16
  206. package/lib/facet/rect.js.map +1 -1
  207. package/lib/facet/tree.js +10 -10
  208. package/lib/facet/tree.js.map +1 -1
  209. package/lib/geometry/area.js +2 -2
  210. package/lib/geometry/area.js.map +1 -1
  211. package/lib/geometry/base.d.ts +34 -7
  212. package/lib/geometry/base.js +203 -146
  213. package/lib/geometry/base.js.map +1 -1
  214. package/lib/geometry/edge.js +2 -2
  215. package/lib/geometry/edge.js.map +1 -1
  216. package/lib/geometry/element/index.js +22 -22
  217. package/lib/geometry/element/index.js.map +1 -1
  218. package/lib/geometry/heatmap.d.ts +1 -2
  219. package/lib/geometry/heatmap.js +18 -18
  220. package/lib/geometry/heatmap.js.map +1 -1
  221. package/lib/geometry/interval.js +7 -7
  222. package/lib/geometry/interval.js.map +1 -1
  223. package/lib/geometry/label/base.js +33 -33
  224. package/lib/geometry/label/base.js.map +1 -1
  225. package/lib/geometry/label/interval.js +15 -15
  226. package/lib/geometry/label/interval.js.map +1 -1
  227. package/lib/geometry/label/layout/adjust-color.js +1 -1
  228. package/lib/geometry/label/layout/adjust-color.js.map +1 -1
  229. package/lib/geometry/label/layout/hide-overlap.js +3 -3
  230. package/lib/geometry/label/layout/hide-overlap.js.map +1 -1
  231. package/lib/geometry/label/layout/interval/adjust-position.js +2 -2
  232. package/lib/geometry/label/layout/interval/adjust-position.js.map +1 -1
  233. package/lib/geometry/label/layout/interval/hide-overlap.js +7 -7
  234. package/lib/geometry/label/layout/interval/hide-overlap.js.map +1 -1
  235. package/lib/geometry/label/layout/limit-in-canvas.js +2 -2
  236. package/lib/geometry/label/layout/limit-in-canvas.js.map +1 -1
  237. package/lib/geometry/label/layout/limit-in-plot.js +5 -5
  238. package/lib/geometry/label/layout/limit-in-plot.js.map +1 -1
  239. package/lib/geometry/label/layout/limit-in-shape.js +1 -1
  240. package/lib/geometry/label/layout/limit-in-shape.js.map +1 -1
  241. package/lib/geometry/label/layout/overlap.js +2 -2
  242. package/lib/geometry/label/layout/overlap.js.map +1 -1
  243. package/lib/geometry/label/layout/path/adjust-position.js +5 -5
  244. package/lib/geometry/label/layout/path/adjust-position.js.map +1 -1
  245. package/lib/geometry/label/layout/pie/distribute.js +8 -8
  246. package/lib/geometry/label/layout/pie/distribute.js.map +1 -1
  247. package/lib/geometry/label/layout/pie/outer.js +16 -16
  248. package/lib/geometry/label/layout/pie/outer.js.map +1 -1
  249. package/lib/geometry/label/layout/pie/spider.js +18 -18
  250. package/lib/geometry/label/layout/pie/spider.js.map +1 -1
  251. package/lib/geometry/label/layout/point/adjust-position.js +5 -5
  252. package/lib/geometry/label/layout/point/adjust-position.js.map +1 -1
  253. package/lib/geometry/label/pie.js +8 -9
  254. package/lib/geometry/label/pie.js.map +1 -1
  255. package/lib/geometry/label/polar.js +14 -14
  256. package/lib/geometry/label/polar.js.map +1 -1
  257. package/lib/geometry/label/util/index.js +4 -4
  258. package/lib/geometry/label/util/index.js.map +1 -1
  259. package/lib/geometry/line.js +2 -2
  260. package/lib/geometry/line.js.map +1 -1
  261. package/lib/geometry/path.d.ts +1 -2
  262. package/lib/geometry/path.js +50 -24
  263. package/lib/geometry/path.js.map +1 -1
  264. package/lib/geometry/point.js +3 -3
  265. package/lib/geometry/point.js.map +1 -1
  266. package/lib/geometry/polygon.js +5 -5
  267. package/lib/geometry/polygon.js.map +1 -1
  268. package/lib/geometry/schema.js +4 -4
  269. package/lib/geometry/schema.js.map +1 -1
  270. package/lib/geometry/shape/area/index.js +4 -4
  271. package/lib/geometry/shape/area/index.js.map +1 -1
  272. package/lib/geometry/shape/area/line.js +2 -2
  273. package/lib/geometry/shape/area/line.js.map +1 -1
  274. package/lib/geometry/shape/area/smooth-line.js +2 -2
  275. package/lib/geometry/shape/area/smooth-line.js.map +1 -1
  276. package/lib/geometry/shape/area/smooth.js +2 -2
  277. package/lib/geometry/shape/area/smooth.js.map +1 -1
  278. package/lib/geometry/shape/area/util.js +5 -5
  279. package/lib/geometry/shape/area/util.js.map +1 -1
  280. package/lib/geometry/shape/base.js +11 -11
  281. package/lib/geometry/shape/base.js.map +1 -1
  282. package/lib/geometry/shape/edge/arc.js +11 -11
  283. package/lib/geometry/shape/edge/arc.js.map +1 -1
  284. package/lib/geometry/shape/edge/index.js +6 -6
  285. package/lib/geometry/shape/edge/index.js.map +1 -1
  286. package/lib/geometry/shape/edge/smooth.js +4 -4
  287. package/lib/geometry/shape/edge/smooth.js.map +1 -1
  288. package/lib/geometry/shape/edge/util.js +1 -1
  289. package/lib/geometry/shape/edge/util.js.map +1 -1
  290. package/lib/geometry/shape/edge/vhv.js +4 -4
  291. package/lib/geometry/shape/edge/vhv.js.map +1 -1
  292. package/lib/geometry/shape/interval/funnel.js +5 -5
  293. package/lib/geometry/shape/interval/funnel.js.map +1 -1
  294. package/lib/geometry/shape/interval/hollow-rect.js +7 -7
  295. package/lib/geometry/shape/interval/hollow-rect.js.map +1 -1
  296. package/lib/geometry/shape/interval/index.js +10 -10
  297. package/lib/geometry/shape/interval/index.js.map +1 -1
  298. package/lib/geometry/shape/interval/line.js +7 -7
  299. package/lib/geometry/shape/interval/line.js.map +1 -1
  300. package/lib/geometry/shape/interval/pyramid.js +5 -5
  301. package/lib/geometry/shape/interval/pyramid.js.map +1 -1
  302. package/lib/geometry/shape/interval/tick.js +4 -4
  303. package/lib/geometry/shape/interval/tick.js.map +1 -1
  304. package/lib/geometry/shape/interval/util.js +8 -8
  305. package/lib/geometry/shape/interval/util.js.map +1 -1
  306. package/lib/geometry/shape/line/index.js +11 -11
  307. package/lib/geometry/shape/line/index.js.map +1 -1
  308. package/lib/geometry/shape/line/step.js +7 -7
  309. package/lib/geometry/shape/line/step.js.map +1 -1
  310. package/lib/geometry/shape/point/hollow.js +3 -3
  311. package/lib/geometry/shape/point/hollow.js.map +1 -1
  312. package/lib/geometry/shape/point/image.js +2 -2
  313. package/lib/geometry/shape/point/image.js.map +1 -1
  314. package/lib/geometry/shape/point/index.js +5 -5
  315. package/lib/geometry/shape/point/index.js.map +1 -1
  316. package/lib/geometry/shape/point/solid.js +3 -3
  317. package/lib/geometry/shape/point/solid.js.map +1 -1
  318. package/lib/geometry/shape/point/util.js +3 -3
  319. package/lib/geometry/shape/point/util.js.map +1 -1
  320. package/lib/geometry/shape/polygon/index.js +7 -7
  321. package/lib/geometry/shape/polygon/index.js.map +1 -1
  322. package/lib/geometry/shape/polygon/square.js +5 -5
  323. package/lib/geometry/shape/polygon/square.js.map +1 -1
  324. package/lib/geometry/shape/schema/box.js +6 -6
  325. package/lib/geometry/shape/schema/box.js.map +1 -1
  326. package/lib/geometry/shape/schema/candle.js +5 -5
  327. package/lib/geometry/shape/schema/candle.js.map +1 -1
  328. package/lib/geometry/shape/schema/index.js +2 -2
  329. package/lib/geometry/shape/schema/index.js.map +1 -1
  330. package/lib/geometry/shape/util/get-path-points.js +4 -4
  331. package/lib/geometry/shape/util/get-path-points.js.map +1 -1
  332. package/lib/geometry/shape/util/get-style.js +4 -4
  333. package/lib/geometry/shape/util/get-style.js.map +1 -1
  334. package/lib/geometry/shape/util/path.js +7 -6
  335. package/lib/geometry/shape/util/path.js.map +1 -1
  336. package/lib/geometry/shape/util/split-points.js +2 -2
  337. package/lib/geometry/shape/util/split-points.js.map +1 -1
  338. package/lib/geometry/shape/violin/hollow.js +8 -8
  339. package/lib/geometry/shape/violin/hollow.js.map +1 -1
  340. package/lib/geometry/shape/violin/index.js +9 -9
  341. package/lib/geometry/shape/violin/index.js.map +1 -1
  342. package/lib/geometry/shape/violin/smooth.js +4 -4
  343. package/lib/geometry/shape/violin/smooth.js.map +1 -1
  344. package/lib/geometry/util/diff.d.ts +11 -0
  345. package/lib/geometry/util/diff.js +34 -0
  346. package/lib/geometry/util/diff.js.map +1 -0
  347. package/lib/geometry/util/get-shape-type.js +1 -1
  348. package/lib/geometry/util/get-shape-type.js.map +1 -1
  349. package/lib/geometry/util/group-data.js +1 -1
  350. package/lib/geometry/util/group-data.js.map +1 -1
  351. package/lib/geometry/util/is-model-change.js +2 -2
  352. package/lib/geometry/util/is-model-change.js.map +1 -1
  353. package/lib/geometry/util/parse-fields.js +1 -1
  354. package/lib/geometry/util/parse-fields.js.map +1 -1
  355. package/lib/geometry/util/shape-size.js +9 -9
  356. package/lib/geometry/util/shape-size.js.map +1 -1
  357. package/lib/geometry/violin.js +5 -5
  358. package/lib/geometry/violin.js.map +1 -1
  359. package/lib/index.js +193 -193
  360. package/lib/index.js.map +1 -1
  361. package/lib/interaction/action/active-region.js +19 -19
  362. package/lib/interaction/action/active-region.js.map +1 -1
  363. package/lib/interaction/action/base.js +1 -1
  364. package/lib/interaction/action/base.js.map +1 -1
  365. package/lib/interaction/action/callback.js +2 -2
  366. package/lib/interaction/action/callback.js.map +1 -1
  367. package/lib/interaction/action/component/list-active.js +2 -2
  368. package/lib/interaction/action/component/list-active.js.map +1 -1
  369. package/lib/interaction/action/component/list-checked.js +5 -5
  370. package/lib/interaction/action/component/list-checked.js.map +1 -1
  371. package/lib/interaction/action/component/list-highlight-util.js +1 -1
  372. package/lib/interaction/action/component/list-highlight-util.js.map +1 -1
  373. package/lib/interaction/action/component/list-highlight.js +7 -7
  374. package/lib/interaction/action/component/list-highlight.js.map +1 -1
  375. package/lib/interaction/action/component/list-selected.js +2 -2
  376. package/lib/interaction/action/component/list-selected.js.map +1 -1
  377. package/lib/interaction/action/component/list-state.js +15 -15
  378. package/lib/interaction/action/component/list-state.js.map +1 -1
  379. package/lib/interaction/action/component/list-unchecked.js +2 -2
  380. package/lib/interaction/action/component/list-unchecked.js.map +1 -1
  381. package/lib/interaction/action/component/tooltip/ellipsis-text.js +6 -6
  382. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +1 -1
  383. package/lib/interaction/action/component/tooltip/geometry.js +4 -4
  384. package/lib/interaction/action/component/tooltip/geometry.js.map +1 -1
  385. package/lib/interaction/action/component/tooltip/sibling.js +7 -7
  386. package/lib/interaction/action/component/tooltip/sibling.js.map +1 -1
  387. package/lib/interaction/action/cursor.js +2 -2
  388. package/lib/interaction/action/cursor.js.map +1 -1
  389. package/lib/interaction/action/data/filter.js +7 -7
  390. package/lib/interaction/action/data/filter.js.map +1 -1
  391. package/lib/interaction/action/data/range-filter.js +3 -3
  392. package/lib/interaction/action/data/range-filter.js.map +1 -1
  393. package/lib/interaction/action/data/sibling-filter.js +6 -6
  394. package/lib/interaction/action/data/sibling-filter.js.map +1 -1
  395. package/lib/interaction/action/element/active.js +2 -2
  396. package/lib/interaction/action/element/active.js.map +1 -1
  397. package/lib/interaction/action/element/filter.js +16 -16
  398. package/lib/interaction/action/element/filter.js.map +1 -1
  399. package/lib/interaction/action/element/highlight-by-color.js +5 -5
  400. package/lib/interaction/action/element/highlight-by-color.js.map +1 -1
  401. package/lib/interaction/action/element/highlight-by-x.js +6 -6
  402. package/lib/interaction/action/element/highlight-by-x.js.map +1 -1
  403. package/lib/interaction/action/element/highlight-util.js +3 -3
  404. package/lib/interaction/action/element/highlight-util.js.map +1 -1
  405. package/lib/interaction/action/element/highlight.js +8 -8
  406. package/lib/interaction/action/element/highlight.js.map +1 -1
  407. package/lib/interaction/action/element/link-by-color.js +9 -9
  408. package/lib/interaction/action/element/link-by-color.js.map +1 -1
  409. package/lib/interaction/action/element/range-active.js +2 -2
  410. package/lib/interaction/action/element/range-active.js.map +1 -1
  411. package/lib/interaction/action/element/range-highlight.js +4 -4
  412. package/lib/interaction/action/element/range-highlight.js.map +1 -1
  413. package/lib/interaction/action/element/range-selected.js +2 -2
  414. package/lib/interaction/action/element/range-selected.js.map +1 -1
  415. package/lib/interaction/action/element/range-state.js +18 -18
  416. package/lib/interaction/action/element/range-state.js.map +1 -1
  417. package/lib/interaction/action/element/selected.js +2 -2
  418. package/lib/interaction/action/element/selected.js.map +1 -1
  419. package/lib/interaction/action/element/sibling-filter.js +18 -18
  420. package/lib/interaction/action/element/sibling-filter.js.map +1 -1
  421. package/lib/interaction/action/element/single-active.js +2 -2
  422. package/lib/interaction/action/element/single-active.js.map +1 -1
  423. package/lib/interaction/action/element/single-highlight.js +5 -5
  424. package/lib/interaction/action/element/single-highlight.js.map +1 -1
  425. package/lib/interaction/action/element/single-selected.js +2 -2
  426. package/lib/interaction/action/element/single-selected.js.map +1 -1
  427. package/lib/interaction/action/element/single-state.js +5 -5
  428. package/lib/interaction/action/element/single-state.js.map +1 -1
  429. package/lib/interaction/action/element/state-base.js +4 -4
  430. package/lib/interaction/action/element/state-base.js.map +1 -1
  431. package/lib/interaction/action/element/state.js +13 -13
  432. package/lib/interaction/action/element/state.js.map +1 -1
  433. package/lib/interaction/action/index.js +5 -1
  434. package/lib/interaction/action/index.js.map +1 -1
  435. package/lib/interaction/action/mask/base.js +5 -5
  436. package/lib/interaction/action/mask/base.js.map +1 -1
  437. package/lib/interaction/action/mask/circle.js +4 -4
  438. package/lib/interaction/action/mask/circle.js.map +1 -1
  439. package/lib/interaction/action/mask/dim-rect.js +6 -6
  440. package/lib/interaction/action/mask/dim-rect.js.map +1 -1
  441. package/lib/interaction/action/mask/path.js +3 -3
  442. package/lib/interaction/action/mask/path.js.map +1 -1
  443. package/lib/interaction/action/mask/rect.js +4 -4
  444. package/lib/interaction/action/mask/rect.js.map +1 -1
  445. package/lib/interaction/action/mask/smooth-path.js +3 -3
  446. package/lib/interaction/action/mask/smooth-path.js.map +1 -1
  447. package/lib/interaction/action/register.js +2 -2
  448. package/lib/interaction/action/register.js.map +1 -1
  449. package/lib/interaction/action/util.js +13 -13
  450. package/lib/interaction/action/util.js.map +1 -1
  451. package/lib/interaction/action/view/button.js +6 -6
  452. package/lib/interaction/action/view/button.js.map +1 -1
  453. package/lib/interaction/action/view/drag.js +3 -3
  454. package/lib/interaction/action/view/drag.js.map +1 -1
  455. package/lib/interaction/action/view/move.js +2 -2
  456. package/lib/interaction/action/view/move.js.map +1 -1
  457. package/lib/interaction/action/view/scale-transform.js +1 -1
  458. package/lib/interaction/action/view/scale-transform.js.map +1 -1
  459. package/lib/interaction/action/view/scale-translate.js +4 -4
  460. package/lib/interaction/action/view/scale-translate.js.map +1 -1
  461. package/lib/interaction/action/view/scale-zoom.js +3 -3
  462. package/lib/interaction/action/view/scale-zoom.js.map +1 -1
  463. package/lib/interaction/context.js +5 -5
  464. package/lib/interaction/context.js.map +1 -1
  465. package/lib/interaction/grammar-interaction.js +20 -20
  466. package/lib/interaction/grammar-interaction.js.map +1 -1
  467. package/lib/interaction/index.js +7 -7
  468. package/lib/interaction/index.js.map +1 -1
  469. package/lib/interface.d.ts +11 -10
  470. package/lib/interface.js.map +1 -1
  471. package/lib/theme/index.js +3 -3
  472. package/lib/theme/index.js.map +1 -1
  473. package/lib/theme/style-sheet/dark.d.ts +2 -2
  474. package/lib/theme/style-sheet/dark.js +5 -4
  475. package/lib/theme/style-sheet/dark.js.map +1 -1
  476. package/lib/theme/style-sheet/light.d.ts +2 -2
  477. package/lib/theme/style-sheet/light.js +5 -4
  478. package/lib/theme/style-sheet/light.js.map +1 -1
  479. package/lib/theme/util/create-by-style-sheet.js +12 -12
  480. package/lib/theme/util/create-by-style-sheet.js.map +1 -1
  481. package/lib/theme/util/create-theme.js +3 -3
  482. package/lib/theme/util/create-theme.js.map +1 -1
  483. package/lib/theme/util/index.js +1 -0
  484. package/lib/theme/util/index.js.map +1 -1
  485. package/lib/util/annotation.js +4 -2
  486. package/lib/util/annotation.js.map +1 -1
  487. package/lib/util/attr.js +1 -1
  488. package/lib/util/attr.js.map +1 -1
  489. package/lib/util/axis.js +8 -8
  490. package/lib/util/axis.js.map +1 -1
  491. package/lib/util/bbox.js +4 -3
  492. package/lib/util/bbox.js.map +1 -1
  493. package/lib/util/collision-detect.js +1 -1
  494. package/lib/util/collision-detect.js.map +1 -1
  495. package/lib/util/color.js +3 -2
  496. package/lib/util/color.js.map +1 -1
  497. package/lib/util/coordinate.js +5 -5
  498. package/lib/util/coordinate.js.map +1 -1
  499. package/lib/util/dom.js +1 -1
  500. package/lib/util/facet.js +1 -1
  501. package/lib/util/facet.js.map +1 -1
  502. package/lib/util/graphics.js +5 -5
  503. package/lib/util/graphics.js.map +1 -1
  504. package/lib/util/grid.js +5 -5
  505. package/lib/util/grid.js.map +1 -1
  506. package/lib/util/helper.d.ts +1 -1
  507. package/lib/util/helper.js +5 -5
  508. package/lib/util/helper.js.map +1 -1
  509. package/lib/util/legend.js +19 -18
  510. package/lib/util/legend.js.map +1 -1
  511. package/lib/util/padding.js +4 -4
  512. package/lib/util/padding.js.map +1 -1
  513. package/lib/util/scale.js +11 -12
  514. package/lib/util/scale.js.map +1 -1
  515. package/lib/util/stat.js +3 -3
  516. package/lib/util/stat.js.map +1 -1
  517. package/lib/util/text.js +12 -11
  518. package/lib/util/text.js.map +1 -1
  519. package/lib/util/tooltip.js +21 -21
  520. package/lib/util/tooltip.js.map +1 -1
  521. package/package.json +21 -27
  522. package/src/chart/controller/annotation.ts +14 -7
  523. package/src/chart/controller/tooltip.ts +11 -1
  524. package/src/chart/layout/constraint/bounds.ts +52 -0
  525. package/src/chart/layout/constraint/constraint.ts +98 -0
  526. package/src/chart/layout/constraint/gauss.ts +71 -0
  527. package/src/chart/layout/constraint/index.ts +30 -0
  528. package/src/chart/layout/constraint/solver.ts +98 -0
  529. package/src/chart/layout/constraint/types.ts +29 -0
  530. package/src/chart/layout/constraint/variable.ts +33 -0
  531. package/src/chart/view.ts +70 -5
  532. package/src/core.ts +1 -1
  533. package/src/facet/facet.ts +50 -20
  534. package/src/geometry/base.ts +133 -60
  535. package/src/geometry/heatmap.ts +17 -18
  536. package/src/geometry/path.ts +48 -22
  537. package/src/geometry/util/diff.ts +29 -0
  538. package/src/interface.ts +8 -6
  539. package/src/theme/style-sheet/dark.ts +2 -2
  540. package/src/theme/style-sheet/light.ts +2 -2
  541. package/src/util/annotation.ts +3 -1
  542. package/src/util/helper.ts +3 -3
  543. package/src/util/legend.ts +7 -4
package/dist/g2.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2=e():t.G2=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=241)}([function(t,e,n){"use strict";
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2=e():t.G2=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=245)}([function(t,e,n){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,7 +12,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArray=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e.__createBinding(n,t,r)},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__spreadArray=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var u=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};e.__importStar=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.__createBinding(n,t,r);return u(n,t),n},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(83);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r.default}});var i=n(243);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return i.default}});var a=n(244);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return a.default}});var o=n(245);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return o.default}});var s=n(246);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return s.default}});var u=n(247);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return u.default}});var l=n(248);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return l.default}});var c=n(249);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return c.default}});var h=n(250);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return h.default}});var f=n(141);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return f.default}});var p=n(142);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return p.default}});var d=n(251);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return d.default}});var g=n(252);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return g.default}});var y=n(253);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return y.default}});var v=n(143);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return v.default}});var m=n(254);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return m.default}});var x=n(255);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return x.default}});var _=n(256);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return _.default}});var b=n(257);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return b.default}});var M=n(258);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return M.default}});var C=n(136);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return C.default}});var P=n(259);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return P.default}});var S=n(260);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return S.default}});var O=n(261);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return O.default}});var w=n(145);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return w.default}});var A=n(144);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return A.default}});var T=n(262);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return T.default}});var E=n(263);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return E.default}});var I=n(264);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return I.default}});var L=n(265);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return L.default}});var D=n(266);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return D.default}});var B=n(267);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return B.default}});var j=n(268);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return j.default}});var k=n(269);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return k.default}});var R=n(270);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return R.default}});var F=n(271);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return F.default}});var N=n(272);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return N.default}});var Y=n(273);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return Y.default}});var G=n(274);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return G.default}});var V=n(139);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return V.default}});var H=n(275);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return H.default}});var X=n(140);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return X.default}});var z=n(276);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return z.default}});var W=n(277);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return W.default}});var q=n(278);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return q.default}});var U=n(279);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return U.default}});var Z=n(280);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return Z.default}});var Q=n(281);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return Q.default}});var K=n(146);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return K.default}});var $=n(282);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return $.default}});var J=n(283);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return J.default}});var tt=n(138);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return tt.default}});var et=n(137);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return et.default}});var nt=n(147);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return nt.default}});var rt=n(284);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return rt.default}});var it=n(285);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return it.default}});var at=n(286);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return at.default}});var ot=n(287);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return ot.default}});var st=n(288);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return st.default}});var ut=n(148);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return ut.default}});var lt=n(289);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return lt.default}});var ct=n(7);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return ct.default}});var ht=n(18);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return ht.default}});var ft=n(290);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return ft.default}});var pt=n(291);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return pt.default}});var dt=n(292);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return dt.default}});var gt=n(19);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return gt.default}});var yt=n(293);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return yt.default}});var vt=n(34);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return vt.default}});var mt=n(294);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return mt.default}});var xt=n(30);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return xt.default}});var _t=n(67);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return _t.default}});var bt=n(84);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return bt.default}});var Mt=n(55);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return Mt.default}});var Ct=n(149);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return Ct.default}});var Pt=n(295);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return Pt.default}});var St=n(36);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return St.default}});var Ot=n(23);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return Ot.default}});var wt=n(296);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return wt.default}});var At=n(297);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return At.default}});var Tt=n(298);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return Tt.default}});var Et=n(299);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return Et.default}});var It=n(300);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return It.default}});var Lt=n(301);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return Lt.default}});var Dt=n(302);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Dt.default}});var Bt=n(303);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return Bt.default}});var jt=n(304);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return jt.default}});var kt=n(43);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return kt.default}});var Rt=n(305);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return Rt.default}});var Ft=n(306);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return Ft.default}});var Nt=n(307);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Nt.default}});var Yt=n(150);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return Yt.default}});var Gt=n(308);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return Gt.default}});var Vt=n(309);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Vt.default}});var Ht=n(310);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return Ht.default}});var Xt=n(85);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return Xt.default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return Xt.default}});var zt=n(311);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return zt.default}});var Wt=n(312);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return Wt.default}});var qt=n(313);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return qt.default}});var Ut=n(314);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return Ut.default}});var Zt=n(315);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Zt.default}});var Qt=n(316);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Qt.default}});var Kt=n(56);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return Kt.default}});var $t=n(317);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return $t.default}});var Jt=n(318);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return Jt.default}});var te=n(319);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return te.default}});var ee=n(320);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return ee.default}});var ne=n(321);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return ne.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"}(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var r=n(0),i=n(39),a=n(1),o=n(49),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return a.get(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=a.get(i,[t,"default"],{}),s=n.getMarker(e);return a.deepMix({},o,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},u={coordinate:null,parsePath:function(t){var e=this.coordinate,n=i.parsePathString(t);return n=e.isPolar?o.convertPolarPath(e,n):o.convertNormalPath(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},l={};e.registerShapeFactory=function(t,e){var n=a.upperFirst(t),i=r.__assign(r.__assign(r.__assign({},s),e),{geometryType:t});return l[n]=i,i},e.registerShape=function(t,e,n){var i=a.upperFirst(t),o=l[i],s=r.__assign(r.__assign({},u),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=a.upperFirst(t);return l[e]}},function(t,e,n){"use strict";
15
+ ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArray=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||(0,e.__createBinding)(n,t,r)},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__spreadArray=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var u=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};e.__importStar=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&(0,e.__createBinding)(n,t,r);return u(n,t),n},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.has=e.forIn=e.toRadian=e.toInteger=e.toDegree=e.mod=e.minBy=e.min=e.maxBy=e.max=e.isPositive=e.isOdd=e.isNumberEqual=e.isNegative=e.isInteger=e.isEven=e.isDecimal=e.fixedBase=e.clamp=e.parseRadius=e.number2color=e.wrapBehavior=e.getWrapBehavior=e.groupToMap=e.groupBy=e.group=e.some=e.every=e.filter=e.endsWith=e.startsWith=e.last=e.head=e.valuesOfKey=e.uniq=e.union=e.sortBy=e.remove=e.reduce=e.pullAt=e.pull=e.getRange=e.flattenDeep=e.flatten=e.firstValue=e.findIndex=e.find=e.difference=e.includes=e.contains=void 0,e.set=e.get=e.assign=e.mix=e.mapValues=e.map=e.isEqualWith=e.isEqual=e.isEmpty=e.indexOf=e.extend=e.each=e.deepMix=e.memoize=e.debounce=e.clone=e.augment=e.clearAnimationFrame=e.requestAnimationFrame=e.isElement=e.isUndefined=e.isType=e.isString=e.isRegExp=e.isPrototype=e.isPlainObject=e.isObjectLike=e.isObject=e.isNumber=e.isNull=e.isNil=e.isFinite=e.isFunction=e.isError=e.isDate=e.isBoolean=e.isArrayLike=e.isArray=e.isArguments=e.getType=e.upperFirst=e.upperCase=e.substitute=e.lowerFirst=e.lowerCase=e.values=e.isMatch=e.keys=e.hasValue=e.hasKey=void 0,e.Cache=e.getEllipsisText=e.measureTextWidth=e.size=e.identity=e.noop=e.uniqueId=e.toString=e.toArray=e.throttle=e.omit=e.pick=void 0;var i=n(84);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r(i).default}});var a=n(247);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return r(a).default}});var o=n(248);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(o).default}});var s=n(249);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(s).default}});var u=n(250);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return r(u).default}});var l=n(251);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return r(l).default}});var c=n(252);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return r(c).default}});var h=n(253);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r(h).default}});var f=n(254);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return r(f).default}});var p=n(143);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return r(p).default}});var d=n(144);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d).default}});var g=n(255);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return r(g).default}});var y=n(256);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return r(y).default}});var v=n(257);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return r(v).default}});var m=n(145);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return r(m).default}});var _=n(258);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return r(_).default}});var x=n(259);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return r(x).default}});var b=n(260);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(b).default}});var M=n(261);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return r(M).default}});var C=n(262);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return r(C).default}});var P=n(138);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(P).default}});var S=n(263);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(S).default}});var O=n(264);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return r(O).default}});var w=n(265);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return r(w).default}});var A=n(147);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(A).default}});var T=n(146);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return r(T).default}});var E=n(266);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return r(E).default}});var I=n(267);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return r(I).default}});var L=n(268);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return r(L).default}});var D=n(269);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return r(D).default}});var B=n(270);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return r(B).default}});var j=n(271);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return r(j).default}});var k=n(272);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return r(k).default}});var R=n(273);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return r(R).default}});var F=n(274);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return r(F).default}});var N=n(275);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return r(N).default}});var G=n(276);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r(G).default}});var Y=n(277);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return r(Y).default}});var V=n(278);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return r(V).default}});var H=n(141);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(H).default}});var X=n(279);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return r(X).default}});var z=n(142);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(z).default}});var W=n(280);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return r(W).default}});var q=n(281);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r(q).default}});var U=n(282);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return r(U).default}});var Z=n(283);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return r(Z).default}});var Q=n(284);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r(Q).default}});var K=n(285);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return r(K).default}});var $=n(148);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return r($).default}});var J=n(286);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return r(J).default}});var tt=n(287);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return r(tt).default}});var et=n(140);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return r(et).default}});var nt=n(139);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return r(nt).default}});var rt=n(86);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return r(rt).default}});var it=n(288);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return r(it).default}});var at=n(289);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return r(at).default}});var ot=n(290);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return r(ot).default}});var st=n(291);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return r(st).default}});var ut=n(292);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r(ut).default}});var lt=n(149);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return r(lt).default}});var ct=n(293);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return r(ct).default}});var ht=n(6);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r(ht).default}});var ft=n(17);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return r(ft).default}});var pt=n(294);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return r(pt).default}});var dt=n(295);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return r(dt).default}});var gt=n(296);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return r(gt).default}});var yt=n(18);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r(yt).default}});var vt=n(297);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return r(vt).default}});var mt=n(36);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r(mt).default}});var _t=n(298);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return r(_t).default}});var xt=n(32);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return r(xt).default}});var bt=n(68);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r(bt).default}});var Mt=n(85);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return r(Mt).default}});var Ct=n(57);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return r(Ct).default}});var Pt=n(150);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return r(Pt).default}});var St=n(299);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return r(St).default}});var Ot=n(31);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r(Ot).default}});var wt=n(23);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return r(wt).default}});var At=n(300);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return r(At).default}});var Tt=n(301);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return r(Tt).default}});var Et=n(302);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r(Et).default}});var It=n(303);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r(It).default}});var Lt=n(304);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return r(Lt).default}});var Dt=n(305);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return r(Dt).default}});var Bt=n(306);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(Bt).default}});var jt=n(151);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return r(jt).default}});var kt=n(307);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return r(kt).default}});var Rt=n(44);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r(Rt).default}});var Ft=n(308);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return r(Ft).default}});var Nt=n(309);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return r(Nt).default}});var Gt=n(310);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(Gt).default}});var Yt=n(152);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return r(Yt).default}});var Vt=n(311);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return r(Vt).default}});var Ht=n(312);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(Ht).default}});var Xt=n(313);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return r(Xt).default}});var zt=n(87);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r(zt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return r(zt).default}});var Wt=n(314);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r(Wt).default}});var qt=n(315);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return r(qt).default}});var Ut=n(316);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return r(Ut).default}});var Zt=n(317);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return r(Zt).default}});var Qt=n(318);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(Qt).default}});var Kt=n(319);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(Kt).default}});var $t=n(45);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return r($t).default}});var Jt=n(320);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r(Jt).default}});var te=n(321);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(te).default}});var ee=n(322);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(ee).default}});var ne=n(323);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return r(ne).default}});var re=n(153);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return r(re).default}});var ie=n(324);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return r(ie).default}});var ae=n(325);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return r(ae).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"}(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var r=n(0),i=n(40),a=n(1),o=n(51),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return(0,a.get)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=(0,a.get)(i,[t,"default"],{}),s=n.getMarker(e);return(0,a.deepMix)({},o,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},u={coordinate:null,parsePath:function(t){var e=this.coordinate,n=(0,i.parsePathString)(t);return n=e.isPolar?(0,o.convertPolarPath)(e,n):(0,o.convertNormalPath)(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},l={};e.registerShapeFactory=function(t,e){var n=(0,a.upperFirst)(t),i=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},s),e),{geometryType:t});return l[n]=i,i},e.registerShape=function(t,e,n){var i=(0,a.upperFirst)(t),o=l[i],s=(0,r.__assign)((0,r.__assign)({},u),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=(0,a.upperFirst)(t);return l[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScaleByField=e.isInRecords=e.getSiblingPoint=e.getSilbings=e.isInBox=e.getSpline=e.distance=e.getComponents=e.getElementsByPath=e.getIntersectElements=e.intersectRect=e.getElementValue=e.getElementsByState=e.getElementsByField=e.getElements=e.getSiblingMaskElements=e.getMaskedElements=e.isMask=e.isSlider=e.isList=e.isElementChange=e.getDelegationObject=e.getCurrentElement=void 0;var r=n(1),i=n(51),a=n(30),o=n(40);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function u(t){var e=t.geometries,n=[];return(0,r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,r.each)(t.views,(function(t){n=n.concat(u(t))})),n}function l(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function h(t,e){var n=u(t),i=[];return(0,r.each)(n,(function(t){var n=t.shape.getCanvasBBox();c(e,n)&&i.push(t)})),i}function f(t){var e=[];return(0,r.each)(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function p(t,e){var n=u(t),r=f(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=f(n.attr("path"));else{var i=n.getCanvasBBox();e=(0,a.toPoints)(i)}return(0,o.isPolygonsIntersect)(r,e)}))}function d(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e},e.getDelegationObject=function(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e},e.isElementChange=function(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))},e.isList=function(t){return t&&t.component&&t.component.isList()},e.isSlider=function(t){return t&&t.component&&t.component.isSlider()},e.isMask=function(t){var e=t.event.target;return e&&"mask"===e.get("name")},e.getMaskedElements=function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return p(t.view,n)}var r=s(t,e);return r?h(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=d(i,e,{x:r.x,y:r.y}),o=d(i,e,{x:r.maxX,y:r.maxY});return h(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=u,e.getElementsByField=function(t,e,n){return u(t).filter((function(t){return l(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return(0,r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=l,e.intersectRect=c,e.getIntersectElements=h,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var n=t[0],a=[];(0,r.each)(t,(function(t){a.push(t.x),a.push(t.y)}));var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=d,e.isInRecords=function(t,e,n,i){var a=!1;return(0,r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&(0,r.each)(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(0),i=n(1);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,u=t.defaultStyle,l=t.color,c=t.size,h=(0,r.__assign)((0,r.__assign)({},u),s);return l&&(e&&(s.stroke||(h.stroke=l)),n&&(s.fill||(h.fill=l))),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(h[a]=c),h},e.getBackgroundRectStyle=function(t){return(0,i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,i.get)(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return Array.isArray?Array.isArray(t):(0,r.default)(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(337),i=n(163);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=(0,r.__importStar)(n(341));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(204),s=n(34),u=n(9),l=(0,r.__importDefault)(n(110)),c=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,a.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=(0,s.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),(0,o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",(0,u.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=(0,i.__rest)(e,["id","component"]),o=new r((0,i.__assign)((0,i.__assign)({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=(0,s.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,a.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,a.each)(s,(function(t){var s=t.get("id"),l=r.getElementById(s),f=t.get("name");if(l)if(t.get("isComponent")){var p=t.get("component"),d=l.get("component"),g=(0,a.pick)(p.cfg,(0,a.difference)((0,a.keys)(p.cfg),h));d.update(g),l.set("update_status","update")}else{var y=r.getReplaceAttrs(l,t);i&&o.update?r.updateAnimation(f,l,y,o.update):l.attr(y),t.isGroup()&&r.updateElements(t,l),(0,a.each)(c,(function(e){l.set(e,t.get(e))})),(0,u.updateClip)(l,t),n=l,l.set("update_status","update")}else{e.add(t);var v=e.getChildren();if(v.splice(v.length-1,1),n){var m=v.indexOf(n);v.splice(m+1,0,t)}else v.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(p=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var _=r.get("isInit")?o.appear:o.enter;_&&r.addAnimation(f,t,_)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,a.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,a.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,a.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,a.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),i=this.get("animateOption");(0,a.each)(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var u=s.get("name");if(r&&i.leave){var l=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(u,s,l)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTextPoint=e.toPx=e.updateClip=e.getBBoxWithClip=e.mergeBBox=e.intersectBBox=e.near=e.wait=e.distance=e.getCirclePoint=e.getValueByPercent=e.createBBox=e.pointsToBBox=e.regionToBBox=e.hasClass=e.clearDom=e.formatPadding=void 0;var r=n(1);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return(0,r.isNumber)(t)?e=n=i=a=t:(0,r.isArray)(t)&&(e=t[0],i=(0,r.isNil)(t[1])?t[0]:t[1],a=(0,r.isNil)(t[2])?t[0]:t[2],n=(0,r.isNil)(t[3])?i:t[3]),[e,i,a,n]},e.clearDom=function(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o;e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))};function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n},e.intersectBBox=s,e.mergeBBox=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY);return i(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)},e.getBBoxWithClip=function t(e){var n,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var u=1/0,l=-1/0,c=1/0,h=-1/0,f=e.getChildren();f.length>0?(0,r.each)(f,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),f=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),d=Math.max(r[1],i[1],a[1],o[1]);s<u&&(u=s),f>l&&(l=f),p<c&&(c=p),d>h&&(h=d)}})):(u=0,l=0,c=0,h=0),n=i(u,c,l-u,h-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Polyline=e.Polygon=e.Line=e.Arc=e.Cubic=e.Quad=void 0;var r=n(0),i=(0,r.__importDefault)(n(379));e.Quad=i.default;var a=(0,r.__importDefault)(n(380));e.Cubic=a.default;var o=(0,r.__importDefault)(n(381));e.Arc=o.default;var s=(0,r.__importDefault)(n(70));e.Line=s.default;var u=(0,r.__importDefault)(n(383));e.Polygon=u.default;var l=(0,r.__importDefault)(n(183));e.Polyline=l.default;var c=(0,r.__importStar)(n(33));e.Util=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReplaceAttrs=e.getPolygonCentroid=e.getAngle=e.getArcPath=e.getSectorPath=e.polarToCartesian=void 0;var r=n(1);function i(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}e.polarToCartesian=i,e.getSectorPath=function(t,e,n,r,a,o){void 0===o&&(o=0);var s=i(t,e,n,r),u=i(t,e,n,a),l=i(t,e,o,r),c=i(t,e,o,a);if(a-r==2*Math.PI){var h=i(t,e,n,r+Math.PI),f=i(t,e,o,r+Math.PI),p=[["M",s.x,s.y],["A",n,n,0,1,1,h.x,h.y],["A",n,n,0,1,1,u.x,u.y],["M",l.x,l.y]];return o&&(p.push(["A",o,o,0,1,0,f.x,f.y]),p.push(["A",o,o,0,1,0,c.x,c.y])),p.push(["M",s.x,s.y]),p.push(["Z"]),p}var d=a-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,u.x,u.y],["L",c.x,c.y]];return o&&g.push(["A",o,o,0,d,0,l.x,l.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,a,o){var s=i(t,e,n,a),u=i(t,e,n,o);if((0,r.isNumberEqual)(o-a,2*Math.PI)){var l=i(t,e,n,a+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,l.x,l.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,l.x,l.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=o-a<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,u.x,u.y]]},e.getAngle=function(t,e){var n,i,a=function(t){if((0,r.isEmpty)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return(0,r.each)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,a=a<t.y?t.y:a})),{minX:e,maxX:n,minY:i,maxY:a,centerX:(e+n)/2,centerY:(i+a)/2}}(t.points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(n=a.maxY*s,i=a.minY*s):(n=a.maxX*s,i=a.minX*s),{startAngle:i+=o,endAngle:n+=o}},e.getPolygonCentroid=function(t,e){if((0,r.isNumber)(t)&&(0,r.isNumber)(e))return[t,e];for(var n,i,a=-1,o=0,s=0,u=t.length-1,l=0;++a<t.length;)n=u,u=a,l+=i=t[n]*e[u]-t[u]*e[n],o+=(t[n]+t[u])*i,s+=(e[n]+e[u])*i;return[o/(l*=3),s/l]},e.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return(0,r.each)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getOffScreenContext=e.invert=e.multiplyVec2=e.isAllowCapture=e.assembleFont=e.getTextHeight=e.getBBoxMethod=e.PathUtil=e.AbstractShape=e.AbstractGroup=e.AbstractCanvas=e.Base=e.Event=void 0;var r=n(0),i=(0,r.__importStar)(n(158));e.PathUtil=i,(0,r.__exportStar)(n(333),e),(0,r.__exportStar)(n(334),e);var a=n(159);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var o=n(160);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var s=n(335);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var u=n(372);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var l=n(373);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var c=n(374);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}});var h=n(184);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return h.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return h.assembleFont}});var f=n(39);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return f.isAllowCapture}});var p=n(94);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(185);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoordinateBBox=e.getCoordinateClipCfg=e.getAngleByPoint=e.isPointInCoordinate=e.getDistanceToCenter=e.isFullCircle=e.getXDimensionLength=void 0;var r=n(12),i=n(26),a=n(30);e.getXDimensionLength=function(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))},e.isFullCircle=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1},e.getDistanceToCenter=function(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))},e.isPointInCoordinate=function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,a=t.end;n=(0,i.isBetween)(e.x,r.x,a.x)&&(0,i.isBetween)(e.y,r.y,a.y)}else{var o=t.invert(e);n=(0,i.isBetween)(o.x,0,1)&&(0,i.isBetween)(o.y,0,1)}return n},e.getAngleByPoint=function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},e.getCoordinateClipCfg=function(t,e){void 0===e&&(e=0);var n,i=t.start,a=t.end,o=t.getWidth(),s=t.getHeight();if(t.isPolar){var u=t.startAngle,l=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:(0,r.getSectorPath)(c.x,c.y,h+e,u,u)},endState:function(t){var n=(l-u)*t+u;return{path:(0,r.getSectorPath)(c.x,c.y,h+e,u,n)}},attrs:{path:(0,r.getSectorPath)(c.x,c.y,h+e,u,l)}}}return n=t.isTransposed?{height:s+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:a.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:a.y-e,width:o+2*e,height:s+2*e}}},e.getCoordinateBBox=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),s=Math.min(n.x,r.x),u=Math.min(n.y,r.y);return a.BBox.fromRange(s-e,u-e,s+i+e,u+o+e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearAnimationFrame=e.requestAnimationFrame=e.isNumberEqual=e.mod=e.toRadian=e.each=e.isArray=e.isFunction=e.isString=e.isNil=e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.inBox=function(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r.toRadian}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r.mod}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r.isNumberEqual}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r.requestAnimationFrame}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r.clearAnimationFrame}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"Function")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fontFamily:'\n "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4}},function(t,e,n){"use strict";
16
16
  /*! *****************************************************************************
17
17
  Copyright (c) Microsoft Corporation.
18
18
 
@@ -26,5 +26,33 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
26
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
27
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
28
  PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScaleByField=e.isInRecords=e.getSiblingPoint=e.getSilbings=e.isInBox=e.getSpline=e.distance=e.getComponents=e.getElementsByPath=e.getIntersectElements=e.intersectRect=e.getElementValue=e.getElementsByState=e.getElementsByField=e.getElements=e.getSiblingMaskElements=e.getMaskedElements=e.isMask=e.isSlider=e.isList=e.isElementChange=e.getDelegationObject=e.getCurrentElement=void 0;var r=n(1),i=n(49),a=n(29),o=n(39);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function u(t){var e=t.geometries,n=[];return r.each(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&r.each(t.views,(function(t){n=n.concat(u(t))})),n}function l(t,e){var n=t.getModel().data;return r.isArray(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function h(t,e){var n=u(t),i=[];return r.each(n,(function(t){var n=t.shape.getCanvasBBox();c(e,n)&&i.push(t)})),i}function f(t){var e=[];return r.each(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function p(t,e){var n=u(t),r=f(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=f(n.attr("path"));else{var i=n.getCanvasBBox();e=a.toPoints(i)}return o.isPolygonsIntersect(r,e)}))}function d(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e},e.getDelegationObject=function(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e},e.isElementChange=function(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))},e.isList=function(t){return t&&t.component&&t.component.isList()},e.isSlider=function(t){return t&&t.component&&t.component.isSlider()},e.isMask=function(t){var e=t.event.target;return e&&"mask"===e.get("name")},e.getMaskedElements=function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return p(t.view,n)}var r=s(t,e);return r?h(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=d(i,e,{x:r.x,y:r.y}),o=d(i,e,{x:r.maxX,y:r.maxY});return h(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=u,e.getElementsByField=function(t,e,n){return u(t).filter((function(t){return l(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return r.each(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=l,e.intersectRect=c,e.getIntersectElements=h,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return i.getLinePath(t,!1);var n=t[0],a=[];r.each(t,(function(t){a.push(t.x),a.push(t.y)}));var o=i.catmullRom2bezier(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=d,e.isInRecords=function(t,e,n,i){var a=!1;return r.each(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&r.each(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(0),i=n(1);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,u=t.defaultStyle,l=t.color,c=t.size,h=r.__assign(r.__assign({},u),s);return l&&(e&&(s.stroke||(h.stroke=l)),n&&(s.fill||(h.fill=l))),a&&i.isNil(s[a])&&!i.isNil(c)&&(h[a]=c),h},e.getBackgroundRectStyle=function(t){return i.deepMix({},{fill:"#CCD6EC",fillOpacity:.3},i.get(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(4),i=n(160);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=r.__importStar(n(336));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(201),s=n(32),u=n(10),l=r.__importDefault(n(108)),c=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return a.each(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=s.applyMatrix2BBox(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),o.propagationDelegate(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",u.getBBoxWithClip(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=i.__rest(e,["id","component"]),o=new r(i.__assign(i.__assign({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=s.getMatrixByTranslate(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");a.isNil(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);a.each(s,(function(t){var s=t.get("id"),l=r.getElementById(s),f=t.get("name");if(l)if(t.get("isComponent")){var p=t.get("component"),d=l.get("component"),g=a.pick(p.cfg,a.difference(a.keys(p.cfg),h));d.update(g),l.set("update_status","update")}else{var y=r.getReplaceAttrs(l,t);i&&o.update?r.updateAnimation(f,l,y,o.update):l.attr(y),t.isGroup()&&r.updateElements(t,l),a.each(c,(function(e){l.set(e,t.get(e))})),u.updateClip(l,t),n=l,l.set("update_status","update")}else{e.add(t);var v=e.getChildren();if(v.splice(v.length-1,1),n){var m=v.indexOf(n);v.splice(m+1,0,t)}else v.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(p=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var x=r.get("isInit")?o.appear:o.enter;x&&r.addAnimation(f,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();a.each(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),a.mix(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return a.each(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();a.each(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];a.each(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),i=this.get("animateOption");a.each(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var u=s.get("name");if(r&&i.leave){var l=a.mix({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(u,s,l)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTextPoint=e.toPx=e.updateClip=e.getBBoxWithClip=e.mergeBBox=e.intersectBBox=e.near=e.wait=e.distance=e.getCirclePoint=e.getValueByPercent=e.createBBox=e.pointsToBBox=e.regionToBBox=e.hasClass=e.clearDom=e.formatPadding=void 0;var r=n(1);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return r.isNumber(t)?e=n=i=a=t:r.isArray(t)&&(e=t[0],i=r.isNil(t[1])?t[0]:t[1],a=r.isNil(t[2])?t[0]:t[2],n=r.isNil(t[3])?i:t[3]),[e,i,a,n]},e.clearDom=function(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o,e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))},e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n},e.intersectBBox=s,e.mergeBBox=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY);return i(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)},e.getBBoxWithClip=function t(e){var n,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var u=1/0,l=-1/0,c=1/0,h=-1/0,f=e.getChildren();f.length>0?r.each(f,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),f=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),d=Math.max(r[1],i[1],a[1],o[1]);s<u&&(u=s),f>l&&(l=f),p<c&&(c=p),d>h&&(h=d)}})):(u=0,l=0,c=0,h=0),n=i(u,c,l-u,h-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){r.assign(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Polyline=e.Polygon=e.Line=e.Arc=e.Cubic=e.Quad=void 0;var r=n(0),i=r.__importDefault(n(374));e.Quad=i.default;var a=r.__importDefault(n(375));e.Cubic=a.default;var o=r.__importDefault(n(376));e.Arc=o.default;var s=r.__importDefault(n(69));e.Line=s.default;var u=r.__importDefault(n(378));e.Polygon=u.default;var l=r.__importDefault(n(180));e.Polyline=l.default;var c=r.__importStar(n(31));e.Util=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReplaceAttrs=e.getPolygonCentroid=e.getAngle=e.getArcPath=e.getSectorPath=e.polarToCartesian=void 0;var r=n(1);function i(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}e.polarToCartesian=i,e.getSectorPath=function(t,e,n,r,a,o){void 0===o&&(o=0);var s=i(t,e,n,r),u=i(t,e,n,a),l=i(t,e,o,r),c=i(t,e,o,a);if(a-r==2*Math.PI){var h=i(t,e,n,r+Math.PI),f=i(t,e,o,r+Math.PI),p=[["M",s.x,s.y],["A",n,n,0,1,1,h.x,h.y],["A",n,n,0,1,1,u.x,u.y],["M",l.x,l.y]];return o&&(p.push(["A",o,o,0,1,0,f.x,f.y]),p.push(["A",o,o,0,1,0,c.x,c.y])),p.push(["M",s.x,s.y]),p.push(["Z"]),p}var d=a-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,u.x,u.y],["L",c.x,c.y]];return o&&g.push(["A",o,o,0,d,0,l.x,l.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,a,o){var s=i(t,e,n,a),u=i(t,e,n,o);if(r.isNumberEqual(o-a,2*Math.PI)){var l=i(t,e,n,a+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,l.x,l.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,l.x,l.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=o-a<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,u.x,u.y]]},e.getAngle=function(t,e){var n,i,a=function(t){if(r.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return r.each(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,a=a<t.y?t.y:a})),{minX:e,maxX:n,minY:i,maxY:a,centerX:(e+n)/2,centerY:(i+a)/2}}(t.points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(n=a.maxY*s,i=a.minY*s):(n=a.maxX*s,i=a.minX*s),{startAngle:i+=o,endAngle:n+=o}},e.getPolygonCentroid=function(t,e){if(r.isNumber(t)&&r.isNumber(e))return[t,e];for(var n,i,a=-1,o=0,s=0,u=t.length-1,l=0;++a<t.length;)n=u,u=a,l+=i=t[n]*e[u]-t[u]*e[n],o+=(t[n]+t[u])*i,s+=(e[n]+e[u])*i;return[o/(l*=3),s/l]},e.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return r.each(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.PathUtil=void 0;var r=n(0),i=r.__importStar(n(155));e.PathUtil=i,r.__exportStar(n(329),e),r.__exportStar(n(330),e);var a=n(156);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return a.default}});var o=n(157);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}});var s=n(331);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return s.default}});var u=n(367);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return u.default}});var l=n(368);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return l.default}});var c=n(369);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}});var h=n(181);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return h.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return h.assembleFont}});var f=n(38);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return f.isAllowCapture}});var p=n(92);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(182);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoordinateBBox=e.getCoordinateClipCfg=e.getAngleByPoint=e.isPointInCoordinate=e.getDistanceToCenter=e.isFullCircle=e.getXDimensionLength=void 0;var r=n(13),i=n(25),a=n(29);e.getXDimensionLength=function(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))},e.isFullCircle=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1},e.getDistanceToCenter=function(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))},e.isPointInCoordinate=function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,a=t.end;n=i.isBetween(e.x,r.x,a.x)&&i.isBetween(e.y,r.y,a.y)}else{var o=t.invert(e);n=i.isBetween(o.x,0,1)&&i.isBetween(o.y,0,1)}return n},e.getAngleByPoint=function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},e.getCoordinateClipCfg=function(t,e){void 0===e&&(e=0);var n,i=t.start,a=t.end,o=t.getWidth(),s=t.getHeight();if(t.isPolar){var u=t.startAngle,l=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:r.getSectorPath(c.x,c.y,h+e,u,u)},endState:function(t){var n=(l-u)*t+u;return{path:r.getSectorPath(c.x,c.y,h+e,u,n)}},attrs:{path:r.getSectorPath(c.x,c.y,h+e,u,l)}}}return n=t.isTransposed?{height:s+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:a.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:a.y-e,width:o+2*e,height:s+2*e}}},e.getCoordinateBBox=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),s=Math.min(n.x,r.x),u=Math.min(n.y,r.y);return a.BBox.fromRange(s-e,u-e,s+i+e,u+o+e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.inBox=function(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r.toRadian}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r.mod}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r.isNumberEqual}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r.requestAnimationFrame}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r.clearAnimationFrame}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"Function")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fontFamily:'\n "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=n(64),s=n(27),u=n(122),l=n(17),c=r.__importStar(n(81)),h=r.__importDefault(n(123)),f=n(14),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return h.default},e.prototype.onCanvasChange=function(t){u.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=f.getBBoxMethod(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,o=e.height,s=this.getHitLineWidth(),u=s/2,l=r-u,c=i-u;return{x:l,y:c,minX:l,minY:c,maxX:r+a+u,maxY:i+o+u,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||s.createDom(this),o.setClip(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,u=n.strokeOpacity,c=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&h.setAttribute(l.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),u&&h.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&h.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(l.SVG_ATTR_MAP[e],n);else r.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,u=r.shadowColor;(i||a||s||u)&&o.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&o.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.VERSION=void 0;var r=n(0);e.VERSION="4.1.25";var i=n(54);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return i.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return i.Event}});var a=n(42);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=n(219);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return o.default}});var s=n(33);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return s.default}});var u=n(118);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return u.default}});var l=n(78);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return l.default}});var c=n(114);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var h=n(88);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return h.Facet}});var f=n(11);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return f.default}});var p=n(54);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var d=n(54);Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var g=n(3);Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return g.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return g.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return g.getShapeFactory}});var y=n(120);Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return y.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return y.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return y.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return y.getGeometryLabelLayout}});var v=n(114);Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return v.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return v.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return v.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return v.getActionClass}});var m=n(88);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var x=n(214);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return x.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return x.registerTheme}});var _=n(151);Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return _.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return _.getEngine}});var b=n(220);Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var M=n(2);Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return M.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return M.DIRECTION}});r.__importStar(n(505));var C=n(24);Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return C.IGroup}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return C.ShapeAttrs}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return C.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return C.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return C.ScaleConfig}});var P=n(222),S=n(223),O=n(13),w=n(51),A=n(77),T=n(5);e.Util={getLegendItems:S.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:O.getAngle,getSectorPath:O.getSectorPath,polarToCartesian:O.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:A.getTooltipItems,getMappingValue:P.getMappingValue}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=void 0;var r=n(14);Object.defineProperty(e,"ICanvas",{enumerable:!0,get:function(){return r.ICanvas}}),Object.defineProperty(e,"IElement",{enumerable:!0,get:function(){return r.IElement}}),Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return r.IGroup}}),Object.defineProperty(e,"IShape",{enumerable:!0,get:function(){return r.IShape}}),Object.defineProperty(e,"PathCommand",{enumerable:!0,get:function(){return r.PathCommand}}),Object.defineProperty(e,"BBox",{enumerable:!0,get:function(){return r.BBox}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return r.Point}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return r.ShapeAttrs}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(190);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var a=n(102);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=n(102);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return o.Color}});var s=n(422);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}}),Object.defineProperty(e,"CoordinateCfg",{enumerable:!0,get:function(){return s.CoordinateCfg}});var u=n(103);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return u.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return u.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return u.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return u.ScaleConfig}}),Object.defineProperty(e,"Tick",{enumerable:!0,get:function(){return u.Tick}});var l=n(59);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return l.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return l.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return l.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return l.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return l.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return l.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return l.Scrollbar}});var c=n(59);Object.defineProperty(e,"CategoryLegendCfg",{enumerable:!0,get:function(){return c.CategoryLegendCfg}}),Object.defineProperty(e,"CircleAxisCfg",{enumerable:!0,get:function(){return c.CircleAxisCfg}}),Object.defineProperty(e,"LineAxisCfg",{enumerable:!0,get:function(){return c.LineAxisCfg}}),Object.defineProperty(e,"GroupComponentCfg",{enumerable:!0,get:function(){return c.GroupComponentCfg}}),Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return c.ListItem}}),Object.defineProperty(e,"AxisLineCfg",{enumerable:!0,get:function(){return c.AxisLineCfg}}),Object.defineProperty(e,"AxisTickLineCfg",{enumerable:!0,get:function(){return c.AxisTickLineCfg}}),Object.defineProperty(e,"AxisSubTickLineCfg",{enumerable:!0,get:function(){return c.AxisSubTickLineCfg}}),Object.defineProperty(e,"AxisTitleCfg",{enumerable:!0,get:function(){return c.AxisTitleCfg}}),Object.defineProperty(e,"AxisLabelCfg",{enumerable:!0,get:function(){return c.AxisLabelCfg}}),Object.defineProperty(e,"GridLineCfg",{enumerable:!0,get:function(){return c.GridLineCfg}}),Object.defineProperty(e,"LegendMarkerCfg",{enumerable:!0,get:function(){return c.LegendMarkerCfg}}),Object.defineProperty(e,"LegendTitleCfg",{enumerable:!0,get:function(){return c.LegendTitleCfg}}),Object.defineProperty(e,"LegendBackgroundCfg",{enumerable:!0,get:function(){return c.LegendBackgroundCfg}}),Object.defineProperty(e,"LegendItemNameCfg",{enumerable:!0,get:function(){return c.LegendItemNameCfg}}),Object.defineProperty(e,"LegendItemValueCfg",{enumerable:!0,get:function(){return c.LegendItemValueCfg}}),Object.defineProperty(e,"LegendPageNavigatorCfg",{enumerable:!0,get:function(){return c.LegendPageNavigatorCfg}}),Object.defineProperty(e,"ContinueLegendCfg",{enumerable:!0,get:function(){return c.ContinueLegendCfg}}),Object.defineProperty(e,"ContinueLegendTrackCfg",{enumerable:!0,get:function(){return c.ContinueLegendTrackCfg}}),Object.defineProperty(e,"ContinueLegendRailCfg",{enumerable:!0,get:function(){return c.ContinueLegendRailCfg}}),Object.defineProperty(e,"ContinueLegendLabelCfg",{enumerable:!0,get:function(){return c.ContinueLegendLabelCfg}}),Object.defineProperty(e,"ContinueLegendHandlerCfg",{enumerable:!0,get:function(){return c.ContinueLegendHandlerCfg}}),Object.defineProperty(e,"CrosshairLineCfg",{enumerable:!0,get:function(){return c.CrosshairLineCfg}}),Object.defineProperty(e,"CrosshairTextCfg",{enumerable:!0,get:function(){return c.CrosshairTextCfg}}),Object.defineProperty(e,"CrosshairTextBackgroundCfg",{enumerable:!0,get:function(){return c.CrosshairTextBackgroundCfg}}),Object.defineProperty(e,"SliderCfg",{enumerable:!0,get:function(){return c.SliderCfg}}),Object.defineProperty(e,"TrendCfg",{enumerable:!0,get:function(){return c.TrendCfg}}),Object.defineProperty(e,"EnhancedTextCfg",{enumerable:!0,get:function(){return c.EnhancedTextCfg}}),Object.defineProperty(e,"LineAnnotationTextCfg",{enumerable:!0,get:function(){return c.LineAnnotationTextCfg}}),Object.defineProperty(e,"IComponent",{enumerable:!0,get:function(){return c.IComponent}}),Object.defineProperty(e,"IList",{enumerable:!0,get:function(){return c.IList}});var h=l.Axis.Line,f=l.Axis.Circle;e.LineAxis=h,e.CircleAxis=f;var p=l.Grid.Line,d=l.Grid.Circle;e.LineGrid=p,e.CircleGrid=d;var g=l.Legend.Category,y=l.Legend.Continuous;e.CategoryLegend=g,e.ContinuousLegend=y;var v=l.Tooltip.Html;e.HtmlTooltip=v},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(1);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if(i.isString(t))return t.padEnd(e,n);if(i.isArray(t)){var r=t.length;if(r<e)for(var a=e-r,o=0;o<a;o++)t.push(n)}return t},e.omit=function(t,e){return"object"===r(t)&&e.forEach((function(e){delete t[e]})),t},e.uniq=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var a=i[r];n[a]||(e.push(a),n[a]=!0)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=n(16),s=n(63),u=n(14),l=r.__importStar(n(62)),c=r.__importDefault(n(121)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=u.getBBoxMethod(t)(this),r=e/2,i=n.x-r,a=n.y-r,o=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:o,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),s.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!o.intersectRect(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),s.applyAttrsToContext(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=o.intersectRect(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(o.isNil(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(1),i=n(17);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=r.toArray(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a<e){var o=r[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.toRadian=e.setMatrixArrayType=e.RANDOM=e.ARRAY_TYPE=e.EPSILON=void 0,e.EPSILON=1e-6,e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random,e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t};var r=Math.PI/180;e.toRadian=function(t){return t*r},e.equals=function(t,n){return Math.abs(t-n)<=e.EPSILON*Math.max(1,Math.abs(t),Math.abs(n))},Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toPoints=e.getRegionBBox=e.BBox=void 0;var r=n(1),i=n(2),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return r.each(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return r.each(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,a=e.height;switch(n){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=e[0],r=e[1],i=e[2],a=e[3];return new t(this.x+a,this.y+n,this.width-a-r,this.height-n-i)},t.prototype.expand=function(e){var n=e[0],r=e[1],i=e[2],a=e[3];return new t(this.x-a,this.y-n,this.width+a+r,this.height+n+i)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=a,e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"Number")}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e);return{x:n,y:a,width:i(t)-n,height:i(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyTranslate=e.applyRotate=e.applyMatrix2BBox=e.getAngleByMatrix=e.getMatrixByTranslate=e.getMatrixByAngle=void 0;var r=n(8),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}e.getMatrixByAngle=a,e.getMatrixByTranslate=o,e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),u=Math.max(n[0],r[0],i[0],a[0]),l=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:u,maxY:c,width:u-o,height:c-l}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(190),o=n(102),s=n(1),u=n(35),l=i.__importDefault(n(86)),c=n(2),h=n(25),f=i.__importDefault(n(118)),p=n(120),d=n(3),g=n(501),y=n(221),v=n(502),m=n(15);var x=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,u=void 0!==s&&s,l=e.visible,c=void 0===l||l,h=e.theme,f=e.scales,p=void 0===f?{}:f,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,x=e.minColumnWidth,_=e.columnWidthRatio,b=e.roseWidthRatio,M=e.multiplePieWidthRatio,C=e.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=u,n.visible=c,n.userTheme=h,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=x,n.columnWidthRatio=_,n.roseWidthRatio=b,n.multiplePieWidthRatio=M,n.zIndexReversed=C,n}return i.__extends(e,t),e.prototype.position=function(t){var e=t;s.isPlainObject(t)||(e={fields:v.parseFields(t)});var n=s.get(e,"fields");return 1===n.length&&(n.unshift("1"),s.set(e,"fields",n)),s.set(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(s.isString(t)||s.isPlainObject(t))&&(e=[t]),s.each(e,(function(t,n){s.isObject(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(s.isString(t)){var n=v.parseFields(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),a=r.cfg;this.styleOption=n||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(s.isString(t)){var n=v.parseFields(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(s.isString(t)){var r={},i=v.parseFields(t);r.fields=i,s.isFunction(e)?r.callback=e:s.isPlainObject(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;s.isEqual(i,a)?!e||!n&&s.isEqual(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=s.deepMix({},u.getDefaultAnimateCfg(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={},this.getOffscreenGroup().clear();for(var n=this.beforeMappingData,r=this.beforeMapping(n),a=[],o=0,l=r.length;o<l;o++){var c=r[o],h=this.mapping(c);a.push(h),this.createElements(h,o,t)}if(this.canDoGroupAnimation(t)){var f=this.container,p=this.type,d=this.coordinate,g=s.get(this.animateOption,"appear"),y=this.getYScale(),v=d.convert({x:0,y:y.scale(this.getYMinValue())});u.doGroupAppearAnimate(f,g,p,d,v)}this.labelOption&&this.renderLabels(s.flatten(a),t),this.dataArray=a,s.each(this.lastElementsMap,(function(t){t.animate=e.animateOption,t.destroy()})),this.lastElementsMap=this.elementsMap,this.lastAttributeOption=i.__assign({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return s.each(this.attributes,(function(e){c.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&s.isEmpty(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,a=r.length;i<a;i++){var o=r[i],s=o.field;o.isIdentity?n.push(o.values):n.push(e[s])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElementId=function(t){var e=(t=s.isArray(t)?t[0]:t)[c.FIELD_ORIGIN];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,a,o=this.type,u=this.getXScale(),l=this.getYScale(),h=u.field||"x",f=e[l.field||"y"];i="identity"===u.type?u.values[0]:e[h],a="interval"===o||"schema"===o?""+i:"line"===o||"area"===o||"path"===o?o:i+"-"+f;var p=this.groupScales;s.isEmpty(p)&&(p=s.get(this.getAttribute("color"),"scales",[]));r=0;for(var d=p.length;r<d;r++){a=a+"-"+e[p[r].field]}var g=this.getAdjust("dodge");if(g){var y=g.dodgeBy;y&&(a=a+"-"+e[y])}return this.getAdjust("jitter")&&(a=a+"-"+t.x+"-"+t.y),a},e.prototype.getScaleFields=function(){var t=[],e={},n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var a in n)if(n.hasOwnProperty(a)){var o=n[a];o.fields?h.uniq(o.fields,t,e):o.values&&h.uniq(o.values,t,e)}return r&&r.fields&&h.uniq(r.fields,t,e),s.isObject(i)&&i.fields&&h.uniq(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getGroupFields=function(){for(var t=[],e={},n=0,r=c.GROUP_ATTRS.length;n<r;n++){var i=c.GROUP_ATTRS[n],a=this.attributeOption[i];a&&a.fields&&h.uniq(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields;return[t[0],t[1]]},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t[c.FIELD_ORIGIN][n])-e.translate(r[c.FIELD_ORIGIN][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(d.getShapeFactory(t))return this.shapeFactory||(this.shapeFactory=s.clone(d.getShapeFactory(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var n=this.container,r=this.getDrawCfg(t),i=this.getShapeFactory(),a=new f.default({shapeFactory:i,container:n,offscreenGroup:this.getOffscreenGroup()});return a.animate=this.animateOption,a.geometry=this,a.draw(r,e),a},e.prototype.getDrawCfg=function(t){var e=t[c.FIELD_ORIGIN],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=s.get(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);for(var r=this.lastElementsMap,i=this.elementsMap,a=this.elements,o=0,s=t.length;o<s;o++){var u=t[o],l=this.getElementId(u);i[l]&&(l=l+"-"+e+"-"+o);var c=r[l];if(c){var h=this.getDrawCfg(u),f=c.getModel();(this.isCoordinateChanged||y.isModelChange(h,f))&&(c.animate=this.animateOption,c.update(h)),delete r[l]}else c=this.createElement(u,n);a.push(c),i[l]=c}if(this.zIndexReversed){var p=a.length;a.forEach((function(t,e){t.shape.setZIndex(p-e)}))}return a},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,a=s.get(t,["cfg","type"]);return a||(a="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),a},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(s.isNil(e)||s.isObject(e))s.isObject(e)&&s.isEqual(Object.keys(e),["values"])?s.set(this.attributeOption,t,{fields:e.values}):s.set(this.attributeOption,t,e);else{var r={};s.isNumber(e)?r.values=[e]:r.fields=v.parseFields(e),n&&(s.isFunction(n)?r.callback=n:r.values=n),s.set(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,a=this.theme,s=this.shapeType;this.groupScales=[];var u={},l=function(r){if(n.hasOwnProperty(r)){var l=n[r];if(!l)return{value:void 0};var h=i.__assign({},l),f=h.callback,p=h.values,d=h.fields,g=(void 0===d?[]:d).map((function(e){var n=t.scales[e];return n.isCategory&&!u[e]&&c.GROUP_ATTRS.includes(r)&&(t.groupScales.push(n),u[e]=!0),n}));h.scales=g,"position"!==r&&1===g.length&&"identity"===g[0].type?h.values=g[0].values:f||p||("size"===r?h.values=a.sizes:"shape"===r?h.values=a.shapes[s]||[]:"color"===r&&(g.length?h.values=g[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var y=o.getAttribute(r);e[r]=new y(h)}};for(var h in n){var f=l(h);if("object"===r(f))return f.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),n=this.groupData(t),r=[],i=0,a=n.length;i<a;i++){for(var o=n[i],s=[],u=0,l=o.length;u<l;u++){var h=o[u],f={};for(var p in h)f[p]=h[p];f[c.FIELD_ORIGIN]=h;for(var d=0,g=e;d<g.length;d++){var y=g[d],v=y.field;f[v]=y.translate(f[v])}s.push(f)}r.push(s)}var m=this.adjustData(r);return this.beforeMappingData=m,m},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,o=this.theme,u=this.maxColumnWidth||o.maxColumnWidth,l=this.minColumnWidth||o.minColumnWidth,c=this.columnWidthRatio||o.columnWidthRatio,h=t;if(e){var f=this.getXScale(),p=this.getYScale(),d=f.field,g=p?p.field:null,y=m.getXDimensionLength(this.coordinate),v=f.values.length,x=this.getAttribute("size"),_=void 0;x&&(_=x.values[0]);for(var b=0,M=e.length;b<M;b++){var C=e[b],P=i.__assign({xField:d,yField:g,intervalPadding:n,dodgePadding:r,xDimensionLength:y,groupNum:v,defaultSize:_,maxColumnWidth:u,minColumnWidth:l,columnWidthRatio:c},C),S=C.type;if("dodge"===S){var O=[];if(f.isCategory||"identity"===f.type)O.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");O.push("y")}P.adjustNames=O,P.dodgeRatio=c}else if("stack"===S){var w=this.coordinate;if(!p){P.height=w.getHeight();var A=this.getDefaultValue("size")||3;P.size=A}!w.isTransposed&&s.isNil(P.reverseOrder)&&(P.reverseOrder=!0)}var T=new(a.getAdjust(S))(P);h=T.process(h),this.adjusts[S]=T}}return h},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],a=0;a<e.length;a++){var o=e[a].field;i.push(o),s.get(n,[o,"values"])&&(r[o]=n[o].values)}return g.group(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=s.flatten(e),r=t.field,i=t.min,a=t.max,o=0;o<n.length;o++){var u=n[o],l=Math.min.apply(null,u[r]),c=Math.max.apply(null,u[r]);l<i&&(i=l),c>a&&(a=c)}var h=this.scaleDefs,f={};i<t.min&&!s.get(h,[r,"min"])&&(f.min=i),a>t.max&&!s.get(h,[r,"max"])&&(f.max=a),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var a=e[n+1];a&&(this.generateShapePoints(a),i[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(s.isArray(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],a={_origin:i[c.FIELD_ORIGIN],points:i.points,nextPoints:i.nextPoints};for(var o in e)if(e.hasOwnProperty(o)){var u=e[o],l=u.names,h=this.getAttributeValues(u,i);if(l.length>1)for(var f=0;f<h.length;f+=1){var p=h[f];a[l[f]]=s.isArray(p)&&1===p.length?p[0]:p}else a[l[0]]=1===h.length?h[0]:h}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,a=t.y,o=this.coordinate;if(s.isArray(i)&&s.isArray(a)){e=[],n=[];for(var u=0,l=0,c=i.length,h=a.length;u<c&&l<h;u+=1,l+=1)r=o.convert({x:i[u],y:a[l]}),e.push(r.x),n.push(r.y)}else if(s.isArray(a)){n=[];for(var f=0;f<a.length;f++){var p=a[f];r=o.convert({x:i,y:p}),e&&e!==r.x?(s.isArray(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if(s.isArray(i)){e=[];for(f=0;f<i.length;f++){var d=i[f];r=o.convert({x:d,y:a}),n&&n!==r.y?(s.isArray(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=o.convert({x:i,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,a=t.cfg;if(a)return a;var o=r.map((function(t){return e[t]}));return i.apply(void 0,o)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),a&&(this.scaleDefs=a,this.idFields=[],s.each(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?s.deepMix({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var r=this.getLabelType();n=new(p.getGeometryLabel(r))(this),this.geometryLabel=n}n.render(t,e);var i=n.labelsRenderer.shapesMap;s.each(this.elementsMap,(function(t,e){var n=function(t,e){var n=[];return s.each(e,(function(e,r){r.split(" ")[0]===t&&n.push(e)})),n}(e,i);if(n.length){t.labelShape=n;for(var r=0;r<n.length;r++)for(var a=n[r].getChildren(),o=0;o<a.length;o++){var u=a[o];u.cfg.name=["element","label"],u.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===s.get(this.animateOption,"appear")||s.get(this.animateOption,"appear")&&void 0===s.get(this.animateOption,["appear","animation"]))},e}(l.default);e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var r=n(0),i=n(1),a=n(2),o=n(220);e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},u={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};e.getDefaultAnimateCfg=function(t,n,r){var a=s[t];return a&&(i.isFunction(a)&&(a=a(n)),a=i.deepMix({},e.DEFAULT_ANIMATE_CFG,a),r)?a[r]:a},e.doAnimate=function(t,e,n){var r=i.get(t.get("origin"),"data",a.FIELD_ORIGIN),s=e.animation,u=function(t,e){return{delay:i.isFunction(t.delay)?t.delay(e):t.delay,easing:i.isFunction(t.easing)?t.easing(e):t.easing,duration:i.isFunction(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var l=o.getAnimation(s);l&&l(t,u,n)}else t.animate(n.toAttrs,u)},e.doGroupAppearAnimate=function(t,n,a,s,l){if(u[a]){var c=u[a](s),h=o.getAnimation(i.get(c,"animation",""));if(h){var f=r.__assign(r.__assign(r.__assign({},e.DEFAULT_ANIMATE_CFG.appear),c),n);t.stopAnimate(),h(t,f,{coordinate:s,minYPoint:l,toAttrs:null})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(1),i=n(2),a=n(89),o=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=r.deepMix({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,a=this.view.createView({region:e,padding:i});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(i.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;r.each(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return r.each(t,(function(t){var a=t[e];r.isNil(a)||i[a]||(n.push(a),i[a]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=1/(0===e?1:e),a=1/(0===t?1:t);return{start:{x:i*n,y:a*r},end:{x:i*(n+1),y:a*(r+1)}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,o=t.geometries;if("rect"===r.get(i,"type","rect")&&o.length){r.isNil(n.axes)&&(n.axes={});var s=n.axes,u=o[0].getXYFields(),l=u[0],c=u[1],h=a.getAxisOption(s,l),f=a.getAxisOption(s,c);!1!==h&&(n.axes[l]=this.getXAxisOption(l,s,h,e)),!1!==f&&(n.axes[c]=this.getYAxisOption(c,s,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return r.every(t,(function(t){var n=t.field,i=t.value;return!(!r.isNil(i)&&n)||e[n]===i}))}},t}();e.Facet=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r.default}});var i=n(382);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return i.default}});var a=n(383);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return a.default}});var o=n(384);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return o.default}});var s=n(385);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return s.default}});var u=n(386);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return u.default}});var l=n(387);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return l.default}});var c=n(187);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return c.default}});var h=n(185);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return h.default}});var f=n(186);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return f.default}});var p=n(184);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return p.default}});var d=n(100);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return d.default}});var g=n(388);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return g.default}});var y=n(188);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return y.default}});var v=n(389);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return v.default}});var m=n(189);Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return m.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t,e){return r.isString(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,a=t.names,o=void 0===a?[]:a,s=t.scales,u=void 0===s?[]:s,l=t.values,c=void 0===l?[]:l,h=t.callback;this.type=i,this.scales=u,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var i=h.apply(void 0,t);if(!r.isNil(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:r.isArray(t)?t.map((function(t){return i(e,t)})):i(e,t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var r=n(1),i=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){r.each(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();e.Controller=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(67));e.default=function(t,e){if(t)if(i.default(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(a.default(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(323);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return r.default}});var i=n(324);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return i.default}});var a=n(152);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return a.default}});var o=n(325);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return o.default}});var s=n(326);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return s.default}});var u=n(327);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return u.default}});var l=n(57);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return l.default}});var c=n(153);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return c.default}});var h=n(328);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return h.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=void 0;var r=n(0),i=n(1),a=n(24),o=n(15),s=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.createScaleByField=function(t,e,n){var o=e||[];if(i.isNumber(t)||i.isNil(i.firstValue(o,t))&&i.isEmpty(n))return new(a.getScale("identity"))({field:t.toString(),values:[t]});var u=i.valuesOfKey(o,t),l=i.get(n,"type",function(t){var e="linear";return s.test(t)?e="timeCat":i.isString(t)&&(e="cat"),e}(u[0]));return new(a.getScale(l))(r.__assign({field:t,values:u},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,a=t.values.length;if(1===a)r=[.5,1];else{var s=0;r=o.isFullCircle(e)?e.isTransposed?[(s=1/a*i.get(n,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/a]:[s=1/a/2,1-s]}return r},e.getMaxScale=function(t){var e=t.values.filter((function(t){return!i.isNil(t)&&!isNaN(t)}));return Math.max.apply(Math,r.__spreadArrays(e,[i.isNil(t.max)?-1/0:t.max]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(95);Object.defineProperty(e,"color",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"rgb",{enumerable:!0,get:function(){return r.rgb}}),Object.defineProperty(e,"hsl",{enumerable:!0,get:function(){return r.hsl}});var i=n(350);Object.defineProperty(e,"lab",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"hcl",{enumerable:!0,get:function(){return i.hcl}}),Object.defineProperty(e,"lch",{enumerable:!0,get:function(){return i.lch}}),Object.defineProperty(e,"gray",{enumerable:!0,get:function(){return i.gray}});var a=n(351);Object.defineProperty(e,"cubehelix",{enumerable:!0,get:function(){return a.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gamma=e.hue=void 0;var r=n(0).__importDefault(n(173));function i(t,e){return function(n){return t+n*e}}function a(t,e){var n=e-t;return n?i(t,n):r.default(isNaN(t)?e:t)}e.hue=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):r.default(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):r.default(isNaN(e)?n:e)}},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4).__importStar(n(1)),i=n(101),a=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r;this.adjustNames=i,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a={},o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!n&&this.isAdjust("y")){a.y=[i.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(8),i=n(1),a=n(15);function o(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var a=e.convert({x:t[r],y:t[r+1]});n.push(a.x,a.y)}return n}function s(t,e){var n=e.isTransposed,r=t[1],i=t[6],a=t[7],o=e.convert({x:i,y:a});return["A",r,r,0,0,n?0:1,o.x,o.y]}function u(t,n,r){for(var i=!!n,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var u,l,c,h=e.smoothBezier(a,.4,i,r),f=a.length,p=[];for(o=0;o<f-1;o++)u=h[2*o],l=h[2*o+1],c=a[o+1],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return i&&(u=h[f],l=h[f+1],c=a[0],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),p}function l(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var a=t[r];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}(t,e)}e.smoothBezier=function(t,e,n,i){var a,o,s,u,l,c,h,f=[],p=!!i;if(p){s=i[0],u=i[1];for(var d=0,g=t.length;d<g;d++){var y=t[d];s=r.vec2.min([0,0],s,y),u=r.vec2.max([0,0],u,y)}}d=0;for(var v=t.length;d<v;d++){y=t[d];if(0!==d||n)if(d!==v-1||n){a=t[n?d?d-1:v-1:d-1],o=t[n?(d+1)%v:d+1];var m=[0,0];m=r.vec2.sub(m,o,a),m=r.vec2.scale(m,m,e);var x=r.vec2.distance(y,a),_=r.vec2.distance(y,o),b=x+_;0!==b&&(x/=b,_/=b);var M=r.vec2.scale([0,0],m,-x),C=r.vec2.scale([0,0],m,_);c=r.vec2.add([0,0],y,M),l=r.vec2.add([0,0],y,C),l=r.vec2.min([0,0],l,r.vec2.max([0,0],o,y)),l=r.vec2.max([0,0],l,r.vec2.min([0,0],o,y)),M=r.vec2.sub([0,0],l,y),M=r.vec2.scale([0,0],M,-x/_),c=r.vec2.add([0,0],y,M),c=r.vec2.min([0,0],c,r.vec2.max([0,0],a,y)),c=r.vec2.max([0,0],c,r.vec2.min([0,0],a,y)),C=r.vec2.sub([0,0],y,c),C=r.vec2.scale([0,0],C,_/x),l=r.vec2.add([0,0],y,C),p&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,u),l=r.vec2.max([0,0],l,s),l=r.vec2.min([0,0],l,u)),f.push(h),f.push(c),h=l}else c=y,f.push(h),f.push(c);else h=y}return n&&f.push(f.shift()),f},e.catmullRom2bezier=u,e.getLinePath=l,e.getSplinePath=function(t,e,n){var r=[],i=t[0],a=null;if(t.length<=2)return l(t,e);for(var o=0,s=t.length;o<s;o++){var c=t[o];a&&a.x===c.x&&a.y===c.y||(r.push(c.x),r.push(c.y),a=c)}var h=u(r,e,n||[[0,0],[1,1]]);return h.unshift(["M",i.x,i.y]),h},e.convertNormalPath=function(t,e){var n=[];return i.each(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(o(e,t));break;case"a":n.push(s(e,t));break;case"z":default:n.push(e)}})),n},e.convertPolarPath=function(t,e){var n,r,u,l=[];return i.each(e,(function(i,c){switch(i[0].toLowerCase()){case"m":case"c":case"q":l.push(o(i,t));break;case"l":n=e[c-1],r=i,u=t.isTransposed,(u?n[n.length-2]===r[1]:n[n.length-1]===r[2])?l=l.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,s="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},u={x:e[1],y:e[2]},l=[],c=r?"y":"x",h=Math.abs(u[c]-s[c])*(o-i),f=u[c]>=s[c]?1:0,p=h>Math.PI?1:0,d=n.convert(u),g=a.getDistanceToCenter(n,d);if(g>=.5)if(h===2*Math.PI){var y={x:(u.x+s.x)/2,y:(u.y+s.y)/2},v=n.convert(y);l.push(["A",g,g,0,p,f,v.x,v.y]),l.push(["A",g,g,0,p,f,d.x,d.y])}else l.push(["A",g,g,0,p,f,d.x,d.y]);return l}(n,r,t)):l.push(o(i,t));break;case"a":l.push(s(i,t));break;case"z":default:l.push(i)}})),function(t){i.each(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(l),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getlLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(1),i=n(51);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getlLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t.getChildren()[0];if(a){var o=a.clone();(null==e?void 0:e.rotate)&&i.rotate(o,-e.rotate);var s=o.getCanvasBBox(),u=s.x,l=s.y,c=s.width,h=s.height;o.destroy();var f=n;return r.isNil(f)?f=[2,2,2,2]:r.isNumber(f)&&(f=new Array(4).fill(f)),{x:u-f[3],y:l-f[0],width:c+f[1]+f[3],height:h+f[0]+f[2],rotation:(null==e?void 0:e.rotate)||0}}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return r.some(e,(function(t){var e=t.getBBox();return a(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(8).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(1),i=n(49);function a(t){return!t&&(null==t||isNaN(t))}function o(t){if(r.isArray(t))return a(t[1].y);var e=t.y;return r.isArray(e)?a(e[0]):a(e)}e.getPathPoints=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,a=t.length;i<a;i++){o(l=t[i])||r.push(l)}return[r]}var s=[],u=[];for(i=0,a=t.length;i<a;i++){var l;o(l=t[i])?u.length&&((1!==u.length||n)&&s.push(u),u=[]):u.push(l)}return u.length&&s.push(u),s},e.getViolinPath=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return a&&(e.push(["L",a.x,a.y]),e.push(["z"])),e},e.getSmoothViolinPath=function(t){for(var e=t.length/2,n=[],r=[],a=0;a<t.length;a++)a<e?n.push(t[a]):r.push(t[a]);var o=i.getSplinePath(n,!1),s=i.getSplinePath(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),s.shift();var u=o.concat(s);return n.length&&u.push(["L",n[0].x,n[0].y]),u.push(["z"]),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var r=n(2);e.getFactTitleConfig=function(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(242);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r.default}});var i=n(154);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return i.registerGeometry}});var a=n(117);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return a.default}});var o=n(217);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return o.registerComponentController}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(84)),a=r.__importDefault(n(23));e.default=function(t){if(!i.default(t)||!a.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(34));e.default=function(t){return r.default(t)?"":t.toString()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(193),a=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){r.assign(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return r.map(this.ticks,(function(e,n){return r.isObject(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return r.isNil(i)||!r.isFunction(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){r.assign(this,this.__cfg__),this.setDomain(),r.isEmpty(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(r.isString(t)){var n=i.getTickMethod(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else r.isFunction(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return r.isNumber(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TOOLTIP_CSS_CONST=e.Crosshair=e.Tooltip=e.Legend=e.Grid=e.Annotation=e.Axis=void 0;var r=n(0),i=r.__importStar(n(428));e.Annotation=i;var a=r.__importStar(n(458));e.Axis=a;var o=r.__importStar(n(465));e.Crosshair=o;var s=r.__importStar(n(470));e.Grid=s;var u=r.__importStar(n(473));e.Legend=u;var l=r.__importStar(n(476));e.Tooltip=l;var c=n(108);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return c.default}});var h=n(9);Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return h.default}});var f=n(76);Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return f.default}});var p=n(480);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return p.Slider}});var d=n(487);Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return d.Scrollbar}}),r.__exportStar(n(489),e),r.__exportStar(n(490),e);var g=n(201);Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return g.propagationDelegate}});var y=r.__importStar(n(113));e.TOOLTIP_CSS_CONST=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var r=n(1),i=n(448);function a(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}e.getMaxLabelWidth=function(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return r.isNil(e)?"":""+e})),n=0,i=0,a=0;a<e.length;a+=1){for(var o=0,s=0;s<=e[a].length;s+=1){var u=e[a].charCodeAt(s);o+=u>=19968&&u<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return r.each(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e},e.getLabelLength=a,e.testLabel=function(t,e){return t.getBBox().width<e},e.ellipsisLabel=function(t,e,n,r){void 0===r&&(r="tail");var o=e.attr("text"),s=a(t,e),u=i.strLen(o),l=!1;if(n<s){var c=Math.floor(n/s*u)-2,h=void 0;(h=c>=0?i.ellipsisString(o,c,r):"…")&&(e.attr("text",h),l=!0)}return l?e.set("tip",o):e.set("tip",null),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(507);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(508);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return a.default}});var o=n(509);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return o.default}});var s=n(510);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return s.default}});var u=n(511);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return u.default}});var l=n(512);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return l.default}});var c=n(514);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return c.default}});var h=n(515);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return h.default}});var f=n(516);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return f.default}});var p=n(519);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return p.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var r=n(0),i=n(1),a=n(225),o=r.__importDefault(n(226)),s=n(16),u=r.__importStar(n(79)),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&h(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&c(r.cfg.children,e);else{var i=f(r,e);r.cfg.refresh=i,i&&r.isGroup()&&c(r.cfg.children,e)}}}function h(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&h(r.get("children"),e)}}function f(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&s.intersectRect(n,e)}function p(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?e=s.mergeRegion(n,i):r?e=n:a&&(e=i)}return e}e.applyAttrsToContext=function(t,e){var n=e.attr();for(var r in n){var o=n[r],s=l[r]?l[r]:r;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?i.isArray(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=a.parseStyle(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}},e.drawChildren=function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}},e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");i.each(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?h(e,n):c(e,n)},e.checkChildrenRefresh=c,e.clearChanged=function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}},e.drawPath=function(t,e,n,r){var i=n.path,a=n.startArrow,s=n.endArrow;if(i){var l=[0,0],c=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<i.length;f++){var p=i[f],d=p[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(f===i.length-2&&"Z"===i[f+1][0]&&s&&s.d){if("Z"===i[f+1][0]){g=t.getEndTangent();h=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(f===i.length-1&&s&&s.d&&"Z"!==i[0]){g=t.getEndTangent();h=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var y=h.dx,v=h.dy;switch(d){case"M":e.moveTo(p[1]-y,p[2]-v),c=[p[1],p[2]];break;case"L":e.lineTo(p[1]-y,p[2]-v);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-y,p[4]-v);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-y,p[6]-v);break;case"A":var m=void 0;r?(m=r[f])||(m=o.default(l,p),r[f]=m):m=o.default(l,p);var x=m.cx,_=m.cy,b=m.rx,M=m.ry,C=m.startAngle,P=m.endAngle,S=m.xRotation,O=m.sweepFlag;if(e.ellipse)e.ellipse(x,_,b,M,S,C,P,1-O);else{var w=b>M?b:M,A=b>M?1:b/M,T=b>M?M/b:1;e.translate(x,_),e.rotate(S),e.scale(A,T),e.arc(0,0,w,C,P,1-O),e.scale(1/A,1/T),e.rotate(-S),e.translate(-x,-_)}break;case"Z":e.closePath()}if("Z"===d)l=c;else{var E=p.length;l=[p[E-2],p[E-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=p,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return i.each(t,(function(t){var i=p(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:i.min(e),minY:i.min(n),maxX:i.max(r),maxY:i.max(a)}},e.mergeView=function(t,e){return t&&e&&s.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(27);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){r.createDom(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectWithCornerRadius=e.getFunnelPath=e.getIntervalRectPath=e.getBackgroundRectPath=e.parseRadius=e.getRectPath=e.getRectPoints=void 0;var r=n(1),i=n(13);function a(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,a=t.length;i<a;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function o(t,e){var n=0,i=0,a=0,o=0;return r.isArray(t)?1===t.length?n=i=a=o=t[0]:2===t.length?(n=a=t[0],i=o=t[1]):3===t.length?(n=t[0],i=o=t[1],a=t[2]):(n=t[0],i=t[1],a=t[2],o=t[3]):n=i=a=o=t,n+i>e&&(i=e-(n=n?e/(1+i/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,i||0,a||0,o||0]}e.getRectPoints=function(t){var e,n,i,a,o=t.x,s=t.y,u=t.y0,l=t.size;r.isArray(s)?(e=s[0],n=s[1]):(e=u,n=s),r.isArray(o)?(i=o[0],a=o[1]):(i=o-l/2,a=o+l/2);var c=[{x:i,y:e},{x:i,y:n}];return c.push({x:a,y:n},{x:a,y:e}),c},e.getRectPath=a,e.parseRadius=o,e.getBackgroundRectPath=function(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},u=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},l=r.get(t,["background","style","radius"]);if(l){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),f=o(l,Math.min(c,h)),p=f[0],d=f[1],g=f[2],y=f[3];a.push(["M",s.x,u.y+p]),0!==p&&a.push(["A",p,p,0,0,1,s.x+p,u.y]),a.push(["L",u.x-d,u.y]),0!==d&&a.push(["A",d,d,0,0,1,u.x,u.y+d]),a.push(["L",u.x,s.y-g]),0!==g&&a.push(["A",g,g,0,0,1,u.x-g,s.y]),a.push(["L",s.x+y,s.y]),0!==y&&a.push(["A",y,y,0,0,1,s.x,s.y-y])}else a.push(["M",s.x,s.y]),a.push(["L",u.x,s.y]),a.push(["L",u.x,u.y]),a.push(["L",s.x,u.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var v=n.getCenter(),m=i.getAngle(t,n),x=m.startAngle,_=m.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};p=Math.sqrt(b(v.x-e[0].x)+b(v.y-e[0].y)),d=Math.sqrt(b(v.x-e[2].x)+b(v.y-e[2].y));a=i.getSectorPath(v.x,v.y,p,n.startAngle,n.endAngle,d)}else a=i.getSectorPath(v.x,v.y,n.getRadius(),x,_)}return a},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,s=[],u=(t[2].x-t[1].x)/2,l=n.isTransposed?u*i/r:u*r/i;return"round"===e?(o?(s.push(["M",t[0].x,t[0].y+l]),s.push(["L",t[1].x,t[1].y-l]),s.push(["A",u,u,0,0,1,t[2].x,t[2].y-l]),s.push(["L",t[3].x,t[3].y+l]),s.push(["A",u,u,0,0,1,t[0].x,t[0].y+l])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",u,u,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",u,u,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=a(t),s},e.getFunnelPath=function(t,e,n){var i=[];return r.isNil(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i},e.getRectWithCornerRadius=function(t,e,n){var r,i,a,s,u=t[0],l=t[1],c=t[2],h=t[3],f=[0,0,0,0],p=f[0],d=f[1],g=f[2],y=f[3];u.y<l.y?(l=t[0],u=t[1],h=t[2],c=t[3],y=(r=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],g=r[1],d=r[2],p=r[3]):(p=(i=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],d=i[1],g=i[2],y=i[3]),e.isTransposed&&(u=t[0],h=t[1],c=t[2],l=t[3],t[0].x>t[1].x?(h=t[0],u=t[1],l=t[2],c=t[3],p=(a=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],y=a[1],g=a[2],d=a[3]):(d=(s=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],g=s[1],y=s[2],p=s[3]));var v=[];return v.push(["M",l.x,l.y+p]),0!==p&&v.push(["A",p,p,0,0,1,l.x+p,l.y]),v.push(["L",c.x-d,c.y]),0!==d&&v.push(["A",d,d,0,0,1,c.x,c.y+d]),v.push(["L",h.x,h.y-g]),0!==g&&v.push(["A",g,g,0,0,1,h.x-g,h.y]),v.push(["L",u.x+y,u.y]),0!==y&&v.push(["A",y,y,0,0,1,u.x,u.y-y]),v.push(["L",l.x,l.y+p]),v.push(["z"]),v}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(5),s=n(5),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r.__extends(e,t),e.prototype.getTriggerListInfo=function(){var t=s.getDelegationObject(this.context),e=null;return s.isList(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=o.getComponents(e),r=[];return i.each(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();i.each(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=s.getScaleByField(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,a=s.getScaleByField(i,r),o=s.getElementValue(e,r),u=a.getText(o);this.setItemsState(t,u,n)},e.prototype.setStateEnable=function(t){var e=this,n=s.getCurrentElement(this.context);if(n){var r=this.getAllowComponents();i.each(r,(function(r){e.setStateByElement(r,n,t)}))}else{var a=s.getDelegationObject(this.context);if(s.isList(a)){var o=a.item,u=a.component;this.allowSetStateByElement(u)&&this.allowSetStateByItem(o,u)&&this.setItemState(u,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,a=t.getItems();i.each(a,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=u},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=r(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(31),a=r.__importStar(n(165));e.default={box:function(t,e,n,r){return i.getBBoxByArray([t,n],[e,r])},length:function(t,e,n,r){return i.distance(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,a,o){var s=(n-t)*(a-t)+(r-e)*(o-e);return s<0?i.distance(t,e,a,o):s>(n-t)*(n-t)+(r-e)*(r-e)?i.distance(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var u=[-s[1],s[0]];a.normalize(u,u);var l=[i-t,o-e];return Math.abs(a.dot(l,u))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+f(t[0])+f(t[1])+f(t[2])}var c,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},f=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=l(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:h,gradient:function(t){var e=r.isString(t)?t.split("-"):t,n=r.map(e,(function(t){return h(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return l([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])}(n,t)}},toRGB:r.memoize(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(u=a.exec(t))[1]+90;n=u[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",n=(u=o.exec(t))[4]}var l=n.match(s);return r.each(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickInterval=e.YEAR=e.MONTH=e.DAY=e.HOUR=e.MINUTE=e.SECOND=e.toTimeStamp=e.timeFormat=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(195)),o=r.__importStar(n(195)),s=r.__importDefault(n(404));e.timeFormat=function(t,e){return(o.format||a.default.format)(t,e)},e.toTimeStamp=function(t){return i.isString(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),i.isDate(t)&&(t=t.getTime()),t};e.SECOND=1e3;e.MINUTE=6e4;var u=36e5;e.HOUR=u;var l=24*u;e.DAY=l;var c=31*l;e.MONTH=c;e.YEAR=31536e6;var h=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",u],["HH",6*u],["HH",12*u],["YYYY-MM-DD",l],["YYYY-MM-DD",4*l],["YYYY-WW",7*l],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*l]];e.getTickInterval=function(t,e,n){var r=(e-t)/n,a=s.default((function(t){return t[1]}))(h,r)-1,o=h[a];return a<0?o=h[0]:a>=h.length&&(o=i.last(h)),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return i.__extends(e,t),e.prototype.scale=function(t){if(a.isNil(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=a.head(e),r=a.last(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),a.isNil(this.minLimit)||(this.min=n),a.isNil(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=a.getRange(this.values),e=t.min,n=t.max;a.isNil(this.min)&&(this.min=e),a.isNil(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=a.filter(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(r.__importDefault(n(58)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var r=n(1);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,n){r.isNil(n)&&(n=Math.max.apply(null,t));var i=n;return r.each(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i},e.precisionAdd=function(t,e){var n=i(t),r=i(e),a=Math.pow(10,Math.max(n,r));return(t*a+e*a)/a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=r.__spreadArray([],a),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){a.assign(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||r.__spreadArray([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=void 0;var r=n(0),i=n(1),a=n(60),o=n(32),s=n(10);e.renderTag=function(t,e){var n=e.x,u=e.y,l=e.content,c=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,x=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:u}}),_=x.addShape({type:"text",id:h,name:f,attrs:r.__assign({x:0,y:0,text:l},c)}),b=s.formatPadding(i.get(m,"padding",0));if(d&&g){var M=d-(b[1]+b[3]);a.ellipsisLabel(!y,_,M,v)}if(m){var C=i.get(m,"style",{}),P=_.getCanvasBBox(),S=P.minX,O=P.minY,w=P.width,A=P.height;x.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:r.__assign({x:S-b[3],y:O-b[0],width:w+b[1]+b[3],height:A+b[0]+b[2]},C)}).toBack()}o.applyTranslate(x,n,u),o.applyRotate(x,p,n,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(44),o=n(1),s=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return s.createBBox(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");s.clearDom(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(o.isNil(t)){t=this.createDom();var e=this.get("parent");o.isString(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else o.isString(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?o.deepMix({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&s.hasClass(e,n)){var r=t[n];a.modifyCSS(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){o.each(e,(function(e,n){var r=t.getElementsByClassName(n);o.each(r,(function(t){a.modifyCSS(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");a.modifyCSS(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return a.createDom(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){o.hasKey(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(r.__importDefault(n(108)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(0),i=n(1),a=n(2),o=n(45);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return i.isNumberEqual(r,a)}function u(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,u=r.invert(e),l=o.invert(u.y);return i.find(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=i.memoize((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function c(t){for(var e,n=0,r=function(t){var e=i.values(t.attributes);return i.filter(e,(function(t){return i.contains(a.GROUP_ATTRS,t.type)}))}(t);n<r.length;n++){var o=r[n],s=o.getScale(o.type);if(s&&s.isLinear){e=s;break}}var u=t.getXScale(),l=t.getYScale();return e||l||u}function h(t,e,n){if(0===e.length)return null;var r=n.type,o=n.getXScale(),c=n.getYScale(),h=o.field,f=c.field,p=null;if("heatmap"===r||"point"===r){for(var d=n.coordinate.invert(t),g=o.invert(d.x),y=c.invert(d.y),v=1/0,m=0;m<e.length;m++){var x=e[m],_=x[a.FIELD_ORIGIN],b=Math.pow(_[h]-g,2)+Math.pow(_[f]-y,2);b<v&&(v=b,p=x)}return p}var M=e[0],C=e[e.length-1],P=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,a=i[i.length-1],o=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),S=M[a.FIELD_ORIGIN][h],O=M[a.FIELD_ORIGIN][f],w=C[a.FIELD_ORIGIN][h],A=c.isLinear&&i.isArray(O);if(i.isArray(S)){for(m=0;m<e.length;m++){_=(B=e[m])[a.FIELD_ORIGIN];if(o.translate(_[h][0])<=P&&o.translate(_[h][1])>=P){if(!A){p=B;break}i.isArray(p)||(p=[]),p.push(B)}}i.isArray(p)&&(p=u(p,t,n))}else{var T=void 0;if(o.isLinear||"timeCat"===o.type){if((P>o.translate(w)||P<o.translate(S))&&(P>o.max||P<o.min))return null;for(var E=0,I=e.length-1,L=void 0;E<=I;){var D=e[L=Math.floor((E+I)/2)][a.FIELD_ORIGIN][h];if(s(D,P,o))return e[L];o.translate(D)<=o.translate(P)?(E=L+1,C=e[L],T=e[L+1]):(0===I&&(C=e[0]),I=L-1)}}else{for(m=0;m<e.length;m++){var B;if(s((_=(B=e[m])[a.FIELD_ORIGIN])[h],P,o)){if(!A){p=B;break}i.isArray(p)||(p=[]),p.push(B)}else o.translate(_[h])<=P&&(C=B,T=e[m+1])}i.isArray(p)&&(p=u(p,t,n))}C&&T&&Math.abs(o.translate(C[a.FIELD_ORIGIN][h])-P)>Math.abs(o.translate(T[a.FIELD_ORIGIN][h])-P)&&(C=T)}var j=l(n.getXScale());return!p&&Math.abs(o.translate(C[a.FIELD_ORIGIN][h])-P)<=j/2&&(p=C),p}function f(t,e,n,s){void 0===n&&(n=""),void 0===s&&(s=!1);var u,l=t[a.FIELD_ORIGIN],h=function(t,e,n){var r=e.getAttribute("position").getFields(),a=e.scales,o=i.isFunction(n)||!n?r[0]:n,s=a[o],u=s?s.getText(t[o]):t[o]||o;return i.isFunction(n)?n(u,t):u}(l,e,n),f=e.tooltipOption,p=e.theme.defaultColor,d=[];function g(e,n){if(s||!i.isNil(n)&&""!==n){var r={title:h,data:l,mappingData:t,name:e,value:n,color:t.color||p,marker:!0};d.push(r)}}if(i.isObject(f)){var y=f.fields,v=f.callback;if(v){var m=y.map((function(e){return t[a.FIELD_ORIGIN][e]})),x=v.apply(void 0,m),_=r.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:h,color:t.color||p,marker:!0},x);d.push(_)}else for(var b=e.scales,M=0,C=y;M<C.length;M++){var P=C[M];if(!i.isNil(l[P])){var S=b[P];g(o.getName(S),u=S.getText(l[P]))}}}else{var O=c(e);u=function(t,e){var n=t[e.field];return i.isArray(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(l,O),g(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var a=c(e);return o.getName(a)}(l,e),u)}return d}function p(t,e,n,r){var a=r.showNil,o=[],s=t.dataArray;if(!i.isEmpty(s)){t.sort(s);for(var u=0,l=s;u<l.length;u++){var c=h(e,l[u],t);if(c){var p=t.getElementId(c),d=t.elementsMap[p];if("heatmap"===t.type||d.visible){var g=f(c,t,n,a);g.length&&o.push(g)}}}}return o}function d(t,e,n,r){var i=r.showNil,a=[],o=t.container.getShape(e.x,e.y);if(o&&o.get("visible")&&o.get("origin")){var s=f(o.get("origin").mappingData,t,n,i);s.length&&a.push(s)}return a}function g(t,e,n){for(var r=[],i=t.geometries,a=n.shared,o=n.title,s=n.reversed,u=0,l=i;u<l.length;u++){var c=l[u];if(c.visible&&!1!==c.tooltipOption){var h=c.type,f=void 0;(f=["point","edge","polygon"].includes(h)?d(c,e,o,n):["area","line","path","heatmap"].includes(h)||!1!==a?p(c,e,o,n):d(c,e,o,n)).length&&(s&&f.reverse(),r.push(f))}}return r}e.findDataByPoint=h,e.getTooltipItems=f,e.findItemsFromView=g,e.findItemsFromViewRecurisive=function(t,e,n){for(var r=g(t,e,n),i=0,a=t.views;i<a.length;i++){var o=a[i];r=r.concat(g(o,e,n))}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(35),s=n(13),u=r.__importDefault(n(503));function l(t){var e=0;return i.each(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],a=this.getLabelCfgs(t);return i.each(t,(function(t,o){var s=a[o];if(!s||i.isNil(t.x)||i.isNil(t.y))n.push(null);else{var u=i.isArray(s.content)?s.content:[s.content];s.content=u;var l=u.length;i.each(u,(function(a,o){if(i.isNil(a)||""===a)n.push(null);else{var u=r.__assign(r.__assign({},s),e.getLabelPoint(s,t,o));u.textAlign||(u.textAlign=e.getLabelAlign(u,o,l)),u.offset<=0&&(u.labelLine=null),n.push(u)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes();r.render(n,i,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,a=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?i.get(a,"innerLabels",{}):i.get(a,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,a=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?i.deepMix({},n,a.innerLabels,t):i.deepMix({},n,a.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return i.isArray(a)&&(a=1===t.content.length?r?l(a):a.length<=2?a[e.length-1]:l(a):a[n]),a}var u={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=i.isArray(e.shape)?e.shape[0]:e.shape,h="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var f=s.getPolygonCentroid(e.x,e.y);u.x=f[0],u.y=f[1]}else"interval"!==this.geometry.type||h?(u.x=o(e.x,n),u.y=o(e.y,n)):(u.x=o(e.x,n,!0),u.y=o(e.y,n));if(h){var p=i.get(e,"nextPoints"),d=i.get(e,"points");if(p){var g=r.convert(d[1]),y=r.convert(p[1]);u.x=(g.x+y.x)/2,u.y=(g.y+y.y)/2}else if("pyramid"===c){g=r.convert(d[1]),y=r.convert(d[2]);u.x=(g.x+y.x)/2,u.y=(g.y+y.y)/2}}t.position&&this.setLabelPosition(u,e,n,t.position);var v=this.getLabelOffsetPoint(t,n,a);return u.start={x:u.x,y:u.y},u.x+=v.x,u.y+=v.y,u.color=e.color,u},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" "+o[r.field]:"path"===n&&(s+=" "+o[r.field]+"-"+o[i.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new u.default({container:e,layout:i.get(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=r,l.animate=!!a&&o.getDefaultAnimateCfg("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,u=n.coordinate,l=o,c=l.fields,h=l.callback,f=l.cfg,p=c.map((function(t){return s[t]})),d=[];return i.each(t,(function(t,n){var o,s=t[a.FIELD_ORIGIN],l=e.getLabelText(s,p);if(h){var g=c.map((function(t){return s[t]}));if(o=h.apply(void 0,g),i.isNil(o))return void d.push(null)}var y=r.__assign(r.__assign({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:u},f),o);i.isFunction(y.position)&&(y.position=y.position(s,t,n));var v=e.getLabelOffset(y.offset||0),m=e.getDefaultLabelCfg(v,y.position);(y=i.deepMix({},m,y)).offset=e.getLabelOffset(y.offset||0);var x=y.content;i.isFunction(x)?y.content=x(s,t,n):i.isUndefined(x)&&(y.content=l[0]),d.push(y)})),d},t.prototype.getLabelText=function(t,e){var n=[];return i.each(e,(function(e){var r=t[e.field];r=i.isArray(r)?r.map((function(t){return e.getText(t)})):e.getText(r),i.isNil(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return i.isNumber(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return i.each(t.elementsMap,(function(t,n){e[n]=t.shape})),i.each(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(0),a=n(62),o=Math.sin,s=Math.cos,u=Math.atan2,l=Math.PI;function c(t,e,n,r,i,c,h){var f=e.stroke,p=e.lineWidth,d=u(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(l/6)+","+10*o(l/6)+" L0,0 L"+10*s(l/6)+",-"+10*o(l/6),stroke:f,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(h?"startArrowShape":"endArrowShape",g)}function h(t,e,n,r,l,c,h){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=h?f:p,v=y.d,m=y.fill,x=y.stroke,_=y.lineWidth,b=i.__rest(y,["d","fill","stroke","lineWidth"]),M=u(r-c,n-l);v&&(l-=s(M)*v,c-=o(M)*v);var C=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:i.__assign(i.__assign({},b),{stroke:x||d,lineWidth:_||g,fill:m})});C.translate(l,c),C.rotateAtPoint(l,c,M),t.set(h?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,r,i){var a=u(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===r(e.startArrow)?h(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===r(e.endArrow)?h(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);e.default=function(t,e,n,i,a,o,s){var u=Math.min(t,n),l=Math.max(t,n),c=Math.min(e,i),h=Math.max(e,i),f=a/2;return o>=u-f&&o<=l+f&&s>=c-f&&s<=h+f&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(523);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(524);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return a.default}});var o=n(525);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var s=n(526);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}});var u=n(527);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return u.default}});var l=n(528);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return l.default}});var c=n(530);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var h=n(531);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return h.default}});var f=n(532);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return f.default}});var p=n(533);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return p.default}});var d=n(535);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return d.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(1),i=n(52),a=n(6),o=n(49);function s(t,e,n,i,a){var s=[];if(t.length){for(var u=[],l=[],c=0,h=t.length;c<h;c++){var f=t[c];u.push(f[1]),l.push(f[0])}l=l.reverse(),r.each([u,l],(function(t,r){var c=[],h=i.parsePoints(t),f=h[0];1===u.length&&1===l.length?c=0===r?[["M",f.x-.5,f.y],["L",f.x+.5,f.y]]:[["L",f.x+.5,f.y],["L",f.x-.5,f.y]]:(e&&h.push({x:f.x,y:f.y}),c=n?o.getSplinePath(h,!1,a):o.getLinePath(h,!1),r>0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,o){for(var u=a.getStyle(t,e,!e,"lineWidth"),l=t.connectNulls,c=t.isInCircle,h=t.points,f=t.showSinglePoint,p=i.getPathPoints(h,l,f),d=[],g=0,y=p.length;g<y;g++){var v=p[g];d=d.concat(s(v,c,n,r,o))}return u.path=d,u},e.getConstraint=function(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t,e){return!!r.default(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"object"===r(t)&&null!==t}},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return r.__extends(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(r.__importDefault(n(87)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],a=this._events["*"]||[],o=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],s=o.callback;o.once&&(r.splice(a,1),0===r.length&&delete e._events[t],i--,a--),s.apply(e,n)}};o(i),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=void 0;var r=n(1),i=n(37);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[r.lowerCase(t)]},e.registerFacet=function(t,e){a[r.lowerCase(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(1),i=n(2),a=n(45),o=n(8);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function u(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function l(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=u,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=u(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=l,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return l(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=r.get(t,["components","axis"],{});return r.deepMix({},r.get(n,["common"],{}),r.deepMix({},r.get(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=r.get(t,["components","axis"],{});return r.deepMix({},r.get(i,["common","title"],{}),r.deepMix({},r.get(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],u=[1,0],l=a.y>r.y?o.vec2.angle(s,u):-1*o.vec2.angle(s,u),c=l+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:l,endAngle:c}},e.getAxisOption=function(t,e){return r.isBoolean(t)?!1!==t&&{}:r.get(t,[e])},e.getAxisDirection=function(t,e){return r.get(t,"position",e)},e.getAxisTitleText=function(t,e){return r.get(e,["title","text"],a.getName(t))}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeVersion=e.detectOS=e.parseUserAgent=e.browserName=e.detect=e.ReactNativeInfo=e.BotInfo=e.SearchBotDeviceInfo=e.NodeInfo=e.BrowserInfo=void 0;var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},r=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"};e.BrowserInfo=r;var i=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform};e.NodeInfo=i;var a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"};e.SearchBotDeviceInfo=a;var o=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null};e.BotInfo=o;var s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null};e.ReactNativeInfo=s;var u=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(t){return""!==t&&l.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1)}function f(t){var e=h(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new o;var l=s[1]&&s[1].split(/[._]/).slice(0,3);l?l.length<3&&(l=n(l,function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-l.length))):l=[];var c=l.join("."),f=p(t),d=u.exec(t);return d&&d[1]?new a(i,c,f,d[1]):new r(i,c,f)}function p(t){for(var e=0,n=c.length;e<n;e++){var r=c[e],i=r[0];if(r[1].exec(t))return i}return null}function d(){return void 0!==t&&t.version?new i(t.version.slice(1)):null}e.detect=function(t){return t?f(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?f(navigator.userAgent):d()},e.browserName=function(t){var e=h(t);return e?e[0]:null},e.parseUserAgent=f,e.detectOS=p,e.getNodeVersion=d}).call(this,n(332))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotateZ=e.rotateY=e.rotateX=e.transformQuat=e.transformMat3=e.transformMat4=e.random=e.bezier=e.hermite=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.length=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function h(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function f(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=function(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=u,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+i[2]*f,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,h=a*s-r*l,f=r*u-i*s,p=i*f-a*h,d=a*c-r*f,g=r*h-i*c,y=2*o;return c*=y,h*=y,f*=y,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=u+h+d,t[2]=l+f+g,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),l=u&&p(t,e)/u;return Math.acos(Math.min(Math.max(l,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},e.sub=s,e.mul=u,e.div=l,e.dist=c,e.sqrDist=h,e.len=o,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,u;for(e||(e=3),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],_=e[8];return n[0]=f*r+p*o+d*l,n[1]=f*i+p*s+d*c,n[2]=f*a+p*u+d*h,n[3]=g*r+y*o+v*l,n[4]=g*i+y*s+v*c,n[5]=g*a+y*u+v*h,n[6]=m*r+x*o+_*l,n[7]=m*i+x*s+_*c,n[8]=m*a+x*u+_*h,n},e.multiplyVec2=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.invert=function(t){var e=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-c*r+i*l)*d,e[2]=(s*r-i*o)*d,e[3]=f*d,e[4]=(c*n-i*u)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-l*n+r*u)*d,e[8]=(o*n-r*a)*d,e):null}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.timerFlush=e.timer=e.Timer=e.now=void 0;var i,a,o=0,s=0,u=0,l=0,c=0,h=0,f="object"===("undefined"==typeof performance?"undefined":r(performance))&&performance.now?performance:Date,p="object"===("undefined"==typeof window?"undefined":r(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return c||(p(g),c=f.now()+h)}function g(){c=0}function y(){this._call=this._time=this._next=null}function v(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){d(),++o;for(var t,e=i;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function x(){c=(l=f.now())+h,o=s=0;try{m()}finally{o=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,b(r)}(),c=0}}function _(){var t=f.now(),e=t-l;e>1e3&&(h-=e,l=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(x,t-f.now()-h)),u&&(u=clearInterval(u))):(u||(l=f.now(),u=setInterval(_,1e3)),o=1,p(x)))}e.now=d,e.Timer=y,y.prototype=v.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=v,e.timerFlush=m},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(46),o=i.__importDefault(n(171)),s=n(174),u=i.__importDefault(n(175)),l=i.__importDefault(n(68)),c=i.__importDefault(n(176)),h=i.__importDefault(n(177)),f=i.__importDefault(n(173)),p=i.__importStar(n(98));e.default=function(t,e){var n,i=r(e);return null==e||"boolean"===i?f.default(e):("number"===i?l.default:"string"===i?(n=a.color(e))?(e=n,o.default):h.default:e instanceof a.color?o.default:e instanceof Date?u.default:p.isNumberArray(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:l.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hsl=e.hslConvert=e.Rgb=e.rgb=e.rgbConvert=e.brighter=e.darker=e.Color=void 0;var r=n(0).__importStar(n(96));function i(){}e.Color=i,e.darker=.7,e.brighter=1/e.darker;var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),c=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),h=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,o]+"\\)$"),p=new RegExp("^hsl\\("+[o,s,s]+"\\)$"),d=new RegExp("^hsla\\("+[o,s,s,o]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new C(e[1],e[2],e[3],1):(e=c.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?_(e[1],e[2],e[3],e[4]):(e=f.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?w(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?w(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?x(g[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function x(t){return new C(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function b(t){return t instanceof i||(t=m(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function M(t,e,n,r){return 1===arguments.length?b(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function w(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function A(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-a,l=(o+a)/2;return u?(s=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=l<.5?o+a:2-o-a,s*=60):u=l>0&&l<1?0:s,new E(s,u,l,t.opacity)}function T(t,e,n,r){return 1===arguments.length?A(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function I(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r.default(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=C,r.default(C,M,r.extend(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:S,toString:S})),e.hslConvert=A,e.hsl=T,r.default(E,T,r.extend(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=r,e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNumberArray=void 0,e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}},e.isNumberArray=function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=r,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=void 0;var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}e.isSamePoint=s,e.default=function(t,e){var n=e[1],i=e[2],u=r.mod(r.toRadian(e[3]),2*Math.PI),l=e[4],c=e[5],h=t[0],f=t[1],p=e[6],d=e[7],g=Math.cos(u)*(h-p)/2+Math.sin(u)*(f-d)/2,y=-1*Math.sin(u)*(h-p)/2+Math.cos(u)*(f-d)/2,v=g*g/(n*n)+y*y/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(y*y)+i*i*(g*g),x=m?Math.sqrt((n*n*(i*i)-m)/m):1;l===c&&(x*=-1),isNaN(x)&&(x=0);var _=i?x*n*y/i:0,b=n?x*-i*g/n:0,M=(h+p)/2+Math.cos(u)*_-Math.sin(u)*b,C=(f+d)/2+Math.sin(u)*_+Math.cos(u)*b,P=[(g-_)/n,(y-b)/i],S=[(-1*g-_)/n,(-1*y-b)/i],O=o([1,0],P),w=o(P,S);return a(P,S)<=-1&&(w=Math.PI),a(P,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:C,rx:s(t,[p,d])?0:n,ry:s(t,[p,d])?0:i,startAngle:O,endAngle:O+w,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GAP=e.DODGE_RATIO=e.MARGIN_RATIO=e.DEFAULT_Y=void 0,e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=e.Shape=e.Position=e.Opacity=e.Color=e.Attribute=e.getAttribute=e.registerAttribute=void 0;var r=n(4),i=r.__importDefault(n(40));e.Attribute=i.default;var a=r.__importDefault(n(397));e.Color=a.default;var o=r.__importDefault(n(398));e.Opacity=o.default;var s=r.__importDefault(n(399));e.Position=s.default;var u=r.__importDefault(n(400));e.Shape=u.default;var l=r.__importDefault(n(401));e.Size=l.default;var c=n(402);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return c.getAttribute}}),Object.defineProperty(e,"registerAttribute",{enumerable:!0,get:function(){return c.registerAttribute}}),c.registerAttribute("Color",a.default),c.registerAttribute("Opacity",o.default),c.registerAttribute("Position",s.default),c.registerAttribute("Shape",u.default),c.registerAttribute("Size",l.default),r.__exportStar(n(192),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=e.registerScale=e.getScale=e.Scale=e.Quantize=e.Quantile=e.TimeCat=e.Time=e.Pow=e.Log=e.Linear=e.Identity=e.Category=void 0;var r=n(0),i=r.__importDefault(n(58));e.Scale=i.default;var a=r.__importDefault(n(194));e.Category=a.default;var o=r.__importDefault(n(403));e.TimeCat=o.default;var s=r.__importDefault(n(196));e.Linear=s.default;var u=r.__importDefault(n(405));e.Log=u.default;var l=r.__importDefault(n(406));e.Pow=l.default;var c=r.__importDefault(n(407));e.Time=c.default;var h=r.__importDefault(n(197));e.Quantize=h.default;var f=r.__importDefault(n(408));e.Quantile=f.default;var p=n(409);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=r.__importDefault(n(410));e.Identity=d.default;var g=n(411);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}}),p.registerScale("cat",a.default),p.registerScale("category",a.default),p.registerScale("identity",d.default),p.registerScale("linear",s.default),p.registerScale("log",u.default),p.registerScale("pow",l.default),p.registerScale("time",c.default),p.registerScale("timeCat",o.default),p.registerScale("quantize",h.default),p.registerScale("quantile",f.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,n){var a=i(t,n,"floor"),o=i(e,n,"ceil");a=r.fixedBase(a,n),o=r.fixedBase(o,n);for(var s=[],u=a;u<=o;u+=n){var l=r.fixedBase(u,n);s.push(l)}return{min:a,max:o,ticks:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,h=r.isNil(a)?r.isNil(e)?s:e:a,f=r.isNil(o)?r.isNil(n)?u:n:o;if(h>f&&(f=(i=[h,f])[0],h=i[1]),c<=2)return[h,f];for(var p=(f-h)/(c-1),d=[],g=0;g<c;g++)d.push(h+p*g);return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],_=e[8];return n[0]=f*r+p*o+d*l,n[1]=f*i+p*s+d*c,n[2]=f*a+p*u+d*h,n[3]=g*r+y*o+v*l,n[4]=g*i+y*s+v*c,n[5]=g*a+y*u+v*h,n[6]=m*r+x*o+_*l,n[7]=m*i+x*s+_*c,n[8]=m*a+x*u+_*h,n},e.multiplyVec2=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.invert=function(t){var e=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-c*r+i*l)*d,e[2]=(s*r-i*o)*d,e[3]=f*d,e[4]=(c*n-i*u)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-l*n+r*u)*d,e[8]=(o*n-r*a)*d,e):null}},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=r,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(202),a=n(1),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");a.each(t,(function(t,r){var i=t;e.get(r)!==t&&(a.isObject(t)&&n[r]&&(i=a.deepMix({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){a.hasKey(t,"visible")&&(t.visible?this.show():this.hide()),a.hasKey(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=r.__assign({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=o[n];return a.each(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");a.each(e,(function(e,n){var r=t.get(n);if(a.isObject(r)){var i=a.deepMix({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(9)),u=n(32),l=n(210),c=r.__importDefault(n(20)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:c.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:c.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:c.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:c.default.textColor,fontFamily:c.default.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:c.default.textColor,textBaseline:"middle",fontFamily:c.default.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:c.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){o.mix(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return o.each(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);o.each(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return o.filter(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return o.isNumberEqual(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return o.isNumberEqual(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:o.mix({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),o.each(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a<i-1;a++)for(var o=t[a],s=t[a+1],u=0;u<r;u++){var l=(u+1)/(r+1),c=(1-l)*o.tickValue+l*s.tickValue,h=this.getTickPoint(c),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:c,id:"sub-"+o.id+"-"+u})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},u=o.get(this.get("theme"),["tickLine","style"],{});a=o.isFunction(a)?o.mix({},u,a(s,n,r)):a;var l=t.startPoint,c=t.endPoint;return i.__assign({x1:l.x,y1:l.y,x2:c.x,y2:c.y},a)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),s=this.get("tickLine");if(o.each(i,(function(n,r){if(s.displayWithLabel){var o=e.getElementId("label-"+n.tickId);t.findById(o)&&e.drawTick(n,a,"tickLine",r,i)}else e.drawTick(n,a,"tickLine",r,i)})),r){var u=this.getSubTickLineItems(i);o.each(u,(function(t,n){e.drawTick(t,a,"subTickLine",n,u)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");o.each(e,(function(e){e.point=t.getTickPoint(e.value),o.isNil(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");o.each(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=o.size(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.rotate,s=r.formatter,l=this.getSidePoint(t.point,i),c=this.getSideVector(i,l),h=s?s(t.name,t,e):t.name,f=r.style;f=o.isFunction(f)?o.get(this.get("theme"),["label","style"],{}):f;var p=o.mix({x:l.x,y:l.y,text:h,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return a&&(p.matrix=u.getMatrixByAngle(l,a)),p},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});o.each(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=o.get(this.get("theme"),["label","style"],{}),s=this.get("label"),u=s.style,l=s.formatter;if(o.isFunction(u)){var c=i.map((function(t){return o.get(t.get("delegateObject"),"tick")}));o.each(i,(function(t,e){var n=t.get("delegateObject").tick,r=l?l(n.name,n,e):n.name,i=o.mix({},a,u(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,l=t.autoRotate,c=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var f=this.getTickPoint(h),p=this.getSidePoint(f,r||s+c/2),d=o.mix({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if(o.isNil(g)&&l){var v=this.getAxisVector(f);y=a.ext.angleTo(v,[1,0],!0)}if(y){var m=u.getMatrixByAngle(p,y);d.matrix=m}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=l.getStatesStyle(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var u=l.getStatesStyle(t,"tickLine",n);u&&s.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=l.getStatesStyle(t,"label",n);s&&i.attr(s)}if(o){var u=l.getStatesStyle(t,"tickLine",n);u&&o.attr(u)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(32),u=r.__importDefault(n(20)),l=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:u.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:u.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:u.default.fontFamily}},textBackground:{padding:5,style:{stroke:u.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!a.isNil(o)){var u=this.getTextPoint(),l=null;if(r){var c=this.getRotateAngle();l=s.getMatrixByAngle(u,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:i.__assign(i.__assign(i.__assign({},u),{text:o,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:i.__assign({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=l.formatPadding(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:i.__assign({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(20)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;a.each(r,(function(s,u){var l=s.id||u;if(n){var c=e.getPathStyle();c=a.isFunction(c)?c(s,u,r):c;var h=e.getElementId("line-"+l),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:a.mix({path:f},c)})}if(i&&u>0){var p=e.getElementId("region-"+l),d=u%2==0;if(a.isString(i))d&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=d?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),o.createBBox(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=o.formatPadding(e.padding),a=i.__assign({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:i.__assign({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=o.formatPadding(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_Y=e.CROSSHAIR_X=e.NAME_CLASS=e.VALUE_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.TITLE_CLASS=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(491)),o={};function s(t){return o[i.lowerCase(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[i.lowerCase(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if(i.isPlainObject(r)){var o=i.mix(i.clone(r),n);return new a.default(e,o)}return new r(e,n)};var u=n(213);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return u.default}});var l=n(115);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return l.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return l.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return l.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r.default}});var i=n(212);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return i.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return i.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return i.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(0),i=n(1);e.isAutoPadding=function(t){return!i.isNumber(t)&&!i.isArray(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=i.isArray(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=r.__spreadArrays(e,e);break;case 3:e=r.__spreadArrays(e,[e[1]]);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(59),o=n(35),s=r.__importDefault(n(86)),u=n(13),l=n(2),c=n(119),h=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.visible,s=void 0===o||o;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=s,n}return r.__extends(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?o.doAnimate(n,i,{coordinate:e.coordinate,toAttrs:r.__assign({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,s=n.shape,u=n.shapeType,l=r.indexOf(t);if(e){if(l>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===l)return;r.splice(l,1),"active"!==t&&"selected"!==t||null==s||s.toBack()}var c=i.drawShape(u,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,c,r,null):this.syncShapeStyle(s,c,["reset"],null),c.remove(!0);var h={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",h),a.propagationDelegate(this.shape,"statechange",h)},e.prototype.clearStates=function(){var t=this,e=this.states;i.each(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=i.deepMix({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=i.get(n,[t,"style"],{}),a=r[e]||r;return i.isFunction(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?r.__assign(r.__assign({},a),{callback:function(){var t;i.isFunction(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var a=this.shapeFactory,s=this.container,u=this.shapeType;if(this.shape=a.drawShape(u,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?i.isString(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",f=this.getAnimateCfg(h);f&&(null===(n=this.geometry)||void 0===n||n.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),o.doAnimate(this.shape,f,{coordinate:a.coordinate,toAttrs:r.__assign({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,h=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var f=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(f,p,n,r),t.isGroup())for(var d=t.get("children"),g=e.get("children"),y=0;y<d.length;y++)this.syncShapeStyle(d[y],g[y],n,r,a+y);else{if(!i.isEmpty(n)&&!i.isEqual(n,["reset"])){var v=t.get("name");i.isArray(v)&&(v=v[1]),i.each(n,(function(t){if(e.get("name")!==c.BACKGROUND_SHAPE){var n=h.getStateStyle(t,v||a);e.attr(n)}}))}var m=u.getReplaceAttrs(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),o.doAnimate(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:m,shapeModel:this.model})):i.isEmpty(n)?(t.stopAnimate(),t.animate(m,{duration:300})):t.attr(m):t.attr(m)}}},e.prototype.getShapeType=function(t){var e=i.get(t,"shape");return i.isArray(e)?e[0]:e},e}(s.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BACKGROUND_SHAPE=void 0,e.BACKGROUND_SHAPE="element-background"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometryLabelLayout=e.getGeometryLabelLayout=e.registerGeometryLabel=e.getGeometryLabel=void 0;var r={},i={};e.getGeometryLabel=function(t){return r[t.toLowerCase()]},e.registerGeometryLabel=function(t,e){r[t.toLowerCase()]=e},e.getGeometryLabelLayout=function(t){return i[t.toLowerCase()]},e.registerGeometryLabelLayout=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=r.__importStar(n(62)),s=n(63),u=n(1),l=n(16),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),s.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];u.each(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=u.min(e),a=u.max(e),o=u.min(n),s=u.max(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:s,width:a-i,height:s-o};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",l.intersectRect(r,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),s.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),s.drawChildren(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(a.AbstractGroup);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(64),i=n(27);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],u=t.get("el");if("remove"===e)if(t.get("isClipShape")){var l=u&&u.parentNode,c=l&&l.parentNode;l&&c&&c.removeChild(l)}else u&&u.parentNode&&u.parentNode.removeChild(u);else if("show"===e)u.setAttribute("visibility","visible");else if("hide"===e)u.setAttribute("visibility","hidden");else if("zIndex"===e)i.moveTo(u,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&i.sortDom(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?u&&(u.innerHTML=""):"matrix"===e?r.setTransform(t):"clip"===e?r.setClip(t,a):"attr"===e||"add"===e&&t.draw(a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=n(1),s=r.__importStar(n(81)),u=n(122),l=n(64),c=n(17),h=n(27),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=h.createSVGElement("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){u.refreshElement(this,t)},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),l.setClip(this,t),this.createPath(t),e.length&&u.drawChildren(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,(function(t,e){c.SVG_ATTR_MAP[e]&&r.setAttribute(c.SVG_ATTR_MAP[e],t)})),l.setTransform(this)},e}(a.AbstractGroup);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(33)),o=r.__importDefault(n(118));n(231);var s=n(221),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,a=e.showSinglePoint,o=void 0===a||a;return n.connectNulls=i,n.showSinglePoint=o,n}return r.__extends(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var r=this.lastElementsMap,i=this.elementsMap,a=this.elements,u=this.container,l=this.getElementId(t),c=this.getShapeInfo(t),h=r[l];if(h){var f=h.getModel();(this.isCoordinateChanged||s.isModelChange(f,c))&&(h.animate=this.animateOption,h.update(c)),delete r[l]}else{var p=this.getShapeFactory();(h=new o.default({shapeFactory:p,container:u,offscreenGroup:this.getOffscreenGroup()})).geometry=this,h.animate=this.animateOption,h.draw(c,n)}return a.push(h),i[l]=h,a},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitPoints=void 0;var r=n(1);e.splitPoints=function(t){var e=t.x;return(r.isArray(t.y)?t.y:[t.y]).map((function(t,n){return{x:r.isArray(e)?e[n]:e,y:t}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultSize=void 0;var r=n(1),i=n(15);e.getDefaultSize=function(t){var e=t.theme,n=t.coordinate,a=t.getXScale(),o=a.values,s=t.beforeMappingData,u=o.length,l=i.getXDimensionLength(t.coordinate),c=t.intervalPadding,h=t.dodgePadding,f=t.maxColumnWidth||e.maxColumnWidth,p=t.minColumnWidth||e.minColumnWidth,d=t.columnWidthRatio||e.columnWidthRatio,g=t.multiplePieWidthRatio||e.multiplePieWidthRatio,y=t.roseWidthRatio||e.roseWidthRatio;if(a.isLinear&&o.length>1){o.sort();var v=function(t,e){var n=t.length,i=t;r.isString(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var a=i[1]-i[0],o=2;o<n;o++){var s=i[o]-i[o-1];a>s&&(a=s)}return a}(o,a);u=(a.max-a.min)/v,o.length>u&&(u=o.length)}var m=a.range,x=1/u,_=1;if(n.isPolar?_=n.isTransposed&&u>1?g:y:(a.isLinear&&(x*=m[1]-m[0]),_=d),!r.isNil(c)&&c>=0?x=(1-(u-1)*(c/l))/u:x*=_,t.getAdjust("dodge")){var b=function(t,e){if(e){var n=r.flatten(t);return r.valuesOfKey(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!r.isNil(h)&&h>=0)x=(x-h/l*(b-1))/b;else!r.isNil(c)&&c>=0?(x*=_,x/=b):x/=b;x=x>=0?x:0}if(!r.isNil(f)&&f>=0){var M=f/l;x>M&&(x=M)}if(!r.isNil(p)&&p>=0){var C=p/l;x<C&&(x=C)}return x}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawPoints=e.HOLLOW_SHAPES=e.SHAPES=void 0;var r=n(0),i=n(61),a=n(6);e.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],e.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],e.drawPoints=function(t,e,n,o,s){var u=a.getStyle(e,s,!s,"r"),l=t.parsePoints(e.points),c=l[0];if(e.isStack)c=l[1];else if(l.length>1){for(var h=n.addGroup(),f=0,p=l;f<p.length;f++){var d=p[f];h.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},u),{symbol:i.MarkerSymbols[o]||o}),d)})}return h}return n.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},u),{symbol:i.MarkerSymbols[o]||o}),c)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var r=n(2);function i(t){return t===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:t===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:t}function a(t){return t===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:t===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:t}e.directionToPosition=function(t,e,n){return n===r.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=i(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],r=e.matrix[4],o=t;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}(n=function(t,e){if(e.isTransposed)switch(t){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(5);function o(t){return i.get(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=a.getElements(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,o=a.getScaleByField(r,e),s=a.getElementValue(t,e);return!i.isNil(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,r){var a=this;i.each(t,(function(t){a.isMathItem(t,e,n)&&t.setState(a.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=a.getCurrentElement(this.context);if(e)a.isElementChange(this.context)&&this.setStateByElement(e,t);else{var n=a.getDelegationObject(this.context);if(a.isList(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=a.getCurrentElement(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(130)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(5),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r.__extends(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=o.getElementsByState(t,this.stateName);i.each(n,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(5),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(a.isMask(this.context))t=a.getMaskedElements(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=a.getIntersectElements(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=a.getElements(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,o=a.getSilbings(r),s=t.map((function(t){return t.getModel().data})),u=r.getXScale().field,l=r.getYScales()[0].field;i.each(o,(function(t){var r=a.getElements(t),i=r.filter((function(t){var e=t.getModel().data;return a.isInRecords(s,e,u,l)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=a.getSilbings(n);a.isMask(this.context)&&i.each(r,(function(n){var r=a.getElements(n),i=a.getSiblingMaskElements(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;i.each(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=a.getSilbings(e);i.each(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(r.__importDefault(n(130)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(5),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateEnable=function(t){var e=i.getCurrentElement(this.context);if(e){if(!i.isElementChange(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=i.getCurrentElement(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(130)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var r=n(0),i=n(1),a=n(5),o=n(134),s=r.__importDefault(n(129)),u=n(2);e.STATUS_UNACTIVE=u.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=u.ELEMENT_STATE.ACTIVE;var l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.stateName=e.STATUS_ACTIVE,n}return r.__extends(n,t),n.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},n.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(e.STATUS_UNACTIVE)&&t.setState(e.STATUS_UNACTIVE,!1),t.setState(e.STATUS_ACTIVE,!0)):t.hasState(e.STATUS_ACTIVE)||t.setState(e.STATUS_UNACTIVE,!0)},n.prototype.setHighlightBy=function(t,n,r){var o=this;if(r)i.each(t,(function(t){o.setElementHighlight(t,n)}));else{var s=a.getElementsByState(this.context.view,e.STATUS_ACTIVE),u=!0;i.each(s,(function(t){if(!n(t))return u=!1,!1})),u?this.clear():i.each(t,(function(t){n(t)&&(t.hasState(e.STATUS_ACTIVE)&&t.setState(e.STATUS_ACTIVE,!1),t.setState(e.STATUS_UNACTIVE,!0))}))}},n.prototype.setElementState=function(t,e){var n=this.context.view,r=a.getElements(n);this.setHighlightBy(r,(function(e){return t===e}),e)},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.context.view;o.clearHighlight(t)},n}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHighlightBy=e.clearHighlight=void 0;var r=n(1),i=n(5);e.clearHighlight=function(t){var e=i.getElements(t);r.each(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,n){r.each(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:"+t,n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:r.__assign({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,a=this.points;i.each(a,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=i.deepMix({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];e(a,i)&&n.push(a)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34)),a=r.__importDefault(n(138));e.default=function(t,e){var n=a.default(e),r=n.length;if(i.default(t))return!r;for(var o=0;o<r;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(43)),a=r.__importDefault(n(19)),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return i.default(t,(function(n,r){a.default(t)&&"prototype"===r||e.push(r)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if(r.default(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if(r.default(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18)),i=Array.prototype.splice;e.default=function(t,e){if(!r.default(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(43)),a=r.__importDefault(n(7)),o=r.__importDefault(n(55));e.default=function(t,e,n){if(!a.default(t)&&!o.default(t))return t;var r=n;return i.default(t,(function(t,n){r=e(r,t,n)})),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var a=t[r];e.has(a)||(n.push(a),e.set(a,!0))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(19)),o=r.__importDefault(n(145));e.default=function(t,e){if(!e)return{0:t};if(!a.default(e)){var n=i.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return o.default(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(19)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!i.default(t))return{};for(var n,r={},s=a.default(e)?e:function(t){return t[e]},u=0;u<t.length;u++){var l=t[u];n=s(l),o.call(r,n)?r[n].push(l):r[n]=[l]}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(43)),a=r.__importDefault(n(19)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return i.default(t,(function(n,r){a.default(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(84)),a=r.__importDefault(n(18)),o=r.__importDefault(n(36));e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o.default(e)||o.default(n))return!1;if(a.default(e)||a.default(n)){if(e.length!==n.length)return!1;for(var r=!0,s=0;s<e.length&&(r=t(e[s],n[s]));s++);return r}if(i.default(e)||i.default(n)){var u=Object.keys(e),l=Object.keys(n);if(u.length!==l.length)return!1;for(r=!0,s=0;s<u.length&&(r=t(e[u[s]],n[u[s]]));s++);return r}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEngine=e.getEngine=void 0;var r={};e.getEngine=function(t){var e=r[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e},e.registerEngine=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(57));e.default=function(t,e){var n=r.default(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(57));e.default=function(t,e){var n=r.default(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometry=e.View=void 0;var r=n(0),i=n(1),a=n(2),o=r.__importDefault(n(86)),s=n(88),u=n(114),l=n(214),c=n(29),h=n(15),f=n(25),p=n(77),d=n(116),g=n(45),y=n(215),v=n(217),m=r.__importDefault(n(496)),x=r.__importDefault(n(117)),_=r.__importDefault(n(497)),b=n(498),M=n(218),C=n(499),P=n(500),S=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=v.getComponentControllerNames(),n.scalePool=new b.ScalePool,n.layoutFunc=_.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var a=e.id,o=void 0===a?i.uniqueId("view"):a,s=e.parent,u=e.canvas,c=e.backgroundGroup,h=e.middleGroup,f=e.foregroundGroup,p=e.region,d=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,g=e.padding,m=e.appendPadding,x=e.theme,M=e.options,C=e.limitInPlot,P=e.syncViewPadding;return n.parent=s,n.canvas=u,n.backgroundGroup=c,n.middleGroup=h,n.foregroundGroup=f,n.region=d,n.padding=g,n.appendPadding=m,n.options=r.__assign(r.__assign({},n.options),M),n.limitInPlot=C,n.id=o,n.syncViewPadding=P,n.themeObject=i.isObject(x)?i.deepMix({},l.getTheme("default"),y.createTheme(x)):l.getTheme(x),n.init(),n}return r.__extends(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,x.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,x.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;i.each(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,o=n.length;r<o;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var a=this.controllers;for(r=0,i=a.length;r<i;r++){a[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return i.set(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return i.isFunction(e)?(i.set(this.options,["filters",t],e),this):(!e&&i.get(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return i.isBoolean(t)?i.set(this.options,["axes"],t):i.set(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return i.isBoolean(t)?i.set(this.options,["legends"],t):i.isString(t)?(i.set(this.options,["legends",t],e),i.isPlainObject(e)&&(null==e?void 0:e.selected)&&i.set(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):i.set(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return i.isString(t)?i.set(this.options,["scales",t],e):i.isObject(t)&&i.each(t,(function(t,e){i.set(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return i.set(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return i.isString(t)?i.set(this.options,"coordinate",{type:t,cfg:e}):i.set(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=s.getFacet(t);if(!n)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new n(this,r.__assign(r.__assign({},e),{type:t})),this},e.prototype.animate=function(t){return i.set(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),i.mix(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return i.set(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=i.isObject(t)?i.deepMix({},this.themeObject,y.createTheme(t)):l.getTheme(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=u.createInteraction(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,x.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,x.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:i.clone(this.options.scales),axes:i.clone(this.options.axes),coordinate:i.clone(this.coordinateController.getOption()),tooltip:i.clone(this.options.tooltip),legends:i.clone(this.options.legends),animate:this.options.animate,visible:this.visible},o=new e(r.__assign(r.__assign({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:r.__assign(r.__assign({},n),i.get(t,"options",{}))}));return this.views.push(o),o},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=i.remove(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={};return this.geometries.map((function(e){var n=e.getYScale(),r=n.field;if(!t[r])return t[r]=!0,n}))},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var a=e[r],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScaleByField=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getLayer=function(t){return t===a.LAYER.BG?this.backgroundGroup:t===a.LAYER.MID?this.middleGroup:(a.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return h.isPointInCoordinate(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return i.flatten(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return f.uniq(i.flatten(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),a=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(i.each(t,(function(t,r){a[r]&&(e=a[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!i.isNil(e)&&!i.isNil(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return i.find(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=a.dataArray;a.sort(o);for(var s=void 0,u=0,l=o.length;u<l;u++){var c=o[u];(s=p.findDataByPoint(t,c,a))&&n.push(s)}}var h=this.views;for(r=0,i=h.length;r<i;r++){var f=h[r].getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===i.size(e)?t:i.filter(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=i.get(n,t);return i.isUndefined(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,a=this.coordinateBBox.tr;i.isEqual(e,r)&&i.isEqual(n,a)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,a))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=i.get(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,a=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:a,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=C.calculatePadding(this).shrink(d.parsePadding(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?P.defaultSyncViewPadding:i.isFunction(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,M.PaddingCal),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,a=n.length;r<a;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=h.getCoordinateClipCfg(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){a[o].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,a){var o=i.get(this.options.scales,[t]),s=r.__assign(r.__assign({},o),n);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var a=this.region,o=a.start,s=a.end,u=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(u)||(this.viewBBox=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=v.getComponentController(r);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new x.default(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:"+e;i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_ENTER,this.emit(a.PLOT_EVENTS.MOUSE_ENTER,i)),i.type=a.PLOT_EVENTS.ENTER,this.emit(a.PLOT_EVENTS.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=i.get(this.options,"scales",{}),r=this.geometries,a=0,o=r.length;a<o;a++){var s=r[a];s.scales=this.getGeometryScales();var u={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(u):s.init(u)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,a=void 0===i?{}:i,o=this.filteredData,s=0,u=t.length;s<u;s++){var l=t[s],c=a[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:o,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e={},n=this.geometries,r=0;r<n.length;r++){var i=n[r].getScaleFields();f.uniq(i,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e={},n=this.geometries,r=0;r<n.length;r++){var i=n[r].getGroupFields();f.uniq(i,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=r.__spreadArrays([this.getXScale()],this.getYScales()).filter((function(t){return!!t})),n=this.getCoordinate(),a=this.options.scales;i.each(e,(function(e){var r=e.field,o=e.values,s=e.isCategory,u=e.isIdentity;(s||u)&&o&&!i.get(a,[r,"range"])&&(e.range=g.getDefaultCategoryScaleRange(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,a=0;a<i.length;a++){var o=i[a];o.coordinate=n,o.canvasRegion=r,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,a=void 0===n?[]:n,o=e.interactions,s=void 0===o?[]:o,u=e.views,l=void 0===u?[]:u,c=e.annotations,h=void 0===c?[]:c,f=e.coordinate,p=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new m.default(f);for(var g=0;g<a.length;g++){var y=a[g];this.createGeometry(y)}for(var v=0;v<s.length;v++){var x=s[v],_=x.type,b=x.cfg;this.interaction(_,b)}for(var M=0;M<l.length;M++){var C=l[M];this.createView(C)}for(var P=this.getController("annotation"),S=0;S<h.length;S++){var O=h[S];P.annotation(O)}p&&i.each(p,(function(e,n){t.on(n,e)})),d&&i.each(d,(function(e){var n=e.type,i=r.__rest(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var a=this[e](r);i.each(t,(function(t,e){i.isFunction(a[e])&&a[e](t)}))}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(o.default);e.View=S,e.registerGeometry=function(t,e){S.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=r.__assign({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}},e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathToCurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(r.isArray(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],u=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n};e.parsePathString=s;var u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=u;var l=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,y=t.length;g<y;g++){if(r.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var v=2,m=(n=[i,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(u(n,f));break;case"O":r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,c=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var x=0,_=d.length;x<_;x++)p[x]=d[x];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+c;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=c;var h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],p=c[1],d=c[2],g=c[3];else{e=(h=x(e,n,-v)).x,n=h.y,u=(h=x(u,l,-v)).x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var _=(e-u)/2,b=(n-l)/2,M=_*_/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*_*_)/(C*b*b+P*_*_)));d=S*r*b/i+(e+u)/2,g=S*-i*_/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),f=e<d?Math.PI-f:f,p=u<d?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var O=p-f;if(Math.abs(O)>y){var w=p,A=u,T=l;p=f+y*(s&&p>f?1:-1),m=t(u=d+r*Math.cos(p),l=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-f;var E=Math.cos(f),I=Math.sin(f),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,k=4/3*i*B,R=[e,n],F=[e+j*I,n-k*E],N=[u+j*D,l-k*L],Y=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,Y].concat(m);for(var G=[],V=0,H=(m=[F,N,Y].concat(m).join().split(",")).length;V<H;V++)G[V]=V%2?x(m[V-1],m[V],v).y:x(m[V],m[V+1],v).x;return G},d=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(l=r[m][0]),"C"!==l&&(s[m]=l,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===l&&(s[m]="C"),y(r,m),i&&(i[m]&&(l=i[m][0]),"C"!==l&&(u[m]=l,m&&(d=u[m-1])),i[m]=g(i[m],o,d),"A"!==u[m]&&"C"===l&&(u[m]="C"),y(i,m)),v(r,i,a,o,m),v(i,r,o,a,m);var x=r[m],_=i&&i[m],b=x.length,M=i&&_.length;a.x=x[b-2],a.y=x[b-1],a.bx=parseFloat(x[b-4])||a.x,a.by=parseFloat(x[b-3])||a.y,o.bx=i&&(parseFloat(_[M-4])||o.x),o.by=i&&(parseFloat(_[M-3])||o.y),o.x=i&&_[M-2],o.y=i&&_[M-1]}return i?[r,i]:r};e.pathToCurve=d;var g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")};e.parsePathArray=y;var v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=l*c[p]+l,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;f+=h[p]*Math.sqrt(m)}return l*f},x=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&f.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&f.push(m)}}for(var x,_=f.length,b=_;_--;)x=1-(h=f[_]),p[0][_]=x*x*x*t+3*x*x*h*n+3*x*h*h*i+h*h*h*o,p[1][_]=x*x*x*e+3*x*x*h*r+3*x*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},_=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var l=x.apply(null,t);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=S.apply(0,t.concat(l/r));a.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i+1;l++){c=S.apply(0,e.concat(l/i));o.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r;l++)for(var h=0;h<i;h++){var f=a[l],p=a[l+1],d=o[h],g=o[h+1],y=Math.abs(p.x-f.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",x=_(f.x,f.y,p.x,p.y,d.x,d.y,g.x,g.y);if(x){if(s[x.x.toFixed(4)]===x.y.toFixed(4))continue;s[x.x.toFixed(4)]=x.y.toFixed(4);var M=f.t+Math.abs((x[y]-f[y])/(p[y]-f[y]))*(p.t-f.t),O=d.t+Math.abs((x[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);M>=0&&M<=1&&O>=0&&O<=1&&(n?u+=1:u.push({x:x.x,y:x.y,t1:M,t2:O}))}}return u};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,u,l,c,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,x=e.length;m<x;m++){var _=e[m];if("M"===_[0])a=l=_[1],o=c=_[2];else{"C"===_[0]?(f=[a,o].concat(_.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var b=O(h,f,n);if(n)p+=b;else{for(var M=0,C=b.length;M<C;M++)b[M].segment1=g,b[M].segment2=m,b[M].bez1=h,b[M].bez2=f;p=p.concat(b)}}}}}return p}(t,e)};var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=w(a,o/(1-o*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function E(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=a;l++){r=e[l-1],o=T(n,r)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,f=s[u-1][l-1].min+o;s[u][l]=E(c,h,f)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=o;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(87)),o=n(38),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=o.mix(r,e),n}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(159)),s=n(38),u={};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(s.each(u,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=a.min(i),e=a.max(i),n=a.min(o),r=a.max(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(s.each(u,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=a.min(i),e=a.max(i),n=a.min(o),r=a.max(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();s.each(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];s.isObject(n)?r=n:r.type=n;var i=u[r.type];i||(i=s.upperFirst(r.type),u[r.type]=i);var a=this.getShapeBase(),o=new a[i](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(s.isFunction(r))n=new r(i||{parent:this});else{var a=r||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!s.isAllowCapture(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var o=t[a];if(s.isAllowCapture(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),s.removeFromArray(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();s.each(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return s.each(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return s.each(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=n(38),u=n(92),l=r.__importDefault(n(157)),c=o.ext.transform,h=["zIndex","capture","visible","type"],f=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return a.each(t,(function(t,e){-1!==f.indexOf(e)||a.isEqual(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return a.each(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&a.each(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return a.mix(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(a.isObject(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(s.removeFromArray(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?u.multiplyMatrix(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?u.multiplyMatrix(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?u.multiplyVec2(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=u.invert(e);if(n)return u.multiplyVec2(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[a.upperFirst(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};a.each(e,(function(t,r){a.isArray(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)a.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return a.each(h,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,u,l,c=t[0],h=t[1],f=t[2],y=void 0===f?"easeLinear":f,v=t[3],m=void 0===v?a.noop:v,x=t[4],_=void 0===x?0:x;a.isFunction(c)?(i=c,c={}):a.isObject(c)&&c.onFrame&&(i=c.onFrame,o=c.repeat),a.isObject(h)?(h=(l=h).duration,y=l.easing||"easeLinear",_=l.delay||0,o=l.repeat||o||!1,m=l.callback||a.noop,s=l.pauseCallback||a.noop,u=l.resumeCallback||a.noop):(a.isNumber(m)&&(_=m,m=null),a.isFunction(y)?(m=y,y="easeLinear"):y=y||"easeLinear");var b=d(c,this),M={fromAttrs:p(b,this),toAttrs:b,duration:h,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:u,delay:_,startTime:n.getTime(),id:a.uniqueId(),onFrame:i,pathFormatted:!1};r.length>0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");a.each(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return a.each(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return a.each(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],l=o.get("name");if(l){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&s.isParent(o,n))return"break";a.isArray(l)?a.each(l,(function(t){r.emitDelegateEvent(o,t,e)})):u.emitDelegateEvent(o,l,e)}},u=this,l=0;l<i.length;l++){if("break"===o(l))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),a=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vec4=e.vec3=e.vec2=e.quat2=e.quat=e.mat4=e.mat3=e.mat2d=e.mat2=e.glMatrix=void 0;var r=n(0),i=r.__importStar(n(28));e.glMatrix=i;var a=r.__importStar(n(333));e.mat2=a;var o=r.__importStar(n(334));e.mat2d=o;var s=r.__importStar(n(161));e.mat3=s;var u=r.__importStar(n(162));e.mat4=u;var l=r.__importStar(n(163));e.quat=l;var c=r.__importStar(n(335));e.quat2=c;var h=r.__importStar(n(165));e.vec2=h;var f=r.__importStar(n(91));e.vec3=f;var p=r.__importStar(n(164));e.vec4=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.projection=e.normalFromMat4=e.fromQuat=e.fromMat2d=e.fromScaling=e.fromRotation=e.fromTranslation=e.scale=e.rotate=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.fromMat4=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],x=n[7],_=n[8];return t[0]=f*r+p*o+d*l,t[1]=f*i+p*s+d*c,t[2]=f*a+p*u+d*h,t[3]=g*r+y*o+v*l,t[4]=g*i+y*s+v*c,t[5]=g*a+y*u+v*h,t[6]=m*r+x*o+_*l,t[7]=m*i+x*s+_*c,t[8]=m*a+x*u+_*h,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,a,o,s,u,l){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=u,c[8]=l,c},e.set=function(t,e,n,r,i,a,o,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-c*r+i*l)*d,t[2]=(s*r-i*o)*d,t[3]=f*d,t[4]=(c*n-i*u)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-l*n+r*u)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=o*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*o,t[3]=s*u-a*c,t[4]=n*c-i*u,t[5]=i*a-n*s,t[6]=a*l-o*u,t[7]=r*u-n*l,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8];return e*(l*a-o*u)+n*(-l*i+o*s)+r*(u*i-a*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*r+p*o+l,t[7]=f*i+p*s+c,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*i+f*s,t[2]=p*a+f*u,t[3]=p*o-f*r,t[4]=p*s-f*i,t[5]=p*u-f*a,t[6]=l,t[7]=c,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,h=r*s,f=i*o,p=i*s,d=i*u,g=a*o,y=a*s,v=a*u;return t[0]=1-h-d,t[3]=c-v,t[6]=f+y,t[1]=c+v,t[4]=1-l-d,t[7]=p-g,t[2]=f-y,t[5]=p+g,t[8]=1-l-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,x=n*u-i*o,_=n*l-a*o,b=r*u-i*s,M=r*l-a*s,C=i*l-a*u,P=c*g-h*d,S=c*y-f*d,O=c*v-p*d,w=h*y-f*g,A=h*v-p*g,T=f*v-p*y,E=m*T-x*A+_*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-u*A+l*w)*E,t[1]=(u*O-o*T-l*S)*E,t[2]=(o*A-s*O+l*P)*E,t[3]=(i*A-r*T-a*w)*E,t[4]=(n*T-i*O+a*S)*E,t[5]=(r*O-n*A-a*P)*E,t[6]=(g*C-y*M+v*b)*E,t[7]=(y*_-d*C-v*x)*E,t[8]=(d*M-g*_+v*m)*E,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],_=e[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-x)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-_)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(_))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.targetTo=e.lookAt=e.ortho=e.perspectiveFromFieldOfView=e.perspective=e.frustum=e.fromQuat=e.fromRotationTranslationScaleOrigin=e.fromRotationTranslationScale=e.getRotation=e.getScaling=e.getTranslation=e.fromQuat2=e.fromRotationTranslation=e.fromZRotation=e.fromYRotation=e.fromXRotation=e.fromRotation=e.fromScaling=e.fromTranslation=e.rotateZ=e.rotateY=e.rotateX=e.rotate=e.scale=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],g=e[12],y=e[13],v=e[14],m=e[15],x=n[0],_=n[1],b=n[2],M=n[3];return t[0]=x*r+_*s+b*h+M*g,t[1]=x*i+_*u+b*f+M*y,t[2]=x*a+_*l+b*p+M*v,t[3]=x*o+_*c+b*d+M*m,x=n[4],_=n[5],b=n[6],M=n[7],t[4]=x*r+_*s+b*h+M*g,t[5]=x*i+_*u+b*f+M*y,t[6]=x*a+_*l+b*p+M*v,t[7]=x*o+_*c+b*d+M*m,x=n[8],_=n[9],b=n[10],M=n[11],t[8]=x*r+_*s+b*h+M*g,t[9]=x*i+_*u+b*f+M*y,t[10]=x*a+_*l+b*p+M*v,t[11]=x*o+_*c+b*d+M*m,x=n[12],_=n[13],b=n[14],M=n[15],t[12]=x*r+_*s+b*h+M*g,t[13]=x*i+_*u+b*f+M*y,t[14]=x*a+_*l+b*p+M*v,t[15]=x*o+_*c+b*d+M*m,t}function o(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,u=i+i,l=a+a,c=r*s,h=r*u,f=r*l,p=i*u,d=i*l,g=a*l,y=o*s,v=o*u,m=o*l;return t[0]=1-(p+g),t[1]=h+m,t[2]=f-v,t[3]=0,t[4]=h-m,t[5]=1-(c+g),t[6]=d+y,t[7]=0,t[8]=f+v,t[9]=d-y,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function s(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],u=e[8],l=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(u,l,c),t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}e.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.fromValues=function(t,e,n,i,a,o,s,u,l,c,h,f,p,d,g,y){var v=new r.ARRAY_TYPE(16);return v[0]=t,v[1]=e,v[2]=n,v[3]=i,v[4]=a,v[5]=o,v[6]=s,v[7]=u,v[8]=l,v[9]=c,v[10]=h,v[11]=f,v[12]=p,v[13]=d,v[14]=g,v[15]=y,v},e.set=function(t,e,n,r,i,a,o,s,u,l,c,h,f,p,d,g,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t[9]=c,t[10]=h,t[11]=f,t[12]=p,t[13]=d,t[14]=g,t[15]=y,t},e.identity=i,e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,x=n*u-i*o,_=n*l-a*o,b=r*u-i*s,M=r*l-a*s,C=i*l-a*u,P=c*g-h*d,S=c*y-f*d,O=c*v-p*d,w=h*y-f*g,A=h*v-p*g,T=f*v-p*y,E=m*T-x*A+_*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-u*A+l*w)*E,t[1]=(i*A-r*T-a*w)*E,t[2]=(g*C-y*M+v*b)*E,t[3]=(f*M-h*C-p*b)*E,t[4]=(u*O-o*T-l*S)*E,t[5]=(n*T-i*O+a*S)*E,t[6]=(y*_-d*C-v*x)*E,t[7]=(c*C-f*_+p*x)*E,t[8]=(o*A-s*O+l*P)*E,t[9]=(r*O-n*A-a*P)*E,t[10]=(d*M-g*_+v*m)*E,t[11]=(h*_-c*M-p*m)*E,t[12]=(s*S-o*w-u*P)*E,t[13]=(n*w-r*S+i*P)*E,t[14]=(g*x-d*b-y*m)*E,t[15]=(c*b-h*x+f*m)*E,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15];return t[0]=s*(f*v-p*y)-h*(u*v-l*y)+g*(u*p-l*f),t[1]=-(r*(f*v-p*y)-h*(i*v-a*y)+g*(i*p-a*f)),t[2]=r*(u*v-l*y)-s*(i*v-a*y)+g*(i*l-a*u),t[3]=-(r*(u*p-l*f)-s*(i*p-a*f)+h*(i*l-a*u)),t[4]=-(o*(f*v-p*y)-c*(u*v-l*y)+d*(u*p-l*f)),t[5]=n*(f*v-p*y)-c*(i*v-a*y)+d*(i*p-a*f),t[6]=-(n*(u*v-l*y)-o*(i*v-a*y)+d*(i*l-a*u)),t[7]=n*(u*p-l*f)-o*(i*p-a*f)+c*(i*l-a*u),t[8]=o*(h*v-p*g)-c*(s*v-l*g)+d*(s*p-l*h),t[9]=-(n*(h*v-p*g)-c*(r*v-a*g)+d*(r*p-a*h)),t[10]=n*(s*v-l*g)-o*(r*v-a*g)+d*(r*l-a*s),t[11]=-(n*(s*p-l*h)-o*(r*p-a*h)+c*(r*l-a*s)),t[12]=-(o*(h*y-f*g)-c*(s*y-u*g)+d*(s*f-u*h)),t[13]=n*(h*y-f*g)-c*(r*y-i*g)+d*(r*f-i*h),t[14]=-(n*(s*y-u*g)-o*(r*y-i*g)+d*(r*u-i*s)),t[15]=n*(s*f-u*h)-o*(r*f-i*h)+c*(r*u-i*s),t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11],p=t[12],d=t[13],g=t[14],y=t[15];return(e*o-n*a)*(h*y-f*g)-(e*s-r*a)*(c*y-f*d)+(e*u-i*a)*(c*g-h*d)+(n*s-r*o)*(l*y-f*p)-(n*u-i*o)*(l*g-h*p)+(r*u-i*s)*(l*d-c*p)},e.multiply=a,e.translate=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,p,d,g=n[0],y=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*y+e[8]*v+e[12],t[13]=e[1]*g+e[5]*y+e[9]*v+e[13],t[14]=e[2]*g+e[6]*y+e[10]*v+e[14],t[15]=e[3]*g+e[7]*y+e[11]*v+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=l,t[7]=c,t[8]=h,t[9]=f,t[10]=p,t[11]=d,t[12]=r*g+s*y+h*v+e[12],t[13]=i*g+u*y+f*v+e[13],t[14]=a*g+l*y+p*v+e[14],t[15]=o*g+c*y+d*v+e[15]),t},e.scale=function(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.rotate=function(t,e,n,i){var a,o,s,u,l,c,h,f,p,d,g,y,v,m,x,_,b,M,C,P,S,O,w,A,T=i[0],E=i[1],I=i[2],L=Math.hypot(T,E,I);return L<r.EPSILON?null:(T*=L=1/L,E*=L,I*=L,a=Math.sin(n),s=1-(o=Math.cos(n)),u=e[0],l=e[1],c=e[2],h=e[3],f=e[4],p=e[5],d=e[6],g=e[7],y=e[8],v=e[9],m=e[10],x=e[11],_=T*T*s+o,b=E*T*s+I*a,M=I*T*s-E*a,C=T*E*s-I*a,P=E*E*s+o,S=I*E*s+T*a,O=T*I*s+E*a,w=E*I*s-T*a,A=I*I*s+o,t[0]=u*_+f*b+y*M,t[1]=l*_+p*b+v*M,t[2]=c*_+d*b+m*M,t[3]=h*_+g*b+x*M,t[4]=u*C+f*P+y*S,t[5]=l*C+p*P+v*S,t[6]=c*C+d*P+m*S,t[7]=h*C+g*P+x*S,t[8]=u*O+f*w+y*A,t[9]=l*O+p*w+v*A,t[10]=c*O+d*w+m*A,t[11]=h*O+g*w+x*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},e.rotateX=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+l*r,t[5]=o*i+c*r,t[6]=s*i+h*r,t[7]=u*i+f*r,t[8]=l*i-a*r,t[9]=c*i-o*r,t[10]=h*i-s*r,t[11]=f*i-u*r,t},e.rotateY=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-l*r,t[1]=o*i-c*r,t[2]=s*i-h*r,t[3]=u*i-f*r,t[8]=a*r+l*i,t[9]=o*r+c*i,t[10]=s*r+h*i,t[11]=u*r+f*i,t},e.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+l*r,t[1]=o*i+c*r,t[2]=s*i+h*r,t[3]=u*i+f*r,t[4]=l*i-a*r,t[5]=c*i-o*r,t[6]=h*i-s*r,t[7]=f*i-u*r,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotation=function(t,e,n){var i,a,o,s=n[0],u=n[1],l=n[2],c=Math.hypot(s,u,l);return c<r.EPSILON?null:(s*=c=1/c,u*=c,l*=c,i=Math.sin(e),o=1-(a=Math.cos(e)),t[0]=s*s*o+a,t[1]=u*s*o+l*i,t[2]=l*s*o-u*i,t[3]=0,t[4]=s*u*o-l*i,t[5]=u*u*o+a,t[6]=l*u*o+s*i,t[7]=0,t[8]=s*l*o+u*i,t[9]=u*l*o-s*i,t[10]=l*l*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},e.fromXRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromYRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromZRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotationTranslation=o,e.fromQuat2=function(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],a=-e[1],s=-e[2],u=e[3],l=e[4],c=e[5],h=e[6],f=e[7],p=i*i+a*a+s*s+u*u;return p>0?(n[0]=2*(l*u+f*i+c*s-h*a)/p,n[1]=2*(c*u+f*a+h*i-l*s)/p,n[2]=2*(h*u+f*s+l*a-c*i)/p):(n[0]=2*(l*u+f*i+c*s-h*a),n[1]=2*(c*u+f*a+h*i-l*s),n[2]=2*(h*u+f*s+l*a-c*i)),o(t,e,n),t},e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.getScaling=s,e.getRotation=function(t,e){var n=new r.ARRAY_TYPE(3);s(n,e);var i=1/n[0],a=1/n[1],o=1/n[2],u=e[0]*i,l=e[1]*a,c=e[2]*o,h=e[4]*i,f=e[5]*a,p=e[6]*o,d=e[8]*i,g=e[9]*a,y=e[10]*o,v=u+f+y,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(l-h)/m):u>f&&u>y?(m=2*Math.sqrt(1+u-f-y),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(l+h)/m,t[2]=(d+c)/m):f>y?(m=2*Math.sqrt(1+f-u-y),t[3]=(d-c)/m,t[0]=(l+h)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+y-u-f),t[3]=(l-h)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,c=o+o,h=i*u,f=i*l,p=i*c,d=a*l,g=a*c,y=o*c,v=s*u,m=s*l,x=s*c,_=r[0],b=r[1],M=r[2];return t[0]=(1-(d+y))*_,t[1]=(f+x)*_,t[2]=(p-m)*_,t[3]=0,t[4]=(f-x)*b,t[5]=(1-(h+y))*b,t[6]=(g+v)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-v)*M,t[10]=(1-(h+d))*M,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,c=o+o,h=s+s,f=a*l,p=a*c,d=a*h,g=o*c,y=o*h,v=s*h,m=u*l,x=u*c,_=u*h,b=r[0],M=r[1],C=r[2],P=i[0],S=i[1],O=i[2],w=(1-(g+v))*b,A=(p+_)*b,T=(d-x)*b,E=(p-_)*M,I=(1-(f+v))*M,L=(y+m)*M,D=(d+x)*C,B=(y-m)*C,j=(1-(f+g))*C;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=L,t[7]=0,t[8]=D,t[9]=B,t[10]=j,t[11]=0,t[12]=n[0]+P-(w*P+E*S+D*O),t[13]=n[1]+S-(A*P+I*S+B*O),t[14]=n[2]+O-(T*P+L*S+j*O),t[15]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,h=r*s,f=i*o,p=i*s,d=i*u,g=a*o,y=a*s,v=a*u;return t[0]=1-h-d,t[1]=c+v,t[2]=f-y,t[3]=0,t[4]=c-v,t[5]=1-l-d,t[6]=p+g,t[7]=0,t[8]=f+y,t[9]=p-g,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,n,r,i,a,o){var s=1/(n-e),u=1/(i-r),l=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t},e.perspective=function(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t},e.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},e.ortho=function(t,e,n,r,i,a,o){var s=1/(e-n),u=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(o+a)*l,t[15]=1,t},e.lookAt=function(t,e,n,a){var o,s,u,l,c,h,f,p,d,g,y=e[0],v=e[1],m=e[2],x=a[0],_=a[1],b=a[2],M=n[0],C=n[1],P=n[2];return Math.abs(y-M)<r.EPSILON&&Math.abs(v-C)<r.EPSILON&&Math.abs(m-P)<r.EPSILON?i(t):(f=y-M,p=v-C,d=m-P,o=_*(d*=g=1/Math.hypot(f,p,d))-b*(p*=g),s=b*(f*=g)-x*d,u=x*p-_*f,(g=Math.hypot(o,s,u))?(o*=g=1/g,s*=g,u*=g):(o=0,s=0,u=0),l=p*u-d*s,c=d*o-f*u,h=f*s-p*o,(g=Math.hypot(l,c,h))?(l*=g=1/g,c*=g,h*=g):(l=0,c=0,h=0),t[0]=o,t[1]=l,t[2]=f,t[3]=0,t[4]=s,t[5]=c,t[6]=p,t[7]=0,t[8]=u,t[9]=h,t[10]=d,t[11]=0,t[12]=-(o*y+s*v+u*m),t[13]=-(l*y+c*v+h*m),t[14]=-(f*y+p*v+d*m),t[15]=1,t)},e.targetTo=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=r[0],u=r[1],l=r[2],c=i-n[0],h=a-n[1],f=o-n[2],p=c*c+h*h+f*f;p>0&&(c*=p=1/Math.sqrt(p),h*=p,f*=p);var d=u*f-l*h,g=l*c-s*f,y=s*h-u*c;return(p=d*d+g*g+y*y)>0&&(d*=p=1/Math.sqrt(p),g*=p,y*=p),t[0]=d,t[1]=g,t[2]=y,t[3]=0,t[4]=h*y-f*g,t[5]=f*d-c*y,t[6]=c*g-h*d,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},e.subtract=u,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],p=t[10],d=t[11],g=t[12],y=t[13],v=t[14],m=t[15],x=e[0],_=e[1],b=e[2],M=e[3],C=e[4],P=e[5],S=e[6],O=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],L=e[13],D=e[14],B=e[15];return Math.abs(n-x)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(i-_)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(a-b)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-C)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(u-P)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(l-S)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-O)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(h-w)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(w))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(p-T)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(v-D)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-B)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))},e.mul=a,e.sub=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setAxes=e.sqlerp=e.rotationTo=e.equals=e.exactEquals=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.lerp=e.dot=e.scale=e.mul=e.add=e.set=e.copy=e.fromValues=e.clone=e.str=e.fromEuler=e.fromMat3=e.conjugate=e.invert=e.random=e.slerp=e.pow=e.ln=e.exp=e.calculateW=e.rotateZ=e.rotateY=e.rotateX=e.multiply=e.getAngle=e.getAxisAngle=e.setAxisAngle=e.identity=e.create=void 0;var r,i,a,o,s,u,l=n(0),c=l.__importStar(n(28)),h=l.__importStar(n(161)),f=l.__importStar(n(91)),p=l.__importStar(n(164));function d(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function g(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-r*l,t[2]=a*c+o*l+r*u-i*s,t[3]=o*c-r*s-i*u-a*l,t}function v(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),u=o>0?s*Math.sin(o)/o:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(o),t}function m(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function x(t,e,n,r){var i,a,o,s,u,l=e[0],h=e[1],f=e[2],p=e[3],d=n[0],g=n[1],y=n[2],v=n[3];return(a=l*d+h*g+f*y+p*v)<0&&(a=-a,d=-d,g=-g,y=-y,v=-v),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-r)*i)/o,u=Math.sin(r*i)/o):(s=1-r,u=r),t[0]=s*l+u*d,t[1]=s*h+u*g,t[2]=s*f+u*y,t[3]=s*p+u*v,t}function _(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}e.create=d,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.setAxisAngle=g,e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.getAngle=function(t,n){var r=e.dot(t,n);return Math.acos(2*r*r-1)},e.multiply=y,e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=a*u-i*s,t[3]=o*u-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-a*s,t[1]=i*u+o*s,t[2]=a*u+r*s,t[3]=o*u-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=a*u+o*s,t[3]=o*u-a*s,t},e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.exp=v,e.ln=m,e.pow=function(t,n,r){return m(t,n),e.scale(t,t,r),v(t,t),t},e.slerp=x,e.random=function(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.fromMat3=_,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),u=Math.cos(n),l=Math.sin(r),c=Math.cos(r);return t[0]=a*u*c-o*s*l,t[1]=o*s*c+a*u*l,t[2]=o*u*l-a*s*c,t[3]=o*u*c+a*s*l,t},e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.clone=p.clone,e.fromValues=p.fromValues,e.copy=p.copy,e.set=p.set,e.add=p.add,e.mul=y,e.scale=p.scale,e.dot=p.dot,e.lerp=p.lerp,e.length=p.length,e.len=e.length,e.squaredLength=p.squaredLength,e.sqrLen=e.squaredLength,e.normalize=p.normalize,e.exactEquals=p.exactEquals,e.equals=p.equals,e.rotationTo=(r=f.create(),i=f.fromValues(1,0,0),a=f.fromValues(0,1,0),function(t,n,o){var s=f.dot(n,o);return s<-.999999?(f.cross(r,i,n),f.len(r)<1e-6&&f.cross(r,a,n),f.normalize(r,r),g(t,r,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(f.cross(r,n,o),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+s,e.normalize(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,n,r,i,a){return x(o,e,i,a),x(s,n,r,a),x(t,o,s,2*a*(1-a)),t}),e.setAxes=(u=h.create(),function(t,n,r,i){return u[0]=r[0],u[3]=r[1],u[6]=r[2],u[1]=i[0],u[4]=i[1],u[7]=i[2],u[2]=-n[0],u[5]=-n[1],u[8]=-n[2],e.normalize(t,_(t,u))})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.transformQuat=e.transformMat4=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.fromValues=function(t,e,n,r){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.distance=l,e.squaredDistance=c,e.length=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],l=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],f=e[2],p=e[3];return t[0]=h*l-f*u+p*s,t[1]=-c*l+f*o-p*a,t[2]=c*u-h*o+p*i,t[3]=-c*s+h*a-f*i,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.random=function(t,e){var n,r,a,o,s,u;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{u=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*r,t[2]=e*a*l,t[3]=e*o*l,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=n[3],c=l*r+s*a-u*i,h=l*i+u*r-o*a,f=l*a+o*i-s*r,p=-o*r-s*i-u*a;return t[0]=c*l+p*-o+h*-u-f*-s,t[1]=h*l+p*-s+f*-o-c*-u,t[2]=f*l+p*-u+c*-s-h*-o,t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-u)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.len=h,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,u;for(e||(e=4),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],r[3]=t[s+3],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2],t[s+3]=r[3];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotate=e.transformMat4=e.transformMat3=e.transformMat2d=e.transformMat2=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function h(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function f(t){var e=t[0],n=t[1];return e*e+n*n}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=l,e.squaredDistance=c,e.length=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},e.len=h,e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,u;for(e||(e=2),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],a(r,r,o),t[s]=r[0],t[s+1]=r[1];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);Object.defineProperty(e,"now",{enumerable:!0,get:function(){return r.now}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return r.timer}}),Object.defineProperty(e,"timerFlush",{enumerable:!0,get:function(){return r.timerFlush}});var i=n(338);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return i.default}});var a=n(339);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return a.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(340);Object.defineProperty(e,"easeLinear",{enumerable:!0,get:function(){return r.linear}});var i=n(341);Object.defineProperty(e,"easeQuad",{enumerable:!0,get:function(){return i.quadInOut}}),Object.defineProperty(e,"easeQuadIn",{enumerable:!0,get:function(){return i.quadIn}}),Object.defineProperty(e,"easeQuadOut",{enumerable:!0,get:function(){return i.quadOut}}),Object.defineProperty(e,"easeQuadInOut",{enumerable:!0,get:function(){return i.quadInOut}});var a=n(342);Object.defineProperty(e,"easeCubic",{enumerable:!0,get:function(){return a.cubicInOut}}),Object.defineProperty(e,"easeCubicIn",{enumerable:!0,get:function(){return a.cubicIn}}),Object.defineProperty(e,"easeCubicOut",{enumerable:!0,get:function(){return a.cubicOut}}),Object.defineProperty(e,"easeCubicInOut",{enumerable:!0,get:function(){return a.cubicInOut}});var o=n(343);Object.defineProperty(e,"easePoly",{enumerable:!0,get:function(){return o.polyInOut}}),Object.defineProperty(e,"easePolyIn",{enumerable:!0,get:function(){return o.polyIn}}),Object.defineProperty(e,"easePolyOut",{enumerable:!0,get:function(){return o.polyOut}}),Object.defineProperty(e,"easePolyInOut",{enumerable:!0,get:function(){return o.polyInOut}});var s=n(344);Object.defineProperty(e,"easeSin",{enumerable:!0,get:function(){return s.sinInOut}}),Object.defineProperty(e,"easeSinIn",{enumerable:!0,get:function(){return s.sinIn}}),Object.defineProperty(e,"easeSinOut",{enumerable:!0,get:function(){return s.sinOut}}),Object.defineProperty(e,"easeSinInOut",{enumerable:!0,get:function(){return s.sinInOut}});var u=n(345);Object.defineProperty(e,"easeExp",{enumerable:!0,get:function(){return u.expInOut}}),Object.defineProperty(e,"easeExpIn",{enumerable:!0,get:function(){return u.expIn}}),Object.defineProperty(e,"easeExpOut",{enumerable:!0,get:function(){return u.expOut}}),Object.defineProperty(e,"easeExpInOut",{enumerable:!0,get:function(){return u.expInOut}});var l=n(346);Object.defineProperty(e,"easeCircle",{enumerable:!0,get:function(){return l.circleInOut}}),Object.defineProperty(e,"easeCircleIn",{enumerable:!0,get:function(){return l.circleIn}}),Object.defineProperty(e,"easeCircleOut",{enumerable:!0,get:function(){return l.circleOut}}),Object.defineProperty(e,"easeCircleInOut",{enumerable:!0,get:function(){return l.circleInOut}});var c=n(347);Object.defineProperty(e,"easeBounce",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceIn",{enumerable:!0,get:function(){return c.bounceIn}}),Object.defineProperty(e,"easeBounceOut",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceInOut",{enumerable:!0,get:function(){return c.bounceInOut}});var h=n(348);Object.defineProperty(e,"easeBack",{enumerable:!0,get:function(){return h.backInOut}}),Object.defineProperty(e,"easeBackIn",{enumerable:!0,get:function(){return h.backIn}}),Object.defineProperty(e,"easeBackOut",{enumerable:!0,get:function(){return h.backOut}}),Object.defineProperty(e,"easeBackInOut",{enumerable:!0,get:function(){return h.backInOut}});var f=n(349);Object.defineProperty(e,"easeElastic",{enumerable:!0,get:function(){return f.elasticOut}}),Object.defineProperty(e,"easeElasticIn",{enumerable:!0,get:function(){return f.elasticIn}}),Object.defineProperty(e,"easeElasticOut",{enumerable:!0,get:function(){return f.elasticOut}}),Object.defineProperty(e,"easeElasticInOut",{enumerable:!0,get:function(){return f.elasticInOut}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tpmt=void 0,e.tpmt=function(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(94);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return r.default}});var i=n(174);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return i.default}});var a=n(97);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return a.default}});var o=n(172);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return o.default}});var s=n(175);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return s.default}});var u=n(352);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return u.default}});var l=n(353);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return l.default}});var c=n(68);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return c.default}});var h=n(98);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return h.default}});var f=n(176);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return f.default}});var p=n(354);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return p.default}});var d=n(177);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return d.default}});var g=n(355);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return g.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return g.interpolateTransformSvg}});var y=n(358);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return y.default}});var v=n(171);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return v.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return v.rgbBasisClosed}});var m=n(359);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return m.hslLong}});var x=n(360);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return x.default}});var _=n(361);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return _.hclLong}});var b=n(362);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return b.cubehelixLong}});var M=n(363);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return M.default}});var C=n(364);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return C.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rad2deg=e.deg2rad=void 0,e.deg2rad=Math.PI/180,e.rad2deg=180/Math.PI},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rgbBasisClosed=e.rgbBasis=void 0;var r=n(0),i=n(46),a=r.__importDefault(n(97)),o=r.__importDefault(n(172)),s=r.__importStar(n(47));function u(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)r=i.rgb(e[n]),o[n]=r.r||0,s[n]=r.g||0,u[n]=r.b||0;return o=t(o),s=t(s),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=u(t),r+""}}}e.default=function t(e){var n=s.gamma(e);function r(t,e){var r=n((t=i.rgb(t)).r,(e=i.rgb(e)).r),a=n(t.g,e.g),o=n(t.b,e.b),u=s.default(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}return r.gamma=t,r}(1),e.rgbBasis=u(a.default),e.rgbBasisClosed=u(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97);e.default=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return r.basis((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.genericArray=void 0;var r=n(0),i=r.__importDefault(n(94)),a=r.__importStar(n(98));function o(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r);for(n=0;n<a;++n)o[n]=i.default(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}e.default=function(t,e){return(a.isNumberArray(e)?a.default:o)(t,e)},e.genericArray=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).__importDefault(n(94));e.default=function(t,e){var n,a={},o={};for(n in null!==t&&"object"===r(t)||(t={}),null!==e&&"object"===r(e)||(e={}),e)n in t?a[n]=i.default(t[n],e[n]):o[n]=e[n];return function(t){for(n in a)o[n]=a[n](t);return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(68)),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.default=function(t,e){var n,o,s,u=i.lastIndex=a.lastIndex=0,l=-1,c=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(n=n[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,h.push({i:l,x:r.default(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)c[(n=h[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var r=n(31);e.nearestPoint=function(t,e,n,i,a,o){var s,u=1/0,l=[n,i],c=20;o&&o>200&&(c=o/10);for(var h=1/c,f=h/10,p=0;p<=c;p++){var d=p*h,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(x=r.distance(l[0],l[1],g[0],g[1]))<u&&(s=d,u=x)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}for(u=1/0,p=0;p<32&&!(f<1e-4);p++){var v=s-f,m=s+f,x=(g=[a.apply(null,t.concat([v])),a.apply(null,e.concat([v]))],r.distance(l[0],l[1],g[0],g[1]));if(v>=0&&x<u)s=v,u=x;else{var _=[a.apply(null,t.concat([m])),a.apply(null,e.concat([m]))],b=r.distance(l[0],l[1],_[0],_[1]);m<=1&&b<u?(s=m,u=b):f*=.5}}return{x:a.apply(null,t.concat([s])),y:a.apply(null,e.concat([s]))}},e.snapLength=function(t,e){for(var n=0,i=t.length,a=0;a<i;a++){var o=t[a],s=e[a],u=t[(a+1)%i],l=e[(a+1)%i];n+=r.distance(o,s,u,l)}return n/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=n(0).__importDefault(n(69)),i=n(31);function a(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var a=t[r],o=t[r+1],s=i.distance(a[0],a[1],o[0],o[1]),u={from:a,to:o,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}e.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],a=t[n+1];e+=i.distance(r[0],r[1],a[0],a[1])}return e},e.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var n=a(t),i=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l<i.length;l++){var c=i[l],h=c.from,f=c.to,p=c.length/o;if(e>=s&&e<=s+p){var d=(e-s)/p;u=r.default.pointAt(h[0],h[1],f[0],f[1],d);break}s+=p}return u},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=a(t),r=n.segments,i=n.totalLength,o=0,s=0,u=0;u<r.length;u++){var l=r[u],c=l.from,h=l.to,f=l.length/i;if(e>=o&&e<=o+f){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}o+=f}return s},e.distanceAtSegment=function(t,e,n){for(var i=1/0,a=0;a<t.length-1;a++){var o=t[a],s=t[a+1],u=r.default.pointDistance(o[0],o[1],s[0],s[1],e,n);u<i&&(i=u)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),i=n(31);e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var a=t[r];e.push(a[0]),n.push(a[1])}return i.getBBoxByArray(e,n)},length:function(t){return r.lengthOfSegment(t)},pointAt:function(t,e){return r.pointAtSegments(t,e)},pointDistance:function(t,e,n){return r.distanceAtSegment(t,e,n)},tangentAngle:function(t,e){return r.angleAtSegments(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var r=n(38),i=n(182);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var i=1;return r.isString(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=i.getOffScreenContext(),a=0;if(r.isNil(t)||""===t)return a;if(n.save(),n.font=e,r.isString(t)&&t.includes("\n")){var o=t.split("\n");r.each(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var r=null;e.getOffScreenContext=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return r.isArray(e)?e:r.isString(e)?(e=e.match(i),r.each(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}r.each(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(186)),i=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],p=c[1],d=c[2],g=c[3];else{e=(h=x(e,n,-v)).x,n=h.y,u=(h=x(u,l,-v)).x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var _=(e-u)/2,b=(n-l)/2,M=_*_/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*_*_)/(C*b*b+P*_*_)));d=S*r*b/i+(e+u)/2,g=S*-i*_/r+(n+l)/2,f=Math.asin(Number(((n-g)/i).toFixed(9))),p=Math.asin(Number(((l-g)/i).toFixed(9))),f=e<d?Math.PI-f:f,p=u<d?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var O=p-f;if(Math.abs(O)>y){var w=p,A=u,T=l;p=f+y*(s&&p>f?1:-1),m=t(u=d+r*Math.cos(p),l=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-f;var E=Math.cos(f),I=Math.sin(f),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,k=4/3*i*B,R=[e,n],F=[e+j*I,n-k*E],N=[u+j*D,l-k*L],Y=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,Y].concat(m);for(var G=[],V=0,H=(m=[F,N,Y].concat(m).join().split(",")).length;V<H;V++)G[V]=V%2?x(m[V-1],m[V],v).y:x(m[V],m[V+1],v).x;return G},a=function(t,e,n,r){return[t,e,n,r,n,r]},o=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]};e.default=function(t,e){var n,s=r.default(t),u=e&&r.default(e),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],f=[],p="",d="",g=function(t,e,n){var r,s;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(i.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,s=2*e.y-e.by):(r=e.x,s=e.y),t=["C",r,s].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(o(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(o(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(a(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(a(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(a(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(a(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)h[e]="A",u&&(f[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),n=Math.max(s.length,u&&u.length||0)}},v=function(t,e,r,i,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],n=Math.max(s.length,u&&u.length||0))};n=Math.max(s.length,u&&u.length||0);for(var m=0;m<n;m++){s[m]&&(p=s[m][0]),"C"!==p&&(h[m]=p,m&&(d=h[m-1])),s[m]=g(s[m],l,d),"A"!==h[m]&&"C"===p&&(h[m]="C"),y(s,m),u&&(u[m]&&(p=u[m][0]),"C"!==p&&(f[m]=p,m&&(d=f[m-1])),u[m]=g(u[m],c,d),"A"!==f[m]&&"C"===p&&(f[m]="C"),y(u,m)),v(s,u,l,c,m),v(u,s,c,l,m);var x=s[m],_=u&&u[m],b=x.length,M=u&&_.length;l.x=x[b-2],l.y=x[b-1],l.bx=parseFloat(x[b-4])||l.x,l.by=parseFloat(x[b-3])||l.y,c.bx=u&&(parseFloat(_[M-4])||c.x),c.by=u&&(parseFloat(_[M-3])||c.y),c.x=u&&_[M-2],c.y=u&&_[M-1]}return u?[s,u]:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(187)),i=/[a-z]/;function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){var e=r.default(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,o=0;o<e.length;o++){var s=e[o][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(h=l=+d[1],f=c=+d[2],p++,u[0]=["M",l,c]),o=p;for(var g=e.length;o<g;o++){var y=e[o],v=u[o-1],m=[],x=(s=y[0]).toUpperCase();if(s!==x)switch(m[0]=x,x){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+l,m[7]=+y[7]+c;break;case"V":m[1]=+y[1]+c;break;case"H":m[1]=+y[1]+l;break;case"M":h=+y[1]+l,f=+y[2]+c;break;default:for(var _=1,b=y.length;_<b;_++)m[_]=+y[_]+(_%2?l:c)}else m=e[o];switch(x){case"Z":l=+h,c=+f;break;case"H":m=["L",l=m[1],c];break;case"V":m=["L",l,c=m[1]];break;case"T":l=m[1],c=m[2];var M=a([v[1],v[2]],[v[3],v[4]]);m=["Q",M[0],M[1],l,c];break;case"S":l=m[m.length-2],c=m[m.length-1];var C=v.length,P=a([v[C-4],v[C-3]],[v[C-2],v[C-1]]);m=["C",P[0],P[1],m[1],m[2],l,c];break;case"M":h=m[m.length-2],f=m[m.length-1];break;default:l=m[m.length-2],c=m[m.length-1]}u.push(m)}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");e.default=function(t){if(!t)return null;if(r.isArray(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t>=e&&t<=n};e.default=function(t,e,n,i){var a=n.x-t.x,o=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var p=(a*c-o*l)/h,d=(a*u-o*s)/h;r(p,0,1)&&r(d,0,1)&&(f={x:t.x+p*s,y:t.y+p*u})}return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var u=t[s],l=t[(s+1)%o];if(i(u,l,[e,n]))return!0;r(u[1]-n)>0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(4),i=n(392);Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var a=r.__importDefault(n(48));e.Adjust=a.default;var o=r.__importDefault(n(393)),s=r.__importDefault(n(394)),u=r.__importDefault(n(395)),l=r.__importDefault(n(396));i.registerAdjust("Dodge",o.default),i.registerAdjust("Jitter",s.default),i.registerAdjust("Stack",u.default),i.registerAdjust("Symmetric",l.default),r.__exportStar(n(191),e)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var r=n(103);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r.Scale}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r={};e.getTickMethod=function(t){return r[t]},e.registerTickMethod=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return i.__extends(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=a.isNumber(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=e;return a.isNumber(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,i.__spreadArrays([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(a.isNil(this.getConfig("min"))&&(this.min=0),a.isNil(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(r.__importDefault(n(58)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",a=/\[([^]*?)\]/gm;function o(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var s=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var a=i[r];for(var o in a)t[o]=a[o]}return t}e.assign=u;var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],h=o(c,3),f={dayNamesShort:o(l,3),dayNames:l,monthNamesShort:h,monthNames:c,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=f;var p=u({},f),d=function(t){return p=u(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},v={D:function(t){return String(t.getDate())},DD:function(t){return y(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return y(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return y(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return y(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return y(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return y(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return y(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return y(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return y(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return y(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return y(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(Math.floor(Math.abs(e)/60),2)+":"+y(Math.abs(e)%60,2)}},m=function(t){return+t-1},x=[null,"[1-9]\\d?"],_=[null,i],b=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],C={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:x,dd:x,ddd:_,dddd:_,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:b,A:b,ZZ:M,Z:M},P={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},S=function(t){return u(P,t)};e.setGlobalDateMasks=S;var O=function(t,e,n){if(void 0===e&&(e=P.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=P[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=u(u({},p),n);return(e=e.replace(r,(function(e){return v[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=P[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],l=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},h={};l=g(l).replace(r,(function(t){var e=C[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(h[i]=!0),o.push(e),"("+r+")"})),Object.keys(h).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return s.shift()}));var f=t.match(new RegExp(l,"i"));if(!f)return null;for(var d=u(u({},p),n),y=1;y<f.length;y++){var v=o[y-1],m=v[0],x=v[2],_=x?x(f[y],d):+f[y];if(null==_)return null;i[m]=_}1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0);for(var b=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond),M=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],S=(y=0,M.length);y<S;y++)if(c[M[y][0]]&&i[M[y][0]]!==b[M[y][1]]())return null;return null==i.timezoneOffset?b:new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond))}e.format=O,e.parse=w;var A={format:O,parse:w,defaultI18n:f,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return i.__extends(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(r.__importDefault(n(72)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return i.__extends(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return a.last(e);if(i<0)return a.head(e);var o=e[i],s=i/(n-1);return o+(r-s)/((i+1)/(n-1)-s)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(a.last(e)!==this.max&&e.push(this.max),a.head(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<a.head(e))return 0;if(t>a.last(e))return 1;var n=0;return a.each(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(199));e.default=function(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=e;if(i.isNumber(n))return i.filter(o,(function(t,e){return e%n==0}));var s=t.min,u=t.max;if(i.isNil(s)&&(s=0),i.isNil(u)&&(u=e.length-1),i.isNumber(r)&&r<u-s){var l=a.default(s,u,r,!1,[1,2,5,3,4,7,6,8,9]).ticks;return i.filter(l,(function(t){return t>=s&&t<=u})).map((function(t){return e[t]}))}return e.slice(s,u+1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var r=n(1);e.DEFAULT_Q=[1,5,2,2.5,4,3],e.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9];var i=100*Number.EPSILON;function a(t,e,n,a,o,s){var u=r.size(e),l=r.indexOf(e,t),c=0,h=function(t,e){return(t%e+e)%e}(a,s);return(h<i||s-h<i)&&a<=0&&o>=0&&(c=1),1-l/(u-1)-n+c}function o(t,e,n){var i=r.size(e);return 1-r.indexOf(e,t)/(i-1)-n+1}function s(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function u(t,e){return t>=e?2-(t-1)/(e-1):1}function l(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function c(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}e.default=function(t,n,i,h,f,p){if(void 0===i&&(i=5),void 0===h&&(h=!0),void 0===f&&(f=e.DEFAULT_Q),void 0===p&&(p=[.25,.2,.5,.05]),Number.isNaN(t)||Number.isNaN(n)||"number"!=typeof t||"number"!=typeof n||!i)return{min:0,max:0,ticks:[]};if(n-t<1e-15||1===i)return{min:t,max:n,ticks:[t]};for(var d={score:-2,lmin:0,lmax:0,lstep:0},g=1;g<1/0;){for(var y=0;y<f.length;y+=1){var v=f[y],m=o(v,f,g);if(p[0]*m+p[1]+p[2]+p[3]<d.score){g=1/0;break}for(var x=2;x<1/0;){var _=u(x,i);if(p[0]*m+p[1]+p[2]*_+p[3]<d.score)break;for(var b=(n-t)/(x+1)/g/v,M=Math.ceil(Math.log10(b));M<1/0;){var C=g*v*Math.pow(10,M),P=c(t,n,C*(x-1));if(p[0]*m+p[1]*P+p[2]*_+p[3]<d.score)break;var S=Math.floor(n/C)*g-(x-1)*g,O=Math.ceil(t/C)*g;if(S<=O)for(var w=O-S,A=0;A<=w;A+=1){var T=(S+A)*(C/g),E=T+C*(x-1),I=C,L=a(v,f,g,T,E,I),D=l(t,n,T,E),B=s(x,i,t,n,T,E),j=p[0]*L+p[1]*D+p[2]*B+1*p[3];j>d.score&&(!h||T<=t&&E>=n)&&(d.lmin=T,d.lmax=E,d.lstep=I,d.score=j)}M+=1}x+=1}}g+=1}var k,R=d.lmax,F=d.lmin,N=d.lstep,Y=Math.floor((R-F)/N)+1,G=new Array(Y);for(y=0;y<Y;y++)G[y]=(k=F+y*N)<1e-15?k:parseFloat(k.toFixed(15));return{min:Math.min(t,r.head(G)),max:Math.max(n,r.last(G)),ticks:G}}},function(t,e,n){"use strict";function r(t){return t<1e-15?t:parseFloat(t.toFixed(15))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=(e-t)/n,a=Math.pow(10,Math.floor(Math.log10(i))),o=a;2*a-i<1.5*(i-o)&&5*a-i<2.75*(i-(o=2*a))&&10*a-i<1.5*(i-(o=5*a))&&(o=10*a);for(var s=Math.ceil(e/o),u=Math.floor(t/o),l=Math.max(s*o,e),c=Math.min(u*o,t),h=Math.floor((l-c)/o)+1,f=new Array(h),p=0;p<h;p++)f[p]=r(c+p*o);return{min:c,max:l,ticks:f}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.propagationDelegate=void 0;var r=n(202);e.propagationDelegate=function(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var a=t.getParent();a;)a.emitDelegation(e,i),i.propagationPath.push(a),a=a.getParent()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.PathUtil=void 0;var r=n(0),i=r.__importStar(n(203));e.PathUtil=i,r.__exportStar(n(430),e),r.__exportStar(n(431),e);var a=n(204);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return a.default}});var o=n(205);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}});var s=n(432);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return s.default}});var u=n(436);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return u.default}});var l=n(437);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return l.default}});var c=n(438);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}});var h=n(208);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return h.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return h.assembleFont}});var f=n(41);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return f.isAllowCapture}});var p=n(106);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(209);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathToCurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(r.isArray(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],u=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n};e.parsePathString=s;var u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=u;var l=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,y=t.length;g<y;g++){if(r.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var v=2,m=(n=[i,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(u(n,f));break;case"O":r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,c=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var x=0,_=d.length;x<_;x++)p[x]=d[x];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+c;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=c;var h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],p=c[1],d=c[2],g=c[3];else{e=(h=x(e,n,-v)).x,n=h.y,u=(h=x(u,l,-v)).x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var _=(e-u)/2,b=(n-l)/2,M=_*_/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*_*_)/(C*b*b+P*_*_)));d=S*r*b/i+(e+u)/2,g=S*-i*_/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),f=e<d?Math.PI-f:f,p=u<d?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var O=p-f;if(Math.abs(O)>y){var w=p,A=u,T=l;p=f+y*(s&&p>f?1:-1),m=t(u=d+r*Math.cos(p),l=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-f;var E=Math.cos(f),I=Math.sin(f),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,k=4/3*i*B,R=[e,n],F=[e+j*I,n-k*E],N=[u+j*D,l-k*L],Y=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,Y].concat(m);for(var G=[],V=0,H=(m=[F,N,Y].concat(m).join().split(",")).length;V<H;V++)G[V]=V%2?x(m[V-1],m[V],v).y:x(m[V],m[V+1],v).x;return G},d=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(l=r[m][0]),"C"!==l&&(s[m]=l,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===l&&(s[m]="C"),y(r,m),i&&(i[m]&&(l=i[m][0]),"C"!==l&&(u[m]=l,m&&(d=u[m-1])),i[m]=g(i[m],o,d),"A"!==u[m]&&"C"===l&&(u[m]="C"),y(i,m)),v(r,i,a,o,m),v(i,r,o,a,m);var x=r[m],_=i&&i[m],b=x.length,M=i&&_.length;a.x=x[b-2],a.y=x[b-1],a.bx=parseFloat(x[b-4])||a.x,a.by=parseFloat(x[b-3])||a.y,o.bx=i&&(parseFloat(_[M-4])||o.x),o.by=i&&(parseFloat(_[M-3])||o.y),o.x=i&&_[M-2],o.y=i&&_[M-1]}return i?[r,i]:r};e.pathToCurve=d;var g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")};e.parsePathArray=y;var v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=l*c[p]+l,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;f+=h[p]*Math.sqrt(m)}return l*f},x=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&f.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&f.push(m)}}for(var x,_=f.length,b=_;_--;)x=1-(h=f[_]),p[0][_]=x*x*x*t+3*x*x*h*n+3*x*h*h*i+h*h*h*o,p[1][_]=x*x*x*e+3*x*x*h*r+3*x*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},_=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var l=x.apply(null,t);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=S.apply(0,t.concat(l/r));a.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i+1;l++){c=S.apply(0,e.concat(l/i));o.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r;l++)for(var h=0;h<i;h++){var f=a[l],p=a[l+1],d=o[h],g=o[h+1],y=Math.abs(p.x-f.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",x=_(f.x,f.y,p.x,p.y,d.x,d.y,g.x,g.y);if(x){if(s[x.x.toFixed(4)]===x.y.toFixed(4))continue;s[x.x.toFixed(4)]=x.y.toFixed(4);var M=f.t+Math.abs((x[y]-f[y])/(p[y]-f[y]))*(p.t-f.t),O=d.t+Math.abs((x[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);M>=0&&M<=1&&O>=0&&O<=1&&(n?u+=1:u.push({x:x.x,y:x.y,t1:M,t2:O}))}}return u};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,u,l,c,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,x=e.length;m<x;m++){var _=e[m];if("M"===_[0])a=l=_[1],o=c=_[2];else{"C"===_[0]?(f=[a,o].concat(_.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var b=O(h,f,n);if(n)p+=b;else{for(var M=0,C=b.length;M<C;M++)b[M].segment1=g,b[M].segment2=m,b[M].bez1=h,b[M].bez2=f;p=p.concat(b)}}}}}return p}(t,e)};var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=w(a,o/(1-o*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function E(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=a;l++){r=e[l-1],o=T(n,r)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,f=s[u-1][l-1].min+o;s[u][l]=E(c,h,f)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=o;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(87)),o=n(41),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=o.mix(r,e),n}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(207)),s=n(41),u={};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(s.each(u,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=a.min(i),e=a.max(i),n=a.min(o),r=a.max(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(s.each(u,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=a.min(i),e=a.max(i),n=a.min(o),r=a.max(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();s.each(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];s.isObject(n)?r=n:r.type=n;var i=u[r.type];i||(i=s.upperFirst(r.type),u[r.type]=i);var a=this.getShapeBase(),o=new a[i](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(s.isFunction(r))n=new r(i||{parent:this});else{var a=r||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!s.isAllowCapture(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var o=t[a];if(s.isAllowCapture(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),s.removeFromArray(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();s.each(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return s.each(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return s.each(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=n(41),u=n(106),l=r.__importDefault(n(205)),c=o.ext.transform,h=["zIndex","capture","visible","type"],f=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return a.each(t,(function(t,e){-1!==f.indexOf(e)||a.isEqual(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return a.each(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&a.each(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return a.mix(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(a.isObject(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(s.removeFromArray(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?u.multiplyMatrix(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?u.multiplyMatrix(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?u.multiplyVec2(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=u.invert(e);if(n)return u.multiplyVec2(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[a.upperFirst(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};a.each(e,(function(t,r){a.isArray(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)a.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return a.each(h,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,u,l,c=t[0],h=t[1],f=t[2],y=void 0===f?"easeLinear":f,v=t[3],m=void 0===v?a.noop:v,x=t[4],_=void 0===x?0:x;a.isFunction(c)?(i=c,c={}):a.isObject(c)&&c.onFrame&&(i=c.onFrame,o=c.repeat),a.isObject(h)?(h=(l=h).duration,y=l.easing||"easeLinear",_=l.delay||0,o=l.repeat||o||!1,m=l.callback||a.noop,s=l.pauseCallback||a.noop,u=l.resumeCallback||a.noop):(a.isNumber(m)&&(_=m,m=null),a.isFunction(y)?(m=y,y="easeLinear"):y=y||"easeLinear");var b=d(c,this),M={fromAttrs:p(b,this),toAttrs:b,duration:h,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:u,delay:_,startTime:n.getTime(),id:a.uniqueId(),onFrame:i,pathFormatted:!1};r.length>0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");a.each(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return a.each(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return a.each(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],l=o.get("name");if(l){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&s.isParent(o,n))return"break";a.isArray(l)?a.each(l,(function(t){r.emitDelegateEvent(o,t,e)})):u.emitDelegateEvent(o,l,e)}},u=this,l=0;l<i.length;l++){if("break"===o(l))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),a=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var r=n(41),i=n(209);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var i=1;return r.isString(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=i.getOffScreenContext(),a=0;if(r.isNil(t)||""===t)return a;if(n.save(),n.font=e,r.isString(t)&&t.includes("\n")){var o=t.split("\n");r.each(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var r=null;e.getOffScreenContext=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStatesStyle=void 0;var r=n(1);e.getStatesStyle=function(t,e,n){var i=e+"Style",a=null;return r.each(n,(function(e,n){t[n]&&e[i]&&(a||(a={}),r.mix(a,e[i]))})),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_TEXT=e.CROSSHAIR_LINE=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-crosshair",e.CROSSHAIR_LINE=e.CONTAINER_CLASS+"-line",e.CROSSHAIR_TEXT=e.CONTAINER_CLASS+"-text"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=n(0).__importDefault(n(492)),i=n(1),a={};e.createAction=function(t,e){var n=a[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r},e.getActionClass=function(t){var e=a[t];return i.get(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTheme=e.getTheme=void 0;var r=n(1),i=n(215),a={default:i.createTheme({})};e.getTheme=function(t){return r.get(a,r.lowerCase(t),a.default)},e.registerTheme=function(t,e){a[r.lowerCase(t)]=i.createTheme(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(494);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return r.createTheme}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createThemeByStyleSheet=void 0;var r=n(0),i=n(59),a=n(8),o=n(1),s=n(13);e.createThemeByStyleSheet=function(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},u=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),l=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=s.getAngle(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),u=7.5*Math.sin(i);return{matrix:a.ext.transform(null,[["t",o,u]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:r.__assign(r.__assign({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:r.__assign(r.__assign({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:r.__assign(r.__assign({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:r.__assign(r.__assign({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:r.__assign(r.__assign({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:r.__assign(r.__assign({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:r.__assign(r.__assign({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:r.__assign(r.__assign({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:u,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:o.deepMix({},u.grid,{line:{type:"line"}})},radius:{title:null,grid:o.deepMix({},u.grid,{line:{type:"circle"}})}},legend:{common:l,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:l.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e[""+i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+i.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+i.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+i.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+i.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+i.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getComponentController=e.getComponentControllerNames=e.unregisterComponentController=e.registerComponentController=void 0;var r={};e.registerComponentController=function(t,e){r[t]=e},e.unregisterComponentController=function(t){delete r[t]},e.getComponentControllerNames=function(){return Object.keys(r)},e.getComponentController=function(t){return r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaddingCal=void 0;var r=n(0),i=n(2),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return this.top=Math.max(this.top,e),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,i),this},t.prototype.shrink=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return this.top+=e,this.right+=n,this.bottom+=r,this.left+=i,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:this.top+=r;break;case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,r.__spreadArrays([void 0],this.getPadding())))},t}();e.PaddingCal=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(24),o=n(15),s=n(13),u=n(77),l=n(29),c=n(42),h=r.__importDefault(n(117));var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",h.default.fromData(e,"tooltip:show",r.__assign({items:n,title:a},t)));var s=this.getTooltipCfg(),u=s.follow,l=s.showMarkers,c=s.showCrosshairs,f=s.showContent,p=s.marker,d=this.items,g=this.title;if(i.isEqual(g,a)&&i.isEqual(d,n)?(this.tooltip&&u&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",h.default.fromData(e,"tooltip:change",r.__assign({items:n,title:a},t))),(i.isFunction(f)?f(n):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(i.mix({},s,{items:this.getItemsAfterProcess(n),title:a},u?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var y=i.get(s,["crosshairs","follow"],!1);this.renderCrosshairs(y?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",h.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),this.reset()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,r=e=i.flatten(e);n<r.length;n++)for(var a=0,o=r[n];a<o.length;a++){var s=o[a],u=s.mappingData,l=u.x,c=u.y;s.x=i.isArray(l)?l[l.length-1]:l,s.y=i.isArray(c)?c[c.length-1]:c}if(!1===this.getTooltipCfg().shared&&e.length>1){for(var h=e[0],f=Math.abs(t.y-h[0].y),p=0,d=e;p<d.length;p++){var g=d[p],y=Math.abs(t.y-g[0].y);y<=f&&(h=g,f=y)}e=[h]}return function(t){for(var e=[],n=function(n){var r=t[n];i.find(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}(i.flatten(e))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,a=r.y,o=r.width,s=r.height;return new l.BBox(i,a,o,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),a=i.get(r,["components","tooltip"],{}),o=i.get(n,"enterable",a.enterable);return i.deepMix({},a,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(i.isBoolean(t)||!i.get(t,"customContent"))return t;var e=t.customContent;return r.__assign(r.__assign({},t),{customContent:function(t,n){var r=e(t,n)||"";return i.isString(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new a.HtmlTooltip(r.__assign(r.__assign({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,a=t;i<a.length;i++){var o=a[i],s=o.x,u=o.y,l=r.__assign(r.__assign({fill:o.color,symbol:"circle",shadowColor:o.color},e),{x:s,y:u});n.addShape("marker",{attrs:l})}},e.prototype.renderCrosshairs=function(t,e){var n=i.get(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(o.isPointInCoordinate(n,t)){var r,u;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y});else{var l=o.getAngleByPoint(n,t),c=n.getCenter(),h=n.getRadius();u=s.polarToCartesian(c.x,c.y,h,l),r=c}var f=i.deepMix({start:r,end:u,container:this.getTooltipCrosshairsGroup()},i.get(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete f.type;var p=this.xCrosshair;p?p.update(f):(p=new a.Crosshair.Line(f)).init(),p.render(),p.show(),this.xCrosshair=p}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(o.isPointInCoordinate(n,t)){var r,s;if(n.isRect){var u=void 0,l=void 0;n.isTransposed?(u={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(u={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),r={start:u,end:l},s="Line"}else r={center:n.getCenter(),radius:o.getDistanceToCenter(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=i.deepMix({container:this.getTooltipCrosshairsGroup()},r,i.get(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](r)).init():c.update(r):(c=new a.Crosshair[s](r)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var r=i.get(n,["crosshairs","text"]),a=i.get(n,["crosshairs","follow"]),o=this.items;if(r){var s=this.getViewWithGeometry(this.view),u=o[0],l=s.getXScale(),c=s.getYScales()[0],h=void 0,f=void 0;if(a){var p=this.view.getCoordinate().invert(e);h=l.invert(p.x),f=c.invert(p.y)}else h=u.data[l.field],f=u.data[c.field];var d="x"===t?h:f;return i.isFunction(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var n=this.getTooltipCfg(),r=u.findItemsFromView(t,e,n),i=0,a=t.views;i<a.length;i++){var o=a[i];r=r.concat(this.findItemsFromView(o,e))}return r},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:i.find(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var r={};e.getAnimation=function(t){return r[t.toLowerCase()]},e.registerAnimation=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelChange=void 0;var r=n(1);e.isModelChange=function(t,e){return r.some(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!r.isEqual(t[n],e[n])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMappingValue=void 0;var r=n(0);e.getMappingValue=function(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,r.__spreadArrays([e],a)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(0),i=n(1),a=n(2),o=n(222),s=n(25),u=n(61),l=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;i.isString(e)&&u.MarkerSymbols[e]&&(t.symbol=u.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,u){var h=n.getScale(n.type);if(h.isCategory){var f=h.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,y=e.coordinate.isPolar;return h.getTicks().map((function(n,v){var m,x=n.text,_=n.value,b=x,M=h.invert(_),C=0===t.filterFieldData(f,[(m={},m[f]=M,m)]).length;i.each(t.views,(function(t){var e;t.filterFieldData(f,[(e={},e[f]=M,e)]).length||(C=!0)}));var P,S,O=o.getMappingValue(p,M,g),w=o.getMappingValue(d,M,"point"),A=e.getShapeMarker(w,{color:O,isInPolar:y}),T=u;return i.isFunction(T)&&(T=T(b,v,r.__assign({name:b,value:M},i.deepMix({},a,A)))),function(t,e){var n=t.symbol;if(i.isString(n)&&-1!==l.indexOf(n)){var r=i.get(t,"style",{}),a=i.get(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=i.deepMix({},t.style,{lineWidth:a,stroke:o,fill:null})}}(A=i.deepMix({},a,A,s.omit(r.__assign({},T),["style"])),O),T&&T.style&&(A.style=(P=A.style,S=T.style,i.isFunction(S)?S(P):i.deepMix({},P,S))),c(A),{id:M,name:b,value:M,marker:A,unchecked:C}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n,r){var a=e;i.isFunction(a)&&(a=a(n.name,r,i.deepMix({},t,n)));var o=i.deepMix({},t,a,n.marker);return c(o),n.marker=o,n}))},e.getLegendThemeCfg=function(t,e){var n=i.get(t,["components","legend"],{});return i.deepMix({},i.get(n,["common"],{}),i.deepMix({},i.get(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var r=n(0),i=r.__importStar(n(62));e.Shape=i,r.__exportStar(n(14),e);var a=n(520);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return a.default}});var o=n(121);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.default}});var s=n(226);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return s.default}}),e.version="0.5.12"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n(16),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function u(t,e){var n=t.match(s);r.each(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),l=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:c.maxX,y:c.minY},a={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:c.maxX,y:c.maxY},a={x:c.minX,y:c.minY}):(r={x:c.minX,y:c.maxY},a={x:c.maxX,y:c.minY});var h=Math.tan(s),f=h*h,p=(a.x-r.x+h*(a.y-r.y))/(f+1)+r.x,d=h*(a.x-r.x+h*(a.y-r.y))/(f+1)+r.y,g=t.createLinearGradient(r.x,r.y,p,d);return u(l,g),g}function c(t,e,n){var r=a.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),l=parseFloat(r[3]),c=r[4];if(0===l){var h=c.match(s);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(f.minX+p*i,f.minY+d*o,0,f.minX+p/2,f.minY+d/2,l*g);return u(c,y),y}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,a=o.exec(n),s=a[1],u=a[2];function l(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,u.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=u,i.complete?l():(i.onload=l,i.src=i.src),r}e.parseLineGradient=l,e.parseRadialGradient=c,e.parsePattern=h,e.parseStyle=function(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if(r.isString(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return h(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0},e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,[e,n,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}e.default=function(t,e){var n=e[1],i=e[2],s=r.mod(r.toRadian(e[3]),2*Math.PI),u=e[4],l=e[5],c=t[0],h=t[1],f=e[6],p=e[7],d=Math.cos(s)*(c-f)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(c-f)/2+Math.cos(s)*(h-p)/2,y=d*d/(n*n)+g*g/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var v=n*n*(g*g)+i*i*(d*d),m=v?Math.sqrt((n*n*(i*i)-v)/v):1;u===l&&(m*=-1),isNaN(m)&&(m=0);var x=i?m*n*g/i:0,_=n?m*-i*d/n:0,b=(c+f)/2+Math.cos(s)*x-Math.sin(s)*_,M=(h+p)/2+Math.sin(s)*x+Math.cos(s)*_,C=[(d-x)/n,(g-_)/i],P=[(-1*d-x)/n,(-1*g-_)/i],S=o([1,0],C),O=o(C,P);return a(C,P)<=-1&&(O=Math.PI),a(C,P)>=1&&(O=0),0===l&&O>0&&(O-=2*Math.PI),1===l&&O<0&&(O+=2*Math.PI),{cx:b,cy:M,rx:r.isSamePoint(t,[f,p])?0:n,ry:r.isSamePoint(t,[f,p])?0:i,startAngle:S,endAngle:S+O,xRotation:s,arcFlag:u,sweepFlag:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);e.default=function(t,e,n){var i=r.getOffScreenContext();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var u=t[s],l=t[(s+1)%o];if(i(u,l,[e,n]))return!0;r(u[1]-n)>0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);e.default=function(t,e,n,i,a,o,s,u){var l=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<i||l>a)return!1;var c={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return r.distance(c.x,c.y,s,u)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(80));e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s<o-1;s++){var u=t[s][0],l=t[s][1],c=t[s+1][0],h=t[s+1][1];if(r.default(u,l,c,h,e,n,i))return!0}if(a){var f=t[0],p=t[o-1];if(r.default(f[0],f[1],p[0],p[1],e,n,i))return!0}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(52),o=n(6),s=n(49),u=n(125),l=n(232);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=s.getSplinePath(t,!1,r)):(a=s.getLinePath(t,!1),e&&a.push(["Z"])),a);var a}function h(t,e,n,i,a,o){if(t.length){var s=t[0];return r.isArray(s.y)?function(t,e,n,i,a,o){var s=[],l=[];r.each(t,(function(t){var e=u.splitPoints(t);s.push(e[1]),l.push(e[0])}));var h=c(s,e,i,a,o),f=c(l,e,i,a,o);return n?h:h.concat(f)}(t,e,n,i,a,o):c(t,e,i,a,o)}return[]}var f=i.registerShapeFactory("line",{defaultShapeType:"line"});r.each(["line","dot","dash","smooth"],(function(t){i.registerShape("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,u=s.start,l=s.end;r=[[u.x,l.y],[l.x,u.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,u=t.showSinglePoint,l=o.getStyle(t,!0,!1,"lineWidth"),c=a.getPathPoints(t.points,i,u),f=[],p=0,d=c.length;p<d;p++){var g=c[p];f=f.concat(h(g,s,r,e,n,l))}return l.path=f,l}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return l.getLineMarker(e,t)}})})),e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineMarker=void 0;var r={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};e.getLineMarker=function(t,e){var n=t.color;return{symbol:r[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getQPath=e.getCPath=void 0;var r=n(1);e.getCPath=function(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]},e.getQPath=function(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return r.each(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(15),o=n(15),s=r.__importDefault(n(78)),u=Math.PI/2,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(i.isNumber(t))n=t;else if(i.isString(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return i.map(n,(function(t){if(t&&a){var e=a.scale(i.get(t.data,a.field));return r.__assign(r.__assign({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),u=t.labelEmit,l=this.getCirclePoint(s,o,r,u);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,u):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),i.isArray(t.x)||i.isArray(t.y)?{x:i.isArray(t.x)?t.x[e]:t.x,y:i.isArray(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return o.getAngleByPoint(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),u=a.getDistanceToCenter(o,n);if(0===u)return r.__assign(r.__assign({},s),{r:u});var l=t;o.isTransposed&&u>e&&!i?l=t+2*Math.asin(e/(2*u)):u+=e;return{x:s.x+u*Math.cos(l),y:s.y+u*Math.sin(l),r:u}},e.prototype.getLabelRotate=function(t,e,n){var r=t+u;return n&&(r-=u),r&&(r>u?r-=Math.PI:r<-u&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return i.each(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,u=Math.abs(o-s),l=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(c-=o,l-o>u&&(u=l-o);a;)for(h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),u-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=h.length;i--;)if(i>0){var f=h[i-1],p=h[i];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>u&&(f.pos=u-f.size),h.splice(i,1),a=!0)}i=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,a=+new Date;if(a-r>i.get(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&i.isEqual(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:i.head(t),end:i.last(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(r.__importDefault(n(135)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(i.each(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(r.__importDefault(n(135)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i=n(0),a=n(54),o=i.__importDefault(n(11)),s=n(5);function u(t,e,n,r){var i=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),o=t.range,s=o[0],u=o[1];if(i<s&&(i=s),a>u&&(a=u),i===u&&a===u)return null;var l=t.invert(i),c=t.invert(a);if(t.isCategory){var h=t.values.indexOf(l),f=t.values.indexOf(c),p=t.values.slice(h,f+1);return function(t){return p.includes(t)}}return function(t){return t>=l&&t<=c}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={})),e.BRUSH_FILTER_EVENTS=r;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return i.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(s.isMask(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,o=i.view,l={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,l));var c=o.getCoordinate(),h=c.invert(e),f=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=u(p,"x",h,f);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=u(g,"y",h,f);this.filterView(o,g.field,d)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,l))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,a.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,a.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(115),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=void 0;var r=n(0),i=n(22),a=n(506),o=n(216);i.registerTheme("dark",o.createThemeByStyleSheet(a.antvDark));var s=r.__importStar(n(224)),u=r.__importStar(n(522)),l=n(22);l.registerEngine("canvas",s),l.registerEngine("svg",u);var c=n(22),h=r.__importDefault(n(543)),f=r.__importDefault(n(545)),p=r.__importDefault(n(547)),d=r.__importDefault(n(548)),g=r.__importDefault(n(550)),y=r.__importDefault(n(124)),v=r.__importDefault(n(551)),m=r.__importDefault(n(553)),x=r.__importDefault(n(555)),_=r.__importDefault(n(557));c.registerGeometry("Polygon",m.default),c.registerGeometry("Interval",d.default),c.registerGeometry("Schema",x.default),c.registerGeometry("Path",y.default),c.registerGeometry("Point",v.default),c.registerGeometry("Line",g.default),c.registerGeometry("Area",h.default),c.registerGeometry("Edge",f.default),c.registerGeometry("Heatmap",p.default),c.registerGeometry("Violin",_.default),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578);var b=n(22),M=r.__importDefault(n(78)),C=r.__importDefault(n(579)),P=r.__importDefault(n(580)),S=r.__importDefault(n(234));b.registerGeometryLabel("base",M.default),b.registerGeometryLabel("interval",C.default),b.registerGeometryLabel("pie",P.default),b.registerGeometryLabel("polar",S.default);var O=n(22),w=n(581),A=n(582),T=n(583),E=n(584),I=n(585),L=n(586),D=n(587),B=n(589),j=n(591),k=n(592),R=n(593),F=n(594),N=n(595);O.registerGeometryLabelLayout("overlap",L.overlap),O.registerGeometryLabelLayout("distribute",w.distribute),O.registerGeometryLabelLayout("fixed-overlap",L.fixedOverlap),O.registerGeometryLabelLayout("hide-overlap",D.hideOverlap),O.registerGeometryLabelLayout("limit-in-shape",I.limitInShape),O.registerGeometryLabelLayout("limit-in-canvas",E.limitInCanvas),O.registerGeometryLabelLayout("limit-in-plot",N.limitInPlot),O.registerGeometryLabelLayout("pie-outer",A.pieOuterLabelLayout),O.registerGeometryLabelLayout("adjust-color",B.adjustColor),O.registerGeometryLabelLayout("interval-adjust-position",j.intervalAdjustPosition),O.registerGeometryLabelLayout("interval-hide-overlap",k.intervalHideOverlap),O.registerGeometryLabelLayout("point-adjust-position",R.pointAdjustPosition),O.registerGeometryLabelLayout("pie-spider",T.pieSpiderLabelLayout),O.registerGeometryLabelLayout("path-adjust-position",F.pathAdjustPosition);var Y=n(598),G=n(599),V=n(601),H=n(602),X=n(603),z=n(604),W=n(605),q=n(606),U=n(22);U.registerAnimation("fade-in",Y.fadeIn),U.registerAnimation("fade-out",Y.fadeOut),U.registerAnimation("grow-in-x",G.growInX),U.registerAnimation("grow-in-xy",G.growInXY),U.registerAnimation("grow-in-y",G.growInY),U.registerAnimation("scale-in-x",X.scaleInX),U.registerAnimation("scale-in-y",X.scaleInY),U.registerAnimation("wave-in",W.waveIn),U.registerAnimation("zoom-in",q.zoomIn),U.registerAnimation("zoom-out",q.zoomOut),U.registerAnimation("position-update",H.positionUpdate),U.registerAnimation("sector-path-update",z.sectorPathUpdate),U.registerAnimation("path-in",V.pathIn);var Z=n(22),Q=r.__importDefault(n(607)),K=r.__importDefault(n(608)),$=r.__importDefault(n(609)),J=r.__importDefault(n(610)),tt=r.__importDefault(n(611)),et=r.__importDefault(n(612));Z.registerFacet("rect",tt.default),Z.registerFacet("mirror",J.default),Z.registerFacet("list",K.default),Z.registerFacet("matrix",$.default),Z.registerFacet("circle",Q.default),Z.registerFacet("tree",et.default);var nt=n(22),rt=r.__importDefault(n(613)),it=r.__importDefault(n(616)),at=r.__importDefault(n(618)),ot=r.__importDefault(n(619)),st=r.__importDefault(n(219)),ut=r.__importDefault(n(620));nt.registerComponentController("axis",it.default),nt.registerComponentController("legend",at.default),nt.registerComponentController("tooltip",st.default),nt.registerComponentController("annotation",rt.default),nt.registerComponentController("slider",ot.default),nt.registerComponentController("scrollbar",ut.default);var lt=n(22),ct=r.__importDefault(n(621)),ht=r.__importDefault(n(622)),ft=r.__importDefault(n(236)),pt=r.__importDefault(n(623)),dt=r.__importDefault(n(624)),gt=r.__importDefault(n(625)),yt=r.__importDefault(n(626)),vt=r.__importDefault(n(627)),mt=r.__importDefault(n(133)),xt=r.__importDefault(n(628)),_t=r.__importDefault(n(629)),bt=r.__importStar(n(630));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=r.__importDefault(n(631)),Ct=r.__importDefault(n(632)),Pt=r.__importDefault(n(633)),St=r.__importDefault(n(634)),Ot=r.__importDefault(n(635)),wt=r.__importDefault(n(636)),At=r.__importDefault(n(638)),Tt=r.__importDefault(n(639)),Et=r.__importDefault(n(640)),It=r.__importDefault(n(641)),Lt=r.__importDefault(n(642)),Dt=r.__importDefault(n(238)),Bt=r.__importDefault(n(237)),jt=r.__importDefault(n(643)),kt=r.__importDefault(n(644)),Rt=r.__importDefault(n(645)),Ft=r.__importStar(n(239));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Ft.BRUSH_FILTER_EVENTS}});var Nt=r.__importDefault(n(646)),Yt=r.__importDefault(n(647)),Gt=r.__importDefault(n(648)),Vt=r.__importDefault(n(649)),Ht=r.__importDefault(n(650)),Xt=r.__importDefault(n(651)),zt=r.__importDefault(n(652)),Wt=r.__importDefault(n(653));lt.registerAction("tooltip",ft.default),lt.registerAction("sibling-tooltip",ht.default),lt.registerAction("ellipsis-text",pt.default),lt.registerAction("element-active",dt.default),lt.registerAction("element-single-active",vt.default),lt.registerAction("element-range-active",yt.default),lt.registerAction("element-highlight",mt.default),lt.registerAction("element-highlight-by-x",_t.default),lt.registerAction("element-highlight-by-color",xt.default),lt.registerAction("element-single-highlight",Mt.default),lt.registerAction("element-range-highlight",bt.default),lt.registerAction("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),lt.registerAction("element-selected",Pt.default),lt.registerAction("element-single-selected",St.default),lt.registerAction("element-range-selected",Ct.default),lt.registerAction("element-link-by-color",gt.default),lt.registerAction("active-region",ct.default),lt.registerAction("list-active",Ot.default),lt.registerAction("list-selected",At.default),lt.registerAction("list-highlight",wt.default),lt.registerAction("list-unchecked",Tt.default),lt.registerAction("list-checked",Et.default),lt.registerAction("legend-item-highlight",wt.default,{componentNames:["legend"]}),lt.registerAction("axis-label-highlight",wt.default,{componentNames:["axis"]}),lt.registerAction("rect-mask",Bt.default),lt.registerAction("x-rect-mask",Lt.default,{dim:"x"}),lt.registerAction("y-rect-mask",Lt.default,{dim:"y"}),lt.registerAction("circle-mask",It.default),lt.registerAction("path-mask",Dt.default),lt.registerAction("smooth-path-mask",jt.default),lt.registerAction("cursor",kt.default),lt.registerAction("data-filter",Rt.default),lt.registerAction("brush",Ft.default),lt.registerAction("brush-x",Ft.default,{dims:["x"]}),lt.registerAction("brush-y",Ft.default,{dims:["y"]}),lt.registerAction("sibling-filter",Nt.default),lt.registerAction("sibling-x-filter",Nt.default),lt.registerAction("sibling-y-filter",Nt.default),lt.registerAction("element-filter",Yt.default),lt.registerAction("element-sibling-filter",Gt.default),lt.registerAction("element-sibling-filter-record",Gt.default,{byRecord:!0}),lt.registerAction("view-drag",Ht.default),lt.registerAction("view-move",Xt.default),lt.registerAction("scale-translate",zt.default),lt.registerAction("scale-zoom",Wt.default),lt.registerAction("reset-button",Vt.default,{name:"reset-button",text:"reset"});var qt=n(22);function Ut(t){return t.isInPlot()}function Zt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}qt.registerInteraction("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),qt.registerInteraction("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),qt.registerInteraction("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),qt.registerInteraction("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),qt.registerInteraction("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),qt.registerInteraction("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),qt.registerInteraction("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),qt.registerInteraction("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),qt.registerInteraction("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),qt.registerInteraction("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),qt.registerInteraction("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),qt.registerInteraction("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),qt.registerInteraction("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ut,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ut,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),qt.registerInteraction("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),qt.registerInteraction("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ut,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ut,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),qt.registerInteraction("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ut,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),qt.registerInteraction("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),qt.registerInteraction("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),qt.registerInteraction("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),qt.registerInteraction("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),qt.registerInteraction("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),qt.registerInteraction("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),qt.registerInteraction("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Zt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Zt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),qt.registerInteraction("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});var Qt=n(2);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return Qt.VIEW_LIFE_CIRCLE}}),r.__exportStar(n(22),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(151),s=n(322),u=function(t){function e(e){var n=this,u=e.container,l=e.width,c=e.height,h=e.autoFit,f=void 0!==h&&h,p=e.padding,d=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,x=void 0===m||m,_=e.visible,b=void 0===_||_,M=e.supportCSSTransform,C=void 0!==M&&M,P=e.defaultInteractions,S=void 0===P?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:P,O=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=i.isString(u)?document.getElementById(u):u,I=s.createDom('<div style="position:relative;"></div>');E.appendChild(I);var L=s.getChartSize(E,f,l,c),D=new(o.getEngine(y).Canvas)(r.__assign({container:I,pixelRatio:v,localRefresh:x,supportCSSTransform:C},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:d,visible:b,options:O,limitInPlot:w,theme:A,syncViewPadding:T})||this).onResize=i.debounce((function(){n.forceFit()}),300),n.ele=E,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=f,n.localRefresh=x,n.renderer=y,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return r.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;i.each(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),s.removeDom(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=s.getChartSize(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){s.modifyCSS(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(r.__importDefault(n(154)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(136)),a=r.__importDefault(n(83));e.default=function(t,e){return void 0===e&&(e=[]),i.default(t,(function(t){return!a.default(e,t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(19)),a=r.__importDefault(n(137)),o=r.__importDefault(n(7)),s=r.__importDefault(n(55));e.default=function(t,e){if(!o.default(t))return null;var n;if(i.default(e)&&(n=e),s.default(e)&&(n=function(t){return a.default(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34)),a=r.__importDefault(n(7));e.default=function(t,e){for(var n=null,r=0;r<t.length;r++){var o=t[r][e];if(!i.default(o)){n=a.default(o)?o[0]:o;break}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if(!r.default(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function t(e,n){if(void 0===n&&(n=[]),r.default(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(139)),o=r.__importDefault(n(140));e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(i.default(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var s=a.default(e);return{min:o.default(e),max:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,a=r.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var o=e[r],s=-1;(s=a.call(t,o))>-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(18)),a=r.__importDefault(n(141));e.default=function(t,e){var n=[];if(!i.default(t))return n;for(var r=-1,o=[],s=t.length;++r<s;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return a.default(t,o),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(36)),o=r.__importDefault(n(19));e.default=function(t,e){var n;if(o.default(e))n=function(t,n){return e(t)-e(n)};else{var r=[];a.default(e)?r.push(e):i.default(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(143));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.default([].concat.apply([],t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(34));e.default=function(t,e){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o][e];if(!a.default(s)){i.default(s)||(s=[s]);for(var u=0;u<s.length;u++){var l=s[u];r[l]||(n.push(l),r[l]=!0)}}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t){if(r.default(t))return t[0]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t){if(r.default(t)){return t[t.length-1]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(36));e.default=function(t,e){return!(!i.default(t)&&!a.default(t))&&t[0]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(36));e.default=function(t,e){return!(!i.default(t)&&!a.default(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(144));e.default=function(t,e){if(!e)return[t];var n=r.default(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){var e=0,n=0,i=0,a=0;return r.default(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t){return r.default(t)&&t%1!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t){return r.default(t)&&t%2==0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30)),i=Number.isInteger?Number.isInteger:function(t){return r.default(t)&&t%1==0};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t){return r.default(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t){return r.default(t)&&t%2!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t){return r.default(t)&&t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(19));e.default=function(t,e){if(i.default(t)){for(var n,r=-1/0,o=0;o<t.length;o++){var s=t[o],u=a.default(e)?e(s):s[e];u>r&&(n=s,r=u)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(19));e.default=function(t,e){if(i.default(t)){for(var n,r=1/0,o=0;o<t.length;o++){var s=t[o],u=a.default(e)?e(s):s[e];u<r&&(n=s,r=u)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(43));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(146));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(83)),a=r.__importDefault(n(147));e.default=function(t,e){return i.default(a.default(t),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(56));e.default=function(t){return r.default(t).toLowerCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(56));e.default=function(t){var e=r.default(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(56));e.default=function(t){return r.default(t).toUpperCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(56));e.default=function(t){var e=r.default(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"Arguments")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"Boolean")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"Date")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"Error")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t){return r.default(t)&&isFinite(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(23));e.default=function(t){return r.default(t,"RegExp")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return void 0===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(19));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var o=t[r];a.default(o)&&(o=o.prototype),i.default(n.prototype,o)}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).__importDefault(n(7));e.default=function t(e){if("object"!==r(e)||null===e)return e;var n;if(i.default(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(19));e.default=function(t,e){if(!r.default(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return o.set(a,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(55));function o(t,e,n,r){for(var s in n=n||0,r=r||5,e)if(e.hasOwnProperty(s)){var u=e[s];null!==u&&a.default(u)?(a.default(t[s])||(t[s]={}),n<r?o(t[s],u,n+1,r):t[s]=e[s]):i.default(u)?(t[s]=[],t[s]=t[s].concat(u)):void 0!==u&&(t[s]=u)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(19));e.default=function(t,e,n,r){a.default(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i.default(s,t.prototype),t.superclass=o(e.prototype,e),i.default(s,n),i.default(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t,e){if(!r.default(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34)),a=r.__importDefault(n(18)),o=r.__importDefault(n(148)),s=r.__importDefault(n(149)),u=Object.prototype.hasOwnProperty;e.default=function(t){if(i.default(t))return!0;if(a.default(t))return!t.length;var e=o.default(t);if("Map"===e||"Set"===e)return!t.size;if(s.default(t))return!Object.keys(t).length;for(var n in t)if(u.call(t,n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(19)),a=r.__importDefault(n(150));e.default=function(t,e,n){return i.default(n)?!!n(t,e):a.default(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push(e(a,i))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34)),a=r.__importDefault(n(67)),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return a.default(t)&&!i.default(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(36));e.default=function(t,e,n){for(var i=0,a=r.default(e)?e.split("."):e;t&&i<a.length;)t=t[a[i++]];return void 0===t||i<a.length?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(67)),a=r.__importDefault(n(36)),o=r.__importDefault(n(30));e.default=function(t,e,n){var r=t,s=a.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(i.default(r[t])||(r[t]=o.default(s[e+1])?[]:{}),r=r[t]):r[t]=n})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(43)),a=r.__importDefault(n(55)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!a.default(t))return{};var n={};return i.default(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(142));e.default=function(t,e){return r.default(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,a,o,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t){return r.default(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34)),a=r.__importDefault(n(18));e.default=function(t){return i.default(t)?0:a.default(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDom=e.getChartSize=void 0;var r=n(2);function i(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,a){var o=n,s=a;if(e){var u=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);o=u.width?u.width:o,s=u.height?u.height:s}return{width:Math.max(i(o)?o:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(i(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=n(44);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return a.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return a.modifyCSS}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var s=n.childNodes[0];return n.removeChild(s),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(57)),a=r.__importDefault(n(152));e.default=function(t,e){var n=a.default(t,e),r=parseFloat(i.default(t,"borderTopWidth"))||0,o=parseFloat(i.default(t,"paddingTop"))||0,s=parseFloat(i.default(t,"paddingBottom"))||0;return n+r+(parseFloat(i.default(t,"borderBottomWidth"))||0)+o+s+(parseFloat(i.default(t,"marginTop"))||0)+(parseFloat(i.default(t,"marginBottom"))||0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(57)),a=r.__importDefault(n(153));e.default=function(t,e){var n=a.default(t,e),r=parseFloat(i.default(t,"borderLeftWidth"))||0,o=parseFloat(i.default(t,"paddingLeft"))||0,s=parseFloat(i.default(t,"paddingRight"))||0,u=parseFloat(i.default(t,"borderRightWidth"))||0,l=parseFloat(i.default(t,"marginRight"))||0;return n+r+u+o+s+(parseFloat(i.default(t,"marginLeft"))||0)+l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(90),o=r.__importDefault(n(158)),s=n(38),u=r.__importDefault(n(337)),l=r.__importDefault(n(366)),c=a.detect(),h=c&&"firefox"===c.name,f=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");s.isString(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new l.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new u.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(h&&!s.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!s.isNil(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=f},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&p())}function p(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.multiplyScalarAndAdd=e.multiplyScalar=e.equals=e.exactEquals=e.subtract=e.add=e.LDU=e.frob=e.str=e.fromScaling=e.fromRotation=e.scale=e.rotate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*s+a*u,t[1]=i*s+o*u,t[2]=r*l+a*c,t[3]=i*l+o*c,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}e.create=function(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},e.fromValues=function(t,e,n,i){var a=new r.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=i,a},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.transpose=function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*a-i*r;return o?(o=1/o,t[0]=a*o,t[1]=-r*o,t[2]=-i*o,t[3]=n*o,t):null},e.adjoint=function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},e.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=r*-s+a*u,t[3]=i*-s+o*u,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=a*u,t[3]=o*u,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},e.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},e.LDU=function(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=a,e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.fromTranslation=e.fromScaling=e.fromRotation=e.translate=e.scale=e.rotate=e.multiply=e.determinant=e.invert=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=n[0],c=n[1],h=n[2],f=n[3],p=n[4],d=n[5];return t[0]=r*l+a*c,t[1]=i*l+o*c,t[2]=r*h+a*f,t[3]=i*h+o*f,t[4]=r*p+a*d+s,t[5]=i*p+o*d+u,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}e.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},e.fromValues=function(t,e,n,i,a,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=a,s[5]=o,s},e.set=function(t,e,n,r,i,a,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=n*a-r*i;return u?(u=1/u,t[0]=a*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-a*o)*u,t[5]=(r*o-n*s)*u,t):null},e.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*l,t[1]=i*c+o*l,t[2]=r*-l+a*c,t[3]=i*-l+o*c,t[4]=s,t[5]=u,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r*l,t[1]=i*l,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=u,t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=r*l+a*c+s,t[5]=i*l+o*c+u,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},e.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=e[0],c=e[1],h=e[2],f=e[3],p=e[4],d=e[5];return Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-h)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-p)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-d)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.exactEquals=e.str=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.conjugate=e.invert=e.lerp=e.dot=e.scale=e.mul=e.multiply=e.add=e.rotateAroundAxis=e.rotateByQuatPrepend=e.rotateByQuatAppend=e.rotateZ=e.rotateY=e.rotateX=e.translate=e.getTranslation=e.setDual=e.setReal=e.getDual=e.getReal=e.set=e.identity=e.copy=e.fromMat4=e.fromRotation=e.fromTranslation=e.fromRotationTranslation=e.fromRotationTranslationValues=e.fromValues=e.clone=e.create=void 0;var r=n(0),i=r.__importStar(n(28)),a=r.__importStar(n(163)),o=r.__importStar(n(162));function s(t,e,n){var r=.5*n[0],i=.5*n[1],a=.5*n[2],o=e[0],s=e[1],u=e[2],l=e[3];return t[0]=o,t[1]=s,t[2]=u,t[3]=l,t[4]=r*l+i*u-a*s,t[5]=i*l+a*o-r*u,t[6]=a*l+r*s-i*o,t[7]=-r*o-i*s-a*u,t}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function l(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[4],u=n[5],l=n[6],c=n[7],h=e[4],f=e[5],p=e[6],d=e[7],g=n[0],y=n[1],v=n[2],m=n[3];return t[0]=r*m+o*g+i*v-a*y,t[1]=i*m+o*y+a*g-r*v,t[2]=a*m+o*v+r*y-i*g,t[3]=o*m-r*g-i*y-a*v,t[4]=r*c+o*s+i*l-a*u+h*m+d*g+f*v-p*y,t[5]=i*c+o*u+a*s-r*l+f*m+d*y+p*g-h*v,t[6]=a*c+o*l+r*u-i*s+p*m+d*v+h*y-f*g,t[7]=o*c-r*s-i*u-a*l+d*m-h*g-f*y-p*v,t}e.create=function(){var t=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},e.clone=function(t){var e=new i.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e},e.fromValues=function(t,e,n,r,a,o,s,u){var l=new i.ARRAY_TYPE(8);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=a,l[5]=o,l[6]=s,l[7]=u,l},e.fromRotationTranslationValues=function(t,e,n,r,a,o,s){var u=new i.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=n,u[3]=r;var l=.5*a,c=.5*o,h=.5*s;return u[4]=l*r+c*n-h*e,u[5]=c*r+h*t-l*n,u[6]=h*r+l*e-c*t,u[7]=-l*t-c*e-h*n,u},e.fromRotationTranslation=s,e.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},e.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.fromMat4=function(t,e){var n=a.create();o.getRotation(n,e);var r=new i.ARRAY_TYPE(3);return o.getTranslation(r,e),s(t,n,r),t},e.copy=u,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.set=function(t,e,n,r,i,a,o,s,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t},e.getReal=a.copy,e.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},e.setReal=a.copy,e.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},e.getTranslation=function(t,e){var n=e[4],r=e[5],i=e[6],a=e[7],o=-e[0],s=-e[1],u=-e[2],l=e[3];return t[0]=2*(n*l+a*o+r*u-i*s),t[1]=2*(r*l+a*s+i*o-n*u),t[2]=2*(i*l+a*u+n*s-r*o),t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=.5*n[0],u=.5*n[1],l=.5*n[2],c=e[4],h=e[5],f=e[6],p=e[7];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=o*s+i*l-a*u+c,t[5]=o*u+a*s-r*l+h,t[6]=o*l+r*u-i*s+f,t[7]=-r*s-i*u-a*l+p,t},e.rotateX=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*o-c*i,p=l*s+h*i+c*r-u*o,d=c*s+h*o+u*i-l*r,g=h*s-u*r-l*i-c*o;return a.rotateX(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=f*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-f*o,t[6]=d*s+g*o+f*i-p*r,t[7]=g*s-f*r-p*i-d*o,t},e.rotateY=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*o-c*i,p=l*s+h*i+c*r-u*o,d=c*s+h*o+u*i-l*r,g=h*s-u*r-l*i-c*o;return a.rotateY(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=f*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-f*o,t[6]=d*s+g*o+f*i-p*r,t[7]=g*s-f*r-p*i-d*o,t},e.rotateZ=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*o-c*i,p=l*s+h*i+c*r-u*o,d=c*s+h*o+u*i-l*r,g=h*s-u*r-l*i-c*o;return a.rotateZ(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=f*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-f*o,t[6]=d*s+g*o+f*i-p*r,t[7]=g*s-f*r-p*i-d*o,t},e.rotateByQuatAppend=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=e[3];return t[0]=s*o+c*r+u*a-l*i,t[1]=u*o+c*i+l*r-s*a,t[2]=l*o+c*a+s*i-u*r,t[3]=c*o-s*r-u*i-l*a,s=e[4],u=e[5],l=e[6],c=e[7],t[4]=s*o+c*r+u*a-l*i,t[5]=u*o+c*i+l*r-s*a,t[6]=l*o+c*a+s*i-u*r,t[7]=c*o-s*r-u*i-l*a,t},e.rotateByQuatPrepend=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-r*l,t[2]=a*c+o*l+r*u-i*s,t[3]=o*c-r*s-i*u-a*l,s=n[4],u=n[5],l=n[6],c=n[7],t[4]=r*c+o*s+i*l-a*u,t[5]=i*c+o*u+a*s-r*l,t[6]=a*c+o*l+r*u-i*s,t[7]=o*c-r*s-i*u-a*l,t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)<i.EPSILON)return u(t,e);var a=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),s=o*n[0]/a,l=o*n[1]/a,c=o*n[2]/a,h=Math.cos(r),f=e[0],p=e[1],d=e[2],g=e[3];t[0]=f*h+g*s+p*c-d*l,t[1]=p*h+g*l+d*s-f*c,t[2]=d*h+g*c+f*l-p*s,t[3]=g*h-f*s-p*l-d*c;var y=e[4],v=e[5],m=e[6],x=e[7];return t[4]=y*h+x*s+v*c-m*l,t[5]=v*h+x*l+m*s-y*c,t[6]=m*h+x*c+y*l-v*s,t[7]=x*h-y*s-v*l-m*c,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t},e.multiply=l,e.mul=l,e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t},e.dot=a.dot,e.lerp=function(t,n,r,i){var a=1-i;return e.dot(n,r)<0&&(i=-i),t[0]=n[0]*a+r[0]*i,t[1]=n[1]*a+r[1]*i,t[2]=n[2]*a+r[2]*i,t[3]=n[3]*a+r[3]*i,t[4]=n[4]*a+r[4]*i,t[5]=n[5]*a+r[5]*i,t[6]=n[6]*a+r[6]*i,t[7]=n[7]*a+r[7]*i,t},e.invert=function(t,n){var r=e.squaredLength(n);return t[0]=-n[0]/r,t[1]=-n[1]/r,t[2]=-n[2]/r,t[3]=n[3]/r,t[4]=-n[4]/r,t[5]=-n[5]/r,t[6]=-n[6]/r,t[7]=n[7]/r,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t},e.length=a.length,e.len=e.length,e.squaredLength=a.squaredLength,e.sqrLen=e.squaredLength,e.normalize=function(t,n){var r=e.squaredLength(n);if(r>0){r=Math.sqrt(r);var i=n[0]/r,a=n[1]/r,o=n[2]/r,s=n[3]/r,u=n[4],l=n[5],c=n[6],h=n[7],f=i*u+a*l+o*c+s*h;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(u-i*f)/r,t[5]=(l-a*f)/r,t[6]=(c-o*f)/r,t[7]=(h-s*f)/r}return t},e.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=e[0],f=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-h)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-f)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-d)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-g)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(l-v)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(160);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var f=e[c];switch(f[0]){case"t":i(l,l,[f[1],f[2]]);break;case"s":o(l,l,[f[1],f[2]]);break;case"r":a(l,l,f[1]);break;case"m":n=l,s=l,u=f[1],r.mat3.multiply(n,u,s)}}return l},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),a=s(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importStar(n(166)),o=r.__importStar(n(167)),s=n(169),u=r.__importStar(n(155)),l=n(365),c=[1,0,0,0,1,0,0,0,1];function h(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var h=e.duration,f=e.easing;if(n=n-a-e.delay,e.repeat)r=n%h/h,r=o[f](r);else{if(!((r=n/h)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=o[f](r)}if(e.onFrame){var p=e.onFrame(r);t.attr(p)}else!function(t,e,n){var r={},a=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var h;for(var f in o)if(!i.isEqual(a[f],o[f]))if("path"===f){var p=o[f],d=a[f];p.length>d.length?(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.fillPathByDiff(d,p),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],x=0;x<y.length;x++)i.isNumber(y[x])&&v&&i.isNumber(v[x])?(h=s.interpolate(v[x],y[x]),m.push(h(n))):m.push(y[x]);r[f].push(m)}}else if("matrix"===f){var _=s.interpolateArray(a[f]||c,o[f]||c)(n);r[f]=_}else l.isColorProp(f)&&l.isGradientColor(o[f])?r[f]=o[f]:i.isFunction(o[f])||(h=s.interpolate(a[f],o[f]),r[f]=h(n));t.attr(r)}}(t,e,r);return!1}var f=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=a.timer((function(i){if(r.current=i,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],h(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?r.now():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linear=void 0,e.linear=function(t){return+t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadInOut=e.quadOut=e.quadIn=void 0,e.quadIn=function(t){return t*t},e.quadOut=function(t){return t*(2-t)},e.quadInOut=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubicInOut=e.cubicOut=e.cubicIn=void 0,e.cubicIn=function(t){return t*t*t},e.cubicOut=function(t){return--t*t*t+1},e.cubicInOut=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyInOut=e.polyOut=e.polyIn=void 0;e.polyIn=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),e.polyOut=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),e.polyInOut=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sinInOut=e.sinOut=e.sinIn=void 0;var r=Math.PI,i=r/2;e.sinIn=function(t){return 1==+t?1:1-Math.cos(t*i)},e.sinOut=function(t){return Math.sin(t*i)},e.sinInOut=function(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expInOut=e.expOut=e.expIn=void 0;var r=n(168);e.expIn=function(t){return r.tpmt(1-+t)},e.expOut=function(t){return 1-r.tpmt(t)},e.expInOut=function(t){return((t*=2)<=1?r.tpmt(1-t):2-r.tpmt(t-1))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circleInOut=e.circleOut=e.circleIn=void 0,e.circleIn=function(t){return 1-Math.sqrt(1-t*t)},e.circleOut=function(t){return Math.sqrt(1- --t*t)},e.circleInOut=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bounceInOut=e.bounceOut=e.bounceIn=void 0;var r=7.5625;function i(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}e.bounceIn=function(t){return 1-i(1-t)},e.bounceOut=i,e.bounceInOut=function(t){return((t*=2)<=1?1-i(1-t):i(t-1)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backInOut=e.backOut=e.backIn=void 0;e.backIn=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),e.backOut=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),e.backInOut=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elasticInOut=e.elasticOut=e.elasticIn=void 0;var r=n(168),i=2*Math.PI;e.elasticIn=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return e*r.tpmt(- --t)*Math.sin((a-t)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return 1-e*r.tpmt(t=+t)*Math.sin((t+a)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticInOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return((t=2*t-1)<0?e*r.tpmt(-t)*Math.sin((a-t)/n):2-e*r.tpmt(t)*Math.sin((a+t)/n))/2}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(170),o=6/29,s=3*o*o;function u(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof v)return m(t);t instanceof i.Rgb||(t=i.rgbConvert(t));var e,n,r=d(t.r),a=d(t.g),o=d(t.b),s=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?e=n=s:(e=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-n),t.opacity)}function l(t,e,n,r){return 1===arguments.length?u(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function h(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function f(t){return t>o?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof v)return new v(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=u(t)),0===t.a&&0===t.b)return new v(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*a.rad2deg;return new v(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function y(t,e,n,r){return 1===arguments.length?g(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function m(t){if(isNaN(t.h))return new c(t.l,0,0,t.opacity);var e=t.h*a.deg2rad;return new c(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e.gray=function(t,e){return new c(t,0,0,null==e?1:e)},e.default=l,e.Lab=c,r.default(c,l,r.extend(i.Color,{brighter:function(t){return new c(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new c(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*f(e),t=1*f(t),n=.82521*f(n),new i.Rgb(p(3.1338561*e-1.6168667*t-.4906146*n),p(-.9787684*e+1.9161415*t+.033454*n),p(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),e.lch=function(t,e,n,r){return 1===arguments.length?g(t):new v(n,e,t,null==r?1:r)},e.hcl=y,e.Hcl=v,r.default(v,y,r.extend(i.Color,{brighter:function(t){return new v(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new v(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return m(this).rgb()}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cubehelix=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(170),o=-.14861,s=1.78277,u=-.29227,l=-.90649,c=1.97294,h=c*l,f=c*s,p=s*u-l*o;function d(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof i.Rgb||(t=i.rgbConvert(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(p*r+h*e-f*n)/(p+h-f),s=r-o,d=(c*(n-o)-u*s)/l,g=Math.sqrt(d*d+s*s)/(c*o*(1-o)),v=g?Math.atan2(d,s)*a.rad2deg-120:NaN;return new y(v<0?v+360:v,g,o,t.opacity)}function g(t,e,n,r){return 1===arguments.length?d(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.default=g,e.Cubehelix=y,r.default(y,g,r.extend(i.Color,{brighter:function(t){return t=null==t?i.brighter:Math.pow(i.brighter,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.darker:Math.pow(i.darker,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a.deg2rad,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),h=Math.sin(t);return new i.Rgb(255*(e+n*(o*r+s*h)),255*(e+n*(u*r+l*h)),255*(e+n*(c*r)),this.opacity)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(47);e.default=function(t,e){var n=r.hue(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interpolateTransformSvg=e.interpolateTransformCss=void 0;var r=n(0).__importDefault(n(68)),i=n(356);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],l=[];return o=t(o),s=t(s),function(t,i,a,o,s,u){if(t!==a||i!==o){var l=s.push("translate(",null,e,null,n);u.push({i:l-4,x:r.default(t,a)},{i:l-2,x:r.default(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:r.default(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,u,l),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:r.default(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,u,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:r.default(t,n)},{i:u-2,x:r.default(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,l),o=s=null,function(t){for(var e,n=-1,r=l.length;++n<r;)u[(e=l[n]).i]=e.x(t);return u.join("")}}}e.interpolateTransformCss=a(i.parseCss,"px, ","px)","deg)"),e.interpolateTransformSvg=a(i.parseSvg,", ",")",")")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseSvg=e.parseCss=void 0;var r,i,a,o,s=n(0).__importStar(n(357));e.parseCss=function(t){return"none"===t?s.identity:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),s.default(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.parseSvg=function(t){return null==t?s.identity:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,s.default(t.a,t.b,t.c,t.d,t.e,t.f)):s.identity)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0;var r=180/Math.PI;e.identity={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},e.default=function(t,e,n,i,a,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}e.default=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],l=e[0],c=e[1],h=e[2],f=l-o,p=c-s,d=f*f+p*p;if(d<1e-12)a=Math.log(h/u)/r,n=function(t){return[o+t*f,s+t*p,u*Math.exp(r*t*a)]};else{var g=Math.sqrt(d),y=(h*h-u*u+4*d)/(2*u*2*g),v=(h*h-u*u-4*d)/(2*h*2*g),m=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-m)/r,n=function(t){var e,n=t*a,l=i(m),c=u/(2*g)*(l*(e=r*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*f,s+c*p,u*l/i(r*n+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hslLong=void 0;var r=n(0),i=n(46),a=r.__importStar(n(47));function o(t){return function(e,n){var r=t((e=i.hsl(e)).h,(n=i.hsl(n)).h),o=a.default(e.s,n.s),s=a.default(e.l,n.l),u=a.default(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e.default=o(a.hue),e.hslLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(46),a=r.__importDefault(n(47));e.default=function(t,e){var n=a.default((t=i.lab(t)).l,(e=i.lab(e)).l),r=a.default(t.a,e.a),o=a.default(t.b,e.b),s=a.default(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=o(e),t.opacity=s(e),t+""}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hclLong=void 0;var r=n(0),i=n(46),a=r.__importStar(n(47));function o(t){return function(e,n){var r=t((e=i.hcl(e)).h,(n=i.hcl(n)).h),o=a.default(e.c,n.c),s=a.default(e.l,n.l),u=a.default(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e.default=o(a.hue),e.hclLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelixLong=void 0;var r=n(0),i=n(46),a=r.__importStar(n(47));function o(t){return function e(n){function r(e,r){var o=t((e=i.cubehelix(e)).h,(r=i.cubehelix(r)).h),s=a.default(e.s,r.s),u=a.default(e.l,r.l),l=a.default(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,r.gamma=e,r}(1)}e.default=o(a.hue),e.cubehelixLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isGradientColor=e.isColorProp=void 0,e.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},e.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(156)),i=n(38),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&i.isParent(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var u=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");i.each(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");i.each(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,a,o){var s=new r.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-t.clientX,c=o.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var u=this._getEventObj(t,e,n,r,i,a);if(r){u.shape=r,o(r,t,u);for(var l=r.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(r.__importDefault(n(158)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(159)),o=n(92),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=o.multiplyVec2(e,[t.minX,t.minY]),u=o.multiplyVec2(e,[t.maxX,t.minY]),l=o.multiplyVec2(e,[t.minX,t.maxY]),c=o.multiplyVec2(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),r=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,y=h.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,x=i+p+g,_=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,x),r=Math.min(r,_),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBBoxMethod=void 0;var r=n(0),i=n(370);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=r.__importDefault(n(371)),o=r.__importDefault(n(372)),s=r.__importDefault(n(373)),u=r.__importDefault(n(379)),l=r.__importDefault(n(380)),c=r.__importDefault(n(381)),h=r.__importDefault(n(390)),f=r.__importDefault(n(391));i.register("rect",a.default),i.register("image",a.default),i.register("circle",o.default),i.register("marker",o.default),i.register("polyline",s.default),i.register("polygon",u.default),i.register("text",l.default),i.register("path",c.default),i.register("line",h.default),i.register("ellipse",f.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(99);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var u=r.Util.getBBoxByArray(n,a),l=u.x,c=u.y,h={minX:l,minY:c,maxX:l+u.width,maxY:c+u.height};return{x:(h=i.mergeArrowBBox(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(69)),i=n(31),a=n(178);function o(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function s(t,e,n){var r=t+n-2*e;if(i.isNumberEqual(r,0))return[.5];var a=(t-e)/r;return a<=1&&a>=0?[a]:[]}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function l(t,e,n,i,a,s,u){var l=o(t,n,a,u),c=o(e,i,s,u),h=r.default.pointAt(t,e,n,i,u),f=r.default.pointAt(n,i,a,s,u);return[[t,e,h.x,h.y,l,c],[l,c,f.x,f.y,a,s]]}e.default={box:function(t,e,n,r,a,u){var l=s(t,n,a)[0],c=s(e,r,u)[0],h=[t,a],f=[e,u];return void 0!==l&&h.push(o(t,n,a,l)),void 0!==c&&f.push(o(e,r,u,c)),i.getBBoxByArray(h,f)},length:function(t,e,n,r,a,o){return function t(e,n,r,a,o,s,u){if(0===u)return(i.distance(e,n,r,a)+i.distance(r,a,o,s)+i.distance(e,n,o,s))/2;var c=l(e,n,r,a,o,s,.5),h=c[0],f=c[1];return h.push(u-1),f.push(u-1),t.apply(null,h)+t.apply(null,f)}(t,e,n,r,a,o,3)},nearestPoint:function(t,e,n,r,i,s,u,l){return a.nearestPoint([t,n,i],[e,r,s],u,l,o)},pointDistance:function(t,e,n,r,a,o,s,u){var l=this.nearestPoint(t,e,n,r,a,o,s,u);return i.distance(l.x,l.y,s,u)},interpolationAt:o,pointAt:function(t,e,n,r,i,a,s){return{x:o(t,n,i,s),y:o(e,r,a,s)}},divide:function(t,e,n,r,i,a,o){return l(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,a,o,s){var l=u(t,n,a,s),c=u(e,r,o,s),h=Math.atan2(c,l);return i.piMod(h)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(31),a=r.__importDefault(n(69)),o=n(178);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function u(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function l(t,e,n,r){var a,o,s,u=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,c=3*e-3*t,h=[];if(i.isNumberEqual(u,0))i.isNumberEqual(l,0)||(a=-c/l)>=0&&a<=1&&h.push(a);else{var f=l*l-4*u*c;i.isNumberEqual(f,0)?h.push(-l/(2*u)):f>0&&(o=(-l-(s=Math.sqrt(f)))/(2*u),(a=(-l+s)/(2*u))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h}function c(t,e,n,r,i,o,u,l,c){var h=s(t,n,i,u,c),f=s(e,r,o,l,c),p=a.default.pointAt(t,e,n,r,c),d=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,u,l,c),y=a.default.pointAt(p.x,p.y,d.x,d.y,c),v=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,y.x,y.y,h,f],[h,f,v.x,v.y,g.x,g.y,u,l]]}e.default={extrema:l,box:function(t,e,n,r,a,o,u,c){for(var h=[t,u],f=[e,c],p=l(t,n,a,u),d=l(e,r,o,c),g=0;g<p.length;g++)h.push(s(t,n,a,u,p[g]));for(g=0;g<d.length;g++)f.push(s(e,r,o,c,d[g]));return i.getBBoxByArray(h,f)},length:function(t,e,n,r,i,a,s,u){return function t(e,n,r,i,a,s,u,l,h){if(0===h)return o.snapLength([e,r,a,u],[n,i,s,l]);var f=c(e,n,r,i,a,s,u,l,.5),p=f[0],d=f[1];return p.push(h-1),d.push(h-1),t.apply(null,p)+t.apply(null,d)}(t,e,n,r,i,a,s,u,3)},nearestPoint:function(t,e,n,r,i,a,u,l,c,h,f){return o.nearestPoint([t,n,i,u],[e,r,a,l],c,h,s,f)},pointDistance:function(t,e,n,r,a,o,s,u,l,c,h){var f=this.nearestPoint(t,e,n,r,a,o,s,u,l,c,h);return i.distance(f.x,f.y,l,c)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o,u,l){return{x:s(t,n,i,o,l),y:s(e,r,a,u,l)}},divide:function(t,e,n,r,i,a,o,s,u){return c(t,e,n,r,i,a,o,s,u)},tangentAngle:function(t,e,n,r,a,o,s,l,c){var h=u(t,n,a,s,c),f=u(e,r,o,l,c);return i.piMod(Math.atan2(f,h))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(31),a=r.__importDefault(n(377));function o(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function s(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function u(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function l(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}e.default={box:function(t,e,n,r,i,a,u){for(var l=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,h=-1/0,f=[a,u],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var d=l+p;a<u?a<d&&d<u&&f.push(d):u<d&&d<a&&f.push(d)}for(p=0;p<f.length;p++){var g=o(t,0,n,r,i,f[p]);g<c&&(c=g),g>h&&(h=g)}var y=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,m=-1/0,x=[a,u];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var _=y+p;a<u?a<_&&_<u&&x.push(_):u<_&&_<a&&x.push(_)}for(p=0;p<x.length;p++){var b=s(0,e,n,r,i,x[p]);b<v&&(v=b),b>m&&(m=b)}return{x:c,y:v,width:h-c,height:m-v}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,h){var f=l(c-t,h-e,-i),p=f[0],d=f[1],g=a.default.nearestPoint(0,0,n,r,p,d),y=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);y<o?g=u(n,r,o):y>s&&(g=u(n,r,s));var v=l(g.x,g.y,i);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,u,l){var c=this.nearestPoint(t,e,n,r,u,l);return i.distance(c.x,c.y,u,l)},pointAt:function(t,e,n,r,i,a,u,l){var c=(u-a)*l+a;return{x:o(t,0,n,r,i,c),y:s(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,u){var l=(s-o)*u+o,c=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,a,0,0,l),h=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,a,0,0,l);return i.piMod(Math.atan2(h,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(31);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){var s=n,u=r;if(0===s||0===u)return{x:t,y:e};for(var l,c,h=a-t,f=o-e,p=Math.abs(h),d=Math.abs(f),g=s*s,y=u*u,v=Math.PI/4,m=0;m<4;m++){l=s*Math.cos(v),c=u*Math.sin(v);var x=(g-y)*Math.pow(Math.cos(v),3)/s,_=(y-g)*Math.pow(Math.sin(v),3)/u,b=l-x,M=c-_,C=p-x,P=d-_,S=Math.hypot(M,b),O=Math.hypot(P,C);v+=S*Math.asin((b*P-M*C)/(S*O))/Math.sqrt(g+y-l*l-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+i(l,h),y:e+i(c,f)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return r.distance(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return r.piMod(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(179),a=r.__importDefault(n(180));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return a.default.box(t)},length:function(t){return i.lengthOfSegment(o(t))},pointAt:function(t,e){return i.pointAtSegments(o(t),e)},pointDistance:function(t,e,n){return i.distanceAtSegment(o(t),e,n)},tangentAngle:function(t,e){return i.angleAtSegments(o(t),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),i.push(o[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(181);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,u=e.font;u||(u=r.assembleFont(e));var l,c=r.getTextWidth(a,u);if(c){var h=e.textAlign,f=e.textBaseline,p=r.getTextHeight(a,o,s),d={x:n,y:i-p};h&&("end"===h||"right"===h?d.x-=c:"center"===h&&(d.x-=c/2)),f&&("top"===f?d.y+=p:"middle"===f&&(d.y+=p/2)),l={x:d.x,y:d.y,width:c,height:p}}else l={x:n,y:i,width:0,height:0};return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(39),a=n(1),o=n(99);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+s-u)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!l||0===Math.sin(l)||a.isNumberEqual(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),h=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var n=[],i=[],o=[],u=0;u<t.length;u++){var l=(m=t[u]).currentPoint,c=m.params,h=m.prePoint,f=void 0;switch(m.command){case"Q":f=r.Quad.box(h[0],h[1],c[1],c[2],c[3],c[4]);break;case"C":f=r.Cubic.box(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;f=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(l[0]),i.push(l[1])}f&&(m.box=f,n.push(f.x,f.x+f.width),i.push(f.y,f.y+f.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var d=a.min(n),g=a.min(i),y=a.max(n),v=a.max(i);if(0===o.length)return{x:d,y:g,width:y-d,height:v-g};for(u=0;u<o.length;u++){var m;(l=(m=o[u]).currentPoint)[0]===d?d-=s(m,e).xExtra:l[0]===y&&(y+=s(m,e).xExtra),l[1]===g?g-=s(m,e).yExtra:l[1]===v&&(v+=s(m,e).yExtra)}return{x:d,y:g,width:y-d,height:v-g}}(t.get("segments")||i.path2Segments(n),u),c=l.x,h=l.y,f={minX:c,minY:h,maxX:c+l.width,maxY:h+l.height};return{x:(f=o.mergeArrowBBox(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){"use strict";function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,u=0;u<n-1;u++){var l=r(o,s/(1-s*u));a.push(l.left),o=l.right}return a.push(o),a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(s=0;s<r;s++){var u=Math.floor(a*s);o[u]=(o[u]||0)+1}var l=o.reduce((function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}e.default=function(t,e){var n=function(t,e){var n,a,o=t.length,s=e.length,u=0;if(0===o||0===s)return null;for(var l=[],c=0;c<=o;c++)l[c]=[],l[c][0]={min:c};for(var h=0;h<=s;h++)l[0][h]={min:h};for(c=1;c<=o;c++){n=t[c-1];for(h=1;h<=s;h++){a=e[h-1],u=r.isEqual(n,a)?0:1;var f=l[c-1][h].min+1,p=l[c][h-1].min+1,d=l[c-1][h-1].min+u;l[c][h]=i(f,p,d)}}return l}(t,e),a=t.length,o=e.length,s=[],u=1,l=1;if(n[a][o]!==a){for(var c=1;c<=a;c++){var h=n[c][c].min;l=c;for(var f=u;f<=o;f++)n[c][f].min<h&&(h=n[c][f].min,l=f);u=l,n[c][u].type&&s.push({index:c-1,type:n[c][u].type})}for(c=s.length-1;c>=0;c--)u=s[c].index,"add"===s[c].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(c=0;c<o-a;c++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){"use strict";function r(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,n){for(var i,a=[].concat(t),o=1/(n+1),s=r(e)[0],u=1;u<=n;u++)o*=u,0===(i=Math.floor(t.length*o))?a.unshift([s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]):a.splice(i,0,[s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]);return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t.length<=1)return t;for(var n,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(n=r(t[a]),e[a][0]){case"M":t[a]=["M"].concat(n[0]);break;case"L":t[a]=["L"].concat(n[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=n[0][0],t[a][7]=n[0][1];break;case"Q":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],2)}t[a]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(184)),o=r.__importDefault(n(185)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},u=function(t,e,n,r,i,a,o,u,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=c*h[d]+c,y=s(g,t,n,i,o),v=s(g,e,r,a,u),m=y*y+v*v;p+=f[d]*Math.sqrt(m)}return c*p},l=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&f.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&f.push(m)}}for(var x,_=f.length,b=_;_--;)x=1-(h=f[_]),p[0][_]=x*x*x*t+3*x*x*h*n+3*x*h*h*i+h*h*h*o,p[1][_]=x*x*x*e+3*x*x*h*r+3*x*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},h=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},f=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:a.default(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,u){i.isArray(t)||(t=[t,e,n,r,a,o,s,u]);var c=l.apply(null,t);return f(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=f(t),e=f(e),h(e,t.x,t.y)||h(e,t.x2,t.y)||h(e,t.x,t.y2)||h(e,t.x2,t.y2)||h(t,e.x,e.y)||h(t,e.x2,e.y)||h(t,e.x,e.y2)||h(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(p(t),p(e)))return n?0:[];for(var r=~~(u.apply(0,t)/8),i=~~(u.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],g=0;g<r+1;g++){var y=d.apply(0,t.concat(g/r));a.push({x:y.x,y:y.y,t:g/r})}for(g=0;g<i+1;g++){y=d.apply(0,e.concat(g/i));o.push({x:y.x,y:y.y,t:g/i})}for(g=0;g<r;g++)for(var v=0;v<i;v++){var m=a[g],x=a[g+1],_=o[v],b=o[v+1],M=Math.abs(x.x-m.x)<.001?"y":"x",C=Math.abs(b.x-_.x)<.001?"y":"x",P=c(m.x,m.y,x.x,x.y,_.x,_.y,b.x,b.y);if(P){if(s[P.x.toFixed(4)]===P.y.toFixed(4))continue;s[P.x.toFixed(4)]=P.y.toFixed(4);var S=m.t+Math.abs((P[M]-m[M])/(x[M]-m[M]))*(x.t-m.t),O=_.t+Math.abs((P[C]-_[C])/(b[C]-_[C]))*(b.t-_.t);S>=0&&S<=1&&O>=0&&O<=1&&(n?l++:l.push({x:P.x,y:P.y,t1:S,t2:O}))}}return l};e.default=function(t,e){return function(t,e,n){var r,i,a,s,u,l,c,h,f,p;t=o.default(t),e=o.default(e);for(var d=n?0:[],y=0,v=t.length;y<v;y++){var m=t[y];if("M"===m[0])r=u=m[1],i=l=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,l,u,l],r=u,i=l);for(var x=0,_=e.length;x<_;x++){var b=e[x];if("M"===b[0])a=c=b[1],s=h=b[2];else{"C"===b[0]?(p=[a,s].concat(b.slice(1)),a=p[6],s=p[7]):(p=[a,s,a,s,c,h,c,h],a=c,s=h);var M=g(f,p,n);if(n)d+=M;else{for(var C=0,P=M.length;C<P;C++)M[C].segment1=y,M[C].segment2=x,M[C].bez1=f,M[C].bez2=p;d=d.concat(M)}}}}}return d}(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=/,?([a-z]),?/gi;e.default=function(t){return t.join(",").replace(r,"$1")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(100)),a=n(100),o=r.__importDefault(n(183));function s(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){for(var e=[],n=null,r=null,u=null,l=0,c=(t=o.default(t)).length,h=0;h<c;h++){var f=t[h];r=t[h+1];var p=f[0],d={command:p,prePoint:n,params:f,startTangent:null,endTangent:null};switch(p){case"M":u=[f[1],f[2]],l=h;break;case"A":var g=i.default(n,f);d.arcParams=g}if("Z"===p)n=u,r=t[l+1];else{var y=f.length;n=[f[y-2],f[y-1]]}r&&"Z"===r[0]&&(r=t[l],e[l]&&(e[l].prePoint=n)),d.currentPoint=n,e[l]&&a.isSamePoint(n,e[l].currentPoint)&&(e[l].prePoint=d.prePoint);var v=r?[r[r.length-2],r[r.length-1]]:null;d.nextPoint=v;var m=d.prePoint;if(["L","H","V"].includes(p))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===p){var x=[f[1],f[2]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-x[0],n[1]-x[1]]}else if("T"===p){x=s((M=e[h-1]).currentPoint,m);"Q"===M.command?(d.command="Q",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-x[0],n[1]-x[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===p){var _=[f[1],f[2]],b=[f[3],f[4]];d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]]}else if("S"===p){var M;_=s((M=e[h-1]).currentPoint,m),b=[f[1],f[2]];"C"===M.command?(d.command="C",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]]):(d.command="SQ",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===p){var C=.001,P=d.arcParams||{},S=P.cx,O=void 0===S?0:S,w=P.cy,A=void 0===w?0:w,T=P.rx,E=void 0===T?0:T,I=P.ry,L=void 0===I?0:I,D=P.sweepFlag,B=void 0===D?0:D,j=P.startAngle,k=void 0===j?0:j,R=P.endAngle,F=void 0===R?0:R;0===B&&(C*=-1);var N=E*Math.cos(k-C)+O,Y=L*Math.sin(k-C)+A;d.startTangent=[N-u[0],Y-u[1]];var G=E*Math.cos(k+F+C)+O,V=L*Math.sin(k+F-C)+A;d.endTangent=[m[0]-G,m[1]-V]}e.push(d)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(189)),a=r.__importDefault(n(188)),o=n(1);function s(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],a=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function u(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var n,r,l=u(t),c=u(e);if(n=l,(r=c).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var h=!1;if(o.each(e,(function(e){if(i.default(t,e[0],e[1]))return h=!0,!1})),h)return!0;if(o.each(t,(function(t){if(i.default(e,t[0],t[1]))return h=!0,!1})),h)return!0;var f=s(t),p=s(e),d=!1;return o.each(p,(function(t){if(function(t,e){var n=!1;return o.each(t,(function(t){if(a.default(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(f,t))return d=!0,!1})),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=r.mergeArrowBBox(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(4),i=r.__importDefault(n(48));e.Adjust=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAdjust=o;e.registerAdjust=function(t,e){if(o(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(191),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=r.__importStar(n(1)),o=n(101),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.MARGIN_RATIO:r,a=e.dodgeRatio,s=void 0===a?o.DODGE_RATIO:a,u=e.dodgeBy,l=e.intervalPadding,c=e.dodgePadding,h=e.xDimensionLength,f=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,y=e.columnWidthRatio;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=u,n.intervalPadding=l,n.dodgePadding=c,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n}return i.__extends(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e),r=this.dodgeBy,i=r?a.group(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,o=this.getDistribution(t),s=this.groupData(n,t);return a.each(s,(function(n,s){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(s),e),a.each(n,(function(e){var n=e[t],a=o[n],s=a.indexOf(r);e[t]=i.getDodgeOffset(u,s,a.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this.dodgeRatio,o=this.marginRatio,s=this.intervalPadding,u=this.dodgePadding,l=t.pre,c=t.next,h=c-l;if(!a.isNil(s)&&a.isNil(u)&&s>=0)r=l+this.getIntervalOnlyOffset(n,e);else if(!a.isNil(u)&&a.isNil(s)&&u>=0){r=l+this.getDodgeOnlyOffset(n,e)}else if(!a.isNil(s)&&!a.isNil(u)&&s>=0&&u>=0){r=l+this.getIntervalAndDodgeOffset(n,e)}else{var f=h*i/n,p=o*f;r=(l+c)/2+(.5*(h-n*f-(n-1)*p)+((e+1)*f+e*p)-.5*f-.5*h)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,u=n.dodgeRatio,l=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,f=i/o,p=(1-(s-1)*f)/s*u/(t-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=a.isNil(h)?d:1/s/t*h,!a.isNil(l)){var g=l/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*(p=((1-(s-1)*f)/s-t*d)/(t-1))+.5*f)*s-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,u=n.marginRatio,l=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,f=i/o,p=1*u/(s-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=h?1/s/t*h:d,!a.isNil(l)){var g=l/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*f+.5*(p=(1-(d*t+f*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},a.each(e,(function(e,n){var i=a.valuesOfKey(e,t);i.length||i.push(0),a.each(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(r.__importDefault(n(48)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=r.__importStar(n(1)),o=n(101);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return a.each(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return a.each(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(r.__importDefault(n(48)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=r.__importStar(n(1)),o=r.__importDefault(n(48)),s=a.Cache,u=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,u=void 0===s?10:s,l=e.reverseOrder,c=void 0!==l&&l;return n.adjustNames=i,n.height=o,n.size=u,n.reverseOrder=c,n}return i.__extends(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,o=new s,u=new s;return r.map((function(t){return t.map((function(t){var r,s=a.get(t,e,0),l=a.get(t,[n]),c=s.toString();if(l=a.isArray(l)?l[1]:l,!a.isNil(l)){var h=l>=0?o:u;h.has(c)||h.set(c,0);var f=h.get(c),p=l+f;return h.set(c,p),i.__assign(i.__assign({},t),((r={})[n]=[f,p],r))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,a=this.reverseOrder,o=a?this.reverse(t):t,u=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],l=2*o/r;u.has(s)||u.set(s,l/2);var c=u.get(s);return u.set(s,c+l),i.__assign(i.__assign({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=r.__importStar(n(1)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.process=function(t){var e=a.flatten(t),n=this.xField,r=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return a.map(t,(function(t){return a.map(t,(function(t){var e,u,l=t[r],c=t[n];if(a.isArray(l)){var h=(s-o[c])/2;return i.__assign(i.__assign({},t),((e={})[r]=a.map(l,(function(t){return h+t})),e))}var f=(s-l)/2;return i.__assign(i.__assign({},t),((u={})[r]=[f,l+f],u))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=a.groupBy(t,(function(t){return t[n]}));return a.mapValues(i,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=a.map(t,(function(t){return a.get(t,e,[])})),r=a.flatten(n);return Math.max.apply(Math,r)},e}(r.__importDefault(n(48)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=r.__importDefault(n(70)),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],o.isString(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return i.__extends(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(r.__importDefault(n(40)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return i.__extends(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return i.__extends(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return a.isNil(t)||a.isNil(e)?[]:[a.isArray(t)?t.map((function(t){return r.scale(t)})):r.scale(t),a.isArray(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(r.__importDefault(n(40)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return i.__extends(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(4),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return i.__extends(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.registerAttribute=e.getAttribute=void 0;var r=n(4),i=r.__importDefault(n(40));e.Attribute=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAttribute=o;e.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(192),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return i.__extends(e,t),e.prototype.translate=function(t){t=o.toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=a.isNumber(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):o.timeFormat(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;a.each(e,(function(t,n){e[n]=o.toTimeStamp(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(r.__importDefault(n(194)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){return function(e,n,i,a){for(var o=r.isNil(i)?0:i,s=r.isNil(a)?e.length:a;o<s;){var u=o+s>>>1;t(e[u])>n?s=u:o=u+1}return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return i.__extends(e,t),e.prototype.invert=function(t){var e,n=this.base,r=a.log(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=a.log(n,s/n)))*o;if(t<u)return t/u*s}else e=a.log(n,this.min);var l=(t-i)/o*(r-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=a.getLogPositiveMin(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/(a.log(r,e)-a.log(r,n)):(a.log(r,t)-a.log(r,n))/(a.log(r,e)-a.log(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return i.__extends(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=a.calBase(n,this.max),i=a.calBase(n,this.min),o=e*(r-i)+i,s=o>=0?1:-1;return Math.pow(o,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(a.calBase(r,t)-a.calBase(r,n))/(a.calBase(r,e)-a.calBase(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return i.__extends(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):o.timeFormat(n,this.mask)},e.prototype.scale=function(e){var n=e;return(a.isString(n)||a.isDate(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return o.toTimeStamp(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(a.isNil(e)&&a.isNumber(e)||(this.min=this.translate(this.min)),a.isNil(n)&&a.isNumber(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=i,u=0;a.each(t,(function(t){var e=o.toTimeStamp(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),u<e&&(u=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-i),a.isNil(e)&&(this.min=i),a.isNil(n)&&(this.max=u)}},e}(r.__importDefault(n(196)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return i.__extends(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(r.__importDefault(n(197)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var r=n(0).__importDefault(n(58));e.Scale=r.default;var i={};function a(t){return i[t]}e.getScale=a,e.registerScale=function(t,e){if(a(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return i.__extends(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&a.isNumber(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(r.__importDefault(n(58)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r=n(0),i=r.__importDefault(n(198)),a=r.__importDefault(n(412)),o=r.__importDefault(n(414)),s=r.__importDefault(n(415)),u=r.__importDefault(n(416)),l=r.__importDefault(n(417)),c=r.__importDefault(n(418)),h=n(193);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return h.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return h.registerTickMethod}});var f=r.__importDefault(n(419)),p=r.__importDefault(n(420)),d=r.__importDefault(n(421));h.registerTickMethod("cat",i.default),h.registerTickMethod("time-cat",p.default),h.registerTickMethod("wilkinson-extended",o.default),h.registerTickMethod("r-pretty",c.default),h.registerTickMethod("time",f.default),h.registerTickMethod("time-pretty",d.default),h.registerTickMethod("log",s.default),h.registerTickMethod("pow",u.default),h.registerTickMethod("quantile",l.default),h.registerTickMethod("d3-linear",a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(413)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,u=t.minLimit,l=t.maxLimit,c=a.default(t);return i.isNil(u)&&i.isNil(l)?r?o.default(e,n,r).ticks:c:s.default(t,i.head(c),i.last(c))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,u=this._domain[a],l=this._domain[o];return l<u&&(u=(e=[l,u])[0],l=e[1],a=(n=[o,a])[0],o=n[1]),(r=s(u,l,t))>0?r=s(u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r,t):r<0&&(r=s(u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r,t)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(l/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(l*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,u=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(o=s(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u<i;)a[u]=(t+u)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++u<i;)a[u]=(t-u)/o;r&&a.reverse();return a}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function s(t,e,n){var o=(e-t)/Math.max(0,n),s=Math.floor(Math.log(o)/Math.LN10),u=o/Math.pow(10,s);return s>=0?(u>=r?10:u>=i?5:u>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=i?5:u>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(199)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,u=t.nice,l=t.tickInterval,c=t.minLimit,h=t.maxLimit,f=a.default(e,n,r,u).ticks;return i.isNil(c)&&i.isNil(h)?l?o.default(e,n,l).ticks:f:s.default(t,i.head(f),i.last(f))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(73);e.default=function(t){var e,n=t.base,i=t.tickCount,a=t.min,o=t.max,s=t.values,u=r.log(n,o);if(a>0)e=Math.floor(r.log(n,a));else{var l=r.getLogPositiveMin(s,n,o);e=Math.floor(r.log(n,l))}for(var c=u-e,h=Math.ceil(c/i),f=[],p=e;p<u+h;p+=h)f.push(Math.pow(n,p));return a<=0&&f.unshift(0),f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(73),a=r.__importDefault(n(200));e.default=function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(i.calBase(e,t.max)),o=Math.floor(i.calBase(e,t.min));return a.default(o,r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),a=[],o=0;o<e;o++){var s=o/(e-1);a.push(r(i,s))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(104)),o=r.__importDefault(n(200)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,u=t.tickInterval,l=t.minLimit,c=t.maxLimit,h=o.default(e,n,r).ticks;return i.isNil(l)&&i.isNil(c)?u?a.default(e,n,u).ticks:h:s.default(t,i.head(h),i.last(h))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(71);e.default=function(t){var e=t.min,n=t.max,i=t.minTickInterval,a=t.tickInterval,o=t.tickCount;if(a)o=Math.ceil((n-e)/a);else{var s=(n-e)/(a=r.getTickInterval(e,n,o)[1])/o;s>1&&(a*=Math.ceil(s)),i&&a<i&&(a=i)}for(var u=[],l=e;l<n+a;l+=a)u.push(l);return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(198));e.default=function(t){var e=a.default(t),n=i.last(t.values);return n!==i.last(e)&&e.push(n),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(71);function i(t){return new Date(t).getFullYear()}function a(t){return new Date(t,0,1).getTime()}function o(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}e.default=function(t){var e=t.min,n=t.max,u=t.minTickInterval,l=t.tickCount,c=t.tickInterval,h=[];c||(c=(n-e)/l,u&&c<u&&(c=u));var f=i(e);if(c>r.YEAR)for(var p=i(n),d=Math.ceil(c/r.YEAR),g=f;g<=p+d;g+=d)h.push(a(g));else if(c>r.MONTH){var y=Math.ceil(c/r.MONTH),v=o(e),m=function(t,e){var n=i(t),r=i(e),a=o(t);return 12*(r-n)+(o(e)-a)%12}(e,n);for(g=0;g<=m+y;g+=y)h.push(s(f,g+v))}else if(c>r.DAY){var x=(P=new Date(e)).getFullYear(),_=P.getMonth(),b=P.getDate(),M=Math.ceil(c/r.DAY),C=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;g<C+M;g+=M)h.push(new Date(x,_,b+g).getTime())}else if(c>r.HOUR){x=(P=new Date(e)).getFullYear(),_=P.getMonth(),M=P.getDate();var P,S=P.getHours(),O=Math.ceil(c/r.HOUR),w=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=w+O;g+=O)h.push(new Date(x,_,M,S+g).getTime())}else if(c>r.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),T=Math.ceil(c/r.MINUTE);for(g=0;g<=A+T;g+=T)h.push(e+g*r.MINUTE)}else{var E=c;E<r.SECOND&&(E=r.SECOND);var I=Math.floor(e/r.SECOND)*r.SECOND,L=Math.ceil((n-e)/r.SECOND),D=Math.ceil(E/r.SECOND);for(g=0;g<L+D;g+=D)h.push(I+g*r.SECOND)}return h.length>=512&&console.warn("Notice: current ticks length("+h.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinate=e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i=r.__importDefault(n(74));e.Coordinate=i.default;var a=r.__importDefault(n(423)),o=r.__importDefault(n(424)),s=r.__importDefault(n(425)),u=n(426);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return u.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return u.registerCoordinate}}),u.registerCoordinate("rect",a.default),u.registerCoordinate("cartesian",a.default),u.registerCoordinate("polar",s.default),u.registerCoordinate("helix",o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return i.__extends(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(r.__importDefault(n(74)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=u,n.radius=l,n.initial(),n}return i.__extends(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)<s&&(s=a.vec2.length(r)),i=2*Math.floor((a.vec2.length(r)-s)/n)*Math.PI+i;var u=this.a*i,l=a.vec2.length(r)-u;l=o.isNumberEqual(l,0)?0:l;var c=this.invertDim(i,"x"),h=this.invertDim(l,"y");return c=o.isNumberEqual(c,0)?0:c,h=o.isNumberEqual(h,0)?0:h,this.isTransposed&&(c=(e=[h,c])[0],h=e[1]),{x:c,y:h}},e}(r.__importDefault(n(74)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=u,n.radius=l,n.initial(),n}return i.__extends(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,a=Math.abs(n.minX)/r,o=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var u=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(u,u,i);var l=[1,0,0];a.vec3.transformMat3(l,l,u);var c=[l[0],l[1]],h=a.ext.angleTo(c,r,s<i);o.isNumberEqual(h,2*Math.PI)&&(h=0);var f=a.vec2.length(r),p=h/(s-i);p=s-i>0?p:-p;var d=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(r.__importDefault(n(74)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i={};e.getCoordinate=function(t){return i[t.toLowerCase()]},e.registerCoordinate=function(t,e){i[t.toLowerCase()]=e},r.__exportStar(n(427),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(429);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r.default}});var i=n(449);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.default}});var a=n(450);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return a.default}});var o=n(451);Object.defineProperty(e,"Region",{enumerable:!0,get:function(){return o.default}});var s=n(452);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}});var u=n(453);Object.defineProperty(e,"DataMarker",{enumerable:!0,get:function(){return u.default}});var l=n(454);Object.defineProperty(e,"DataRegion",{enumerable:!0,get:function(){return l.default}});var c=n(455);Object.defineProperty(e,"RegionFilter",{enumerable:!0,get:function(){return c.default}});var h=n(456);Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return h.default}});var f=n(457);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return f.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),u=r.__importDefault(n(20)),l=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u.default.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:i.__assign({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:a.isString(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:a.isNumber(n)?n:1)>1||r<0)&&(r=1),{x:l.getValueByPercent(t.x,e.x,r),y:l.getValueByPercent(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,u=e.offsetX,l=e.offsetY,c=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,y=void 0!==g&&g,v=this.getLabelPoint(n,r,i),m=v.x+u,x=v.y+l,_={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:x,content:a,style:o,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:y};if(c){var b=[r.x-n.x,r.y-n.y];_.rotate=Math.atan2(b[1],b[0])}s.renderTag(t,_)},e}(o.default);e.default=c},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(90),o=r.__importDefault(n(206)),s=n(41),u=r.__importDefault(n(433)),l=r.__importDefault(n(435)),c=a.detect(),h=c&&"firefox"===c.name,f=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");s.isString(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new l.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new u.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(h&&!s.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!s.isNil(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importStar(n(166)),o=r.__importStar(n(167)),s=n(169),u=r.__importStar(n(203)),l=n(434),c=[1,0,0,0,1,0,0,0,1];function h(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var h=e.duration,f=e.easing;if(n=n-a-e.delay,e.repeat)r=n%h/h,r=o[f](r);else{if(!((r=n/h)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=o[f](r)}if(e.onFrame){var p=e.onFrame(r);t.attr(p)}else!function(t,e,n){var r={},a=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var h;for(var f in o)if(!i.isEqual(a[f],o[f]))if("path"===f){var p=o[f],d=a[f];p.length>d.length?(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.fillPathByDiff(d,p),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],x=0;x<y.length;x++)i.isNumber(y[x])&&v&&i.isNumber(v[x])?(h=s.interpolate(v[x],y[x]),m.push(h(n))):m.push(y[x]);r[f].push(m)}}else if("matrix"===f){var _=s.interpolateArray(a[f]||c,o[f]||c)(n);r[f]=_}else l.isColorProp(f)&&l.isGradientColor(o[f])?r[f]=o[f]:i.isFunction(o[f])||(h=s.interpolate(a[f],o[f]),r[f]=h(n));t.attr(r)}}(t,e,r);return!1}var f=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=a.timer((function(i){if(r.current=i,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],h(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isGradientColor=e.isColorProp=void 0,e.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},e.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(204)),i=n(41),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&i.isParent(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var u=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");i.each(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");i.each(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,a,o){var s=new r.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-t.clientX,c=o.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var u=this._getEventObj(t,e,n,r,i,a);if(r){u.shape=r,o(r,t,u);for(var l=r.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(r.__importDefault(n(206)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(207)),o=n(106),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=o.multiplyVec2(e,[t.minX,t.minY]),u=o.multiplyVec2(e,[t.maxX,t.minY]),l=o.multiplyVec2(e,[t.minX,t.maxY]),c=o.multiplyVec2(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),r=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,y=h.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,x=i+p+g,_=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,x),r=Math.min(r,_),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBBoxMethod=void 0;var r=n(0),i=n(439);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=r.__importDefault(n(440)),o=r.__importDefault(n(441)),s=r.__importDefault(n(442)),u=r.__importDefault(n(443)),l=r.__importDefault(n(444)),c=r.__importDefault(n(445)),h=r.__importDefault(n(446)),f=r.__importDefault(n(447));i.register("rect",a.default),i.register("image",a.default),i.register("circle",o.default),i.register("marker",o.default),i.register("polyline",s.default),i.register("polygon",u.default),i.register("text",l.default),i.register("path",c.default),i.register("line",h.default),i.register("ellipse",f.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(107);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var u=r.Util.getBBoxByArray(n,a),l=u.x,c=u.y,h={minX:l,minY:c,maxX:l+u.width,maxY:c+u.height};return{x:(h=i.mergeArrowBBox(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),i.push(o[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(208);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,u=e.font;u||(u=r.assembleFont(e));var l,c=r.getTextWidth(a,u);if(c){var h=e.textAlign,f=e.textBaseline,p=r.getTextHeight(a,o,s),d={x:n,y:i-p};h&&("end"===h||"right"===h?d.x-=c:"center"===h&&(d.x-=c/2)),f&&("top"===f?d.y+=p:"middle"===f&&(d.y+=p/2)),l={x:d.x,y:d.y,width:c,height:p}}else l={x:n,y:i,width:0,height:0};return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(39),a=n(1),o=n(107);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+s-u)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!l||0===Math.sin(l)||a.isNumberEqual(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),h=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var n=[],i=[],o=[],u=0;u<t.length;u++){var l=(m=t[u]).currentPoint,c=m.params,h=m.prePoint,f=void 0;switch(m.command){case"Q":f=r.Quad.box(h[0],h[1],c[1],c[2],c[3],c[4]);break;case"C":f=r.Cubic.box(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;f=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(l[0]),i.push(l[1])}f&&(m.box=f,n.push(f.x,f.x+f.width),i.push(f.y,f.y+f.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var d=a.min(n),g=a.min(i),y=a.max(n),v=a.max(i);if(0===o.length)return{x:d,y:g,width:y-d,height:v-g};for(u=0;u<o.length;u++){var m;(l=(m=o[u]).currentPoint)[0]===d?d-=s(m,e).xExtra:l[0]===y&&(y+=s(m,e).xExtra),l[1]===g?g-=s(m,e).yExtra:l[1]===v&&(v+=s(m,e).yExtra)}return{x:d,y:g,width:y-d,height:v-g}}(t.get("segments")||i.path2Segments(n),u),c=l.x,h=l.y,f={minX:c,minY:h,maxX:c+l.width,maxY:h+l.height};return{x:(f=o.mergeArrowBBox(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(107);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=r.mergeArrowBBox(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisString=e.charAtLength=e.strLen=void 0;function r(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}e.strLen=function(t){for(var e=0,n=0;n<t.length;n++)e+=r(t,n);return e},e.charAtLength=r,e.ellipsisString=function(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var o=0,s=0;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s++}a+="…"}else if("head"===n){for(o=0,s=i-1;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s--}a="…"+a}else{for(var u="",l="",c=(o=0,0),h=i-1;o<e;){var f=r(t,c),p=!1;f+o<=e&&(u+=t[c],c++,o+=f,p=!0);var d=r(t,h);if(d+o<=e&&(l=t[h]+l,o+=d,h--,p=!0),!p)break}a=u+"…"+l}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(75),s=n(32),u=r.__importDefault(n(20)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:u.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u.default.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),a=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};o.renderTag(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");s.applyTranslate(t,n,r),s.applyRotate(t,i,n,r)}},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=o.getCirclePoint(e,n,r),s=o.getCirclePoint(e,n,i),u=i-r>Math.PI?1:0,l=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=o.getCirclePoint(e,n,r+Math.PI);l.push(["A",n,n,0,u,1,c.x,c.y]),l.push(["A",n,n,0,u,1,s.x,s.y])}else l.push(["A",n,n,0,u,1,s.x,s.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:i.__assign({path:e},n)})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=r.__importDefault(n(20)),s=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=s.regionToBBox({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:i.__assign({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=o.regionToBBox({start:t,end:e}),a=this.get("src");return i.__assign({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),u=n(32),l=r.__importDefault(n(20)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:l.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.default.fontFamily}}}})},e.prototype.renderInner=function(t){a.get(this.get("line"),"display")&&this.renderLine(t),a.get(this.get("text"),"display")&&this.renderText(t),a.get(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=i.__rest(e,["x","y","text"]),u=this.get("text"),l=u.background,c=u.maxLength,h=u.autoEllipsis,f=u.isVertival,p=u.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:l,maxLength:c,autoEllipsis:h,isVertival:f,ellipsisPosition:p};s.renderTag(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=a.get(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),l=s.minX,c=s.maxX,h=s.minY,f=s.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+l<=o.minX){var y=o.minX-(n+l);u.applyTranslate(p,p.attr("x")+y,p.attr("y"))}if(n+c>=o.maxX){y=n+c-o.maxX;u.applyTranslate(p,p.attr("x")-y,p.attr("y"))}}if("upward"===e&&r+h<=o.minY||"upward"!==e&&r+f>=o.maxY){var v=void 0,m=void 0;"upward"===e&&r+h<=o.minY?(v="top",m=1):(v="bottom",m=-1),d.attr("textBaseline",v),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),u.applyTranslate(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=a.get(this.get("line"),"display"),e=a.get(this.get("point"),"style",{}),n=a.get(this.get("line"),"style",{}),r=a.get(this.get("text"),"style",{}),o=this.get("direction"),s=t?a.get(this.get("line"),"length",0):0,u="upward"===o?-1:1;return{point:i.__assign({x:0,y:0},e),line:i.__assign({path:[["M",0,0],["L",0,s*u]]},n),text:i.__assign({x:0,y:(s+2)*u,text:a.get(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(20)),u=n(10),l=n(75),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=a.get(this.get("region"),"style",{}),n=(a.get(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var o=u.pointsToBBox(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:i.__assign({path:s},e)});var c=i.__assign({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));l.renderTag(t,c)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});a.each(this.get("shapes"),(function(t,n){var r=t.get("type"),o=a.clone(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=s.regionToBBox({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");a.isFunction(e)&&e(t)},e}(r.__importDefault(n(9)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(44),o=n(1),s=r.__importDefault(n(76)),u=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");u.clearDom(t);var n=o.isFunction(e)?e(t):e;o.isElement(n)?t.appendChild(n):o.isString(n)&&t.appendChild(a.createDom(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),u=this.get("offsetY"),l=a.getOuterWidth(t),c=a.getOuterHeight(t),h={x:n,y:r};"middle"===i?h.x-=Math.round(l/2):"right"===i&&(h.x-=Math.round(l)),"middle"===o?h.y-=Math.round(c/2):"bottom"===o&&(h.y-=Math.round(c)),s&&(h.x+=s),u&&(h.y+=u),a.modifyCSS(t,{position:"absolute",left:h.x+"px",top:h.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(459);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r.default}});var i=n(464);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(109);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return a.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(109)),u=r.__importStar(n(460)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return o.isNumberEqual(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return o.isNumberEqual(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=a.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return a.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),u=i.offset,l=s,c=0,h=0;a&&(c=a.style.fontSize,h=a.spacing),l&&(l=l-u-h-c);var f=this.get("overlapOrder");if(o.each(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,l)})),a&&o.isNil(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=u+d+h+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||o.isNil(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),s=!1,l=u[t];if(!0===e){this.get("label");s=l.getDefault()(a,n,r)}else if(o.isFunction(e))s=e(a,n,r);else if(o.isObject(e)){var c=e;l[c.type]&&(s=l[c.type](a,n,r,c.cfg))}else l[e]&&(s=l[e](a,n,r));if("autoRotate"===t){if(s){var h=n.getChildren(),f=this.get("verticalFactor");o.each(h,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);o.each(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoEllipsis=e.autoRotate=e.autoHide=void 0;var r=n(0),i=r.__importStar(n(461));e.autoEllipsis=i;var a=r.__importStar(n(462));e.autoHide=a;var o=r.__importStar(n(463));e.autoRotate=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisMiddle=e.ellipsisTail=e.ellipsisHead=e.getDefault=void 0;var r=n(1),i=n(60);function a(t,e,n,a){var o=e.getChildren(),s=!1;return r.each(o,(function(e){var r=i.ellipsisLabel(t,e,n,a);s=s||r})),s}function o(t,e,n){return a(t,e,n,"tail")}e.getDefault=function(){return o},e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisTail=o,e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistanceWithReverseBoth=e.equidistance=e.reserveBoth=e.reserveLast=e.reserveFirst=e.getDefault=void 0;var r=n(60),i=n(32),a=n(10);function o(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?i.getAngleByMatrix(t.attr("matrix")):0)%360}function s(t,e,n,r){var i=!1,s=o(e),u=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),l=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=a.near(c,0,Math.PI/180)?l.width+r>u:l.height/c+r>u}else{c=Math.abs(Math.sin(s));i=a.near(c,0,Math.PI/180)?l.width+r>u:l.height/c+r>u}return i}function u(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var u=a.length,l=a[0],c=1;c<u;c++){var h=a[c];h.getBBox();s(t,l,h,i)?(h.hide(),o=!0):l=h}return o}function l(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var u=!1,l=s[0],c=l.getBBox(),h=s[1],f=s.length,p=o(l),d=t?Math.abs(h.attr("y")-l.attr("y")):Math.abs(h.attr("x")-l.attr("x")),g=0;if(t){var y=Math.abs(Math.cos(p));if(a.near(y,0,Math.PI/180))g=(r.getMaxLabelWidth(s)+i)/d;else g=(c.height/y+i)/d}else{y=Math.abs(Math.sin(p));if(a.near(y,0,Math.PI/180))g=(r.getMaxLabelWidth(s)+i)/d;else g=(c.height/y+i)/d}if(g>1){g=Math.ceil(g);for(var v=0;v<f;v++)v%g!=0&&(s[v].hide(),u=!0)}return u}function c(t,e,n,r){var i=l(t,e,r);return u(t,e,!1)&&(i=!0),i}e.getDefault=function(){return c},e.reserveFirst=function(t,e,n,r){return u(t,e,!1,r)},e.reserveLast=function(t,e,n,r){return u(t,e,!0,r)},e.reserveBoth=function(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,u=a.length,l=a[0],c=a[u-1],h=l,f=1;f<u-1;f++){var p=a[f];p.getBBox();s(t,h,p,i)?(p.hide(),o=!0):h=p}return s(t,h,c,i)&&(h.hide(),o=!0),o},e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=l(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),u(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),u(t,e,!0,r)&&(a=!0))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unfixedAngle=e.fixedAngle=e.getDefault=void 0;var r=n(0),i=n(1),a=n(60),o=n(32),s=r.__importDefault(n(20));function u(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var u=a.getMaxLabelWidth(s),l=!1;t?l=!!n&&u>n:l=u>Math.abs(s[1].attr("x")-s[0].attr("x"));l&&function(t,e){i.each(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=o.getMatrixByAngle({x:n,y:r},e);t.attr("matrix",i)}))}(s,r(n,u));return l}function l(t,e,n,r){return u(t,e,n,(function(){return i.isNumber(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return l},e.fixedAngle=l,e.unfixedAngle=function(t,e,n){return u(t,e,n,(function(e,n){if(!e)return t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var u=this.getCirclePoint(a),l=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",u.x,u.y],["A",r,i,0,c,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=a.vec2.length(r);return a.vec2.scale(r,r,i*t/o),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(466);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r.default}});var i=n(467);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(110);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return a.default}});var o=n(468);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return o.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return a.getTextPoint(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(r.__importDefault(n(110)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,u=r.endAngle,l="start"===e?s:u,c=this.getRotateAngle()-Math.PI,h=a.getCirclePoint(i,o,l),f=Math.cos(c)*n,p=Math.sin(c)*n;return{x:h.x+f,y:h.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,u=e.y;o=[["M",s,u-n],["A",n,n,0,1,1,s,u+n],["A",n,n,0,1,1,s,u-n],["Z"]]}else{var l=a.getCirclePoint(e,n,r),c=a.getCirclePoint(e,n,i),h=Math.abs(i-r)>Math.PI?1:0,f=r>i?0:1;o=[["M",l.x,l.y],["A",n,n,0,h,f,c.x,c.y]]}return o},e}(r.__importDefault(n(110)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(44),o=n(1),s=n(10),u=r.__importDefault(n(76)),l=r.__importStar(n(211)),c=r.__importDefault(n(469)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+l.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+l.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:l.CONTAINER_CLASS,defaultStyles:c.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=a.createDom(e);t.appendChild(n),this.applyStyle(l.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return s.getTextPoint(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=o.substitute(this.get("textTpl"),t);e=a.createDom(i),r.appendChild(e),this.applyStyle(l.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?a.modifyCSS(t,{width:"1px",height:s.toPx(Math.abs(n.y-e.y))}):a.modifyCSS(t,{height:"1px",width:s.toPx(Math.abs(n.x-e.x))}),a.modifyCSS(t,{top:s.toPx(i),left:s.toPx(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}a.modifyCSS(t,{top:s.toPx(r.y),left:s.toPx(r.x)})}},e.prototype.updateInner=function(e){o.hasKey(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(20)),o=i.__importStar(n(211));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"relative"},r[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(111);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(471);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(472);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return a.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,i,o,s,u,l=this.getLineType(),c=this.get("closed"),h=[];if(t.length)if("circle"===l){var f=this.get("center"),p=t[0],d=(n=f.x,r=f.y,i=p.x,o=p.y,s=i-n,u=o-r,Math.sqrt(s*s+u*u)),g=e?0:1;c?(h.push(["M",f.x,f.y-d]),h.push(["A",d,d,0,0,g,f.x,f.y+d]),h.push(["A",d,d,0,0,g,f.x,f.y-d]),h.push(["Z"])):a.each(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["A",d,d,0,0,g,t.x,t.y])}))}else a.each(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["L",t.x,t.y])})),c&&h.push(["Z"]);return h},e}(r.__importDefault(n(111)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return a.each(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(r.__importDefault(n(111)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(474);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return r.default}});var i=n(475);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return i.default}});var a=n(112);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return a.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(60),s=n(32),u=n(210),l=r.__importDefault(n(20)),c=r.__importDefault(n(112)),h={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},f={fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:l.default.fontFamily,fontWeight:"normal",lineHeight:12},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:l.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:h,itemName:{spacing:16,style:f},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:f},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:l.default.uncheckedColor},markerStyle:{fill:l.default.uncheckedColor,stroke:l.default.uncheckedColor}},inactive:{nameStyle:{fill:l.default.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){a.mix(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),a=this.createOffScreenGroup(),o=this.drawItem(t,i,this.getItemHeight(),a);this.updateElements(o,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return a.each(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);a.each(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return a.filter(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");a.each(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),i=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),u=this.get("itemMarginBottom"),l=this.get("currentPoint"),c=l.x,h=l.y,f=this.get("layout"),p=this.get("items"),d=!1,g=0,y=this.get("maxWidth"),v=this.get("maxHeight");a.each(p,(function(t,n){var a=e.drawItem(t,n,i,r),p=a.getBBox(),m=o||p.width;m>g&&(g=m),"horizontal"===f?(y&&y<l.x+m-c&&(d=!0,l.x=c,l.y+=i+u),e.moveElementTo(a,l),l.x+=m+s):(v&&v<l.y+i+u-h&&(d=!0,l.x+=g+s,l.y=h,g=0),e.moveElementTo(a,l),l.y+=i+u)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=h,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(a.isFunction(e)){var n=this.getItems();n.forEach((function(r,a){var o=i.__assign(i.__assign({},f),e(r,a,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,r){var o=i.__assign(i.__assign(i.__assign({x:0,y:r/2},e.style),{symbol:a.get(n.marker,"symbol","circle")}),a.get(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),u=s.getBBox();s.attr("x",u.width/2);var l=s.attr(),c=l.stroke,h=l.fill;return c&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,o,s,u){var l=n.formatter,c=n.style,h=i.__assign(i.__assign({x:s,y:o/2,text:l?l(r[e],r,u):r[e]},f),a.isFunction(c)?c(r,u,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:h})},e.prototype.drawItem=function(t,e,n,r){var s="item-"+t.id,u=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),l=this.addGroup(u,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),d=this.getLimitItemWidth(),g=0;if(c){var y=this.drawMarker(l,c,t,n),v=c.spacing,m=a.get(t,["marker","spacing"]);a.isNumber(m)&&(v=m),g=y.getBBox().maxX+v}if(h){var x=this.drawItemText(l,"name",h,t,n,g,e);d&&o.ellipsisLabel(!0,x,a.clamp(d-g,0,d)),g=x.getBBox().maxX+h.spacing}if(f){var _=this.drawItemText(l,"value",f,t,n,g,e);d&&(f.alignRight?(_.attr({textAlign:"right",x:d}),o.ellipsisLabel(!0,_,a.clamp(d-g,0,d),"head")):o.ellipsisLabel(!0,_,a.clamp(d-g,0,d)))}if(p){var b=l.getBBox();this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:i.__assign({x:0,y:0,width:b.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,i=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),u=this.get("maxWidth"),l=this.get("maxHeight"),c=this.get("itemWidth"),f=this.get("itemSpacing"),p=this.getItemHeight(),d=a.deepMix({},h,this.get("pageNavigator")),g=this.drawNavigation(t,o,"00/00",d),y=g.getBBox(),v={x:r,y:i},m=1,x=0,_=0,b=0,M=this.get("itemMarginBottom");if("horizontal"===o){var C=this.get("maxRow")||1,P=p+(1===C?0:M);this.pageHeight=P*C,a.each(s,(function(t){var e=t.getBBox(),i=c||e.width;(x&&x<v.x+i+f||u<v.x+i+f+y.width)&&(1===m&&(x=v.x+f,n.pageWidth=x,n.moveElementTo(g,{x:u-f-y.width-y.minX,y:v.y+p/2-y.height/2-y.minY})),m+=1,v.x=r,v.y+=P),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:i+f,height:p}}),v.x+=i+f}))}else{a.each(s,(function(t){var e=t.getBBox();e.width>_&&(_=e.width)})),b=_,_+=f,u&&(_=Math.min(u,_),b=Math.min(u,b)),this.pageWidth=_,this.pageHeight=l-Math.max(y.height,p+M);var S=Math.floor(this.pageHeight/(p+M));a.each(s,(function(t,e){0!==e&&e%S==0&&(m+=1,v.x+=_,v.y=i),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:_,height:p}}),v.y+=p+M})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+b/2-y.width/2-y.minX,y:l-y.height-y.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),u=a.get(r.marker,"style",{}),l=u.size,c=void 0===l?12:l,h=i.__rest(u,["size"]),f=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",c,h);f.on("click",this.onNavigationBack);var p=f.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:i.__assign({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},a.get(r.text,"style"))}).getBBox();return o.x+=d.width+2,this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",c,h).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=a.deepMix({},h,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,u=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),c=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),f=u.getBBox();u.attr("text",s);var p=u.getBBox();u.attr("x",u.attr("x")-(p.width-f.width)/2),l.attr("opacity",1===this.currentPageIndex?o:r),l.attr("fill",1===this.currentPageIndex?i:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,r,a,o){var u=e.x,l=e.y,c={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:i.__assign({path:[["M",u+a/2,l],["L",u,l+a],["L",u+a,l+a],["Z"]],cursor:"pointer"},o)});return h.attr("matrix",s.getMatrixByAngle({x:u+a/2,y:l+a/2},c[r])),h},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return s.getMatrixByTranslate(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");a.each(n,(function(e){var n=e.get("name").split("-")[2],i=u.getStatesStyle(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(c.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(20)),s=n(10),u=r.__importDefault(n(112)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),u=i-r;u<0?a[0]+u>s.min?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.min,s.min+o]):u>0&&(u>0&&a[1]+u<s.max?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.max-o,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,o=n.align,s=n.formatter,u=this.get(t),l=this.getLabelAlignAttrs(t,o),c="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(c),name:"legend-label-"+t,attrs:i.__assign(i.__assign({x:0,y:0,text:a.isFunction(s)?s(u):u},r),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),a=i.size,o=i.defaultLength,s=i.type,u=this.isVertical(),l=n,c=r;l||(l=u?a:o),c||(c=u?o:a);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])):(h.push(["M",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])),h},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:i.__assign({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return a.clone(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,a=this.getCurrentValue(),o=a[0],s=a[1],u=this.getRailBBox(t),l=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=u.minX,n=l.y,r=u.width,i=c.y-l.y):(e=l.x,n=u.minY,r=c.x-l.x,i=u.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return a.mix({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),a=this.getClipTrackAttrs(t);i?i.attr(a):r.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),a=this.getRailBBox(e),o={x:0,y:0};return this.isVertical()?(o.x=a.minX+a.width/2,o.y=s.getValueByPercent(a.minY,a.maxY,i)):(o.x=s.getValueByPercent(a.minX,a.maxX,i),o.y=a.minY+a.height/2),o},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,a=r.max,o=this.getRailCanvasBBox(),u=this.isVertical(),l=this.get("step");n=u?(e-o.minY)/o.height:(t-o.minX)/o.width;var c=s.getValueByPercent(i,a,n);l&&(c=i+Math.round((c-i)/l)*l);return c>a&&(c=a),c<i&&(c=i),c},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,i.__spreadArrays(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,i.__spreadArrays(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,a=e.x,o=e.y,s=1.4*i,u=i/2,l=i/6;if(n){var c=a+.4*s;r.push(["M",a,o]),r.push(["L",c,o+u]),r.push(["L",a+s,o+u]),r.push(["L",a+s,o-u]),r.push(["L",c,o-u]),r.push(["Z"]),r.push(["M",c,o+l]),r.push(["L",a+s-2,o+l]),r.push(["M",c,o-l]),r.push(["L",a+s-2,o-l])}else{var h=o+.4*s;r.push(["M",a,o]),r.push(["L",a-u,h]),r.push(["L",a-u,o+s]),r.push(["L",a+u,o+s]),r.push(["L",a+u,h]),r.push(["Z"]),r.push(["M",a-l,h]),r.push(["L",a-l,o+s-2]),r.push(["M",a+l,h]),r.push(["L",a+l,o+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),u=t.findById(s),l=this.isVertical();u?u.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:i.__assign(i.__assign({path:o},a.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var i=this.isVertical()?"height":"width",o=this.get("label"),s=o.align,u=o.spacing,l=this.get("max"+a.upperFirst(i));if(l){var c=("rail"===s?n[i]+t[i]+e[i]+2*u:n[i])-l;c>0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox(),c=s.height;this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+u.width+o,r.y),e.attr({x:r.x+u.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+u.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox();if(this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+u.height+o),e.attr({x:r.x,y:r.y+u.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(u.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(u.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(477);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(70)),o=n(44),s=n(1),u=r.__importDefault(n(76)),l=n(10),c=r.__importStar(n(113)),h=r.__importDefault(n(478)),f=n(479);var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+c.CONTAINER_CLASS+'"><div class="'+c.TITLE_CLASS+'"></div><ul class="'+c.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+c.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+c.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+c.NAME_CLASS+'">{name}</span>:\n <span class="'+c.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+c.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+c.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:c.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:h.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),o.modifyCSS(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),o.modifyCSS(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&o.modifyCSS(n,{display:e}),r&&o.modifyCSS(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,s.each(r,(function(t){if(s.hasKey(n,t))return i=!0,!1})),i&&this.resetTitle(),s.hasKey(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,u=this.get("position"),c=this.get("region"),h=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=l.regionToBBox(c));var y=f.getAlignPoint(e,n,r,d,g,u,t);o.modifyCSS(h,{left:l.toPx(y.x+a),top:l.toPx(y.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=s.isElement(n)?n:o.createDom(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(c.TITLE_CLASS)[0],n=t.getElementsByClassName(c.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=l.regionToBBox(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?o.modifyCSS(n,{left:l.toPx(r),top:l.toPx(e.y),height:l.toPx(e.height)}):o.modifyCSS(n,{top:l.toPx(r),left:l.toPx(e.x),width:l.toPx(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=c[r],a=this.get(e),s=this.get("parent");return a||(a=o.createDom(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(s.each(t,(function(t){var r=a.default.toCSSGradient(t.color),u=i.__assign(i.__assign({},t),{color:r}),l=s.substitute(e,u),c=o.createDom(l);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&l.clearDom(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(u.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(20)),o=i.__importStar(n(113));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex: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)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+o.TITLE_CLASS]={marginBottom:"4px"},r[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r)},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=e.getPointByPosition=e.getOutSides=void 0,e.getOutSides=r,e.getPointByPosition=i,e.getAlignPoint=function(t,e,n,a,o,s,u){var l=i(t,e,n,a,o,s);if(u){var c=r(l.x,l.y,a,o,u);"auto"===s?(c.right&&(l.x=Math.max(0,t-a-n)),c.top&&(l.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(l.x=u.x),c.right&&(l.x=u.x+u.width-a),"top"===s&&c.top&&(l.y=e+n),"bottom"===s&&c.bottom&&(l.y=e-o-n)):(c.top&&(l.y=u.y),c.bottom&&(l.y=u.y+u.height-o),"left"===s&&c.left&&(l.x=t+n),"right"===s&&c.right&&(l.x=t-a-n))}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(481);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(482),u=n(485),l=n(486),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=a.get(r,"touches.0.pageX",r.pageX),e.prevY=a.get(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=a.get(t,"touches.0.pageX",t.pageX),o=a.get(t,"touches.0.pageY",t.pageY),s=i-e.prevX,u=e.adjustOffsetRange(s/n);e.updateStartEnd(u),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(l.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return i.__extends(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=a.clamp(n,t,e),o=a.clamp(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(a.isArray(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:a.clamp(t[0],e.min,e.max),end:a.clamp(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:l.BACKGROUND_STYLE,foregroundStyle:l.FOREGROUND_STYLE,handlerStyle:l.HANDLER_STYLE,textStyle:l.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=i.__assign({},e);a.isNil(n)||(o.start=a.clamp(n,0,1)),a.isNil(r)||(o.end=a.clamp(r,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",a.clamp(this.get("start"),0,1)),this.set("end",a.clamp(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,h=e.minText,f=e.maxText,p=e.backgroundStyle,d=void 0===p?{}:p,g=e.foregroundStyle,y=void 0===g?{}:g,v=e.textStyle,m=void 0===v?{}:v,x=a.deepMix({},u.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);a.size(a.get(c,"data"))&&(this.trend=this.addComponent(t,i.__assign({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:i.__assign({x:0,y:0,width:n,height:r},d)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:i.__assign({y:r/2,textAlign:"right",text:h,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:i.__assign({y:r/2,textAlign:"left",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:i.__assign({y:0,height:r},y)});var _=a.get(x,"width",l.DEFAULT_HANDLER_WIDTH),b=a.get(x,"height",24);this.minHandler=this.addComponent(t,{component:u.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-b)/2,width:_,height:b,cursor:"ew-resize",style:x}),this.maxHandler=this.addComponent(t,{component:u.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-b)/2,width:_,height:b,cursor:"ew-resize",style:x})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,s=r.width,u=r.minText,c=r.maxText,h=r.handlerStyle,f=r.height,p=i*s,d=o*s;this.trend&&(this.trend.update({width:s,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",d-p);var g=a.get(h,"width",l.DEFAULT_HANDLER_WIDTH);e.attr("text",u),n.attr("text",c);var y=this._dodgeText([p,d],e,n),v=y[0],m=y[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),a.each(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),a.each(m,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,u=o.width,c=a.get(s,"width",l.DEFAULT_HANDLER_WIDTH),h=t[0],f=t[1],p=!1;h>f&&(h=(r=[f,h])[0],f=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>h-2?{x:h+c/2+2,textAlign:"left"}:{x:h-c/2-2,textAlign:"right"},v=g.width>u-f-2?{x:f-c/2-2,textAlign:"right"}:{x:f+c/2+2,textAlign:"left"};return p?[v,y]:[y,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.Slider=c,e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trend=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(483),s=n(484),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,u=e.isArea,l=e.backgroundStyle,c=e.lineStyle,h=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:i.__assign({x:0,y:0,width:n,height:r},l)});var f=s.dataToPath(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:i.__assign({path:f},c)}),u){var p=s.linePathToAreaPath(f,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:i.__assign({path:p},h)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=u,e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AREA_STYLE=e.LINE_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linePathToAreaPath=e.getAreaLineY=e.dataToPath=e.getSmoothLinePath=e.getLinePath=void 0;var r=n(0),i=n(39),a=n(103),o=n(1);function s(t){return function(t){return o.map(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function u(t){if(t.length<=2)return s(t);var e=[];o.each(t,(function(t){o.isEqual(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=i.catmullRom2Bezier(e,!1),r=o.head(t),a=r[0],u=r[1];return n.unshift(["M",a,u]),n}function l(t,e){var n=new a.Linear({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}e.getLinePath=s,e.getSmoothLinePath=u,e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),l=new a.Category({values:o.map(t,(function(t,e){return e}))}),c=o.map(t,(function(t,r){return[l.scale(r)*e,n-i.scale(t)*n]}));return r?u(c):s(c)},e.getAreaLineY=l,e.linePathToAreaPath=function(t,e,n,i){var a=r.__spreadArrays(t),o=l(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9));e.DEFAULT_HANDLER_STYLE={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(n,t),n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},n),{name:"handler",x:0,y:0,width:10,height:24,style:e.DEFAULT_HANDLER_STYLE})},n.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,u=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:u,cursor:l}});var c=1/3*n,h=2/3*n,f=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:f,x2:c,y2:p,stroke:o,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:o,cursor:l}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(a.default);e.Handler=o,e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLIDER_CHANGE=e.TEXT_STYLE=e.HANDLER_STYLE=e.DEFAULT_HANDLER_WIDTH=e.FOREGROUND_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10,e.HANDLER_STYLE={width:e.DEFAULT_HANDLER_WIDTH,height:24},e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(0).__exportStar(n(488),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var r=n(0),i=n(0),a=n(44),o=n(1),s=r.__importDefault(n(9));e.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};var u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?o.get(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?o.get(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[a.addEventListener(t,"touchmove",e.onMouseMove),a.addEventListener(t,"touchend",e.onMouseUp),a.addEventListener(t,"touchcancel",e.onMouseUp)]:[a.addEventListener(t,"mousemove",e.onMouseMove),a.addEventListener(t,"mouseup",e.onMouseUp),a.addEventListener(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?o.get(t,"touches.0.clientX"):t.clientX,s=e.isMobile?o.get(t,"touches.0.clientY"):t.clientY,u=r?a:s,l=u-e.startPos;e.startPos=u,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),u=t.clientX,l=t.clientY,c=r?u-s.left-i-o/2:l-s.top-a-o/2,h=e.validateRange(c);e.updateThumbOffset(h)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return i.__extends(n,t),n.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=o.clamp(n,t,e);n===r||this.get("isInit")||this.setValue(r)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*o.clamp(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},n.prototype.getValue=function(){return o.clamp(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return i.__assign(i.__assign({},n),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:e.DEFAULT_THEME})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var n=this.cfg,r=n.trackLen,i=n.theme,a=void 0===i?{default:{}}:i,s=o.deepMix({},e.DEFAULT_THEME,a).default,u=s.lineCap,l=s.trackColor,c=s.size,h=o.get(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:r-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:u}:{x1:h/2,y1:0+h/2,x2:h/2,y2:r-h/2,lineWidth:h,stroke:l,lineCap:u};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},n.prototype.renderThumbShape=function(t){var n=this.cfg,r=n.thumbOffset,i=n.thumbLen,a=n.theme,s=o.deepMix({},e.DEFAULT_THEME,a).default,u=s.size,l=s.lineCap,c=s.thumbColor,h=o.get(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:r+h/2,y1:h/2,x2:r+i-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:l,cursor:"default"}:{x1:h/2,y1:r+h/2,x2:h/2,y2:r+i-h/2,lineWidth:h,stroke:c,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},n.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},n.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},n.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:o+a/2,x2:o+i-a/2}):s.attr({y1:o+a/2,y2:o+i-a/2}),this.emitOffsetChange(o)}},n.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:o.clamp(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},n}(s.default);e.Scrollbar=u},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAction=void 0;var r=n(0),i=n(1),a=n(212),o=r.__importDefault(n(493)),s=r.__importDefault(n(213));function u(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||a.createAction(i,e);if(!o)throw new Error("There is no action named "+i);return{action:o,methodName:r[1],arg:n}}function l(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n](r)}e.parseAction=u;var c="start",h="showEnable",f="end",p="rollback",d="processing",g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return r.__extends(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;i.each(this.steps,(function(e,n){i.each(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;i.each(this.steps,(function(e,n){i.each(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;i.each(n,(function(t){i.each(t,(function(t){if(i.isFunction(t.action))t.actionObject={action:a.createCallbackAction(t.action,e),methodName:"execute"};else if(i.isString(t.action))t.actionObject=u(t.action,e,t.arg);else if(i.isArray(t.action)){var n=t.action,r=i.isArray(t.arg)?t.arg:[t.arg];t.actionObject=[],i.each(n,(function(n,i){t.actionObject.push(u(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===h)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===f)return e===d||e===c;if(t===p){if(n[f])return e===f;if(e===c)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==h&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var u=function(a){r.event=a,n.isAllowExecute(t,e)?(i.isArray(o)?i.each(o,(function(t){r.event=a,l(t)})):(r.event=a,l(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=i.debounce(u,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=i.throttle(u,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=u}return a[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(5),a=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return r.get(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=i.getComponents(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&i.isInBox(r,n):i.isInBox(r,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,r.each(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(0),i=n(1),a=n(216),o=n(495);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=r.__rest(t,["styleSheet"]),u=o.createLightStyleSheet(n);return i.deepMix({},a.createThemeByStyleSheet(u),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var r="#000",i="#595959",a="#8C8C8C",o="#BFBFBF",s="#D9D9D9",u="#F0F0F0",l="#FFFFFF",c=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],h=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],f=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createLightStyleSheet=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,p=t.subColor,d=void 0===p?"rgba(0,0,0,0.05)":p,g=t.paletteQualitative10,y=void 0===g?c:g,v=t.paletteQualitative20,m=void 0===v?h:v,x=t.paletteSemanticRed,_=void 0===x?"#F4664A":x,b=t.paletteSemanticGreen,M=void 0===b?"#30BF78":b,C=t.paletteSemanticYellow,P=void 0===C?"#FAAD14":C,S=t.paletteSequence,O=void 0===S?f:S,w=t.fontFamily,A=void 0===w?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':w,T=t.brandColor,E=void 0===T?y[0]:T;return{backgroundColor:n,brandColor:E,subColor:d,paletteQualitative10:y,paletteQualitative20:m,paletteSemanticRed:_,paletteSemanticGreen:M,paletteSemanticYellow:P,paletteSequence:O,fontFamily:A,axisLineBorderColor:o,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:i,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:o,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:s,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:a,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:s,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:a,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:E,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:i,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:a,legendPageNavigatorTextFontSize:12,sliderRailFillColor:s,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:a,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:s,annotationArcBorder:1,annotationLineBorderColor:o,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:i,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:o,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:i,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:i,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:l,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:i,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:l,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:o,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:E,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:l,pointBorderOpacity:1,pointActiveBorderColor:r,pointSelectedBorder:2,pointSelectedBorderColor:r,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:E,hollowPointBorderOpacity:.95,hollowPointFillColor:l,hollowPointActiveBorder:1,hollowPointActiveBorderColor:r,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:E,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:E,areaFillOpacity:.25,areaActiveFillColor:E,areaActiveFillOpacity:.5,areaSelectedFillColor:E,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:E,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:E,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:E,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:l,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvLight=e.createLightStyleSheet()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(24),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return i.some(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,u=r.__assign({start:t,end:e},o),l=a.getCoordinate(s?"polar":i);return this.coordinate=new l(u),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return r.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;i.each(n,(function(n){var r,a=n[0],o=n.slice(1);(!!i.isNil(t)||t.includes(a))&&(r=e.coordinate)[a].apply(r,o)}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(1),i=n(45),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var u=s.scale,l={type:u.type};u.isCategory&&(l.values=u.values),o=r.deepMix(l,s.scaleDef,n)}var c=i.createScaleByField(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER,l=[];r.each(a,(function(t){var e=n.getScale(t);u=r.isNumber(e.max)?Math.max(u,e.max):u,s=r.isNumber(e.min)?Math.min(s,e.min):s,r.each(e.values,(function(t){l.includes(t)||l.push(t)}))})),r.each(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:u,values:l});else if(o.isCategory){var c=o.range,h=n.getScaleMeta(a);l&&!r.get(h,["scaleDef","range"])&&(c=i.getDefaultCategoryScaleRange(r.deepMix({},o,{values:l}),t,e)),o.change({values:l,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(i.syncScale(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=r.last(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=r.get(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(0),i=n(1),a=n(2),o=n(29),s=n(116),u=n(218);e.calculatePadding=function(t){var e=t.padding;if(!s.isAutoPadding(e))return new(u.PaddingCal.bind.apply(u.PaddingCal,r.__spreadArrays([void 0],s.parsePadding(e))));var n=t.viewBBox,l=new u.PaddingCal,c=[],h=[],f=[];return i.each(t.getComponents(),(function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?h.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&f.push(t)})),i.each(c,(function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);l.max(r)})),i.each(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);l.inc(a,n)})),i.each(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);l.inc(i,n)})),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(1);e.group=function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=r.groupToMap(t,e),a=[];if(1===e.length&&n[e[0]])for(var o=0,s=n[e[0]];o<s.length;o++){var u=i["_"+s[o]];u&&a.push(u)}else for(var l in i)if(i.hasOwnProperty(l)){var c=i[l];a.push(c)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFields=void 0;var r=n(1);e.parseFields=function(t){return r.isArray(t)?t:t.split("*")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(35),o=n(120),s=n(50),u=n(13),l=n(51),c=n(2),h=n(504),f=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var o=this;void 0===n&&(n=!1),this.shapesMap={};var s=this.container,u=this.createOffscreenGroup();if(t.length){for(var l=0,c=t;l<c.length;l++){var f=c[l];f&&this.renderLabel(f,u)}this.doLayout(t,e),this.renderLabelLine(t),this.renderLabelBackground(t),this.adjustLabel(t)}var p=this.lastShapesMap,d=this.shapesMap;i.each(d,(function(t,e){if(t.destroyed)delete d[e];else{if(p[e]){var u=t.get("data"),l=t.get("origin"),c=t.get("coordinate"),f=t.get("animateCfg"),g=p[e];h.updateLabel(g,d[e],{data:u,origin:l,animateCfg:f,coordinate:c}),o.shapesMap[e]=g}else{s.add(t);var y=i.get(t.get("animateCfg"),n?"enter":"appear");y&&a.doAnimate(t,y,{toAttrs:r.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete p[e]}})),i.each(p,(function(t){var e=i.get(t.get("animateCfg"),"leave");e?a.doAnimate(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=d,u.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.elementId,s=t.data,u=t.mappingData,h=t.coordinate,f=t.animate,p=t.content,d={id:a,elementId:o,data:s,origin:r.__assign(r.__assign({},u),{data:u[c.FIELD_ORIGIN]}),coordinate:h},g=e.addGroup(r.__assign({name:"label",animateCfg:!1!==this.animate&&null!==f&&!1!==f&&i.deepMix({},this.animate,f)},d));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var y=p.getCanvasBBox(),v=y.width,m=y.height,x=i.get(t,"textAlign","left"),_=t.x,b=t.y-m/2;"center"===x?_-=v/2:"right"!==x&&"end"!==x||(_-=v),l.translate(p,_,b),n=p,g.add(p)}else{var M=i.get(t,["style","fill"]);n=g.addShape("text",r.__assign({attrs:r.__assign(r.__assign({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:i.get(t,"textBaseline","middle"),text:t.content},t.style),{fill:i.isNull(M)?t.color:M})},d))}t.rotate&&l.rotate(n,t.rotate),this.shapesMap[a]=g},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var r=i.isArray(this.layout)?this.layout:[this.layout];i.each(r,(function(r){var a=o.getGeometryLabelLayout(i.get(r,"type",""));if(a){var s=[],u=[];i.each(n.shapesMap,(function(t,n){s.push(t),u.push(e[t.get("elementId")])})),a(t,s,u,n.region,r.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;i.each(t,(function(t){var n=i.get(t,"coordinate");if(t&&n){var a=n.getCenter(),o=n.getRadius();if(t.labelLine){var s=i.get(t,"labelLine",{}),l=t.id,c=s.path;if(!c){var h=u.polarToCartesian(a.x,a.y,o,t.angle);c=[["M",h.x,h.y],["L",t.x,t.y]]}var f=e.shapesMap[l];f.destroyed||f.addShape("path",{capture:!1,attrs:r.__assign({path:c,stroke:t.color?t.color:i.get(t,["style","fill"],"#000"),fill:null},s.style),id:l,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t){var e=this;i.each(t,(function(t){var n=i.get(t,"coordinate"),a=i.get(t,"background");if(a&&n){var o=t.id,u=e.shapesMap[o];if(!u.destroyed){var l=u.getChildren()[0];if(l){var c=s.getlLabelBackgroundInfo(u,t,a.padding),h=c.rotation,f=r.__rest(c,["rotation"]),p=u.addShape("rect",{attrs:r.__assign(r.__assign({},f),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),h){var d=l.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;i.each(t,(function(t){if(t){var n=t.id,r=e.shapesMap[n];if(!r.destroyed){var a=r.findAll((function(t){return"path"!==t.get("type")}));i.each(a,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var r=n(1),i=n(35),a=n(13);e.updateLabel=function t(e,n,o){var s=o.data,u=o.origin,l=o.animateCfg,c=o.coordinate,h=r.get(l,"update");e.set("data",s),e.set("origin",u),e.set("animateCfg",l),e.set("coordinate",c),e.set("visible",n.get("visible")),e.getChildren().forEach((function(r,f){var p=n.getChildByIndex(f);if(p){r.set("data",s),r.set("origin",u),r.set("animateCfg",l),r.set("coordinate",c);var d=a.getReplaceAttrs(r,p);h?i.doAnimate(r,h,{toAttrs:d,coordinate:c}):r.attr(d),p.isGroup()&&t(r,p,o)}else e.removeChild(r),r.remove(!0)})),r.each(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var r="#000",i="#BFBFBF",a="#F0F0F0",o="#FFFFFF",s="#A6A6A6",u="#737373",l="#404040",c="#262626",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],f=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],p=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,d=t.subColor,g=void 0===d?"rgba(255,255,255,0.05)":d,y=t.paletteQualitative10,v=void 0===y?h:y,m=t.paletteQualitative20,x=void 0===m?f:m,_=t.paletteSemanticRed,b=void 0===_?"#F4664A":_,M=t.paletteSemanticGreen,C=void 0===M?"#30BF78":M,P=t.paletteSemanticYellow,S=void 0===P?"#FAAD14":P,O=t.paletteSequence,w=void 0===O?p:O,A=t.fontFamily,T=void 0===A?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':A,E=t.brandColor;return{backgroundColor:n,brandColor:void 0===E?v[0]:E,subColor:g,paletteQualitative10:v,paletteQualitative20:x,paletteSemanticRed:b,paletteSemanticGreen:C,paletteSemanticYellow:S,paletteSequence:w,fontFamily:T,axisLineBorderColor:l,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:s,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:l,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:c,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:u,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:c,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:u,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:h[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:s,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:u,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:u,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:s,legendPageNavigatorTextFontSize:12,sliderRailFillColor:c,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:u,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:a,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:i,annotationArcBorderColor:c,annotationArcBorder:1,annotationLineBorderColor:l,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:s,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:o,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:l,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:s,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:s,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:s,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:l,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:h[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r,pointBorderOpacity:1,pointActiveBorderColor:o,pointSelectedBorder:2,pointSelectedBorderColor:o,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:h[0],hollowPointBorderOpacity:.95,hollowPointFillColor:r,hollowPointActiveBorder:1,hollowPointActiveBorderColor:o,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:o,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:h[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:h[0],areaFillOpacity:.25,areaActiveFillColor:h[0],areaActiveFillOpacity:.5,areaSelectedFillColor:h[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:h[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:o,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:o,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:h[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:o,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:o,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:h[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:o,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:o,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvDark=e.createDarkStyleSheet()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(16),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,u=a.y,l=a.r,c=i/2,h=o.distance(s,u,t,e);return r&&n?h<=l+c:r?h<=l:!!n&&(h>=l-c&&h<=l+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0);function a(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=i/2,u=o.x,l=o.y,c=o.rx,h=o.ry,f=(t-u)*(t-u),p=(e-l)*(e-l);return r&&n?a(f,p,c+s,h+s)<=1:r?a(f,p,c,h)<=1:!!n&&(a(f,p,c-s,h-s)>=1&&a(f,p,c+s,h+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,u=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(r.__importDefault(n(26)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(16);function s(t){return t instanceof HTMLElement&&o.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(o.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,u=e.sx,l=e.sy,c=e.swidth,h=e.sheight,f=e.img;(f instanceof Image||s(f))&&(o.isNil(u)||o.isNil(l)||o.isNil(c)||o.isNil(h)?t.drawImage(f,n,r,i,a):t.drawImage(f,u,l,c,h,n,r,i,a))},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=r.__importDefault(n(26)),s=r.__importDefault(n(80)),u=r.__importStar(n(79)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&u.addStartArrow(this,t,r,i,e,n),o&&u.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,u=a.y1,l=a.x2,c=a.y2;return s.default(o,u,l,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(l=u.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=u.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(39),s=r.__importDefault(n(26)),u=n(16),l=n(63),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return a.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",l=this._getR(r);if(u.isFunction(s))n=(t=s)(i,a,l),n=o.path2Absolute(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,l)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");l.drawPath(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(1),s=r.__importDefault(n(26)),u=n(39),l=n(63),c=r.__importDefault(n(227)),h=r.__importDefault(n(228)),f=r.__importDefault(n(513)),p=r.__importStar(n(79));function d(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];if(r=h.default(a,e,n))break}return r}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=u.path2Absolute(t);var e=f.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=u.path2Segments(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();p.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();p.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n){var u=this.getTotalLength();s=f.default.isPointInStroke(a,i,t,e,u)}if(!s&&r)if(o)s=c.default(this,t,e);else{var l=this.attr("path"),h=f.default.extractPolygons(l);s=d(h.polygons,t,e)||d(h.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");l.drawPath(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return o.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;o.each(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=i[n];if(o.isNil(s)||o.isNil(n))return null;var u=s.length,l=i[n+1];return a.Cubic.pointAt(s[u-2],s[u-1],l[1],l[2],l[3],l[4],l[5],l[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",f.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,s=0,u=[],l=this.get("curve");l&&(o.each(l,(function(t,e){n=l[e+1],r=t.length,n&&(i+=a.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(o.each(l,(function(o,c){n=l[c+1],r=o.length,n&&((t=[])[0]=s/i,e=a.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/i,u.push(t))})),this.set("tCache",u)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=n(12),s=n(12),u=n(8),l=r.__importStar(n(91)),c=n(16),h=r.__importDefault(n(80)),f=r.__importDefault(n(229)),p=u.ext.transform;e.default=i.__assign({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([o[1],o[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([o[1],o[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,u=e/2,d=0;d<t.length;d++){var g=t[d],y=g.currentPoint,v=g.params,m=g.prePoint,x=g.box;if(!x||c.inBox(x.x-u,x.y-u,x.width+e,x.height+e,n,r)){switch(g.command){case"L":case"Z":a=h.default(m[0],m[1],y[0],y[1],e,n,r);break;case"Q":a=o.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=e/2;break;case"C":a=s.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,i)<=e/2;break;case"A":var _=g.arcParams,b=_.cx,M=_.cy,C=_.rx,P=_.ry,S=_.startAngle,O=_.endAngle,w=_.xRotation,A=[n,r,1],T=C>P?C:P,E=p(null,[["t",-b,-M],["r",-w],["s",1/(C>P?1:C/P),1/(C>P?P/C:1)]]);l.transformMat3(A,A,E),a=f.default(0,0,T,S,O,e,A[0],A[1])}if(a)break}}return a}},a.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=r.__importDefault(n(230)),s=r.__importDefault(n(228)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,u=!1;return n&&(u=o.default(a,i,t,e,!0)),!u&&r&&(u=s.default(a,t,e)),u},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(12),s=n(1),u=r.__importDefault(n(26)),l=r.__importDefault(n(230)),c=r.__importStar(n(79)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],u=n[a-1][0],l=n[a-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],o,s),i&&c.addEndArrow(this,t,n[a-2][0],n[a-2][1],u,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return l.default(a,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,a=n.length;if(!(n.length<2)){var o,s=n[0][0],u=n[0][1],l=n[a-1][0],h=n[a-1][1];if(r&&r.d)s+=(o=c.getShortenOffset(s,u,n[1][0],n[1][1],r.d)).dx,u+=o.dy;if(i&&i.d)l-=(o=c.getShortenOffset(n[a-2][0],n[a-2][1],l,h,i.d)).dx,h-=o.dy;t.beginPath(),t.moveTo(s,u);for(var f=0;f<a-1;f++){var p=n[f];t.lineTo(p[0],p[1])}t.lineTo(l,h)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return s.isNil(e)?(this.set("totalLength",o.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),s.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];s.each(t,(function(s,u){t[u+1]&&((n=[])[0]=i/e,r=a.Line.length(s[0],s[1],t[u+1][0],t[u+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(225),s=n(16),u=r.__importDefault(n(517)),l=r.__importDefault(n(518)),c=r.__importDefault(n(227)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,h=a.y,f=a.width,p=a.height,d=a.radius;if(d){var g=!1;return n&&(g=l.default(o,h,f,p,d,i,t,e)),!g&&r&&(g=c.default(this,t,e)),g}var y=i/2;return r&&n?s.inBox(o-y,h-y,f+y,p+y,t,e):r?s.inBox(o,h,f,p,t,e):n?u.default(o,h,f,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var u=o.parseRadius(s),l=u[0],c=u[1],h=u[2],f=u[3];t.moveTo(n+l,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-h),0!==h&&t.arc(n+i-h,r+a-h,h,0,Math.PI/2),t.lineTo(n+f,r+a),0!==f&&t.arc(n+f,r+a-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);e.default=function(t,e,n,i,a,o,s){var u=a/2;return r.inBox(t-u,e-u,n,a,o,s)||r.inBox(t+n-u,e-u,a,i,o,s)||r.inBox(t+u,e+i-u,n,a,o,s)||r.inBox(t-u,e+u,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(80)),a=r.__importDefault(n(229));e.default=function(t,e,n,r,o,s,u,l){return i.default(t+o,e,t+n-o,e,s,u,l)||i.default(t+n,e+o,t+n,e+r-o,s,u,l)||i.default(t+n-o,e+r,t+o,e+r,s,u,l)||i.default(t,e+r-o,t,e+o,s,u,l)||a.default(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,u,l)||a.default(t+n-o,e+r-o,o,0,.5*Math.PI,s,u,l)||a.default(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,u,l)||a.default(t+o,e+o,o,Math.PI,1.5*Math.PI,s,u,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(16),s=n(14),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=s.assembleFont(t)},e.prototype._setText=function(t){var e=null;o.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,a=i.textBaseline,u=i.x,l=i.y,c=1*i.fontSize,h=this._getSpaceingY(),f=s.getTextHeight(i.text,i.fontSize,i.lineHeight);o.each(e,(function(e,i){r=l+i*(h+c)-f+c,"middle"===a&&(r+=f-c-(f-c)/2),"top"===a&&(r+=f-c),o.isNil(e)||(n?t.fillText(e,u,r):t.strokeText(e,u,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;o.isNil(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(o.isNil(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=n(521),s=r.__importStar(n(62)),u=r.__importDefault(n(121)),l=n(16),c=n(63),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return u.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||l.getPixelRatio();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?o.getShape(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=c.getMergedRegion(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=c.mergeView(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(l.clearAnimationFrame(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),c.applyAttrsToContext(t,this),c.drawChildren(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),c.applyAttrsToContext(t,this),c.checkRefresh(this,n,r),c.drawChildren(t,n,r),t.restore()):e.length&&c.clearChanged(e),l.each(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=l.requestAnimationFrame((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(a.AbstractCanvas);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(14);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=r.invert(e);return r.multiplyVec2(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!r.isAllowCapture(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var u=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=u.minX&&e<=u.maxX&&n>=u.minY&&n<=u.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),u=s.length-1;u>=0;u--){var l=s[u];if(l.isGroup())o=t(l,n,r);else if(a(l,n,r)){var c=l,h=i(l,n,r),f=h[0],p=h[1];c.isInShape(f,p)&&(o=l)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var r=n(0),i=r.__importStar(n(81));e.Shape=i,r.__exportStar(n(14),e);var a=n(536);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return a.default}});var o=n(123);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.default}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(17),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(17),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return i.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(a.each(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,u=s.length-1;u>=0;u--)r.removeChild(s[u]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r.__importDefault(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(17),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(17),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");a.each(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(a.isString(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&a.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(r.__importDefault(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(1),s=n(17),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=o.isObject(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(r.__importDefault(n(21)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(21)),s=r.__importDefault(n(529)),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return a.isArray(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=a.isFunction(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(17),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");a.each(e||r,(function(e,s){if("path"===s&&a.isArray(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var u=a.isObject(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+u+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(r.__importDefault(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(17),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(t,e){"points"===e&&a.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(12),s=n(1),u=n(17),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");s.each(e||n,(function(t,e){"points"===e&&s.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u.SVG_ATTR_MAP[e]&&r.setAttribute(u.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return s.isNil(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),s.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];s.each(t,(function(s,u){t[u+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[u+1][0],t[u+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r.__importDefault(n(21)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(21)),s=n(17),u=n(534),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,u=["x","y","width","height","radius"];a.each(e||r,(function(t,e){-1===u.indexOf(e)||o?-1===u.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=u.parseRadius(o);return a.isArray(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(90),s=n(64),u=n(17),l=r.__importDefault(n(21)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},h={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},f={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),a.each(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?s.setTransform(n):u.SVG_ATTR_MAP[e]&&i.setAttribute(u.SVG_ATTR_MAP[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=o.detect();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",h[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",f[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,l="";a.each(s,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+r+'" dy="'+-u+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+r+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+r+'" dy="-'+(u+.3)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+r+'" dy="'+(-(u-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(14),o=n(17),s=n(122),u=n(64),l=n(27),c=r.__importStar(n(81)),h=r.__importDefault(n(123)),f=r.__importDefault(n(537)),p=function(t){function e(e){return t.call(this,i.__assign(i.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return i.__extends(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return h.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=l.createSVGElement("svg"),e=new f.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&l.sortDom(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?u.setTransform(this):"clip"===t?u.setClip(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();u.setClip(this,t),e.length&&s.drawChildren(t,e)},e}(a.AbstractCanvas);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(538)),o=r.__importDefault(n(539)),s=r.__importDefault(n(540)),u=r.__importDefault(n(541)),l=r.__importDefault(n(542)),c=n(27),h=function(){function t(t){var e=c.createSVGElement("defs"),n=i.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new s.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new s.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function u(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var l=function(){function t(t){this.cfg={};var e,n,s,l,c,h,f,p=null,d=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var c=Math.tan(s),h=c*c,f=(i.x-n.x+c*(i.y-n.y))/(h+1)+n.x,p=c*(i.x-n.x+c*(i.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=u(l)}(t,p=i.createSVGElement("linearGradient")):(p=i.createSVGElement("radialGradient"),e=t,n=p,s=o.exec(e),l=parseFloat(s[1]),c=parseFloat(s[2]),h=parseFloat(s[3]),f=s[4],n.setAttribute("cx",l),n.setAttribute("cy",c),n.setAttribute("r",h),n.innerHTML=u(f)),p.setAttribute("id",d),this.el=p,this.id=d,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=i.createSVGElement("filter");return r.each(o,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[a[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t,e){this.cfg={};var n=i.createSVGElement("marker"),a=r.uniqueId("marker_");n.setAttribute("id",a);var o=i.createSVGElement("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t){this.type="clip",this.cfg={};var e=i.createSVGElement("clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=i.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=i.createSVGElement("image");e.appendChild(n);var o=r.uniqueId("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var u=new Image;function l(){e.setAttribute("width",""+u.width),e.setAttribute("height",""+u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?l():(u.onload=l,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(124));n(544);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,u=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=u,n}return r.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push(o.points),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(82),o=i.registerShapeFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(r.isArray(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});i.registerShape("area","area",{draw:function(t,e){var n=a.getShapeAttrs(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(33));n(546);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(49),s=n(125),u=i.registerShapeFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return s.splitPoints(t)}});i.registerShape("edge","line",{draw:function(t,e){var n=a.getStyle(t,!0,!1,"lineWidth"),i=o.getLinePath(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(70)),a=n(1),o=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return r.__extends(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var r=this.prepareRange(t),i=this.prepareSize(),o=a.get(this.styleOption,["cfg","shadowBlur"]);return a.isNumber(o)||(o=i/2),this.prepareGreyScaleBlurredCircle(i,o),this.drawWithRange(t,r,i,o),null},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t[o.FIELD_ORIGIN][e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return a.isNumber(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i=this.coordinate,a=i.start,s=i.end,u=this.coordinate.getWidth(),l=this.coordinate.getHeight(),c=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][c]<=e[1]&&t[o.FIELD_ORIGIN][c]>=e[0]})));for(var f=this.scales[c],p=0,d=t;p<d.length;p++){var g=d[p],y=this.getDrawCfg(g),v=y.x,m=y.y,x=f.scale(g[o.FIELD_ORIGIN][c]);this.drawGrayScaleBlurredCircle(v-a.x,m-s.y,n+r,x,h)}var _=h.getImageData(0,0,u,l);this.clearShadowCanvasCtx(),this.colorize(_),h.putImageData(_,0,0);var b=this.getImageShape();b.attr("x",a.x),b.attr("y",s.y),b.attr("width",u),b.attr("height",l),b.attr("img",h.canvas),b.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,o=3;o<n.length;o+=4){var s=n[o];if(a.isNumber(s)){var u=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[o-3]=u[0],n[o-2]=u[1],n[o-1]=u[2],n[o]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return r.__assign(r.__assign({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map((function(t){return t[o.FIELD_ORIGIN]}))},e}(r.__importDefault(n(33)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(15),o=r.__importDefault(n(33));n(549);var s=n(126),u=n(45),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate;n/=a.getXDimensionLength(o)}else this.defaultSize||(this.defaultSize=s.getDefaultSize(this)),n=this.defaultSize;return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:u.getMaxScale(e)});else{var n=this.scaleDefs,r=e.field,a=e.min,o=e.max;"time"!==e.type&&(a>0&&!i.get(n,[r,"min"])&&e.change({min:0}),o<=0&&!i.get(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(119),o=n(6),s=n(65),u=i.registerShapeFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return s.getRectPoints(t)}});i.registerShape("interval","rect",{draw:function(t,e){var n,i=o.getStyle(t,!1,!0),u=e,l=null==t?void 0:t.background;if(l){u=e.addGroup();var c=o.getBackgroundRectStyle(t),h=s.getBackgroundRectPath(t,this.parsePoints(t.points),this.coordinate);u.addShape("path",{attrs:r.__assign(r.__assign({},c),{path:h}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?s.getRectWithCornerRadius(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(s.getIntervalRectPath(t.points,i.lineCap,this.coordinate));var f=u.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:n}),name:"interval"});return l?u:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(124));n(231);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(33));n(552);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return r.__assign(r.__assign({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125),s=n(127),u=a.registerShapeFactory("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return o.splitPoints(t)}});r.each(s.SHAPES,(function(t){a.registerShape("point","hollow-"+t,{draw:function(e,n){return s.drawPoints(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(33));n(554);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!i.isArray(a)||!i.isArray(o)){var s=this.getXScale(),u=this.getYScale(),l=.5/s.values.length,c=.5/u.values.length;s.isCategory&&u.isCategory?(a=[a-l,a-l,a+l,a+l],o=[o-c,o+c,o+c,o-c]):i.isArray(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):i.isArray(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-l/2,a-l/2,a+l/2,a+l/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);var s=a.registerShapeFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return i.each(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});a.registerShape("polygon","polygon",{draw:function(t,e){if(!i.isEmpty(t.points)){var n=o.getStyle(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var a=t[n];a.x===t[n-1].x&&a.y===t[n-1].y||(r.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return i.isEqual(i.last(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:a}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(15),a=r.__importDefault(n(33));n(556);var o=n(126),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=i.getXDimensionLength(s)}else this.defaultSize||(this.defaultSize=o.getDefaultSize(this)),n=this.defaultSize;return r.size=n,r},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3).registerShapeFactory("schema",{defaultShapeType:""});e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(15),s=n(126),u=r.__importDefault(n(33));n(558);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),u=this.getAttribute("size");if(u){n=this.getAttributeValues(u,e)[0];var l=this.coordinate;n/=o.getXDimensionLength(l)}else this.defaultSize||(this.defaultSize=s.getDefaultSize(this)),n=this.defaultSize;return r.size=n,r._size=i.get(e[a.FIELD_ORIGIN],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(u.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(52),s=n(6);var u=a.registerShapeFactory("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!i.isArray(t))return[];var e=i.max(t);return i.map(t,(function(t){return t/e}))}(t._size);return i.each(t.y,(function(i,a){var o=r[a]*e,s=0===a,u=a===t.y.length-1;n.push({isMin:s,isMax:u,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:u,x:t.x+o,y:i})})),n}});a.registerShape("violin","violin",{draw:function(t,e){var n=s.getStyle(t,!0,!0),i=this.parsePath(o.getViolinPath(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(82);r.registerShape("area","line",{draw:function(t,e){var n=i.getShapeAttrs(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(82);r.registerShape("area","smooth",{draw:function(t,e){var n=this.coordinate,r=i.getShapeAttrs(t,!1,!0,this,i.getConstraint(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(82);r.registerShape("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=i.getShapeAttrs(t,!0,!0,this,i.getConstraint(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(13),a=n(3),o=n(6),s=n(233);a.registerShape("edge","arc",{draw:function(t,e){var n,a=o.getStyle(t,!0,!1,"lineWidth"),u=t.points,l=u.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===l?n=function(t,e,n){var r=s.getQPath(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(u[0],u[1],c):(a.fill=a.stroke,n=function(t,e){var n=s.getQPath(t[1],e),r=s.getQPath(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(u,c)),n=this.parsePath(n),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})}if("normal"===l)return u=this.parsePoints(u),n=i.getArcPath((u[1].x+u[0].x)/2,u[0].y,Math.abs(u[1].x-u[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})});var h=s.getCPath(u[1],u[3]),f=s.getCPath(u[2],u[0]);return n=[["M",u[0].x,u[0].y],["L",u[1].x,u[1].y],h,["L",u[3].x,u[3].y],["L",u[2].x,u[2].y],f,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(233);i.registerShape("edge","smooth",{draw:function(t,e){var n=a.getStyle(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=o.getCPath(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);a.registerShape("edge","vhv",{draw:function(t,e){var n=o.getStyle(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return i.each(n,(function(t){r.push(["L",t.x,t.y])})),r}(a[0],a[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);i.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,o.getRectPoints(t)},draw:function(t,e){var n=a.getStyle(t,!1,!0),i=this.parsePath(o.getFunnelPath(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(119),o=n(6),s=n(65);i.registerShape("interval","hollow-rect",{draw:function(t,e){var n=o.getStyle(t,!0,!1),i=e,u=null==t?void 0:t.background;if(u){i=e.addGroup();var l=o.getBackgroundRectStyle(t),c=s.getBackgroundRectPath(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:r.__assign(r.__assign({},l),{path:c}),zIndex:-1,name:a.BACKGROUND_SHAPE})}var h=this.parsePath(s.getRectPath(t.points)),f=i.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:h}),name:"interval"});return u?i:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6),s=n(65),u=n(25);a.registerShape("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,a=e.y0,i.isArray(r)?r.map((function(t,e){return{x:i.isArray(n)?n[e]:n,y:t}})):[{x:n,y:a},{x:n,y:r}];var e,n,r,a},draw:function(t,e){var n=o.getStyle(t,!0,!1,"lineWidth"),i=u.omit(r.__assign({},n),["fill"]),a=this.parsePath(s.getRectPath(t.points,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);i.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,o.getRectPoints(t)},draw:function(t,e){var n=a.getStyle(t,!1,!0),i=this.parsePath(o.getFunnelPath(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);a.registerShape("interval","tick",{getPoints:function(t){return function(t){var e,n,r=t.x,a=t.y,o=t.y0,s=t.size;i.isArray(a)?(e=a[0],n=a[1]):(e=o,n=a);var u=r+s/2,l=r-s/2;return[{x:r,y:e},{x:r,y:n},{x:l,y:e},{x:u,y:e},{x:l,y:n},{x:u,y:n}]}(t)},draw:function(t,e){var n,i=o.getStyle(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(52),s=n(6),u=n(232);function l(t,e){var n=o.getPathPoints(t.points,t.connectNulls,t.showSinglePoint),a=[];return i.each(n,(function(t){var n=function(t,e){var n=[];return i.each(t,(function(r,i){var a=t[i+1];if(n.push(r),a){var o=function(t,e,n){var r,i=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":r=[{x:o,y:a}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var u=(o+i)/2;r=[{x:u,y:a},{x:u,y:s}];break;case"vhv":var l=(a+s)/2;r=[{x:i,y:l},{x:o,y:l}]}return r}(r,a,e);n=n.concat(o)}})),n}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),r.__assign(r.__assign({},s.getStyle(t,!0,!1,"lineWidth")),{path:a})}i.each(["hv","vh","hvh","vhv"],(function(t){a.registerShape("line",t,{draw:function(e,n){var r=l(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return u.getLineMarker(e,t)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(127);r.each(o.HOLLOW_SHAPES,(function(t){a.registerShape("point",t,{draw:function(e,n){return o.drawPoints(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(6);r.registerShape("point","image",{draw:function(t,e){var n=i.getStyle(t,!1,!1,"r").r,r=this.parsePoints(t.points),a=r[0];if(t.isStack)a=r[1];else if(r.length>1){for(var o=e.addGroup(),s=0,u=r;s<u.length;s++){var l=u[s];o.addShape("image",{attrs:{x:l.x-n/2,y:l.y-n,width:n,height:n,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:a.x-n/2,y:a.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(127);r.each(o.SHAPES,(function(t){a.registerShape("point",t,{draw:function(e,n){return o.drawPoints(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t){var e=i.isArray(t)?t:[t],n=e[0],r=e[e.length-1],a=e.length>1?e[1]:n;return{min:n,max:r,min1:a,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:a}}function u(t,e,n){var r,a=n/2;if(i.isArray(e)){var o=s(e),u=o.min,l=o.max,c=o.median,h=o.min1,f=t-a,p=t+a;r=[[f,l],[p,l],[t,l],[t,d=o.max1],[f,h],[f,d],[p,d],[p,h],[t,h],[t,u],[f,u],[p,u],[f,c],[p,c]]}else{e=i.isNil(e)?.5:e;var d,g=s(t),y=(u=g.min,l=g.max,c=g.median,e-a),v=e+a;r=[[u,y],[u,v],[u,e],[h=g.min1,e],[h,y],[h,v],[d=g.max1,v],[d,y],[d,e],[l,e],[l,y],[l,v],[c,y],[c,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}a.registerShape("schema","box",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=o.getStyle(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=u(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(25),o=n(3),s=n(6);function u(t,e,n){var r,o,s=(r=e,o=(i.isArray(r)?r:[r]).sort((function(t,e){return e-t})),a.padEnd(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}o.registerShape("schema","candle",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=s.getStyle(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=u(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),a=Math.min(n,r);return e&&(a=i.clamp(e,0,Math.min(n,r))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}a.registerShape("polygon","square",{draw:function(t,e){if(!i.isEmpty(t.points)){var n=o.getStyle(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:r.__assign(r.__assign({},n),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(52),o=n(6);i.registerShape("violin","smooth",{draw:function(t,e){var n=o.getStyle(t,!0,!0),i=this.parsePath(a.getSmoothViolinPath(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(52),o=n(6);i.registerShape("violin","hollow",{draw:function(t,e){var n=o.getStyle(t,!0,!1),i=this.parsePath(a.getViolinPath(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),i.registerShape("violin","hollow-smooth",{draw:function(t,e){var n=o.getStyle(t,!0,!1),i=this.parsePath(a.getSmoothViolinPath(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i){var a,o=t.prototype.getLabelOffsetPoint.call(this,e,n,i),s=this.getCoordinate().isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return r.__assign(r.__assign({},o),((a={})[s]=o[s]*u,a))},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return i.deepMix({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var a,o,s,u,l=this.getCoordinate(),c=l.isTransposed,h=e.points,f=l.convert(h[0]),p=l.convert(h[2]),d=this.getLabelValueDir(e),g=i.isArray(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=i.get(e,"nextPoints"),v=i.get(e,"points");if(y){var m=l.convert(v[0]),x=l.convert(v[1]),_=l.convert(y[0]),b=l.convert(y[1]);c?(a=Math.min(_.y,m.y),s=Math.max(_.y,m.y),o=(x.x+b.x)/2,u=(m.x+_.x)/2):(a=Math.min((x.y+b.y)/2,(m.y+_.y)/2),s=Math.max((x.y+b.y)/2,(m.y+_.y)/2),o=b.x,u=m.x)}else a=Math.min(p.y,f.y),s=Math.max(p.y,f.y),o=p.x,u=f.x}else a=Math.min(p.y,f.y),s=Math.max(p.y,f.y),o=p.x,u=f.x;switch(r){case"right":t.x=o,t.y=(a+s)/2,t.textAlign=i.get(t,"textAlign",d>0?"left":"right");break;case"left":t.x=u,t.y=(a+s)/2,t.textAlign=i.get(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+u)/2),t.y=s,t.textAlign=i.get(t,"textAlign","center"),t.textBaseline=i.get(t,"textBaseline",d>0?"bottom":"top");break;case"middle":c&&(t.x=(o+u)/2),t.y=(a+s)/2,t.textAlign=i.get(t,"textAlign","center"),t.textBaseline=i.get(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+u)/2),t.y=a,t.textAlign=i.get(t,"textAlign","center"),t.textBaseline=i.get(t,"textBaseline",d>0?"bottom":"top")}},e}(r.__importDefault(n(78)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(15),o=n(13),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r.__extends(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return i.deepMix({},r,i.get(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:i.isArray(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:i.isArray(t.x)?t.x[1]:t.x,y:t.y[1]},s=a.getAngleByPoint(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var u=a.getAngleByPoint(n,o);s>=u&&(u+=2*Math.PI),e=s+(u-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return r.__assign(r.__assign({},o.polarToCartesian(i.x,i.y,a,t)),{angle:t,r:a})},e}(r.__importDefault(n(234)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(1),i=n(13);e.distribute=function(t,e,n,a){if(t.length&&e.length){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),u=s.getRadius(),l=s.getCenter();if(o>0){var c=2*(u+o)+28,h={start:s.start,end:s.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var i=c/14;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,i,a,o){var s,u=!0,l=i.start,c=i.end,h=Math.min(l.y,c.y),f=Math.abs(l.y-c.y),p=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.y<d&&(d=t.y),{size:n,targets:[t.y-h]}}));for(d-=h,p-h>f&&(f=p-h);u;)for(g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),f-t.size)})),u=!1,s=g.length;s--;)if(s>0){var y=g[s-1],v=g[s];y.pos+y.size>v.pos&&(y.size+=v.size,y.targets=y.targets.concat(v.targets),y.pos+y.size>f&&(y.pos=f-y.size),g.splice(s,1),u=!0)}s=0,g.forEach((function(t){var r=h+n/2;t.targets.forEach((function(){e[s].y=t.pos+r,r+=n,s++}))}));for(var m={},x=0,_=t;x<_.length;x++){var b=_[x];m[b.get("id")]=b}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-a.y),2);if(e<n)t.x=a.x;else{var i=Math.sqrt(e-n);t.x=o?a.x+i:a.x-i}var s=m[t.id];s.attr("x",t.x),s.attr("y",t.y);var u=r.find(s.getChildren(),(function(t){return"text"===t.get("type")}));u&&(u.attr("y",t.y),u.attr("x",t.x))}))}(e,t,14,h,l,n)}))}r.each(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,a=i.polarToCartesian(l.x,l.y,u,n),o=i.polarToCartesian(l.x,l.y,u+e/2,n),s=t.x+r.get(t,"offsetX",0),c=t.y+r.get(t,"offsetY",0),h={x:s-4*Math.cos(n),y:c-4*Math.sin(n)};r.isObject(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+a.x,a.y+" Q"+o.x,o.y+" "+h.x,h.y].join(",")}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(1),i=n(13),a=n(235);e.pieOuterLabelLayout=function(t,e,n,o){var s=r.filter(t,(function(t){return!r.isNil(t)})),u=e[0]&&e[0].get("coordinate");if(u){for(var l=u.getCenter(),c=u.getRadius(),h={},f=0,p=e;f<p.length;f++){var d=p[f];h[d.get("id")]=d}var g=r.get(s[0],"labelHeight",14),y=r.get(s[0],"offset",0);if(!(y<=0)){var v=r.groupBy(s,(function(t){return t.x<l.x?"left":"right"})),m=u.start,x=u.end,_=Math.min(2*(c+y+g),u.getHeight()),b=_/2,M={minX:m.x,maxX:x.x,minY:l.y-b,maxY:l.y+b};r.each(v,(function(t,e){var n=Math.floor(_/g);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),r.each(t,(function(t,e){e+1>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),a.antiCollision(t,g,M)})),r.each(v,(function(t,e){r.each(t,(function(t){var n="right"===e,a=h[t.id].getChildByIndex(0);if(a){var o=c+y,s=t.y-l.y,f=Math.pow(o,2),p=Math.pow(s,2),d=f-p>0?f-p:0,g=Math.sqrt(d),v=Math.abs(Math.cos(t.angle)*o);t.x=n?l.x+Math.max(g,v):l.x-Math.max(g,v)}a&&(a.attr("y",t.y),a.attr("x",t.x)),function(t,e){var n=e.getCenter(),a=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,u=i.polarToCartesian(n.x,n.y,a,o),l=t.x+r.get(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+r.get(t,"offsetY",0)*(Math.sin(o)>0?1:-1),h={x:l-4*Math.cos(o),y:c-4*Math.sin(o)},f=t.labelLine.smooth,p=[],d=h.x-n.x,g=h.y-n.y,y=Math.atan(g/d);if(d<0&&(y+=Math.PI),!1===f){r.isObject(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&h.y>u.y&&(v=1),o>=0&&o<Math.PI/2&&h.y>u.y&&(v=1),o>=Math.PI/2&&o<Math.PI&&u.y>h.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&u.y>h.y&&(v=1);var m=s/2>4?4:Math.max(s/2-1,0),x=i.polarToCartesian(n.x,n.y,a+m,o),_=i.polarToCartesian(n.x,n.y,a+s/2,y);p.push("M "+u.x+" "+u.y),p.push("L "+x.x+" "+x.y),p.push("A "+n.x+" "+n.y+" 0 0 "+v+" "+_.x+" "+_.y),p.push("L "+h.x+" "+h.y)}else{x=i.polarToCartesian(n.x,n.y,a+(s/2>4?4:Math.max(s/2-1,0)),o);var b=u.x<n.x?1:-1;p.push("M "+h.x+" "+h.y);var M=(u.y-n.y)/(u.x-n.x),C=(h.y-n.y)/(h.x-n.x);Math.abs(M-C)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",h.x+4*b,h.y,2*x.x-u.x,2*x.y-u.y,u.x,u.y]),p.push("L "+u.x+" "+u.y)}t.labelLine.path=p.join(" ")}}(t,u)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(1),i=n(13),a=n(235),o=n(51);e.pieSpiderLabelLayout=function(t,e,n,s){var u=e[0]&&e[0].get("coordinate");if(u){for(var l=u.getCenter(),c=u.getRadius(),h={},f=0,p=e;f<p.length;f++){var d=p[f];h[d.get("id")]=d}var g=r.get(t[0],"labelHeight",14),y=Math.max(r.get(t[0],"offset",0),4);r.each(t,(function(t){if(r.get(h,[t.id])){var e=t.x>l.x||t.x===l.x&&t.y>l.y,n=r.isNil(t.offsetX)?4:t.offsetX,a=i.polarToCartesian(l.x,l.y,c+4,t.angle),o=y+n;t.x=l.x+(e?1:-1)*(c+o),t.y=a.y}}));var v=u.start,m=u.end,x=r.groupBy(t,(function(t){return t.x<l.x?"left":"right"})),_=2*(c+y)+g;r.each(x,(function(t){var e=t.length*g;e>_&&(_=Math.min(e,Math.abs(v.y-m.y)))}));var b={minX:v.x,maxX:m.x,minY:l.y-_/2,maxY:l.y+_/2};r.each(x,(function(t,e){var n=_/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),r.each(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),a.antiCollision(t,g,b)}));var M=b.minY,C=b.maxY;r.each(x,(function(t,e){var n="right"===e;r.each(t,(function(t){var e=r.get(h,t&&[t.id]);if(e)if(t.y<M||t.y>C)e.set("visible",!1);else{var a=e.getChildByIndex(0),s=a.getCanvasBBox(),l=n?s.x:s.maxX,c=s.y+s.height/2;o.translate(a,t.x-l,t.y-c),t.labelLine&&function(t,e,n){var a,o=e.getCenter(),s=e.getRadius(),u={x:t.x-(n?4:-4),y:t.y},l=i.polarToCartesian(o.x,o.y,s+4,t.angle),c={x:u.x,y:u.y},h={x:l.x,y:l.y},f=i.polarToCartesian(o.x,o.y,s,t.angle);if(u.y!==l.y){var p=n?4:-4;c.y=u.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(l.x,u.x-p),u.y<l.y?h.y=c.y:(h.y=l.y,h.x=Math.max(h.x,c.x-p))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(l.x,u.x-p),u.y>l.y?h.y=c.y:(h.y=l.y,h.x=Math.max(h.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(l.x,u.x-p),u.y>l.y?h.y=c.y:(h.y=l.y,h.x=Math.min(h.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(l.x,u.x-p),u.y<l.y?h.y=c.y:(h.y=l.y,h.x=Math.min(h.x,c.x-p)))}a=["M "+u.x+","+u.y,"L "+c.x+","+c.y,"L "+h.x+","+h.y,"L "+l.x+","+l.y,"L "+f.x+","+f.y].join(" "),t.labelLine=r.deepMix({},t.labelLine,{path:a})}(t,u,n)}}))}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInCanvas=void 0;var r=n(1),i=n(51);e.limitInCanvas=function(t,e,n,a){r.each(e,(function(t){var e=a.minX,n=a.minY,r=a.maxX,o=a.maxY,s=t.getCanvasBBox(),u=s.minX,l=s.minY,c=s.maxX,h=s.maxY,f=s.x,p=s.y,d=s.width,g=s.height,y=f,v=p;(u<e||c<e)&&(y=e),(l<n||h<n)&&(v=n),u>r?y=r-d:c>r&&(y-=c-r),l>o?v=o-g:h>o&&(v-=h-o),y===f&&v===p||i.translate(t,y-f,v-p)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(1);e.limitInShape=function(t,e,n,i){r.each(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(1),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,a){var o=new i;r.each(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),u=Math.sqrt(s.width*s.width+s.height*s.height),l=1,c=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var f,p,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(h))<u&&g<n;)if(f=l+=-1,p=void 0,h=~~(r=[(p=.1*f)*Math.cos(p),p*Math.sin(p)])[1],((c=~~r[0])||h)&&!y[c+"-"+h]&&(t.attr({x:a+c,y:o+h}),c+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y[c+"-"+h]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),o)||t.remove(!0)})),o.destroy()},e.overlap=function(t,e,n,o){var s=new i;r.each(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,i=n.y,o=!1,u=0;u<=8;u++){var l=a(e,r,i,u);if(s.hasGap(l)){s.fillGap(l),o=!0;break}}o||t.remove(!0)})),s.destroy()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hideOverlap=void 0;var r=n(1),i=n(588),a=n(50);e.hideOverlap=function(t,e,n,o){for(var s=0;s<e.length;s++){var u=e[s];if(e[s].get("visible"))for(var l=s+1;l<e.length;l++){var c=e[l];if(u&&c&&u!==c&&c.get("visible")){var h=a.getlLabelBackgroundInfo(u,t[s],r.get(t[s],"background.padding")),f=a.getlLabelBackgroundInfo(c,t[l],r.get(t[l],"background.padding"));i.isIntersect(h,f)&&e[l].set("visible",!1)}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIntersect=e.isIntersectRect=void 0;var r=n(0),i=n(8).vec2.dot;function a(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function o(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function s(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[o(e[0],n,e[0]),o(e[1],n,e[0]),o(e[2],n,e[0]),o(e[3],n,e[0])]:e}function u(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(i([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function l(t,e){return t.max>e.min&&t.min<e.max}function c(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}e.isIntersectRect=c,e.isIntersect=function(t,e){if(!t.rotation&&!e.rotation)return c(t,e);for(var n=s(t),i=s(e),o=r.__spreadArrays(a(n),a(i)),h=0;h<o.length;h++){var f=o[h];if(!l(u(n,f),u(i,f)))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustColor=void 0;var r=n(29),i=n(590);e.adjustColor=function(t,e,n){if(0!==n.length){var a=n[0].get("element").geometry.theme,o=a.labels||{},s=o.fillColorLight,u=o.fillColorDark;n.forEach((function(t,n){var o=e[n].find((function(t){return"text"===t.get("type")})),l=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(o.getCanvasBBox()),h=!l.contains(c),f=t.attr("fill"),p=i.isContrastColorWhite(f);h?o.attr(a.overflowLabels.style):p?s&&o.attr("fill",s):u&&o.attr("fill",u)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isContrastColorWhite=void 0;var r=n(0).__importDefault(n(70)),i={"#5B8FF9":!0};e.isContrastColorWhite=function(t){var e=r.default.toRGB(t).toUpperCase();if(i[e])return i[e];var n=r.default.rgb2arr(e);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalAdjustPosition=void 0;var r=n(29),i=n(50);function a(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,a){var o=n[a];return function(t,e,n){var a=t.coordinate,o=i.findLabelTextShape(e),s=r.BBox.fromObject(o.getCanvasBBox()),u=r.BBox.fromObject(n.getBBox());return a.isTransposed?u.height>=s.height:u.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==s?void 0:s.geometry;if(u&&"interval"===u.type)a(u,e,n)&&n.forEach((function(t,n){var a=e[n];!function(t,e,n){var a=t.coordinate,o=r.BBox.fromObject(n.getBBox()),s=i.findLabelTextShape(e);a.isTransposed?s.attr({x:o.minX+o.width/2,textAlign:"center"}):s.attr({y:o.minY+o.height/2,textBaseline:"middle"})}(u,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(1),i=n(50);e.intervalHideOverlap=function(t,e,n){var a;if(0!==n.length){var o=null===(a=n[0])||void 0===a?void 0:a.get("element"),s=null==o?void 0:o.geometry;if(s&&"interval"===s.type){var u,l=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return r.each(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),c=s.getXYFields()[0],h=[],f=[],p=r.groupBy(l,(function(t){return t.get("data")[c]})),d=r.uniq(r.map(l,(function(t){return t.get("data")[c]})));l.forEach((function(t){t.set("visible",!0)}));var g=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,t))};for(r.size(d)>0&&(u=d.shift(),g(p[u])),r.size(d)>0&&(u=d.pop(),g(p[u])),r.each(d.reverse(),(function(t){g(p[t])}));f.length>0;){var y=f.shift();y.get("visible")&&(i.checkShapeOverlap(y,h)?y.set("visible",!1):h.push(y))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(1),i=n(50);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function o(t,e){return a(t,e,(function(t,e){var n,r,a,o=i.findLabelTextShape(t),s=i.findLabelTextShape(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(a=2)&&(a=0),Math.max(0,Math.min(n.x+n.width+a,r.x+r.width+a)-Math.max(n.x-a,r.x-a))*Math.max(0,Math.min(n.y+n.height+a,r.y+r.height+a)-Math.max(n.y-a,r.y-a))>0}))}e.pointAdjustPosition=function(t,e,n,s,u){var l,c;if(0!==n.length){var h=null===(l=n[0])||void 0===l?void 0:l.get("element"),f=null==h?void 0:h.geometry;if(f&&"point"===f.type){var p=f.getXYFields(),d=p[0],g=p[1],y=r.groupBy(e,(function(t){return t.get("data")[d]})),v=[],m=u&&u.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;r.map(r.keys(y).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(f,y[t]);e.length;){var n=e.shift(),r=i.findLabelTextShape(n);if(a(v,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[g]===e.get("data")[g]})))r.set("visible",!1);else{var s=!1;o(v,n)&&(r.attr("y",r.attr("y")+2*m),s=o(v,n)),s?r.set("visible",!1):v.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(1),i=n(50);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function o(t,e){return a(t,e,(function(t,e){var n,r,a,o=i.findLabelTextShape(t),s=i.findLabelTextShape(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(a=2)&&(a=0),Math.max(0,Math.min(n.x+n.width+a,r.x+r.width+a)-Math.max(n.x-a,r.x-a))*Math.max(0,Math.min(n.y+n.height+a,r.y+r.height+a)-Math.max(n.y-a,r.y-a))>0}))}e.pathAdjustPosition=function(t,e,n,s,u){var l,c;if(0!==n.length){var h=null===(l=n[0])||void 0===l?void 0:l.get("element"),f=null==h?void 0:h.geometry;if(f&&!(["path","line","area"].indexOf(f.type)<0)){var p=f.getXYFields(),d=p[0],g=p[1],y=r.groupBy(e,(function(t){return t.get("data")[d]})),v=[],m=u&&u.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;r.map(r.keys(y).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(f,y[t]);e.length;){var n=e.shift(),r=i.findLabelTextShape(n);if(a(v,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[g]===e.get("data")[g]})))r.set("visible",!1);else{var s=!1;o(v,n)&&(r.attr("y",r.attr("y")+2*m),s=o(v,n)),s?r.set("visible",!1):v.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(1),i=n(15),a=n(596),o=n(51);e.limitInPlot=function(t,e,n,s,u){if(!(e.length<=0)){var l=(null==u?void 0:u.direction)||["top","right","bottom","left"],c=(null==u?void 0:u.action)||"translate",h=(null==u?void 0:u.margin)||0,f=e[0].get("coordinate");if(f){var p=i.getCoordinateBBox(f,h),d=p.minX,g=p.minY,y=p.maxX,v=p.maxY;r.each(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,u=e.maxY,h=e.x,f=e.y,p=e.width,m=e.height,x=h,_=f;if(l.indexOf("left")>=0&&(n<d||s<d)&&(x=d),l.indexOf("top")>=0&&(i<g||u<g)&&(_=g),l.indexOf("right")>=0&&(n>y?x=y-p:s>y&&(x-=s-y)),l.indexOf("bottom")>=0&&(i>v?_=v-m:u>v&&(_-=u-v)),x!==h||_!==f){var b=x-h;if("translate"===c)o.translate(t,b,_-f);else if("ellipsis"===c){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=r.pick(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=a.getEllipsisText(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(0),i=n(1),a=n(597);e.measureTextWidth=i.memoize((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,u=e.fontVariant,l=a.getCanvasContext();return l.font=[s,u,o,n+"px",r].join(" "),l.measureText(i.isString(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),r.__spreadArrays([t],i.values(e)).join("")})),e.getEllipsisText=function(t,n,r){var a,o=e.measureTextWidth("...",r);a=i.isString(t)?t:i.toString(t);var s,u,l=n,c=[];if(e.measureTextWidth(t,r)<=n)return t;for(;s=a.substr(0,16),!((u=e.measureTextWidth(s,r))+o>l&&u>l);)if(c.push(s),l-=u,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((u=e.measureTextWidth(s,r))+o>l);)if(c.push(s),l-=u,!(a=a.substr(1)))return c.join("");return c.join("")+"..."}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var r=n(1);e.fadeIn=function(t,e,n){var i={fillOpacity:r.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:r.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:r.isNil(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)},e.fadeOut=function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(600);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;r.doScaleAnimate(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;r.doScaleAnimate(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;r.doScaleAnimate(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(8);function i(t,e,n){var i,a=e[0],o=e[1];return t.applyToMatrix([a,o,1]),"x"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===n&&(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}e.transformShape=i,e.doScaleAnimate=function(t,e,n,r,a){var o,s,u=n.start,l=n.end,c=n.getWidth(),h=n.getHeight();"y"===a?(o=u.x+c/2,s=r.y<u.y?r.y:u.y):"x"===a?(o=r.x>u.x?r.x:u.x,s=u.y+h/2):"xy"===a&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(u.x+l.x)/2,s=(u.y+l.y)/2));var f=i(t,[o,s],a);t.animate({matrix:f},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=void 0,e.pathIn=function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var r=n(8);e.scaleInX=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,u=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,u,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-u],["s",1,.01],["t",o,u]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-u],["s",1,100],["t",o,u]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(0),i=n(224),a=n(1),o=n(13);function s(t,e){var n,r=i.getArcParams(t,e),o=r.startAngle,s=r.endAngle;return!a.isNumberEqual(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),!a.isNumberEqual(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),0===e[5]&&(o=(n=[s,o])[0],s=n[1]),a.isNumberEqual(o,1.5*Math.PI)&&(o=-.5*Math.PI),a.isNumberEqual(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:o,endAngle:s}}function u(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function l(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],l=i.length>1?i[1]:i[0],c=t.indexOf(o),h=t.indexOf(l),f=u(t[c-1]),p=u(t[h-1]),d=s(f,o),g=d.startAngle,y=d.endAngle,v=s(p,l),m=v.startAngle,x=v.endAngle;a.isNumberEqual(g,m)&&a.isNumberEqual(y,x)?(n=g,r=y):(n=Math.min(g,m),r=Math.max(y,x));var _=o[1],b=i[i.length-1][1];return _<b?(_=(e=[b,_])[0],b=e[1]):_===b&&(b=0),{startAngle:n,endAngle:r,radius:_,innerRadius:b}}e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,u=i.path||[],c=u.map((function(t){return t[0]}));if(!(u.length<1)){var h=l(u),f=h.startAngle,p=h.endAngle,d=h.radius,g=h.innerRadius,y=l(t.attr("path")),v=y.startAngle,m=y.endAngle,x=s.getCenter(),_=f-v,b=p-m;0!==_||0!==b?t.animate((function(t){var e=v+t*_,n=m+t*b;return r.__assign(r.__assign({},i),{path:a.isEqual(c,["M","A","A","Z"])?o.getArcPath(x.x,x.y,d,e,n):o.getSectorPath(x.x,x.y,d,e,n,g)})}),r.__assign(r.__assign({},e),{callback:function(){t.attr("path",u)}})):t.attr("path",u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waveIn=void 0;var r=n(0),i=n(15);e.waveIn=function(t,e,n){var a=i.getCoordinateClipCfg(n.coordinate,20),o=a.type,s=a.startState,u=a.endState,l=t.setClip({type:o,attrs:s});l.animate(u,r.__assign(r.__assign({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0)}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOut=e.zoomIn=void 0;var r=n(0),i=n(8),a=n(1);function o(t,e,n){if(t.isGroup())a.each(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),u=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(t.applyToMatrix([u,l,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",100,100],["t",u,l]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]])},r.__assign(r.__assign({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),a=o.getAnglePoint({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,u=1*Math.PI/4;return{start:o.getAnglePoint(a,i,s),end:o.getAnglePoint(a,i,u)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,a=n.type,o=r[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),u=s.length,l=[];return s.forEach((function(n,r){var c=[{field:o,value:n,values:s}],h=i.filter(t,e.getFacetDataFilter(c)),f={type:a,data:h,region:e.getRegion(u,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(f)})),l},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e){var n=e.columnValue,r=e.view,s=i.get(t.cfg.title,"formatter"),u=i.deepMix({position:["50%","0%"],content:s?s(n):n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,a=n[0];if(!a)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length;r=r||s;var u=this.getPageCount(s,r),l=[];return o.forEach((function(n,c){var h=e.getRowCol(c,r),f=h.row,p=h.col,d=[{field:a,value:n,values:o}],g=i.filter(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,r,p,f),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:r,rowValuesLength:u,total:s};l.push(y)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e){var n=e.columnValue,r=e.view,s=i.get(t.cfg.title,"formatter"),u=i.deepMix({position:["50%","0%"],content:s?s(n):n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,a=i,o=[],s=0;s<a;s++)for(var u=n[s],l=0;l<i;l++){var c=n[l],h={type:r,data:t,region:this.getRegion(i,a,s,l),columnValue:u,rowValue:c,columnField:u,rowField:c,columnIndex:s,rowIndex:l,columnValuesLength:a,rowValuesLength:i};o.push(h)}return o},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=(e.rowValuesLength,e.columnValue),c=e.rowValue,h=e.view;if(0===s){var f=i.get(t.cfg.columnTitle,"formatter"),p=i.deepMix({position:["50%","0%"],content:f?f(l):l},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(r===u-1){f=i.get(t.cfg.rowTitle,"formatter"),p=i.deepMix({position:["100%","50%"],content:f?f(c):c},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,a=this.cfg.fields[0],o=[],s=1,u=1,l=[""],c=[""];return this.cfg.transpose?(e=a,l=this.getFieldValues(t,e).slice(0,2),s=l.length):(n=a,c=this.getFieldValues(t,n).slice(0,2),u=c.length),l.forEach((function(a,h){c.forEach((function(f,p){var d=[{field:e,value:a,values:l},{field:n,value:f,values:c}],g=i.filter(t,r.getFacetDataFilter(d)),y={type:r.cfg.type,data:g,region:r.getRegion(u,s,h,p),columnValue:a,rowValue:f,columnField:e,rowField:n,columnIndex:h,rowIndex:p,columnValuesLength:s,rowValuesLength:u};o.push(y)}))})),o},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e,n){var r=e.columnValue,s=e.rowValue,u=e.view,l=i.get(t.cfg.title,"formatter");if(t.cfg.transpose){var c=i.deepMix({position:["50%","0%"],content:l?l(r):r},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);u.annotation().text(c)}else{c=i.deepMix({position:["100%","50%"],content:l?l(s):s},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.title);u.annotation().text(c)}}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=n[0],a=n[1],o=[],s=1,u=1,l=[""],c=[""];return r&&(l=this.getFieldValues(t,r),s=l.length),a&&(c=this.getFieldValues(t,a),u=c.length),l.forEach((function(n,h){c.forEach((function(f,p){var d=[{field:r,value:n,values:l},{field:a,value:f,values:c}],g=i.filter(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,s,h,p),columnValue:n,rowValue:f,columnField:r,rowField:a,columnIndex:h,rowIndex:p,columnValuesLength:s,rowValuesLength:u};o.push(y)}))})),o},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=e.columnValue,c=e.rowValue,h=e.view;if(0===s){var f=i.get(t.cfg.columnTitle,"formatter"),p=i.deepMix({position:["50%","0%"],content:f?f(l):l},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(r===u-1){f=i.get(t.cfg.rowTitle,"formatter"),p=i.deepMix({position:["100%","50%"],content:f?f(c):c},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?r.__assign(r.__assign({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?r.__assign(r.__assign({},n),{title:null}):n},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(53),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return r.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},e.prototype.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=r,r++)})),n.forEach((function(t){t.columnValuesLength=n.length}));for(var i=this.cfg.fields.length-1;i>=0;i--)for(var a=0,o=this.getFacetsByLevel(t,i);a<o.length;a++){var s=o[a];this.isLeaf(s)||(s.originColIndex=s.columnIndex,s.columnIndex=this.getRegionIndex(s.children),s.columnValuesLength=n.length)}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=this.getFieldValues(t,o);return s.forEach((function(i,u){var l=[{field:o,value:i,values:s}],c=t.filter(r.getFacetDataFilter(l));if(c.length){var h={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:o,rowField:"",columnIndex:u,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e){var n=e.columnValue,r=e.view,s=i.get(t.cfg.title,"formatter"),u=i.deepMix({position:["50%","0%"],content:s?s(n):n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},a={x:i.x,y:i.y+(r.y-i.y)/2},o={x:r.x,y:a.y};n.drawLine([i,a,o,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:i.assign({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(24),o=n(35),s=n(2),u=n(15),l=n(25),c=n(614),h=n(42),f=["regionFilter","shape"],p=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(s.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(s.LAYER.BG).addGroup(),n.option=[],n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;i.each(t.option,(function(n){if(i.includes(f,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;i.each(this.option,(function(n){if(!i.includes(f,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=a.Annotation[i.upperFirst(e)];if(n){var r=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,r);return{component:new n(o),layer:this.isTop(o)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(r.__assign({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(r.__assign({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(r.__assign({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(r.__assign({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(r.__assign({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(r.__assign({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(r.__assign({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(r.__assign({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(r.__assign({type:"shape"},t))},e.prototype.html=function(t){this.annotation(r.__assign({type:"html"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),r=i.isFunction(t)?t.call(null,e,n):t,a=0,o=0;if(i.isArray(r)){var s=r[0],u=r[1];if(i.isString(s)&&-1!==s.indexOf("%")&&!isNaN(s.slice(0,-1)))return this.parsePercentPosition(r);a=c.getNormalizedValue(s,e),o=c.getNormalizedValue(u,Object.values(n)[0])}else if(!i.isNil(r))for(var l=0,h=i.keys(r);l<h.length;l++){var f=h[l],p=r[f];f===e.field&&(a=c.getNormalizedValue(p,e)),n[f]&&(o=c.getNormalizedValue(p,n[f]))}return this.view.getCoordinate().convert({x:a,y:o})},e.prototype.getRegionPoints=function(t,e){var n,r=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],u=a.field,l=this.view.getData(),c=i.isArray(t)?t[0]:t[u],h=i.isArray(e)?e[0]:e[u],f=[];return i.each(l,(function(t,e){if(t[u]===c&&(n=e),e>=n){var i=r.parsePosition([t[u],t[s.field]]);i&&f.push(i)}if(t[u]===h)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),l=this.view.getCanvas(),c={};if(i.isNil(e))return null;if("arc"===t){var h=e,f=h.start,p=h.end,d=this.parsePosition(f),g=this.parsePosition(p),y=u.getAngleByPoint(s,d),v=u.getAngleByPoint(s,g);y>v&&(v=2*Math.PI+v),c={center:s.getCenter(),radius:u.getDistanceToCenter(s,d),startAngle:y,endAngle:v}}else if("image"===t){var m=e;f=m.start,p=m.end;c={start:this.parsePosition(f),end:this.parsePosition(p),src:e.src}}else if("line"===t){var x=e;f=x.start,p=x.end;c={start:this.parsePosition(f),end:this.parsePosition(p),text:i.get(e,"text",null)}}else if("region"===t){var _=e;f=_.start,p=_.end;c={start:this.parsePosition(f),end:this.parsePosition(p)}}else if("text"===t){var b=this.view.getData(),M=e,C=M.position,P=M.content,S=r.__rest(M,["position","content"]),O=P;i.isFunction(P)&&(O=P(b)),c=r.__assign(r.__assign(r.__assign({},this.parsePosition(C)),S),{content:O})}else if("dataMarker"===t){var w=e,A=(C=w.position,w.point),T=w.line,E=w.text,I=w.autoAdjust,L=w.direction;c=r.__assign(r.__assign({},this.parsePosition(C)),{coordinateBBox:this.getCoordinateBBox(),point:A,line:T,text:E,autoAdjust:I,direction:L})}else if("dataRegion"===t){var D=e,B=(f=D.start,p=D.end,D.region),j=(E=D.text,D.lineLength);c={points:this.getRegionPoints(f,p),region:B,text:E,lineLength:j}}else if("regionFilter"===t){var k=e,R=(f=k.start,p=k.end,k.apply),F=k.color,N=this.view.geometries,Y=[],G=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):Y.push(e))};i.each(N,(function(t){R?i.contains(R,t.type)&&i.each(t.elements,(function(t){G(t.shape)})):i.each(t.elements,(function(t){G(t.shape)}))})),c={color:F,shapes:Y,start:this.parsePosition(f),end:this.parsePosition(p)}}else if("shape"===t){var V=e,H=V.render,X=r.__rest(V,["render"]);c=r.__assign(r.__assign({},X),{render:function(t){if(i.isFunction(e.render))return H(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var z=e,W=z.html;C=z.position,X=r.__rest(z,["html","position"]);c=r.__assign(r.__assign(r.__assign({},X),this.parsePosition(C)),{parent:l.get("el").parentNode,html:function(t){return i.isFunction(W)?W(t,a.view):W}})}var q=i.deepMix({},n,r.__assign(r.__assign({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(q.container=this.getComponentContainer(q)),q.animate=this.view.getOptions().animate&&q.animate&&i.get(e,"animate",q.animate),q.animateOption=i.deepMix({},o.DEFAULT_ANIMATE_CFG,q.animateOption,e.animateOption),q},e.prototype.isTop=function(t){return i.get(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return i.get(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),a=this.getAnnotationCfg(n,t,r);l.omit(a,["container"]),e.component.update(a),i.includes(f,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),i.includes(f,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){i.find(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(h.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var r=n(615);e.getNormalizedValue=function(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"end":return 1;case"median":n=e.isCategory?r.getMedian(e.values.map((function(t,e){return e}))):r.getMedian(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:r.getMean(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMean=e.getMedian=void 0;var r=n(0),i=n(1);e.getMedian=function(t){var e=r.__spreadArrays(t);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},e.getMean=function(t){var e=i.reduce(t,(function(t,e){return t+(isNaN(e)||!i.isNumber(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(24),s=n(35),u=n(89),l=n(89),c=n(617),h=n(25),f=n(42),p=["container"],d=r.__assign(r.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();i.each(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,l=n.extra,h=l.dim,f=l.scale,p=l.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===h?r=e.isTransposed?u.getAxisRegion(e,o):u.getCircleAxisCenterRadius(e):"y"===h&&(r=e.isTransposed?u.getCircleAxisCenterRadius(e):u.getAxisRegion(e,o)):r=u.getAxisRegion(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===h?c.getCircleGridItems(e,t.view.getYScales()[0],f,p,h):c.getLineGridItems(e,f,h,p):"x"===h?c.getLineGridItems(e,f,h,p):c.getCircleGridItems(e,t.view.getXScale(),f,p,h),center:t.view.getCoordinate().getCenter()}}else r={items:c.getLineGridItems(e,f,h,p)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=l.getAxisOption(this.option,e.field);if(!1!==n){var r=u.getAxisDirection(n,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),f=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,n,r);h.omit(d,p),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,n,o,r,"x"),this.cache.set(c,g),t.set(c,g);if(y=this.cache.get(f)){d=this.getLineGridCfg(e,n,r,"x");h.omit(d,p),y.component.update(d),t.set(f,y)}else(y=this.createLineGrid(e,n,o,r,"x"))&&(this.cache.set(f,y),t.set(f,y))}else if(s.isPolar){var g,y;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,n,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);h.omit(d,p),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if(i.isUndefined(n))return;g=this.createLineAxis(e,n,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,n,o,r,"x");this.cache.set(c,g),t.set(c,g)}if(y=this.cache.get(f)){d=s.isTransposed?this.getCircleGridCfg(e,n,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,a.DIRECTION.CIRCLE,"x");h.omit(d,p),y.component.update(d),t.set(f,y)}else{if(s.isTransposed){if(i.isUndefined(n))return;y=this.createCircleGrid(e,n,o,a.DIRECTION.RADIUS,"x")}else y=this.createLineGrid(e,n,o,a.DIRECTION.CIRCLE,"x");y&&(this.cache.set(f,y),t.set(f,y))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();i.each(n,(function(n,r){if(n&&!n.isIdentity){var o=n.field,s=l.getAxisOption(e.option,o);if(!1!==s){var c=a.LAYER.BG,f=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=u.getAxisDirection(s,0===r?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(f)){var v=e.getLineAxisCfg(n,s,y);h.omit(v,p),m.component.update(v),t.set(f,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(f,m),t.set(f,m);if(x=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");h.omit(v,p),x.component.update(v),t.set(d,x)}else(x=e.createLineGrid(n,s,c,y,"y"))&&(e.cache.set(d,x),t.set(d,x))}else if(g.isPolar){var m,x;if(m=e.cache.get(f)){v=g.isTransposed?e.getCircleAxisCfg(n,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,a.DIRECTION.RADIUS);h.omit(v,p),m.component.update(v),t.set(f,m)}else{if(g.isTransposed){if(i.isUndefined(s))return;m=e.createCircleAxis(n,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(f,m),t.set(f,m)}if(x=e.cache.get(d)){v=g.isTransposed?e.getLineGridCfg(n,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,a.DIRECTION.RADIUS,"y");h.omit(v,p),x.component.update(v),t.set(d,x)}else{if(g.isTransposed){if(i.isUndefined(s))return;x=e.createLineGrid(n,s,c,a.DIRECTION.CIRCLE,"y")}else x=e.createCircleGrid(n,s,c,a.DIRECTION.RADIUS,"y");x&&(e.cache.set(d,x),t.set(d,x))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===a.DIRECTION.RADIUS?a.DIRECTION.NONE:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,s){var u=this.getLineGridCfg(t,e,r,s);if(u){var l={component:new o.LineGrid(u),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:i.get(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,r,i){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,r,s){var u=this.getCircleGridCfg(t,e,r,s);if(u){var l={component:new o.CircleGrid(u),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:i.get(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var a=i.get(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=u.getAxisRegion(o,n),l=u.getAxisTitleText(t,e),c=u.getAxisThemeCfg(this.view.getTheme(),n),h=i.get(e,["title"])?i.deepMix({title:{style:{text:l}}},{title:u.getAxisTitleOptions(this.view.getTheme(),n,e.title)},e):e,f=i.deepMix(r.__assign(r.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*u.getAxisFactorByRegion(s,o.getCenter()):u.getAxisFactorByRegion(s,o.getCenter()),theme:c}),c,h),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;f.animateOption=g,f.animate=d;var y=u.isVertical(s),v=i.get(f,"verticalLimitLength",y?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),x=this.view.getCanvas().get("height");f.verticalLimitLength=v*(y?m:x)}return f},e.prototype.getLineGridCfg=function(t,e,n,r){if(c.showGrid(u.getAxisThemeCfg(this.view.getTheme(),n),e)){var a=c.getGridThemeCfg(this.view.getTheme(),n),o=i.deepMix({container:i.get(e,["top"])?this.gridForeContainer:this.gridContainer},a,i.get(e,"grid"),this.getAnimateCfg(e));return o.items=c.getLineGridItems(this.view.getCoordinate(),t,r,i.get(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var o=i.get(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),l=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||l.pop();var c=u.getAxisTitleText(t,e),h=u.getAxisThemeCfg(this.view.getTheme(),a.DIRECTION.CIRCLE),f=i.get(e,["title"])?i.deepMix({title:{style:{text:c}}},{title:u.getAxisTitleOptions(this.view.getTheme(),n,e.title)},e):e,p=i.deepMix(r.__assign(r.__assign({container:o},u.getCircleAxisCenterRadius(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:h}),h,f),d=this.getAnimateCfg(p),g=d.animate,y=d.animateOption;return p.animate=g,p.animateOption=y,p},e.prototype.getCircleGridCfg=function(t,e,n,r){if(c.showGrid(u.getAxisThemeCfg(this.view.getTheme(),n),e)){var o=c.getGridThemeCfg(this.view.getTheme(),a.DIRECTION.RADIUS),s=i.deepMix({container:i.get(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,i.get(e,"grid"),this.getAnimateCfg(e)),l=i.get(s,"alignTick",!0),h="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=c.getCircleGridItems(this.view.getCoordinate(),h,t,l,r),s}},e.prototype.getId=function(t,e){return t+"-"+e+"-"+this.view.getCoordinate().type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&i.get(t,"animate"),animateOption:t&&t.animateOption?i.deepMix({},d,t.animateOption):d}},e}(f.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(1);e.getGridThemeCfg=function(t,e){var n=r.deepMix({},r.get(t,["components","axis","common"]),r.get(t,["components","axis",e]));return r.get(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var u=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:u}:{x:u,y:0}),t.convert("y"===n?{x:1,y:u}:{x:u,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],u=n.getTicks();return u.reduce((function(e,n){var u=e?e.value:n.value,l=n.value,c=(u+l)/2;return"x"===a?s.push({points:[t.convert({x:i?l:c,y:0}),t.convert({x:i?l:c,y:1})]}):s.push({points:r.map(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?l:c})}))}),n}),u[0]),s},e.showGrid=function(t,e){var n=r.get(e,"grid");if(null===n)return!1;var i=r.get(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(24),s=n(35),u=n(29),l=n(128),c=n(25),h=n(223),f=n(45);function p(t,e){return i.isBoolean(t)?!1!==t&&{}:i.get(t,[e],t)}function d(t){return i.get(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,i.each(this.components,(function(e){var n=e.component,r=e.direction,i=h.getLegendLayout(r),a=n.get("maxWidthRatio"),o=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(i,a,o),c=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,c||0),maxHeight:Math.min(s.maxHeight,f||0)});var p=n.get("padding"),d=n.getLayoutBBox(),g=new u.BBox(d.x,d.y,d.width,d.height).expand(p),y=l.directionToPosition(t.view.viewBBox,g,r),v=y[0],m=y[1],x=l.directionToPosition(t.layoutBBox,g,r),_=x[0],b=x[1],M=0,C=0;r.startsWith("top")||r.startsWith("bottom")?(M=v,C=b):(M=_,C=m),n.setLocation({x:M+p[3],y:C+p[0]}),t.layoutBBox=t.layoutBBox.cut(g,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(i.get(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);c.omit(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var u=a.LAYER.FORE,l=d(this.option);this.components.push({id:n,component:s,layer:u,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var u=void 0,l=p(t.option,a.field);!1!==l&&(i.get(l,"custom")?u=t.getCategoryCfg(n,r,a,l,!0):a.isLinear?u=t.getContinuousCfg(n,r,a,l):a.isCategory&&(u=t.getCategoryCfg(n,r,a,l))),u&&(c.omit(u,["container"]),s.direction=d(l),s.component.update(u),e[o]=!0)}else{var h=t.createFieldLegend(n,r,a);h&&(h.component.init(),t.components.push(h),e[o]=!0)}}));var h=[];i.each(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return i.each(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};i.each(e,(function(e){var r=e.getGroupAttributes();i.each(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=p(this.option,n.field),s=a.LAYER.FORE,u=d(o);if(!1!==o&&(i.get(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new o.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,c.omit(r,["value"]));return new o.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new o.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var a=n.getTicks(),o=i.find(a,(function(t){return 0===t.value})),u=i.find(a,(function(t){return 1===t.value})),l=a.map((function(t){var r=t.value,i=t.tickValue,a=e.mapping(n.invert(r)).join("");return{value:i,attrValue:a,color:a,scaleValue:r}}));o||l.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),u||l.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),l.sort((function(t,e){return t.value-e.value}));var c={min:i.head(l).value,max:i.last(l).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=l.map((function(t){return t.attrValue})));var p=this.container,g=d(r),y=h.getLegendLayout(g),v=i.get(r,"title");return v&&(v=i.deepMix({text:f.getName(n)},v)),c.container=p,c.layout=y,c.title=v,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,o){var u=this.container,l=i.get(r,"position",a.DIRECTION.BOTTOM),c=h.getLegendThemeCfg(this.view.getTheme(),l),p=i.get(c,["marker"]),d=i.get(r,"marker"),g=h.getLegendLayout(l),y=i.get(c,["pageNavigator"]),v=i.get(r,"pageNavigator"),m=o?h.getCustomLegendItems(p,d,r.items):h.getLegendItems(this.view,t,e,p,d),x=i.get(r,"title");x&&(x=i.deepMix({text:n?f.getName(n):""},x));var _=i.get(r,"maxWidthRatio"),b=i.get(r,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,_,b);M.container=u,M.layout=g,M.items=m,M.title=x,M.animateOption=s.DEFAULT_ANIMATE_CFG,M.pageNavigator=i.deepMix({},y,v);var C=this.mergeLegendCfg(M,r,l);C.reversed&&C.items.reverse();var P=i.get(C,"maxItemWidth");return P&&P<=1&&(C.maxItemWidth=this.view.viewBBox.width*P),C},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],a=h.getLegendThemeCfg(this.view.getTheme(),r);return i.deepMix({},a,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return i.find(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=a.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=a.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(n(42).Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(24),s=n(29),u=n(128),l=n(25),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=i.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],r=t[1];n.start=e,n.end=r,n.changeViewData(e,r)},n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n.onChangeFn=i.throttle(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;i.isNil(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!i.isEmpty(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=n[0],o=(n[1],n[2],n[3]),l=this.slider.component.getLayoutBBox(),c=new s.BBox(l.x,l.y,Math.min(l.width,e),l.height).expand(n),h=this.getMinMaxText(this.start,this.end),f=h.minText,p=h.maxText,d=u.directionToPosition(this.view.viewBBox,c,a.DIRECTION.BOTTOM),g=(d[0],d[1]),y=u.directionToPosition(this.view.coordinateBBox,c,a.DIRECTION.BOTTOM),v=y[0];y[1];this.slider.component.update(r.__assign(r.__assign({},this.getSliderCfg()),{x:v+o,y:g+i,width:this.width,start:this.start,end:this.end,minText:f,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(c,a.DIRECTION.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider(r.__assign({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=r.__assign(r.__assign({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(i.isObject(this.option)){var e=r.__assign({data:this.getData()},i.get(this.option,"trendCfg",{}));t=i.deepMix({},t,this.getThemeOptions(),this.option),t=r.__assign(r.__assign({},t),{trendCfg:e})}return t.start=i.clamp(Math.min(i.isNil(t.start)?0:t.start,i.isNil(t.end)?1:t.end),0,1),t.end=i.clamp(Math.max(i.isNil(t.start)?0:t.start,i.isNil(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,a=r.ticks;return t.reduce((function(t,n){return n[i]===a[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return i.get(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=i.valuesOfKey(n,r.field),o=a,s=i.size(n);if(!r||!s)return{};var u=i.size(o),l=Math.floor(t*(u-1)),c=Math.floor(e*(u-1)),h=i.get(o,[l]),f=i.get(o,[c]),p=this.getSliderCfg().formatter;return p&&(h=p(h,n[l],l),f=p(f,n[c],c)),{minText:h,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=i.size(n);if(r&&a){var o=i.valuesOfKey(n,r.field),s=o,u=i.size(s),c=Math.floor(t*(u-1)),h=Math.floor(e*(u-1));this.view.filter(r.field,(function(t,e){var n=s.indexOf(t);return!(n>-1)||l.isBetween(n,c,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(42).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(42),a=n(24),o=n(29),s=n(128),u=n(2),l=n(1),c=n(25),h=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=l.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=l.clamp(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(u.LAYER.FORE).addGroup(),n.onChangeFn=l.throttle(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),l=this.getScrollbarComponentCfg(),c=void 0,h=void 0;if(l.isHorizontal){var f=s.directionToPosition(this.view.viewBBox,a,u.DIRECTION.BOTTOM),p=(f[0],f[1]),d=s.directionToPosition(this.view.coordinateBBox,a,u.DIRECTION.BOTTOM),g=d[0];d[1];c=g,h=p}else{var y=s.directionToPosition(this.view.viewBBox,a,u.DIRECTION.RIGHT),v=(y[0],p=y[1],s.directionToPosition(this.view.viewBBox,a,u.DIRECTION.RIGHT));g=v[0],v[1];c=g,h=p}c+=n[3],h+=n[0],this.trackLen?this.scrollbar.component.update(r.__assign(r.__assign({},l),{x:c,y:h,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(r.__assign(r.__assign({},l),{x:c,y:h})),this.view.viewBBox=this.view.viewBBox.cut(a,l.isHorizontal?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return l.get(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=l.get(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=r.__rest(n,["thumbHighlightColor"]);return{default:l.deepMix({},l.get(e,["default","style"],{}),a),hover:l.deepMix({},l.get(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.view.getOptions().data,this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*l.clamp(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=t[0],i=t[1],a="vertical"!==this.getValidScrollbarCfg().type,o=l.valuesOfKey(this.data,this.xScaleCfg.field),s=a?o:o.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=s.indexOf(t);return!(e>-1)||c.isBetween(e,r,i)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new a.Scrollbar(r.__assign(r.__assign({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:u.LAYER.FORE,direction:t?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT,type:u.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?r.__assign(r.__assign({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):r.__assign({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.view.getOptions().data,n=l.valuesOfKey(e,t.field);return l.size(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,u=i.height,c=i.style,h="vertical"!==a,f=o[0],p=o[1],d=o[2],g=o[3],y=h?{x:e.minX+g,y:n.maxY-u-d}:{x:n.maxX-s-p,y:e.minY+f},v=this.getStep(),m=this.getCnt(),x=h?e.width-g-p:e.height-f-d,_=Math.max(x*l.clamp(v/m,0,1),20);return r.__assign(r.__assign({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?u:s,isHorizontal:h,trackLen:x,thumbLen:_,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return l.isObject(this.option)&&(t=r.__assign(r.__assign({},t),this.option)),l.isObject(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e}(i.Controller);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(0),i=n(1),a=n(77),o=n(13),s=r.__importDefault(n(11)),u={fill:"#CCD6EC",opacity:.3};function l(t,e,n){var r=a.findItemsFromViewRecurisive(t,e,n);if(r.length){for(var o=0,s=r=i.flatten(r);o<s.length;o++)for(var u=0,l=s[o];u<l.length;u++){var c=l[u],h=c.mappingData,f=h.x,p=h.y;c.x=i.isArray(f)?f[f.length-1]:f,c.y=i.isArray(p)?p[p.length-1]:p}if(!1===n.shared&&r.length>1){for(var d=r[0],g=Math.abs(e.y-d[0].y),y=0,v=r;y<v.length;y++){var m=v[y],x=Math.abs(e.y-m[0].y);x<=g&&(d=m,g=x)}r=[d]}return i.uniq(i.flatten(r))}return[]}e.getItemsOfView=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,a=e.getController("tooltip").getTooltipCfg(),s=l(e,{x:n.x,y:n.y},a);if(!i.isEqual(s,this.items)&&(this.items=s,s.length)){var c=e.getXScale().field,h=s[0].data[c],f=[],p=e.geometries;if(i.each(p,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===h}));f=f.concat(e)}})),f.length){var d=e.getCoordinate(),g=f[0].shape.getCanvasBBox(),y=f[0].shape.getCanvasBBox(),v=g;i.each(f,(function(t){var e=t.shape.getCanvasBBox();d.isTransposed?(e.minY<g.minY&&(g=e),e.maxY>y.maxY&&(y=e)):(e.minX<g.minX&&(g=e),e.maxX>y.maxX&&(y=e)),v.x=Math.min(e.minX,v.minX),v.y=Math.min(e.minY,v.minY),v.width=Math.max(e.maxX,v.maxX)-v.x,v.height=Math.max(e.maxY,v.maxY)-v.y}));var m=e.backgroundGroup,x=e.coordinateBBox,_=void 0;if(d.isRect){var b=e.getXScale(),M=t||{},C=M.appendRatio,P=M.appendWidth;i.isNil(P)&&(C=i.isNil(C)?b.isLinear?0:.25:C,P=d.isTransposed?C*y.height:C*g.width);var S=void 0,O=void 0,w=void 0,A=void 0;d.isTransposed?(S=x.minX,O=Math.min(y.minY,g.minY)-P,w=x.width,A=v.height+2*P):(S=Math.min(g.minX,y.minX)-P,O=x.minY,w=v.width+2*P,A=x.height),_=[["M",S,O],["L",S+w,O],["L",S+w,O+A],["L",S,O+A],["Z"]]}else{var T=i.head(f),E=i.last(f),I=o.getAngle(T.getModel(),d).startAngle,L=o.getAngle(E.getModel(),d).endAngle,D=d.getCenter(),B=d.getRadius(),j=d.innerRadius*B;_=o.getSectorPath(D.x,D.y,B,I,L,j)}if(this.regionPath)this.regionPath.attr("path",_),this.regionPath.show();else{var k=i.get(t,"style",u);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:r.__assign(r.__assign({},k),{path:_})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(5),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.showTooltip=function(t,e){var n=a.getSilbings(t);i.each(n,(function(n){var r=a.getSiblingPoint(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=a.getSilbings(t);i.each(e,(function(t){t.hideTooltip()}))},e}(r.__importDefault(n(236)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(59),o=r.__importDefault(n(11)),s=n(24),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&i.isEqual(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(r.__assign({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},u=e.getTheme(),l=i.get(u,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:r.__assign({},i.deepMix({},l,(t={},t[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(5),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r.__extends(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:r.__assign(r.__assign({},o.deepMix({},a,o.isFunction(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=a.getElementValue(t,i.field);if(!this.cache[s]){var u=a.getElementsByField(r,i.field,s),l=this.linkGroup.addGroup();this.cache[s]=l;var c=u.length;o.each(u,(function(t,r){if(r<c-1){var i=u[r+1];n.addLinkShape(l,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=a.getElementValue(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=a.getCurrentElement(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=a.getCurrentElement(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(131)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(132)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(5),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var a=n.getScaleByField(r.getFields()[0]),o=i.getElementValue(t,a.field),s=i.getElements(n),u=s.filter((function(t){return i.getElementValue(t,a.field)===o}));this.setHighlightBy(s,(function(t){return u.includes(t)}),e)}},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(5),a=r.__importStar(n(133)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(a.STATUS_UNACTIVE)&&t.setState(a.STATUS_UNACTIVE,!1),t.setState(a.STATUS_ACTIVE,!0)):(t.setState(a.STATUS_UNACTIVE,!0),t.hasState(a.STATUS_ACTIVE)&&t.setState(a.STATUS_ACTIVE,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),a=i.getElementValue(t,r.field),o=i.getElements(n),s=o.filter((function(t){return i.getElementValue(t,r.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)},e.prototype.toggle=function(){var t=i.getCurrentElement(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var r,i=n(0),a=n(54),o=n(134),s=i.__importDefault(n(131));!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={})),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=r;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.clearViewState=function(t){o.clearHighlight(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,a.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,a.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,a.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,a.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){o.setHighlightBy(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(5),a=n(134),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=i.getElements(n);a.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;a.clearHighlight(t)},e}(r.__importDefault(n(132)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(131)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(132)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(66)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(637),o=r.__importDefault(n(66)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)i.each(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;i.each(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():i.each(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)a.clearList(t.list);else{var e=this.getAllowComponents();i.each(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(1);e.clearList=function(t){var e=t.getItems();r.each(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(66)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(r.__importDefault(n(66)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(66)),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return r.__extends(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&i.each(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!i.some(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();i.each(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(5),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=i.last(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=a.distance(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}(r.__importDefault(n(135)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1);function a(t){t.x=i.clamp(t.x,0,1),t.y=i.clamp(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert(i.head(n)),u=o.invert(i.last(n));return this.inPlot&&(a(s),a(u)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:u.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:u.y})),{start:t,end:e}},e}(r.__importDefault(n(237)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(5),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return i.getSpline(t,!0)},e}(r.__importDefault(n(238)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(5),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&i.each(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=o.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(o.isList(t)){if(r){var i=n.getItemsByState("unchecked"),a=o.getScaleByField(e,r),s=i.map((function(t){return t.name}));s.length?this.filterView(e,r,(function(t){var e=a.getText(t);return!s.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(o.isSlider(t)){var u=n.getValue(),l=u[0],c=u[1];this.filterView(e,r,(function(t){return t>=l&&t<=c})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(239)),o=n(5),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=o.getSilbings(t);i.each(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=o.getSilbings(t);i.each(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(5),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filter=function(){var t=o.getDelegationObject(this.context),e=this.context.view,n=o.getElements(e);if(o.isMask(this.context)){var r=o.getMaskedElements(this.context,10);r&&i.each(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var a=t.component,s=a.get("field");if(o.isList(t)){if(s){var u=a.getItemsByState("unchecked"),l=o.getScaleByField(e,s),c=u.map((function(t){return t.name}));i.each(n,(function(t){var e=o.getElementValue(t,s),n=l.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if(o.isSlider(t)){var h=a.getValue(),f=h[0],p=h[1];i.each(n,(function(t){var e=o.getElementValue(t,s);e>=f&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=o.getElements(this.context.view);i.each(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(5),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r.__extends(e,t),e.prototype.filter=function(){o.isMask(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=o.getMaskedElements(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=o.getSilbings(t);i.each(s,(function(t){var e=o.getElements(t);i.each(e,(function(t){var e=t.getModel().data;o.isInRecords(a,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=o.getSilbings(e);i.each(n,(function(e){var n=o.getSiblingMaskElements(t.context,e,10),r=o.getElements(e);n&&i.each(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=o.getSilbings(this.context.view);i.each(t,(function(t){var e=o.getElements(t);i.each(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=n(116),s=r.__importDefault(n(11)),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return r.__extends(e,t),e.prototype.getButtonCfg=function(){return a.deepMix(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:r.__assign({text:t.text},t.textStyle)}).getBBox(),i=o.parsePadding(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(5),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):a.distance(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(115),o=n(5),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(o.distance(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;i.each(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,u=o.y-a.y,l=this.context.view,c=this.dims;i.each(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*u})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,u=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+u,max:o+u})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(r.__importDefault(n(240)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;i.each(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,u=n*a,l=o-u,c=s+u,h=(c-l)/a;c>l&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:o-u,max:s+u})},e}(r.__importDefault(n(240)).default);e.default=a}])}));
29
+ ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=n(65),s=n(28),u=n(124),l=n(16),c=(0,r.__importStar)(n(82)),h=(0,r.__importDefault)(n(125)),f=n(13),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return h.default},e.prototype.onCanvasChange=function(t){(0,u.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,f.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,o=e.height,s=this.getHitLineWidth(),u=s/2,l=r-u,c=i-u;return{x:l,y:c,minX:l,minY:c,maxX:r+a+u,maxY:i+o+u,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||(0,s.createDom)(this),(0,o.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,u=n.strokeOpacity,c=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&h.setAttribute(l.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),u&&h.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&h.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(l.SVG_ATTR_MAP[e],n);else r.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,u=r.shadowColor;(i||a||s||u)&&(0,o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.ScaleConfig=e.Scale=e.Coordinate=e.ShapeAttrs=e.IGroup=e.DIRECTION=e.LAYER=e.getAnimation=e.registerAnimation=e.getEngine=e.registerEngine=e.registerTheme=e.getTheme=e.registerFacet=e.getFacet=e.getActionClass=e.registerAction=e.registerInteraction=e.getInteraction=e.getGeometryLabelLayout=e.getGeometryLabel=e.registerGeometryLabelLayout=e.registerGeometryLabel=e.getShapeFactory=e.registerShapeFactory=e.registerShape=e.registerGeometry=e.registerComponentController=e.InteractionAction=e.Facet=e.Action=e.Interaction=e.GeometryLabel=e.Element=e.Geometry=e.TooltipController=e.ComponentController=e.Event=e.View=e.Chart=e.VERSION=void 0;var r=n(0);e.VERSION="4.1.29";var i=n(56);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return i.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return i.Event}});var a=n(43);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=n(222);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var s=n(35);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var u=n(120);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var l=n(79);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var c=n(116);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var h=n(90);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return h.Facet}});var f=n(10);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var p=n(56);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var d=n(56);Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var g=n(3);Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return g.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return g.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return g.getShapeFactory}});var y=n(122);Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return y.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return y.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return y.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return y.getGeometryLabelLayout}});var v=n(116);Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return v.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return v.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return v.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return v.getActionClass}});var m=n(90);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var _=n(217);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return _.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return _.registerTheme}});var x=n(154);Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return x.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return x.getEngine}});var b=n(223);Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var M=n(2);Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return M.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return M.DIRECTION}});(0,r.__importStar)(n(514));var C=n(24);Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return C.IGroup}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return C.ShapeAttrs}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return C.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return C.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return C.ScaleConfig}});var P=n(226),S=n(227),O=n(12),w=n(53),A=n(78),T=n(4);e.Util={getLegendItems:S.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:O.getAngle,getSectorPath:O.getSectorPath,polarToCartesian:O.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:A.getTooltipItems,getMappingValue:P.getMappingValue}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTextCfg=e.CrosshairLineCfg=e.ContinueLegendHandlerCfg=e.ContinueLegendLabelCfg=e.ContinueLegendRailCfg=e.ContinueLegendTrackCfg=e.ContinueLegendCfg=e.LegendPageNavigatorCfg=e.LegendItemValueCfg=e.LegendItemNameCfg=e.LegendBackgroundCfg=e.LegendTitleCfg=e.LegendMarkerCfg=e.GridLineCfg=e.AxisLabelCfg=e.AxisTitleCfg=e.AxisSubTickLineCfg=e.AxisTickLineCfg=e.AxisLineCfg=e.ListItem=e.GroupComponentCfg=e.LineAxisCfg=e.CircleAxisCfg=e.CategoryLegendCfg=e.Tick=e.ScaleConfig=e.Scale=e.registerScale=e.getScale=e.CoordinateCfg=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=e.ShapeAttrs=e.Point=e.BBox=e.PathCommand=e.IShape=e.IGroup=e.IElement=e.ICanvas=void 0,e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.IList=e.IComponent=e.LineAnnotationTextCfg=e.EnhancedTextCfg=e.TrendCfg=e.SliderCfg=e.CrosshairTextBackgroundCfg=void 0;var r=n(13);Object.defineProperty(e,"ICanvas",{enumerable:!0,get:function(){return r.ICanvas}}),Object.defineProperty(e,"IElement",{enumerable:!0,get:function(){return r.IElement}}),Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return r.IGroup}}),Object.defineProperty(e,"IShape",{enumerable:!0,get:function(){return r.IShape}}),Object.defineProperty(e,"PathCommand",{enumerable:!0,get:function(){return r.PathCommand}}),Object.defineProperty(e,"BBox",{enumerable:!0,get:function(){return r.BBox}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return r.Point}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return r.ShapeAttrs}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(193);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var a=n(104);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=n(104);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return o.Color}});var s=n(431);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}}),Object.defineProperty(e,"CoordinateCfg",{enumerable:!0,get:function(){return s.CoordinateCfg}});var u=n(105);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return u.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return u.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return u.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return u.ScaleConfig}}),Object.defineProperty(e,"Tick",{enumerable:!0,get:function(){return u.Tick}});var l=n(60);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return l.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return l.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return l.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return l.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return l.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return l.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return l.Scrollbar}});var c=n(60);Object.defineProperty(e,"CategoryLegendCfg",{enumerable:!0,get:function(){return c.CategoryLegendCfg}}),Object.defineProperty(e,"CircleAxisCfg",{enumerable:!0,get:function(){return c.CircleAxisCfg}}),Object.defineProperty(e,"LineAxisCfg",{enumerable:!0,get:function(){return c.LineAxisCfg}}),Object.defineProperty(e,"GroupComponentCfg",{enumerable:!0,get:function(){return c.GroupComponentCfg}}),Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return c.ListItem}}),Object.defineProperty(e,"AxisLineCfg",{enumerable:!0,get:function(){return c.AxisLineCfg}}),Object.defineProperty(e,"AxisTickLineCfg",{enumerable:!0,get:function(){return c.AxisTickLineCfg}}),Object.defineProperty(e,"AxisSubTickLineCfg",{enumerable:!0,get:function(){return c.AxisSubTickLineCfg}}),Object.defineProperty(e,"AxisTitleCfg",{enumerable:!0,get:function(){return c.AxisTitleCfg}}),Object.defineProperty(e,"AxisLabelCfg",{enumerable:!0,get:function(){return c.AxisLabelCfg}}),Object.defineProperty(e,"GridLineCfg",{enumerable:!0,get:function(){return c.GridLineCfg}}),Object.defineProperty(e,"LegendMarkerCfg",{enumerable:!0,get:function(){return c.LegendMarkerCfg}}),Object.defineProperty(e,"LegendTitleCfg",{enumerable:!0,get:function(){return c.LegendTitleCfg}}),Object.defineProperty(e,"LegendBackgroundCfg",{enumerable:!0,get:function(){return c.LegendBackgroundCfg}}),Object.defineProperty(e,"LegendItemNameCfg",{enumerable:!0,get:function(){return c.LegendItemNameCfg}}),Object.defineProperty(e,"LegendItemValueCfg",{enumerable:!0,get:function(){return c.LegendItemValueCfg}}),Object.defineProperty(e,"LegendPageNavigatorCfg",{enumerable:!0,get:function(){return c.LegendPageNavigatorCfg}}),Object.defineProperty(e,"ContinueLegendCfg",{enumerable:!0,get:function(){return c.ContinueLegendCfg}}),Object.defineProperty(e,"ContinueLegendTrackCfg",{enumerable:!0,get:function(){return c.ContinueLegendTrackCfg}}),Object.defineProperty(e,"ContinueLegendRailCfg",{enumerable:!0,get:function(){return c.ContinueLegendRailCfg}}),Object.defineProperty(e,"ContinueLegendLabelCfg",{enumerable:!0,get:function(){return c.ContinueLegendLabelCfg}}),Object.defineProperty(e,"ContinueLegendHandlerCfg",{enumerable:!0,get:function(){return c.ContinueLegendHandlerCfg}}),Object.defineProperty(e,"CrosshairLineCfg",{enumerable:!0,get:function(){return c.CrosshairLineCfg}}),Object.defineProperty(e,"CrosshairTextCfg",{enumerable:!0,get:function(){return c.CrosshairTextCfg}}),Object.defineProperty(e,"CrosshairTextBackgroundCfg",{enumerable:!0,get:function(){return c.CrosshairTextBackgroundCfg}}),Object.defineProperty(e,"SliderCfg",{enumerable:!0,get:function(){return c.SliderCfg}}),Object.defineProperty(e,"TrendCfg",{enumerable:!0,get:function(){return c.TrendCfg}}),Object.defineProperty(e,"EnhancedTextCfg",{enumerable:!0,get:function(){return c.EnhancedTextCfg}}),Object.defineProperty(e,"LineAnnotationTextCfg",{enumerable:!0,get:function(){return c.LineAnnotationTextCfg}}),Object.defineProperty(e,"IComponent",{enumerable:!0,get:function(){return c.IComponent}}),Object.defineProperty(e,"IList",{enumerable:!0,get:function(){return c.IList}});var h=l.Axis.Line,f=l.Axis.Circle;e.LineAxis=h,e.CircleAxis=f;var p=l.Grid.Line,d=l.Grid.Circle;e.LineGrid=p,e.CircleGrid=d;var g=l.Legend.Category,y=l.Legend.Continuous;e.CategoryLegend=g,e.ContinuousLegend=y;var v=l.Tooltip.Html;e.HtmlTooltip=v},function(t,e,n){"use strict";
30
+ /*! *****************************************************************************
31
+ Copyright (c) Microsoft Corporation.
32
+
33
+ Permission to use, copy, modify, and/or distribute this software for any
34
+ purpose with or without fee is hereby granted.
35
+
36
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
37
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
39
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
40
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
41
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42
+ PERFORMANCE OF THIS SOFTWARE.
43
+ ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(1);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if((0,i.isString)(t))return t.padEnd(e,n);if((0,i.isArray)(t)){var r=t.length;if(r<e)for(var a=e-r,o=0;o<a;o++)t.push(n)}return t},e.omit=function(t,e){return"object"===r(t)&&e.forEach((function(e){delete t[e]})),t},e.uniq=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=new Map);for(var r=0,i=t;r<i.length;r++){var a=i[r];n.has(a)||(e.push(a),n.set(a,!0))}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=n(15),s=n(64),u=n(13),l=(0,r.__importStar)(n(63)),c=(0,r.__importDefault)(n(123)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,u.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,a=n.y-r,o=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:o,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!(0,o.intersectRect)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=(0,o.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(1),i=n(16);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=(0,r.toArray)(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a<e){var o=r[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.toRadian=e.setMatrixArrayType=e.RANDOM=e.ARRAY_TYPE=e.EPSILON=void 0,e.EPSILON=1e-6,e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random,e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t};var r=Math.PI/180;e.toRadian=function(t){return t*r},e.equals=function(t,n){return Math.abs(t-n)<=e.EPSILON*Math.max(1,Math.abs(t),Math.abs(n))},Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toPoints=e.getRegionBBox=e.BBox=void 0;var r=n(1),i=n(2),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,r.each)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,r.each)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,a=e.height;switch(n){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=e[0],r=e[1],i=e[2],a=e[3];return new t(this.x+a,this.y+n,this.width-a-r,this.height-n-i)},t.prototype.expand=function(e){var n=e[0],r=e[1],i=e[2],a=e[3];return new t(this.x-a,this.y-n,this.width+a+r,this.height+n+i)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=a;e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"Number")}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e);return{x:n,y:a,width:i(t)-n,height:i(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyTranslate=e.applyRotate=e.applyMatrix2BBox=e.getAngleByMatrix=e.getMatrixByTranslate=e.getMatrixByAngle=void 0;var r=n(7),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}e.getMatrixByAngle=a,e.getMatrixByTranslate=o,e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),u=Math.max(n[0],r[0],i[0],a[0]),l=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:u,maxY:c,width:u-o,height:c-l}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(193),o=n(104),s=n(1),u=n(37),l=(0,i.__importDefault)(n(88)),c=n(2),h=n(26),f=(0,i.__importDefault)(n(120)),p=n(122),d=n(3),g=n(510),y=n(224),v=n(511),m=n(225),_=n(14);var x=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,u=void 0!==s&&s,l=e.visible,c=void 0===l||l,h=e.theme,f=e.scales,p=void 0===f?{}:f,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,_=e.minColumnWidth,x=e.columnWidthRatio,b=e.roseWidthRatio,M=e.multiplePieWidthRatio,C=e.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=u,n.visible=c,n.userTheme=h,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=_,n.columnWidthRatio=x,n.roseWidthRatio=b,n.multiplePieWidthRatio=M,n.zIndexReversed=C,n}return(0,i.__extends)(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,v.parseFields)(t)});var n=(0,s.get)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,s.set)(e,"fields",n)),(0,s.set)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,s.isString)(t)||(0,s.isPlainObject)(t))&&(e=[t]),(0,s.each)(e,(function(t,n){(0,s.isObject)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),a=r.cfg;this.styleOption=n||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,s.isString)(t)){var r={},i=(0,v.parseFields)(t);r.fields=i,(0,s.isFunction)(e)?r.callback=e:(0,s.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?!e||!n&&(0,s.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,u.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var e=this.beforeMappingData,n=this.beforeMapping(e);this.dataArray=new Array(n.length);for(var r=0;r<n.length;r++){var a=n[r];this.dataArray[r]=this.mapping(a)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var o=this.container,l=this.type,c=this.coordinate,h=(0,s.get)(this.animateOption,"appear"),f=this.getYScale(),p=c.convert({x:0,y:f.scale(this.getYMinValue())});(0,u.doGroupAppearAnimate)(o,h,l,c,p)}this.labelOption&&this.renderLabels((0,s.flatten)(this.dataArray),t),this.lastAttributeOption=(0,i.__assign)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return(0,s.each)(this.attributes,(function(e){c.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&(0,s.isEmpty)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,a=r.length;i<a;i++){var o=r[i],s=o.field;o.isIdentity?n.push(o.values):n.push(e[s])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=(0,s.isArray)(t)?t[0]:t)[c.FIELD_ORIGIN];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,a,o=this.type,u=this.getXScale(),l=this.getYScale(),h=u.field||"x",f=e[l.field||"y"];i="identity"===u.type?u.values[0]:e[h],a="interval"===o||"schema"===o?""+i:"line"===o||"area"===o||"path"===o?o:i+"-"+f;var p=this.groupScales;(0,s.isEmpty)(p)&&(p=(0,s.get)(this.getAttribute("color"),"scales",[]));r=0;for(var d=p.length;r<d;r++){a=a+"-"+e[p[r].field]}var g=this.getAdjust("dodge");if(g){var y=g.dodgeBy;y&&(a=a+"-"+e[y])}return this.getAdjust("jitter")&&(a=a+"-"+t.x+"-"+t.y),a},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var a in n)if(n.hasOwnProperty(a)){var o=n[a];o.fields?(0,h.uniq)(o.fields,t,e):o.values&&(0,h.uniq)(o.values,t,e)}return r&&r.fields&&(0,h.uniq)(r.fields,t,e),(0,s.isObject)(i)&&i.fields&&(0,h.uniq)(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=c.GROUP_ATTRS.length;n<r;n++){var i=c.GROUP_ATTRS[n],a=this.attributeOption[i];a&&a.fields&&(0,h.uniq)(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields;return[t[0],t[1]]},e.prototype.getXField=function(){return(0,s.get)(this.getXYFields(),[0])},e.prototype.getYField=function(){return(0,s.get)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t[c.FIELD_ORIGIN][n])-e.translate(r[c.FIELD_ORIGIN][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if((0,d.getShapeFactory)(t))return this.shapeFactory||(this.shapeFactory=(0,s.clone)((0,d.getShapeFactory)(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var n=this.container,r=this.getDrawCfg(t),i=this.getShapeFactory(),a=new f.default({shapeFactory:i,container:n,offscreenGroup:this.getOffscreenGroup()});return a.animate=this.animateOption,a.geometry=this,a.draw(r,e),a},e.prototype.getDrawCfg=function(t){var e=t[c.FIELD_ORIGIN],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=(0,s.get)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=new Map,r=[],i=new Map,a=0,o=0;o<t.length;o++)for(var s=t[o],u=0;u<s.length;u++){var l=s[u],c=this.getElementId(l),h=n.has(c)?c+"-"+o+"-"+u:c;r.push(h),n.set(h,l),i.set(h,a),a++}this.elements=new Array(a);for(var f=(0,m.diff)(this.lastElementsMap,r),p=f.added,d=f.updated,g=f.removed,v=0,_=p;v<_.length;v++){c=_[v],l=n.get(c);var x=this.createElement(l,e);o=i.get(c);this.elements[o]=x,this.elementsMap[c]=x}for(var b=0,M=d;b<M.length;b++){c=M[b],x=this.lastElementsMap[c],l=n.get(c);var C=this.getDrawCfg(l),P=x.getModel();o=i.get(c);(this.isCoordinateChanged||(0,y.isModelChange)(C,P))&&(x.animate=this.animateOption,x.update(C)),this.elements[o]=x,this.elementsMap[c]=x}for(var S=0,O=g;S<O.length;S++){c=O[S];(x=this.lastElementsMap[c]).animate=this.animateOption,x.destroy()}if(this.zIndexReversed){var w=this.elements.length;for(o=0;o<w;o++)this.elements[o].shape.setZIndex(w-o)}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,a=(0,s.get)(t,["cfg","type"]);return a||(a="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),a},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if((0,s.isNil)(e)||(0,s.isObject)(e))(0,s.isObject)(e)&&(0,s.isEqual)(Object.keys(e),["values"])?(0,s.set)(this.attributeOption,t,{fields:e.values}):(0,s.set)(this.attributeOption,t,e);else{var r={};(0,s.isNumber)(e)?r.values=[e]:r.fields=(0,v.parseFields)(e),n&&((0,s.isFunction)(n)?r.callback=n:r.values=n),(0,s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,a=this.theme,s=this.shapeType;this.groupScales=[];var u={},l=function(r){if(n.hasOwnProperty(r)){var l=n[r];if(!l)return{value:void 0};var h=(0,i.__assign)({},l),f=h.callback,p=h.values,d=h.fields,g=(void 0===d?[]:d).map((function(e){var n=t.scales[e];return n.isCategory&&!u[e]&&c.GROUP_ATTRS.includes(r)&&(t.groupScales.push(n),u[e]=!0),n}));h.scales=g,"position"!==r&&1===g.length&&"identity"===g[0].type?h.values=g[0].values:f||p||("size"===r?h.values=a.sizes:"shape"===r?h.values=a.shapes[s]||[]:"color"===r&&(g.length?h.values=g[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var y=(0,o.getAttribute)(r);e[r]=new y(h)}};for(var h in n){var f=l(h);if("object"===r(f))return f.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),n=this.groupData(t),r=[],i=0,a=n.length;i<a;i++){for(var o=n[i],s=[],u=0,l=o.length;u<l;u++){var h=o[u],f={};for(var p in h)f[p]=h[p];f[c.FIELD_ORIGIN]=h;for(var d=0,g=e;d<g.length;d++){var y=g[d],v=y.field;f[v]=y.translate(f[v])}s.push(f)}r.push(s)}var m=this.adjustData(r);return this.beforeMappingData=m,m},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,o=this.theme,u=this.maxColumnWidth||o.maxColumnWidth,l=this.minColumnWidth||o.minColumnWidth,c=this.columnWidthRatio||o.columnWidthRatio,h=t;if(e){var f=this.getXScale(),p=this.getYScale(),d=f.field,g=p?p.field:null,y=(0,_.getXDimensionLength)(this.coordinate),v=f.values.length,m=this.getAttribute("size"),x=void 0;m&&(x=m.values[0]);for(var b=0,M=e.length;b<M;b++){var C=e[b],P=(0,i.__assign)({xField:d,yField:g,intervalPadding:n,dodgePadding:r,xDimensionLength:y,groupNum:v,defaultSize:x,maxColumnWidth:u,minColumnWidth:l,columnWidthRatio:c},C),S=C.type;if("dodge"===S){var O=[];if(f.isCategory||"identity"===f.type)O.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");O.push("y")}P.adjustNames=O,P.dodgeRatio=c}else if("stack"===S){var w=this.coordinate;if(!p){P.height=w.getHeight();var A=this.getDefaultValue("size")||3;P.size=A}!w.isTransposed&&(0,s.isNil)(P.reverseOrder)&&(P.reverseOrder=!0)}var T=new((0,a.getAdjust)(S))(P);h=T.process(h),this.adjusts[S]=T}}return h},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],a=0;a<e.length;a++){var o=e[a].field;i.push(o),(0,s.get)(n,[o,"values"])&&(r[o]=n[o].values)}return(0,g.group)(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=(0,s.flatten)(e),r=t.field,i=t.min,a=t.max,o=0;o<n.length;o++){var u=n[o],l=Math.min.apply(null,u[r]),c=Math.max.apply(null,u[r]);l<i&&(i=l),c>a&&(a=c)}var h=this.scaleDefs,f={};i<t.min&&!(0,s.get)(h,[r,"min"])&&(f.min=i),a>t.max&&!(0,s.get)(h,[r,"max"])&&(f.max=a),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var a=e[n+1];a&&(this.generateShapePoints(a),i[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if((0,s.isArray)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],a={_origin:i[c.FIELD_ORIGIN],points:i.points,nextPoints:i.nextPoints};for(var o in e)if(e.hasOwnProperty(o)){var u=e[o],l=u.names,h=this.getAttributeValues(u,i);if(l.length>1)for(var f=0;f<h.length;f+=1){var p=h[f];a[l[f]]=(0,s.isArray)(p)&&1===p.length?p[0]:p}else a[l[0]]=1===h.length?h[0]:h}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,a=t.y,o=this.coordinate;if((0,s.isArray)(i)&&(0,s.isArray)(a)){e=[],n=[];for(var u=0,l=0,c=i.length,h=a.length;u<c&&l<h;u+=1,l+=1)r=o.convert({x:i[u],y:a[l]}),e.push(r.x),n.push(r.y)}else if((0,s.isArray)(a)){n=[];for(var f=0;f<a.length;f++){var p=a[f];r=o.convert({x:i,y:p}),e&&e!==r.x?((0,s.isArray)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if((0,s.isArray)(i)){e=[];for(f=0;f<i.length;f++){var d=i[f];r=o.convert({x:d,y:a}),n&&n!==r.y?((0,s.isArray)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=o.convert({x:i,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,a=t.cfg;if(a)return a;var o=r.map((function(t){return e[t]}));return i.apply(void 0,o)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),a&&(this.scaleDefs=a,this.idFields=[],(0,s.each)(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?(0,s.deepMix)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var r=this.getLabelType();n=new((0,p.getGeometryLabel)(r))(this),this.geometryLabel=n}n.render(t,e);var i=n.labelsRenderer.shapesMap;(0,s.each)(this.elementsMap,(function(t,e){var n=function(t,e){var n=[];return(0,s.each)(e,(function(e,r){r.split(" ")[0]===t&&n.push(e)})),n}(e,i);if(n.length){t.labelShape=n;for(var r=0;r<n.length;r++)for(var a=n[r].getChildren(),o=0;o<a.length;o++){var u=a[o];u.cfg.name=["element","label"],u.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===(0,s.get)(this.animateOption,"appear")||(0,s.get)(this.animateOption,"appear")&&void 0===(0,s.get)(this.animateOption,["appear","animation"]))},e}(l.default);e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var r=n(0),i=n(1),a=n(2),o=n(223);e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},u={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};e.getDefaultAnimateCfg=function(t,n,r){var a=s[t];return a&&((0,i.isFunction)(a)&&(a=a(n)),a=(0,i.deepMix)({},e.DEFAULT_ANIMATE_CFG,a),r)?a[r]:a},e.doAnimate=function(t,e,n){var r=(0,i.get)(t.get("origin"),"data",a.FIELD_ORIGIN),s=e.animation,u=function(t,e){return{delay:(0,i.isFunction)(t.delay)?t.delay(e):t.delay,easing:(0,i.isFunction)(t.easing)?t.easing(e):t.easing,duration:(0,i.isFunction)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var l=(0,o.getAnimation)(s);l&&l(t,u,n)}else t.animate(n.toAttrs,u)},e.doGroupAppearAnimate=function(t,n,a,s,l){if(u[a]){var c=u[a](s),h=(0,o.getAnimation)((0,i.get)(c,"animation",""));if(h){var f=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},e.DEFAULT_ANIMATE_CFG.appear),c),n);t.stopAnimate(),h(t,f,{coordinate:s,minYPoint:l,toAttrs:null})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(1),i=n(2),a=n(91),o=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=(0,r.deepMix)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,a=this.view.createView({region:e,padding:i});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(i.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;(0,r.each)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,i){return(0,r.isNumber)(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return(0,r.each)(t,(function(t){var a=t[e];(0,r.isNil)(a)||i[a]||(n.push(a),i[a]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=this.parseSpacing(),a=i[0],o=i[1],s=(1+a)/(0===e?1:e)-a,u=(1+o)/(0===t?1:t)-o,l={x:(s+a)*n,y:(u+o)*r};return{start:l,end:{x:l.x+s,y:l.y+u}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,o=t.geometries;if("rect"===(0,r.get)(i,"type","rect")&&o.length){(0,r.isNil)(n.axes)&&(n.axes={});var s=n.axes,u=o[0].getXYFields(),l=u[0],c=u[1],h=(0,a.getAxisOption)(s,l),f=(0,a.getAxisOption)(s,c);!1!==h&&(n.axes[l]=this.getXAxisOption(l,s,h,e)),!1!==f&&(n.axes[c]=this.getYAxisOption(c,s,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return(0,r.every)(t,(function(t){var n=t.field,i=t.value;return!(!(0,r.isNil)(i)&&n)||e[n]===i}))}},t}();e.Facet=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.upperFirst=e.each=e.mix=e.isArray=e.isObject=e.isString=e.isFunction=e.isNil=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPointInPolygon=e.isPolygonsIntersect=e.getLineIntersect=e.path2Segments=e.getArcParams=e.reactPath=e.path2Absolute=e.path2Curve=e.parsePathString=e.parsePathArray=e.pathIntersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRom2Bezier=e.parsePath=void 0;var i=n(186);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r(i).default}});var a=n(387);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return r(a).default}});var o=n(388);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return r(o).default}});var s=n(389);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return r(s).default}});var u=n(390);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return r(u).default}});var l=n(391);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return r(l).default}});var c=n(396);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return r(c).default}});var h=n(190);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return r(h).default}});var f=n(188);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return r(f).default}});var p=n(189);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return r(p).default}});var d=n(187);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return r(d).default}});var g=n(102);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r(g).default}});var y=n(397);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return r(y).default}});var v=n(191);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return r(v).default}});var m=n(398);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return r(m).default}});var _=n(192);Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return r(_).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t,e){return(0,r.isString)(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,a=t.names,o=void 0===a?[]:a,s=t.scales,u=void 0===s?[]:s,l=t.values,c=void 0===l?[]:l,h=t.callback;this.type=i,this.scales=u,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var i=h.apply(void 0,t);if(!(0,r.isNil)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:(0,r.isArray)(t)?t.map((function(t){return i(e,t)})):i(e,t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.upperFirst=e.each=e.mix=e.isArray=e.isObject=e.isString=e.isFunction=e.isNil=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var r=n(1),i=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){(0,r.each)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();e.Controller=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(68));e.default=function(t,e){if(t)if((0,i.default)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,a.default)(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(36));e.default=function(t){return(0,r.default)(t)?"":t.toString()}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.getWidth=e.getStyle=e.getRatio=e.getOuterWidth=e.getOuterHeight=e.getHeight=e.createDom=e.addEventListener=void 0;var i=n(327);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return r(i).default}});var a=n(328);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return r(a).default}});var o=n(155);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return r(o).default}});var s=n(329);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return r(s).default}});var u=n(330);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return r(u).default}});var l=n(331);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return r(l).default}});var c=n(58);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return r(c).default}});var h=n(156);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return r(h).default}});var f=n(332);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return r(f).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=void 0;var r=n(0),i=n(1),a=n(24),o=n(14),s=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.createScaleByField=function(t,e,n){var o=e||[];if((0,i.isNumber)(t)||(0,i.isNil)((0,i.firstValue)(o,t))&&(0,i.isEmpty)(n))return new((0,a.getScale)("identity"))({field:t.toString(),values:[t]});var u=(0,i.valuesOfKey)(o,t),l=(0,i.get)(n,"type",function(t){var e="linear";return s.test(t)?e="timeCat":(0,i.isString)(t)&&(e="cat"),e}(u[0]));return new((0,a.getScale)(l))((0,r.__assign)({field:t,values:u},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,a=t.values.length;if(1===a)r=[.5,1];else{var s=0;r=(0,o.isFullCircle)(e)?e.isTransposed?[(s=1/a*(0,i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/a]:[s=1/a/2,1-s]}return r},e.getMaxScale=function(t){var e=t.values.filter((function(t){return!(0,i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],e,!1),[(0,i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelix=e.gray=e.lch=e.hcl=e.lab=e.hsl=e.rgb=e.color=void 0;var i=n(97);Object.defineProperty(e,"color",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"rgb",{enumerable:!0,get:function(){return i.rgb}}),Object.defineProperty(e,"hsl",{enumerable:!0,get:function(){return i.hsl}});var a=n(355);Object.defineProperty(e,"lab",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"hcl",{enumerable:!0,get:function(){return a.hcl}}),Object.defineProperty(e,"lch",{enumerable:!0,get:function(){return a.lch}}),Object.defineProperty(e,"gray",{enumerable:!0,get:function(){return a.gray}});var o=n(356);Object.defineProperty(e,"cubehelix",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gamma=e.hue=void 0;var r=(0,n(0).__importDefault)(n(176));function i(t,e){return function(n){return t+n*e}}function a(t,e){var n=e-t;return n?i(t,n):(0,r.default)(isNaN(t)?e:t)}e.hue=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.default)(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.default)(isNaN(e)?n:e)}},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(25).__importStar)(n(1)),i=n(103),a=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r;this.adjustNames=i,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a={},o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!n&&this.isAdjust("y")){a.y=[i.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(7),i=n(1),a=n(14);function o(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var a=e.convert({x:t[r],y:t[r+1]});n.push(a.x,a.y)}return n}function s(t,e){var n=e.isTransposed,r=t[1],i=t[6],a=t[7],o=e.convert({x:i,y:a});return["A",r,r,0,0,n?0:1,o.x,o.y]}function u(t,n,r){for(var i=!!n,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var u,l,c,h=(0,e.smoothBezier)(a,.4,i,r),f=a.length,p=[];for(o=0;o<f-1;o++)u=h[2*o],l=h[2*o+1],c=a[o+1],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return i&&(u=h[f],l=h[f+1],c=a[0],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),p}function l(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var a=t[r];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}(t,e)}e.smoothBezier=function(t,e,n,i){var a,o,s,u,l,c,h,f=[],p=!!i;if(p){s=i[0],u=i[1];for(var d=0,g=t.length;d<g;d++){var y=t[d];s=r.vec2.min([0,0],s,y),u=r.vec2.max([0,0],u,y)}}d=0;for(var v=t.length;d<v;d++){y=t[d];if(0!==d||n)if(d!==v-1||n){a=t[n?d?d-1:v-1:d-1],o=t[n?(d+1)%v:d+1];var m=[0,0];m=r.vec2.sub(m,o,a),m=r.vec2.scale(m,m,e);var _=r.vec2.distance(y,a),x=r.vec2.distance(y,o),b=_+x;0!==b&&(_/=b,x/=b);var M=r.vec2.scale([0,0],m,-_),C=r.vec2.scale([0,0],m,x);c=r.vec2.add([0,0],y,M),l=r.vec2.add([0,0],y,C),l=r.vec2.min([0,0],l,r.vec2.max([0,0],o,y)),l=r.vec2.max([0,0],l,r.vec2.min([0,0],o,y)),M=r.vec2.sub([0,0],l,y),M=r.vec2.scale([0,0],M,-_/x),c=r.vec2.add([0,0],y,M),c=r.vec2.min([0,0],c,r.vec2.max([0,0],a,y)),c=r.vec2.max([0,0],c,r.vec2.min([0,0],a,y)),C=r.vec2.sub([0,0],y,c),C=r.vec2.scale([0,0],C,x/_),l=r.vec2.add([0,0],y,C),p&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,u),l=r.vec2.max([0,0],l,s),l=r.vec2.min([0,0],l,u)),f.push(h),f.push(c),h=l}else c=y,f.push(h),f.push(c);else h=y}return n&&f.push(f.shift()),f},e.catmullRom2bezier=u,e.getLinePath=l,e.getSplinePath=function(t,e,n){var r=[],i=t[0],a=null;if(t.length<=2)return l(t,e);for(var o=0,s=t.length;o<s;o++){var c=t[o];a&&a.x===c.x&&a.y===c.y||(r.push(c.x),r.push(c.y),a=c)}var h=u(r,e,n||[[0,0],[1,1]]);return h.unshift(["M",i.x,i.y]),h},e.convertNormalPath=function(t,e){var n=[];return(0,i.each)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(o(e,t));break;case"a":n.push(s(e,t));break;case"z":default:n.push(e)}})),n},e.convertPolarPath=function(t,e){var n,r,u,l=[];return(0,i.each)(e,(function(i,c){switch(i[0].toLowerCase()){case"m":case"c":case"q":l.push(o(i,t));break;case"l":n=e[c-1],r=i,u=t.isTransposed,(u?n[n.length-2]===r[1]:n[n.length-1]===r[2])?l=l.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,s="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},u={x:e[1],y:e[2]},l=[],c=r?"y":"x",h=Math.abs(u[c]-s[c])*(o-i),f=u[c]>=s[c]?1:0,p=h>Math.PI?1:0,d=n.convert(u),g=(0,a.getDistanceToCenter)(n,d);if(g>=.5)if(h===2*Math.PI){var y={x:(u.x+s.x)/2,y:(u.y+s.y)/2},v=n.convert(y);l.push(["A",g,g,0,p,f,v.x,v.y]),l.push(["A",g,g,0,p,f,d.x,d.y])}else l.push(["A",g,g,0,p,f,d.x,d.y]);return l}(n,r,t)):l.push(o(i,t));break;case"a":l.push(s(i,t));break;case"z":default:l.push(i)}})),function(t){(0,i.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(l),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getlLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(1),i=n(53);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getlLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t.getChildren()[0];if(a){var o=a.clone();(null==e?void 0:e.rotate)&&(0,i.rotate)(o,-e.rotate);var s=o.getCanvasBBox(),u=s.x,l=s.y,c=s.width,h=s.height;o.destroy();var f=n;return(0,r.isNil)(f)?f=[2,2,2,2]:(0,r.isNumber)(f)&&(f=new Array(4).fill(f)),{x:u-f[3],y:l-f[0],width:c+f[1]+f[3],height:h+f[0]+f[2],rotation:(null==e?void 0:e.rotate)||0}}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return(0,r.some)(e,(function(t){var e=t.getBBox();return a(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(7).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(1),i=n(51);function a(t){return!t&&(null==t||isNaN(t))}function o(t){if((0,r.isArray)(t))return a(t[1].y);var e=t.y;return(0,r.isArray)(e)?a(e[0]):a(e)}e.getPathPoints=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,a=t.length;i<a;i++){o(l=t[i])||r.push(l)}return[r]}var s=[],u=[];for(i=0,a=t.length;i<a;i++){var l;o(l=t[i])?u.length&&((1!==u.length||n)&&s.push(u),u=[]):u.push(l)}return u.length&&s.push(u),s},e.getViolinPath=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return a&&(e.push(["L",a.x,a.y]),e.push(["z"])),e},e.getSmoothViolinPath=function(t){for(var e=t.length/2,n=[],r=[],a=0;a<t.length;a++)a<e?n.push(t[a]):r.push(t[a]);var o=(0,i.getSplinePath)(n,!1),s=(0,i.getSplinePath)(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),s.shift();var u=o.concat(s);return n.length&&u.push(["L",n[0].x,n[0].y]),u.push(["z"]),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var r=n(2);e.getFactTitleConfig=function(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var i=n(246);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r(i).default}});var a=n(157);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return a.registerGeometry}});var o=n(119);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r(o).default}});var s=n(220);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return s.registerComponentController}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(85)),a=(0,r.__importDefault)(n(23));e.default=function(t){if(!(0,i.default)(t)||!(0,a.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(196),a=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,(function(e,n){return(0,r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TOOLTIP_CSS_CONST=e.propagationDelegate=e.Scrollbar=e.Slider=e.Crosshair=e.Tooltip=e.Legend=e.Grid=e.Annotation=e.Axis=e.HtmlComponent=e.GroupComponent=e.Component=void 0;var r=n(0),i=(0,r.__importStar)(n(437));e.Annotation=i;var a=(0,r.__importStar)(n(467));e.Axis=a;var o=(0,r.__importStar)(n(474));e.Crosshair=o;var s=(0,r.__importStar)(n(479));e.Grid=s;var u=(0,r.__importStar)(n(482));e.Legend=u;var l=(0,r.__importStar)(n(485));e.Tooltip=l;var c=n(110);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var h=n(8);Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var f=n(77);Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var p=n(489);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return p.Slider}});var d=n(496);Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return d.Scrollbar}}),(0,r.__exportStar)(n(498),e),(0,r.__exportStar)(n(499),e);var g=n(204);Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return g.propagationDelegate}});var y=(0,r.__importStar)(n(115));e.TOOLTIP_CSS_CONST=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var r=n(1),i=n(457);function a(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}e.getMaxLabelWidth=function(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,r.isNil)(e)?"":""+e})),n=0,i=0,a=0;a<e.length;a+=1){for(var o=0,s=0;s<=e[a].length;s+=1){var u=e[a].charCodeAt(s);o+=u>=19968&&u<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,r.each)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e},e.getLabelLength=a,e.testLabel=function(t,e){return t.getBBox().width<e},e.ellipsisLabel=function(t,e,n,r){void 0===r&&(r="tail");var o=e.attr("text"),s=a(t,e),u=(0,i.strLen)(o),l=!1;if(n<s){var c=Math.floor(n/s*u)-2,h=void 0;(h=c>=0?(0,i.ellipsisString)(o,c,r):"…")&&(e.attr("text",h),l=!0)}return l?e.set("tip",o):e.set("tip",null),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Circle=e.Base=void 0;var i=n(27);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(516);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(517);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(o).default}});var s=n(518);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(s).default}});var u=n(519);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(u).default}});var l=n(520);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(l).default}});var c=n(521);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(c).default}});var h=n(523);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(h).default}});var f=n(524);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(f).default}});var p=n(525);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(p).default}});var d=n(528);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(d).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var r=n(0),i=n(1),a=n(229),o=(0,r.__importDefault)(n(230)),s=n(15),u=(0,r.__importStar)(n(80)),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&h(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&c(r.cfg.children,e);else{var i=f(r,e);r.cfg.refresh=i,i&&r.isGroup()&&c(r.cfg.children,e)}}}function h(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&h(r.get("children"),e)}}function f(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&(0,s.intersectRect)(n,e)}function p(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?e=(0,s.mergeRegion)(n,i):r?e=n:a&&(e=i)}return e}e.applyAttrsToContext=function(t,e){var n=e.attr();for(var r in n){var o=n[r],s=l[r]?l[r]:r;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?(0,i.isArray)(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=(0,a.parseStyle)(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}},e.drawChildren=function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}},e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");(0,i.each)(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?h(e,n):c(e,n)},e.checkChildrenRefresh=c,e.clearChanged=function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}},e.drawPath=function(t,e,n,r){var i=n.path,a=n.startArrow,s=n.endArrow;if(i){var l=[0,0],c=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<i.length;f++){var p=i[f],d=p[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(f===i.length-2&&"Z"===i[f+1][0]&&s&&s.d){if("Z"===i[f+1][0]){g=t.getEndTangent();h=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(f===i.length-1&&s&&s.d&&"Z"!==i[0]){g=t.getEndTangent();h=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var y=h.dx,v=h.dy;switch(d){case"M":e.moveTo(p[1]-y,p[2]-v),c=[p[1],p[2]];break;case"L":e.lineTo(p[1]-y,p[2]-v);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-y,p[4]-v);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-y,p[6]-v);break;case"A":var m=void 0;r?(m=r[f])||(m=(0,o.default)(l,p),r[f]=m):m=(0,o.default)(l,p);var _=m.cx,x=m.cy,b=m.rx,M=m.ry,C=m.startAngle,P=m.endAngle,S=m.xRotation,O=m.sweepFlag;if(e.ellipse)e.ellipse(_,x,b,M,S,C,P,1-O);else{var w=b>M?b:M,A=b>M?1:b/M,T=b>M?M/b:1;e.translate(_,x),e.rotate(S),e.scale(A,T),e.arc(0,0,w,C,P,1-O),e.scale(1/A,1/T),e.rotate(-S),e.translate(-_,-x)}break;case"Z":e.closePath()}if("Z"===d)l=c;else{var E=p.length;l=[p[E-2],p[E-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=p,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return(0,i.each)(t,(function(t){var i=p(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:(0,i.min)(e),minY:(0,i.min)(n),maxX:(0,i.max)(r),maxY:(0,i.max)(a)}},e.mergeView=function(t,e){return t&&e&&(0,s.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(28);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){(0,r.createDom)(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectWithCornerRadius=e.getFunnelPath=e.getIntervalRectPath=e.getBackgroundRectPath=e.parseRadius=e.getRectPath=e.getRectPoints=void 0;var r=n(1),i=n(12);function a(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,a=t.length;i<a;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function o(t,e){var n=0,i=0,a=0,o=0;return(0,r.isArray)(t)?1===t.length?n=i=a=o=t[0]:2===t.length?(n=a=t[0],i=o=t[1]):3===t.length?(n=t[0],i=o=t[1],a=t[2]):(n=t[0],i=t[1],a=t[2],o=t[3]):n=i=a=o=t,n+i>e&&(i=e-(n=n?e/(1+i/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,i||0,a||0,o||0]}e.getRectPoints=function(t){var e,n,i,a,o=t.x,s=t.y,u=t.y0,l=t.size;(0,r.isArray)(s)?(e=s[0],n=s[1]):(e=u,n=s),(0,r.isArray)(o)?(i=o[0],a=o[1]):(i=o-l/2,a=o+l/2);var c=[{x:i,y:e},{x:i,y:n}];return c.push({x:a,y:n},{x:a,y:e}),c},e.getRectPath=a,e.parseRadius=o,e.getBackgroundRectPath=function(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},u=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},l=(0,r.get)(t,["background","style","radius"]);if(l){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),f=o(l,Math.min(c,h)),p=f[0],d=f[1],g=f[2],y=f[3];a.push(["M",s.x,u.y+p]),0!==p&&a.push(["A",p,p,0,0,1,s.x+p,u.y]),a.push(["L",u.x-d,u.y]),0!==d&&a.push(["A",d,d,0,0,1,u.x,u.y+d]),a.push(["L",u.x,s.y-g]),0!==g&&a.push(["A",g,g,0,0,1,u.x-g,s.y]),a.push(["L",s.x+y,s.y]),0!==y&&a.push(["A",y,y,0,0,1,s.x,s.y-y])}else a.push(["M",s.x,s.y]),a.push(["L",u.x,s.y]),a.push(["L",u.x,u.y]),a.push(["L",s.x,u.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var v=n.getCenter(),m=(0,i.getAngle)(t,n),_=m.startAngle,x=m.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};p=Math.sqrt(b(v.x-e[0].x)+b(v.y-e[0].y)),d=Math.sqrt(b(v.x-e[2].x)+b(v.y-e[2].y));a=(0,i.getSectorPath)(v.x,v.y,p,n.startAngle,n.endAngle,d)}else a=(0,i.getSectorPath)(v.x,v.y,n.getRadius(),_,x)}return a},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,s=[],u=(t[2].x-t[1].x)/2,l=n.isTransposed?u*i/r:u*r/i;return"round"===e?(o?(s.push(["M",t[0].x,t[0].y+l]),s.push(["L",t[1].x,t[1].y-l]),s.push(["A",u,u,0,0,1,t[2].x,t[2].y-l]),s.push(["L",t[3].x,t[3].y+l]),s.push(["A",u,u,0,0,1,t[0].x,t[0].y+l])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",u,u,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",u,u,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=a(t),s},e.getFunnelPath=function(t,e,n){var i=[];return(0,r.isNil)(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i},e.getRectWithCornerRadius=function(t,e,n){var r,i,a,s,u=t[0],l=t[1],c=t[2],h=t[3],f=[0,0,0,0],p=f[0],d=f[1],g=f[2],y=f[3];u.y<l.y?(l=t[0],u=t[1],h=t[2],c=t[3],y=(r=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],g=r[1],d=r[2],p=r[3]):(p=(i=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],d=i[1],g=i[2],y=i[3]),e.isTransposed&&(u=t[0],h=t[1],c=t[2],l=t[3],t[0].x>t[1].x?(h=t[0],u=t[1],l=t[2],c=t[3],p=(a=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],y=a[1],g=a[2],d=a[3]):(d=(s=o(n,Math.min(h.x-u.x,u.y-l.y)))[0],g=s[1],y=s[2],p=s[3]));var v=[];return v.push(["M",l.x,l.y+p]),0!==p&&v.push(["A",p,p,0,0,1,l.x+p,l.y]),v.push(["L",c.x-d,c.y]),0!==d&&v.push(["A",d,d,0,0,1,c.x,c.y+d]),v.push(["L",h.x,h.y-g]),0!==g&&v.push(["A",g,g,0,0,1,h.x-g,h.y]),v.push(["L",u.x+y,u.y]),0!==y&&v.push(["A",y,y,0,0,1,u.x,u.y-y]),v.push(["L",l.x,l.y+p]),v.push(["z"]),v}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(10)),o=n(4),s=n(4),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return(0,r.__extends)(e,t),e.prototype.getTriggerListInfo=function(){var t=(0,s.getDelegationObject)(this.context),e=null;return(0,s.isList)(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=(0,o.getComponents)(e),r=[];return(0,i.each)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,i.each)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=(0,s.getScaleByField)(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,a=(0,s.getScaleByField)(i,r),o=(0,s.getElementValue)(e,r),u=a.getText(o);this.setItemsState(t,u,n)},e.prototype.setStateEnable=function(t){var e=this,n=(0,s.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();(0,i.each)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var a=(0,s.getDelegationObject)(this.context);if((0,s.isList)(a)){var o=a.item,u=a.component;this.allowSetStateByElement(u)&&this.allowSetStateByItem(o,u)&&this.setItemState(u,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,a=t.getItems();(0,i.each)(a,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=u},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=r(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(33),a=(0,r.__importStar)(n(168));e.default={box:function(t,e,n,r){return(0,i.getBBoxByArray)([t,n],[e,r])},length:function(t,e,n,r){return(0,i.distance)(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,a,o){var s=(n-t)*(a-t)+(r-e)*(o-e);return s<0?(0,i.distance)(t,e,a,o):s>(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var u=[-s[1],s[0]];a.normalize(u,u);var l=[i-t,o-e];return Math.abs(a.dot(l,u))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+f(t[0])+f(t[1])+f(t[2])}var c,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},f=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=l(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:h,gradient:function(t){var e=(0,r.isString)(t)?t.split("-"):t,n=(0,r.map)(e,(function(t){return h(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return l([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])}(n,t)}},toRGB:(0,r.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(u=a.exec(t))[1]+90;n=u[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",n=(u=o.exec(t))[4]}var l=n.match(s);return(0,r.each)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickInterval=e.YEAR=e.MONTH=e.DAY=e.HOUR=e.MINUTE=e.SECOND=e.toTimeStamp=e.timeFormat=void 0;var r=n(0),i=n(1),a=(0,r.__importDefault)(n(198)),o=(0,r.__importStar)(n(198)),s=(0,r.__importDefault)(n(413));e.timeFormat=function(t,e){return(o.format||a.default.format)(t,e)},e.toTimeStamp=function(t){return(0,i.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,i.isDate)(t)&&(t=t.getTime()),t};e.SECOND=1e3;e.MINUTE=6e4;var u=36e5;e.HOUR=u;var l=24*u;e.DAY=l;var c=31*l;e.MONTH=c;e.YEAR=31536e6;var h=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",u],["HH",6*u],["HH",12*u],["YYYY-MM-DD",l],["YYYY-MM-DD",4*l],["YYYY-WW",7*l],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*l]];e.getTickInterval=function(t,e,n){var r=(e-t)/n,a=(0,s.default)((function(t){return t[1]}))(h,r)-1,o=h[a];return a<0?o=h[0]:a>=h.length&&(o=(0,i.last)(h)),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,a.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}((0,r.__importDefault)(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var r=n(1);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i},e.precisionAdd=function(t,e){var n=i(t),r=i(e),a=Math.pow(10,Math.max(n,r));return(t*a+e*a)/a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(7),a=n(1),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=(0,r.__spreadArray)([],a),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,a.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,r.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=void 0;var r=n(0),i=n(1),a=n(61),o=n(34),s=n(9);e.renderTag=function(t,e){var n=e.x,u=e.y,l=e.content,c=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,_=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:u}}),x=_.addShape({type:"text",id:h,name:f,attrs:(0,r.__assign)({x:0,y:0,text:l},c)}),b=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(d&&g){var M=d-(b[1]+b[3]);(0,a.ellipsisLabel)(!y,x,M,v)}if(m){var C=(0,i.get)(m,"style",{}),P=x.getCanvasBBox(),S=P.minX,O=P.minY,w=P.width,A=P.height;_.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:(0,r.__assign)({x:S-b[3],y:O-b[0],width:w+b[1]+b[3],height:A+b[0]+b[2]},C)}).toBack()}(0,o.applyTranslate)(_,n,u),(0,o.applyRotate)(_,p,n,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(46),o=n(1),s=n(9),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return(0,s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");(0,s.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,o.isNil)(t)){t=this.createDom();var e=this.get("parent");(0,o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else(0,o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&(0,s.hasClass)(e,n)){var r=t[n];(0,a.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);(0,o.each)(r,(function(t){(0,a.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");(0,a.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,a.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}((0,r.__importDefault)(n(110)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(0),i=n(1),a=n(2),o=n(47);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function u(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,u=r.invert(e),l=o.invert(u.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=(0,i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function c(t){for(var e,n=0,r=function(t){var e=(0,i.values)(t.attributes);return(0,i.filter)(e,(function(t){return(0,i.contains)(a.GROUP_ATTRS,t.type)}))}(t);n<r.length;n++){var o=r[n],s=o.getScale(o.type);if(s&&s.isLinear){e=s;break}}var u=t.getXScale(),l=t.getYScale();return e||l||u}function h(t,e,n){if(0===e.length)return null;var r=n.type,o=n.getXScale(),c=n.getYScale(),h=o.field,f=c.field,p=null;if("heatmap"===r||"point"===r){for(var d=n.coordinate.invert(t),g=o.invert(d.x),y=c.invert(d.y),v=1/0,m=0;m<e.length;m++){var _=e[m],x=_[a.FIELD_ORIGIN],b=Math.pow(x[h]-g,2)+Math.pow(x[f]-y,2);b<v&&(v=b,p=_)}return p}var M=e[0],C=e[e.length-1],P=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,a=i[i.length-1],o=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),S=M[a.FIELD_ORIGIN][h],O=M[a.FIELD_ORIGIN][f],w=C[a.FIELD_ORIGIN][h],A=c.isLinear&&(0,i.isArray)(O);if((0,i.isArray)(S)){for(m=0;m<e.length;m++){x=(B=e[m])[a.FIELD_ORIGIN];if(o.translate(x[h][0])<=P&&o.translate(x[h][1])>=P){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}}(0,i.isArray)(p)&&(p=u(p,t,n))}else{var T=void 0;if(o.isLinear||"timeCat"===o.type){if((P>o.translate(w)||P<o.translate(S))&&(P>o.max||P<o.min))return null;for(var E=0,I=e.length-1,L=void 0;E<=I;){var D=e[L=Math.floor((E+I)/2)][a.FIELD_ORIGIN][h];if(s(D,P,o))return e[L];o.translate(D)<=o.translate(P)?(E=L+1,C=e[L],T=e[L+1]):(0===I&&(C=e[0]),I=L-1)}}else{for(m=0;m<e.length;m++){var B;if(s((x=(B=e[m])[a.FIELD_ORIGIN])[h],P,o)){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}else o.translate(x[h])<=P&&(C=B,T=e[m+1])}(0,i.isArray)(p)&&(p=u(p,t,n))}C&&T&&Math.abs(o.translate(C[a.FIELD_ORIGIN][h])-P)>Math.abs(o.translate(T[a.FIELD_ORIGIN][h])-P)&&(C=T)}var j=l(n.getXScale());return!p&&Math.abs(o.translate(C[a.FIELD_ORIGIN][h])-P)<=j/2&&(p=C),p}function f(t,e,n,s){void 0===n&&(n=""),void 0===s&&(s=!1);var u,l=t[a.FIELD_ORIGIN],h=function(t,e,n){var r=e.getAttribute("position").getFields(),a=e.scales,o=(0,i.isFunction)(n)||!n?r[0]:n,s=a[o],u=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(n)?n(u,t):u}(l,e,n),f=e.tooltipOption,p=e.theme.defaultColor,d=[];function g(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:h,data:l,mappingData:t,name:e,value:n,color:t.color||p,marker:!0};d.push(r)}}if((0,i.isObject)(f)){var y=f.fields,v=f.callback;if(v){var m=y.map((function(e){return t[a.FIELD_ORIGIN][e]})),_=v.apply(void 0,m),x=(0,r.__assign)({data:t[a.FIELD_ORIGIN],mappingData:t,title:h,color:t.color||p,marker:!0},_);d.push(x)}else for(var b=e.scales,M=0,C=y;M<C.length;M++){var P=C[M];if(!(0,i.isNil)(l[P])){var S=b[P];g((0,o.getName)(S),u=S.getText(l[P]))}}}else{var O=c(e);u=function(t,e){var n=t[e.field];return(0,i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(l,O),g(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var a=c(e);return(0,o.getName)(a)}(l,e),u)}return d}function p(t,e,n,r){var a=r.showNil,o=[],s=t.dataArray;if(!(0,i.isEmpty)(s)){t.sort(s);for(var u=0,l=s;u<l.length;u++){var c=h(e,l[u],t);if(c){var p=t.getElementId(c),d=t.elementsMap[p];if("heatmap"===t.type||d.visible){var g=f(c,t,n,a);g.length&&o.push(g)}}}}return o}function d(t,e,n,r){var i=r.showNil,a=[],o=t.container.getShape(e.x,e.y);if(o&&o.get("visible")&&o.get("origin")){var s=f(o.get("origin").mappingData,t,n,i);s.length&&a.push(s)}return a}function g(t,e,n){for(var r=[],i=t.geometries,a=n.shared,o=n.title,s=n.reversed,u=0,l=i;u<l.length;u++){var c=l[u];if(c.visible&&!1!==c.tooltipOption){var h=c.type,f=void 0;(f=["point","edge","polygon"].includes(h)?d(c,e,o,n):["area","line","path","heatmap"].includes(h)||!1!==a?p(c,e,o,n):d(c,e,o,n)).length&&(s&&f.reverse(),r.push(f))}}return r}e.findDataByPoint=h,e.getTooltipItems=f,e.findItemsFromView=g,e.findItemsFromViewRecurisive=function(t,e,n){for(var r=g(t,e,n),i=0,a=t.views;i<a.length;i++){var o=a[i];r=r.concat(g(o,e,n))}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(37),s=n(12),u=(0,r.__importDefault)(n(512));function l(t){var e=0;return(0,i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],a=this.getLabelCfgs(t);return(0,i.each)(t,(function(t,o){var s=a[o];if(!s||(0,i.isNil)(t.x)||(0,i.isNil)(t.y))n.push(null);else{var u=(0,i.isArray)(s.content)?s.content:[s.content];s.content=u;var l=u.length;(0,i.each)(u,(function(a,o){if((0,i.isNil)(a)||""===a)n.push(null);else{var u=(0,r.__assign)((0,r.__assign)({},s),e.getLabelPoint(s,t,o));u.textAlign||(u.textAlign=e.getLabelAlign(u,o,l)),u.offset<=0&&(u.labelLine=null),n.push(u)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes();r.render(n,i,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,a=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?(0,i.get)(a,"innerLabels",{}):(0,i.get)(a,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,a=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?(0,i.deepMix)({},n,a.innerLabels,t):(0,i.deepMix)({},n,a.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?r?l(a):a.length<=2?a[e.length-1]:l(a):a[n]),a}var u={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=(0,i.isArray)(e.shape)?e.shape[0]:e.shape,h="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var f=(0,s.getPolygonCentroid)(e.x,e.y);u.x=f[0],u.y=f[1]}else"interval"!==this.geometry.type||h?(u.x=o(e.x,n),u.y=o(e.y,n)):(u.x=o(e.x,n,!0),u.y=o(e.y,n));if(h){var p=(0,i.get)(e,"nextPoints"),d=(0,i.get)(e,"points");if(p){var g=r.convert(d[1]),y=r.convert(p[1]);u.x=(g.x+y.x)/2,u.y=(g.y+y.y)/2}else if("pyramid"===c){g=r.convert(d[1]),y=r.convert(d[2]);u.x=(g.x+y.x)/2,u.y=(g.y+y.y)/2}}t.position&&this.setLabelPosition(u,e,n,t.position);var v=this.getLabelOffsetPoint(t,n,a);return u.start={x:u.x,y:u.y},u.x+=v.x,u.y+=v.y,u.color=e.color,u},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" "+o[r.field]:"path"===n&&(s+=" "+o[r.field]+"-"+o[i.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new u.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=r,l.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,u=n.coordinate,l=o,c=l.fields,h=l.callback,f=l.cfg,p=c.map((function(t){return s[t]})),d=[];return(0,i.each)(t,(function(t,n){var o,s=t[a.FIELD_ORIGIN],l=e.getLabelText(s,p);if(h){var g=c.map((function(t){return s[t]}));if(o=h.apply(void 0,g),(0,i.isNil)(o))return void d.push(null)}var y=(0,r.__assign)((0,r.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:u},f),o);(0,i.isFunction)(y.position)&&(y.position=y.position(s,t,n));var v=e.getLabelOffset(y.offset||0),m=e.getDefaultLabelCfg(v,y.position);(y=(0,i.deepMix)({},m,y)).offset=e.getLabelOffset(y.offset||0);var _=y.content;(0,i.isFunction)(_)?y.content=_(s,t,n):(0,i.isUndefined)(_)&&(y.content=l[0]),d.push(y)})),d},t.prototype.getLabelText=function(t,e){var n=[];return(0,i.each)(e,(function(e){var r=t[e.field];r=(0,i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),(0,i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(0),a=n(63),o=Math.sin,s=Math.cos,u=Math.atan2,l=Math.PI;function c(t,e,n,r,i,c,h){var f=e.stroke,p=e.lineWidth,d=u(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(l/6)+","+10*o(l/6)+" L0,0 L"+10*s(l/6)+",-"+10*o(l/6),stroke:f,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(h?"startArrowShape":"endArrowShape",g)}function h(t,e,n,r,l,c,h){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=h?f:p,v=y.d,m=y.fill,_=y.stroke,x=y.lineWidth,b=(0,i.__rest)(y,["d","fill","stroke","lineWidth"]),M=u(r-c,n-l);v&&(l-=s(M)*v,c-=o(M)*v);var C=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,i.__assign)((0,i.__assign)({},b),{stroke:_||d,lineWidth:x||g,fill:m})});C.translate(l,c),C.rotateAtPoint(l,c,M),t.set(h?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,r,i){var a=u(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===r(e.startArrow)?h(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===r(e.endArrow)?h(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11);e.default=function(t,e,n,i,a,o,s){var u=Math.min(t,n),l=Math.max(t,n),c=Math.min(e,i),h=Math.max(e,i),f=a/2;return o>=u-f&&o<=l+f&&s>=c-f&&s<=h+f&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Dom=e.Circle=e.Base=void 0;var i=n(21);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(532);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(533);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return r(o).default}});var s=n(534);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(s).default}});var u=n(535);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(u).default}});var l=n(536);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(l).default}});var c=n(537);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(c).default}});var h=n(539);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(h).default}});var f=n(540);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(f).default}});var p=n(541);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(p).default}});var d=n(542);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(d).default}});var g=n(544);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(g).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(1),i=n(54),a=n(5),o=n(51);function s(t,e,n,i,a){var s=[];if(t.length){for(var u=[],l=[],c=0,h=t.length;c<h;c++){var f=t[c];u.push(f[1]),l.push(f[0])}l=l.reverse(),(0,r.each)([u,l],(function(t,r){var c=[],h=i.parsePoints(t),f=h[0];1===u.length&&1===l.length?c=0===r?[["M",f.x-.5,f.y],["L",f.x+.5,f.y]]:[["L",f.x+.5,f.y],["L",f.x-.5,f.y]]:(e&&h.push({x:f.x,y:f.y}),c=n?(0,o.getSplinePath)(h,!1,a):(0,o.getLinePath)(h,!1),r>0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,o){for(var u=(0,a.getStyle)(t,e,!e,"lineWidth"),l=t.connectNulls,c=t.isInCircle,h=t.points,f=t.showSinglePoint,p=(0,i.getPathPoints)(h,l,f),d=[],g=0,y=p.length;g<y;g++){var v=p[g];d=d.concat(s(v,c,n,r,o))}return u.path=d,u},e.getConstraint=function(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t,e){return!!(0,r.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"object"===r(t)&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(44)),a=(0,r.__importDefault)(n(18)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return(0,r.__extends)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}((0,r.__importDefault)(n(89)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],a=this._events["*"]||[],o=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],s=o.callback;o.once&&(r.splice(a,1),0===r.length&&delete e._events[t],i--,a--),s.apply(e,n)}};o(i),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var r=n(1),i=n(38);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,r.lowerCase)(t)]};e.registerFacet=function(t,e){a[(0,r.lowerCase)(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(1),i=n(2),a=n(47),o=n(7);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function u(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function l(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=u,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=u(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=l,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return l(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(i,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],u=[1,0],l=a.y>r.y?o.vec2.angle(s,u):-1*o.vec2.angle(s,u),c=l+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:l,endAngle:c}},e.getAxisOption=function(t,e){return(0,r.isBoolean)(t)?!1!==t&&{}:(0,r.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,r.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,r.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeVersion=e.detectOS=e.parseUserAgent=e.browserName=e.detect=e.ReactNativeInfo=e.BotInfo=e.SearchBotDeviceInfo=e.NodeInfo=e.BrowserInfo=void 0;var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},r=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"};e.BrowserInfo=r;var i=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform};e.NodeInfo=i;var a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"};e.SearchBotDeviceInfo=a;var o=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null};e.BotInfo=o;var s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null};e.ReactNativeInfo=s;var u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(t){return""!==t&&l.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1)}function f(t){var e=h(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new o;var l=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);l?l.length<3&&(l=n(n([],l,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-l.length),!0)):l=[];var c=l.join("."),f=p(t),d=u.exec(t);return d&&d[1]?new a(i,c,f,d[1]):new r(i,c,f)}function p(t){for(var e=0,n=c.length;e<n;e++){var r=c[e],i=r[0];if(r[1].exec(t))return i}return null}function d(){return void 0!==t&&t.version?new i(t.version.slice(1)):null}e.detect=function(t){return t?f(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?f(navigator.userAgent):d()},e.browserName=function(t){var e=h(t);return e?e[0]:null},e.parseUserAgent=f,e.detectOS=p,e.getNodeVersion=d}).call(this,n(336))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotateZ=e.rotateY=e.rotateX=e.transformQuat=e.transformMat3=e.transformMat4=e.random=e.bezier=e.hermite=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.length=e.clone=e.create=void 0;var r,i=(0,n(0).__importStar)(n(29));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function h(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function f(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=function(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=u,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+i[2]*f,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,h=a*s-r*l,f=r*u-i*s,p=i*f-a*h,d=a*c-r*f,g=r*h-i*c,y=2*o;return c*=y,h*=y,f*=y,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=u+h+d,t[2]=l+f+g,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),l=u&&p(t,e)/u;return Math.acos(Math.min(Math.max(l,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},e.sub=s,e.mul=u,e.div=l,e.dist=c,e.sqrDist=h,e.len=o,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,u;for(e||(e=3),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return n[0]=f*r+p*o+d*l,n[1]=f*i+p*s+d*c,n[2]=f*a+p*u+d*h,n[3]=g*r+y*o+v*l,n[4]=g*i+y*s+v*c,n[5]=g*a+y*u+v*h,n[6]=m*r+_*o+x*l,n[7]=m*i+_*s+x*c,n[8]=m*a+_*u+x*h,n},e.multiplyVec2=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.invert=function(t){var e=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-c*r+i*l)*d,e[2]=(s*r-i*o)*d,e[3]=f*d,e[4]=(c*n-i*u)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-l*n+r*u)*d,e[8]=(o*n-r*a)*d,e):null}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.timerFlush=e.timer=e.Timer=e.now=void 0;var i,a,o=0,s=0,u=0,l=0,c=0,h=0,f="object"===("undefined"==typeof performance?"undefined":r(performance))&&performance.now?performance:Date,p="object"===("undefined"==typeof window?"undefined":r(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return c||(p(g),c=f.now()+h)}function g(){c=0}function y(){this._call=this._time=this._next=null}function v(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){d(),++o;for(var t,e=i;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(l=f.now())+h,o=s=0;try{m()}finally{o=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,b(r)}(),c=0}}function x(){var t=f.now(),e=t-l;e>1e3&&(h-=e,l=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-f.now()-h)),u&&(u=clearInterval(u))):(u||(l=f.now(),u=setInterval(x,1e3)),o=1,p(_)))}e.now=d,e.Timer=y,y.prototype=v.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=v,e.timerFlush=m},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(48),o=(0,i.__importDefault)(n(174)),s=n(177),u=(0,i.__importDefault)(n(178)),l=(0,i.__importDefault)(n(69)),c=(0,i.__importDefault)(n(179)),h=(0,i.__importDefault)(n(180)),f=(0,i.__importDefault)(n(176)),p=(0,i.__importStar)(n(100));e.default=function(t,e){var n,i=r(e);return null==e||"boolean"===i?(0,f.default)(e):("number"===i?l.default:"string"===i?(n=(0,a.color)(e))?(e=n,o.default):h.default:e instanceof a.color?o.default:e instanceof Date?u.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:l.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hsl=e.hslConvert=e.Rgb=e.rgb=e.rgbConvert=e.brighter=e.darker=e.Color=void 0;var r=(0,n(0).__importStar)(n(98));function i(){}e.Color=i,e.darker=.7,e.brighter=1/e.darker;var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),c=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),h=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,o]+"\\)$"),p=new RegExp("^hsl\\("+[o,s,s]+"\\)$"),d=new RegExp("^hsla\\("+[o,s,s,o]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new C(e[1],e[2],e[3],1):(e=c.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?w(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?w(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function _(t){return new C(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function b(t){return t instanceof i||(t=m(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function M(t,e,n,r){return 1===arguments.length?b(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function w(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function A(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-a,l=(o+a)/2;return u?(s=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=l<.5?o+a:2-o-a,s*=60):u=l>0&&l<1?0:s,new E(s,u,l,t.opacity)}function T(t,e,n,r){return 1===arguments.length?A(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function I(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=C,(0,r.default)(C,M,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:S,toString:S})),e.hslConvert=A,e.hsl=T,(0,r.default)(E,T,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=r,e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNumberArray=void 0,e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}},e.isNumberArray=function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=r,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=void 0;var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}e.isSamePoint=s,e.default=function(t,e){var n=e[1],i=e[2],u=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),l=e[4],c=e[5],h=t[0],f=t[1],p=e[6],d=e[7],g=Math.cos(u)*(h-p)/2+Math.sin(u)*(f-d)/2,y=-1*Math.sin(u)*(h-p)/2+Math.cos(u)*(f-d)/2,v=g*g/(n*n)+y*y/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(y*y)+i*i*(g*g),_=m?Math.sqrt((n*n*(i*i)-m)/m):1;l===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*n*y/i:0,b=n?_*-i*g/n:0,M=(h+p)/2+Math.cos(u)*x-Math.sin(u)*b,C=(f+d)/2+Math.sin(u)*x+Math.cos(u)*b,P=[(g-x)/n,(y-b)/i],S=[(-1*g-x)/n,(-1*y-b)/i],O=o([1,0],P),w=o(P,S);return a(P,S)<=-1&&(w=Math.PI),a(P,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:C,rx:s(t,[p,d])?0:n,ry:s(t,[p,d])?0:i,startAngle:O,endAngle:O+w,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GAP=e.DODGE_RATIO=e.MARGIN_RATIO=e.DEFAULT_Y=void 0,e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=e.Shape=e.Position=e.Opacity=e.Color=e.Attribute=e.getAttribute=e.registerAttribute=void 0;var r=n(20),i=(0,r.__importDefault)(n(41));e.Attribute=i.default;var a=(0,r.__importDefault)(n(406));e.Color=a.default;var o=(0,r.__importDefault)(n(407));e.Opacity=o.default;var s=(0,r.__importDefault)(n(408));e.Position=s.default;var u=(0,r.__importDefault)(n(409));e.Shape=u.default;var l=(0,r.__importDefault)(n(410));e.Size=l.default;var c=n(411);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return c.getAttribute}}),Object.defineProperty(e,"registerAttribute",{enumerable:!0,get:function(){return c.registerAttribute}}),(0,c.registerAttribute)("Color",a.default),(0,c.registerAttribute)("Opacity",o.default),(0,c.registerAttribute)("Position",s.default),(0,c.registerAttribute)("Shape",u.default),(0,c.registerAttribute)("Size",l.default),(0,r.__exportStar)(n(195),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=e.registerScale=e.getScale=e.Scale=e.Quantize=e.Quantile=e.TimeCat=e.Time=e.Pow=e.Log=e.Linear=e.Identity=e.Category=void 0;var r=n(0),i=(0,r.__importDefault)(n(59));e.Scale=i.default;var a=(0,r.__importDefault)(n(197));e.Category=a.default;var o=(0,r.__importDefault)(n(412));e.TimeCat=o.default;var s=(0,r.__importDefault)(n(199));e.Linear=s.default;var u=(0,r.__importDefault)(n(414));e.Log=u.default;var l=(0,r.__importDefault)(n(415));e.Pow=l.default;var c=(0,r.__importDefault)(n(416));e.Time=c.default;var h=(0,r.__importDefault)(n(200));e.Quantize=h.default;var f=(0,r.__importDefault)(n(417));e.Quantile=f.default;var p=n(418);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=(0,r.__importDefault)(n(419));e.Identity=d.default;var g=n(420);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}}),(0,p.registerScale)("cat",a.default),(0,p.registerScale)("category",a.default),(0,p.registerScale)("identity",d.default),(0,p.registerScale)("linear",s.default),(0,p.registerScale)("log",u.default),(0,p.registerScale)("pow",l.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",h.default),(0,p.registerScale)("quantile",f.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,n){var a=i(t,n,"floor"),o=i(e,n,"ceil");a=(0,r.fixedBase)(a,n),o=(0,r.fixedBase)(o,n);for(var s=[],u=a;u<=o;u+=n){var l=(0,r.fixedBase)(u,n);s.push(l)}return{min:a,max:o,ticks:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,h=(0,r.isNil)(a)?(0,r.isNil)(e)?s:e:a,f=(0,r.isNil)(o)?(0,r.isNil)(n)?u:n:o;if(h>f&&(f=(i=[h,f])[0],h=i[1]),c<=2)return[h,f];for(var p=(f-h)/(c-1),d=[],g=0;g<c;g++)d.push(h+p*g);return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return n[0]=f*r+p*o+d*l,n[1]=f*i+p*s+d*c,n[2]=f*a+p*u+d*h,n[3]=g*r+y*o+v*l,n[4]=g*i+y*s+v*c,n[5]=g*a+y*u+v*h,n[6]=m*r+_*o+x*l,n[7]=m*i+_*s+x*c,n[8]=m*a+_*u+x*h,n},e.multiplyVec2=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.invert=function(t){var e=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-c*r+i*l)*d,e[2]=(s*r-i*o)*d,e[3]=f*d,e[4]=(c*n-i*u)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-l*n+r*u)*d,e[8]=(o*n-r*a)*d,e):null}},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=r,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(205),a=n(1),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");(0,a.each)(t,(function(t,r){var i=t;e.get(r)!==t&&((0,a.isObject)(t)&&n[r]&&(i=(0,a.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,a.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,a.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=(0,r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=o[n];return(0,a.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");(0,a.each)(e,(function(e,n){var r=t.get(n);if((0,a.isObject)(r)){var i=(0,a.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(7),o=n(1),s=(0,r.__importDefault)(n(8)),u=n(34),l=n(213),c=(0,r.__importDefault)(n(19)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:c.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:c.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:c.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:c.default.textColor,fontFamily:c.default.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:c.default.textColor,textBaseline:"middle",fontFamily:c.default.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:c.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){(0,o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return(0,o.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,o.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,o.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return(0,o.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a<i-1;a++)for(var o=t[a],s=t[a+1],u=0;u<r;u++){var l=(u+1)/(r+1),c=(1-l)*o.tickValue+l*s.tickValue,h=this.getTickPoint(c),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:c,id:"sub-"+o.id+"-"+u})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},u=(0,o.get)(this.get("theme"),["tickLine","style"],{});a=(0,o.isFunction)(a)?(0,o.mix)({},u,a(s,n,r)):a;var l=t.startPoint,c=t.endPoint;return(0,i.__assign)({x1:l.x,y1:l.y,x2:c.x,y2:c.y},a)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),s=this.get("tickLine");if((0,o.each)(i,(function(n,r){if(s.displayWithLabel){var o=e.getElementId("label-"+n.tickId);t.findById(o)&&e.drawTick(n,a,"tickLine",r,i)}else e.drawTick(n,a,"tickLine",r,i)})),r){var u=this.getSubTickLineItems(i);(0,o.each)(u,(function(t,n){e.drawTick(t,a,"subTickLine",n,u)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");(0,o.each)(e,(function(e){e.point=t.getTickPoint(e.value),(0,o.isNil)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");(0,o.each)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=(0,o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.rotate,s=r.formatter,l=this.getSidePoint(t.point,i),c=this.getSideVector(i,l),h=s?s(t.name,t,e):t.name,f=r.style;f=(0,o.isFunction)(f)?(0,o.get)(this.get("theme"),["label","style"],{}):f;var p=(0,o.mix)({x:l.x,y:l.y,text:h,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return a&&(p.matrix=(0,u.getMatrixByAngle)(l,a)),p},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),u=s.style,l=s.formatter;if((0,o.isFunction)(u)){var c=i.map((function(t){return(0,o.get)(t.get("delegateObject"),"tick")}));(0,o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=l?l(n.name,n,e):n.name,i=(0,o.mix)({},a,u(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,l=t.autoRotate,c=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var f=this.getTickPoint(h),p=this.getSidePoint(f,r||s+c/2),d=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if((0,o.isNil)(g)&&l){var v=this.getAxisVector(f);y=a.ext.angleTo(v,[1,0],!0)}if(y){var m=(0,u.getMatrixByAngle)(p,y);d.matrix=m}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=(0,l.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var u=(0,l.getStatesStyle)(t,"tickLine",n);u&&s.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=(0,l.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var u=(0,l.getStatesStyle)(t,"tickLine",n);u&&o.attr(u)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=n(34),u=(0,r.__importDefault)(n(19)),l=n(9),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:u.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:u.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:u.default.fontFamily}},textBackground:{padding:5,style:{stroke:u.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var u=this.getTextPoint(),l=null;if(r){var c=this.getRotateAngle();l=(0,s.getMatrixByAngle)(u,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},u),{text:o,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=(0,l.formatPadding)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,i.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=(0,r.__importDefault)(n(19)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(r,(function(s,u){var l=s.id||u;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,u,r):c;var h=e.getElementId("line-"+l),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:(0,a.mix)({path:f},c)})}if(i&&u>0){var p=e.getElementId("region-"+l),d=u%2==0;if((0,a.isString)(i))d&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=d?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8)),o=n(9),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),(0,o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,i.__assign)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=(0,o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_Y=e.CROSSHAIR_X=e.NAME_CLASS=e.VALUE_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.TITLE_CLASS=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(0),i=n(1),a=(0,r.__importDefault)(n(500)),o={};function s(t){return o[(0,i.lowerCase)(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[(0,i.lowerCase)(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if((0,i.isPlainObject)(r)){var o=(0,i.mix)((0,i.clone)(r),n);return new a.default(e,o)}return new r(e,n)};var u=n(216);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var l=n(117);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return l.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return l.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return l.getActionClass}})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var i=n(10);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r(i).default}});var a=n(215);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return a.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return a.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return a.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(0),i=n(1);e.isAutoPadding=function(t){return!(0,i.isNumber)(t)&&!(0,i.isArray)(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=(0,i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=(0,r.__spreadArray)((0,r.__spreadArray)([],e,!0),e,!0);break;case 3:e=(0,r.__spreadArray)((0,r.__spreadArray)([],e,!0),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(60),o=n(37),s=(0,r.__importDefault)(n(88)),u=n(12),l=n(2),c=n(121),h=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.visible,s=void 0===o||o;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=s,n}return(0,r.__extends)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?(0,o.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:(0,r.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,s=n.shape,u=n.shapeType,l=r.indexOf(t);if(e){if(l>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===l)return;r.splice(l,1),"active"!==t&&"selected"!==t||null==s||s.toBack()}var c=i.drawShape(u,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,c,r,null):this.syncShapeStyle(s,c,["reset"],null),c.remove(!0);var h={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",h),(0,a.propagationDelegate)(this.shape,"statechange",h)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=(0,i.deepMix)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,i.get)(n,[t,"style"],{}),a=r[e]||r;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?(0,r.__assign)((0,r.__assign)({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var a=this.shapeFactory,s=this.container,u=this.shapeType;if(this.shape=a.drawShape(u,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",f=this.getAnimateCfg(h);f&&(null===(n=this.geometry)||void 0===n||n.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,f,{coordinate:a.coordinate,toAttrs:(0,r.__assign)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,h=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var f=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(f,p,n,r),t.isGroup())for(var d=t.get("children"),g=e.get("children"),y=0;y<d.length;y++)this.syncShapeStyle(d[y],g[y],n,r,a+y);else{if(!(0,i.isEmpty)(n)&&!(0,i.isEqual)(n,["reset"])){var v=t.get("name");(0,i.isArray)(v)&&(v=v[1]),(0,i.each)(n,(function(t){if(e.get("name")!==c.BACKGROUND_SHAPE){var n=h.getStateStyle(t,v||a);e.attr(n)}}))}var m=(0,u.getReplaceAttrs)(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:m,shapeModel:this.model})):(0,i.isEmpty)(n)?(t.stopAnimate(),t.animate(m,{duration:300})):t.attr(m):t.attr(m)}}},e.prototype.getShapeType=function(t){var e=(0,i.get)(t,"shape");return(0,i.isArray)(e)?e[0]:e},e}(s.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BACKGROUND_SHAPE=void 0,e.BACKGROUND_SHAPE="element-background"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometryLabelLayout=e.getGeometryLabelLayout=e.registerGeometryLabel=e.getGeometryLabel=void 0;var r={},i={};e.getGeometryLabel=function(t){return r[t.toLowerCase()]},e.registerGeometryLabel=function(t,e){r[t.toLowerCase()]=e},e.getGeometryLabelLayout=function(t){return i[t.toLowerCase()]},e.registerGeometryLabelLayout=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=(0,r.__importStar)(n(63)),s=n(64),u=n(1),l=n(15),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,u.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=(0,u.min)(e),a=(0,u.max)(e),o=(0,u.min)(n),s=(0,u.max)(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:s,width:a-i,height:s-o};var c=this.cfg.canvas;if(c){var h=c.getViewRange();this.set("isInView",(0,l.intersectRect)(r,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,this.getClip()),(0,s.drawChildren)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(a.AbstractGroup);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(65),i=n(28);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],u=t.get("el");if("remove"===e)if(t.get("isClipShape")){var l=u&&u.parentNode,c=l&&l.parentNode;l&&c&&c.removeChild(l)}else u&&u.parentNode&&u.parentNode.removeChild(u);else if("show"===e)u.setAttribute("visibility","visible");else if("hide"===e)u.setAttribute("visibility","hidden");else if("zIndex"===e)(0,i.moveTo)(u,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&(0,i.sortDom)(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?u&&(u.innerHTML=""):"matrix"===e?(0,r.setTransform)(t):"clip"===e?(0,r.setClip)(t,a):"attr"===e||"add"===e&&t.draw(a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=n(1),s=(0,r.__importStar)(n(82)),u=n(124),l=n(65),c=n(16),h=n(28),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=(0,h.createSVGElement)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){(0,u.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),(0,l.setClip)(this,t),this.createPath(t),e.length&&(0,u.drawChildren)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(t,e){c.SVG_ATTR_MAP[e]&&r.setAttribute(c.SVG_ATTR_MAP[e],t)})),(0,l.setTransform)(this)},e}(a.AbstractGroup);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=(0,r.__importDefault)(n(35)),o=(0,r.__importDefault)(n(120));n(235);var s=n(224),u=n(225),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,a=e.showSinglePoint,o=void 0===a||a;return n.connectNulls=i,n.showSinglePoint=o,n}return(0,r.__extends)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=new Map,r=new Map,i=[],a=0,l=0;l<t.length;l++){var c=t[l],h=this.getElementId(c);i.push(h),n.set(h,c),r.set(h,a),a++}this.elements=new Array(a);for(var f=(0,u.diff)(this.lastElementsMap,i),p=f.added,d=f.updated,g=f.removed,y=0,v=p;y<v.length;y++){h=v[y],c=n.get(h);var m=this.getShapeFactory(),_=this.getShapeInfo(c);l=r.get(h);(M=new o.default({shapeFactory:m,container:this.container,offscreenGroup:this.getOffscreenGroup()})).geometry=this,M.animate=this.animateOption,M.draw(_,e),this.elementsMap[h]=M,this.elements[l]=M}for(var x=0,b=d;x<b.length;x++){h=b[x],c=n.get(h);var M=this.lastElementsMap[h],C=(l=r.get(h),_=this.getShapeInfo(c),M.getModel());(this.isCoordinateChanged||(0,s.isModelChange)(C,_))&&(M.animate=this.animateOption,M.update(_)),this.elementsMap[h]=M,this.elements[l]=M}for(var P=0,S=g;P<S.length;P++){h=S[P];(M=this.lastElementsMap[h]).animate=this.animateOption,M.destroy()}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitPoints=void 0;var r=n(1);e.splitPoints=function(t){var e=t.x;return((0,r.isArray)(t.y)?t.y:[t.y]).map((function(t,n){return{x:(0,r.isArray)(e)?e[n]:e,y:t}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultSize=void 0;var r=n(1),i=n(14);e.getDefaultSize=function(t){var e=t.theme,n=t.coordinate,a=t.getXScale(),o=a.values,s=t.beforeMappingData,u=o.length,l=(0,i.getXDimensionLength)(t.coordinate),c=t.intervalPadding,h=t.dodgePadding,f=t.maxColumnWidth||e.maxColumnWidth,p=t.minColumnWidth||e.minColumnWidth,d=t.columnWidthRatio||e.columnWidthRatio,g=t.multiplePieWidthRatio||e.multiplePieWidthRatio,y=t.roseWidthRatio||e.roseWidthRatio;if(a.isLinear&&o.length>1){o.sort();var v=function(t,e){var n=t.length,i=t;(0,r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var a=i[1]-i[0],o=2;o<n;o++){var s=i[o]-i[o-1];a>s&&(a=s)}return a}(o,a);u=(a.max-a.min)/v,o.length>u&&(u=o.length)}var m=a.range,_=1/u,x=1;if(n.isPolar?x=n.isTransposed&&u>1?g:y:(a.isLinear&&(_*=m[1]-m[0]),x=d),!(0,r.isNil)(c)&&c>=0?_=(1-(u-1)*(c/l))/u:_*=x,t.getAdjust("dodge")){var b=function(t,e){if(e){var n=(0,r.flatten)(t);return(0,r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!(0,r.isNil)(h)&&h>=0)_=(_-h/l*(b-1))/b;else!(0,r.isNil)(c)&&c>=0?(_*=x,_/=b):_/=b;_=_>=0?_:0}if(!(0,r.isNil)(f)&&f>=0){var M=f/l;_>M&&(_=M)}if(!(0,r.isNil)(p)&&p>=0){var C=p/l;_<C&&(_=C)}return _}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawPoints=e.HOLLOW_SHAPES=e.SHAPES=void 0;var r=n(0),i=n(62),a=n(5);e.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],e.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],e.drawPoints=function(t,e,n,o,s){var u=(0,a.getStyle)(e,s,!s,"r"),l=t.parsePoints(e.points),c=l[0];if(e.isStack)c=l[1];else if(l.length>1){for(var h=n.addGroup(),f=0,p=l;f<p.length;f++){var d=p[f];h.addShape({type:"marker",attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},u),{symbol:i.MarkerSymbols[o]||o}),d)})}return h}return n.addShape({type:"marker",attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},u),{symbol:i.MarkerSymbols[o]||o}),c)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var r=n(2);function i(t){return t===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:t===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:t}function a(t){return t===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:t===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:t}e.directionToPosition=function(t,e,n){return n===r.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=i(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],r=e.matrix[4],o=t;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}(n=function(t,e){if(e.isTransposed)switch(t){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4);function o(t){return(0,i.get)(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return(0,r.__extends)(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=(0,a.getElements)(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,o=(0,a.getScaleByField)(r,e),s=(0,a.getElementValue)(t,e);return!(0,i.isNil)(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,r){var a=this;(0,i.each)(t,(function(t){a.isMathItem(t,e,n)&&t.setState(a.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=(0,a.getCurrentElement)(this.context);if(e)(0,a.isElementChange)(this.context)&&this.setStateByElement(e,t);else{var n=(0,a.getDelegationObject)(this.context);if((0,a.isList)(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=(0,a.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}((0,r.__importDefault)(n(132)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(10)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return(0,r.__extends)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=(0,o.getElementsByState)(t,this.stateName);(0,i.each)(n,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return(0,r.__extends)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if((0,a.isMask)(this.context))t=(0,a.getMaskedElements)(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=(0,a.getIntersectElements)(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=(0,a.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,o=(0,a.getSilbings)(r),s=t.map((function(t){return t.getModel().data})),u=r.getXScale().field,l=r.getYScales()[0].field;(0,i.each)(o,(function(t){var r=(0,a.getElements)(t),i=r.filter((function(t){var e=t.getModel().data;return(0,a.isInRecords)(s,e,u,l)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=(0,a.getSilbings)(n);(0,a.isMask)(this.context)&&(0,i.each)(r,(function(n){var r=(0,a.getElements)(n),i=(0,a.getSiblingMaskElements)(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;(0,i.each)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=(0,a.getSilbings)(e);(0,i.each)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}((0,r.__importDefault)(n(132)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.setStateEnable=function(t){var e=(0,i.getCurrentElement)(this.context);if(e){if(!(0,i.isElementChange)(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}((0,r.__importDefault)(n(132)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var r=n(0),i=n(1),a=n(4),o=n(136),s=(0,r.__importDefault)(n(131)),u=n(2);e.STATUS_UNACTIVE=u.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=u.ELEMENT_STATE.ACTIVE;var l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.stateName=e.STATUS_ACTIVE,n}return(0,r.__extends)(n,t),n.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},n.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(e.STATUS_UNACTIVE)&&t.setState(e.STATUS_UNACTIVE,!1),t.setState(e.STATUS_ACTIVE,!0)):t.hasState(e.STATUS_ACTIVE)||t.setState(e.STATUS_UNACTIVE,!0)},n.prototype.setHighlightBy=function(t,n,r){var o=this;if(r)(0,i.each)(t,(function(t){o.setElementHighlight(t,n)}));else{var s=(0,a.getElementsByState)(this.context.view,e.STATUS_ACTIVE),u=!0;(0,i.each)(s,(function(t){if(!n(t))return u=!1,!1})),u?this.clear():(0,i.each)(t,(function(t){n(t)&&(t.hasState(e.STATUS_ACTIVE)&&t.setState(e.STATUS_ACTIVE,!1),t.setState(e.STATUS_UNACTIVE,!0))}))}},n.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,a.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.context.view;(0,o.clearHighlight)(t)},n}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHighlightBy=e.clearHighlight=void 0;var r=n(1),i=n(4);e.clearHighlight=function(t){var e=(0,i.getElements)(t);(0,r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,n){(0,r.each)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return(0,r.__extends)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:"+t,n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,r.__assign)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,a=this.points;(0,i.each)(a,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=(0,i.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}((0,r.__importDefault)(n(10)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];e(a,i)&&n.push(a)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(36)),a=(0,r.__importDefault)(n(140));e.default=function(t,e){var n=(0,a.default)(e),r=n.length;if((0,i.default)(t))return!r;for(var o=0;o<r;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(44)),a=(0,r.__importDefault)(n(18)),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(r)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(6));e.default=function(t){if((0,r.default)(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(6));e.default=function(t){if((0,r.default)(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17)),i=Array.prototype.splice;e.default=function(t,e){if(!(0,r.default)(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(44)),a=(0,r.__importDefault)(n(6)),o=(0,r.__importDefault)(n(57));e.default=function(t,e,n){if(!(0,a.default)(t)&&!(0,o.default)(t))return t;var r=n;return(0,i.default)(t,(function(t,n){r=e(r,t,n)})),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var a=t[r];e.has(a)||(n.push(a),e.set(a,!0))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(18)),o=(0,r.__importDefault)(n(147));e.default=function(t,e){if(!e)return{0:t};if(!(0,a.default)(e)){var n=(0,i.default)(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return(0,o.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(18)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!(0,i.default)(t))return{};for(var n,r={},s=(0,a.default)(e)?e:function(t){return t[e]},u=0;u<t.length;u++){var l=t[u];n=s(l),o.call(r,n)?r[n].push(l):r[n]=[l]}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(18));e.default=function(t,e){if(!(0,r.default)(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return o.set(a,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(85)),a=(0,r.__importDefault)(n(17)),o=(0,r.__importDefault)(n(31));e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if((0,o.default)(e)||(0,o.default)(n))return!1;if((0,a.default)(e)||(0,a.default)(n)){if(e.length!==n.length)return!1;for(var r=!0,s=0;s<e.length&&(r=t(e[s],n[s]));s++);return r}if((0,i.default)(e)||(0,i.default)(n)){var u=Object.keys(e),l=Object.keys(n);if(u.length!==l.length)return!1;for(r=!0,s=0;s<u.length&&(r=t(e[u[s]],n[u[s]]));s++);return r}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=n(0),o=(0,i.__importDefault)(n(86)),s=(0,i.__importDefault)(n(151)),u=(0,i.__importDefault)(n(31));e.default=(0,s.default)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,a=e.fontWeight,o=e.fontStyle,s=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[o,s,a,n+"px",i].join(" "),r.measureText((0,u.default)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,a.__spreadArrays)([t],(0,o.default)(e)).join("")}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEngine=e.getEngine=void 0;var r={};e.getEngine=function(t){var e=r[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e},e.registerEngine=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(58));e.default=function(t,e){var n=(0,r.default)(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(58));e.default=function(t,e){var n=(0,r.default)(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometry=e.View=void 0;var r=n(0),i=n(1),a=n(2),o=(0,r.__importDefault)(n(88)),s=n(90),u=n(116),l=n(217),c=n(30),h=n(14),f=n(26),p=n(78),d=n(118),g=n(47),y=n(218),v=n(220),m=(0,r.__importDefault)(n(505)),_=(0,r.__importDefault)(n(119)),x=(0,r.__importDefault)(n(506)),b=n(507),M=n(221),C=n(508),P=n(509),S=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=(0,v.getComponentControllerNames)(),n.scalePool=new b.ScalePool,n.layoutFunc=x.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var a=e.id,o=void 0===a?(0,i.uniqueId)("view"):a,s=e.parent,u=e.canvas,c=e.backgroundGroup,h=e.middleGroup,f=e.foregroundGroup,p=e.region,d=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,g=e.padding,m=e.appendPadding,_=e.theme,M=e.options,C=e.limitInPlot,P=e.syncViewPadding;return n.parent=s,n.canvas=u,n.backgroundGroup=c,n.middleGroup=h,n.foregroundGroup=f,n.region=d,n.padding=g,n.appendPadding=m,n.options=(0,r.__assign)((0,r.__assign)({},n.options),M),n.limitInPlot=C,n.id=o,n.syncViewPadding=P,n.themeObject=(0,i.isObject)(_)?(0,i.deepMix)({},(0,l.getTheme)("default"),(0,y.createTheme)(_)):(0,l.getTheme)(_),n.init(),n}return(0,r.__extends)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;(0,i.each)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,o=n.length;r<o;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var a=this.controllers;for(r=0,i=a.length;r<i;r++){a[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return(0,i.set)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return(0,i.isFunction)(e)?((0,i.set)(this.options,["filters",t],e),this):(!e&&(0,i.get)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return(0,i.isBoolean)(t)?(0,i.set)(this.options,["axes"],t):(0,i.set)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return(0,i.isBoolean)(t)?(0,i.set)(this.options,["legends"],t):(0,i.isString)(t)?((0,i.set)(this.options,["legends",t],e),(0,i.isPlainObject)(e)&&(null==e?void 0:e.selected)&&(0,i.set)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):(0,i.set)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return(0,i.isString)(t)?(0,i.set)(this.options,["scales",t],e):(0,i.isObject)(t)&&(0,i.each)(t,(function(t,e){(0,i.set)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return(0,i.set)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return(0,i.isString)(t)?(0,i.set)(this.options,"coordinate",{type:t,cfg:e}):(0,i.set)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=(0,s.getFacet)(t);if(!n)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new n(this,(0,r.__assign)((0,r.__assign)({},e),{type:t})),this},e.prototype.animate=function(t){return(0,i.set)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),(0,i.mix)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return(0,i.set)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=(0,i.isObject)(t)?(0,i.deepMix)({},this.themeObject,(0,y.createTheme)(t)):(0,l.getTheme)(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=(0,u.createInteraction)(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,i.clone)(this.options.scales),axes:(0,i.clone)(this.options.axes),coordinate:(0,i.clone)(this.coordinateController.getOption()),tooltip:(0,i.clone)(this.options.tooltip),legends:(0,i.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},o=new e((0,r.__assign)((0,r.__assign)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:(0,r.__assign)((0,r.__assign)({},n),(0,i.get)(t,"options",{}))}));return this.views.push(o),o},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=(0,i.remove)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var a=e[r],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return(0,i.reduce)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===a.LAYER.BG?this.backgroundGroup:t===a.LAYER.MID?this.middleGroup:(a.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return(0,h.isPointInCoordinate)(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return(0,i.flatten)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return(0,f.uniq)((0,i.flatten)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),a=this.getScalesByDim("x"),o=this.getScalesByDim("y");if((0,i.each)(t,(function(t,r){a[r]&&(e=a[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!(0,i.isNil)(e)&&!(0,i.isNil)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return(0,i.find)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=a.dataArray;a.sort(o);for(var s=void 0,u=0,l=o.length;u<l;u++){var c=o[u];(s=(0,p.findDataByPoint)(t,c,a))&&n.push(s)}}var h=this.views;for(r=0,i=h.length;r<i;r++){var f=h[r].getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===(0,i.size)(e)?t:(0,i.filter)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=(0,i.get)(n,t);return(0,i.isUndefined)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,a=this.coordinateBBox.tr;(0,i.isEqual)(e,r)&&(0,i.isEqual)(n,a)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,a))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=(0,i.get)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,a=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:a,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=(0,C.calculatePadding)(this).shrink((0,d.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?P.defaultSyncViewPadding:(0,i.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,M.PaddingCal),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,a=n.length;r<a;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=(0,h.getCoordinateClipCfg)(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){a[o].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,a){var o=(0,i.get)(this.options.scales,[t]),s=(0,r.__assign)((0,r.__assign)({},o),n);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var a=this.region,o=a.start,s=a.end,u=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(u)||(this.viewBBox=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=(0,v.getComponentController)(r);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new _.default(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:"+e;i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_ENTER,this.emit(a.PLOT_EVENTS.MOUSE_ENTER,i)),i.type=a.PLOT_EVENTS.ENTER,this.emit(a.PLOT_EVENTS.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=(0,i.get)(this.options,"scales",{}),r=this.geometries,a=0,o=r.length;a<o;a++){var s=r[a];s.scales=this.getGeometryScales();var u={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(u):s.init(u)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,a=void 0===i?{}:i,o=this.filteredData,s=0,u=t.length;s<u;s++){var l=t[s],c=a[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:o,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getScaleFields();(0,f.uniq)(i,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getGroupFields();(0,f.uniq)(i,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=(0,r.__spreadArray)([this.getXScale()],this.getYScales(),!0).filter((function(t){return!!t})),n=this.getCoordinate(),a=this.options.scales;(0,i.each)(e,(function(e){var r=e.field,o=e.values,s=e.isCategory,u=e.isIdentity;(s||u)&&o&&!(0,i.get)(a,[r,"range"])&&(e.range=(0,g.getDefaultCategoryScaleRange)(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,a=0;a<i.length;a++){var o=i[a];o.coordinate=n,o.canvasRegion=r,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,a=void 0===n?[]:n,o=e.interactions,s=void 0===o?[]:o,u=e.views,l=void 0===u?[]:u,c=e.annotations,h=void 0===c?[]:c,f=e.coordinate,p=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new m.default(f);for(var g=0;g<a.length;g++){var y=a[g];this.createGeometry(y)}for(var v=0;v<s.length;v++){var _=s[v],x=_.type,b=_.cfg;this.interaction(x,b)}for(var M=0;M<l.length;M++){var C=l[M];this.createView(C)}for(var P=this.getController("annotation"),S=0;S<h.length;S++){var O=h[S];P.annotation(O)}p&&(0,i.each)(p,(function(e,n){t.on(n,e)})),d&&(0,i.each)(d,(function(e){var n=e.type,i=(0,r.__rest)(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var a=this[e](r);(0,i.each)(t,(function(t,e){(0,i.isFunction)(a[e])&&a[e](t)}))}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(o.default);e.View=S,e.registerGeometry=function(t,e){S.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=(0,r.__assign)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}},e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathToCurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],u=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n};e.parsePathString=s;var u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=u;var l=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,y=t.length;g<y;g++){if(r.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var v=2,m=(n=[i,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(u(n,f));break;case"O":r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,c=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,x=d.length;_<x;_++)p[_]=d[_];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+c;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=c;var h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],_=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],p=c[1],d=c[2],g=c[3];else{e=(h=_(e,n,-v)).x,n=h.y,u=(h=_(u,l,-v)).x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var x=(e-u)/2,b=(n-l)/2,M=x*x/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*x*x)/(C*b*b+P*x*x)));d=S*r*b/i+(e+u)/2,g=S*-i*x/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),f=e<d?Math.PI-f:f,p=u<d?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var O=p-f;if(Math.abs(O)>y){var w=p,A=u,T=l;p=f+y*(s&&p>f?1:-1),m=t(u=d+r*Math.cos(p),l=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-f;var E=Math.cos(f),I=Math.sin(f),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,k=4/3*i*B,R=[e,n],F=[e+j*I,n-k*E],N=[u+j*D,l-k*L],G=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,G].concat(m);for(var Y=[],V=0,H=(m=[F,N,G].concat(m).join().split(",")).length;V<H;V++)Y[V]=V%2?_(m[V-1],m[V],v).y:_(m[V],m[V+1],v).x;return Y},d=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(l=r[m][0]),"C"!==l&&(s[m]=l,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===l&&(s[m]="C"),y(r,m),i&&(i[m]&&(l=i[m][0]),"C"!==l&&(u[m]=l,m&&(d=u[m-1])),i[m]=g(i[m],o,d),"A"!==u[m]&&"C"===l&&(u[m]="C"),y(i,m)),v(r,i,a,o,m),v(i,r,o,a,m);var _=r[m],x=i&&i[m],b=_.length,M=i&&x.length;a.x=_[b-2],a.y=_[b-1],a.bx=parseFloat(_[b-4])||a.x,a.by=parseFloat(_[b-3])||a.y,o.bx=i&&(parseFloat(x[M-4])||o.x),o.by=i&&(parseFloat(x[M-3])||o.y),o.x=i&&x[M-2],o.y=i&&x[M-1]}return i?[r,i]:r};e.pathToCurve=d;var g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")};e.parsePathArray=y;var v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=l*c[p]+l,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;f+=h[p]*Math.sqrt(m)}return l*f},_=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&f.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&f.push(m)}}for(var _,x=f.length,b=x;x--;)_=1-(h=f[x]),p[0][x]=_*_*_*t+3*_*_*h*n+3*_*h*h*i+h*h*h*o,p[1][x]=_*_*_*e+3*_*_*h*r+3*_*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,u){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,u]);var l=_.apply(null,t);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=S.apply(0,t.concat(l/r));a.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i+1;l++){c=S.apply(0,e.concat(l/i));o.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r;l++)for(var h=0;h<i;h++){var f=a[l],p=a[l+1],d=o[h],g=o[h+1],y=Math.abs(p.x-f.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",_=x(f.x,f.y,p.x,p.y,d.x,d.y,g.x,g.y);if(_){if(s[_.x.toFixed(4)]===_.y.toFixed(4))continue;s[_.x.toFixed(4)]=_.y.toFixed(4);var M=f.t+Math.abs((_[y]-f[y])/(p[y]-f[y]))*(p.t-f.t),O=d.t+Math.abs((_[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);M>=0&&M<=1&&O>=0&&O<=1&&(n?u+=1:u.push({x:_.x,y:_.y,t1:M,t2:O}))}}return u};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,u,l,c,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,_=e.length;m<_;m++){var x=e[m];if("M"===x[0])a=l=x[1],o=c=x[2];else{"C"===x[0]?(f=[a,o].concat(x.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var b=O(h,f,n);if(n)p+=b;else{for(var M=0,C=b.length;M<C;M++)b[M].segment1=g,b[M].segment2=m,b[M].bez1=h,b[M].bez2=f;p=p.concat(b)}}}}}return p}(t,e)};var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=w(a,o/(1-o*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,r.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function E(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=a;l++){r=e[l-1],o=T(n,r)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,f=s[u-1][l-1].min+o;s[u][l]=E(c,h,f)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=o;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(89)),o=n(39),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(162)),s=n(39),u={};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];(0,s.isObject)(n)?r=n:r.type=n;var i=u[r.type];i||(i=(0,s.upperFirst)(r.type),u[r.type]=i);var a=this.getShapeBase(),o=new a[i](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if((0,s.isFunction)(r))n=new r(i||{parent:this});else{var a=r||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!(0,s.isAllowCapture)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,s.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,s.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,s.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,s.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(7),s=n(39),u=n(94),l=(0,r.__importDefault)(n(160)),c=o.ext.transform,h=["zIndex","capture","visible","type"],f=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return(0,a.each)(t,(function(t,e){-1!==f.indexOf(e)||(0,a.isEqual)(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&(0,a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if((0,a.isObject)(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,s.removeFromArray)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,u.multiplyMatrix)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,u.multiplyMatrix)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,u.multiplyVec2)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,u.invert)(e);if(n)return(0,u.multiplyVec2)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[(0,a.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,a.each)(e,(function(t,r){(0,a.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)(0,a.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return(0,a.each)(h,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,u,l,c=t[0],h=t[1],f=t[2],y=void 0===f?"easeLinear":f,v=t[3],m=void 0===v?a.noop:v,_=t[4],x=void 0===_?0:_;(0,a.isFunction)(c)?(i=c,c={}):(0,a.isObject)(c)&&c.onFrame&&(i=c.onFrame,o=c.repeat),(0,a.isObject)(h)?(h=(l=h).duration,y=l.easing||"easeLinear",x=l.delay||0,o=l.repeat||o||!1,m=l.callback||a.noop,s=l.pauseCallback||a.noop,u=l.resumeCallback||a.noop):((0,a.isNumber)(m)&&(x=m,m=null),(0,a.isFunction)(y)?(m=y,y="easeLinear"):y=y||"easeLinear");var b=d(c,this),M={fromAttrs:p(b,this),toAttrs:b,duration:h,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:u,delay:x,startTime:n.getTime(),id:(0,a.uniqueId)(),onFrame:i,pathFormatted:!1};r.length>0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],l=o.get("name");if(l){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(l)?(0,a.each)(l,(function(t){r.emitDelegateEvent(o,t,e)})):u.emitDelegateEvent(o,l,e)}},u=this,l=0;l<i.length;l++){if("break"===o(l))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),a=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vec4=e.vec3=e.vec2=e.quat2=e.quat=e.mat4=e.mat3=e.mat2d=e.mat2=e.glMatrix=void 0;var r=n(0),i=(0,r.__importStar)(n(29));e.glMatrix=i;var a=(0,r.__importStar)(n(338));e.mat2=a;var o=(0,r.__importStar)(n(339));e.mat2d=o;var s=(0,r.__importStar)(n(164));e.mat3=s;var u=(0,r.__importStar)(n(165));e.mat4=u;var l=(0,r.__importStar)(n(166));e.quat=l;var c=(0,r.__importStar)(n(340));e.quat2=c;var h=(0,r.__importStar)(n(168));e.vec2=h;var f=(0,r.__importStar)(n(93));e.vec3=f;var p=(0,r.__importStar)(n(167));e.vec4=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.projection=e.normalFromMat4=e.fromQuat=e.fromMat2d=e.fromScaling=e.fromRotation=e.fromTranslation=e.scale=e.rotate=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.fromMat4=e.create=void 0;var r=(0,n(0).__importStar)(n(29));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],_=n[7],x=n[8];return t[0]=f*r+p*o+d*l,t[1]=f*i+p*s+d*c,t[2]=f*a+p*u+d*h,t[3]=g*r+y*o+v*l,t[4]=g*i+y*s+v*c,t[5]=g*a+y*u+v*h,t[6]=m*r+_*o+x*l,t[7]=m*i+_*s+x*c,t[8]=m*a+_*u+x*h,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,a,o,s,u,l){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=u,c[8]=l,c},e.set=function(t,e,n,r,i,a,o,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-c*r+i*l)*d,t[2]=(s*r-i*o)*d,t[3]=f*d,t[4]=(c*n-i*u)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-l*n+r*u)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=o*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*o,t[3]=s*u-a*c,t[4]=n*c-i*u,t[5]=i*a-n*s,t[6]=a*l-o*u,t[7]=r*u-n*l,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8];return e*(l*a-o*u)+n*(-l*i+o*s)+r*(u*i-a*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*r+p*o+l,t[7]=f*i+p*s+c,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*i+f*s,t[2]=p*a+f*u,t[3]=p*o-f*r,t[4]=p*s-f*i,t[5]=p*u-f*a,t[6]=l,t[7]=c,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,h=r*s,f=i*o,p=i*s,d=i*u,g=a*o,y=a*s,v=a*u;return t[0]=1-h-d,t[3]=c-v,t[6]=f+y,t[1]=c+v,t[4]=1-l-d,t[7]=p-g,t[2]=f-y,t[5]=p+g,t[8]=1-l-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*u-i*o,x=n*l-a*o,b=r*u-i*s,M=r*l-a*s,C=i*l-a*u,P=c*g-h*d,S=c*y-f*d,O=c*v-p*d,w=h*y-f*g,A=h*v-p*g,T=f*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-u*A+l*w)*E,t[1]=(u*O-o*T-l*S)*E,t[2]=(o*A-s*O+l*P)*E,t[3]=(i*A-r*T-a*w)*E,t[4]=(n*T-i*O+a*S)*E,t[5]=(r*O-n*A-a*P)*E,t[6]=(g*C-y*M+v*b)*E,t[7]=(y*x-d*C-v*_)*E,t[8]=(d*M-g*x+v*m)*E,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-_)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(h-x)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.targetTo=e.lookAt=e.ortho=e.perspectiveFromFieldOfView=e.perspective=e.frustum=e.fromQuat=e.fromRotationTranslationScaleOrigin=e.fromRotationTranslationScale=e.getRotation=e.getScaling=e.getTranslation=e.fromQuat2=e.fromRotationTranslation=e.fromZRotation=e.fromYRotation=e.fromXRotation=e.fromRotation=e.fromScaling=e.fromTranslation=e.rotateZ=e.rotateY=e.rotateX=e.rotate=e.scale=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.create=void 0;var r=(0,n(0).__importStar)(n(29));function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],g=e[12],y=e[13],v=e[14],m=e[15],_=n[0],x=n[1],b=n[2],M=n[3];return t[0]=_*r+x*s+b*h+M*g,t[1]=_*i+x*u+b*f+M*y,t[2]=_*a+x*l+b*p+M*v,t[3]=_*o+x*c+b*d+M*m,_=n[4],x=n[5],b=n[6],M=n[7],t[4]=_*r+x*s+b*h+M*g,t[5]=_*i+x*u+b*f+M*y,t[6]=_*a+x*l+b*p+M*v,t[7]=_*o+x*c+b*d+M*m,_=n[8],x=n[9],b=n[10],M=n[11],t[8]=_*r+x*s+b*h+M*g,t[9]=_*i+x*u+b*f+M*y,t[10]=_*a+x*l+b*p+M*v,t[11]=_*o+x*c+b*d+M*m,_=n[12],x=n[13],b=n[14],M=n[15],t[12]=_*r+x*s+b*h+M*g,t[13]=_*i+x*u+b*f+M*y,t[14]=_*a+x*l+b*p+M*v,t[15]=_*o+x*c+b*d+M*m,t}function o(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,u=i+i,l=a+a,c=r*s,h=r*u,f=r*l,p=i*u,d=i*l,g=a*l,y=o*s,v=o*u,m=o*l;return t[0]=1-(p+g),t[1]=h+m,t[2]=f-v,t[3]=0,t[4]=h-m,t[5]=1-(c+g),t[6]=d+y,t[7]=0,t[8]=f+v,t[9]=d-y,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function s(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],u=e[8],l=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(u,l,c),t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}e.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.fromValues=function(t,e,n,i,a,o,s,u,l,c,h,f,p,d,g,y){var v=new r.ARRAY_TYPE(16);return v[0]=t,v[1]=e,v[2]=n,v[3]=i,v[4]=a,v[5]=o,v[6]=s,v[7]=u,v[8]=l,v[9]=c,v[10]=h,v[11]=f,v[12]=p,v[13]=d,v[14]=g,v[15]=y,v},e.set=function(t,e,n,r,i,a,o,s,u,l,c,h,f,p,d,g,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t[9]=c,t[10]=h,t[11]=f,t[12]=p,t[13]=d,t[14]=g,t[15]=y,t},e.identity=i,e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*u-i*o,x=n*l-a*o,b=r*u-i*s,M=r*l-a*s,C=i*l-a*u,P=c*g-h*d,S=c*y-f*d,O=c*v-p*d,w=h*y-f*g,A=h*v-p*g,T=f*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-u*A+l*w)*E,t[1]=(i*A-r*T-a*w)*E,t[2]=(g*C-y*M+v*b)*E,t[3]=(f*M-h*C-p*b)*E,t[4]=(u*O-o*T-l*S)*E,t[5]=(n*T-i*O+a*S)*E,t[6]=(y*x-d*C-v*_)*E,t[7]=(c*C-f*x+p*_)*E,t[8]=(o*A-s*O+l*P)*E,t[9]=(r*O-n*A-a*P)*E,t[10]=(d*M-g*x+v*m)*E,t[11]=(h*x-c*M-p*m)*E,t[12]=(s*S-o*w-u*P)*E,t[13]=(n*w-r*S+i*P)*E,t[14]=(g*_-d*b-y*m)*E,t[15]=(c*b-h*_+f*m)*E,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15];return t[0]=s*(f*v-p*y)-h*(u*v-l*y)+g*(u*p-l*f),t[1]=-(r*(f*v-p*y)-h*(i*v-a*y)+g*(i*p-a*f)),t[2]=r*(u*v-l*y)-s*(i*v-a*y)+g*(i*l-a*u),t[3]=-(r*(u*p-l*f)-s*(i*p-a*f)+h*(i*l-a*u)),t[4]=-(o*(f*v-p*y)-c*(u*v-l*y)+d*(u*p-l*f)),t[5]=n*(f*v-p*y)-c*(i*v-a*y)+d*(i*p-a*f),t[6]=-(n*(u*v-l*y)-o*(i*v-a*y)+d*(i*l-a*u)),t[7]=n*(u*p-l*f)-o*(i*p-a*f)+c*(i*l-a*u),t[8]=o*(h*v-p*g)-c*(s*v-l*g)+d*(s*p-l*h),t[9]=-(n*(h*v-p*g)-c*(r*v-a*g)+d*(r*p-a*h)),t[10]=n*(s*v-l*g)-o*(r*v-a*g)+d*(r*l-a*s),t[11]=-(n*(s*p-l*h)-o*(r*p-a*h)+c*(r*l-a*s)),t[12]=-(o*(h*y-f*g)-c*(s*y-u*g)+d*(s*f-u*h)),t[13]=n*(h*y-f*g)-c*(r*y-i*g)+d*(r*f-i*h),t[14]=-(n*(s*y-u*g)-o*(r*y-i*g)+d*(r*u-i*s)),t[15]=n*(s*f-u*h)-o*(r*f-i*h)+c*(r*u-i*s),t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11],p=t[12],d=t[13],g=t[14],y=t[15];return(e*o-n*a)*(h*y-f*g)-(e*s-r*a)*(c*y-f*d)+(e*u-i*a)*(c*g-h*d)+(n*s-r*o)*(l*y-f*p)-(n*u-i*o)*(l*g-h*p)+(r*u-i*s)*(l*d-c*p)},e.multiply=a,e.translate=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,p,d,g=n[0],y=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*y+e[8]*v+e[12],t[13]=e[1]*g+e[5]*y+e[9]*v+e[13],t[14]=e[2]*g+e[6]*y+e[10]*v+e[14],t[15]=e[3]*g+e[7]*y+e[11]*v+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=l,t[7]=c,t[8]=h,t[9]=f,t[10]=p,t[11]=d,t[12]=r*g+s*y+h*v+e[12],t[13]=i*g+u*y+f*v+e[13],t[14]=a*g+l*y+p*v+e[14],t[15]=o*g+c*y+d*v+e[15]),t},e.scale=function(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.rotate=function(t,e,n,i){var a,o,s,u,l,c,h,f,p,d,g,y,v,m,_,x,b,M,C,P,S,O,w,A,T=i[0],E=i[1],I=i[2],L=Math.hypot(T,E,I);return L<r.EPSILON?null:(T*=L=1/L,E*=L,I*=L,a=Math.sin(n),s=1-(o=Math.cos(n)),u=e[0],l=e[1],c=e[2],h=e[3],f=e[4],p=e[5],d=e[6],g=e[7],y=e[8],v=e[9],m=e[10],_=e[11],x=T*T*s+o,b=E*T*s+I*a,M=I*T*s-E*a,C=T*E*s-I*a,P=E*E*s+o,S=I*E*s+T*a,O=T*I*s+E*a,w=E*I*s-T*a,A=I*I*s+o,t[0]=u*x+f*b+y*M,t[1]=l*x+p*b+v*M,t[2]=c*x+d*b+m*M,t[3]=h*x+g*b+_*M,t[4]=u*C+f*P+y*S,t[5]=l*C+p*P+v*S,t[6]=c*C+d*P+m*S,t[7]=h*C+g*P+_*S,t[8]=u*O+f*w+y*A,t[9]=l*O+p*w+v*A,t[10]=c*O+d*w+m*A,t[11]=h*O+g*w+_*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},e.rotateX=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+l*r,t[5]=o*i+c*r,t[6]=s*i+h*r,t[7]=u*i+f*r,t[8]=l*i-a*r,t[9]=c*i-o*r,t[10]=h*i-s*r,t[11]=f*i-u*r,t},e.rotateY=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-l*r,t[1]=o*i-c*r,t[2]=s*i-h*r,t[3]=u*i-f*r,t[8]=a*r+l*i,t[9]=o*r+c*i,t[10]=s*r+h*i,t[11]=u*r+f*i,t},e.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+l*r,t[1]=o*i+c*r,t[2]=s*i+h*r,t[3]=u*i+f*r,t[4]=l*i-a*r,t[5]=c*i-o*r,t[6]=h*i-s*r,t[7]=f*i-u*r,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotation=function(t,e,n){var i,a,o,s=n[0],u=n[1],l=n[2],c=Math.hypot(s,u,l);return c<r.EPSILON?null:(s*=c=1/c,u*=c,l*=c,i=Math.sin(e),o=1-(a=Math.cos(e)),t[0]=s*s*o+a,t[1]=u*s*o+l*i,t[2]=l*s*o-u*i,t[3]=0,t[4]=s*u*o-l*i,t[5]=u*u*o+a,t[6]=l*u*o+s*i,t[7]=0,t[8]=s*l*o+u*i,t[9]=u*l*o-s*i,t[10]=l*l*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},e.fromXRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromYRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromZRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotationTranslation=o,e.fromQuat2=function(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],a=-e[1],s=-e[2],u=e[3],l=e[4],c=e[5],h=e[6],f=e[7],p=i*i+a*a+s*s+u*u;return p>0?(n[0]=2*(l*u+f*i+c*s-h*a)/p,n[1]=2*(c*u+f*a+h*i-l*s)/p,n[2]=2*(h*u+f*s+l*a-c*i)/p):(n[0]=2*(l*u+f*i+c*s-h*a),n[1]=2*(c*u+f*a+h*i-l*s),n[2]=2*(h*u+f*s+l*a-c*i)),o(t,e,n),t},e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.getScaling=s,e.getRotation=function(t,e){var n=new r.ARRAY_TYPE(3);s(n,e);var i=1/n[0],a=1/n[1],o=1/n[2],u=e[0]*i,l=e[1]*a,c=e[2]*o,h=e[4]*i,f=e[5]*a,p=e[6]*o,d=e[8]*i,g=e[9]*a,y=e[10]*o,v=u+f+y,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(l-h)/m):u>f&&u>y?(m=2*Math.sqrt(1+u-f-y),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(l+h)/m,t[2]=(d+c)/m):f>y?(m=2*Math.sqrt(1+f-u-y),t[3]=(d-c)/m,t[0]=(l+h)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+y-u-f),t[3]=(l-h)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,c=o+o,h=i*u,f=i*l,p=i*c,d=a*l,g=a*c,y=o*c,v=s*u,m=s*l,_=s*c,x=r[0],b=r[1],M=r[2];return t[0]=(1-(d+y))*x,t[1]=(f+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(f-_)*b,t[5]=(1-(h+y))*b,t[6]=(g+v)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-v)*M,t[10]=(1-(h+d))*M,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,c=o+o,h=s+s,f=a*l,p=a*c,d=a*h,g=o*c,y=o*h,v=s*h,m=u*l,_=u*c,x=u*h,b=r[0],M=r[1],C=r[2],P=i[0],S=i[1],O=i[2],w=(1-(g+v))*b,A=(p+x)*b,T=(d-_)*b,E=(p-x)*M,I=(1-(f+v))*M,L=(y+m)*M,D=(d+_)*C,B=(y-m)*C,j=(1-(f+g))*C;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=L,t[7]=0,t[8]=D,t[9]=B,t[10]=j,t[11]=0,t[12]=n[0]+P-(w*P+E*S+D*O),t[13]=n[1]+S-(A*P+I*S+B*O),t[14]=n[2]+O-(T*P+L*S+j*O),t[15]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,h=r*s,f=i*o,p=i*s,d=i*u,g=a*o,y=a*s,v=a*u;return t[0]=1-h-d,t[1]=c+v,t[2]=f-y,t[3]=0,t[4]=c-v,t[5]=1-l-d,t[6]=p+g,t[7]=0,t[8]=f+y,t[9]=p-g,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,n,r,i,a,o){var s=1/(n-e),u=1/(i-r),l=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t},e.perspective=function(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t},e.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},e.ortho=function(t,e,n,r,i,a,o){var s=1/(e-n),u=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(o+a)*l,t[15]=1,t},e.lookAt=function(t,e,n,a){var o,s,u,l,c,h,f,p,d,g,y=e[0],v=e[1],m=e[2],_=a[0],x=a[1],b=a[2],M=n[0],C=n[1],P=n[2];return Math.abs(y-M)<r.EPSILON&&Math.abs(v-C)<r.EPSILON&&Math.abs(m-P)<r.EPSILON?i(t):(f=y-M,p=v-C,d=m-P,o=x*(d*=g=1/Math.hypot(f,p,d))-b*(p*=g),s=b*(f*=g)-_*d,u=_*p-x*f,(g=Math.hypot(o,s,u))?(o*=g=1/g,s*=g,u*=g):(o=0,s=0,u=0),l=p*u-d*s,c=d*o-f*u,h=f*s-p*o,(g=Math.hypot(l,c,h))?(l*=g=1/g,c*=g,h*=g):(l=0,c=0,h=0),t[0]=o,t[1]=l,t[2]=f,t[3]=0,t[4]=s,t[5]=c,t[6]=p,t[7]=0,t[8]=u,t[9]=h,t[10]=d,t[11]=0,t[12]=-(o*y+s*v+u*m),t[13]=-(l*y+c*v+h*m),t[14]=-(f*y+p*v+d*m),t[15]=1,t)},e.targetTo=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=r[0],u=r[1],l=r[2],c=i-n[0],h=a-n[1],f=o-n[2],p=c*c+h*h+f*f;p>0&&(c*=p=1/Math.sqrt(p),h*=p,f*=p);var d=u*f-l*h,g=l*c-s*f,y=s*h-u*c;return(p=d*d+g*g+y*y)>0&&(d*=p=1/Math.sqrt(p),g*=p,y*=p),t[0]=d,t[1]=g,t[2]=y,t[3]=0,t[4]=h*y-f*g,t[5]=f*d-c*y,t[6]=c*g-h*d,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},e.subtract=u,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],p=t[10],d=t[11],g=t[12],y=t[13],v=t[14],m=t[15],_=e[0],x=e[1],b=e[2],M=e[3],C=e[4],P=e[5],S=e[6],O=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],L=e[13],D=e[14],B=e[15];return Math.abs(n-_)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-b)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-C)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(u-P)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(l-S)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-O)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(h-w)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(w))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(p-T)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(v-D)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-B)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))},e.mul=a,e.sub=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setAxes=e.sqlerp=e.rotationTo=e.equals=e.exactEquals=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.lerp=e.dot=e.scale=e.mul=e.add=e.set=e.copy=e.fromValues=e.clone=e.str=e.fromEuler=e.fromMat3=e.conjugate=e.invert=e.random=e.slerp=e.pow=e.ln=e.exp=e.calculateW=e.rotateZ=e.rotateY=e.rotateX=e.multiply=e.getAngle=e.getAxisAngle=e.setAxisAngle=e.identity=e.create=void 0;var r,i,a,o,s,u,l=n(0),c=(0,l.__importStar)(n(29)),h=(0,l.__importStar)(n(164)),f=(0,l.__importStar)(n(93)),p=(0,l.__importStar)(n(167));function d(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function g(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-r*l,t[2]=a*c+o*l+r*u-i*s,t[3]=o*c-r*s-i*u-a*l,t}function v(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),u=o>0?s*Math.sin(o)/o:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(o),t}function m(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function _(t,e,n,r){var i,a,o,s,u,l=e[0],h=e[1],f=e[2],p=e[3],d=n[0],g=n[1],y=n[2],v=n[3];return(a=l*d+h*g+f*y+p*v)<0&&(a=-a,d=-d,g=-g,y=-y,v=-v),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-r)*i)/o,u=Math.sin(r*i)/o):(s=1-r,u=r),t[0]=s*l+u*d,t[1]=s*h+u*g,t[2]=s*f+u*y,t[3]=s*p+u*v,t}function x(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}e.create=d,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.setAxisAngle=g,e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.getAngle=function(t,n){var r=(0,e.dot)(t,n);return Math.acos(2*r*r-1)},e.multiply=y,e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=a*u-i*s,t[3]=o*u-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-a*s,t[1]=i*u+o*s,t[2]=a*u+r*s,t[3]=o*u-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=a*u+o*s,t[3]=o*u-a*s,t},e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.exp=v,e.ln=m,e.pow=function(t,n,r){return m(t,n),(0,e.scale)(t,t,r),v(t,t),t},e.slerp=_,e.random=function(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.fromMat3=x,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),u=Math.cos(n),l=Math.sin(r),c=Math.cos(r);return t[0]=a*u*c-o*s*l,t[1]=o*s*c+a*u*l,t[2]=o*u*l-a*s*c,t[3]=o*u*c+a*s*l,t},e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.clone=p.clone,e.fromValues=p.fromValues,e.copy=p.copy,e.set=p.set,e.add=p.add,e.mul=y,e.scale=p.scale,e.dot=p.dot,e.lerp=p.lerp,e.length=p.length,e.len=e.length,e.squaredLength=p.squaredLength,e.sqrLen=e.squaredLength,e.normalize=p.normalize,e.exactEquals=p.exactEquals,e.equals=p.equals,e.rotationTo=(r=f.create(),i=f.fromValues(1,0,0),a=f.fromValues(0,1,0),function(t,n,o){var s=f.dot(n,o);return s<-.999999?(f.cross(r,i,n),f.len(r)<1e-6&&f.cross(r,a,n),f.normalize(r,r),g(t,r,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(f.cross(r,n,o),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+s,(0,e.normalize)(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,n,r,i,a){return _(o,e,i,a),_(s,n,r,a),_(t,o,s,2*a*(1-a)),t}),e.setAxes=(u=h.create(),function(t,n,r,i){return u[0]=r[0],u[3]=r[1],u[6]=r[2],u[1]=i[0],u[4]=i[1],u[7]=i[2],u[2]=-n[0],u[5]=-n[1],u[8]=-n[2],(0,e.normalize)(t,x(t,u))})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.transformQuat=e.transformMat4=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=(0,n(0).__importStar)(n(29));function a(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.fromValues=function(t,e,n,r){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.distance=l,e.squaredDistance=c,e.length=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],l=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],f=e[2],p=e[3];return t[0]=h*l-f*u+p*s,t[1]=-c*l+f*o-p*a,t[2]=c*u-h*o+p*i,t[3]=-c*s+h*a-f*i,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.random=function(t,e){var n,r,a,o,s,u;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{u=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*r,t[2]=e*a*l,t[3]=e*o*l,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=n[3],c=l*r+s*a-u*i,h=l*i+u*r-o*a,f=l*a+o*i-s*r,p=-o*r-s*i-u*a;return t[0]=c*l+p*-o+h*-u-f*-s,t[1]=h*l+p*-s+f*-o-c*-u,t[2]=f*l+p*-u+c*-s-h*-o,t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-u)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.len=h,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,u;for(e||(e=4),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],r[3]=t[s+3],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2],t[s+3]=r[3];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotate=e.transformMat4=e.transformMat3=e.transformMat2d=e.transformMat2=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=(0,n(0).__importStar)(n(29));function a(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function h(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function f(t){var e=t[0],n=t[1];return e*e+n*n}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=l,e.squaredDistance=c,e.length=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},e.len=h,e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,u;for(e||(e=2),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],a(r,r,o),t[s]=r[0],t[s+1]=r[1];return t})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.timeout=e.timerFlush=e.timer=e.now=void 0;var i=n(95);Object.defineProperty(e,"now",{enumerable:!0,get:function(){return i.now}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return i.timer}}),Object.defineProperty(e,"timerFlush",{enumerable:!0,get:function(){return i.timerFlush}});var a=n(343);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(a).default}});var o=n(344);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.easeElasticInOut=e.easeElasticOut=e.easeElasticIn=e.easeElastic=e.easeBackInOut=e.easeBackOut=e.easeBackIn=e.easeBack=e.easeBounceInOut=e.easeBounceOut=e.easeBounceIn=e.easeBounce=e.easeCircleInOut=e.easeCircleOut=e.easeCircleIn=e.easeCircle=e.easeExpInOut=e.easeExpOut=e.easeExpIn=e.easeExp=e.easeSinInOut=e.easeSinOut=e.easeSinIn=e.easeSin=e.easePolyInOut=e.easePolyOut=e.easePolyIn=e.easePoly=e.easeCubicInOut=e.easeCubicOut=e.easeCubicIn=e.easeCubic=e.easeQuadInOut=e.easeQuadOut=e.easeQuadIn=e.easeQuad=e.easeLinear=void 0;var r=n(345);Object.defineProperty(e,"easeLinear",{enumerable:!0,get:function(){return r.linear}});var i=n(346);Object.defineProperty(e,"easeQuad",{enumerable:!0,get:function(){return i.quadInOut}}),Object.defineProperty(e,"easeQuadIn",{enumerable:!0,get:function(){return i.quadIn}}),Object.defineProperty(e,"easeQuadOut",{enumerable:!0,get:function(){return i.quadOut}}),Object.defineProperty(e,"easeQuadInOut",{enumerable:!0,get:function(){return i.quadInOut}});var a=n(347);Object.defineProperty(e,"easeCubic",{enumerable:!0,get:function(){return a.cubicInOut}}),Object.defineProperty(e,"easeCubicIn",{enumerable:!0,get:function(){return a.cubicIn}}),Object.defineProperty(e,"easeCubicOut",{enumerable:!0,get:function(){return a.cubicOut}}),Object.defineProperty(e,"easeCubicInOut",{enumerable:!0,get:function(){return a.cubicInOut}});var o=n(348);Object.defineProperty(e,"easePoly",{enumerable:!0,get:function(){return o.polyInOut}}),Object.defineProperty(e,"easePolyIn",{enumerable:!0,get:function(){return o.polyIn}}),Object.defineProperty(e,"easePolyOut",{enumerable:!0,get:function(){return o.polyOut}}),Object.defineProperty(e,"easePolyInOut",{enumerable:!0,get:function(){return o.polyInOut}});var s=n(349);Object.defineProperty(e,"easeSin",{enumerable:!0,get:function(){return s.sinInOut}}),Object.defineProperty(e,"easeSinIn",{enumerable:!0,get:function(){return s.sinIn}}),Object.defineProperty(e,"easeSinOut",{enumerable:!0,get:function(){return s.sinOut}}),Object.defineProperty(e,"easeSinInOut",{enumerable:!0,get:function(){return s.sinInOut}});var u=n(350);Object.defineProperty(e,"easeExp",{enumerable:!0,get:function(){return u.expInOut}}),Object.defineProperty(e,"easeExpIn",{enumerable:!0,get:function(){return u.expIn}}),Object.defineProperty(e,"easeExpOut",{enumerable:!0,get:function(){return u.expOut}}),Object.defineProperty(e,"easeExpInOut",{enumerable:!0,get:function(){return u.expInOut}});var l=n(351);Object.defineProperty(e,"easeCircle",{enumerable:!0,get:function(){return l.circleInOut}}),Object.defineProperty(e,"easeCircleIn",{enumerable:!0,get:function(){return l.circleIn}}),Object.defineProperty(e,"easeCircleOut",{enumerable:!0,get:function(){return l.circleOut}}),Object.defineProperty(e,"easeCircleInOut",{enumerable:!0,get:function(){return l.circleInOut}});var c=n(352);Object.defineProperty(e,"easeBounce",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceIn",{enumerable:!0,get:function(){return c.bounceIn}}),Object.defineProperty(e,"easeBounceOut",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceInOut",{enumerable:!0,get:function(){return c.bounceInOut}});var h=n(353);Object.defineProperty(e,"easeBack",{enumerable:!0,get:function(){return h.backInOut}}),Object.defineProperty(e,"easeBackIn",{enumerable:!0,get:function(){return h.backIn}}),Object.defineProperty(e,"easeBackOut",{enumerable:!0,get:function(){return h.backOut}}),Object.defineProperty(e,"easeBackInOut",{enumerable:!0,get:function(){return h.backInOut}});var f=n(354);Object.defineProperty(e,"easeElastic",{enumerable:!0,get:function(){return f.elasticOut}}),Object.defineProperty(e,"easeElasticIn",{enumerable:!0,get:function(){return f.elasticIn}}),Object.defineProperty(e,"easeElasticOut",{enumerable:!0,get:function(){return f.elasticOut}}),Object.defineProperty(e,"easeElasticInOut",{enumerable:!0,get:function(){return f.elasticInOut}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tpmt=void 0,e.tpmt=function(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.quantize=e.piecewise=e.interpolateCubehelixLong=e.interpolateCubehelix=e.interpolateHclLong=e.interpolateHcl=e.interpolateLab=e.interpolateHslLong=e.interpolateHsl=e.interpolateRgbBasisClosed=e.interpolateRgbBasis=e.interpolateRgb=e.interpolateZoom=e.interpolateTransformSvg=e.interpolateTransformCss=e.interpolateString=e.interpolateRound=e.interpolateObject=e.interpolateNumberArray=e.interpolateNumber=e.interpolateHue=e.interpolateDiscrete=e.interpolateDate=e.interpolateBasisClosed=e.interpolateBasis=e.interpolateArray=e.interpolate=void 0;var i=n(96);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return r(i).default}});var a=n(177);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return r(a).default}});var o=n(99);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r(o).default}});var s=n(175);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return r(s).default}});var u=n(178);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return r(u).default}});var l=n(357);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return r(l).default}});var c=n(358);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return r(c).default}});var h=n(69);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return r(h).default}});var f=n(100);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return r(f).default}});var p=n(179);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return r(p).default}});var d=n(359);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return r(d).default}});var g=n(180);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return r(g).default}});var y=n(360);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return y.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return y.interpolateTransformSvg}});var v=n(363);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return r(v).default}});var m=n(174);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return r(m).default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return m.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return m.rgbBasisClosed}});var _=n(364);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return r(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=n(365);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return r(x).default}});var b=n(366);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return r(b).default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return b.hclLong}});var M=n(367);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return r(M).default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return M.cubehelixLong}});var C=n(368);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return r(C).default}});var P=n(369);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return r(P).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rad2deg=e.deg2rad=void 0,e.deg2rad=Math.PI/180,e.rad2deg=180/Math.PI},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rgbBasisClosed=e.rgbBasis=void 0;var r=n(0),i=n(48),a=(0,r.__importDefault)(n(99)),o=(0,r.__importDefault)(n(175)),s=(0,r.__importStar)(n(49));function u(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)r=(0,i.rgb)(e[n]),o[n]=r.r||0,s[n]=r.g||0,u[n]=r.b||0;return o=t(o),s=t(s),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=u(t),r+""}}}e.default=function t(e){var n=(0,s.gamma)(e);function r(t,e){var r=n((t=(0,i.rgb)(t)).r,(e=(0,i.rgb)(e)).r),a=n(t.g,e.g),o=n(t.b,e.b),u=(0,s.default)(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}return r.gamma=t,r}(1),e.rgbBasis=u(a.default),e.rgbBasisClosed=u(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99);e.default=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return(0,r.basis)((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.genericArray=void 0;var r=n(0),i=(0,r.__importDefault)(n(96)),a=(0,r.__importStar)(n(100));function o(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r);for(n=0;n<a;++n)o[n]=(0,i.default)(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}e.default=function(t,e){return((0,a.isNumberArray)(e)?a.default:o)(t,e)},e.genericArray=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=(0,n(0).__importDefault)(n(96));e.default=function(t,e){var n,a={},o={};for(n in null!==t&&"object"===r(t)||(t={}),null!==e&&"object"===r(e)||(e={}),e)n in t?a[n]=(0,i.default)(t[n],e[n]):o[n]=e[n];return function(t){for(n in a)o[n]=a[n](t);return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(69)),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.default=function(t,e){var n,o,s,u=i.lastIndex=a.lastIndex=0,l=-1,c=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(n=n[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,h.push({i:l,x:(0,r.default)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)c[(n=h[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var r=n(33);e.nearestPoint=function(t,e,n,i,a,o){var s,u=1/0,l=[n,i],c=20;o&&o>200&&(c=o/10);for(var h=1/c,f=h/10,p=0;p<=c;p++){var d=p*h,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(_=(0,r.distance)(l[0],l[1],g[0],g[1]))<u&&(s=d,u=_)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}for(u=1/0,p=0;p<32&&!(f<1e-4);p++){var v=s-f,m=s+f,_=(g=[a.apply(null,t.concat([v])),a.apply(null,e.concat([v]))],(0,r.distance)(l[0],l[1],g[0],g[1]));if(v>=0&&_<u)s=v,u=_;else{var x=[a.apply(null,t.concat([m])),a.apply(null,e.concat([m]))],b=(0,r.distance)(l[0],l[1],x[0],x[1]);m<=1&&b<u?(s=m,u=b):f*=.5}}return{x:a.apply(null,t.concat([s])),y:a.apply(null,e.concat([s]))}},e.snapLength=function(t,e){for(var n=0,i=t.length,a=0;a<i;a++){var o=t[a],s=e[a],u=t[(a+1)%i],l=e[(a+1)%i];n+=(0,r.distance)(o,s,u,l)}return n/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=(0,n(0).__importDefault)(n(70)),i=n(33);function a(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var a=t[r],o=t[r+1],s=(0,i.distance)(a[0],a[1],o[0],o[1]),u={from:a,to:o,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}e.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],a=t[n+1];e+=(0,i.distance)(r[0],r[1],a[0],a[1])}return e},e.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var n=a(t),i=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l<i.length;l++){var c=i[l],h=c.from,f=c.to,p=c.length/o;if(e>=s&&e<=s+p){var d=(e-s)/p;u=r.default.pointAt(h[0],h[1],f[0],f[1],d);break}s+=p}return u},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=a(t),r=n.segments,i=n.totalLength,o=0,s=0,u=0;u<r.length;u++){var l=r[u],c=l.from,h=l.to,f=l.length/i;if(e>=o&&e<=o+f){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}o+=f}return s},e.distanceAtSegment=function(t,e,n){for(var i=1/0,a=0;a<t.length-1;a++){var o=t[a],s=t[a+1],u=r.default.pointDistance(o[0],o[1],s[0],s[1],e,n);u<i&&(i=u)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(182),i=n(33);e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var a=t[r];e.push(a[0]),n.push(a[1])}return(0,i.getBBoxByArray)(e,n)},length:function(t){return(0,r.lengthOfSegment)(t)},pointAt:function(t,e){return(0,r.pointAtSegments)(t,e)},pointDistance:function(t,e,n){return(0,r.distanceAtSegment)(t,e,n)},tangentAngle:function(t,e){return(0,r.angleAtSegments)(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var r=n(39),i=n(185);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var i=1;return(0,r.isString)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var r=null;e.getOffScreenContext=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(i),(0,r.each)(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(189)),i=n(392);function a(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}e.default=function(t,e){void 0===e&&(e=!1);for(var n,o,s=(0,r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],p=0;p<h;p+=1)s[p]&&(c=s[p][0]),l[p]=c,s[p]=(0,i.segmentToCubic)(s[p],u),a(s,l,p),h=s.length,"Z"===c&&f.push(p),o=(n=s[p]).length,u.x1=+n[o-2],u.y1=+n[o-1],u.x2=+n[o-4]||u.x1,u.y2=+n[o-3]||u.y1;return e?[s,f]:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(190)),i=/[a-z]/;function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){var e=(0,r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,o=0;o<e.length;o++){var s=e[o][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(h=l=+d[1],f=c=+d[2],p++,u[0]=["M",l,c]),o=p;for(var g=e.length;o<g;o++){var y=e[o],v=u[o-1],m=[],_=(s=y[0]).toUpperCase();if(s!==_)switch(m[0]=_,_){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+l,m[7]=+y[7]+c;break;case"V":m[1]=+y[1]+c;break;case"H":m[1]=+y[1]+l;break;case"M":h=+y[1]+l,f=+y[2]+c,m[1]=h,m[2]=f;break;default:for(var x=1,b=y.length;x<b;x++)m[x]=+y[x]+(x%2?l:c)}else m=e[o];switch(_){case"Z":l=+h,c=+f;break;case"H":m=["L",l=m[1],c];break;case"V":m=["L",l,c=m[1]];break;case"T":l=m[1],c=m[2];var M=a([v[1],v[2]],[v[3],v[4]]);m=["Q",M[0],M[1],l,c];break;case"S":l=m[m.length-2],c=m[m.length-1];var C=v.length,P=a([v[C-4],v[C-3]],[v[C-2],v[C-1]]);m=["C",P[0],P[1],m[1],m[2],l,c];break;case"M":h=m[m.length-2],f=m[m.length-1];break;default:l=m[m.length-2],c=m[m.length-1]}u.push(m)}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");e.default=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t>=e&&t<=n};e.default=function(t,e,n,i){var a=n.x-t.x,o=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var p=(a*c-o*l)/h,d=(a*u-o*s)/h;r(p,0,1)&&r(d,0,1)&&(f={x:t.x+p*s,y:t.y+p*u})}return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var u=t[s],l=t[(s+1)%o];if(i(u,l,[e,n]))return!0;r(u[1]-n)>0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(25),i=n(401);Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var a=(0,r.__importDefault)(n(50));e.Adjust=a.default;var o=(0,r.__importDefault)(n(402)),s=(0,r.__importDefault)(n(403)),u=(0,r.__importDefault)(n(404)),l=(0,r.__importDefault)(n(405));(0,i.registerAdjust)("Dodge",o.default),(0,i.registerAdjust)("Jitter",s.default),(0,i.registerAdjust)("Stack",u.default),(0,i.registerAdjust)("Symmetric",l.default),(0,r.__exportStar)(n(194),e)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var r=n(105);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r.Scale}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r={};e.getTickMethod=function(t){return r[t]},e.registerTickMethod=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,i.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=(0,a.isNumber)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=e;return(0,a.isNumber)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,(0,i.__spreadArrays)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if((0,a.isNil)(this.getConfig("min"))&&(this.min=0),(0,a.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}((0,r.__importDefault)(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",a=/\[([^]*?)\]/gm;function o(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var s=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var a=i[r];for(var o in a)t[o]=a[o]}return t}e.assign=u;var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],h=o(c,3),f={dayNamesShort:o(l,3),dayNames:l,monthNamesShort:h,monthNames:c,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=f;var p=u({},f),d=function(t){return p=u(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},v={D:function(t){return String(t.getDate())},DD:function(t){return y(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return y(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return y(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return y(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return y(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return y(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return y(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return y(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return y(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return y(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return y(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(Math.floor(Math.abs(e)/60),2)+":"+y(Math.abs(e)%60,2)}},m=function(t){return+t-1},_=[null,"[1-9]\\d?"],x=[null,i],b=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],C={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:x,dddd:x,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:b,A:b,ZZ:M,Z:M},P={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},S=function(t){return u(P,t)};e.setGlobalDateMasks=S;var O=function(t,e,n){if(void 0===e&&(e=P.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=P[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=u(u({},p),n);return(e=e.replace(r,(function(e){return v[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=P[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],l=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},h={};l=g(l).replace(r,(function(t){var e=C[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(h[i]=!0),o.push(e),"("+r+")"})),Object.keys(h).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return s.shift()}));var f=t.match(new RegExp(l,"i"));if(!f)return null;for(var d=u(u({},p),n),y=1;y<f.length;y++){var v=o[y-1],m=v[0],_=v[2],x=_?_(f[y],d):+f[y];if(null==x)return null;i[m]=x}1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0);for(var b=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond),M=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],S=(y=0,M.length);y<S;y++)if(c[M[y][0]]&&i[M[y][0]]!==b[M[y][1]]())return null;return null==i.timezoneOffset?b:new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond))}e.format=O,e.parse=w;var A={format:O,parse:w,defaultI18n:f,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}((0,r.__importDefault)(n(73)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(n-1);return o+(r-s)/((i+1)/(n-1)-s)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}((0,r.__importDefault)(n(73)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(202));e.default=function(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=e;if((0,i.isNumber)(n))return(0,i.filter)(o,(function(t,e){return e%n==0}));var s=t.min,u=t.max;if((0,i.isNil)(s)&&(s=0),(0,i.isNil)(u)&&(u=e.length-1),(0,i.isNumber)(r)&&r<u-s){var l=(0,a.default)(s,u,r,!1,[1,2,5,3,4,7,6,8,9]).ticks;return(0,i.filter)(l,(function(t){return t>=s&&t<=u})).map((function(t){return e[t]}))}return e.slice(s,u+1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var r=n(1);e.DEFAULT_Q=[1,5,2,2.5,4,3],e.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9];var i=100*Number.EPSILON;function a(t,e,n,a,o,s){var u=(0,r.size)(e),l=(0,r.indexOf)(e,t),c=0,h=function(t,e){return(t%e+e)%e}(a,s);return(h<i||s-h<i)&&a<=0&&o>=0&&(c=1),1-l/(u-1)-n+c}function o(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1}function s(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function u(t,e){return t>=e?2-(t-1)/(e-1):1}function l(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function c(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}e.default=function(t,n,i,h,f,p){if(void 0===i&&(i=5),void 0===h&&(h=!0),void 0===f&&(f=e.DEFAULT_Q),void 0===p&&(p=[.25,.2,.5,.05]),Number.isNaN(t)||Number.isNaN(n)||"number"!=typeof t||"number"!=typeof n||!i)return{min:0,max:0,ticks:[]};if(n-t<1e-15||1===i)return{min:t,max:n,ticks:[t]};for(var d={score:-2,lmin:0,lmax:0,lstep:0},g=1;g<1/0;){for(var y=0;y<f.length;y+=1){var v=f[y],m=o(v,f,g);if(p[0]*m+p[1]+p[2]+p[3]<d.score){g=1/0;break}for(var _=2;_<1/0;){var x=u(_,i);if(p[0]*m+p[1]+p[2]*x+p[3]<d.score)break;for(var b=(n-t)/(_+1)/g/v,M=Math.ceil(Math.log10(b));M<1/0;){var C=g*v*Math.pow(10,M),P=c(t,n,C*(_-1));if(p[0]*m+p[1]*P+p[2]*x+p[3]<d.score)break;var S=Math.floor(n/C)*g-(_-1)*g,O=Math.ceil(t/C)*g;if(S<=O)for(var w=O-S,A=0;A<=w;A+=1){var T=(S+A)*(C/g),E=T+C*(_-1),I=C,L=a(v,f,g,T,E,I),D=l(t,n,T,E),B=s(_,i,t,n,T,E),j=p[0]*L+p[1]*D+p[2]*B+1*p[3];j>d.score&&(!h||T<=t&&E>=n)&&(d.lmin=T,d.lmax=E,d.lstep=I,d.score=j)}M+=1}_+=1}}g+=1}var k,R=d.lmax,F=d.lmin,N=d.lstep,G=Math.floor((R-F)/N)+1,Y=new Array(G);for(y=0;y<G;y++)Y[y]=(k=F+y*N)<1e-15?k:parseFloat(k.toFixed(15));return{min:Math.min(t,(0,r.head)(Y)),max:Math.max(n,(0,r.last)(Y)),ticks:Y}}},function(t,e,n){"use strict";function r(t){return t<1e-15?t:parseFloat(t.toFixed(15))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=(e-t)/n,a=Math.pow(10,Math.floor(Math.log10(i))),o=a;2*a-i<1.5*(i-o)&&5*a-i<2.75*(i-(o=2*a))&&10*a-i<1.5*(i-(o=5*a))&&(o=10*a);for(var s=Math.ceil(e/o),u=Math.floor(t/o),l=Math.max(s*o,e),c=Math.min(u*o,t),h=Math.floor((l-c)/o)+1,f=new Array(h),p=0;p<h;p++)f[p]=r(c+p*o);return{min:c,max:l,ticks:f}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.propagationDelegate=void 0;var r=n(205);e.propagationDelegate=function(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var a=t.getParent();a;)a.emitDelegation(e,i),i.propagationPath.push(a),a=a.getParent()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getOffScreenContext=e.invert=e.multiplyVec2=e.isAllowCapture=e.assembleFont=e.getTextHeight=e.getBBoxMethod=e.PathUtil=e.AbstractShape=e.AbstractGroup=e.AbstractCanvas=e.Base=e.Event=void 0;var r=n(0),i=(0,r.__importStar)(n(206));e.PathUtil=i,(0,r.__exportStar)(n(439),e),(0,r.__exportStar)(n(440),e);var a=n(207);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var o=n(208);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var s=n(441);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var u=n(445);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var l=n(446);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var c=n(447);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}});var h=n(211);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return h.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return h.assembleFont}});var f=n(42);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return f.isAllowCapture}});var p=n(108);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(212);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathToCurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],u=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n};e.parsePathString=s;var u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=u;var l=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,y=t.length;g<y;g++){if(r.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var v=2,m=(n=[i,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(u(n,f));break;case"O":r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,c=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=l(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,x=d.length;_<x;_++)p[_]=d[_];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+c;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=c;var h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],_=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],p=c[1],d=c[2],g=c[3];else{e=(h=_(e,n,-v)).x,n=h.y,u=(h=_(u,l,-v)).x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var x=(e-u)/2,b=(n-l)/2,M=x*x/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*x*x)/(C*b*b+P*x*x)));d=S*r*b/i+(e+u)/2,g=S*-i*x/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),f=e<d?Math.PI-f:f,p=u<d?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var O=p-f;if(Math.abs(O)>y){var w=p,A=u,T=l;p=f+y*(s&&p>f?1:-1),m=t(u=d+r*Math.cos(p),l=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-f;var E=Math.cos(f),I=Math.sin(f),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,k=4/3*i*B,R=[e,n],F=[e+j*I,n-k*E],N=[u+j*D,l-k*L],G=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,G].concat(m);for(var Y=[],V=0,H=(m=[F,N,G].concat(m).join().split(",")).length;V<H;V++)Y[V]=V%2?_(m[V-1],m[V],v).y:_(m[V],m[V+1],v).x;return Y},d=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(l=r[m][0]),"C"!==l&&(s[m]=l,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===l&&(s[m]="C"),y(r,m),i&&(i[m]&&(l=i[m][0]),"C"!==l&&(u[m]=l,m&&(d=u[m-1])),i[m]=g(i[m],o,d),"A"!==u[m]&&"C"===l&&(u[m]="C"),y(i,m)),v(r,i,a,o,m),v(i,r,o,a,m);var _=r[m],x=i&&i[m],b=_.length,M=i&&x.length;a.x=_[b-2],a.y=_[b-1],a.bx=parseFloat(_[b-4])||a.x,a.by=parseFloat(_[b-3])||a.y,o.bx=i&&(parseFloat(x[M-4])||o.x),o.by=i&&(parseFloat(x[M-3])||o.y),o.x=i&&x[M-2],o.y=i&&x[M-1]}return i?[r,i]:r};e.pathToCurve=d;var g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")};e.parsePathArray=y;var v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=l*c[p]+l,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;f+=h[p]*Math.sqrt(m)}return l*f},_=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&f.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&f.push(m)}}for(var _,x=f.length,b=x;x--;)_=1-(h=f[x]),p[0][x]=_*_*_*t+3*_*_*h*n+3*_*h*h*i+h*h*h*o,p[1][x]=_*_*_*e+3*_*_*h*r+3*_*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,u){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,u]);var l=_.apply(null,t);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=S.apply(0,t.concat(l/r));a.push({x:c.x,y:c.y,t:l/r})}for(l=0;l<i+1;l++){c=S.apply(0,e.concat(l/i));o.push({x:c.x,y:c.y,t:l/i})}for(l=0;l<r;l++)for(var h=0;h<i;h++){var f=a[l],p=a[l+1],d=o[h],g=o[h+1],y=Math.abs(p.x-f.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",_=x(f.x,f.y,p.x,p.y,d.x,d.y,g.x,g.y);if(_){if(s[_.x.toFixed(4)]===_.y.toFixed(4))continue;s[_.x.toFixed(4)]=_.y.toFixed(4);var M=f.t+Math.abs((_[y]-f[y])/(p[y]-f[y]))*(p.t-f.t),O=d.t+Math.abs((_[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);M>=0&&M<=1&&O>=0&&O<=1&&(n?u+=1:u.push({x:_.x,y:_.y,t1:M,t2:O}))}}return u};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,u,l,c,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,_=e.length;m<_;m++){var x=e[m];if("M"===x[0])a=l=x[1],o=c=x[2];else{"C"===x[0]?(f=[a,o].concat(x.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var b=O(h,f,n);if(n)p+=b;else{for(var M=0,C=b.length;M<C;M++)b[M].segment1=g,b[M].segment2=m,b[M].bez1=h,b[M].bez2=f;p=p.concat(b)}}}}}return p}(t,e)};var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=w(a,o/(1-o*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,r.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function E(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(u=1;u<=i;u++){n=t[u-1];for(l=1;l<=a;l++){r=e[l-1],o=T(n,r)?0:1;var c=s[u-1][l].min+1,h=s[u][l-1].min+1,f=s[u-1][l-1].min+o;s[u][l]=E(c,h,f)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=o;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(89)),o=n(42),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(210)),s=n(42),u={};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];(0,s.isObject)(n)?r=n:r.type=n;var i=u[r.type];i||(i=(0,s.upperFirst)(r.type),u[r.type]=i);var a=this.getShapeBase(),o=new a[i](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if((0,s.isFunction)(r))n=new r(i||{parent:this});else{var a=r||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!(0,s.isAllowCapture)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,s.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,s.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,s.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,s.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(7),s=n(42),u=n(108),l=(0,r.__importDefault)(n(208)),c=o.ext.transform,h=["zIndex","capture","visible","type"],f=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return(0,a.each)(t,(function(t,e){-1!==f.indexOf(e)||(0,a.isEqual)(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&(0,a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if((0,a.isObject)(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,s.removeFromArray)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,u.multiplyMatrix)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,u.multiplyMatrix)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,u.multiplyVec2)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,u.invert)(e);if(n)return(0,u.multiplyVec2)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[(0,a.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,a.each)(e,(function(t,r){(0,a.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)(0,a.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return(0,a.each)(h,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,u,l,c=t[0],h=t[1],f=t[2],y=void 0===f?"easeLinear":f,v=t[3],m=void 0===v?a.noop:v,_=t[4],x=void 0===_?0:_;(0,a.isFunction)(c)?(i=c,c={}):(0,a.isObject)(c)&&c.onFrame&&(i=c.onFrame,o=c.repeat),(0,a.isObject)(h)?(h=(l=h).duration,y=l.easing||"easeLinear",x=l.delay||0,o=l.repeat||o||!1,m=l.callback||a.noop,s=l.pauseCallback||a.noop,u=l.resumeCallback||a.noop):((0,a.isNumber)(m)&&(x=m,m=null),(0,a.isFunction)(y)?(m=y,y="easeLinear"):y=y||"easeLinear");var b=d(c,this),M={fromAttrs:p(b,this),toAttrs:b,duration:h,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:u,delay:x,startTime:n.getTime(),id:(0,a.uniqueId)(),onFrame:i,pathFormatted:!1};r.length>0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],l=o.get("name");if(l){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(l)?(0,a.each)(l,(function(t){r.emitDelegateEvent(o,t,e)})):u.emitDelegateEvent(o,l,e)}},u=this,l=0;l<i.length;l++){if("break"===o(l))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),a=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var r=n(42),i=n(212);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var i=1;return(0,r.isString)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var r=null;e.getOffScreenContext=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStatesStyle=void 0;var r=n(1);e.getStatesStyle=function(t,e,n){var i=e+"Style",a=null;return(0,r.each)(n,(function(e,n){t[n]&&e[i]&&(a||(a={}),(0,r.mix)(a,e[i]))})),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_TEXT=e.CROSSHAIR_LINE=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-crosshair",e.CROSSHAIR_LINE=e.CONTAINER_CLASS+"-line",e.CROSSHAIR_TEXT=e.CONTAINER_CLASS+"-text"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=(0,n(0).__importDefault)(n(501)),i=n(1),a={};e.createAction=function(t,e){var n=a[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r},e.getActionClass=function(t){var e=a[t];return(0,i.get)(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTheme=e.getTheme=void 0;var r=n(1),i=n(218),a={default:(0,i.createTheme)({})};e.getTheme=function(t){return(0,r.get)(a,(0,r.lowerCase)(t),a.default)},e.registerTheme=function(t,e){a[(0,r.lowerCase)(t)]=(0,i.createTheme)(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(503);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return r.createTheme}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createThemeByStyleSheet=void 0;var r=n(0),i=n(60),a=n(7),o=n(1),s=n(12);e.createThemeByStyleSheet=function(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},u=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),l=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=(0,s.getAngle)(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),u=7.5*Math.sin(i);return{matrix:a.ext.transform(null,[["t",o,u]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:(0,r.__assign)((0,r.__assign)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,r.__assign)((0,r.__assign)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,r.__assign)((0,r.__assign)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,r.__assign)((0,r.__assign)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,r.__assign)((0,r.__assign)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,r.__assign)((0,r.__assign)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,r.__assign)((0,r.__assign)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,r.__assign)((0,r.__assign)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:u,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,o.deepMix)({},u.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,o.deepMix)({},u.grid,{line:{type:"circle"}})}},legend:{common:l,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:l.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e[""+i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+i.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+i.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+i.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+i.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+i.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getComponentController=e.getComponentControllerNames=e.unregisterComponentController=e.registerComponentController=void 0;var r={};e.registerComponentController=function(t,e){r[t]=e},e.unregisterComponentController=function(t){delete r[t]},e.getComponentControllerNames=function(){return Object.keys(r)},e.getComponentController=function(t){return r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaddingCal=void 0;var r=n(0),i=n(2),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return this.top=Math.max(this.top,e),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,i),this},t.prototype.shrink=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return this.top+=e,this.right+=n,this.bottom+=r,this.left+=i,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:this.top+=r;break;case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,(0,r.__spreadArray)([void 0],this.getPadding(),!1)))},t}();e.PaddingCal=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(24),o=n(14),s=n(12),u=n(78),l=n(30),c=n(43),h=(0,r.__importDefault)(n(119));var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",h.default.fromData(e,"tooltip:show",(0,r.__assign)({items:n,title:a},t)));var s=this.getTooltipCfg(),u=s.follow,l=s.showMarkers,c=s.showCrosshairs,f=s.showContent,p=s.marker,d=this.items,g=this.title;if((0,i.isEqual)(g,a)&&(0,i.isEqual)(d,n)?(this.tooltip&&u&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",h.default.fromData(e,"tooltip:change",(0,r.__assign)({items:n,title:a},t))),((0,i.isFunction)(f)?f(n):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,i.mix)({},s,{items:this.getItemsAfterProcess(n),title:a},u?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var y=(0,i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(y?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",h.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,r=e=(0,i.flatten)(e);n<r.length;n++)for(var a=0,o=r[n];a<o.length;a++){var s=o[a],u=s.mappingData,l=u.x,c=u.y;s.x=(0,i.isArray)(l)?l[l.length-1]:l,s.y=(0,i.isArray)(c)?c[c.length-1]:c}if(!1===this.getTooltipCfg().shared&&e.length>1){for(var h=e[0],f=Math.abs(t.y-h[0].y),p=0,d=e;p<d.length;p++){var g=d[p],y=Math.abs(t.y-g[0].y);y<=f&&(h=g,f=y)}e=[h]}return function(t){for(var e=[],n=function(n){var r=t[n];(0,i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}((0,i.flatten)(e))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,a=r.y,o=r.width,s=r.height;return new l.BBox(i,a,o,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),a=(0,i.get)(r,["components","tooltip"],{}),o=(0,i.get)(n,"enterable",a.enterable);return(0,i.deepMix)({},a,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if((0,i.isBoolean)(t)||!(0,i.get)(t,"customContent"))return t;var e=t.customContent;return(0,r.__assign)((0,r.__assign)({},t),{customContent:function(t,n){var r=e(t,n)||"";return(0,i.isString)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new a.HtmlTooltip((0,r.__assign)((0,r.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,a=t;i<a.length;i++){var o=a[i],s=o.x,u=o.y,l=(0,r.__assign)((0,r.__assign)({fill:o.color,symbol:"circle",shadowColor:o.color},e),{x:s,y:u});n.addShape("marker",{attrs:l})}},e.prototype.renderCrosshairs=function(t,e){var n=(0,i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,u;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y});else{var l=(0,o.getAngleByPoint)(n,t),c=n.getCenter(),h=n.getRadius();u=(0,s.polarToCartesian)(c.x,c.y,h,l),r=c}var f=(0,i.deepMix)({start:r,end:u,container:this.getTooltipCrosshairsGroup()},(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete f.type;var p=this.xCrosshair;p?p.update(f):(p=new a.Crosshair.Line(f)).init(),p.render(),p.show(),this.xCrosshair=p}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,s;if(n.isRect){var u=void 0,l=void 0;n.isTransposed?(u={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(u={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),r={start:u,end:l},s="Line"}else r={center:n.getCenter(),radius:(0,o.getDistanceToCenter)(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=(0,i.deepMix)({container:this.getTooltipCrosshairsGroup()},r,(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](r)).init():c.update(r):(c=new a.Crosshair[s](r)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var r=(0,i.get)(n,["crosshairs","text"]),a=(0,i.get)(n,["crosshairs","follow"]),o=this.items;if(r){var s=this.getViewWithGeometry(this.view),u=o[0],l=s.getXScale(),c=s.getYScales()[0],h=void 0,f=void 0;if(a){var p=this.view.getCoordinate().invert(e);h=l.invert(p.x),f=c.invert(p.y)}else h=u.data[l.field],f=u.data[c.field];var d="x"===t?h:f;return(0,i.isFunction)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var n=this.getTooltipCfg(),r=(0,u.findItemsFromView)(t,e,n),i=0,a=t.views;i<a.length;i++){var o=a[i];r=r.concat(this.findItemsFromView(o,e))}return r},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:(0,i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var r={};e.getAnimation=function(t){return r[t.toLowerCase()]},e.registerAnimation=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelChange=void 0;var r=n(1);e.isModelChange=function(t,e){return(0,r.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,r.isEqual)(t[n],e[n])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diff=void 0,e.diff=function(t,e){for(var n=[],r=[],i=[],a=new Map,o=0;o<e.length;o++){var s=e[o];t[s]?r.push(s):n.push(s),a.set(s,!0)}return Object.keys(t).forEach((function(t){a.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMappingValue=void 0;var r=n(0);e.getMappingValue=function(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,(0,r.__spreadArray)([e],a,!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(0),i=n(1),a=n(2),o=n(226),s=n(26),u=n(62),l=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&u.MarkerSymbols[e]&&(t.symbol=u.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,u){var h=n.getScale(n.type);if(h.isCategory){var f=h.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,y=e.coordinate.isPolar;return h.getTicks().map((function(n,v){var m,_=n.text,x=n.value,b=_,M=h.invert(x),C=0===t.filterFieldData(f,[(m={},m[f]=M,m)]).length;(0,i.each)(t.views,(function(t){var e;t.filterFieldData(f,[(e={},e[f]=M,e)]).length||(C=!0)}));var P,S,O=(0,o.getMappingValue)(p,M,g),w=(0,o.getMappingValue)(d,M,"point"),A=e.getShapeMarker(w,{color:O,isInPolar:y}),T=u;return(0,i.isFunction)(T)&&(T=T(b,v,(0,r.__assign)({name:b,value:M},(0,i.deepMix)({},a,A)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==l.indexOf(n)){var r=(0,i.get)(t,"style",{}),a=(0,i.get)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(A=(0,i.deepMix)({},a,A,(0,s.omit)((0,r.__assign)({},T),["style"])),O),T&&T.style&&(A.style=(P=A.style,S=T.style,(0,i.isFunction)(S)?S(P):(0,i.deepMix)({},P,S))),c(A),{id:M,name:b,value:M,marker:A,unchecked:C}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n,r){var a=e;(0,i.isFunction)(a)&&(a=a(n.name,r,(0,i.deepMix)({},t,n)));var o=(0,i.isFunction)(n.marker)?n.marker(n.name,r,(0,i.deepMix)({},t,n)):n.marker,s=(0,i.deepMix)({},t,a,o);return c(s),n.marker=s,n}))},e.getLegendThemeCfg=function(t,e){var n=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(n,["common"],{}),(0,i.deepMix)({},(0,i.get)(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=(0,r.__importStar)(n(63));e.Shape=i,(0,r.__exportStar)(n(13),e);var a=n(529);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var o=n(123);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var s=n(230);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}}),e.version="0.5.12"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n(15),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function u(t,e){var n=t.match(s);(0,r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),l=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:c.maxX,y:c.minY},a={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:c.maxX,y:c.maxY},a={x:c.minX,y:c.minY}):(r={x:c.minX,y:c.maxY},a={x:c.maxX,y:c.minY});var h=Math.tan(s),f=h*h,p=(a.x-r.x+h*(a.y-r.y))/(f+1)+r.x,d=h*(a.x-r.x+h*(a.y-r.y))/(f+1)+r.y,g=t.createLinearGradient(r.x,r.y,p,d);return u(l,g),g}function c(t,e,n){var r=a.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),l=parseFloat(r[3]),c=r[4];if(0===l){var h=c.match(s);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(f.minX+p*i,f.minY+d*o,0,f.minX+p/2,f.minY+d/2,l*g);return u(c,y),y}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,a=o.exec(n),s=a[1],u=a[2];function l(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,u.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=u,i.complete?l():(i.onload=l,i.src=i.src),r}e.parseLineGradient=l,e.parseRadialGradient=c,e.parsePattern=h,e.parseStyle=function(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return h(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0},e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,[e,n,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}e.default=function(t,e){var n=e[1],i=e[2],s=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],l=e[5],c=t[0],h=t[1],f=e[6],p=e[7],d=Math.cos(s)*(c-f)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(c-f)/2+Math.cos(s)*(h-p)/2,y=d*d/(n*n)+g*g/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var v=n*n*(g*g)+i*i*(d*d),m=v?Math.sqrt((n*n*(i*i)-v)/v):1;u===l&&(m*=-1),isNaN(m)&&(m=0);var _=i?m*n*g/i:0,x=n?m*-i*d/n:0,b=(c+f)/2+Math.cos(s)*_-Math.sin(s)*x,M=(h+p)/2+Math.sin(s)*_+Math.cos(s)*x,C=[(d-_)/n,(g-x)/i],P=[(-1*d-_)/n,(-1*g-x)/i],S=o([1,0],C),O=o(C,P);return a(C,P)<=-1&&(O=Math.PI),a(C,P)>=1&&(O=0),0===l&&O>0&&(O-=2*Math.PI),1===l&&O<0&&(O+=2*Math.PI),{cx:b,cy:M,rx:(0,r.isSamePoint)(t,[f,p])?0:n,ry:(0,r.isSamePoint)(t,[f,p])?0:i,startAngle:S,endAngle:S+O,xRotation:s,arcFlag:u,sweepFlag:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13);e.default=function(t,e,n){var i=(0,r.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var u=t[s],l=t[(s+1)%o];if(i(u,l,[e,n]))return!0;r(u[1]-n)>0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s,u){var l=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<i||l>a)return!1;var c={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return(0,r.distance)(c.x,c.y,s,u)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(81));e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s<o-1;s++){var u=t[s][0],l=t[s][1],c=t[s+1][0],h=t[s+1][1];if((0,r.default)(u,l,c,h,e,n,i))return!0}if(a){var f=t[0],p=t[o-1];if((0,r.default)(f[0],f[1],p[0],p[1],e,n,i))return!0}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(54),o=n(5),s=n(51),u=n(127),l=n(236);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=(0,s.getSplinePath)(t,!1,r)):(a=(0,s.getLinePath)(t,!1),e&&a.push(["Z"])),a);var a}function h(t,e,n,i,a,o){if(t.length){var s=t[0];return(0,r.isArray)(s.y)?function(t,e,n,i,a,o){var s=[],l=[];(0,r.each)(t,(function(t){var e=(0,u.splitPoints)(t);s.push(e[1]),l.push(e[0])}));var h=c(s,e,i,a,o),f=c(l,e,i,a,o);return n?h:h.concat(f)}(t,e,n,i,a,o):c(t,e,i,a,o)}return[]}var f=(0,i.registerShapeFactory)("line",{defaultShapeType:"line"});(0,r.each)(["line","dot","dash","smooth"],(function(t){(0,i.registerShape)("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,u=s.start,l=s.end;r=[[u.x,l.y],[l.x,u.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,u=t.showSinglePoint,l=(0,o.getStyle)(t,!0,!1,"lineWidth"),c=(0,a.getPathPoints)(t.points,i,u),f=[],p=0,d=c.length;p<d;p++){var g=c[p];f=f.concat(h(g,s,r,e,n,l))}return l.path=f,l}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return(0,l.getLineMarker)(e,t)}})})),e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineMarker=void 0;var r={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};e.getLineMarker=function(t,e){var n=t.color;return{symbol:r[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getQPath=e.getCPath=void 0;var r=n(1);e.getCPath=function(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]},e.getQPath=function(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return(0,r.each)(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(14),s=(0,r.__importDefault)(n(79)),u=Math.PI/2,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if((0,i.isNumber)(t))n=t;else if((0,i.isString)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(n,(function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return(0,r.__assign)((0,r.__assign)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),u=t.labelEmit,l=this.getCirclePoint(s,o,r,u);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,u):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,i.isArray)(t.x)||(0,i.isArray)(t.y)?{x:(0,i.isArray)(t.x)?t.x[e]:t.x,y:(0,i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return(0,o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),u=(0,a.getDistanceToCenter)(o,n);if(0===u)return(0,r.__assign)((0,r.__assign)({},s),{r:u});var l=t;o.isTransposed&&u>e&&!i?l=t+2*Math.asin(e/(2*u)):u+=e;return{x:s.x+u*Math.cos(l),y:s.y+u*Math.sin(l),r:u}},e.prototype.getLabelRotate=function(t,e,n){var r=t+u;return n&&(r-=u),r&&(r>u?r-=Math.PI:r<-u&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,u=Math.abs(o-s),l=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(c-=o,l-o>u&&(u=l-o);a;)for(h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),u-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=h.length;i--;)if(i>0){var f=h[i-1],p=h[i];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>u&&(f.pos=u-f.size),h.splice(i,1),a=!0)}i=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,r.__extends)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,a=+new Date;if(a-r>(0,i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&(0,i.isEqual)(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}((0,r.__importDefault)(n(10)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return(0,r.__extends)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,i.head)(t),end:(0,i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}((0,r.__importDefault)(n(137)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}((0,r.__importDefault)(n(137)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i=n(0),a=n(56),o=(0,i.__importDefault)(n(10)),s=n(4);function u(t,e,n,r){var i=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),o=t.range,s=o[0],u=o[1];if(i<s&&(i=s),a>u&&(a=u),i===u&&a===u)return null;var l=t.invert(i),c=t.invert(a);if(t.isCategory){var h=t.values.indexOf(l),f=t.values.indexOf(c),p=t.values.slice(h,f+1);return function(t){return p.includes(t)}}return function(t){return t>=l&&t<=c}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={})),e.BRUSH_FILTER_EVENTS=r;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return(0,i.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if((0,s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,o=i.view,l={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,l));var c=o.getCoordinate(),h=c.invert(e),f=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=u(p,"x",h,f);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=u(g,"y",h,f);this.filterView(o,g.field,d)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,l))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,a.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,a.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(117),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return(0,r.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var r=n(0),i=n(22),a=n(515),o=n(219);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=(0,r.__importStar)(n(228)),u=(0,r.__importStar)(n(531)),l=n(22);(0,l.registerEngine)("canvas",s),(0,l.registerEngine)("svg",u);var c=n(22),h=(0,r.__importDefault)(n(552)),f=(0,r.__importDefault)(n(554)),p=(0,r.__importDefault)(n(556)),d=(0,r.__importDefault)(n(557)),g=(0,r.__importDefault)(n(559)),y=(0,r.__importDefault)(n(126)),v=(0,r.__importDefault)(n(560)),m=(0,r.__importDefault)(n(562)),_=(0,r.__importDefault)(n(564)),x=(0,r.__importDefault)(n(566));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",d.default),(0,c.registerGeometry)("Schema",_.default),(0,c.registerGeometry)("Path",y.default),(0,c.registerGeometry)("Point",v.default),(0,c.registerGeometry)("Line",g.default),(0,c.registerGeometry)("Area",h.default),(0,c.registerGeometry)("Edge",f.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587);var b=n(22),M=(0,r.__importDefault)(n(79)),C=(0,r.__importDefault)(n(588)),P=(0,r.__importDefault)(n(589)),S=(0,r.__importDefault)(n(238));(0,b.registerGeometryLabel)("base",M.default),(0,b.registerGeometryLabel)("interval",C.default),(0,b.registerGeometryLabel)("pie",P.default),(0,b.registerGeometryLabel)("polar",S.default);var O=n(22),w=n(590),A=n(591),T=n(592),E=n(593),I=n(594),L=n(595),D=n(596),B=n(598),j=n(600),k=n(601),R=n(602),F=n(603),N=n(604);(0,O.registerGeometryLabelLayout)("overlap",L.overlap),(0,O.registerGeometryLabelLayout)("distribute",w.distribute),(0,O.registerGeometryLabelLayout)("fixed-overlap",L.fixedOverlap),(0,O.registerGeometryLabelLayout)("hide-overlap",D.hideOverlap),(0,O.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,O.registerGeometryLabelLayout)("limit-in-canvas",E.limitInCanvas),(0,O.registerGeometryLabelLayout)("limit-in-plot",N.limitInPlot),(0,O.registerGeometryLabelLayout)("pie-outer",A.pieOuterLabelLayout),(0,O.registerGeometryLabelLayout)("adjust-color",B.adjustColor),(0,O.registerGeometryLabelLayout)("interval-adjust-position",j.intervalAdjustPosition),(0,O.registerGeometryLabelLayout)("interval-hide-overlap",k.intervalHideOverlap),(0,O.registerGeometryLabelLayout)("point-adjust-position",R.pointAdjustPosition),(0,O.registerGeometryLabelLayout)("pie-spider",T.pieSpiderLabelLayout),(0,O.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var G=n(607),Y=n(608),V=n(610),H=n(611),X=n(612),z=n(613),W=n(614),q=n(615),U=n(22);(0,U.registerAnimation)("fade-in",G.fadeIn),(0,U.registerAnimation)("fade-out",G.fadeOut),(0,U.registerAnimation)("grow-in-x",Y.growInX),(0,U.registerAnimation)("grow-in-xy",Y.growInXY),(0,U.registerAnimation)("grow-in-y",Y.growInY),(0,U.registerAnimation)("scale-in-x",X.scaleInX),(0,U.registerAnimation)("scale-in-y",X.scaleInY),(0,U.registerAnimation)("wave-in",W.waveIn),(0,U.registerAnimation)("zoom-in",q.zoomIn),(0,U.registerAnimation)("zoom-out",q.zoomOut),(0,U.registerAnimation)("position-update",H.positionUpdate),(0,U.registerAnimation)("sector-path-update",z.sectorPathUpdate),(0,U.registerAnimation)("path-in",V.pathIn);var Z=n(22),Q=(0,r.__importDefault)(n(616)),K=(0,r.__importDefault)(n(617)),$=(0,r.__importDefault)(n(618)),J=(0,r.__importDefault)(n(619)),tt=(0,r.__importDefault)(n(620)),et=(0,r.__importDefault)(n(621));(0,Z.registerFacet)("rect",tt.default),(0,Z.registerFacet)("mirror",J.default),(0,Z.registerFacet)("list",K.default),(0,Z.registerFacet)("matrix",$.default),(0,Z.registerFacet)("circle",Q.default),(0,Z.registerFacet)("tree",et.default);var nt=n(22),rt=(0,r.__importDefault)(n(622)),it=(0,r.__importDefault)(n(625)),at=(0,r.__importDefault)(n(627)),ot=(0,r.__importDefault)(n(628)),st=(0,r.__importDefault)(n(222)),ut=(0,r.__importDefault)(n(629));(0,nt.registerComponentController)("axis",it.default),(0,nt.registerComponentController)("legend",at.default),(0,nt.registerComponentController)("tooltip",st.default),(0,nt.registerComponentController)("annotation",rt.default),(0,nt.registerComponentController)("slider",ot.default),(0,nt.registerComponentController)("scrollbar",ut.default);var lt=n(22),ct=(0,r.__importDefault)(n(630)),ht=(0,r.__importDefault)(n(631)),ft=(0,r.__importDefault)(n(240)),pt=(0,r.__importDefault)(n(632)),dt=(0,r.__importDefault)(n(633)),gt=(0,r.__importDefault)(n(634)),yt=(0,r.__importDefault)(n(635)),vt=(0,r.__importDefault)(n(636)),mt=(0,r.__importDefault)(n(135)),_t=(0,r.__importDefault)(n(637)),xt=(0,r.__importDefault)(n(638)),bt=(0,r.__importStar)(n(639));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=(0,r.__importDefault)(n(640)),Ct=(0,r.__importDefault)(n(641)),Pt=(0,r.__importDefault)(n(642)),St=(0,r.__importDefault)(n(643)),Ot=(0,r.__importDefault)(n(644)),wt=(0,r.__importDefault)(n(645)),At=(0,r.__importDefault)(n(647)),Tt=(0,r.__importDefault)(n(648)),Et=(0,r.__importDefault)(n(649)),It=(0,r.__importDefault)(n(650)),Lt=(0,r.__importDefault)(n(651)),Dt=(0,r.__importDefault)(n(242)),Bt=(0,r.__importDefault)(n(241)),jt=(0,r.__importDefault)(n(652)),kt=(0,r.__importDefault)(n(653)),Rt=(0,r.__importDefault)(n(654)),Ft=(0,r.__importStar)(n(243));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Ft.BRUSH_FILTER_EVENTS}});var Nt=(0,r.__importDefault)(n(655)),Gt=(0,r.__importDefault)(n(656)),Yt=(0,r.__importDefault)(n(657)),Vt=(0,r.__importDefault)(n(658)),Ht=(0,r.__importDefault)(n(659)),Xt=(0,r.__importDefault)(n(660)),zt=(0,r.__importDefault)(n(661)),Wt=(0,r.__importDefault)(n(662));(0,lt.registerAction)("tooltip",ft.default),(0,lt.registerAction)("sibling-tooltip",ht.default),(0,lt.registerAction)("ellipsis-text",pt.default),(0,lt.registerAction)("element-active",dt.default),(0,lt.registerAction)("element-single-active",vt.default),(0,lt.registerAction)("element-range-active",yt.default),(0,lt.registerAction)("element-highlight",mt.default),(0,lt.registerAction)("element-highlight-by-x",xt.default),(0,lt.registerAction)("element-highlight-by-color",_t.default),(0,lt.registerAction)("element-single-highlight",Mt.default),(0,lt.registerAction)("element-range-highlight",bt.default),(0,lt.registerAction)("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),(0,lt.registerAction)("element-selected",Pt.default),(0,lt.registerAction)("element-single-selected",St.default),(0,lt.registerAction)("element-range-selected",Ct.default),(0,lt.registerAction)("element-link-by-color",gt.default),(0,lt.registerAction)("active-region",ct.default),(0,lt.registerAction)("list-active",Ot.default),(0,lt.registerAction)("list-selected",At.default),(0,lt.registerAction)("list-highlight",wt.default),(0,lt.registerAction)("list-unchecked",Tt.default),(0,lt.registerAction)("list-checked",Et.default),(0,lt.registerAction)("legend-item-highlight",wt.default,{componentNames:["legend"]}),(0,lt.registerAction)("axis-label-highlight",wt.default,{componentNames:["axis"]}),(0,lt.registerAction)("rect-mask",Bt.default),(0,lt.registerAction)("x-rect-mask",Lt.default,{dim:"x"}),(0,lt.registerAction)("y-rect-mask",Lt.default,{dim:"y"}),(0,lt.registerAction)("circle-mask",It.default),(0,lt.registerAction)("path-mask",Dt.default),(0,lt.registerAction)("smooth-path-mask",jt.default),(0,lt.registerAction)("cursor",kt.default),(0,lt.registerAction)("data-filter",Rt.default),(0,lt.registerAction)("brush",Ft.default),(0,lt.registerAction)("brush-x",Ft.default,{dims:["x"]}),(0,lt.registerAction)("brush-y",Ft.default,{dims:["y"]}),(0,lt.registerAction)("sibling-filter",Nt.default),(0,lt.registerAction)("sibling-x-filter",Nt.default),(0,lt.registerAction)("sibling-y-filter",Nt.default),(0,lt.registerAction)("element-filter",Gt.default),(0,lt.registerAction)("element-sibling-filter",Yt.default),(0,lt.registerAction)("element-sibling-filter-record",Yt.default,{byRecord:!0}),(0,lt.registerAction)("view-drag",Ht.default),(0,lt.registerAction)("view-move",Xt.default),(0,lt.registerAction)("scale-translate",zt.default),(0,lt.registerAction)("scale-zoom",Wt.default),(0,lt.registerAction)("reset-button",Vt.default,{name:"reset-button",text:"reset"});var qt=n(22);function Ut(t){return t.isInPlot()}function Zt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,qt.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,qt.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,qt.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,qt.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,qt.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,qt.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,qt.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,qt.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,qt.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,qt.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),(0,qt.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),(0,qt.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),(0,qt.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ut,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ut,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),(0,qt.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),(0,qt.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ut,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ut,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,qt.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ut,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),(0,qt.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,qt.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),(0,qt.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,qt.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,qt.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),(0,qt.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,qt.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Zt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Zt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,qt.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});var Qt=n(2);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return Qt.VIEW_LIFE_CIRCLE}}),(0,r.__exportStar)(n(22),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(154),s=n(326),u=function(t){function e(e){var n=this,u=e.container,l=e.width,c=e.height,h=e.autoFit,f=void 0!==h&&h,p=e.padding,d=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,_=void 0===m||m,x=e.visible,b=void 0===x||x,M=e.supportCSSTransform,C=void 0!==M&&M,P=e.defaultInteractions,S=void 0===P?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:P,O=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=(0,i.isString)(u)?document.getElementById(u):u,I=(0,s.createDom)('<div style="position:relative;"></div>');E.appendChild(I);var L=(0,s.getChartSize)(E,f,l,c),D=new((0,o.getEngine)(y).Canvas)((0,r.__assign)({container:I,pixelRatio:v,localRefresh:_,supportCSSTransform:C},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:d,visible:b,options:O,limitInPlot:w,theme:A,syncViewPadding:T})||this).onResize=(0,i.debounce)((function(){n.forceFit()}),300),n.ele=E,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=f,n.localRefresh=_,n.renderer=y,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return(0,r.__extends)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,i.each)(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,s.removeDom)(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=(0,s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){(0,s.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}((0,r.__importDefault)(n(157)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(138)),a=(0,r.__importDefault)(n(84));e.default=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,(function(t){return!(0,a.default)(e,t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(18)),a=(0,r.__importDefault)(n(139)),o=(0,r.__importDefault)(n(6)),s=(0,r.__importDefault)(n(57));e.default=function(t,e){if(!(0,o.default)(t))return null;var n;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,a.default)(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(36)),a=(0,r.__importDefault)(n(6));e.default=function(t,e){for(var n=null,r=0;r<t.length;r++){var o=t[r][e];if(!(0,i.default)(o)){n=(0,a.default)(o)?o[0]:o;break}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(6));e.default=function(t){if(!(0,r.default)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(6));e.default=function t(e,n){if(void 0===n&&(n=[]),(0,r.default)(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(141)),o=(0,r.__importDefault)(n(142));e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if((0,i.default)(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var s=(0,a.default)(e);return{min:(0,o.default)(e),max:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,a=r.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var o=e[r],s=-1;(s=a.call(t,o))>-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(17)),a=(0,r.__importDefault)(n(143));e.default=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,o=[],s=t.length;++r<s;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return(0,a.default)(t,o),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(31)),o=(0,r.__importDefault)(n(18));e.default=function(t,e){var n;if((0,o.default)(e))n=function(t,n){return e(t)-e(n)};else{var r=[];(0,a.default)(e)?r.push(e):(0,i.default)(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(145));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.default)([].concat.apply([],t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(36));e.default=function(t,e){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o][e];if(!(0,a.default)(s)){(0,i.default)(s)||(s=[s]);for(var u=0;u<s.length;u++){var l=s[u];r[l]||(n.push(l),r[l]=!0)}}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t){if((0,r.default)(t))return t[0]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t){if((0,r.default)(t)){return t[t.length-1]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(31));e.default=function(t,e){return!(!(0,i.default)(t)&&!(0,a.default)(t))&&t[0]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(31));e.default=function(t,e){return!(!(0,i.default)(t)&&!(0,a.default)(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(146));e.default=function(t,e){if(!e)return[t];var n=(0,r.default)(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(6));e.default=function(t){var e=0,n=0,i=0,a=0;return(0,r.default)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32));e.default=function(t){return(0,r.default)(t)&&t%1!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32));e.default=function(t){return(0,r.default)(t)&&t%2==0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32)),i=Number.isInteger?Number.isInteger:function(t){return(0,r.default)(t)&&t%1==0};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32));e.default=function(t){return(0,r.default)(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32));e.default=function(t){return(0,r.default)(t)&&t%2!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32));e.default=function(t){return(0,r.default)(t)&&t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,o=0;o<t.length;o++){var s=t[o],u=(0,a.default)(e)?e(s):s[e];u>r&&(n=s,r=u)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,o=0;o<t.length;o++){var s=t[o],u=(0,a.default)(e)?e(s):s[e];u<r&&(n=s,r=u)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(44));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(148));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(84)),a=(0,r.__importDefault)(n(86));e.default=function(t,e){return(0,i.default)((0,a.default)(t),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(45));e.default=function(t){return(0,r.default)(t).toLowerCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(45));e.default=function(t){var e=(0,r.default)(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(45));e.default=function(t){return(0,r.default)(t).toUpperCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(45));e.default=function(t){var e=(0,r.default)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"Arguments")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"Boolean")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"Date")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"Error")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(32));e.default=function(t){return(0,r.default)(t)&&isFinite(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(23));e.default=function(t){return(0,r.default)(t,"RegExp")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return void 0===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(87)),a=(0,r.__importDefault)(n(18));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var o=t[r];(0,a.default)(o)&&(o=o.prototype),(0,i.default)(n.prototype,o)}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=(0,n(0).__importDefault)(n(6));e.default=function t(e){if("object"!==r(e)||null===e)return e;var n;if((0,i.default)(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(6)),a=(0,r.__importDefault)(n(57));function o(t,e,n,r){for(var s in n=n||0,r=r||5,e)if(e.hasOwnProperty(s)){var u=e[s];null!==u&&(0,a.default)(u)?((0,a.default)(t[s])||(t[s]={}),n<r?o(t[s],u,n+1,r):t[s]=e[s]):(0,i.default)(u)?(t[s]=[],t[s]=t[s].concat(u)):void 0!==u&&(t[s]=u)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(87)),a=(0,r.__importDefault)(n(18));e.default=function(t,e,n,r){(0,a.default)(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=(0,i.default)(s,t.prototype),t.superclass=o(e.prototype,e),(0,i.default)(s,n),(0,i.default)(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t,e){if(!(0,r.default)(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(36)),a=(0,r.__importDefault)(n(17)),o=(0,r.__importDefault)(n(149)),s=(0,r.__importDefault)(n(150)),u=Object.prototype.hasOwnProperty;e.default=function(t){if((0,i.default)(t))return!0;if((0,a.default)(t))return!t.length;var e=(0,o.default)(t);if("Map"===e||"Set"===e)return!t.size;if((0,s.default)(t))return!Object.keys(t).length;for(var n in t)if(u.call(t,n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(18)),a=(0,r.__importDefault)(n(152));e.default=function(t,e,n){return(0,i.default)(n)?!!n(t,e):(0,a.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push(e(a,i))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(36)),a=(0,r.__importDefault)(n(68)),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return(0,a.default)(t)&&!(0,i.default)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(31));e.default=function(t,e,n){for(var i=0,a=(0,r.default)(e)?e.split("."):e;t&&i<a.length;)t=t[a[i++]];return void 0===t||i<a.length?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(68)),a=(0,r.__importDefault)(n(31)),o=(0,r.__importDefault)(n(32));e.default=function(t,e,n){var r=t,s=(0,a.default)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?((0,i.default)(r[t])||(r[t]=(0,o.default)(s[e+1])?[]:{}),r=r[t]):r[t]=n})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(44)),a=(0,r.__importDefault)(n(57)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!(0,a.default)(t))return{};var n={};return(0,i.default)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(144));e.default=function(t,e){return(0,r.default)(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,a,o,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(17));e.default=function(t){return(0,r.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(36)),a=(0,r.__importDefault)(n(17));e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(31)),a=(0,r.__importDefault)(n(45)),o=(0,r.__importDefault)(n(153));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,u,l=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),h=e,f=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((u=(0,o.default)(s,n))+l>h&&u>h);)if(f.push(s),h-=u,!(c=c.substr(16)))return f.join("");for(;s=c.substr(0,1),!((u=(0,o.default)(s,n))+l>h);)if(f.push(s),h-=u,!(c=c.substr(1)))return f.join("");return""+f.join("")+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var r=n(2);function i(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,a){var o=n,s=a;if(e){var u=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);o=u.width?u.width:o,s=u.height?u.height:s}return{width:Math.max(i(o)?o:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(i(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=n(46);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return a.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return a.modifyCSS}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var s=n.childNodes[0];return n.removeChild(s),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(58)),a=(0,r.__importDefault)(n(155));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return n+r+(parseFloat((0,i.default)(t,"borderBottomWidth"))||0)+o+s+(parseFloat((0,i.default)(t,"marginTop"))||0)+(parseFloat((0,i.default)(t,"marginBottom"))||0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(58)),a=(0,r.__importDefault)(n(156));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,u=parseFloat((0,i.default)(t,"borderRightWidth"))||0,l=parseFloat((0,i.default)(t,"marginRight"))||0;return n+r+u+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(92),o=(0,r.__importDefault)(n(161)),s=n(39),u=(0,r.__importDefault)(n(342)),l=(0,r.__importDefault)(n(371)),c=(0,a.detect)(),h=c&&"firefox"===c.name,f=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new l.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new u.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(h&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=f},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&p())}function p(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";
44
+ /*! *****************************************************************************
45
+ Copyright (c) Microsoft Corporation.
46
+
47
+ Permission to use, copy, modify, and/or distribute this software for any
48
+ purpose with or without fee is hereby granted.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
51
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
52
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
53
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
54
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
55
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
56
+ PERFORMANCE OF THIS SOFTWARE.
57
+ ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.multiplyScalarAndAdd=e.multiplyScalar=e.equals=e.exactEquals=e.subtract=e.add=e.LDU=e.frob=e.str=e.fromScaling=e.fromRotation=e.scale=e.rotate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=(0,n(0).__importStar)(n(29));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*s+a*u,t[1]=i*s+o*u,t[2]=r*l+a*c,t[3]=i*l+o*c,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}e.create=function(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},e.fromValues=function(t,e,n,i){var a=new r.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=i,a},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.transpose=function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*a-i*r;return o?(o=1/o,t[0]=a*o,t[1]=-r*o,t[2]=-i*o,t[3]=n*o,t):null},e.adjoint=function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},e.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=r*-s+a*u,t[3]=i*-s+o*u,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=a*u,t[3]=o*u,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},e.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},e.LDU=function(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=a,e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.fromTranslation=e.fromScaling=e.fromRotation=e.translate=e.scale=e.rotate=e.multiply=e.determinant=e.invert=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=(0,n(0).__importStar)(n(29));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=n[0],c=n[1],h=n[2],f=n[3],p=n[4],d=n[5];return t[0]=r*l+a*c,t[1]=i*l+o*c,t[2]=r*h+a*f,t[3]=i*h+o*f,t[4]=r*p+a*d+s,t[5]=i*p+o*d+u,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}e.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},e.fromValues=function(t,e,n,i,a,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=a,s[5]=o,s},e.set=function(t,e,n,r,i,a,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=n*a-r*i;return u?(u=1/u,t[0]=a*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-a*o)*u,t[5]=(r*o-n*s)*u,t):null},e.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*l,t[1]=i*c+o*l,t[2]=r*-l+a*c,t[3]=i*-l+o*c,t[4]=s,t[5]=u,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r*l,t[1]=i*l,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=u,t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=r*l+a*c+s,t[5]=i*l+o*c+u,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},e.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=e[0],c=e[1],h=e[2],f=e[3],p=e[4],d=e[5];return Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-h)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-p)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-d)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.exactEquals=e.str=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.conjugate=e.invert=e.lerp=e.dot=e.scale=e.mul=e.multiply=e.add=e.rotateAroundAxis=e.rotateByQuatPrepend=e.rotateByQuatAppend=e.rotateZ=e.rotateY=e.rotateX=e.translate=e.getTranslation=e.setDual=e.setReal=e.getDual=e.getReal=e.set=e.identity=e.copy=e.fromMat4=e.fromRotation=e.fromTranslation=e.fromRotationTranslation=e.fromRotationTranslationValues=e.fromValues=e.clone=e.create=void 0;var r=n(0),i=(0,r.__importStar)(n(29)),a=(0,r.__importStar)(n(166)),o=(0,r.__importStar)(n(165));function s(t,e,n){var r=.5*n[0],i=.5*n[1],a=.5*n[2],o=e[0],s=e[1],u=e[2],l=e[3];return t[0]=o,t[1]=s,t[2]=u,t[3]=l,t[4]=r*l+i*u-a*s,t[5]=i*l+a*o-r*u,t[6]=a*l+r*s-i*o,t[7]=-r*o-i*s-a*u,t}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function l(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[4],u=n[5],l=n[6],c=n[7],h=e[4],f=e[5],p=e[6],d=e[7],g=n[0],y=n[1],v=n[2],m=n[3];return t[0]=r*m+o*g+i*v-a*y,t[1]=i*m+o*y+a*g-r*v,t[2]=a*m+o*v+r*y-i*g,t[3]=o*m-r*g-i*y-a*v,t[4]=r*c+o*s+i*l-a*u+h*m+d*g+f*v-p*y,t[5]=i*c+o*u+a*s-r*l+f*m+d*y+p*g-h*v,t[6]=a*c+o*l+r*u-i*s+p*m+d*v+h*y-f*g,t[7]=o*c-r*s-i*u-a*l+d*m-h*g-f*y-p*v,t}e.create=function(){var t=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},e.clone=function(t){var e=new i.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e},e.fromValues=function(t,e,n,r,a,o,s,u){var l=new i.ARRAY_TYPE(8);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=a,l[5]=o,l[6]=s,l[7]=u,l},e.fromRotationTranslationValues=function(t,e,n,r,a,o,s){var u=new i.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=n,u[3]=r;var l=.5*a,c=.5*o,h=.5*s;return u[4]=l*r+c*n-h*e,u[5]=c*r+h*t-l*n,u[6]=h*r+l*e-c*t,u[7]=-l*t-c*e-h*n,u},e.fromRotationTranslation=s,e.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},e.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.fromMat4=function(t,e){var n=a.create();o.getRotation(n,e);var r=new i.ARRAY_TYPE(3);return o.getTranslation(r,e),s(t,n,r),t},e.copy=u,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.set=function(t,e,n,r,i,a,o,s,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t},e.getReal=a.copy,e.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},e.setReal=a.copy,e.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},e.getTranslation=function(t,e){var n=e[4],r=e[5],i=e[6],a=e[7],o=-e[0],s=-e[1],u=-e[2],l=e[3];return t[0]=2*(n*l+a*o+r*u-i*s),t[1]=2*(r*l+a*s+i*o-n*u),t[2]=2*(i*l+a*u+n*s-r*o),t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=.5*n[0],u=.5*n[1],l=.5*n[2],c=e[4],h=e[5],f=e[6],p=e[7];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=o*s+i*l-a*u+c,t[5]=o*u+a*s-r*l+h,t[6]=o*l+r*u-i*s+f,t[7]=-r*s-i*u-a*l+p,t},e.rotateX=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*o-c*i,p=l*s+h*i+c*r-u*o,d=c*s+h*o+u*i-l*r,g=h*s-u*r-l*i-c*o;return a.rotateX(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=f*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-f*o,t[6]=d*s+g*o+f*i-p*r,t[7]=g*s-f*r-p*i-d*o,t},e.rotateY=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*o-c*i,p=l*s+h*i+c*r-u*o,d=c*s+h*o+u*i-l*r,g=h*s-u*r-l*i-c*o;return a.rotateY(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=f*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-f*o,t[6]=d*s+g*o+f*i-p*r,t[7]=g*s-f*r-p*i-d*o,t},e.rotateZ=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],h=e[7],f=u*s+h*r+l*o-c*i,p=l*s+h*i+c*r-u*o,d=c*s+h*o+u*i-l*r,g=h*s-u*r-l*i-c*o;return a.rotateZ(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=f*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-f*o,t[6]=d*s+g*o+f*i-p*r,t[7]=g*s-f*r-p*i-d*o,t},e.rotateByQuatAppend=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=e[3];return t[0]=s*o+c*r+u*a-l*i,t[1]=u*o+c*i+l*r-s*a,t[2]=l*o+c*a+s*i-u*r,t[3]=c*o-s*r-u*i-l*a,s=e[4],u=e[5],l=e[6],c=e[7],t[4]=s*o+c*r+u*a-l*i,t[5]=u*o+c*i+l*r-s*a,t[6]=l*o+c*a+s*i-u*r,t[7]=c*o-s*r-u*i-l*a,t},e.rotateByQuatPrepend=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-r*l,t[2]=a*c+o*l+r*u-i*s,t[3]=o*c-r*s-i*u-a*l,s=n[4],u=n[5],l=n[6],c=n[7],t[4]=r*c+o*s+i*l-a*u,t[5]=i*c+o*u+a*s-r*l,t[6]=a*c+o*l+r*u-i*s,t[7]=o*c-r*s-i*u-a*l,t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)<i.EPSILON)return u(t,e);var a=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),s=o*n[0]/a,l=o*n[1]/a,c=o*n[2]/a,h=Math.cos(r),f=e[0],p=e[1],d=e[2],g=e[3];t[0]=f*h+g*s+p*c-d*l,t[1]=p*h+g*l+d*s-f*c,t[2]=d*h+g*c+f*l-p*s,t[3]=g*h-f*s-p*l-d*c;var y=e[4],v=e[5],m=e[6],_=e[7];return t[4]=y*h+_*s+v*c-m*l,t[5]=v*h+_*l+m*s-y*c,t[6]=m*h+_*c+y*l-v*s,t[7]=_*h-y*s-v*l-m*c,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t},e.multiply=l,e.mul=l,e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t},e.dot=a.dot,e.lerp=function(t,n,r,i){var a=1-i;return(0,e.dot)(n,r)<0&&(i=-i),t[0]=n[0]*a+r[0]*i,t[1]=n[1]*a+r[1]*i,t[2]=n[2]*a+r[2]*i,t[3]=n[3]*a+r[3]*i,t[4]=n[4]*a+r[4]*i,t[5]=n[5]*a+r[5]*i,t[6]=n[6]*a+r[6]*i,t[7]=n[7]*a+r[7]*i,t},e.invert=function(t,n){var r=(0,e.squaredLength)(n);return t[0]=-n[0]/r,t[1]=-n[1]/r,t[2]=-n[2]/r,t[3]=n[3]/r,t[4]=-n[4]/r,t[5]=-n[5]/r,t[6]=-n[6]/r,t[7]=n[7]/r,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t},e.length=a.length,e.len=e.length,e.squaredLength=a.squaredLength,e.sqrLen=e.squaredLength,e.normalize=function(t,n){var r=(0,e.squaredLength)(n);if(r>0){r=Math.sqrt(r);var i=n[0]/r,a=n[1]/r,o=n[2]/r,s=n[3]/r,u=n[4],l=n[5],c=n[6],h=n[7],f=i*u+a*l+o*c+s*h;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(u-i*f)/r,t[5]=(l-a*f)/r,t[6]=(c-o*f)/r,t[7]=(h-s*f)/r}return t},e.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=e[0],f=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-h)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-f)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-d)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-g)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(l-v)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(163);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c<h;c++){var f=e[c];switch(f[0]){case"t":i(l,l,[f[1],f[2]]);break;case"s":o(l,l,[f[1],f[2]]);break;case"r":a(l,l,f[1]);break;case"m":n=l,s=l,u=f[1],r.mat3.multiply(n,u,s)}}return l},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),a=s(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importStar)(n(169)),o=(0,r.__importStar)(n(170)),s=n(172),u=(0,r.__importStar)(n(158)),l=n(370),c=[1,0,0,0,1,0,0,0,1];function h(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var h=e.duration,f=e.easing;if(n=n-a-e.delay,e.repeat)r=n%h/h,r=o[f](r);else{if(!((r=n/h)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=o[f](r)}if(e.onFrame){var p=e.onFrame(r);t.attr(p)}else!function(t,e,n){var r={},a=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var h;for(var f in o)if(!(0,i.isEqual)(a[f],o[f]))if("path"===f){var p=o[f],d=a[f];p.length>d.length?(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.fillPathByDiff(d,p),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],_=0;_<y.length;_++)(0,i.isNumber)(y[_])&&v&&(0,i.isNumber)(v[_])?(h=(0,s.interpolate)(v[_],y[_]),m.push(h(n))):m.push(y[_]);r[f].push(m)}}else if("matrix"===f){var x=(0,s.interpolateArray)(a[f]||c,o[f]||c)(n);r[f]=x}else(0,l.isColorProp)(f)&&(0,l.isGradientColor)(o[f])?r[f]=o[f]:(0,i.isFunction)(o[f])||(h=(0,s.interpolate)(a[f],o[f]),r[f]=h(n));t.attr(r)}}(t,e,r);return!1}var f=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=a.timer((function(i){if(r.current=i,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],h(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(95);e.default=function(t,e,n){var i=new r.Timer;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(95);e.default=function(t,e,n){var i=new r.Timer,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?(0,r.now)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linear=void 0,e.linear=function(t){return+t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadInOut=e.quadOut=e.quadIn=void 0,e.quadIn=function(t){return t*t},e.quadOut=function(t){return t*(2-t)},e.quadInOut=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubicInOut=e.cubicOut=e.cubicIn=void 0,e.cubicIn=function(t){return t*t*t},e.cubicOut=function(t){return--t*t*t+1},e.cubicInOut=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyInOut=e.polyOut=e.polyIn=void 0;e.polyIn=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),e.polyOut=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),e.polyInOut=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sinInOut=e.sinOut=e.sinIn=void 0;var r=Math.PI,i=r/2;e.sinIn=function(t){return 1==+t?1:1-Math.cos(t*i)},e.sinOut=function(t){return Math.sin(t*i)},e.sinInOut=function(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expInOut=e.expOut=e.expIn=void 0;var r=n(171);e.expIn=function(t){return(0,r.tpmt)(1-+t)},e.expOut=function(t){return 1-(0,r.tpmt)(t)},e.expInOut=function(t){return((t*=2)<=1?(0,r.tpmt)(1-t):2-(0,r.tpmt)(t-1))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circleInOut=e.circleOut=e.circleIn=void 0,e.circleIn=function(t){return 1-Math.sqrt(1-t*t)},e.circleOut=function(t){return Math.sqrt(1- --t*t)},e.circleInOut=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bounceInOut=e.bounceOut=e.bounceIn=void 0;var r=7.5625;function i(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}e.bounceIn=function(t){return 1-i(1-t)},e.bounceOut=i,e.bounceInOut=function(t){return((t*=2)<=1?1-i(1-t):i(t-1)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backInOut=e.backOut=e.backIn=void 0;e.backIn=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),e.backOut=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),e.backInOut=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elasticInOut=e.elasticOut=e.elasticIn=void 0;var r=n(171),i=2*Math.PI;e.elasticIn=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return e*(0,r.tpmt)(- --t)*Math.sin((a-t)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return 1-e*(0,r.tpmt)(t=+t)*Math.sin((t+a)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticInOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return((t=2*t-1)<0?e*(0,r.tpmt)(-t)*Math.sin((a-t)/n):2-e*(0,r.tpmt)(t)*Math.sin((a+t)/n))/2}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var r=(0,n(0).__importStar)(n(98)),i=n(97),a=n(173),o=6/29,s=3*o*o;function u(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof v)return m(t);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e,n,r=d(t.r),a=d(t.g),o=d(t.b),s=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?e=n=s:(e=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-n),t.opacity)}function l(t,e,n,r){return 1===arguments.length?u(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function h(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function f(t){return t>o?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof v)return new v(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=u(t)),0===t.a&&0===t.b)return new v(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*a.rad2deg;return new v(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function y(t,e,n,r){return 1===arguments.length?g(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function m(t){if(isNaN(t.h))return new c(t.l,0,0,t.opacity);var e=t.h*a.deg2rad;return new c(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e.gray=function(t,e){return new c(t,0,0,null==e?1:e)},e.default=l,e.Lab=c,(0,r.default)(c,l,(0,r.extend)(i.Color,{brighter:function(t){return new c(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new c(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*f(e),t=1*f(t),n=.82521*f(n),new i.Rgb(p(3.1338561*e-1.6168667*t-.4906146*n),p(-.9787684*e+1.9161415*t+.033454*n),p(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),e.lch=function(t,e,n,r){return 1===arguments.length?g(t):new v(n,e,t,null==r?1:r)},e.hcl=y,e.Hcl=v,(0,r.default)(v,y,(0,r.extend)(i.Color,{brighter:function(t){return new v(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new v(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return m(this).rgb()}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cubehelix=void 0;var r=(0,n(0).__importStar)(n(98)),i=n(97),a=n(173),o=-.14861,s=1.78277,u=-.29227,l=-.90649,c=1.97294,h=c*l,f=c*s,p=s*u-l*o;function d(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(p*r+h*e-f*n)/(p+h-f),s=r-o,d=(c*(n-o)-u*s)/l,g=Math.sqrt(d*d+s*s)/(c*o*(1-o)),v=g?Math.atan2(d,s)*a.rad2deg-120:NaN;return new y(v<0?v+360:v,g,o,t.opacity)}function g(t,e,n,r){return 1===arguments.length?d(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.default=g,e.Cubehelix=y,(0,r.default)(y,g,(0,r.extend)(i.Color,{brighter:function(t){return t=null==t?i.brighter:Math.pow(i.brighter,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.darker:Math.pow(i.darker,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a.deg2rad,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),h=Math.sin(t);return new i.Rgb(255*(e+n*(o*r+s*h)),255*(e+n*(u*r+l*h)),255*(e+n*(c*r)),this.opacity)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49);e.default=function(t,e){var n=(0,r.hue)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interpolateTransformSvg=e.interpolateTransformCss=void 0;var r=(0,n(0).__importDefault)(n(69)),i=n(361);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],l=[];return o=t(o),s=t(s),function(t,i,a,o,s,u){if(t!==a||i!==o){var l=s.push("translate(",null,e,null,n);u.push({i:l-4,x:(0,r.default)(t,a)},{i:l-2,x:(0,r.default)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:(0,r.default)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,u,l),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:(0,r.default)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,u,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:(0,r.default)(t,n)},{i:u-2,x:(0,r.default)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,l),o=s=null,function(t){for(var e,n=-1,r=l.length;++n<r;)u[(e=l[n]).i]=e.x(t);return u.join("")}}}e.interpolateTransformCss=a(i.parseCss,"px, ","px)","deg)"),e.interpolateTransformSvg=a(i.parseSvg,", ",")",")")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseSvg=e.parseCss=void 0;var r,i,a,o,s=(0,n(0).__importStar)(n(362));e.parseCss=function(t){return"none"===t?s.identity:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),(0,s.default)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.parseSvg=function(t){return null==t?s.identity:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,(0,s.default)(t.a,t.b,t.c,t.d,t.e,t.f)):s.identity)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0;var r=180/Math.PI;e.identity={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},e.default=function(t,e,n,i,a,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}e.default=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],l=e[0],c=e[1],h=e[2],f=l-o,p=c-s,d=f*f+p*p;if(d<1e-12)a=Math.log(h/u)/r,n=function(t){return[o+t*f,s+t*p,u*Math.exp(r*t*a)]};else{var g=Math.sqrt(d),y=(h*h-u*u+4*d)/(2*u*2*g),v=(h*h-u*u-4*d)/(2*h*2*g),m=Math.log(Math.sqrt(y*y+1)-y),_=Math.log(Math.sqrt(v*v+1)-v);a=(_-m)/r,n=function(t){var e,n=t*a,l=i(m),c=u/(2*g)*(l*(e=r*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*f,s+c*p,u*l/i(r*n+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hslLong=void 0;var r=n(0),i=n(48),a=(0,r.__importStar)(n(49));function o(t){return function(e,n){var r=t((e=(0,i.hsl)(e)).h,(n=(0,i.hsl)(n)).h),o=(0,a.default)(e.s,n.s),s=(0,a.default)(e.l,n.l),u=(0,a.default)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e.default=o(a.hue),e.hslLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(48),a=(0,r.__importDefault)(n(49));e.default=function(t,e){var n=(0,a.default)((t=(0,i.lab)(t)).l,(e=(0,i.lab)(e)).l),r=(0,a.default)(t.a,e.a),o=(0,a.default)(t.b,e.b),s=(0,a.default)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=o(e),t.opacity=s(e),t+""}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hclLong=void 0;var r=n(0),i=n(48),a=(0,r.__importStar)(n(49));function o(t){return function(e,n){var r=t((e=(0,i.hcl)(e)).h,(n=(0,i.hcl)(n)).h),o=(0,a.default)(e.c,n.c),s=(0,a.default)(e.l,n.l),u=(0,a.default)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e.default=o(a.hue),e.hclLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelixLong=void 0;var r=n(0),i=n(48),a=(0,r.__importStar)(n(49));function o(t){return function e(n){function r(e,r){var o=t((e=(0,i.cubehelix)(e)).h,(r=(0,i.cubehelix)(r)).h),s=(0,a.default)(e.s,r.s),u=(0,a.default)(e.l,r.l),l=(0,a.default)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,r.gamma=e,r}(1)}e.default=o(a.hue),e.cubehelixLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isGradientColor=e.isColorProp=void 0;e.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)};e.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(159)),i=n(39),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&(0,i.isParent)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var u=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,a,o){var s=new r.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-t.clientX,c=o.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var u=this._getEventObj(t,e,n,r,i,a);if(r){u.shape=r,o(r,t,u);for(var l=r.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}((0,r.__importDefault)(n(161)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(162)),o=n(94),s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),u=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),l=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),r=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,y=h.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,_=i+p+g,x=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,_),r=Math.min(r,x),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBBoxMethod=void 0;var r=n(0),i=n(375);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=(0,r.__importDefault)(n(376)),o=(0,r.__importDefault)(n(377)),s=(0,r.__importDefault)(n(378)),u=(0,r.__importDefault)(n(384)),l=(0,r.__importDefault)(n(385)),c=(0,r.__importDefault)(n(386)),h=(0,r.__importDefault)(n(399)),f=(0,r.__importDefault)(n(400));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",u.default),(0,i.register)("text",l.default),(0,i.register)("path",c.default),(0,i.register)("line",h.default),(0,i.register)("ellipse",f.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),i=n(101);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var u=r.Util.getBBoxByArray(n,a),l=u.x,c=u.y,h={minX:l,minY:c,maxX:l+u.width,maxY:c+u.height};return{x:(h=(0,i.mergeArrowBBox)(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(70)),i=n(33),a=n(181);function o(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function s(t,e,n){var r=t+n-2*e;if((0,i.isNumberEqual)(r,0))return[.5];var a=(t-e)/r;return a<=1&&a>=0?[a]:[]}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function l(t,e,n,i,a,s,u){var l=o(t,n,a,u),c=o(e,i,s,u),h=r.default.pointAt(t,e,n,i,u),f=r.default.pointAt(n,i,a,s,u);return[[t,e,h.x,h.y,l,c],[l,c,f.x,f.y,a,s]]}e.default={box:function(t,e,n,r,a,u){var l=s(t,n,a)[0],c=s(e,r,u)[0],h=[t,a],f=[e,u];return void 0!==l&&h.push(o(t,n,a,l)),void 0!==c&&f.push(o(e,r,u,c)),(0,i.getBBoxByArray)(h,f)},length:function(t,e,n,r,a,o){return function t(e,n,r,a,o,s,u){if(0===u)return((0,i.distance)(e,n,r,a)+(0,i.distance)(r,a,o,s)+(0,i.distance)(e,n,o,s))/2;var c=l(e,n,r,a,o,s,.5),h=c[0],f=c[1];return h.push(u-1),f.push(u-1),t.apply(null,h)+t.apply(null,f)}(t,e,n,r,a,o,3)},nearestPoint:function(t,e,n,r,i,s,u,l){return(0,a.nearestPoint)([t,n,i],[e,r,s],u,l,o)},pointDistance:function(t,e,n,r,a,o,s,u){var l=this.nearestPoint(t,e,n,r,a,o,s,u);return(0,i.distance)(l.x,l.y,s,u)},interpolationAt:o,pointAt:function(t,e,n,r,i,a,s){return{x:o(t,n,i,s),y:o(e,r,a,s)}},divide:function(t,e,n,r,i,a,o){return l(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,a,o,s){var l=u(t,n,a,s),c=u(e,r,o,s),h=Math.atan2(c,l);return(0,i.piMod)(h)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(33),a=(0,r.__importDefault)(n(70)),o=n(181);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function u(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function l(t,e,n,r){var a,o,s,u=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,c=3*e-3*t,h=[];if((0,i.isNumberEqual)(u,0))(0,i.isNumberEqual)(l,0)||(a=-c/l)>=0&&a<=1&&h.push(a);else{var f=l*l-4*u*c;(0,i.isNumberEqual)(f,0)?h.push(-l/(2*u)):f>0&&(o=(-l-(s=Math.sqrt(f)))/(2*u),(a=(-l+s)/(2*u))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h}function c(t,e,n,r,i,o,u,l,c){var h=s(t,n,i,u,c),f=s(e,r,o,l,c),p=a.default.pointAt(t,e,n,r,c),d=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,u,l,c),y=a.default.pointAt(p.x,p.y,d.x,d.y,c),v=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,y.x,y.y,h,f],[h,f,v.x,v.y,g.x,g.y,u,l]]}e.default={extrema:l,box:function(t,e,n,r,a,o,u,c){for(var h=[t,u],f=[e,c],p=l(t,n,a,u),d=l(e,r,o,c),g=0;g<p.length;g++)h.push(s(t,n,a,u,p[g]));for(g=0;g<d.length;g++)f.push(s(e,r,o,c,d[g]));return(0,i.getBBoxByArray)(h,f)},length:function(t,e,n,r,i,a,s,u){return function t(e,n,r,i,a,s,u,l,h){if(0===h)return(0,o.snapLength)([e,r,a,u],[n,i,s,l]);var f=c(e,n,r,i,a,s,u,l,.5),p=f[0],d=f[1];return p.push(h-1),d.push(h-1),t.apply(null,p)+t.apply(null,d)}(t,e,n,r,i,a,s,u,3)},nearestPoint:function(t,e,n,r,i,a,u,l,c,h,f){return(0,o.nearestPoint)([t,n,i,u],[e,r,a,l],c,h,s,f)},pointDistance:function(t,e,n,r,a,o,s,u,l,c,h){var f=this.nearestPoint(t,e,n,r,a,o,s,u,l,c,h);return(0,i.distance)(f.x,f.y,l,c)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o,u,l){return{x:s(t,n,i,o,l),y:s(e,r,a,u,l)}},divide:function(t,e,n,r,i,a,o,s,u){return c(t,e,n,r,i,a,o,s,u)},tangentAngle:function(t,e,n,r,a,o,s,l,c){var h=u(t,n,a,s,c),f=u(e,r,o,l,c);return(0,i.piMod)(Math.atan2(f,h))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(33),a=(0,r.__importDefault)(n(382));function o(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function s(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function u(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function l(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}e.default={box:function(t,e,n,r,i,a,u){for(var l=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,h=-1/0,f=[a,u],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var d=l+p;a<u?a<d&&d<u&&f.push(d):u<d&&d<a&&f.push(d)}for(p=0;p<f.length;p++){var g=o(t,0,n,r,i,f[p]);g<c&&(c=g),g>h&&(h=g)}var y=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,m=-1/0,_=[a,u];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=y+p;a<u?a<x&&x<u&&_.push(x):u<x&&x<a&&_.push(x)}for(p=0;p<_.length;p++){var b=s(0,e,n,r,i,_[p]);b<v&&(v=b),b>m&&(m=b)}return{x:c,y:v,width:h-c,height:m-v}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,h){var f=l(c-t,h-e,-i),p=f[0],d=f[1],g=a.default.nearestPoint(0,0,n,r,p,d),y=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);y<o?g=u(n,r,o):y>s&&(g=u(n,r,s));var v=l(g.x,g.y,i);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,u,l){var c=this.nearestPoint(t,e,n,r,u,l);return(0,i.distance)(c.x,c.y,u,l)},pointAt:function(t,e,n,r,i,a,u,l){var c=(u-a)*l+a;return{x:o(t,0,n,r,i,c),y:s(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,u){var l=(s-o)*u+o,c=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,a,0,0,l),h=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,a,0,0,l);return(0,i.piMod)(Math.atan2(h,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){var s=n,u=r;if(0===s||0===u)return{x:t,y:e};for(var l,c,h=a-t,f=o-e,p=Math.abs(h),d=Math.abs(f),g=s*s,y=u*u,v=Math.PI/4,m=0;m<4;m++){l=s*Math.cos(v),c=u*Math.sin(v);var _=(g-y)*Math.pow(Math.cos(v),3)/s,x=(y-g)*Math.pow(Math.sin(v),3)/u,b=l-_,M=c-x,C=p-_,P=d-x,S=Math.hypot(M,b),O=Math.hypot(P,C);v+=S*Math.asin((b*P-M*C)/(S*O))/Math.sqrt(g+y-l*l-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+i(l,h),y:e+i(c,f)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return(0,r.distance)(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return(0,r.piMod)(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(182),a=(0,r.__importDefault)(n(183));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return a.default.box(t)},length:function(t){return(0,i.lengthOfSegment)(o(t))},pointAt:function(t,e){return(0,i.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return(0,i.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),i.push(o[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(184);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,u=e.font;u||(u=(0,r.assembleFont)(e));var l,c=(0,r.getTextWidth)(a,u);if(c){var h=e.textAlign,f=e.textBaseline,p=(0,r.getTextHeight)(a,o,s),d={x:n,y:i-p};h&&("end"===h||"right"===h?d.x-=c:"center"===h&&(d.x-=c/2)),f&&("top"===f?d.y+=p:"middle"===f&&(d.y+=p/2)),l={x:d.x,y:d.y,width:c,height:p}}else l={x:n,y:i,width:0,height:0};return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),i=n(40),a=n(1),o=n(101);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+s-u)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!l||0===Math.sin(l)||(0,a.isNumberEqual)(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),h=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var n=[],i=[],o=[],u=0;u<t.length;u++){var l=(m=t[u]).currentPoint,c=m.params,h=m.prePoint,f=void 0;switch(m.command){case"Q":f=r.Quad.box(h[0],h[1],c[1],c[2],c[3],c[4]);break;case"C":f=r.Cubic.box(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;f=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(l[0]),i.push(l[1])}f&&(m.box=f,n.push(f.x,f.x+f.width),i.push(f.y,f.y+f.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var d=(0,a.min)(n),g=(0,a.min)(i),y=(0,a.max)(n),v=(0,a.max)(i);if(0===o.length)return{x:d,y:g,width:y-d,height:v-g};for(u=0;u<o.length;u++){var m;(l=(m=o[u]).currentPoint)[0]===d?d-=s(m,e).xExtra:l[0]===y&&(y+=s(m,e).xExtra),l[1]===g?g-=s(m,e).yExtra:l[1]===v&&(v+=s(m,e).yExtra)}return{x:d,y:g,width:y-d,height:v-g}}(t.get("segments")||(0,i.path2Segments)(n),u),c=l.x,h=l.y,f={minX:c,minY:h,maxX:c+l.width,maxY:h+l.height};return{x:(f=(0,o.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){"use strict";function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,u=0;u<n-1;u++){var l=r(o,s/(1-s*u));a.push(l.left),o=l.right}return a.push(o),a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(s=0;s<r;s++){var u=Math.floor(a*s);o[u]=(o[u]||0)+1}var l=o.reduce((function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}e.default=function(t,e){var n=function(t,e){var n,a,o=t.length,s=e.length,u=0;if(0===o||0===s)return null;for(var l=[],c=0;c<=o;c++)l[c]=[],l[c][0]={min:c};for(var h=0;h<=s;h++)l[0][h]={min:h};for(c=1;c<=o;c++){n=t[c-1];for(h=1;h<=s;h++){a=e[h-1],u=(0,r.isEqual)(n,a)?0:1;var f=l[c-1][h].min+1,p=l[c][h-1].min+1,d=l[c-1][h-1].min+u;l[c][h]=i(f,p,d)}}return l}(t,e),a=t.length,o=e.length,s=[],u=1,l=1;if(n[a][o]!==a){for(var c=1;c<=a;c++){var h=n[c][c].min;l=c;for(var f=u;f<=o;f++)n[c][f].min<h&&(h=n[c][f].min,l=f);u=l,n[c][u].type&&s.push({index:c-1,type:n[c][u].type})}for(c=s.length-1;c>=0;c--)u=s[c].index,"add"===s[c].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(c=0;c<o-a;c++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){"use strict";function r(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,n){for(var i,a=[].concat(t),o=1/(n+1),s=r(e)[0],u=1;u<=n;u++)o*=u,0===(i=Math.floor(t.length*o))?a.unshift([s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]):a.splice(i,0,[s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]);return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t.length<=1)return t;for(var n,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(n=r(t[a]),e[a][0]){case"M":t[a]=["M"].concat(n[0]);break;case"L":t[a]=["L"].concat(n[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=n[0][0],t[a][7]=n[0][1];break;case"Q":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],2)}t[a]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(187)),o=(0,r.__importDefault)(n(188)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},u=function(t,e,n,r,i,a,o,u,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=c*h[d]+c,y=s(g,t,n,i,o),v=s(g,e,r,a,u),m=y*y+v*v;p+=f[d]*Math.sqrt(m)}return c*p},l=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,y=Math.sqrt(g);if(!(g<0)){var v=(-l+y)/(2*u);v>0&&v<1&&f.push(v);var m=(-l-y)/(2*u);m>0&&m<1&&f.push(m)}}for(var _,x=f.length,b=x;x--;)_=1-(h=f[x]),p[0][x]=_*_*_*t+3*_*_*h*n+3*_*h*h*i+h*h*h*o,p[1][x]=_*_*_*e+3*_*_*h*r+3*_*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},h=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},f=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,a.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,u){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,u]);var c=l.apply(null,t);return f(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=f(t),e=f(e),h(e,t.x,t.y)||h(e,t.x2,t.y)||h(e,t.x,t.y2)||h(e,t.x2,t.y2)||h(t,e.x,e.y)||h(t,e.x2,e.y)||h(t,e.x,e.y2)||h(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(p(t),p(e)))return n?0:[];for(var r=~~(u.apply(0,t)/8),i=~~(u.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],g=0;g<r+1;g++){var y=d.apply(0,t.concat(g/r));a.push({x:y.x,y:y.y,t:g/r})}for(g=0;g<i+1;g++){y=d.apply(0,e.concat(g/i));o.push({x:y.x,y:y.y,t:g/i})}for(g=0;g<r;g++)for(var v=0;v<i;v++){var m=a[g],_=a[g+1],x=o[v],b=o[v+1],M=Math.abs(_.x-m.x)<.001?"y":"x",C=Math.abs(b.x-x.x)<.001?"y":"x",P=c(m.x,m.y,_.x,_.y,x.x,x.y,b.x,b.y);if(P){if(s[P.x.toFixed(4)]===P.y.toFixed(4))continue;s[P.x.toFixed(4)]=P.y.toFixed(4);var S=m.t+Math.abs((P[M]-m[M])/(_[M]-m[M]))*(_.t-m.t),O=x.t+Math.abs((P[C]-x[C])/(b[C]-x[C]))*(b.t-x.t);S>=0&&S<=1&&O>=0&&O<=1&&(n?l++:l.push({x:P.x,y:P.y,t1:S,t2:O}))}}return l};e.default=function(t,e){return function(t,e,n){var r,i,a,s,u,l,c,h,f,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var d=n?0:[],y=0,v=t.length;y<v;y++){var m=t[y];if("M"===m[0])r=u=m[1],i=l=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,l,u,l],r=u,i=l);for(var _=0,x=e.length;_<x;_++){var b=e[_];if("M"===b[0])a=c=b[1],s=h=b[2];else{"C"===b[0]?(p=[a,s].concat(b.slice(1)),a=p[6],s=p[7]):(p=[a,s,a,s,c,h,c,h],a=c,s=h);var M=g(f,p,n);if(n)d+=M;else{for(var C=0,P=M.length;C<P;C++)M[C].segment1=y,M[C].segment2=_,M[C].bez1=f,M[C].bez2=p;d=d.concat(M)}}}}}return d}(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.segmentToCubic=void 0;var r=n(393),i=n(394),a=n(395);e.segmentToCubic=function(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),o=n[0],s=n[1];switch(t[0]){case"M":return e.x=o,e.y=s,t;case"A":return["C"].concat(r.arcToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=o,e.qy=s,["C"].concat(i.quadToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x,e.y))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arcToCubic=void 0;var r=2*Math.PI,i=function(t,e,n,r,i,a,o){var s=t.x,u=t.y;return{x:r*(s*=e)-i*(u*=n)+a,y:i*s+r*u+o}},a=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},o=function(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,n=t.py,s=t.cx,u=t.cy,l=t.rx,c=t.ry,h=t.xAxisRotation,f=void 0===h?0:h,p=t.largeArcFlag,d=void 0===p?0:p,g=t.sweepFlag,y=void 0===g?0:g,v=[];if(0===l||0===c)return[];var m=Math.sin(f*r/360),_=Math.cos(f*r/360),x=_*(e-s)/2+m*(n-u)/2,b=-m*(e-s)/2+_*(n-u)/2;if(0===x&&0===b)return[];l=Math.abs(l),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(l,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(l*=Math.sqrt(M),c*=Math.sqrt(M));var C=function(t,e,n,i,a,s,u,l,c,h,f,p){var d=Math.pow(a,2),g=Math.pow(s,2),y=Math.pow(f,2),v=Math.pow(p,2),m=d*g-d*v-g*y;m<0&&(m=0),m/=d*v+g*y;var _=(m=Math.sqrt(m)*(u===l?-1:1))*a/s*p,x=m*-s/a*f,b=h*_-c*x+(t+n)/2,M=c*_+h*x+(e+i)/2,C=(f-_)/a,P=(p-x)/s,S=(-f-_)/a,O=(-p-x)/s,w=o(1,0,C,P),A=o(C,P,S,O);return 0===l&&A>0&&(A-=r),1===l&&A<0&&(A+=r),[b,M,w,A]}(e,n,s,u,l,c,d,y,m,_,x,b),P=C[0],S=C[1],O=C[2],w=C[3],A=Math.abs(w)/(r/4);Math.abs(1-A)<1e-7&&(A=1);var T=Math.max(Math.ceil(A),1);w/=T;for(var E=0;E<T;E++)v.push(a(O,w)),O+=w;return v.map((function(t){var e=i(t[0],l,c,_,m,P,S),n=e.x,r=e.y,a=i(t[1],l,c,_,m,P,S),o=a.x,s=a.y,u=i(t[2],l,c,_,m,P,S);return{x1:n,y1:r,x2:o,y2:s,x:u.x,y:u.y}}))};e.arcToCubic=function(t,e,n,r,i,a,o,u,l){return s({px:t,py:e,cx:u,cy:l,rx:n,ry:r,xAxisRotation:i,largeArcFlag:a,sweepFlag:o}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.x,s=e.y;return t.push(n,r,i,a,o,s),t}),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadToCubic=void 0,e.quadToCubic=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineToCubic=void 0,e.lineToCubic=function(t,e,n,r){return[t,e,n,r,n,r]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=/,?([a-z]),?/gi;e.default=function(t){return t.join(",").replace(r,"$1")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(102)),a=n(102),o=(0,r.__importDefault)(n(186));function s(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){for(var e=[],n=null,r=null,u=null,l=0,c=(t=(0,o.default)(t)).length,h=0;h<c;h++){var f=t[h];r=t[h+1];var p=f[0],d={command:p,prePoint:n,params:f,startTangent:null,endTangent:null};switch(p){case"M":u=[f[1],f[2]],l=h;break;case"A":var g=(0,i.default)(n,f);d.arcParams=g}if("Z"===p)n=u,r=t[l+1];else{var y=f.length;n=[f[y-2],f[y-1]]}r&&"Z"===r[0]&&(r=t[l],e[l]&&(e[l].prePoint=n)),d.currentPoint=n,e[l]&&(0,a.isSamePoint)(n,e[l].currentPoint)&&(e[l].prePoint=d.prePoint);var v=r?[r[r.length-2],r[r.length-1]]:null;d.nextPoint=v;var m=d.prePoint;if(["L","H","V"].includes(p))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===p){var _=[f[1],f[2]];d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]}else if("T"===p){_=s((M=e[h-1]).currentPoint,m);"Q"===M.command?(d.command="Q",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===p){var x=[f[1],f[2]],b=[f[3],f[4]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]],0===d.startTangent[0]&&0===d.startTangent[1]&&(d.startTangent=[x[0]-b[0],x[1]-b[1]]),0===d.endTangent[0]&&0===d.endTangent[1]&&(d.endTangent=[b[0]-x[0],b[1]-x[1]])}else if("S"===p){var M;x=s((M=e[h-1]).currentPoint,m),b=[f[1],f[2]];"C"===M.command?(d.command="C",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]]):(d.command="SQ",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===p){var C=.001,P=d.arcParams||{},S=P.cx,O=void 0===S?0:S,w=P.cy,A=void 0===w?0:w,T=P.rx,E=void 0===T?0:T,I=P.ry,L=void 0===I?0:I,D=P.sweepFlag,B=void 0===D?0:D,j=P.startAngle,k=void 0===j?0:j,R=P.endAngle,F=void 0===R?0:R;0===B&&(C*=-1);var N=E*Math.cos(k-C)+O,G=L*Math.sin(k-C)+A;d.startTangent=[N-u[0],G-u[1]];var Y=E*Math.cos(k+F+C)+O,V=L*Math.sin(k+F-C)+A;d.endTangent=[m[0]-Y,m[1]-V]}e.push(d)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(192)),a=(0,r.__importDefault)(n(191)),o=n(1);function s(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],a=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function u(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var n,r,l=u(t),c=u(e);if(n=l,(r=c).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var h=!1;if((0,o.each)(e,(function(e){if((0,i.default)(t,e[0],e[1]))return h=!0,!1})),h)return!0;if((0,o.each)(t,(function(t){if((0,i.default)(e,t[0],t[1]))return h=!0,!1})),h)return!0;var f=s(t),p=s(e),d=!1;return(0,o.each)(p,(function(t){if(function(t,e){var n=!1;return(0,o.each)(t,(function(t){if((0,a.default)(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(f,t))return d=!0,!1})),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(101);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=(0,r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(25),i=(0,r.__importDefault)(n(50));e.Adjust=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAdjust=o;e.registerAdjust=function(t,e){if(o(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e},(0,r.__exportStar)(n(194),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(25),i=n(25),a=(0,r.__importStar)(n(1)),o=n(103),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.MARGIN_RATIO:r,a=e.dodgeRatio,s=void 0===a?o.DODGE_RATIO:a,u=e.dodgeBy,l=e.intervalPadding,c=e.dodgePadding,h=e.xDimensionLength,f=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,y=e.columnWidthRatio;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=u,n.intervalPadding=l,n.dodgePadding=c,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e),r=this.dodgeBy,i=r?a.group(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,o=this.getDistribution(t),s=this.groupData(n,t);return a.each(s,(function(n,s){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(s),e),a.each(n,(function(e){var n=e[t],a=o[n],s=a.indexOf(r);e[t]=i.getDodgeOffset(u,s,a.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this.dodgeRatio,o=this.marginRatio,s=this.intervalPadding,u=this.dodgePadding,l=t.pre,c=t.next,h=c-l;if(!a.isNil(s)&&a.isNil(u)&&s>=0)r=l+this.getIntervalOnlyOffset(n,e);else if(!a.isNil(u)&&a.isNil(s)&&u>=0){r=l+this.getDodgeOnlyOffset(n,e)}else if(!a.isNil(s)&&!a.isNil(u)&&s>=0&&u>=0){r=l+this.getIntervalAndDodgeOffset(n,e)}else{var f=h*i/n,p=o*f;r=(l+c)/2+(.5*(h-n*f-(n-1)*p)+((e+1)*f+e*p)-.5*f-.5*h)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,u=n.dodgeRatio,l=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,f=i/o,p=(1-(s-1)*f)/s*u/(t-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=a.isNil(h)?d:1/s/t*h,!a.isNil(l)){var g=l/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*(p=((1-(s-1)*f)/s-t*d)/(t-1))+.5*f)*s-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,u=n.marginRatio,l=n.maxColumnWidth,c=n.minColumnWidth,h=n.columnWidthRatio,f=i/o,p=1*u/(s-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=h?1/s/t*h:d,!a.isNil(l)){var g=l/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*f+.5*(p=(1-(d*t+f*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},a.each(e,(function(e,n){var i=a.valuesOfKey(e,t);i.length||i.push(0),a.each(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}((0,r.__importDefault)(n(50)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(25),i=n(25),a=(0,r.__importStar)(n(1)),o=n(103);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return a.each(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return a.each(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}((0,r.__importDefault)(n(50)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(25),i=n(25),a=(0,r.__importStar)(n(1)),o=(0,r.__importDefault)(n(50)),s=a.Cache,u=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,u=void 0===s?10:s,l=e.reverseOrder,c=void 0!==l&&l;return n.adjustNames=i,n.height=o,n.size=u,n.reverseOrder=c,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,o=new s,u=new s;return r.map((function(t){return t.map((function(t){var r,s=a.get(t,e,0),l=a.get(t,[n]),c=s.toString();if(l=a.isArray(l)?l[1]:l,!a.isNil(l)){var h=l>=0?o:u;h.has(c)||h.set(c,0);var f=h.get(c),p=l+f;return h.set(c,p),(0,i.__assign)((0,i.__assign)({},t),((r={})[n]=[f,p],r))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,a=this.reverseOrder,o=a?this.reverse(t):t,u=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],l=2*o/r;u.has(s)||u.set(s,l/2);var c=u.get(s);return u.set(s,c+l),(0,i.__assign)((0,i.__assign)({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(25),i=n(25),a=(0,r.__importStar)(n(1)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.flatten(t),n=this.xField,r=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return a.map(t,(function(t){return a.map(t,(function(t){var e,u,l=t[r],c=t[n];if(a.isArray(l)){var h=(s-o[c])/2;return(0,i.__assign)((0,i.__assign)({},t),((e={})[r]=a.map(l,(function(t){return h+t})),e))}var f=(s-l)/2;return(0,i.__assign)((0,i.__assign)({},t),((u={})[r]=[f,l+f],u))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=a.groupBy(t,(function(t){return t[n]}));return a.mapValues(i,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=a.map(t,(function(t){return a.get(t,e,[])})),r=a.flatten(n);return Math.max.apply(Math,r)},e}((0,r.__importDefault)(n(50)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(20),a=(0,r.__importDefault)(n(71)),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,o.isString)(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}((0,r.__importDefault)(n(41)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(20),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return(0,i.__extends)(e,t),e}((0,r.__importDefault)(n(41)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(20),a=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),(0,a.isArray)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}((0,r.__importDefault)(n(41)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(20),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}((0,r.__importDefault)(n(41)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(20),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return(0,i.__extends)(e,t),e}((0,r.__importDefault)(n(41)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.registerAttribute=e.getAttribute=void 0;var r=n(20),i=(0,r.__importDefault)(n(41));e.Attribute=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAttribute=o;e.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},(0,r.__exportStar)(n(195),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(72),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,o.toTimeStamp)(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,a.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):(0,o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,a.each)(e,(function(t,n){e[n]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}((0,r.__importDefault)(n(197)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){return function(e,n,i,a){for(var o=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(a)?e.length:a;o<s;){var u=o+s>>>1;t(e[u])>n?s=u:o=u+1}return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(74),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,a.log)(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t<u)return t/u*s}else e=(0,a.log)(n,this.min);var l=(t-i)/o*(r-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=(0,a.getLogPositiveMin)(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/((0,a.log)(r,e)-(0,a.log)(r,n)):((0,a.log)(r,t)-(0,a.log)(r,n))/((0,a.log)(r,e)-(0,a.log)(r,n))},e}((0,r.__importDefault)(n(73)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(74),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=(0,a.calBase)(n,this.max),i=(0,a.calBase)(n,this.min),o=e*(r-i)+i,s=o>=0?1:-1;return Math.pow(o,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return((0,a.calBase)(r,t)-(0,a.calBase)(r,n))/((0,a.calBase)(r,e)-(0,a.calBase)(r,n))},e}((0,r.__importDefault)(n(73)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(72),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return(0,o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=i,u=0;(0,a.each)(t,(function(t){var e=(0,o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),u<e&&(u=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=u)}},e}((0,r.__importDefault)(n(199)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}((0,r.__importDefault)(n(200)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var r=(0,n(0).__importDefault)(n(59));e.Scale=r.default;var i={};function a(t){return i[t]}e.getScale=a,e.registerScale=function(t,e){if(a(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}((0,r.__importDefault)(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r=n(0),i=(0,r.__importDefault)(n(201)),a=(0,r.__importDefault)(n(421)),o=(0,r.__importDefault)(n(423)),s=(0,r.__importDefault)(n(424)),u=(0,r.__importDefault)(n(425)),l=(0,r.__importDefault)(n(426)),c=(0,r.__importDefault)(n(427)),h=n(196);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return h.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return h.registerTickMethod}});var f=(0,r.__importDefault)(n(428)),p=(0,r.__importDefault)(n(429)),d=(0,r.__importDefault)(n(430));(0,h.registerTickMethod)("cat",i.default),(0,h.registerTickMethod)("time-cat",p.default),(0,h.registerTickMethod)("wilkinson-extended",o.default),(0,h.registerTickMethod)("r-pretty",c.default),(0,h.registerTickMethod)("time",f.default),(0,h.registerTickMethod)("time-pretty",d.default),(0,h.registerTickMethod)("log",s.default),(0,h.registerTickMethod)("pow",u.default),(0,h.registerTickMethod)("quantile",l.default),(0,h.registerTickMethod)("d3-linear",a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(422)),o=(0,r.__importDefault)(n(106)),s=(0,r.__importDefault)(n(107));e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,u=t.minLimit,l=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(u)&&(0,i.isNil)(l)?r?(0,o.default)(e,n,r).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,u=this._domain[a],l=this._domain[o];return l<u&&(u=(e=[l,u])[0],l=e[1],a=(n=[o,a])[0],o=n[1]),(r=s(u,l,t))>0?r=s(u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r,t):r<0&&(r=s(u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r,t)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(l/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(l*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,u=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(o=s(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u<i;)a[u]=(t+u)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++u<i;)a[u]=(t-u)/o;r&&a.reverse();return a}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function s(t,e,n){var o=(e-t)/Math.max(0,n),s=Math.floor(Math.log(o)/Math.LN10),u=o/Math.pow(10,s);return s>=0?(u>=r?10:u>=i?5:u>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=i?5:u>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(202)),o=(0,r.__importDefault)(n(106)),s=(0,r.__importDefault)(n(107));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,u=t.nice,l=t.tickInterval,c=t.minLimit,h=t.maxLimit,f=(0,a.default)(e,n,r,u).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(h)?l?(0,o.default)(e,n,l).ticks:f:(0,s.default)(t,(0,i.head)(f),(0,i.last)(f))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(74);e.default=function(t){var e,n=t.base,i=t.tickCount,a=t.min,o=t.max,s=t.values,u=(0,r.log)(n,o);if(a>0)e=Math.floor((0,r.log)(n,a));else{var l=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,l))}for(var c=u-e,h=Math.ceil(c/i),f=[],p=e;p<u+h;p+=h)f.push(Math.pow(n,p));return a<=0&&f.unshift(0),f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(74),a=(0,r.__importDefault)(n(203));e.default=function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil((0,i.calBase)(e,t.max)),o=Math.floor((0,i.calBase)(e,t.min));return(0,a.default)(o,r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),a=[],o=0;o<e;o++){var s=o/(e-1);a.push(r(i,s))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(106)),o=(0,r.__importDefault)(n(203)),s=(0,r.__importDefault)(n(107));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,u=t.tickInterval,l=t.minLimit,c=t.maxLimit,h=(0,o.default)(e,n,r).ticks;return(0,i.isNil)(l)&&(0,i.isNil)(c)?u?(0,a.default)(e,n,u).ticks:h:(0,s.default)(t,(0,i.head)(h),(0,i.last)(h))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(72);e.default=function(t){var e=t.min,n=t.max,i=t.minTickInterval,a=t.tickInterval,o=t.tickCount;if(a)o=Math.ceil((n-e)/a);else{var s=(n-e)/(a=(0,r.getTickInterval)(e,n,o)[1])/o;s>1&&(a*=Math.ceil(s)),i&&a<i&&(a=i)}for(var u=[],l=e;l<n+a;l+=a)u.push(l);return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(201));e.default=function(t){var e=(0,a.default)(t),n=(0,i.last)(t.values);return n!==(0,i.last)(e)&&e.push(n),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(72);function i(t){return new Date(t).getFullYear()}function a(t){return new Date(t,0,1).getTime()}function o(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}e.default=function(t){var e=t.min,n=t.max,u=t.minTickInterval,l=t.tickCount,c=t.tickInterval,h=[];c||(c=(n-e)/l,u&&c<u&&(c=u));var f=i(e);if(c>r.YEAR)for(var p=i(n),d=Math.ceil(c/r.YEAR),g=f;g<=p+d;g+=d)h.push(a(g));else if(c>r.MONTH){var y=Math.ceil(c/r.MONTH),v=o(e),m=function(t,e){var n=i(t),r=i(e),a=o(t);return 12*(r-n)+(o(e)-a)%12}(e,n);for(g=0;g<=m+y;g+=y)h.push(s(f,g+v))}else if(c>r.DAY){var _=(P=new Date(e)).getFullYear(),x=P.getMonth(),b=P.getDate(),M=Math.ceil(c/r.DAY),C=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;g<C+M;g+=M)h.push(new Date(_,x,b+g).getTime())}else if(c>r.HOUR){_=(P=new Date(e)).getFullYear(),x=P.getMonth(),M=P.getDate();var P,S=P.getHours(),O=Math.ceil(c/r.HOUR),w=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=w+O;g+=O)h.push(new Date(_,x,M,S+g).getTime())}else if(c>r.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),T=Math.ceil(c/r.MINUTE);for(g=0;g<=A+T;g+=T)h.push(e+g*r.MINUTE)}else{var E=c;E<r.SECOND&&(E=r.SECOND);var I=Math.floor(e/r.SECOND)*r.SECOND,L=Math.ceil((n-e)/r.SECOND),D=Math.ceil(E/r.SECOND);for(g=0;g<L+D;g+=D)h.push(I+g*r.SECOND)}return h.length>=512&&console.warn("Notice: current ticks length("+h.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinate=e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i=(0,r.__importDefault)(n(75));e.Coordinate=i.default;var a=(0,r.__importDefault)(n(432)),o=(0,r.__importDefault)(n(433)),s=(0,r.__importDefault)(n(434)),u=n(435);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return u.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return u.registerCoordinate}}),(0,u.registerCoordinate)("rect",a.default),(0,u.registerCoordinate)("cartesian",a.default),(0,u.registerCoordinate)("polar",s.default),(0,u.registerCoordinate)("helix",o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}((0,r.__importDefault)(n(75)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(7),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=u,n.radius=l,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)<s&&(s=a.vec2.length(r)),i=2*Math.floor((a.vec2.length(r)-s)/n)*Math.PI+i;var u=this.a*i,l=a.vec2.length(r)-u;l=(0,o.isNumberEqual)(l,0)?0:l;var c=this.invertDim(i,"x"),h=this.invertDim(l,"y");return c=(0,o.isNumberEqual)(c,0)?0:c,h=(0,o.isNumberEqual)(h,0)?0:h,this.isTransposed&&(c=(e=[h,c])[0],h=e[1]),{x:c,y:h}},e}((0,r.__importDefault)(n(75)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(7),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=u,n.radius=l,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,a=Math.abs(n.minX)/r,o=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var u=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(u,u,i);var l=[1,0,0];a.vec3.transformMat3(l,l,u);var c=[l[0],l[1]],h=a.ext.angleTo(c,r,s<i);(0,o.isNumberEqual)(h,2*Math.PI)&&(h=0);var f=a.vec2.length(r),p=h/(s-i);p=s-i>0?p:-p;var d=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}((0,r.__importDefault)(n(75)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i={};e.getCoordinate=function(t){return i[t.toLowerCase()]};e.registerCoordinate=function(t,e){i[t.toLowerCase()]=e},(0,r.__exportStar)(n(436),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Shape=e.RegionFilter=e.DataRegion=e.DataMarker=e.Image=e.Region=e.Arc=e.Text=e.Line=void 0;var i=n(438);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(458);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(a).default}});var o=n(459);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return r(o).default}});var s=n(460);Object.defineProperty(e,"Region",{enumerable:!0,get:function(){return r(s).default}});var u=n(461);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(u).default}});var l=n(462);Object.defineProperty(e,"DataMarker",{enumerable:!0,get:function(){return r(l).default}});var c=n(463);Object.defineProperty(e,"DataRegion",{enumerable:!0,get:function(){return r(c).default}});var h=n(464);Object.defineProperty(e,"RegionFilter",{enumerable:!0,get:function(){return r(h).default}});var f=n(465);Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return r(f).default}});var p=n(466);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(p).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=n(76),u=(0,r.__importDefault)(n(19)),l=n(9),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u.default.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,i.__assign)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:(0,a.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,a.isNumber)(n)?n:1)>1||r<0)&&(r=1),{x:(0,l.getValueByPercent)(t.x,e.x,r),y:(0,l.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,u=e.offsetX,l=e.offsetY,c=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,y=void 0!==g&&g,v=this.getLabelPoint(n,r,i),m=v.x+u,_=v.y+l,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:_,content:a,style:o,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:y};if(c){var b=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(b[1],b[0])}(0,s.renderTag)(t,x)},e}(o.default);e.default=c},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(92),o=(0,r.__importDefault)(n(209)),s=n(42),u=(0,r.__importDefault)(n(442)),l=(0,r.__importDefault)(n(444)),c=(0,a.detect)(),h=c&&"firefox"===c.name,f=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new l.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new u.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(h&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importStar)(n(169)),o=(0,r.__importStar)(n(170)),s=n(172),u=(0,r.__importStar)(n(206)),l=n(443),c=[1,0,0,0,1,0,0,0,1];function h(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var h=e.duration,f=e.easing;if(n=n-a-e.delay,e.repeat)r=n%h/h,r=o[f](r);else{if(!((r=n/h)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=o[f](r)}if(e.onFrame){var p=e.onFrame(r);t.attr(p)}else!function(t,e,n){var r={},a=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var h;for(var f in o)if(!(0,i.isEqual)(a[f],o[f]))if("path"===f){var p=o[f],d=a[f];p.length>d.length?(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.fillPathByDiff(d,p),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(o[f]),d=u.parsePathString(a[f]),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],_=0;_<y.length;_++)(0,i.isNumber)(y[_])&&v&&(0,i.isNumber)(v[_])?(h=(0,s.interpolate)(v[_],y[_]),m.push(h(n))):m.push(y[_]);r[f].push(m)}}else if("matrix"===f){var x=(0,s.interpolateArray)(a[f]||c,o[f]||c)(n);r[f]=x}else(0,l.isColorProp)(f)&&(0,l.isGradientColor)(o[f])?r[f]=o[f]:(0,i.isFunction)(o[f])||(h=(0,s.interpolate)(a[f],o[f]),r[f]=h(n));t.attr(r)}}(t,e,r);return!1}var f=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=a.timer((function(i){if(r.current=i,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],h(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isGradientColor=e.isColorProp=void 0;e.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)};e.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(0).__importDefault)(n(207)),i=n(42),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&(0,i.isParent)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var u=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,a,o){var s=new r.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=o.clientX-t.clientX,c=o.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var u=this._getEventObj(t,e,n,r,i,a);if(r){u.shape=r,o(r,t,u);for(var l=r.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}((0,r.__importDefault)(n(209)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(210)),o=n(108),s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),u=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),l=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),r=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,y=h.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,_=i+p+g,x=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,_),r=Math.min(r,x),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBBoxMethod=void 0;var r=n(0),i=n(448);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=(0,r.__importDefault)(n(449)),o=(0,r.__importDefault)(n(450)),s=(0,r.__importDefault)(n(451)),u=(0,r.__importDefault)(n(452)),l=(0,r.__importDefault)(n(453)),c=(0,r.__importDefault)(n(454)),h=(0,r.__importDefault)(n(455)),f=(0,r.__importDefault)(n(456));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",u.default),(0,i.register)("text",l.default),(0,i.register)("path",c.default),(0,i.register)("line",h.default),(0,i.register)("ellipse",f.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),i=n(109);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var u=r.Util.getBBoxByArray(n,a),l=u.x,c=u.y,h={minX:l,minY:c,maxX:l+u.width,maxY:c+u.height};return{x:(h=(0,i.mergeArrowBBox)(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),i.push(o[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(211);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,u=e.font;u||(u=(0,r.assembleFont)(e));var l,c=(0,r.getTextWidth)(a,u);if(c){var h=e.textAlign,f=e.textBaseline,p=(0,r.getTextHeight)(a,o,s),d={x:n,y:i-p};h&&("end"===h||"right"===h?d.x-=c:"center"===h&&(d.x-=c/2)),f&&("top"===f?d.y+=p:"middle"===f&&(d.y+=p/2)),l={x:d.x,y:d.y,width:c,height:p}}else l={x:n,y:i,width:0,height:0};return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),i=n(40),a=n(1),o=n(109);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+s-u)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!l||0===Math.sin(l)||(0,a.isNumberEqual)(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),h=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(h-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var n=[],i=[],o=[],u=0;u<t.length;u++){var l=(m=t[u]).currentPoint,c=m.params,h=m.prePoint,f=void 0;switch(m.command){case"Q":f=r.Quad.box(h[0],h[1],c[1],c[2],c[3],c[4]);break;case"C":f=r.Cubic.box(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;f=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(l[0]),i.push(l[1])}f&&(m.box=f,n.push(f.x,f.x+f.width),i.push(f.y,f.y+f.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var d=(0,a.min)(n),g=(0,a.min)(i),y=(0,a.max)(n),v=(0,a.max)(i);if(0===o.length)return{x:d,y:g,width:y-d,height:v-g};for(u=0;u<o.length;u++){var m;(l=(m=o[u]).currentPoint)[0]===d?d-=s(m,e).xExtra:l[0]===y&&(y+=s(m,e).xExtra),l[1]===g?g-=s(m,e).yExtra:l[1]===v&&(v+=s(m,e).yExtra)}return{x:d,y:g,width:y-d,height:v-g}}(t.get("segments")||(0,i.path2Segments)(n),u),c=l.x,h=l.y,f={minX:c,minY:h,maxX:c+l.width,maxY:h+l.height};return{x:(f=(0,o.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(109);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=(0,r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisString=e.charAtLength=e.strLen=void 0;function r(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}e.strLen=function(t){for(var e=0,n=0;n<t.length;n++)e+=r(t,n);return e},e.charAtLength=r,e.ellipsisString=function(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var o=0,s=0;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s++}a+="…"}else if("head"===n){for(o=0,s=i-1;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s--}a="…"+a}else{for(var u="",l="",c=(o=0,0),h=i-1;o<e;){var f=r(t,c),p=!1;f+o<=e&&(u+=t[c],c++,o+=f,p=!0);var d=r(t,h);if(d+o<=e&&(l=t[h]+l,o+=d,h--,p=!0),!p)break}a=u+"…"+l}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8)),o=n(76),s=n(34),u=(0,r.__importDefault)(n(19)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:u.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u.default.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),a=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};(0,o.renderTag)(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");(0,s.applyTranslate)(t,n,r),(0,s.applyRotate)(t,i,n,r)}},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8)),o=n(9),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=(0,o.getCirclePoint)(e,n,r),s=(0,o.getCirclePoint)(e,n,i),u=i-r>Math.PI?1:0,l=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);l.push(["A",n,n,0,u,1,c.x,c.y]),l.push(["A",n,n,0,u,1,s.x,s.y])}else l.push(["A",n,n,0,u,1,s.x,s.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,i.__assign)({path:e},n)})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8)),o=(0,r.__importDefault)(n(19)),s=n(9),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=(0,s.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8)),o=n(9),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=n(76),u=n(34),l=(0,r.__importDefault)(n(19)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:l.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.default.fontFamily}}}})},e.prototype.renderInner=function(t){(0,a.get)(this.get("line"),"display")&&this.renderLine(t),(0,a.get)(this.get("text"),"display")&&this.renderText(t),(0,a.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),u=this.get("text"),l=u.background,c=u.maxLength,h=u.autoEllipsis,f=u.isVertival,p=u.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:l,maxLength:c,autoEllipsis:h,isVertival:f,ellipsisPosition:p};(0,s.renderTag)(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),l=s.minX,c=s.maxX,h=s.minY,f=s.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+l<=o.minX){var y=o.minX-(n+l);(0,u.applyTranslate)(p,p.attr("x")+y,p.attr("y"))}if(n+c>=o.maxX){y=n+c-o.maxX;(0,u.applyTranslate)(p,p.attr("x")-y,p.attr("y"))}}if("upward"===e&&r+h<=o.minY||"upward"!==e&&r+f>=o.maxY){var v=void 0,m=void 0;"upward"===e&&r+h<=o.minY?(v="top",m=1):(v="bottom",m=-1),d.attr("textBaseline",v),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,u.applyTranslate)(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=(0,a.get)(this.get("line"),"display"),e=(0,a.get)(this.get("point"),"style",{}),n=(0,a.get)(this.get("line"),"style",{}),r=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,u="upward"===o?-1:1;return{point:(0,i.__assign)({x:0,y:0},e),line:(0,i.__assign)({path:[["M",0,0],["L",0,s*u]]},n),text:(0,i.__assign)({x:0,y:(s+2)*u,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=(0,r.__importDefault)(n(19)),u=n(9),l=n(76),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,a.get)(this.get("region"),"style",{}),n=((0,a.get)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var o=(0,u.pointsToBBox)(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({path:s},e)});var c=(0,i.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));(0,l.renderTag)(t,c)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=n(9),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=(0,s.regionToBBox)({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");(0,a.isFunction)(e)&&e(t)},e}((0,r.__importDefault)(n(8)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(46),o=n(1),s=(0,r.__importDefault)(n(77)),u=n(9),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,u.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;(0,o.isElement)(n)?t.appendChild(n):(0,o.isString)(n)&&t.appendChild((0,a.createDom)(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),u=this.get("offsetY"),l=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),h={x:n,y:r};"middle"===i?h.x-=Math.round(l/2):"right"===i&&(h.x-=Math.round(l)),"middle"===o?h.y-=Math.round(c/2):"bottom"===o&&(h.y-=Math.round(c)),s&&(h.x+=s),u&&(h.y+=u),(0,a.modifyCSS)(t,{position:"absolute",left:h.x+"px",top:h.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Circle=e.Line=void 0;var i=n(468);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(473);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(111);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(7),o=n(1),s=(0,r.__importDefault)(n(111)),u=(0,r.__importStar)(n(469)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=a.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return a.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),u=i.offset,l=s,c=0,h=0;a&&(c=a.style.fontSize,h=a.spacing),l&&(l=l-u-h-c);var f=this.get("overlapOrder");if((0,o.each)(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,l)})),a&&(0,o.isNil)(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=u+d+h+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,o.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),s=!1,l=u[t];if(!0===e){this.get("label");s=l.getDefault()(a,n,r)}else if((0,o.isFunction)(e))s=e(a,n,r);else if((0,o.isObject)(e)){var c=e;l[c.type]&&(s=l[c.type](a,n,r,c.cfg))}else l[e]&&(s=l[e](a,n,r));if("autoRotate"===t){if(s){var h=n.getChildren(),f=this.get("verticalFactor");(0,o.each)(h,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);(0,o.each)(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoEllipsis=e.autoRotate=e.autoHide=void 0;var r=n(0),i=(0,r.__importStar)(n(470));e.autoEllipsis=i;var a=(0,r.__importStar)(n(471));e.autoHide=a;var o=(0,r.__importStar)(n(472));e.autoRotate=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisMiddle=e.ellipsisTail=e.ellipsisHead=e.getDefault=void 0;var r=n(1),i=n(61);function a(t,e,n,a){var o=e.getChildren(),s=!1;return(0,r.each)(o,(function(e){var r=(0,i.ellipsisLabel)(t,e,n,a);s=s||r})),s}function o(t,e,n){return a(t,e,n,"tail")}e.getDefault=function(){return o},e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisTail=o,e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistanceWithReverseBoth=e.equidistance=e.reserveBoth=e.reserveLast=e.reserveFirst=e.getDefault=void 0;var r=n(61),i=n(34),a=n(9);function o(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?(0,i.getAngleByMatrix)(t.attr("matrix")):0)%360}function s(t,e,n,r){var i=!1,s=o(e),u=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),l=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?l.width+r>u:l.height/c+r>u}else{c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?l.width+r>u:l.height/c+r>u}return i}function u(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var u=a.length,l=a[0],c=1;c<u;c++){var h=a[c];h.getBBox();s(t,l,h,i)?(h.hide(),o=!0):l=h}return o}function l(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var u=!1,l=s[0],c=l.getBBox(),h=s[1],f=s.length,p=o(l),d=t?Math.abs(h.attr("y")-l.attr("y")):Math.abs(h.attr("x")-l.attr("x")),g=0;if(t){var y=Math.abs(Math.cos(p));if((0,a.near)(y,0,Math.PI/180))g=((0,r.getMaxLabelWidth)(s)+i)/d;else g=(c.height/y+i)/d}else{y=Math.abs(Math.sin(p));if((0,a.near)(y,0,Math.PI/180))g=((0,r.getMaxLabelWidth)(s)+i)/d;else g=(c.height/y+i)/d}if(g>1){g=Math.ceil(g);for(var v=0;v<f;v++)v%g!=0&&(s[v].hide(),u=!0)}return u}function c(t,e,n,r){var i=l(t,e,r);return u(t,e,!1)&&(i=!0),i}e.getDefault=function(){return c},e.reserveFirst=function(t,e,n,r){return u(t,e,!1,r)},e.reserveLast=function(t,e,n,r){return u(t,e,!0,r)},e.reserveBoth=function(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,u=a.length,l=a[0],c=a[u-1],h=l,f=1;f<u-1;f++){var p=a[f];p.getBBox();s(t,h,p,i)?(p.hide(),o=!0):h=p}return s(t,h,c,i)&&(h.hide(),o=!0),o},e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=l(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),u(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),u(t,e,!0,r)&&(a=!0))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unfixedAngle=e.fixedAngle=e.getDefault=void 0;var r=n(0),i=n(1),a=n(61),o=n(34),s=(0,r.__importDefault)(n(19));function u(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var u=(0,a.getMaxLabelWidth)(s),l=!1;t?l=!!n&&u>n:l=u>Math.abs(s[1].attr("x")-s[0].attr("x"));l&&function(t,e){(0,i.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=(0,o.getMatrixByAngle)({x:n,y:r},e);t.attr("matrix",i)}))}(s,r(n,u));return l}function l(t,e,n,r){return u(t,e,n,(function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return l},e.fixedAngle=l,e.unfixedAngle=function(t,e,n){return u(t,e,n,(function(e,n){if(!e)return t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(7),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var u=this.getCirclePoint(a),l=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",u.x,u.y],["A",r,i,0,c,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=a.vec2.length(r);return a.vec2.scale(r,r,i*t/o),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}((0,r.__importDefault)(n(111)).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Base=e.Circle=e.Line=void 0;var i=n(475);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(476);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(112);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}});var s=n(477);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(s).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(9),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return(0,a.getTextPoint)(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}((0,r.__importDefault)(n(112)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(9),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,u=r.endAngle,l="start"===e?s:u,c=this.getRotateAngle()-Math.PI,h=(0,a.getCirclePoint)(i,o,l),f=Math.cos(c)*n,p=Math.sin(c)*n;return{x:h.x+f,y:h.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,u=e.y;o=[["M",s,u-n],["A",n,n,0,1,1,s,u+n],["A",n,n,0,1,1,s,u-n],["Z"]]}else{var l=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),h=Math.abs(i-r)>Math.PI?1:0,f=r>i?0:1;o=[["M",l.x,l.y],["A",n,n,0,h,f,c.x,c.y]]}return o},e}((0,r.__importDefault)(n(112)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(46),o=n(1),s=n(9),u=(0,r.__importDefault)(n(77)),l=(0,r.__importStar)(n(214)),c=(0,r.__importDefault)(n(478)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+l.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+l.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:l.CONTAINER_CLASS,defaultStyles:c.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=(0,a.createDom)(e);t.appendChild(n),this.applyStyle(l.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return(0,s.getTextPoint)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,o.substitute)(this.get("textTpl"),t);e=(0,a.createDom)(i),r.appendChild(e),this.applyStyle(l.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?(0,a.modifyCSS)(t,{width:"1px",height:(0,s.toPx)(Math.abs(n.y-e.y))}):(0,a.modifyCSS)(t,{height:"1px",width:(0,s.toPx)(Math.abs(n.x-e.x))}),(0,a.modifyCSS)(t,{top:(0,s.toPx)(i),left:(0,s.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,a.modifyCSS)(t,{top:(0,s.toPx)(r.y),left:(0,s.toPx)(r.x)})}},e.prototype.updateInner=function(e){(0,o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=(0,i.__importDefault)(n(19)),o=(0,i.__importStar)(n(214));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"relative"},r[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},r)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Line=e.Circle=e.Base=void 0;var i=n(113);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(480);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(481);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,i,o,s,u,l=this.getLineType(),c=this.get("closed"),h=[];if(t.length)if("circle"===l){var f=this.get("center"),p=t[0],d=(n=f.x,r=f.y,i=p.x,o=p.y,s=i-n,u=o-r,Math.sqrt(s*s+u*u)),g=e?0:1;c?(h.push(["M",f.x,f.y-d]),h.push(["A",d,d,0,0,g,f.x,f.y+d]),h.push(["A",d,d,0,0,g,f.x,f.y-d]),h.push(["Z"])):(0,a.each)(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["A",d,d,0,0,g,t.x,t.y])}))}else(0,a.each)(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["L",t.x,t.y])})),c&&h.push(["Z"]);return h},e}((0,r.__importDefault)(n(113)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,a.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}((0,r.__importDefault)(n(113)).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Continuous=e.Category=void 0;var i=n(483);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return r(i).default}});var a=n(484);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return r(a).default}});var o=n(114);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(61),s=n(34),u=n(213),l=(0,r.__importDefault)(n(19)),c=(0,r.__importDefault)(n(114)),h={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},f={fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:l.default.fontFamily,fontWeight:"normal",lineHeight:12},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:l.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:h,itemName:{spacing:16,style:f},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:f},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:l.default.uncheckedColor},markerStyle:{fill:l.default.uncheckedColor,stroke:l.default.uncheckedColor}},inactive:{nameStyle:{fill:l.default.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){(0,a.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),a=this.createOffScreenGroup(),o=this.drawItem(t,i,this.getItemHeight(),a);this.updateElements(o,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return(0,a.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,a.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,a.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");(0,a.each)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),i=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),u=this.get("itemMarginBottom"),l=this.get("currentPoint"),c=l.x,h=l.y,f=this.get("layout"),p=this.get("items"),d=!1,g=0,y=this.get("maxWidth"),v=this.get("maxHeight");(0,a.each)(p,(function(t,n){var a=e.drawItem(t,n,i,r),p=a.getBBox(),m=o||p.width;m>g&&(g=m),"horizontal"===f?(y&&y<l.x+m-c&&(d=!0,l.x=c,l.y+=i+u),e.moveElementTo(a,l),l.x+=m+s):(v&&v<l.y+i+u-h&&(d=!0,l.x+=g+s,l.y=h,g=0),e.moveElementTo(a,l),l.y+=i+u)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=h,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if((0,a.isFunction)(e)){var n=this.getItems();n.forEach((function(r,a){var o=(0,i.__assign)((0,i.__assign)({},f),e(r,a,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,r){var o=(0,i.__assign)((0,i.__assign)((0,i.__assign)({x:0,y:r/2},e.style),{symbol:(0,a.get)(n.marker,"symbol","circle")}),(0,a.get)(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),u=s.getBBox();s.attr("x",u.width/2);var l=s.attr(),c=l.stroke,h=l.fill;return c&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,o,s,u){var l=n.formatter,c=n.style,h=(0,i.__assign)((0,i.__assign)({x:s,y:o/2,text:l?l(r[e],r,u):r[e]},f),(0,a.isFunction)(c)?c(r,u,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:h})},e.prototype.drawItem=function(t,e,n,r){var s="item-"+t.id,u=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),l=this.addGroup(u,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),d=this.getLimitItemWidth(),g=0;if(c){var y=this.drawMarker(l,c,t,n),v=c.spacing,m=(0,a.get)(t,["marker","spacing"]);(0,a.isNumber)(m)&&(v=m),g=y.getBBox().maxX+v}if(h){var _=this.drawItemText(l,"name",h,t,n,g,e);d&&(0,o.ellipsisLabel)(!0,_,(0,a.clamp)(d-g,0,d)),g=_.getBBox().maxX+h.spacing}if(f){var x=this.drawItemText(l,"value",f,t,n,g,e);d&&(f.alignRight?(x.attr({textAlign:"right",x:d}),(0,o.ellipsisLabel)(!0,x,(0,a.clamp)(d-g,0,d),"head")):(0,o.ellipsisLabel)(!0,x,(0,a.clamp)(d-g,0,d)))}if(p){var b=l.getBBox();this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:(0,i.__assign)({x:0,y:0,width:b.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,i=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),u=this.get("maxWidth"),l=this.get("maxHeight"),c=this.get("itemWidth"),f=this.get("itemSpacing"),p=this.getItemHeight(),d=(0,a.deepMix)({},h,this.get("pageNavigator")),g=this.drawNavigation(t,o,"00/00",d),y=g.getBBox(),v={x:r,y:i},m=1,_=0,x=0,b=0,M=this.get("itemMarginBottom");if("horizontal"===o){var C=this.get("maxRow")||1,P=p+(1===C?0:M);this.pageHeight=P*C,(0,a.each)(s,(function(t){var e=t.getBBox(),i=c||e.width;(_&&_<v.x+i+f||u<v.x+i+f+y.width)&&(1===m&&(_=v.x+f,n.pageWidth=_,n.moveElementTo(g,{x:u-f-y.width-y.minX,y:v.y+p/2-y.height/2-y.minY})),m+=1,v.x=r,v.y+=P),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:i+f,height:p}}),v.x+=i+f}))}else{(0,a.each)(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),b=x,x+=f,u&&(x=Math.min(u,x),b=Math.min(u,b)),this.pageWidth=x,this.pageHeight=l-Math.max(y.height,p+M);var S=Math.floor(this.pageHeight/(p+M));(0,a.each)(s,(function(t,e){0!==e&&e%S==0&&(m+=1,v.x+=x,v.y=i),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:x,height:p}}),v.y+=p+M})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+b/2-y.width/2-y.minX,y:l-y.height-y.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),u=(0,a.get)(r.marker,"style",{}),l=u.size,c=void 0===l?12:l,h=(0,i.__rest)(u,["size"]),f=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",c,h);f.on("click",this.onNavigationBack);var p=f.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,i.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,a.get)(r.text,"style"))}).getBBox();return o.x+=d.width+2,this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",c,h).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},h,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,u=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),c=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),f=u.getBBox();u.attr("text",s);var p=u.getBBox();u.attr("x",u.attr("x")-(p.width-f.width)/2),l.attr("opacity",1===this.currentPageIndex?o:r),l.attr("fill",1===this.currentPageIndex?i:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,r,a,o){var u=e.x,l=e.y,c={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({path:[["M",u+a/2,l],["L",u,l+a],["L",u+a,l+a],["Z"]],cursor:"pointer"},o)});return h.attr("matrix",(0,s.getMatrixByAngle)({x:u+a/2,y:l+a/2},c[r])),h},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return(0,s.getMatrixByTranslate)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");(0,a.each)(n,(function(e){var n=e.get("name").split("-")[2],i=(0,u.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(c.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(19)),s=n(9),u=(0,r.__importDefault)(n(114)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),u=i-r;u<0?a[0]+u>s.min?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.min,s.min+o]):u>0&&(u>0&&a[1]+u<s.max?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.max-o,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,o=n.align,s=n.formatter,u=this.get(t),l=this.getLabelAlignAttrs(t,o),c="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(c),name:"legend-label-"+t,attrs:(0,i.__assign)((0,i.__assign)({x:0,y:0,text:(0,a.isFunction)(s)?s(u):u},r),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),a=i.size,o=i.defaultLength,s=i.type,u=this.isVertical(),l=n,c=r;l||(l=u?a:o),c||(c=u?o:a);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])):(h.push(["M",t+l,e]),h.push(["L",t+l,e+c]),h.push(["L",t,e+c]),h.push(["Z"])),h},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,i.__assign)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return(0,a.clone)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,a=this.getCurrentValue(),o=a[0],s=a[1],u=this.getRailBBox(t),l=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=u.minX,n=l.y,r=u.width,i=c.y-l.y):(e=l.x,n=u.minY,r=c.x-l.x,i=u.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return(0,a.mix)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),a=this.getClipTrackAttrs(t);i?i.attr(a):r.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),a=this.getRailBBox(e),o={x:0,y:0};return this.isVertical()?(o.x=a.minX+a.width/2,o.y=(0,s.getValueByPercent)(a.minY,a.maxY,i)):(o.x=(0,s.getValueByPercent)(a.minX,a.maxX,i),o.y=a.minY+a.height/2),o},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,a=r.max,o=this.getRailCanvasBBox(),u=this.isVertical(),l=this.get("step");n=u?(e-o.minY)/o.height:(t-o.minX)/o.width;var c=(0,s.getValueByPercent)(i,a,n);l&&(c=i+Math.round((c-i)/l)*l);return c>a&&(c=a),c<i&&(c=i),c},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,(0,i.__spreadArrays)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,i.__spreadArrays)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,a=e.x,o=e.y,s=1.4*i,u=i/2,l=i/6;if(n){var c=a+.4*s;r.push(["M",a,o]),r.push(["L",c,o+u]),r.push(["L",a+s,o+u]),r.push(["L",a+s,o-u]),r.push(["L",c,o-u]),r.push(["Z"]),r.push(["M",c,o+l]),r.push(["L",a+s-2,o+l]),r.push(["M",c,o-l]),r.push(["L",a+s-2,o-l])}else{var h=o+.4*s;r.push(["M",a,o]),r.push(["L",a-u,h]),r.push(["L",a-u,o+s]),r.push(["L",a+u,o+s]),r.push(["L",a+u,h]),r.push(["Z"]),r.push(["M",a-l,h]),r.push(["L",a-l,o+s-2]),r.push(["M",a+l,h]),r.push(["L",a+l,o+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),u=t.findById(s),l=this.isVertical();u?u.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:(0,i.__assign)((0,i.__assign)({path:o},a.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var i=this.isVertical()?"height":"width",o=this.get("label"),s=o.align,u=o.spacing,l=this.get("max"+(0,a.upperFirst)(i));if(l){var c=("rail"===s?n[i]+t[i]+e[i]+2*u:n[i])-l;c>0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox(),c=s.height;this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+u.width+o,r.y),e.attr({x:r.x+u.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+u.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),u=t.getBBox(),l=e.getBBox();if(this.fitRailLength(u,l,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+u.height+o),e.attr({x:r.x,y:r.y+u.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(u.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(u.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=void 0;var i=n(486);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(i).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(71)),o=n(46),s=n(1),u=(0,r.__importDefault)(n(77)),l=n(9),c=(0,r.__importStar)(n(115)),h=(0,r.__importDefault)(n(487)),f=n(488);var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+c.CONTAINER_CLASS+'"><div class="'+c.TITLE_CLASS+'"></div><ul class="'+c.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+c.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+c.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+c.NAME_CLASS+'">{name}</span>:\n <span class="'+c.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+c.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+c.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:c.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:h.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),(0,o.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),(0,o.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&(0,o.modifyCSS)(n,{display:e}),r&&(0,o.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,(0,s.each)(r,(function(t){if((0,s.hasKey)(n,t))return i=!0,!1})),i&&this.resetTitle(),(0,s.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,u=this.get("position"),c=this.get("region"),h=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=(0,l.regionToBBox)(c));var y=(0,f.getAlignPoint)(e,n,r,d,g,u,t);(0,o.modifyCSS)(h,{left:(0,l.toPx)(y.x+a),top:(0,l.toPx)(y.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,s.isElement)(n)?n:(0,o.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(c.TITLE_CLASS)[0],n=t.getElementsByClassName(c.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=(0,l.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?(0,o.modifyCSS)(n,{left:(0,l.toPx)(r),top:(0,l.toPx)(e.y),height:(0,l.toPx)(e.height)}):(0,o.modifyCSS)(n,{top:(0,l.toPx)(r),left:(0,l.toPx)(e.x),width:(0,l.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=c[r],a=this.get(e),s=this.get("parent");return a||(a=(0,o.createDom)(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,s.each)(t,(function(t){var r=a.default.toCSSGradient(t.color),u=(0,i.__assign)((0,i.__assign)({},t),{color:r}),l=(0,s.substitute)(e,u),c=(0,o.createDom)(l);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,l.clearDom)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(u.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=(0,i.__importDefault)(n(19)),o=(0,i.__importStar)(n(115));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex: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)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+o.TITLE_CLASS]={marginBottom:"4px"},r[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r)},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=e.getPointByPosition=e.getOutSides=void 0,e.getOutSides=r,e.getPointByPosition=i,e.getAlignPoint=function(t,e,n,a,o,s,u){var l=i(t,e,n,a,o,s);if(u){var c=r(l.x,l.y,a,o,u);"auto"===s?(c.right&&(l.x=Math.max(0,t-a-n)),c.top&&(l.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(l.x=u.x),c.right&&(l.x=u.x+u.width-a),"top"===s&&c.top&&(l.y=e+n),"bottom"===s&&c.bottom&&(l.y=e-o-n)):(c.top&&(l.y=u.y),c.bottom&&(l.y=u.y+u.height-o),"left"===s&&c.left&&(l.x=t+n),"right"===s&&c.right&&(l.x=t-a-n))}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(490);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(8)),s=n(491),u=n(494),l=n(495),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,a.get)(r,"touches.0.pageX",r.pageX),e.prevY=(0,a.get)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,a.get)(t,"touches.0.pageX",t.pageX),o=(0,a.get)(t,"touches.0.pageY",t.pageY),s=i-e.prevX,u=e.adjustOffsetRange(s/n);e.updateStartEnd(u),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(l.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,a.clamp)(n,t,e),o=(0,a.clamp)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,a.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,a.clamp)(t[0],e.min,e.max),end:(0,a.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:l.BACKGROUND_STYLE,foregroundStyle:l.FOREGROUND_STYLE,handlerStyle:l.HANDLER_STYLE,textStyle:l.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(n)||(o.start=(0,a.clamp)(n,0,1)),(0,a.isNil)(r)||(o.end=(0,a.clamp)(r,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,a.clamp)(this.get("start"),0,1)),this.set("end",(0,a.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,h=e.minText,f=e.maxText,p=e.backgroundStyle,d=void 0===p?{}:p,g=e.foregroundStyle,y=void 0===g?{}:g,v=e.textStyle,m=void 0===v?{}:v,_=(0,a.deepMix)({},u.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,a.size)((0,a.get)(c,"data"))&&(this.trend=this.addComponent(t,(0,i.__assign)({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},d)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"right",text:h,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,i.__assign)({y:0,height:r},y)});var x=(0,a.get)(_,"width",l.DEFAULT_HANDLER_WIDTH),b=(0,a.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:u.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:u.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,s=r.width,u=r.minText,c=r.maxText,h=r.handlerStyle,f=r.height,p=i*s,d=o*s;this.trend&&(this.trend.update({width:s,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",d-p);var g=(0,a.get)(h,"width",l.DEFAULT_HANDLER_WIDTH);e.attr("text",u),n.attr("text",c);var y=this._dodgeText([p,d],e,n),v=y[0],m=y[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,a.each)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,a.each)(m,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,u=o.width,c=(0,a.get)(s,"width",l.DEFAULT_HANDLER_WIDTH),h=t[0],f=t[1],p=!1;h>f&&(h=(r=[f,h])[0],f=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>h-2?{x:h+c/2+2,textAlign:"left"}:{x:h-c/2-2,textAlign:"right"},v=g.width>u-f-2?{x:f-c/2-2,textAlign:"right"}:{x:f+c/2+2,textAlign:"left"};return p?[v,y]:[y,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.Slider=c,e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trend=void 0;var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8)),o=n(492),s=n(493),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,u=e.isArea,l=e.backgroundStyle,c=e.lineStyle,h=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},l)});var f=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:f},c)}),u){var p=(0,s.linePathToAreaPath)(f,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},h)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=u,e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AREA_STYLE=e.LINE_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linePathToAreaPath=e.getAreaLineY=e.dataToPath=e.getSmoothLinePath=e.getLinePath=void 0;var r=n(0),i=n(40),a=n(105),o=n(1);function s(t){return function(t){return(0,o.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function u(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,(function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,i.catmullRom2Bezier)(e,!1),r=(0,o.head)(t),a=r[0],u=r[1];return n.unshift(["M",a,u]),n}function l(t,e){var n=new a.Linear({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}e.getLinePath=s,e.getSmoothLinePath=u,e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),l=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,r){return[l.scale(r)*e,n-i.scale(t)*n]}));return r?u(c):s(c)},e.getAreaLineY=l,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=l(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var r=n(0),i=n(0),a=(0,r.__importDefault)(n(8));e.DEFAULT_HANDLER_STYLE={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(n,t),n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"handler",x:0,y:0,width:10,height:24,style:e.DEFAULT_HANDLER_STYLE})},n.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,u=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:u,cursor:l}});var c=1/3*n,h=2/3*n,f=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:f,x2:c,y2:p,stroke:o,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:o,cursor:l}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(a.default);e.Handler=o,e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLIDER_CHANGE=e.TEXT_STYLE=e.HANDLER_STYLE=e.DEFAULT_HANDLER_WIDTH=e.FOREGROUND_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10,e.HANDLER_STYLE={width:e.DEFAULT_HANDLER_WIDTH,height:24},e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,n(0).__exportStar)(n(497),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var r=n(0),i=n(0),a=n(46),o=n(1),s=(0,r.__importDefault)(n(8));e.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};var u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[(0,a.addEventListener)(t,"touchmove",e.onMouseMove),(0,a.addEventListener)(t,"touchend",e.onMouseUp),(0,a.addEventListener)(t,"touchcancel",e.onMouseUp)]:[(0,a.addEventListener)(t,"mousemove",e.onMouseMove),(0,a.addEventListener)(t,"mouseup",e.onMouseUp),(0,a.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?(0,o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?(0,o.get)(t,"touches.0.clientY"):t.clientY,u=r?a:s,l=u-e.startPos;e.startPos=u,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),u=t.clientX,l=t.clientY,c=r?u-s.left-i-o/2:l-s.top-a-o/2,h=e.validateRange(c);e.updateThumbOffset(h)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,i.__extends)(n,t),n.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},n.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:e.DEFAULT_THEME})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var n=this.cfg,r=n.trackLen,i=n.theme,a=void 0===i?{default:{}}:i,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,u=s.lineCap,l=s.trackColor,c=s.size,h=(0,o.get)(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:r-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:u}:{x1:h/2,y1:0+h/2,x2:h/2,y2:r-h/2,lineWidth:h,stroke:l,lineCap:u};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},n.prototype.renderThumbShape=function(t){var n=this.cfg,r=n.thumbOffset,i=n.thumbLen,a=n.theme,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,u=s.size,l=s.lineCap,c=s.thumbColor,h=(0,o.get)(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:r+h/2,y1:h/2,x2:r+i-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:l,cursor:"default"}:{x1:h/2,y1:r+h/2,x2:h/2,y2:r+i-h/2,lineWidth:h,stroke:c,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},n.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},n.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},n.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:o+a/2,x2:o+i-a/2}):s.attr({y1:o+a/2,y2:o+i-a/2}),this.emitOffsetChange(o)}},n.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:(0,o.clamp)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},n}(s.default);e.Scrollbar=u},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAction=void 0;var r=n(0),i=n(1),a=n(215),o=(0,r.__importDefault)(n(502)),s=(0,r.__importDefault)(n(216));function u(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||(0,a.createAction)(i,e);if(!o)throw new Error("There is no action named "+i);return{action:o,methodName:r[1],arg:n}}function l(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n](r)}e.parseAction=u;var c="start",h="showEnable",f="end",p="rollback",d="processing",g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return(0,r.__extends)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;(0,i.each)(n,(function(t){(0,i.each)(t,(function(t){if((0,i.isFunction)(t.action))t.actionObject={action:(0,a.createCallbackAction)(t.action,e),methodName:"execute"};else if((0,i.isString)(t.action))t.actionObject=u(t.action,e,t.arg);else if((0,i.isArray)(t.action)){var n=t.action,r=(0,i.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,i.each)(n,(function(n,i){t.actionObject.push(u(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===h)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===f)return e===d||e===c;if(t===p){if(n[f])return e===f;if(e===c)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==h&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var u=function(a){r.event=a,n.isAllowExecute(t,e)?((0,i.isArray)(o)?(0,i.each)(o,(function(t){r.event=a,l(t)})):(r.event=a,l(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=(0,i.debounce)(u,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=(0,i.throttle)(u,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=u}return a[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}((0,r.__importDefault)(n(10)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(4),a=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return(0,r.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=(0,i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(r,n):(0,i.isInBox)(r,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,(0,r.each)(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(0),i=n(1),a=n(219),o=n(504);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=(0,r.__rest)(t,["styleSheet"]),u=(0,o.createLightStyleSheet)(n);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(u),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var r="#000",i="#595959",a="#8C8C8C",o="#BFBFBF",s="#D9D9D9",u="#F0F0F0",l="#FFFFFF",c=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],h=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],f=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createLightStyleSheet=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,p=t.subColor,d=void 0===p?"rgba(0,0,0,0.05)":p,g=t.paletteQualitative10,y=void 0===g?c:g,v=t.paletteQualitative20,m=void 0===v?h:v,_=t.paletteSemanticRed,x=void 0===_?"#F4664A":_,b=t.paletteSemanticGreen,M=void 0===b?"#30BF78":b,C=t.paletteSemanticYellow,P=void 0===C?"#FAAD14":C,S=t.paletteSequence,O=void 0===S?f:S,w=t.fontFamily,A=void 0===w?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':w,T=t.brandColor,E=void 0===T?y[0]:T;return{backgroundColor:n,brandColor:E,subColor:d,paletteQualitative10:y,paletteQualitative20:m,paletteSemanticRed:x,paletteSemanticGreen:M,paletteSemanticYellow:P,paletteSequence:O,fontFamily:A,axisLineBorderColor:o,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:i,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:o,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:s,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:a,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:s,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:a,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:E,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:i,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:a,legendPageNavigatorTextFontSize:12,sliderRailFillColor:s,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:a,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:s,annotationArcBorder:1,annotationLineBorderColor:o,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:i,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:o,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:i,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:i,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:l,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:i,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:l,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:o,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:E,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:l,pointBorderOpacity:1,pointActiveBorderColor:r,pointSelectedBorder:2,pointSelectedBorderColor:r,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:E,hollowPointBorderOpacity:.95,hollowPointFillColor:l,hollowPointActiveBorder:1,hollowPointActiveBorderColor:r,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:E,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:E,areaFillOpacity:.25,areaActiveFillColor:E,areaActiveFillOpacity:.5,areaSelectedFillColor:E,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:E,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:E,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:E,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:l,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvLight=(0,e.createLightStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(24),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,i.some)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,u=(0,r.__assign)({start:t,end:e},o),l=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new l(u),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return(0,r.__assign)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,i.each)(n,(function(n){var r,a=n[0],o=n.slice(1);(!!(0,i.isNil)(t)||t.includes(a))&&(r=e.coordinate)[a].apply(r,o)}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(1),i=n(47),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var u=s.scale,l={type:u.type};u.isCategory&&(l.values=u.values),o=(0,r.deepMix)(l,s.scaleDef,n)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER,l=[];(0,r.each)(a,(function(t){var e=n.getScale(t);u=(0,r.isNumber)(e.max)?Math.max(u,e.max):u,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,(function(t){l.includes(t)||l.push(t)}))})),(0,r.each)(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:u,values:l});else if(o.isCategory){var c=o.range,h=n.getScaleMeta(a);l&&!(0,r.get)(h,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:l}),t,e)),o.change({values:l,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?((0,i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,r.last)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=(0,r.get)(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(0),i=n(1),a=n(2),o=n(30),s=n(118),u=n(221);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(u.PaddingCal.bind.apply(u.PaddingCal,(0,r.__spreadArray)([void 0],(0,s.parsePadding)(e),!1)));var n=t.viewBBox,l=new u.PaddingCal,c=[],h=[],f=[];return(0,i.each)(t.getComponents(),(function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?h.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&f.push(t)})),(0,i.each)(c,(function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);l.max(r)})),(0,i.each)(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);l.inc(a,n)})),(0,i.each)(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);l.inc(i,n)})),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(1);e.group=function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=(0,r.groupToMap)(t,e),a=[];if(1===e.length&&n[e[0]])for(var o=0,s=n[e[0]];o<s.length;o++){var u=i["_"+s[o]];u&&a.push(u)}else for(var l in i)if(i.hasOwnProperty(l)){var c=i[l];a.push(c)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFields=void 0;var r=n(1);e.parseFields=function(t){return(0,r.isArray)(t)?t:t.split("*")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(37),o=n(122),s=n(52),u=n(12),l=n(53),c=n(2),h=n(513),f=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var o=this;void 0===n&&(n=!1),this.shapesMap={};var s=this.container,u=this.createOffscreenGroup();if(t.length){for(var l=0,c=t;l<c.length;l++){var f=c[l];f&&this.renderLabel(f,u)}this.doLayout(t,e),this.renderLabelLine(t),this.renderLabelBackground(t),this.adjustLabel(t)}var p=this.lastShapesMap,d=this.shapesMap;(0,i.each)(d,(function(t,e){if(t.destroyed)delete d[e];else{if(p[e]){var u=t.get("data"),l=t.get("origin"),c=t.get("coordinate"),f=t.get("animateCfg"),g=p[e];(0,h.updateLabel)(g,d[e],{data:u,origin:l,animateCfg:f,coordinate:c}),o.shapesMap[e]=g}else{s.add(t);var y=(0,i.get)(t.get("animateCfg"),n?"enter":"appear");y&&(0,a.doAnimate)(t,y,{toAttrs:(0,r.__assign)({},t.attr()),coordinate:t.get("coordinate")})}delete p[e]}})),(0,i.each)(p,(function(t){var e=(0,i.get)(t.get("animateCfg"),"leave");e?(0,a.doAnimate)(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=d,u.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.elementId,s=t.data,u=t.mappingData,h=t.coordinate,f=t.animate,p=t.content,d={id:a,elementId:o,data:s,origin:(0,r.__assign)((0,r.__assign)({},u),{data:u[c.FIELD_ORIGIN]}),coordinate:h},g=e.addGroup((0,r.__assign)({name:"label",animateCfg:!1!==this.animate&&null!==f&&!1!==f&&(0,i.deepMix)({},this.animate,f)},d));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var y=p.getCanvasBBox(),v=y.width,m=y.height,_=(0,i.get)(t,"textAlign","left"),x=t.x,b=t.y-m/2;"center"===_?x-=v/2:"right"!==_&&"end"!==_||(x-=v),(0,l.translate)(p,x,b),n=p,g.add(p)}else{var M=(0,i.get)(t,["style","fill"]);n=g.addShape("text",(0,r.__assign)({attrs:(0,r.__assign)((0,r.__assign)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:(0,i.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,i.isNull)(M)?t.color:M})},d))}t.rotate&&(0,l.rotate)(n,t.rotate),this.shapesMap[a]=g},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var r=(0,i.isArray)(this.layout)?this.layout:[this.layout];(0,i.each)(r,(function(r){var a=(0,o.getGeometryLabelLayout)((0,i.get)(r,"type",""));if(a){var s=[],u=[];(0,i.each)(n.shapesMap,(function(t,n){s.push(t),u.push(e[t.get("elementId")])})),a(t,s,u,n.region,r.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate");if(t&&n){var a=n.getCenter(),o=n.getRadius();if(t.labelLine){var s=(0,i.get)(t,"labelLine",{}),l=t.id,c=s.path;if(!c){var h=(0,u.polarToCartesian)(a.x,a.y,o,t.angle);c=[["M",h.x,h.y],["L",t.x,t.y]]}var f=e.shapesMap[l];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,r.__assign)({path:c,stroke:t.color?t.color:(0,i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:l,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t){var e=this;(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate"),a=(0,i.get)(t,"background");if(a&&n){var o=t.id,u=e.shapesMap[o];if(!u.destroyed){var l=u.getChildren()[0];if(l){var c=(0,s.getlLabelBackgroundInfo)(u,t,a.padding),h=c.rotation,f=(0,r.__rest)(c,["rotation"]),p=u.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},f),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),h){var d=l.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;(0,i.each)(t,(function(t){if(t){var n=t.id,r=e.shapesMap[n];if(!r.destroyed){var a=r.findAll((function(t){return"path"!==t.get("type")}));(0,i.each)(a,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var r=n(1),i=n(37),a=n(12);e.updateLabel=function t(e,n,o){var s=o.data,u=o.origin,l=o.animateCfg,c=o.coordinate,h=(0,r.get)(l,"update");e.set("data",s),e.set("origin",u),e.set("animateCfg",l),e.set("coordinate",c),e.set("visible",n.get("visible")),e.getChildren().forEach((function(r,f){var p=n.getChildByIndex(f);if(p){r.set("data",s),r.set("origin",u),r.set("animateCfg",l),r.set("coordinate",c);var d=(0,a.getReplaceAttrs)(r,p);h?(0,i.doAnimate)(r,h,{toAttrs:d,coordinate:c}):r.attr(d),p.isGroup()&&t(r,p,o)}else e.removeChild(r),r.remove(!0)})),(0,r.each)(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var r="#000",i="#BFBFBF",a="#F0F0F0",o="#FFFFFF",s="#A6A6A6",u="#737373",l="#404040",c="#262626",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],f=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],p=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,d=t.subColor,g=void 0===d?"rgba(255,255,255,0.05)":d,y=t.paletteQualitative10,v=void 0===y?h:y,m=t.paletteQualitative20,_=void 0===m?f:m,x=t.paletteSemanticRed,b=void 0===x?"#F4664A":x,M=t.paletteSemanticGreen,C=void 0===M?"#30BF78":M,P=t.paletteSemanticYellow,S=void 0===P?"#FAAD14":P,O=t.paletteSequence,w=void 0===O?p:O,A=t.fontFamily,T=void 0===A?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':A,E=t.brandColor;return{backgroundColor:n,brandColor:void 0===E?v[0]:E,subColor:g,paletteQualitative10:v,paletteQualitative20:_,paletteSemanticRed:b,paletteSemanticGreen:C,paletteSemanticYellow:S,paletteSequence:w,fontFamily:T,axisLineBorderColor:l,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:s,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:l,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:c,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:u,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:c,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:u,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:h[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:s,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:u,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:u,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:s,legendPageNavigatorTextFontSize:12,sliderRailFillColor:c,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:u,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:a,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:i,annotationArcBorderColor:c,annotationArcBorder:1,annotationLineBorderColor:l,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:s,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:o,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:l,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:s,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:s,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:s,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:l,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:h[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r,pointBorderOpacity:1,pointActiveBorderColor:o,pointSelectedBorder:2,pointSelectedBorderColor:o,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:h[0],hollowPointBorderOpacity:.95,hollowPointFillColor:r,hollowPointActiveBorder:1,hollowPointActiveBorderColor:o,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:o,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:h[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:h[0],areaFillOpacity:.25,areaActiveFillColor:h[0],areaActiveFillOpacity:.5,areaSelectedFillColor:h[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:h[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:o,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:o,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:h[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:o,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:o,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:h[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:o,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:o,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvDark=(0,e.createDarkStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(27)),o=n(15),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,u=a.y,l=a.r,c=i/2,h=(0,o.distance)(s,u,t,e);return r&&n?h<=l+c:r?h<=l:!!n&&(h>=l-c&&h<=l+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0);function a(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=i/2,u=o.x,l=o.y,c=o.rx,h=o.ry,f=(t-u)*(t-u),p=(e-l)*(e-l);return r&&n?a(f,p,c+s,h+s)<=1:r?a(f,p,c,h)<=1:!!n&&(a(f,p,c-s,h-s)>=1&&a(f,p,c+s,h+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,u=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}((0,r.__importDefault)(n(27)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(27)),o=n(15);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,u=e.sx,l=e.sy,c=e.swidth,h=e.sheight,f=e.img;(f instanceof Image||s(f))&&((0,o.isNil)(u)||(0,o.isNil)(l)||(0,o.isNil)(c)||(0,o.isNil)(h)?t.drawImage(f,n,r,i,a):t.drawImage(f,u,l,c,h,n,r,i,a))},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(11),o=(0,r.__importDefault)(n(27)),s=(0,r.__importDefault)(n(81)),u=(0,r.__importStar)(n(80)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&u.addStartArrow(this,t,r,i,e,n),o&&u.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,u=a.y1,l=a.x2,c=a.y2;return(0,s.default)(o,u,l,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(l=u.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=u.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(40),s=(0,r.__importDefault)(n(27)),u=n(15),l=n(64),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,a.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",l=this._getR(r);if((0,u.isFunction)(s))n=(t=s)(i,a,l),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,l)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,l.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(11),o=n(1),s=(0,r.__importDefault)(n(27)),u=n(40),l=n(64),c=(0,r.__importDefault)(n(231)),h=(0,r.__importDefault)(n(232)),f=(0,r.__importDefault)(n(522)),p=(0,r.__importStar)(n(80));function d(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];if(r=(0,h.default)(a,e,n))break}return r}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=(0,u.path2Absolute)(t);var e=f.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=(0,u.path2Segments)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();p.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();p.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n){var u=this.getTotalLength();s=f.default.isPointInStroke(a,i,t,e,u)}if(!s&&r)if(o)s=(0,c.default)(this,t,e);else{var l=this.attr("path"),h=f.default.extractPolygons(l);s=d(h.polygons,t,e)||d(h.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");(0,l.drawPath)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,o.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;(0,o.each)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=i[n];if((0,o.isNil)(s)||(0,o.isNil)(n))return null;var u=s.length,l=i[n+1];return a.Cubic.pointAt(s[u-2],s[u-1],l[1],l[2],l[3],l[4],l[5],l[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",f.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,s=0,u=[],l=this.get("curve");l&&((0,o.each)(l,(function(t,e){n=l[e+1],r=t.length,n&&(i+=a.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,o.each)(l,(function(o,c){n=l[c+1],r=o.length,n&&((t=[])[0]=s/i,e=a.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/i,u.push(t))})),this.set("tCache",u)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=n(11),s=n(11),u=n(7),l=(0,r.__importStar)(n(93)),c=n(15),h=(0,r.__importDefault)(n(81)),f=(0,r.__importDefault)(n(233)),p=u.ext.transform;e.default=(0,i.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([o[1],o[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([o[1],o[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,u=e/2,d=0;d<t.length;d++){var g=t[d],y=g.currentPoint,v=g.params,m=g.prePoint,_=g.box;if(!_||(0,c.inBox)(_.x-u,_.y-u,_.width+e,_.height+e,n,r)){switch(g.command){case"L":case"Z":a=(0,h.default)(m[0],m[1],y[0],y[1],e,n,r);break;case"Q":a=o.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=e/2;break;case"C":a=s.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,i)<=e/2;break;case"A":var x=g.arcParams,b=x.cx,M=x.cy,C=x.rx,P=x.ry,S=x.startAngle,O=x.endAngle,w=x.xRotation,A=[n,r,1],T=C>P?C:P,E=p(null,[["t",-b,-M],["r",-w],["s",1/(C>P?1:C/P),1/(C>P?P/C:1)]]);l.transformMat3(A,A,E),a=(0,f.default)(0,0,T,S,O,e,A[0],A[1])}if(a)break}}return a}},a.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(27)),o=(0,r.__importDefault)(n(234)),s=(0,r.__importDefault)(n(232)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,u=!1;return n&&(u=(0,o.default)(a,i,t,e,!0)),!u&&r&&(u=(0,s.default)(a,t,e)),u},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(11),o=n(11),s=n(1),u=(0,r.__importDefault)(n(27)),l=(0,r.__importDefault)(n(234)),c=(0,r.__importStar)(n(80)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],u=n[a-1][0],l=n[a-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],o,s),i&&c.addEndArrow(this,t,n[a-2][0],n[a-2][1],u,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return(0,l.default)(a,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,a=n.length;if(!(n.length<2)){var o,s=n[0][0],u=n[0][1],l=n[a-1][0],h=n[a-1][1];if(r&&r.d)s+=(o=c.getShortenOffset(s,u,n[1][0],n[1][1],r.d)).dx,u+=o.dy;if(i&&i.d)l-=(o=c.getShortenOffset(n[a-2][0],n[a-2][1],l,h,i.d)).dx,h-=o.dy;t.beginPath(),t.moveTo(s,u);for(var f=0;f<a-1;f++){var p=n[f];t.lineTo(p[0],p[1])}t.lineTo(l,h)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",o.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,s.each)(t,(function(s,u){t[u+1]&&((n=[])[0]=i/e,r=a.Line.length(s[0],s[1],t[u+1][0],t[u+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(27)),o=n(229),s=n(15),u=(0,r.__importDefault)(n(526)),l=(0,r.__importDefault)(n(527)),c=(0,r.__importDefault)(n(231)),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,h=a.y,f=a.width,p=a.height,d=a.radius;if(d){var g=!1;return n&&(g=(0,l.default)(o,h,f,p,d,i,t,e)),!g&&r&&(g=(0,c.default)(this,t,e)),g}var y=i/2;return r&&n?(0,s.inBox)(o-y,h-y,f+y,p+y,t,e):r?(0,s.inBox)(o,h,f,p,t,e):n?(0,u.default)(o,h,f,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var u=(0,o.parseRadius)(s),l=u[0],c=u[1],h=u[2],f=u[3];t.moveTo(n+l,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-h),0!==h&&t.arc(n+i-h,r+a-h,h,0,Math.PI/2),t.lineTo(n+f,r+a),0!==f&&t.arc(n+f,r+a-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s){var u=a/2;return(0,r.inBox)(t-u,e-u,n,a,o,s)||(0,r.inBox)(t+n-u,e-u,a,i,o,s)||(0,r.inBox)(t+u,e+i-u,n,a,o,s)||(0,r.inBox)(t-u,e+u,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(81)),a=(0,r.__importDefault)(n(233));e.default=function(t,e,n,r,o,s,u,l){return(0,i.default)(t+o,e,t+n-o,e,s,u,l)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,u,l)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,u,l)||(0,i.default)(t,e+r-o,t,e+o,s,u,l)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,u,l)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,u,l)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,u,l)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,u,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=(0,r.__importDefault)(n(27)),o=n(15),s=n(13),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,s.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,a=i.textBaseline,u=i.x,l=i.y,c=1*i.fontSize,h=this._getSpaceingY(),f=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,(function(e,i){r=l+i*(h+c)-f+c,"middle"===a&&(r+=f-c-(f-c)/2),"top"===a&&(r+=f-c),(0,o.isNil)(e)||(n?t.fillText(e,u,r):t.strokeText(e,u,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;(0,o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=n(530),s=(0,r.__importStar)(n(63)),u=(0,r.__importDefault)(n(123)),l=n(15),c=n(64),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return u.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,l.getPixelRatio)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?(0,o.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=(0,c.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=(0,c.mergeView)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,l.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,c.applyAttrsToContext)(t,this),(0,c.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,c.applyAttrsToContext)(t,this),(0,c.checkRefresh)(this,n,r),(0,c.drawChildren)(t,n,r),t.restore()):e.length&&(0,c.clearChanged)(e),(0,l.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,l.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(a.AbstractCanvas);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(13);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var u=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=u.minX&&e<=u.maxX&&n>=u.minY&&n<=u.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),u=s.length-1;u>=0;u--){var l=s[u];if(l.isGroup())o=t(l,n,r);else if(a(l,n,r)){var c=l,h=i(l,n,r),f=h[0],p=h[1];c.isInShape(f,p)&&(o=l)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=(0,r.__importStar)(n(82));e.Shape=i,(0,r.__exportStar)(n(13),e);var a=n(545);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var o=n(125);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}((0,r.__importDefault)(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,u=s.length-1;u>=0;u--)r.removeChild(s[u]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}((0,r.__importDefault)(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}((0,r.__importDefault)(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,a.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}((0,r.__importDefault)(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(11),o=n(1),s=n(16),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=(0,o.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}((0,r.__importDefault)(n(21)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(21)),s=(0,r.__importDefault)(n(538)),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var u=(0,a.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+u+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}((0,r.__importDefault)(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}((0,r.__importDefault)(n(21)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(11),o=n(11),s=n(1),u=n(16),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,s.each)(e||n,(function(t,e){"points"===e&&(0,s.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u.SVG_ATTR_MAP[e]&&r.setAttribute(u.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];(0,s.each)(t,(function(s,u){t[u+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[u+1][0],t[u+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}((0,r.__importDefault)(n(21)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=(0,r.__importDefault)(n(21)),s=n(16),u=n(543),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,u=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===u.indexOf(e)||o?-1===u.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,u.parseRadius)(o);return(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],(0,r.isArray)(t)?t:(0,r.isString)(t)?(t=t.match(i),(0,r.each)(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(92),s=n(65),u=n(16),l=(0,r.__importDefault)(n(21)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},h={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},f={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):u.SVG_ATTR_MAP[e]&&i.setAttribute(u.SVG_ATTR_MAP[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",h[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",f[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,l="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+r+'" dy="'+-u+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+r+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+r+'" dy="-'+(u+.3)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+r+'" dy="'+(-(u-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(13),o=n(16),s=n(124),u=n(65),l=n(28),c=(0,r.__importStar)(n(82)),h=(0,r.__importDefault)(n(125)),f=(0,r.__importDefault)(n(546)),p=function(t){function e(e){return t.call(this,(0,i.__assign)((0,i.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,i.__extends)(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return h.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=(0,l.createSVGElement)("svg"),e=new f.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&(0,l.sortDom)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?(0,u.setTransform)(this):"clip"===t?(0,u.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,u.setClip)(this,t),e.length&&(0,s.drawChildren)(t,e)},e}(a.AbstractCanvas);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(547)),o=(0,r.__importDefault)(n(548)),s=(0,r.__importDefault)(n(549)),u=(0,r.__importDefault)(n(550)),l=(0,r.__importDefault)(n(551)),c=n(28),h=function(){function t(t){var e=(0,c.createSVGElement)("defs"),n=(0,i.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new s.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new s.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(28),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function u(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,r.each)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var l=function(){function t(t){this.cfg={};var e,n,s,l,c,h,f,p=null,d=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=(0,r.mod)((0,r.toRadian)(parseFloat(o[1])),2*Math.PI),l=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var c=Math.tan(s),h=c*c,f=(i.x-n.x+c*(i.y-n.y))/(h+1)+n.x,p=c*(i.x-n.x+c*(i.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=u(l)}(t,p=(0,i.createSVGElement)("linearGradient")):(p=(0,i.createSVGElement)("radialGradient"),e=t,n=p,s=o.exec(e),l=parseFloat(s[1]),c=parseFloat(s[2]),h=parseFloat(s[3]),f=s[4],n.setAttribute("cx",l),n.setAttribute("cy",c),n.setAttribute("r",h),n.innerHTML=u(f)),p.setAttribute("id",d),this.el=p,this.id=d,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(28),a={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=(0,i.createSVGElement)("filter");return(0,r.each)(o,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=(0,r.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return(0,r.each)(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[a[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(28),a=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),a=(0,r.uniqueId)("marker_");n.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;(0,r.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(28),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(28),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var o=(0,r.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var u=new Image;function l(){e.setAttribute("width",""+u.width),e.setAttribute("height",""+u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?l():(u.onload=l,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=(0,r.__importDefault)(n(126));n(553);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,u=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=u,n}return(0,r.__extends)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push(o.points),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(83),o=(0,i.registerShapeFactory)("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return((0,r.isArray)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});(0,i.registerShape)("area","area",{draw:function(t,e){var n=(0,a.getShapeAttrs)(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(35));n(555);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(5),o=n(51),s=n(127),u=(0,i.registerShapeFactory)("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return(0,s.splitPoints)(t)}});(0,i.registerShape)("edge","line",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=(0,o.getLinePath)(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(71)),a=n(1),o=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return(0,r.__extends)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),s=(0,a.get)(this.styleOption,["cfg","shadowBlur"]);(0,a.isNumber)(s)||(s=o/2),this.prepareGreyScaleBlurredCircle(o,s),this.drawWithRange(r,i,o,s)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t[o.FIELD_ORIGIN][e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return(0,a.isNumber)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i=this.coordinate,a=i.start,s=i.end,u=this.coordinate.getWidth(),l=this.coordinate.getHeight(),c=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][c]<=e[1]&&t[o.FIELD_ORIGIN][c]>=e[0]})));for(var f=this.scales[c],p=0,d=t;p<d.length;p++){var g=d[p],y=this.getDrawCfg(g),v=y.x,m=y.y,_=f.scale(g[o.FIELD_ORIGIN][c]);this.drawGrayScaleBlurredCircle(v-a.x,m-s.y,n+r,_,h)}var x=h.getImageData(0,0,u,l);this.clearShadowCanvasCtx(),this.colorize(x),h.putImageData(x,0,0);var b=this.getImageShape();b.attr("x",a.x),b.attr("y",s.y),b.attr("width",u),b.attr("height",l),b.attr("img",h.canvas),b.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,o=3;o<n.length;o+=4){var s=n[o];if((0,a.isNumber)(s)){var u=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[o-3]=u[0],n[o-2]=u[1],n[o-1]=u[2],n[o]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[o.FIELD_ORIGIN]}));return(0,r.__assign)((0,r.__assign)({},e),{mappingData:t,data:n})},e}((0,r.__importDefault)(n(35)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=(0,r.__importDefault)(n(35));n(558);var s=n(128),u=n(47),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate;n/=(0,a.getXDimensionLength)(o)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:(0,u.getMaxScale)(e)});else{var n=this.scaleDefs,r=e.field,a=e.min,o=e.max;"time"!==e.type&&(a>0&&!(0,i.get)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(121),o=n(5),s=n(66),u=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var n,i=(0,o.getStyle)(t,!1,!0),u=e,l=null==t?void 0:t.background;if(l){u=e.addGroup();var c=(0,o.getBackgroundRectStyle)(t),h=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);u.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},c),{path:h}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?(0,s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath((0,s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var f=u.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:n}),name:"interval"});return l?u:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(126));n(235);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return(0,r.__extends)(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(35));n(561);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return(0,r.__assign)((0,r.__assign)({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(62),a=n(3),o=n(127),s=n(129),u=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,r.each)(s.SHAPES,(function(t){(0,a.registerShape)("point","hollow-"+t,{draw:function(e,n){return(0,s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(35));n(563);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),u=this.getYScale(),l=.5/s.values.length,c=.5/u.values.length;s.isCategory&&u.isCategory?(a=[a-l,a-l,a+l,a+l],o=[o-c,o+c,o+c,o-c]):(0,i.isArray)(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,i.isArray)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-l/2,a-l/2,a+l/2,a+l/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(5);var s=(0,a.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,i.each)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});(0,a.registerShape)("polygon","polygon",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var a=t[n];a.x===t[n-1].x&&a.y===t[n-1].y||(r.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return(0,i.isEqual)((0,i.last)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:a}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(14),a=(0,r.__importDefault)(n(35));n(565);var o=n(128),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=(0,i.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=(0,o.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(3).registerShapeFactory)("schema",{defaultShapeType:""});e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(14),s=n(128),u=(0,r.__importDefault)(n(35));n(567);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),u=this.getAttribute("size");if(u){n=this.getAttributeValues(u,e)[0];var l=this.coordinate;n/=(0,o.getXDimensionLength)(l)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=(0,i.get)(e[a.FIELD_ORIGIN],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(u.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(54),s=n(5);var u=(0,a.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!(0,i.isArray)(t))return[];var e=(0,i.max)(t);return(0,i.map)(t,(function(t){return t/e}))}(t._size);return(0,i.each)(t.y,(function(i,a){var o=r[a]*e,s=0===a,u=a===t.y.length-1;n.push({isMin:s,isMax:u,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:u,x:t.x+o,y:i})})),n}});(0,a.registerShape)("violin","violin",{draw:function(t,e){var n=(0,s.getStyle)(t,!0,!0),i=this.parsePath((0,o.getViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","line",{draw:function(t,e){var n=(0,i.getShapeAttrs)(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","smooth",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!1,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!0,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(12),a=n(3),o=n(5),s=n(237);(0,a.registerShape)("edge","arc",{draw:function(t,e){var n,a=(0,o.getStyle)(t,!0,!1,"lineWidth"),u=t.points,l=u.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===l?n=function(t,e,n){var r=(0,s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(u[0],u[1],c):(a.fill=a.stroke,n=function(t,e){var n=(0,s.getQPath)(t[1],e),r=(0,s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(u,c)),n=this.parsePath(n),e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})})}if("normal"===l)return u=this.parsePoints(u),n=(0,i.getArcPath)((u[1].x+u[0].x)/2,u[0].y,Math.abs(u[1].x-u[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})});var h=(0,s.getCPath)(u[1],u[3]),f=(0,s.getCPath)(u[2],u[0]);return n=[["M",u[0].x,u[0].y],["L",u[1].x,u[1].y],h,["L",u[3].x,u[3].y],["L",u[2].x,u[2].y],f,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(5),o=n(237);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=(0,o.getCPath)(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(5);(0,a.registerShape)("edge","vhv",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return(0,i.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(a[0],a[1]));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(5),o=n(66);(0,i.registerShape)("interval","funnel",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(121),o=n(5),s=n(66);(0,i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=e,u=null==t?void 0:t.background;if(u){i=e.addGroup();var l=(0,o.getBackgroundRectStyle)(t),c=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},l),{path:c}),zIndex:-1,name:a.BACKGROUND_SHAPE})}var h=this.parsePath((0,s.getRectPath)(t.points)),f=i.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:h}),name:"interval"});return u?i:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(5),s=n(66),u=n(26);(0,a.registerShape)("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,a=e.y0,(0,i.isArray)(r)?r.map((function(t,e){return{x:(0,i.isArray)(n)?n[e]:n,y:t}})):[{x:n,y:a},{x:n,y:r}];var e,n,r,a},draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),i=(0,u.omit)((0,r.__assign)({},n),["fill"]),a=this.parsePath((0,s.getRectPath)(t.points,!1));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(5),o=n(66);(0,i.registerShape)("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(5);(0,a.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,r=t.x,a=t.y,o=t.y0,s=t.size;(0,i.isArray)(a)?(e=a[0],n=a[1]):(e=o,n=a);var u=r+s/2,l=r-s/2;return[{x:r,y:e},{x:r,y:n},{x:l,y:e},{x:u,y:e},{x:l,y:n},{x:u,y:n}]}(t)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(54),s=n(5),u=n(236);function l(t,e){var n=(0,o.getPathPoints)(t.points,t.connectNulls,t.showSinglePoint),a=[];return(0,i.each)(n,(function(t){var n=function(t,e){var n=[];return(0,i.each)(t,(function(r,i){var a=t[i+1];if(n.push(r),a){var o=function(t,e,n){var r,i=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":r=[{x:o,y:a}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var u=(o+i)/2;r=[{x:u,y:a},{x:u,y:s}];break;case"vhv":var l=(a+s)/2;r=[{x:i,y:l},{x:o,y:l}]}return r}(r,a,e);n=n.concat(o)}})),n}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),(0,r.__assign)((0,r.__assign)({},(0,s.getStyle)(t,!0,!1,"lineWidth")),{path:a})}(0,i.each)(["hv","vh","hvh","vhv"],(function(t){(0,a.registerShape)("line",t,{draw:function(e,n){var r=l(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return(0,u.getLineMarker)(e,t)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(62),a=n(3),o=n(129);(0,r.each)(o.HOLLOW_SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(5);(0,r.registerShape)("point","image",{draw:function(t,e){var n=(0,i.getStyle)(t,!1,!1,"r").r,r=this.parsePoints(t.points),a=r[0];if(t.isStack)a=r[1];else if(r.length>1){for(var o=e.addGroup(),s=0,u=r;s<u.length;s++){var l=u[s];o.addShape("image",{attrs:{x:l.x-n/2,y:l.y-n,width:n,height:n,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:a.x-n/2,y:a.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(62),a=n(3),o=n(129);(0,r.each)(o.SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(5);function s(t){var e=(0,i.isArray)(t)?t:[t],n=e[0],r=e[e.length-1],a=e.length>1?e[1]:n;return{min:n,max:r,min1:a,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:a}}function u(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),u=o.min,l=o.max,c=o.median,h=o.min1,f=t-a,p=t+a;r=[[f,l],[p,l],[t,l],[t,d=o.max1],[f,h],[f,d],[p,d],[p,h],[t,h],[t,u],[f,u],[p,u],[f,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var d,g=s(t),y=(u=g.min,l=g.max,c=g.median,e-a),v=e+a;r=[[u,y],[u,v],[u,e],[h=g.min1,e],[h,y],[h,v],[d=g.max1,v],[d,y],[d,e],[l,e],[l,y],[l,v],[c,y],[c,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}(0,a.registerShape)("schema","box",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=u(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(26),o=n(3),s=n(5);function u(t,e,n){var r,o,s=(r=e,o=((0,i.isArray)(r)?r:[r]).sort((function(t,e){return e-t})),(0,a.padEnd)(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=u(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(5);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),a=Math.min(n,r);return e&&(a=(0,i.clamp)(e,0,Math.min(n,r))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}(0,a.registerShape)("polygon","square",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},n),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(54),o=n(5);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(54),o=n(5);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),(0,i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i){var a,o=t.prototype.getLabelOffsetPoint.call(this,e,n,i),s=this.getCoordinate().isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return(0,r.__assign)((0,r.__assign)({},o),((a={})[s]=o[s]*u,a))},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return(0,i.deepMix)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var a,o,s,u,l=this.getCoordinate(),c=l.isTransposed,h=e.points,f=l.convert(h[0]),p=l.convert(h[2]),d=this.getLabelValueDir(e),g=(0,i.isArray)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=(0,i.get)(e,"nextPoints"),v=(0,i.get)(e,"points");if(y){var m=l.convert(v[0]),_=l.convert(v[1]),x=l.convert(y[0]),b=l.convert(y[1]);c?(a=Math.min(x.y,m.y),s=Math.max(x.y,m.y),o=(_.x+b.x)/2,u=(m.x+x.x)/2):(a=Math.min((_.y+b.y)/2,(m.y+x.y)/2),s=Math.max((_.y+b.y)/2,(m.y+x.y)/2),o=b.x,u=m.x)}else a=Math.min(p.y,f.y),s=Math.max(p.y,f.y),o=p.x,u=f.x}else a=Math.min(p.y,f.y),s=Math.max(p.y,f.y),o=p.x,u=f.x;switch(r){case"right":t.x=o,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=u,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+u)/2),t.y=s,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":c&&(t.x=(o+u)/2),t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+u)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top")}},e}((0,r.__importDefault)(n(79)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(12),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return(0,r.__extends)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,i.deepMix)({},r,(0,i.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:(0,i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:(0,i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=(0,a.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var u=(0,a.getAngleByPoint)(n,o);s>=u&&(u+=2*Math.PI),e=s+(u-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return(0,r.__assign)((0,r.__assign)({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}((0,r.__importDefault)(n(238)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(1),i=n(12);e.distribute=function(t,e,n,a){if(t.length&&e.length){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),u=s.getRadius(),l=s.getCenter();if(o>0){var c=2*(u+o)+28,h={start:s.start,end:s.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var i=c/14;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,i,a,o){var s,u=!0,l=i.start,c=i.end,h=Math.min(l.y,c.y),f=Math.abs(l.y-c.y),p=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.y<d&&(d=t.y),{size:n,targets:[t.y-h]}}));for(d-=h,p-h>f&&(f=p-h);u;)for(g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),f-t.size)})),u=!1,s=g.length;s--;)if(s>0){var y=g[s-1],v=g[s];y.pos+y.size>v.pos&&(y.size+=v.size,y.targets=y.targets.concat(v.targets),y.pos+y.size>f&&(y.pos=f-y.size),g.splice(s,1),u=!0)}s=0,g.forEach((function(t){var r=h+n/2;t.targets.forEach((function(){e[s].y=t.pos+r,r+=n,s++}))}));for(var m={},_=0,x=t;_<x.length;_++){var b=x[_];m[b.get("id")]=b}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-a.y),2);if(e<n)t.x=a.x;else{var i=Math.sqrt(e-n);t.x=o?a.x+i:a.x-i}var s=m[t.id];s.attr("x",t.x),s.attr("y",t.y);var u=(0,r.find)(s.getChildren(),(function(t){return"text"===t.get("type")}));u&&(u.attr("y",t.y),u.attr("x",t.x))}))}(e,t,14,h,l,n)}))}(0,r.each)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,a=(0,i.polarToCartesian)(l.x,l.y,u,n),o=(0,i.polarToCartesian)(l.x,l.y,u+e/2,n),s=t.x+(0,r.get)(t,"offsetX",0),c=t.y+(0,r.get)(t,"offsetY",0),h={x:s-4*Math.cos(n),y:c-4*Math.sin(n)};(0,r.isObject)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+a.x,a.y+" Q"+o.x,o.y+" "+h.x,h.y].join(",")}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(1),i=n(12),a=n(239);e.pieOuterLabelLayout=function(t,e,n,o){var s=(0,r.filter)(t,(function(t){return!(0,r.isNil)(t)})),u=e[0]&&e[0].get("coordinate");if(u){for(var l=u.getCenter(),c=u.getRadius(),h={},f=0,p=e;f<p.length;f++){var d=p[f];h[d.get("id")]=d}var g=(0,r.get)(s[0],"labelHeight",14),y=(0,r.get)(s[0],"offset",0);if(!(y<=0)){var v=(0,r.groupBy)(s,(function(t){return t.x<l.x?"left":"right"})),m=u.start,_=u.end,x=Math.min(2*(c+y+g),u.getHeight()),b=x/2,M={minX:m.x,maxX:_.x,minY:l.y-b,maxY:l.y+b};(0,r.each)(v,(function(t,e){var n=Math.floor(x/g);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,r.each)(t,(function(t,e){e+1>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),(0,a.antiCollision)(t,g,M)})),(0,r.each)(v,(function(t,e){(0,r.each)(t,(function(t){var n="right"===e,a=h[t.id].getChildByIndex(0);if(a){var o=c+y,s=t.y-l.y,f=Math.pow(o,2),p=Math.pow(s,2),d=f-p>0?f-p:0,g=Math.sqrt(d),v=Math.abs(Math.cos(t.angle)*o);t.x=n?l.x+Math.max(g,v):l.x-Math.max(g,v)}a&&(a.attr("y",t.y),a.attr("x",t.x)),function(t,e){var n=e.getCenter(),a=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,u=(0,i.polarToCartesian)(n.x,n.y,a,o),l=t.x+(0,r.get)(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+(0,r.get)(t,"offsetY",0)*(Math.sin(o)>0?1:-1),h={x:l-4*Math.cos(o),y:c-4*Math.sin(o)},f=t.labelLine.smooth,p=[],d=h.x-n.x,g=h.y-n.y,y=Math.atan(g/d);if(d<0&&(y+=Math.PI),!1===f){(0,r.isObject)(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&h.y>u.y&&(v=1),o>=0&&o<Math.PI/2&&h.y>u.y&&(v=1),o>=Math.PI/2&&o<Math.PI&&u.y>h.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&u.y>h.y&&(v=1);var m=s/2>4?4:Math.max(s/2-1,0),_=(0,i.polarToCartesian)(n.x,n.y,a+m,o),x=(0,i.polarToCartesian)(n.x,n.y,a+s/2,y);p.push("M "+u.x+" "+u.y),p.push("L "+_.x+" "+_.y),p.push("A "+n.x+" "+n.y+" 0 0 "+v+" "+x.x+" "+x.y),p.push("L "+h.x+" "+h.y)}else{_=(0,i.polarToCartesian)(n.x,n.y,a+(s/2>4?4:Math.max(s/2-1,0)),o);var b=u.x<n.x?1:-1;p.push("M "+h.x+" "+h.y);var M=(u.y-n.y)/(u.x-n.x),C=(h.y-n.y)/(h.x-n.x);Math.abs(M-C)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",h.x+4*b,h.y,2*_.x-u.x,2*_.y-u.y,u.x,u.y]),p.push("L "+u.x+" "+u.y)}t.labelLine.path=p.join(" ")}}(t,u)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(1),i=n(12),a=n(239),o=n(53);e.pieSpiderLabelLayout=function(t,e,n,s){var u=e[0]&&e[0].get("coordinate");if(u){for(var l=u.getCenter(),c=u.getRadius(),h={},f=0,p=e;f<p.length;f++){var d=p[f];h[d.get("id")]=d}var g=(0,r.get)(t[0],"labelHeight",14),y=Math.max((0,r.get)(t[0],"offset",0),4);(0,r.each)(t,(function(t){if((0,r.get)(h,[t.id])){var e=t.x>l.x||t.x===l.x&&t.y>l.y,n=(0,r.isNil)(t.offsetX)?4:t.offsetX,a=(0,i.polarToCartesian)(l.x,l.y,c+4,t.angle),o=y+n;t.x=l.x+(e?1:-1)*(c+o),t.y=a.y}}));var v=u.start,m=u.end,_=(0,r.groupBy)(t,(function(t){return t.x<l.x?"left":"right"})),x=2*(c+y)+g;(0,r.each)(_,(function(t){var e=t.length*g;e>x&&(x=Math.min(e,Math.abs(v.y-m.y)))}));var b={minX:v.x,maxX:m.x,minY:l.y-x/2,maxY:l.y+x/2};(0,r.each)(_,(function(t,e){var n=x/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,r.each)(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),(0,a.antiCollision)(t,g,b)}));var M=b.minY,C=b.maxY;(0,r.each)(_,(function(t,e){var n="right"===e;(0,r.each)(t,(function(t){var e=(0,r.get)(h,t&&[t.id]);if(e)if(t.y<M||t.y>C)e.set("visible",!1);else{var a=e.getChildByIndex(0),s=a.getCanvasBBox(),l=n?s.x:s.maxX,c=s.y+s.height/2;(0,o.translate)(a,t.x-l,t.y-c),t.labelLine&&function(t,e,n){var a,o=e.getCenter(),s=e.getRadius(),u={x:t.x-(n?4:-4),y:t.y},l=(0,i.polarToCartesian)(o.x,o.y,s+4,t.angle),c={x:u.x,y:u.y},h={x:l.x,y:l.y},f=(0,i.polarToCartesian)(o.x,o.y,s,t.angle);if(u.y!==l.y){var p=n?4:-4;c.y=u.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(l.x,u.x-p),u.y<l.y?h.y=c.y:(h.y=l.y,h.x=Math.max(h.x,c.x-p))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(l.x,u.x-p),u.y>l.y?h.y=c.y:(h.y=l.y,h.x=Math.max(h.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(l.x,u.x-p),u.y>l.y?h.y=c.y:(h.y=l.y,h.x=Math.min(h.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(l.x,u.x-p),u.y<l.y?h.y=c.y:(h.y=l.y,h.x=Math.min(h.x,c.x-p)))}a=["M "+u.x+","+u.y,"L "+c.x+","+c.y,"L "+h.x+","+h.y,"L "+l.x+","+l.y,"L "+f.x+","+f.y].join(" "),t.labelLine=(0,r.deepMix)({},t.labelLine,{path:a})}(t,u,n)}}))}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInCanvas=void 0;var r=n(1),i=n(53);e.limitInCanvas=function(t,e,n,a){(0,r.each)(e,(function(t){var e=a.minX,n=a.minY,r=a.maxX,o=a.maxY,s=t.getCanvasBBox(),u=s.minX,l=s.minY,c=s.maxX,h=s.maxY,f=s.x,p=s.y,d=s.width,g=s.height,y=f,v=p;(u<e||c<e)&&(y=e),(l<n||h<n)&&(v=n),u>r?y=r-d:c>r&&(y-=c-r),l>o?v=o-g:h>o&&(v-=h-o),y===f&&v===p||(0,i.translate)(t,y-f,v-p)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(1);e.limitInShape=function(t,e,n,i){(0,r.each)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(1),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,a){var o=new i;(0,r.each)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),u=Math.sqrt(s.width*s.width+s.height*s.height),l=1,c=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var f,p,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(h))<u&&g<n;)if(f=l+=-1,p=void 0,h=~~(r=[(p=.1*f)*Math.cos(p),p*Math.sin(p)])[1],((c=~~r[0])||h)&&!y[c+"-"+h]&&(t.attr({x:a+c,y:o+h}),c+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y[c+"-"+h]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),o)||t.remove(!0)})),o.destroy()},e.overlap=function(t,e,n,o){var s=new i;(0,r.each)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,i=n.y,o=!1,u=0;u<=8;u++){var l=a(e,r,i,u);if(s.hasGap(l)){s.fillGap(l),o=!0;break}}o||t.remove(!0)})),s.destroy()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hideOverlap=void 0;var r=n(1),i=n(597),a=n(52);e.hideOverlap=function(t,e,n,o){for(var s=0;s<e.length;s++){var u=e[s];if(e[s].get("visible"))for(var l=s+1;l<e.length;l++){var c=e[l];if(u&&c&&u!==c&&c.get("visible")){var h=(0,a.getlLabelBackgroundInfo)(u,t[s],(0,r.get)(t[s],"background.padding")),f=(0,a.getlLabelBackgroundInfo)(c,t[l],(0,r.get)(t[l],"background.padding"));(0,i.isIntersect)(h,f)&&e[l].set("visible",!1)}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIntersect=e.isIntersectRect=void 0;var r=n(0),i=n(7).vec2.dot;function a(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function o(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function s(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[o(e[0],n,e[0]),o(e[1],n,e[0]),o(e[2],n,e[0]),o(e[3],n,e[0])]:e}function u(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(i([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function l(t,e){return t.max>e.min&&t.min<e.max}function c(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}e.isIntersectRect=c,e.isIntersect=function(t,e){if(!t.rotation&&!e.rotation)return c(t,e);for(var n=s(t),i=s(e),o=(0,r.__spreadArray)((0,r.__spreadArray)([],a(n),!0),a(i),!0),h=0;h<o.length;h++){var f=o[h];if(!l(u(n,f),u(i,f)))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustColor=void 0;var r=n(30),i=n(599);e.adjustColor=function(t,e,n){if(0!==n.length){var a=n[0].get("element").geometry.theme,o=a.labels||{},s=o.fillColorLight,u=o.fillColorDark;n.forEach((function(t,n){var o=e[n].find((function(t){return"text"===t.get("type")})),l=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(o.getCanvasBBox()),h=!l.contains(c),f=t.attr("fill"),p=(0,i.isContrastColorWhite)(f);h?o.attr(a.overflowLabels.style):p?s&&o.attr("fill",s):u&&o.attr("fill",u)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isContrastColorWhite=void 0;var r=(0,n(0).__importDefault)(n(71)),i={"#5B8FF9":!0};e.isContrastColorWhite=function(t){var e=r.default.toRGB(t).toUpperCase();if(i[e])return i[e];var n=r.default.rgb2arr(e);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalAdjustPosition=void 0;var r=n(30),i=n(52);function a(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,a){var o=n[a];return function(t,e,n){var a=t.coordinate,o=(0,i.findLabelTextShape)(e),s=r.BBox.fromObject(o.getCanvasBBox()),u=r.BBox.fromObject(n.getBBox());return a.isTransposed?u.height>=s.height:u.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==s?void 0:s.geometry;if(u&&"interval"===u.type)a(u,e,n)&&n.forEach((function(t,n){var a=e[n];!function(t,e,n){var a=t.coordinate,o=r.BBox.fromObject(n.getBBox()),s=(0,i.findLabelTextShape)(e);a.isTransposed?s.attr({x:o.minX+o.width/2,textAlign:"center"}):s.attr({y:o.minY+o.height/2,textBaseline:"middle"})}(u,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(1),i=n(52);e.intervalHideOverlap=function(t,e,n){var a;if(0!==n.length){var o=null===(a=n[0])||void 0===a?void 0:a.get("element"),s=null==o?void 0:o.geometry;if(s&&"interval"===s.type){var u,l=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return(0,r.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),c=s.getXYFields()[0],h=[],f=[],p=(0,r.groupBy)(l,(function(t){return t.get("data")[c]})),d=(0,r.uniq)((0,r.map)(l,(function(t){return t.get("data")[c]})));l.forEach((function(t){t.set("visible",!0)}));var g=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,t))};for((0,r.size)(d)>0&&(u=d.shift(),g(p[u])),(0,r.size)(d)>0&&(u=d.pop(),g(p[u])),(0,r.each)(d.reverse(),(function(t){g(p[t])}));f.length>0;){var y=f.shift();y.get("visible")&&((0,i.checkShapeOverlap)(y,h)?y.set("visible",!1):h.push(y))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(1),i=n(52);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function o(t,e){return a(t,e,(function(t,e){var n,r,a,o=(0,i.findLabelTextShape)(t),s=(0,i.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(a=2)&&(a=0),Math.max(0,Math.min(n.x+n.width+a,r.x+r.width+a)-Math.max(n.x-a,r.x-a))*Math.max(0,Math.min(n.y+n.height+a,r.y+r.height+a)-Math.max(n.y-a,r.y-a))>0}))}e.pointAdjustPosition=function(t,e,n,s,u){var l,c;if(0!==n.length){var h=null===(l=n[0])||void 0===l?void 0:l.get("element"),f=null==h?void 0:h.geometry;if(f&&"point"===f.type){var p=f.getXYFields(),d=p[0],g=p[1],y=(0,r.groupBy)(e,(function(t){return t.get("data")[d]})),v=[],m=u&&u.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;(0,r.map)((0,r.keys)(y).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(f,y[t]);e.length;){var n=e.shift(),r=(0,i.findLabelTextShape)(n);if(a(v,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[g]===e.get("data")[g]})))r.set("visible",!1);else{var s=!1;o(v,n)&&(r.attr("y",r.attr("y")+2*m),s=o(v,n)),s?r.set("visible",!1):v.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(1),i=n(52);function a(t,e,n){return t.some((function(t){return n(t,e)}))}function o(t,e){return a(t,e,(function(t,e){var n,r,a,o=(0,i.findLabelTextShape)(t),s=(0,i.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(a=2)&&(a=0),Math.max(0,Math.min(n.x+n.width+a,r.x+r.width+a)-Math.max(n.x-a,r.x-a))*Math.max(0,Math.min(n.y+n.height+a,r.y+r.height+a)-Math.max(n.y-a,r.y-a))>0}))}e.pathAdjustPosition=function(t,e,n,s,u){var l,c;if(0!==n.length){var h=null===(l=n[0])||void 0===l?void 0:l.get("element"),f=null==h?void 0:h.geometry;if(f&&!(["path","line","area"].indexOf(f.type)<0)){var p=f.getXYFields(),d=p[0],g=p[1],y=(0,r.groupBy)(e,(function(t){return t.get("data")[d]})),v=[],m=u&&u.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;(0,r.map)((0,r.keys)(y).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(f,y[t]);e.length;){var n=e.shift(),r=(0,i.findLabelTextShape)(n);if(a(v,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[g]===e.get("data")[g]})))r.set("visible",!1);else{var s=!1;o(v,n)&&(r.attr("y",r.attr("y")+2*m),s=o(v,n)),s?r.set("visible",!1):v.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(1),i=n(14),a=n(605),o=n(53);e.limitInPlot=function(t,e,n,s,u){if(!(e.length<=0)){var l=(null==u?void 0:u.direction)||["top","right","bottom","left"],c=(null==u?void 0:u.action)||"translate",h=(null==u?void 0:u.margin)||0,f=e[0].get("coordinate");if(f){var p=(0,i.getCoordinateBBox)(f,h),d=p.minX,g=p.minY,y=p.maxX,v=p.maxY;(0,r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,u=e.maxY,h=e.x,f=e.y,p=e.width,m=e.height,_=h,x=f;if(l.indexOf("left")>=0&&(n<d||s<d)&&(_=d),l.indexOf("top")>=0&&(i<g||u<g)&&(x=g),l.indexOf("right")>=0&&(n>y?_=y-p:s>y&&(_-=s-y)),l.indexOf("bottom")>=0&&(i>v?x=v-m:u>v&&(x-=u-v)),_!==h||x!==f){var b=_-h;if("translate"===c)(0,o.translate)(t,b,x-f);else if("ellipsis"===c){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(0),i=n(1),a=n(606);e.measureTextWidth=(0,i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,u=e.fontVariant,l=(0,a.getCanvasContext)();return l.font=[s,u,o,n+"px",r].join(" "),l.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,r.__spreadArray)([t],(0,i.values)(e),!0).join("")}));e.getEllipsisText=function(t,n,r){var a,o=(0,e.measureTextWidth)("...",r);a=(0,i.isString)(t)?t:(0,i.toString)(t);var s,u,l=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;s=a.substr(0,16),!((u=(0,e.measureTextWidth)(s,r))+o>l&&u>l);)if(c.push(s),l-=u,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((u=(0,e.measureTextWidth)(s,r))+o>l);)if(c.push(s),l-=u,!(a=a.substr(1)))return c.join("");return c.join("")+"..."}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var r=n(1);e.fadeIn=function(t,e,n){var i={fillOpacity:(0,r.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,r.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,r.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)},e.fadeOut=function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(609);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(7);function i(t,e,n){var i,a=e[0],o=e[1];return t.applyToMatrix([a,o,1]),"x"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===n&&(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}e.transformShape=i,e.doScaleAnimate=function(t,e,n,r,a){var o,s,u=n.start,l=n.end,c=n.getWidth(),h=n.getHeight();"y"===a?(o=u.x+c/2,s=r.y<u.y?r.y:u.y):"x"===a?(o=r.x>u.x?r.x:u.x,s=u.y+h/2):"xy"===a&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(u.x+l.x)/2,s=(u.y+l.y)/2));var f=i(t,[o,s],a);t.animate({matrix:f},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=void 0,e.pathIn=function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var r=n(7);e.scaleInX=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,u=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,u,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-u],["s",1,.01],["t",o,u]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-u],["s",1,100],["t",o,u]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(0),i=n(228),a=n(1),o=n(12);function s(t,e){var n,r=(0,i.getArcParams)(t,e),o=r.startAngle,s=r.endAngle;return!(0,a.isNumberEqual)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),0===e[5]&&(o=(n=[s,o])[0],s=n[1]),(0,a.isNumberEqual)(o,1.5*Math.PI)&&(o=-.5*Math.PI),(0,a.isNumberEqual)(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:o,endAngle:s}}function u(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function l(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],l=i.length>1?i[1]:i[0],c=t.indexOf(o),h=t.indexOf(l),f=u(t[c-1]),p=u(t[h-1]),d=s(f,o),g=d.startAngle,y=d.endAngle,v=s(p,l),m=v.startAngle,_=v.endAngle;(0,a.isNumberEqual)(g,m)&&(0,a.isNumberEqual)(y,_)?(n=g,r=y):(n=Math.min(g,m),r=Math.max(y,_));var x=o[1],b=i[i.length-1][1];return x<b?(x=(e=[b,x])[0],b=e[1]):x===b&&(b=0),{startAngle:n,endAngle:r,radius:x,innerRadius:b}}e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,u=i.path||[],c=u.map((function(t){return t[0]}));if(!(u.length<1)){var h=l(u),f=h.startAngle,p=h.endAngle,d=h.radius,g=h.innerRadius,y=l(t.attr("path")),v=y.startAngle,m=y.endAngle,_=s.getCenter(),x=f-v,b=p-m;0!==x||0!==b?t.animate((function(t){var e=v+t*x,n=m+t*b;return(0,r.__assign)((0,r.__assign)({},i),{path:(0,a.isEqual)(c,["M","A","A","Z"])?(0,o.getArcPath)(_.x,_.y,d,e,n):(0,o.getSectorPath)(_.x,_.y,d,e,n,g)})}),(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t.attr("path",u)}})):t.attr("path",u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waveIn=void 0;var r=n(0),i=n(14);e.waveIn=function(t,e,n){var a=(0,i.getCoordinateClipCfg)(n.coordinate,20),o=a.type,s=a.startState,u=a.endState,l=t.setClip({type:o,attrs:s});l.animate(u,(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0)}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOut=e.zoomIn=void 0;var r=n(0),i=n(7),a=n(1);function o(t,e,n){if(t.isGroup())(0,a.each)(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),u=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(t.applyToMatrix([u,l,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",100,100],["t",u,l]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]])},(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),a=(0,o.getAnglePoint)({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,u=1*Math.PI/4;return{start:(0,o.getAnglePoint)(a,i,s),end:(0,o.getAnglePoint)(a,i,u)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,a=n.type,o=r[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),u=s.length,l=[];return s.forEach((function(n,r){var c=[{field:o,value:n,values:s}],h=(0,i.filter)(t,e.getFacetDataFilter(c)),f={type:a,data:h,region:e.getRegion(u,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(f)})),l},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),u=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e}(n(38).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,a=n[0];if(!a)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length;r=r||s;var u=this.getPageCount(s,r),l=[];return o.forEach((function(n,c){var h=e.getRowCol(c,r),f=h.row,p=h.col,d=[{field:a,value:n,values:o}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,r,p,f),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:r,rowValuesLength:u,total:s};l.push(y)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),u=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(38).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,a=i,o=[],s=0;s<a;s++)for(var u=n[s],l=0;l<i;l++){var c=n[l],h={type:r,data:t,region:this.getRegion(i,a,s,l),columnValue:u,rowValue:c,columnField:u,rowField:c,columnIndex:s,rowIndex:l,columnValuesLength:a,rowValuesLength:i};o.push(h)}return o},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=(e.rowValuesLength,e.columnValue),c=e.rowValue,h=e.view;if(0===s){var f=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:f?f(l):l},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(r===u-1){f=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:f?f(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e}(n(38).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,a=this.cfg.fields[0],o=[],s=1,u=1,l=[""],c=[""];return this.cfg.transpose?(e=a,l=this.getFieldValues(t,e).slice(0,2),s=l.length):(n=a,c=this.getFieldValues(t,n).slice(0,2),u=c.length),l.forEach((function(a,h){c.forEach((function(f,p){var d=[{field:e,value:a,values:l},{field:n,value:f,values:c}],g=(0,i.filter)(t,r.getFacetDataFilter(d)),y={type:r.cfg.type,data:g,region:r.getRegion(u,s,h,p),columnValue:a,rowValue:f,columnField:e,rowField:n,columnIndex:h,rowIndex:p,columnValuesLength:s,rowValuesLength:u};o.push(y)}))})),o},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnValue,s=e.rowValue,u=e.view,l=(0,i.get)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=(0,i.deepMix)({position:["50%","0%"],content:l?l(r):r},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);u.annotation().text(c)}else{c=(0,i.deepMix)({position:["100%","50%"],content:l?l(s):s},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.title);u.annotation().text(c)}}))},e}(n(38).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=n[0],a=n[1],o=[],s=1,u=1,l=[""],c=[""];return r&&(l=this.getFieldValues(t,r),s=l.length),a&&(c=this.getFieldValues(t,a),u=c.length),l.forEach((function(n,h){c.forEach((function(f,p){var d=[{field:r,value:n,values:l},{field:a,value:f,values:c}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,s,h,p),columnValue:n,rowValue:f,columnField:r,rowField:a,columnIndex:h,rowIndex:p,columnValuesLength:s,rowValuesLength:u};o.push(y)}))})),o},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,u=e.columnValuesLength,l=e.columnValue,c=e.rowValue,h=e.view;if(0===s){var f=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:f?f(l):l},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(r===u-1){f=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:f?f(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?(0,r.__assign)((0,r.__assign)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?(0,r.__assign)((0,r.__assign)({},n),{title:null}):n},e}(n(38).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return(0,r.__extends)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},e.prototype.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=r,r++)})),n.forEach((function(t){t.columnValuesLength=n.length}));for(var i=this.cfg.fields.length-1;i>=0;i--)for(var a=0,o=this.getFacetsByLevel(t,i);a<o.length;a++){var s=o[a];this.isLeaf(s)||(s.originColIndex=s.columnIndex,s.columnIndex=this.getRegionIndex(s.children),s.columnValuesLength=n.length)}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=this.getFieldValues(t,o);return s.forEach((function(i,u){var l=[{field:o,value:i,values:s}],c=t.filter(r.getFacetDataFilter(l));if(c.length){var h={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:o,rowField:"",columnIndex:u,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),u=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(u)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},a={x:i.x,y:i.y+(r.y-i.y)/2},o={x:r.x,y:a.y};n.drawLine([i,a,o,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,i.assign)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},e}(n(38).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(24),o=n(37),s=n(2),u=n(14),l=n(26),c=n(623),h=n(43),f=["regionFilter","shape"],p=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(s.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(s.LAYER.BG).addGroup(),n.option=[],n}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;(0,i.each)(t.option,(function(n){if((0,i.includes)(f,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;(0,i.each)(this.option,(function(n){if(!(0,i.includes)(f,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=a.Annotation[(0,i.upperFirst)(e)];if(n){var r=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,r);return{component:new n(o),layer:this.isTop(o)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation((0,r.__assign)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation((0,r.__assign)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation((0,r.__assign)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation((0,r.__assign)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation((0,r.__assign)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation((0,r.__assign)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation((0,r.__assign)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation((0,r.__assign)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation((0,r.__assign)({type:"shape"},t))},e.prototype.html=function(t){this.annotation((0,r.__assign)({type:"html"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),r=(0,i.isFunction)(t)?t.call(null,e,n):t,a=0,o=0;if((0,i.isArray)(r)){var s=r[0],u=r[1];if((0,i.isString)(s)&&-1!==s.indexOf("%")&&!isNaN(s.slice(0,-1)))return this.parsePercentPosition(r);a=(0,c.getNormalizedValue)(s,e),o=(0,c.getNormalizedValue)(u,Object.values(n)[0])}else if(!(0,i.isNil)(r))for(var l=0,h=(0,i.keys)(r);l<h.length;l++){var f=h[l],p=r[f];f===e.field&&(a=(0,c.getNormalizedValue)(p,e)),n[f]&&(o=(0,c.getNormalizedValue)(p,n[f]))}return this.view.getCoordinate().convert({x:a,y:o})},e.prototype.getRegionPoints=function(t,e){var n,r=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],u=a.field,l=this.view.getData(),c=(0,i.isArray)(t)?t[0]:t[u],h=(0,i.isArray)(e)?e[0]:e[u],f=[];return(0,i.each)(l,(function(t,e){if(t[u]===c&&(n=e),e>=n){var i=r.parsePosition([t[u],t[s.field]]);i&&f.push(i)}if(t[u]===h)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),l=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;if("arc"===t){var h=e,f=h.start,p=h.end,d=(0,r.__rest)(h,["start","end"]),g=this.parsePosition(f),y=this.parsePosition(p),v=(0,u.getAngleByPoint)(s,g),m=(0,u.getAngleByPoint)(s,y);v>m&&(m=2*Math.PI+m),c=(0,r.__assign)((0,r.__assign)({},d),{center:s.getCenter(),radius:(0,u.getDistanceToCenter)(s,g),startAngle:v,endAngle:m})}else if("image"===t){var _=e;f=_.start,p=_.end,d=(0,r.__rest)(_,["start","end"]);c=(0,r.__assign)((0,r.__assign)({},d),{start:this.parsePosition(f),end:this.parsePosition(p),src:e.src})}else if("line"===t){var x=e;f=x.start,p=x.end,d=(0,r.__rest)(x,["start","end"]);c=(0,r.__assign)((0,r.__assign)({},d),{start:this.parsePosition(f),end:this.parsePosition(p),text:(0,i.get)(e,"text",null)})}else if("region"===t){var b=e;f=b.start,p=b.end,d=(0,r.__rest)(b,["start","end"]);c=(0,r.__assign)((0,r.__assign)({},d),{start:this.parsePosition(f),end:this.parsePosition(p)})}else if("text"===t){var M=this.view.getData(),C=e,P=C.position,S=C.content,O=(d=(0,r.__rest)(C,["position","content"]),S);(0,i.isFunction)(S)&&(O=S(M)),c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.parsePosition(P)),d),{content:O})}else if("dataMarker"===t){var w=e,A=(P=w.position,w.point),T=w.line,E=w.text,I=w.autoAdjust,L=w.direction;d=(0,r.__rest)(w,["position","point","line","text","autoAdjust","direction"]);c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},d),this.parsePosition(P)),{coordinateBBox:this.getCoordinateBBox(),point:A,line:T,text:E,autoAdjust:I,direction:L})}else if("dataRegion"===t){var D=e,B=(f=D.start,p=D.end,D.region),j=(E=D.text,D.lineLength);d=(0,r.__rest)(D,["start","end","region","text","lineLength"]);c=(0,r.__assign)((0,r.__assign)({},d),{points:this.getRegionPoints(f,p),region:B,text:E,lineLength:j})}else if("regionFilter"===t){var k=e,R=(f=k.start,p=k.end,k.apply),F=k.color,N=(d=(0,r.__rest)(k,["start","end","apply","color"]),this.view.geometries),G=[],Y=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):G.push(e))};(0,i.each)(N,(function(t){R?(0,i.contains)(R,t.type)&&(0,i.each)(t.elements,(function(t){Y(t.shape)})):(0,i.each)(t.elements,(function(t){Y(t.shape)}))})),c=(0,r.__assign)((0,r.__assign)({},d),{color:F,shapes:G,start:this.parsePosition(f),end:this.parsePosition(p)})}else if("shape"===t){var V=e,H=V.render,X=(0,r.__rest)(V,["render"]);c=(0,r.__assign)((0,r.__assign)({},X),{render:function(t){if((0,i.isFunction)(e.render))return H(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var z=e,W=z.html;P=z.position,X=(0,r.__rest)(z,["html","position"]);c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},X),this.parsePosition(P)),{parent:l.get("el").parentNode,html:function(t){return(0,i.isFunction)(W)?W(t,a.view):W}})}var q=(0,i.deepMix)({},n,(0,r.__assign)((0,r.__assign)({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(q.container=this.getComponentContainer(q)),q.animate=this.view.getOptions().animate&&q.animate&&(0,i.get)(e,"animate",q.animate),q.animateOption=(0,i.deepMix)({},o.DEFAULT_ANIMATE_CFG,q.animateOption,e.animateOption),q},e.prototype.isTop=function(t){return(0,i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,i.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),a=this.getAnnotationCfg(n,t,r);(0,l.omit)(a,["container"]),e.component.update(a),(0,i.includes)(f,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(f,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){(0,i.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(h.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var r=n(624);e.getNormalizedValue=function(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?(0,r.getMedian)(e.values.map((function(t,e){return e}))):(0,r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(0,r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMean=e.getMedian=void 0;var r=n(0),i=n(1);e.getMedian=function(t){var e=(0,r.__spreadArray)([],t,!0);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},e.getMean=function(t){var e=(0,i.reduce)(t,(function(t,e){return t+(isNaN(e)||!(0,i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(24),s=n(37),u=n(91),l=n(91),c=n(626),h=n(26),f=n(43),p=["container"],d=(0,r.__assign)((0,r.__assign)({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();(0,i.each)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,l=n.extra,h=l.dim,f=l.scale,p=l.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===h?r=e.isTransposed?(0,u.getAxisRegion)(e,o):(0,u.getCircleAxisCenterRadius)(e):"y"===h&&(r=e.isTransposed?(0,u.getCircleAxisCenterRadius)(e):(0,u.getAxisRegion)(e,o)):r=(0,u.getAxisRegion)(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===h?(0,c.getCircleGridItems)(e,t.view.getYScales()[0],f,p,h):(0,c.getLineGridItems)(e,f,h,p):"x"===h?(0,c.getLineGridItems)(e,f,h,p):(0,c.getCircleGridItems)(e,t.view.getXScale(),f,p,h),center:t.view.getCoordinate().getCenter()}}else r={items:(0,c.getLineGridItems)(e,f,h,p)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=(0,l.getAxisOption)(this.option,e.field);if(!1!==n){var r=(0,u.getAxisDirection)(n,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),f=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,n,r);(0,h.omit)(d,p),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,n,o,r,"x"),this.cache.set(c,g),t.set(c,g);if(y=this.cache.get(f)){d=this.getLineGridCfg(e,n,r,"x");(0,h.omit)(d,p),y.component.update(d),t.set(f,y)}else(y=this.createLineGrid(e,n,o,r,"x"))&&(this.cache.set(f,y),t.set(f,y))}else if(s.isPolar){var g,y;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,n,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);(0,h.omit)(d,p),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;g=this.createLineAxis(e,n,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,n,o,r,"x");this.cache.set(c,g),t.set(c,g)}if(y=this.cache.get(f)){d=s.isTransposed?this.getCircleGridCfg(e,n,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,a.DIRECTION.CIRCLE,"x");(0,h.omit)(d,p),y.component.update(d),t.set(f,y)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;y=this.createCircleGrid(e,n,o,a.DIRECTION.RADIUS,"x")}else y=this.createLineGrid(e,n,o,a.DIRECTION.CIRCLE,"x");y&&(this.cache.set(f,y),t.set(f,y))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();(0,i.each)(n,(function(n,r){if(n&&!n.isIdentity){var o=n.field,s=(0,l.getAxisOption)(e.option,o);if(!1!==s){var c=a.LAYER.BG,f=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=(0,u.getAxisDirection)(s,0===r?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(f)){var v=e.getLineAxisCfg(n,s,y);(0,h.omit)(v,p),m.component.update(v),t.set(f,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(f,m),t.set(f,m);if(_=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");(0,h.omit)(v,p),_.component.update(v),t.set(d,_)}else(_=e.createLineGrid(n,s,c,y,"y"))&&(e.cache.set(d,_),t.set(d,_))}else if(g.isPolar){var m,_;if(m=e.cache.get(f)){v=g.isTransposed?e.getCircleAxisCfg(n,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,a.DIRECTION.RADIUS);(0,h.omit)(v,p),m.component.update(v),t.set(f,m)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;m=e.createCircleAxis(n,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(f,m),t.set(f,m)}if(_=e.cache.get(d)){v=g.isTransposed?e.getLineGridCfg(n,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,a.DIRECTION.RADIUS,"y");(0,h.omit)(v,p),_.component.update(v),t.set(d,_)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;_=e.createLineGrid(n,s,c,a.DIRECTION.CIRCLE,"y")}else _=e.createCircleGrid(n,s,c,a.DIRECTION.RADIUS,"y");_&&(e.cache.set(d,_),t.set(d,_))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===a.DIRECTION.RADIUS?a.DIRECTION.NONE:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,s){var u=this.getLineGridCfg(t,e,r,s);if(u){var l={component:new o.LineGrid(u),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,r,i){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,r,s){var u=this.getCircleGridCfg(t,e,r,s);if(u){var l={component:new o.CircleGrid(u),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var a=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=(0,u.getAxisRegion)(o,n),l=(0,u.getAxisTitleText)(t,e),c=(0,u.getAxisThemeCfg)(this.view.getTheme(),n),h=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:l}}},{title:(0,u.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,f=(0,i.deepMix)((0,r.__assign)((0,r.__assign)({container:a},s),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*(0,u.getAxisFactorByRegion)(s,o.getCenter()):(0,u.getAxisFactorByRegion)(s,o.getCenter()),theme:c}),c,h),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;f.animateOption=g,f.animate=d;var y=(0,u.isVertical)(s),v=(0,i.get)(f,"verticalLimitLength",y?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");f.verticalLimitLength=v*(y?m:_)}return f},e.prototype.getLineGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,u.getAxisThemeCfg)(this.view.getTheme(),n),e)){var a=(0,c.getGridThemeCfg)(this.view.getTheme(),n),o=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer},a,(0,i.get)(e,"grid"),this.getAnimateCfg(e));return o.items=(0,c.getLineGridItems)(this.view.getCoordinate(),t,r,(0,i.get)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var o=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),l=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||l.pop();var c=(0,u.getAxisTitleText)(t,e),h=(0,u.getAxisThemeCfg)(this.view.getTheme(),a.DIRECTION.CIRCLE),f=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:c}}},{title:(0,u.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,p=(0,i.deepMix)((0,r.__assign)((0,r.__assign)({container:o},(0,u.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:h}),h,f),d=this.getAnimateCfg(p),g=d.animate,y=d.animateOption;return p.animate=g,p.animateOption=y,p},e.prototype.getCircleGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,u.getAxisThemeCfg)(this.view.getTheme(),n),e)){var o=(0,c.getGridThemeCfg)(this.view.getTheme(),a.DIRECTION.RADIUS),s=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,i.get)(e,"grid"),this.getAnimateCfg(e)),l=(0,i.get)(s,"alignTick",!0),h="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=(0,c.getCircleGridItems)(this.view.getCoordinate(),h,t,l,r),s}},e.prototype.getId=function(t,e){return t+"-"+e+"-"+this.view.getCoordinate().type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,i.get)(t,"animate"),animateOption:t&&t.animateOption?(0,i.deepMix)({},d,t.animateOption):d}},e}(f.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(1);e.getGridThemeCfg=function(t,e){var n=(0,r.deepMix)({},(0,r.get)(t,["components","axis","common"]),(0,r.get)(t,["components","axis",e]));return(0,r.get)(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var u=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:u}:{x:u,y:0}),t.convert("y"===n?{x:1,y:u}:{x:u,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],u=n.getTicks();return u.reduce((function(e,n){var u=e?e.value:n.value,l=n.value,c=(u+l)/2;return"x"===a?s.push({points:[t.convert({x:i?l:c,y:0}),t.convert({x:i?l:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?l:c})}))}),n}),u[0]),s},e.showGrid=function(t,e){var n=(0,r.get)(e,"grid");if(null===n)return!1;var i=(0,r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(24),s=n(37),u=n(30),l=n(130),c=n(26),h=n(227),f=n(47);function p(t,e){return(0,i.isBoolean)(t)?!1!==t&&{}:(0,i.get)(t,[e],t)}function d(t){return(0,i.get)(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,i.each)(this.components,(function(e){var n=e.component,r=e.direction,i=(0,h.getLegendLayout)(r),a=n.get("maxWidthRatio"),o=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(i,a,o),c=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,c||0),maxHeight:Math.min(s.maxHeight,f||0)});var p=n.get("padding"),d=n.getLayoutBBox(),g=new u.BBox(d.x,d.y,d.width,d.height).expand(p),y=(0,l.directionToPosition)(t.view.viewBBox,g,r),v=y[0],m=y[1],_=(0,l.directionToPosition)(t.layoutBBox,g,r),x=_[0],b=_[1],M=0,C=0;r.startsWith("top")||r.startsWith("bottom")?(M=v,C=b):(M=x,C=m),n.setLocation({x:M+p[3],y:C+p[0]}),t.layoutBBox=t.layoutBBox.cut(g,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if((0,i.get)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,c.omit)(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var u=a.LAYER.FORE,l=d(this.option);this.components.push({id:n,component:s,layer:u,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var u=void 0,l=p(t.option,a.field);!1!==l&&((0,i.get)(l,"custom")?u=t.getCategoryCfg(n,r,a,l,!0):a.isLinear?u=t.getContinuousCfg(n,r,a,l):a.isCategory&&(u=t.getCategoryCfg(n,r,a,l))),u&&((0,c.omit)(u,["container"]),s.direction=d(l),s.component.update(u),e[o]=!0)}else{var h=t.createFieldLegend(n,r,a);h&&(h.component.init(),t.components.push(h),e[o]=!0)}}));var h=[];(0,i.each)(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return(0,i.each)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};(0,i.each)(e,(function(e){var r=e.getGroupAttributes();(0,i.each)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=p(this.option,n.field),s=a.LAYER.FORE,u=d(o);if(!1!==o&&((0,i.get)(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new o.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,(0,c.omit)(r,["value"]));return new o.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new o.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var a=n.getTicks(),o=(0,i.find)(a,(function(t){return 0===t.value})),u=(0,i.find)(a,(function(t){return 1===t.value})),l=a.map((function(t){var r=t.value,i=t.tickValue,a=e.mapping(n.invert(r)).join("");return{value:i,attrValue:a,color:a,scaleValue:r}}));o||l.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),u||l.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),l.sort((function(t,e){return t.value-e.value}));var c={min:(0,i.head)(l).value,max:(0,i.last)(l).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=l.map((function(t){return t.attrValue})));var p=this.container,g=d(r),y=(0,h.getLegendLayout)(g),v=(0,i.get)(r,"title");return v&&(v=(0,i.deepMix)({text:(0,f.getName)(n)},v)),c.container=p,c.layout=y,c.title=v,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,o){var u=this.container,l=(0,i.get)(r,"position",a.DIRECTION.BOTTOM),c=(0,h.getLegendThemeCfg)(this.view.getTheme(),l),p=(0,i.get)(c,["marker"]),d=(0,i.get)(r,"marker"),g=(0,h.getLegendLayout)(l),y=(0,i.get)(c,["pageNavigator"]),v=(0,i.get)(r,"pageNavigator"),m=o?(0,h.getCustomLegendItems)(p,d,r.items):(0,h.getLegendItems)(this.view,t,e,p,d),_=(0,i.get)(r,"title");_&&(_=(0,i.deepMix)({text:n?(0,f.getName)(n):""},_));var x=(0,i.get)(r,"maxWidthRatio"),b=(0,i.get)(r,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,x,b);M.container=u,M.layout=g,M.items=m,M.title=_,M.animateOption=s.DEFAULT_ANIMATE_CFG,M.pageNavigator=(0,i.deepMix)({},y,v);var C=this.mergeLegendCfg(M,r,l);C.reversed&&C.items.reverse();var P=(0,i.get)(C,"maxItemWidth");return P&&P<=1&&(C.maxItemWidth=this.view.viewBBox.width*P),C},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],a=(0,h.getLegendThemeCfg)(this.view.getTheme(),r);return(0,i.deepMix)({},a,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return(0,i.find)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=a.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=a.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(n(43).Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(24),s=n(30),u=n(130),l=n(26),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=i.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],r=t[1];n.start=e,n.end=r,n.changeViewData(e,r)},n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n.onChangeFn=(0,i.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;(0,i.isNil)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!(0,i.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=n[0],o=(n[1],n[2],n[3]),l=this.slider.component.getLayoutBBox(),c=new s.BBox(l.x,l.y,Math.min(l.width,e),l.height).expand(n),h=this.getMinMaxText(this.start,this.end),f=h.minText,p=h.maxText,d=(0,u.directionToPosition)(this.view.viewBBox,c,a.DIRECTION.BOTTOM),g=(d[0],d[1]),y=(0,u.directionToPosition)(this.view.coordinateBBox,c,a.DIRECTION.BOTTOM),v=y[0];y[1];this.slider.component.update((0,r.__assign)((0,r.__assign)({},this.getSliderCfg()),{x:v+o,y:g+i,width:this.width,start:this.start,end:this.end,minText:f,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(c,a.DIRECTION.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider((0,r.__assign)({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=(0,r.__assign)((0,r.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,i.isObject)(this.option)){var e=(0,r.__assign)({data:this.getData()},(0,i.get)(this.option,"trendCfg",{}));t=(0,i.deepMix)({},t,this.getThemeOptions(),this.option),t=(0,r.__assign)((0,r.__assign)({},t),{trendCfg:e})}return t.start=(0,i.clamp)(Math.min((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t.end=(0,i.clamp)(Math.max((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,a=r.ticks;return t.reduce((function(t,n){return n[i]===a[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,i.get)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.valuesOfKey)(n,r.field),o=a,s=(0,i.size)(n);if(!r||!s)return{};var u=(0,i.size)(o),l=Math.floor(t*(u-1)),c=Math.floor(e*(u-1)),h=(0,i.get)(o,[l]),f=(0,i.get)(o,[c]),p=this.getSliderCfg().formatter;return p&&(h=p(h,n[l],l),f=p(f,n[c],c)),{minText:h,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.size)(n);if(r&&a){var o=(0,i.valuesOfKey)(n,r.field),s=o,u=(0,i.size)(s),c=Math.floor(t*(u-1)),h=Math.floor(e*(u-1));this.view.filter(r.field,(function(t,e){var n=s.indexOf(t);return!(n>-1)||(0,l.isBetween)(n,c,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(43).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(43),a=n(24),o=n(30),s=n(130),u=n(2),l=n(1),c=n(26),h=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=l.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,l.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(u.LAYER.FORE).addGroup(),n.onChangeFn=(0,l.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),l=this.getScrollbarComponentCfg(),c=void 0,h=void 0;if(l.isHorizontal){var f=(0,s.directionToPosition)(this.view.viewBBox,a,u.DIRECTION.BOTTOM),p=(f[0],f[1]),d=(0,s.directionToPosition)(this.view.coordinateBBox,a,u.DIRECTION.BOTTOM),g=d[0];d[1];c=g,h=p}else{var y=(0,s.directionToPosition)(this.view.viewBBox,a,u.DIRECTION.RIGHT),v=(y[0],p=y[1],(0,s.directionToPosition)(this.view.viewBBox,a,u.DIRECTION.RIGHT));g=v[0],v[1];c=g,h=p}c+=n[3],h+=n[0],this.trackLen?this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},l),{x:c,y:h,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},l),{x:c,y:h})),this.view.viewBBox=this.view.viewBBox.cut(a,l.isHorizontal?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,l.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,l.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=(0,r.__rest)(n,["thumbHighlightColor"]);return{default:(0,l.deepMix)({},(0,l.get)(e,["default","style"],{}),a),hover:(0,l.deepMix)({},(0,l.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.view.getOptions().data,this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,l.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=t[0],i=t[1],a="vertical"!==this.getValidScrollbarCfg().type,o=(0,l.valuesOfKey)(this.data,this.xScaleCfg.field),s=a?o:o.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=s.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,r,i)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new a.Scrollbar((0,r.__assign)((0,r.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:u.LAYER.FORE,direction:t?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT,type:u.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?(0,r.__assign)((0,r.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,r.__assign)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.view.getOptions().data,n=(0,l.valuesOfKey)(e,t.field);return(0,l.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,u=i.height,c=i.style,h="vertical"!==a,f=o[0],p=o[1],d=o[2],g=o[3],y=h?{x:e.minX+g,y:n.maxY-u-d}:{x:n.maxX-s-p,y:e.minY+f},v=this.getStep(),m=this.getCnt(),_=h?e.width-g-p:e.height-f-d,x=Math.max(_*(0,l.clamp)(v/m,0,1),20);return(0,r.__assign)((0,r.__assign)({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?u:s,isHorizontal:h,trackLen:_,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,l.isObject)(this.option)&&(t=(0,r.__assign)((0,r.__assign)({},t),this.option)),(0,l.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e}(i.Controller);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(0),i=n(1),a=n(78),o=n(12),s=(0,r.__importDefault)(n(10)),u={fill:"#CCD6EC",opacity:.3};function l(t,e,n){var r=(0,a.findItemsFromViewRecurisive)(t,e,n);if(r.length){for(var o=0,s=r=(0,i.flatten)(r);o<s.length;o++)for(var u=0,l=s[o];u<l.length;u++){var c=l[u],h=c.mappingData,f=h.x,p=h.y;c.x=(0,i.isArray)(f)?f[f.length-1]:f,c.y=(0,i.isArray)(p)?p[p.length-1]:p}if(!1===n.shared&&r.length>1){for(var d=r[0],g=Math.abs(e.y-d[0].y),y=0,v=r;y<v.length;y++){var m=v[y],_=Math.abs(e.y-m[0].y);_<=g&&(d=m,g=_)}r=[d]}return(0,i.uniq)((0,i.flatten)(r))}return[]}e.getItemsOfView=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,a=e.getController("tooltip").getTooltipCfg(),s=l(e,{x:n.x,y:n.y},a);if(!(0,i.isEqual)(s,this.items)&&(this.items=s,s.length)){var c=e.getXScale().field,h=s[0].data[c],f=[],p=e.geometries;if((0,i.each)(p,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===h}));f=f.concat(e)}})),f.length){var d=e.getCoordinate(),g=f[0].shape.getCanvasBBox(),y=f[0].shape.getCanvasBBox(),v=g;(0,i.each)(f,(function(t){var e=t.shape.getCanvasBBox();d.isTransposed?(e.minY<g.minY&&(g=e),e.maxY>y.maxY&&(y=e)):(e.minX<g.minX&&(g=e),e.maxX>y.maxX&&(y=e)),v.x=Math.min(e.minX,v.minX),v.y=Math.min(e.minY,v.minY),v.width=Math.max(e.maxX,v.maxX)-v.x,v.height=Math.max(e.maxY,v.maxY)-v.y}));var m=e.backgroundGroup,_=e.coordinateBBox,x=void 0;if(d.isRect){var b=e.getXScale(),M=t||{},C=M.appendRatio,P=M.appendWidth;(0,i.isNil)(P)&&(C=(0,i.isNil)(C)?b.isLinear?0:.25:C,P=d.isTransposed?C*y.height:C*g.width);var S=void 0,O=void 0,w=void 0,A=void 0;d.isTransposed?(S=_.minX,O=Math.min(y.minY,g.minY)-P,w=_.width,A=v.height+2*P):(S=Math.min(g.minX,y.minX)-P,O=_.minY,w=v.width+2*P,A=_.height),x=[["M",S,O],["L",S+w,O],["L",S+w,O+A],["L",S,O+A],["Z"]]}else{var T=(0,i.head)(f),E=(0,i.last)(f),I=(0,o.getAngle)(T.getModel(),d).startAngle,L=(0,o.getAngle)(E.getModel(),d).endAngle,D=d.getCenter(),B=d.getRadius(),j=d.innerRadius*B;x=(0,o.getSectorPath)(D.x,D.y,B,I,L,j)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var k=(0,i.get)(t,"style",u);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,r.__assign)((0,r.__assign)({},k),{path:x})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.showTooltip=function(t,e){var n=(0,a.getSilbings)(t);(0,i.each)(n,(function(n){var r=(0,a.getSiblingPoint)(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,(function(t){t.hideTooltip()}))},e}((0,r.__importDefault)(n(240)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(60),o=(0,r.__importDefault)(n(10)),s=n(24),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,r.__extends)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&(0,i.isEqual)(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update((0,r.__assign)({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},u=e.getTheme(),l=(0,i.get)(u,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:(0,r.__assign)({},(0,i.deepMix)({},l,(t={},t[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}((0,r.__importDefault)(n(131)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(10)),a=n(4),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return(0,r.__extends)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:(0,r.__assign)((0,r.__assign)({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var u=(0,a.getElementsByField)(r,i.field,s),l=this.linkGroup.addGroup();this.cache[s]=l;var c=u.length;(0,o.each)(u,(function(t,r){if(r<c-1){var i=u[r+1];n.addLinkShape(l,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=(0,a.getElementValue)(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=(0,a.getCurrentElement)(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=(0,a.getCurrentElement)(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}((0,r.__importDefault)(n(133)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}((0,r.__importDefault)(n(134)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var a=n.getScaleByField(r.getFields()[0]),o=(0,i.getElementValue)(t,a.field),s=(0,i.getElements)(n),u=s.filter((function(t){return(0,i.getElementValue)(t,a.field)===o}));this.setHighlightBy(s,(function(t){return u.includes(t)}),e)}},e}((0,r.__importDefault)(n(135)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=(0,r.__importStar)(n(135)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(a.STATUS_UNACTIVE)&&t.setState(a.STATUS_UNACTIVE,!1),t.setState(a.STATUS_ACTIVE,!0)):(t.setState(a.STATUS_UNACTIVE,!0),t.hasState(a.STATUS_ACTIVE)&&t.setState(a.STATUS_ACTIVE,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),a=(0,i.getElementValue)(t,r.field),o=(0,i.getElements)(n),s=o.filter((function(t){return(0,i.getElementValue)(t,r.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var r,i=n(0),a=n(56),o=n(136),s=(0,i.__importDefault)(n(133));!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={})),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=r;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,i.__extends)(e,t),e.prototype.clearViewState=function(t){(0,o.clearHighlight)(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,a.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,a.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,a.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,a.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){(0,o.setHighlightBy)(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=n(136),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,i.getElements)(n);(0,a.setHighlightBy)(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;(0,a.clearHighlight)(t)},e}((0,r.__importDefault)(n(134)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}((0,r.__importDefault)(n(133)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}((0,r.__importDefault)(n(131)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}((0,r.__importDefault)(n(134)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}((0,r.__importDefault)(n(67)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(646),o=(0,r.__importDefault)(n(67)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return(0,r.__extends)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;(0,i.each)(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)(0,a.clearList)(t.list);else{var e=this.getAllowComponents();(0,i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(1);e.clearList=function(t){var e=t.getItems();(0,r.each)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,r.__extends)(e,t),e.prototype.selected=function(){this.setState()},e}((0,r.__importDefault)(n(67)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return(0,r.__extends)(e,t),e.prototype.unchecked=function(){this.setState()},e}((0,r.__importDefault)(n(67)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(67)),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return(0,r.__extends)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!(0,i.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,i.each)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return(0,r.__extends)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,i.last)(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=(0,a.distance)(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}((0,r.__importDefault)(n(137)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1);function a(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return(0,r.__extends)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert((0,i.head)(n)),u=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(u)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:u.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:u.y})),{start:t,end:e}},e}((0,r.__importDefault)(n(241)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}((0,r.__importDefault)(n(242)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}((0,r.__importDefault)(n(10)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(10)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&(0,i.each)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if((0,o.isList)(t)){if(r){var i=n.getItemsByState("unchecked"),a=(0,o.getScaleByField)(e,r),s=i.map((function(t){return t.name}));s.length?this.filterView(e,r,(function(t){var e=a.getText(t);return!s.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if((0,o.isSlider)(t)){var u=n.getValue(),l=u[0],c=u[1];this.filterView(e,r,(function(t){return t>=l&&t<=c})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(243)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=(0,o.getSilbings)(t);(0,i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=(0,o.getSilbings)(t);(0,i.each)(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(10)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,n=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var r=(0,o.getMaskedElements)(this.context,10);r&&(0,i.each)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var a=t.component,s=a.get("field");if((0,o.isList)(t)){if(s){var u=a.getItemsByState("unchecked"),l=(0,o.getScaleByField)(e,s),c=u.map((function(t){return t.name}));(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,s),n=l.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var h=a.getValue(),f=h[0],p=h[1];(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,s);e>=f&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=(0,o.getElements)(this.context.view);(0,i.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=(0,r.__importDefault)(n(10)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return(0,r.__extends)(e,t),e.prototype.filter=function(){(0,o.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=(0,o.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=(0,o.getSilbings)(t);(0,i.each)(s,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){var e=t.getModel().data;(0,o.isInRecords)(a,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=(0,o.getSilbings)(e);(0,i.each)(n,(function(e){var n=(0,o.getSiblingMaskElements)(t.context,e,10),r=(0,o.getElements)(e);n&&(0,i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=(0,o.getSilbings)(this.context.view);(0,i.each)(t,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(7),a=n(1),o=n(118),s=(0,r.__importDefault)(n(10)),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return(0,r.__extends)(e,t),e.prototype.getButtonCfg=function(){return(0,a.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:(0,r.__assign)({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=(0,r.__importDefault)(n(10)),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return(0,r.__extends)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):(0,a.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(7),a=n(117),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return(0,r.__extends)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if((0,o.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return(0,r.__extends)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,i.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,u=o.y-a.y,l=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*u})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,u=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+u,max:o+u})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}((0,r.__importDefault)(n(244)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return(0,r.__extends)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,i.each)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,u=n*a,l=o-u,c=s+u,h=(c-l)/a;c>l&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:o-u,max:s+u})},e}((0,r.__importDefault)(n(244)).default);e.default=a}])}));
30
58
  //# sourceMappingURL=g2.min.js.map